/* KOERIUM v2.8.5.2 – mobile-first usability refinement
   Non-destructive overrides: preserves original retro theme and all workflows. */
:root { --koe-accent:#a9d846; --koe-accent-ink:#294414; --koe-border:#ccdab5; }
/* Images: hide broken icons and keep a calm fallback background. */
img[data-koe-avatar]{object-fit:cover;object-position:center}
.koeAvatarFallback{display:inline-grid;place-items:center;background:#e4f0cb;border:2px solid #a6cb69;border-radius:50%;font-weight:850;color:#395c1f;line-height:1;letter-spacing:0;text-align:center}
.profileAvatar.koeAvatarFallback{display:grid!important;align-items:center;justify-content:center}
.profileCover281.koeCoverUnavailable{background:linear-gradient(120deg,#dcecad,#eff6de)!important}
.koeCoverNotice{position:absolute;z-index:2;bottom:5px;right:9px;max-width:95%;padding:4px 8px;border-radius:4px;font-size:11px;color:#365020;background:#fffdf0ea;border:1px solid #c2d5a3}
/* Admin nav is unchanged on desktop. */
.koeAdminToggle{display:none}
.koeAdminNav{margin:0 0 20px}
.studio2852Steps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0 0 16px;border-bottom:1px solid #d8e5c6}
.studio2852Steps a{display:flex;align-items:center;gap:7px;flex:1 1 160px;min-width:0;padding:9px 12px;border-radius:7px;border:1px solid #c9dbae;background:#f6f9ee;color:#375421;font-weight:800;font-size:12px;text-decoration:none;line-height:1.3}
.studio2852Steps b{flex:0 0 24px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#abda55;color:#28420f;font-size:12px}
#studio2852Info,#studio2852Record,#studio2852Edit,#studio2852Publish{scroll-margin-top:26px}
/* Images, form elements and content must not exceed their columns. */
.main .field,.main .formRow,.main .formCard,.main .adminPanel,.main .voiceCard,.main .listRow{min-width:0}
.main input:not([type=checkbox]):not([type=radio]),.main select,.main textarea{max-width:100%;box-sizing:border-box}
.main .tableWrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:820px){
  /* Accessible touch targets, typography and spacing */
  html{font-size:16px;scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom))}
  body{font-size:14px}
  .main{padding-left:14px!important;padding-right:14px!important;padding-top:14px!important;line-height:1.65}
  .main>div[style*="max-width"],.main>section,.main>.homeGrid{max-width:100%;min-width:0}
  .pageHead{padding:18px 0 15px!important;margin-bottom:5px!important}
  .pageHead>span{font-size:10px!important;letter-spacing:.12em!important}
  .pageHead h1{font-size:clamp(23px,6vw,30px)!important;line-height:1.25!important;margin:8px 0 8px!important;overflow-wrap:anywhere}
  .pageHead p{font-size:13px!important;line-height:1.65!important;color:#626b57!important;margin:0!important}
  .sectionHead h2,.profile281Section .sectionHead h2{font-size:16px!important;line-height:1.4!important}
  .sectionHead a{font-size:12px!important}
  .main .btn,.main .btnGhost,.main .btnDanger{font-size:13px!important;line-height:1.35!important;min-height:40px!important;padding:9px 12px!important}
  .main :is(button,input[type="button"],input[type="submit"],select){touch-action:manipulation}
  .main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){font-size:16px!important;min-height:43px!important}
  .main textarea{min-height:90px!important;line-height:1.65!important}
  .main :is(input[type="checkbox"],input[type="radio"]){width:18px!important;height:18px!important;accent-color:#78a923;vertical-align:middle;flex:0 0 18px}
  .main label{line-height:1.45}
  .main .field>label{display:block;font-size:13px!important;font-weight:800!important;margin-bottom:5px!important}
  .formCard,.adminPanel,.profile281Intro,.profile281Work,.railCard{border-radius:9px!important;padding:15px!important}
  .formRow{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  .adminGrid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .adminStats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .adminStats .stat{padding:13px!important;min-width:0}
  .adminStats .stat b{font-size:22px!important;color:#3c5b20!important}
  .adminStats .stat small{color:#5c6b4e!important;font-size:11px!important}
  .table{font-size:12px!important}.table th,.table td{padding:10px 8px!important;vertical-align:top}
  /* Menu: recognizable categories, prominent active item, scrollable when tall. */
  .sidebar.is-menu-open nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important;
    padding:8px!important;max-height:min(72dvh,680px)!important;overscroll-behavior:contain}
  .sidebar.is-menu-open nav .navLabel{display:block!important;grid-column:1/-1!important;
    margin:8px 0 1px!important;padding:9px 10px 6px!important;background:#35472a!important;
    border-radius:4px;color:#dbf0b4!important;font-size:11px!important;letter-spacing:.06em!important;
    line-height:1.3!important;text-transform:none!important}
  .sidebar.is-menu-open nav a{min-height:45px!important;padding:10px 9px!important;
    font-size:12px!important;border-radius:4px!important;gap:6px!important}
  .sidebar.is-menu-open nav a.active{background:#a1cf43!important;color:#1d330d!important;font-weight:900!important}
  .sidebar.is-menu-open nav a:focus-visible,.mobileMenuButton:focus-visible,.koeAdminToggle:focus-visible{outline:3px solid #709f19!important;outline-offset:2px}
  /* Home hero – show complete portrait art, not a narrow crop of the eyes. */
  body[data-koe-route="/"] .welcome{border-color:#9fc74d!important}
  body[data-koe-route="/"] .welcomeCopy{padding:17px 15px 13px!important}
  body[data-koe-route="/"] .welcomeCopy h1{font-size:clamp(28px,7.5vw,36px)!important;line-height:1.19!important}
  body[data-koe-route="/"] .welcomePortrait{background:#e2edc6!important;
    height:136px!important;max-height:136px!important;min-height:136px!important;
    display:flex!important;justify-content:center!important;align-items:center!important}
  body[data-koe-route="/"] .welcomePortrait img{width:auto!important;max-width:100%!important;
    height:100%!important;position:static!important;display:block!important;
    object-fit:contain!important;object-position:center!important;mask-image:none!important;filter:none!important}
  body[data-koe-route="/"] .welcomePortrait:after{display:none!important}
  body[data-koe-route="/"] .quickActions a{min-height:55px!important;border-radius:8px!important}
  body[data-koe-route="/"] .quickActions b{font-size:12px!important}
  .voiceCard{margin:0 0 10px!important;padding:12px!important;border-radius:9px!important}
  .voiceMeta b{font-size:13px!important}.voiceMeta small{font-size:11px!important}
  .voiceTitle{font-size:15px!important;line-height:1.5!important}
  .voiceActions a,.voiceActions span{font-size:11px!important}
  .koePlayerTools,.koePlayerV2 .koePlayerTools{gap:8px!important}
  .koePlayerTools label{font-size:11px!important}
  /* Profile: drawer becomes normal flow on mobile rather than covering introduction. */
  .profileHero281 .profileBody{padding:0 15px 16px!important}
  .profileHero281 .profileCover281{height:90px!important;min-height:90px!important}
  .profileHero281 .profileCover281 .profile281CoverImage{object-position:center 38%!important}
  .profileHero281 .profileAvatarWrap{align-items:flex-start!important;gap:9px!important}
  .profileHero281 .profileActions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:stretch!important;gap:7px!important;width:100%!important;flex:1 1 100%!important;
    margin-top:6px!important;overflow:visible!important}
  .profileHero281 .profileActions>*{min-width:0!important;max-width:100%!important;flex:none!important}
  .profileHero281 .profileActions>.btnGhost,.profileHero281 .profileActions>form .btnGhost,.profileHero281 .profileActions>form .btn{width:100%!important;
    min-width:0!important;min-height:40px!important;white-space:normal!important;text-align:center!important;padding:7px 5px!important;font-size:11px!important}
  .profileHero281 .profileActions>form{margin:0!important}
  .profileHero281 .profileActions>.profileMenu{grid-column:1/-1!important;position:static!important;
    width:100%!important;max-width:100%!important;z-index:auto!important}
  .profileHero281 .profileMenu summary{display:flex;align-items:center;justify-content:space-between;
    min-height:43px!important;padding:10px 12px!important;white-space:normal!important;width:100%!important}
  .profileHero281 .profileMenu[open] summary{background:#e4f1c8!important;border-color:#9dbb6c!important}
  .profileHero281 .profileMenuLinks{position:static!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;
    box-shadow:none!important;min-width:0!important;max-width:100%!important;width:100%!important;
    margin:5px 0 0!important;padding:6px!important;border-radius:6px!important}
  .profileHero281 .profileMenuLinks a{border:1px solid #e0e8d2!important;padding:10px 8px!important;
    font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
  .profileHero281 .profileBody h1{font-size:22px!important;line-height:1.3!important;margin:11px 0 5px!important}
  .profileHero281 .profileBio{font-size:13px!important;line-height:1.7!important}
  .profileHero281 .profileStats{display:flex!important;gap:10px!important;justify-content:space-between!important;margin:12px 0!important}
  .profileHero281 .profileStats b{font-size:18px!important}
  .profile281Tabs{position:static;gap:0!important;overflow-x:auto!important;scrollbar-width:none!important}
  .profile281Tabs a{min-height:43px!important;font-size:12px!important;padding:11px 12px!important}
  .profile281Timeline li{font-size:13px!important;gap:8px!important}
  .profile281Timeline li a{font-size:13px!important}
  .profile281Intro p{font-size:13px!important}
  /* Notifications – all eight filters visible, no hidden offscreen tabs. */
  .notify284Filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;overflow:visible!important;padding:7px 0 12px!important}
  .notify284Filters a{display:flex!important;align-items:center!important;justify-content:space-between!important;
    min-width:0!important;min-height:43px!important;padding:9px 10px!important;white-space:normal!important;
    line-height:1.35!important;font-size:12px!important}
  .notify284Toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    padding:13px!important;gap:8px!important}
  .notify284Toolbar>div{grid-column:1/-1;min-width:0!important}
  .notify284Toolbar>form,.notify284Toolbar>a{min-width:0!important;max-width:100%!important}
  .notify284Toolbar :is(button,a){width:100%!important;min-height:40px!important;padding:7px 5px!important;font-size:11px!important;white-space:normal!important}
  .notify284Item{padding:12px!important}
  .notify284ItemTop{flex-wrap:wrap!important;gap:5px!important}
  .notify284Main b{font-size:14px!important}
  /* Admin menu on mobile: single expandable list instead of 16 tiny tabs. */
  .koeAdminNav{margin:12px 0 16px!important}
  .koeAdminToggle{display:flex!important;width:100%!important;min-height:46px!important;
    border:1px solid #96b567!important;border-radius:7px!important;
    background:#eaf5d3!important;color:#304b1c!important;font-size:13px!important;font-weight:900!important;
    justify-content:space-between!important;align-items:center!important;padding:10px 13px!important;text-align:left!important;cursor:pointer}
  .koeAdminNav .adminTabs{display:none!important;overflow:visible!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
    margin:7px 0 0!important;padding:10px!important;border:1px solid #c9d9b0!important;
    border-radius:7px!important;background:#f9fbf5!important;max-width:100%!important}
  .koeAdminNav.is-open .adminTabs{display:grid!important}
  .koeAdminNav .adminTabs a{display:flex!important;align-items:center!important;justify-content:center!important;
    text-align:center!important;font-size:12px!important;padding:9px 5px!important;min-height:42px!important;
    margin:0!important;min-width:0!important;overflow-wrap:anywhere!important}
  .koeAdminNav .adminTabs a.active{border-color:#80a930!important;background:#badf67!important}
  /* Discovery filters and results */
  body[data-koe-route="/discover"] .searchResults{max-width:100%!important}
  body[data-koe-route="/discover"] .formRow{gap:8px!important}
  body[data-koe-route="/discover"] .cardGrid{grid-template-columns:minmax(0,1fr)!important}
  body[data-koe-route="/discover"] .userCard{min-width:0!important}
  /* Recording: fewer dense controls and obvious progression */
  body[data-koe-route="/voice/new"] .formCard{max-width:100%!important;margin:0 auto!important}
  .studio2852Steps{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
    margin:0 0 18px!important;padding-bottom:13px!important}
  .studio2852Steps a{padding:9px 7px!important;font-size:11px!important;min-height:43px!important;justify-content:flex-start!important}
  .studio2852Steps b{flex-basis:24px!important}
  .studio282Introduction{padding:12px!important;gap:3px!important;display:block!important}
  .studio282Introduction span{display:block!important;margin-top:4px}
  .recordBox{padding:12px!important;margin:12px 0!important}
  .recordControls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .recordControls button{min-height:45px!important;min-width:0!important;font-size:14px!important}
  .studio282Toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .studio282Toolbar button{width:100%!important;min-width:0!important;padding:8px!important;white-space:normal!important}
  .studio282Panel{margin:12px 0!important;padding:12px!important}
  .studio282Panel audio{width:100%!important;min-width:0!important}
  .recordBox .take{gap:9px!important}
  .recordBox .take audio{min-width:0!important;flex-basis:100%!important}
  .audioEditHint,.script285StudioSource{margin:14px 0!important;padding:12px!important}
  /* Fixed bottom navigation: equal tap areas and clear accessible labels. */
  .mobileNav{height:calc(66px + env(safe-area-inset-bottom))!important}
  .mobileNav a{min-height:48px!important}
  .mobileNav .post{width:46px!important;height:46px!important;min-height:46px!important}
  .mobileNav a:focus-visible{outline:3px solid #79a52b!important;outline-offset:-3px}
}
@media(max-width:375px){
  .profileHero281 .profileActions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .profileHero281 .profileMenuLinks{grid-template-columns:minmax(0,1fr)!important}
  .sidebar.is-menu-open nav a{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.koeAdminToggle,.studio2852Steps a{transition:none!important}}
