:root {
    --osh-green: #176b2c;
    --osh-green-dark: #0f4f20;
    --osh-text: #111111;
    --osh-muted: #72757d;
    --osh-border: #ececef;
    --osh-surface: rgba(255,255,255,.97);
    --osh-height: 74px;
}

body:not(.wp-admin) { padding-top: var(--osh-height) !important; }
body.admin-bar .osh-header { top: 32px; }
.osh-header, .osh-header * { box-sizing: border-box; }

.osh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    background: var(--osh-surface);
    border-bottom: 1px solid var(--osh-border);
    box-shadow: 0 3px 16px rgba(20,25,32,.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.osh-shell {
    width: min(100%, 1720px);
    height: var(--osh-height);
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.osh-icon-button, .osh-profile-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.osh-icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--osh-text);
    border-radius: 50%;
    transition: background .2s ease;
}
.osh-icon-button:hover { background: #f3f4f5; }

.osh-icon-button svg, .osh-nav-icon svg, .osh-search-icon svg,
.osh-create-button svg, .osh-login-button svg, .osh-profile-chevron svg,
.osh-mobile-link svg, .osh-mobile-search svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.osh-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--osh-text) !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex: 0 0 auto;
}

.osh-brand-logo {
    width: 58px;
    height: 66px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.osh-brand-name {
    display: inline-block;
    margin-left: -2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -3.1px;
    line-height: .82;
    color: #000;
    transform: translateY(1px);
}

.osh-nav {
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 3px;
    margin-left: 5px;
}

.osh-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: #22252a !important;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 650;
    white-space: nowrap;
}
.osh-nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
}
.osh-nav-link:hover, .osh-nav-link.is-active { color: var(--osh-green) !important; }
.osh-nav-link.is-active::after { background: var(--osh-green); }
.osh-nav-icon { display: inline-flex; }

.osh-search {
    position: relative;
    height: 40px;
    width: min(315px, 23vw);
    margin-left: auto;
    display: flex;
    align-items: center;
    border-radius: 22px;
    background: #f4f4f5;
    border: 1px solid transparent;
}
.osh-search:focus-within {
    background: #fff;
    border-color: rgba(23,107,44,.35);
    box-shadow: 0 0 0 4px rgba(23,107,44,.08);
}
.osh-search-icon { display: grid; place-items: center; margin-left: 14px; color: #222; }
.osh-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--osh-text);
    padding: 0 8px;
    font: inherit;
    font-size: 14px;
}
.osh-search-shortcut {
    margin-right: 9px;
    padding: 3px 6px;
    border-radius: 6px;
    background: #e8e8ea;
    color: #6d7077;
    font-size: 11px;
    font-weight: 700;
}

.osh-create-button, .osh-login-button {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border-radius: 22px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}
.osh-create-button {
    color: #fff !important;
    background: linear-gradient(135deg, var(--osh-green), var(--osh-green-dark));
    box-shadow: 0 7px 16px rgba(23,107,44,.18);
}
.osh-create-button:hover { color: #fff !important; transform: translateY(-1px); }
.osh-create-button svg, .osh-login-button svg { width: 18px; height: 18px; }
.osh-login-button { color: var(--osh-text) !important; background: #f1f2f3; }

.osh-actions { position: relative; display: flex; align-items: center; gap: 6px; }
.osh-notification-button { position: relative; }
.osh-badge {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--osh-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.osh-badge[hidden],
.osh-badge:empty {
    display: none !important;
}
.osh-profile-button { display: inline-flex; align-items: center; gap: 3px; padding: 2px; border-radius: 24px; }
.osh-profile-button:hover { background: #f3f4f5; }
.osh-profile-button img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; border: 2px solid #eceef0; }
.osh-profile-chevron { display: inline-flex; color: #222; }
.osh-profile-chevron svg { width: 16px; height: 16px; }

.osh-profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 210px;
    padding: 10px;
    border: 1px solid var(--osh-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(18,24,32,.14);
}
.osh-profile-menu-name { padding: 10px 12px; color: var(--osh-text); font-weight: 800; border-bottom: 1px solid var(--osh-border); margin-bottom: 6px; }
.osh-profile-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: #24272c !important; text-decoration: none !important; font-size: 14px; font-weight: 600; }
.osh-profile-menu a:hover { background: #f3f5f3; color: var(--osh-green) !important; }

.osh-mobile-panel { border-top: 1px solid var(--osh-border); padding: 10px 16px 16px; background: #fff; }
.osh-mobile-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; color: #24272d !important; text-decoration: none !important; font-weight: 700; }
.osh-mobile-link.is-active, .osh-mobile-link:hover { color: var(--osh-green) !important; background: rgba(23,107,44,.07); }
.osh-mobile-link span { display: inline-flex; }
.osh-mobile-search { height: 44px; margin-top: 8px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #f4f5f5; border-radius: 14px; }
.osh-mobile-search input { min-width: 0; flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; font: inherit; }

@media (max-width: 1320px) {
    .osh-nav-link { padding: 0 7px; }
    .osh-search { width: min(280px, 22vw); }
}

@media (max-width: 1120px) {
    .osh-nav-link span:last-child { display: none; }
    .osh-nav-link { padding: 0 9px; }
    .osh-search { width: min(260px, 25vw); }
}

@media (max-width: 900px) {
    :root { --osh-height: 68px; }
    .osh-shell { height: var(--osh-height); padding: 0 14px; gap: 10px; }
    .osh-brand-logo { width: 51px; height: 58px; }
    .osh-brand-name { margin-left: -2px; font-size: 43px; letter-spacing: -2.65px; }
    .osh-nav, .osh-search, .osh-create-button { display: none; }
    .osh-actions { margin-left: auto; }
}

@media (max-width: 782px) { body.admin-bar .osh-header { top: 46px; } }

@media (max-width: 520px) {
    .osh-brand { position: absolute; left: 50%; transform: translateX(-50%); gap: 0; }
    .osh-brand-logo { width: 44px; height: 51px; }
    .osh-brand-name { margin-left: -2px; font-size: 37px; letter-spacing: -2.25px; }
    .osh-profile-chevron { display: none; }
    .osh-login-button span { display: none; }
    .osh-login-button { width: 40px; padding: 0; }
}

/* Context navigation: shared Back + Home controls for inner OnStorio screens. */
.osh-context-spacer { height: 50px; }
.osh-context-nav,
.osh-context-nav * { box-sizing: border-box; }
.osh-context-nav {
    position: fixed;
    top: var(--osh-height);
    left: 0;
    right: 0;
    z-index: 99980;
    height: 50px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--osh-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.admin-bar .osh-context-nav { top: calc(var(--osh-height) + 32px); }
.osh-context-shell {
    width: min(100%, 1720px);
    height: 100%;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.osh-context-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #202328 !important;
    text-decoration: none !important;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}
.osh-context-button:hover { background: #f1f4f1; color: var(--osh-green) !important; }
.osh-context-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.osh-home-button { background: rgba(23,107,44,.08); color: var(--osh-green) !important; }

@media (max-width: 782px) {
    body.admin-bar .osh-context-nav { top: calc(var(--osh-height) + 46px); }
}
@media (max-width: 520px) {
    .osh-context-spacer { height: 46px; }
    .osh-context-nav { height: 46px; }
    .osh-context-shell { padding: 0 10px; }
    .osh-context-button { min-height: 34px; padding: 0 10px; font-size: 13px; }
}


/* v2.4.6 — compact existing Back/Home context navigation on mobile only. */
@media (max-width: 520px) {
    .osh-context-spacer {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }

    .osh-context-nav {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }

    .osh-context-shell {
        height: 34px !important;
        padding: 0 8px !important;
        align-items: center !important;
    }

    .osh-context-button {
        min-height: 28px !important;
        height: 28px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        gap: 5px !important;
        border-radius: 14px !important;
    }

    .osh-context-button svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* v2.4.7 — Story context: author replaces duplicate Home on story pages. */
.osh-story-author-button {
    background: rgba(23,107,44,.06);
    color: var(--osh-green) !important;
    max-width: 190px;
}
.osh-context-author-avatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}
.osh-story-author-button span {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .osh-story-author-button {
        max-width: 160px !important;
        padding: 0 7px !important;
        gap: 5px !important;
    }
    .osh-context-author-avatar {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }
    .osh-story-author-button span {
        max-width: 118px !important;
        font-size: 12px !important;
    }
}

/* v2.4.8 — centered Story Translate in the real Core header. */
.osh-story-translate-row{width:100%;display:flex;align-items:center;justify-content:center;padding:2px 10px 4px;margin:0;box-sizing:border-box;background:#fff}
.osh-story-translate-button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:26px;padding:4px 12px;border:1px solid #d7dfda;border-radius:999px;background:#f7faf8;color:#174a2a;font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.035)}
.osh-story-translate-button:active{transform:translateY(1px)}


/* v2.4.9 — Translate is a centered overlay INSIDE the real context bar.
   No extra row, no background hiding, no added header height. */
.osh-context-shell{
    position:relative !important;
}

.osh-story-translate-overlay{
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    z-index:20 !important;
    display:inline-flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    margin:0 !important;
    min-height:26px !important;
    height:26px !important;
    padding:4px 11px !important;
    border:1px solid #d7dfda !important;
    border-radius:999px !important;
    background:#ffffff !important;
    color:#174a2a !important;
    font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
    box-shadow:0 1px 4px rgba(0,0,0,.08) !important;
    white-space:nowrap !important;
}

.osh-story-translate-overlay:active{
    transform:translate(-50%,-50%) translateY(1px) !important;
}

/* Ensure Back and story-author stay above the bar background but do not cover center. */
.osh-back-button,
.osh-story-author-button,
.osh-home-button{
    position:relative !important;
    z-index:21 !important;
}

@media (max-width:520px){
    .osh-story-translate-overlay{
        min-height:24px !important;
        height:24px !important;
        padding:3px 9px !important;
        font-size:9px !important;
    }
}


/* ============================================================
   v2.5.2 — STORY TWO-ROW FLOW FIX
   ROW 1 (Core): Back | OnStorio | @author.
   In App Mode the global Core header is hidden, so context row is
   anchored to the top of the WebView instead of reserving --osh-height.
   ============================================================ */
.osh-context-shell{position:relative!important;}
.osh-context-story-brand{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    color:#171b19!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    z-index:20!important;
    pointer-events:auto!important;
}
.osh-context-story-brand img{
    width:20px!important;
    height:24px!important;
    object-fit:contain!important;
    display:block!important;
}
.osh-context-story-brand span{
    margin-left:-1px!important;
    font:700 17px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
    letter-spacing:-1px!important;
}
.osh-story-translate-parking{display:none!important;}

/* One real Translate button after Stories moves it into ROW 2. */
.os-news-translate-slot .osh-story-translate-overlay{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    z-index:auto!important;
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    margin:0!important;
    min-height:24px!important;
    height:24px!important;
    padding:3px 9px!important;
    border:1px solid #d7dfda!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#174a2a!important;
    font:700 9px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
    box-shadow:0 1px 3px rgba(0,0,0,.06)!important;
    white-space:nowrap!important;
}
.os-news-translate-slot .osh-story-translate-overlay:active{
    transform:translateY(1px)!important;
}

/* Critical App Mode geometry: ROW 1 occupies real 34px at top. */
body.onstorio-app-mode .osh-context-spacer{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
}
body.onstorio-app-mode .osh-context-nav{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    z-index:99980!important;
}
body.onstorio-app-mode.admin-bar .osh-context-nav{top:0!important;}
body.onstorio-app-mode .osh-context-shell{
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    padding:0 8px!important;
}
body.onstorio-app-mode .osh-context-button{
    min-height:28px!important;
    height:28px!important;
    padding:0 8px!important;
    font-size:12px!important;
    line-height:1!important;
    gap:5px!important;
}
body.onstorio-app-mode .osh-context-story-brand img{width:18px!important;height:21px!important;}
body.onstorio-app-mode .osh-context-story-brand span{font-size:15px!important;letter-spacing:-.8px!important;}


/* ============================================================
   v2.5.3 — EXISTING STORY HEADER REARRANGEMENT ONLY
   Website: Back | Translate | @author. Duplicate story logo hidden.
   App: Back | Translate | OnStorio | Language | @author.
   ============================================================ */

.osh-context-translate-slot,
.osh-context-language-slot{
    position:absolute!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:22!important;
    white-space:nowrap!important;
}

/* Website: there is already a large OnStorio header above this row. */
body:not(.onstorio-app-mode) .osh-context-story-brand{
    display:none!important;
}
body:not(.onstorio-app-mode) .osh-context-language-slot{
    display:none!important;
}
body:not(.onstorio-app-mode) .osh-context-translate-slot{
    left:50%!important;
    transform:translate(-50%,-50%)!important;
}

/* The ONE functional Translate button now belongs to Core ROW 1. */
.osh-context-translate-slot .osh-story-translate-overlay{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    z-index:auto!important;
    margin:0!important;
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    min-height:26px!important;
    height:26px!important;
    padding:4px 11px!important;
    border:1px solid #d7dfda!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#174a2a!important;
    font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
    box-shadow:0 1px 4px rgba(0,0,0,.08)!important;
}
.osh-context-translate-slot .osh-story-translate-overlay:active{
    transform:translateY(1px)!important;
}

/* App: preserve the existing single row, with controls placed around center logo. */
body.onstorio-app-mode .osh-context-story-brand{
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    gap:2px!important;
}
body.onstorio-app-mode .osh-context-story-brand img{
    width:18px!important;
    height:21px!important;
    margin:0!important;
}
body.onstorio-app-mode .osh-context-story-brand span{
    margin-left:0!important;
    font-size:15px!important;
    letter-spacing:-.8px!important;
    line-height:1!important;
}
body.onstorio-app-mode .osh-context-translate-slot{
    left:30%!important;
    transform:translate(-50%,-50%)!important;
}
body.onstorio-app-mode .osh-context-language-slot{
    left:70%!important;
    transform:translate(-50%,-50%)!important;
    color:#176b2c!important;
    font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
    max-width:68px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body.onstorio-app-mode .osh-context-translate-slot .osh-story-translate-overlay{
    min-height:24px!important;
    height:24px!important;
    padding:3px 8px!important;
    font-size:9px!important;
}


/* ============================================================
   v2.5.5 — FINAL STORY ROW PLACEMENT FIX
   Website: Back | Translate | Author, no duplicate story logo.
   App: Back | Translate | OnStorio | Language | Author.
   Direct markup only: no JS moving, no hidden parking.
   ============================================================ */

/* Website keeps the existing large global OnStorio header. */
body:not(.onstorio-app-mode) .osh-context-story-brand,
body:not(.onstorio-app-mode) .osh-context-language-slot{
    display:none!important;
}
body:not(.onstorio-app-mode) .osh-context-shell{
    position:relative!important;
}
body:not(.onstorio-app-mode) .osh-context-translate-slot{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:50!important;
}

/* APP: one genuine five-cell row. Nothing is allowed to sit behind center. */
body.onstorio-app-mode .osh-context-shell{
    display:grid!important;
    grid-template-columns:minmax(72px,1fr) 68px 76px 58px minmax(92px,1fr)!important;
    align-items:center!important;
    column-gap:2px!important;
    position:relative!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:0 7px!important;
}
body.onstorio-app-mode .osh-back-button{
    grid-column:1!important;
    justify-self:start!important;
}
body.onstorio-app-mode .osh-context-translate-slot{
    grid-column:2!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:68px!important;
    z-index:60!important;
}
body.onstorio-app-mode .osh-context-story-brand{
    grid-column:3!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    justify-self:center!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:76px!important;
    max-width:76px!important;
    gap:0!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    z-index:61!important;
    overflow:hidden!important;
}
body.onstorio-app-mode .osh-context-story-brand img{
    position:static!important;
    width:18px!important;
    height:21px!important;
    min-width:18px!important;
    object-fit:contain!important;
    display:block!important;
    margin:0!important;
    transform:none!important;
}
body.onstorio-app-mode .osh-context-story-brand span{
    position:static!important;
    display:block!important;
    margin-left:-1px!important;
    padding:0!important;
    transform:none!important;
    font:700 15px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
    letter-spacing:-.9px!important;
    white-space:nowrap!important;
}
body.onstorio-app-mode .osh-context-language-slot{
    grid-column:4!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:block!important;
    justify-self:center!important;
    width:58px!important;
    max-width:58px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    text-align:center!important;
    color:#176b2c!important;
    font:700 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
    z-index:60!important;
}
body.onstorio-app-mode .osh-story-author-button{
    grid-column:5!important;
    justify-self:end!important;
    max-width:100%!important;
}

/* Crush the original centered-overlay rule so Translate cannot hide under the logo. */
body.onstorio-app-mode .osh-context-translate-slot > .osh-story-translate-overlay,
body:not(.onstorio-app-mode) .osh-context-translate-slot > .osh-story-translate-overlay{
    position:static!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    inset:auto!important;
    transform:none!important;
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    z-index:1!important;
    margin:0!important;
    white-space:nowrap!important;
}
body.onstorio-app-mode .osh-context-translate-slot > .osh-story-translate-overlay{
    min-width:62px!important;
    max-width:66px!important;
    min-height:24px!important;
    height:24px!important;
    padding:3px 6px!important;
    font-size:8.5px!important;
}
body.onstorio-app-mode .osh-context-translate-slot > .osh-story-translate-overlay:active,
body:not(.onstorio-app-mode) .osh-context-translate-slot > .osh-story-translate-overlay:active{
    transform:translateY(1px)!important;
}


/* v2.5.6 TEMP DIAGNOSTIC
   Hide ONLY the central OnStorio story logo in App Mode.
   Do not move/remove Translate, Language, Back, Author, Stories or pagination.
   Purpose: visually confirm what is underneath the logo. */
body.onstorio-app-mode .osh-context-story-brand{
    display:none!important;
}
