/* YESHEN Admin Studio v3.5 — last stylesheet, intentional scoped theme authority */
html[data-theme="light"] body.is-admin{
  --ad-bg:#f6f2eb;--ad-surface:#fffdfa;--ad-alt:#eee8df;--ad-ink:#28211c;
  --ad-muted:#63594e;--ad-subtle:#827466;--ad-border:#d8cbbb;--ad-input:#fffefb;
  --ad-shadow:0 16px 40px rgba(47,33,22,.055);--ad-badge:#eee3d5;
  --ad-cream:#f8f4ed;--ad-primary:#29211a;--ad-primary-ink:#fff9ef;
}
html[data-theme="dark"] body.is-admin{
  --ad-bg:#0f0e0d;--ad-surface:#1c1916;--ad-alt:#28231f;--ad-ink:#f5efe6;
  --ad-muted:#c9bdb0;--ad-subtle:#ab9a87;--ad-border:#504539;--ad-input:#231e19;
  --ad-shadow:0 16px 45px rgba(0,0,0,.18);--ad-badge:#332c24;
  --ad-cream:#f3eadd;--ad-primary:#ddbd8b;--ad-primary-ink:#21180e;
}
html[data-theme] body.is-admin{background:var(--ad-bg)!important;color:var(--ad-ink)!important;font-family:'DM Sans','Manrope',sans-serif}
body.is-admin *,body.is-admin *::before,body.is-admin *::after{box-sizing:border-box}
body.is-admin a:focus-visible,body.is-admin button:focus-visible,body.is-admin input:focus-visible,body.is-admin textarea:focus-visible,body.is-admin select:focus-visible{outline:3px solid #c4a16a!important;outline-offset:3px}

/* Explicit, legible two-state theme control on login AND dashboard. */
body.is-admin .admin-theme-switch{display:inline-flex;align-items:center;gap:3px;background:var(--ad-alt);border:1px solid var(--ad-border);padding:4px;border-radius:10px;white-space:nowrap}
body.is-admin .admin-theme-switch button{appearance:none;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ad-muted);font:700 12px 'DM Sans',sans-serif;min-height:38px;min-width:77px;padding:8px 12px;cursor:pointer;transition:background .18s,color .18s,border .18s}
body.is-admin .admin-theme-switch button span{font-size:16px;margin-right:5px}
body.is-admin .admin-theme-switch button:hover{color:var(--ad-ink)}
body.is-admin .admin-theme-switch button.is-active,body.is-admin .admin-theme-switch button[aria-pressed="true"]{background:var(--ad-surface);color:var(--ad-ink);border-color:var(--ad-border);box-shadow:0 2px 8px #00000013}
body.is-admin .admin-theme-switch button:active{transform:scale(.98)}

/* Login shell: high-contrast brand, deliberate photo and useful disabled state. */
html[data-theme] body.is-admin .admin-gate{background:var(--ad-bg)!important;color:var(--ad-ink)!important;min-height:100svh;padding:0!important;display:flex;flex-direction:column}
body.is-admin .admin-gate-header{height:88px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(22px,4.4vw,76px);border-bottom:1px solid var(--ad-border);background:var(--ad-surface)}
body.is-admin .admin-gate-brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ad-ink)!important;font-family:'Cormorant Garamond',Georgia,serif;font-size:25px;line-height:.84;font-weight:600;letter-spacing:.035em}
body.is-admin .admin-gate-brand img{width:45px;height:45px;object-fit:contain;flex-shrink:0}
body.is-admin .admin-gate-brand small{display:block;margin-top:8px;font:700 9px 'DM Sans',sans-serif;letter-spacing:.27em;color:var(--ad-muted)}
body.is-admin .admin-gate-header-end{display:flex;align-items:center;gap:25px}
body.is-admin .admin-gate-header-note{font:700 10px 'DM Sans',sans-serif;letter-spacing:.18em;color:var(--ad-subtle)}
body.is-admin .admin-auth-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);width:min(1160px,calc(100% - 70px));margin:auto;min-height:580px;padding:50px 0;align-items:stretch}
body.is-admin .admin-auth-story{position:relative;isolation:isolate;min-height:575px;display:flex;align-items:flex-end;background:#17110d;overflow:hidden}
body.is-admin .admin-auth-image{position:absolute;inset:0;z-index:-2;background:#23170f url('/assets/hero-poster.jpg') center/cover no-repeat;filter:saturate(.76)}
body.is-admin .admin-auth-story::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(17,11,7,.96),rgba(17,11,7,.16) 80%),linear-gradient(90deg,rgba(17,11,7,.35),transparent);z-index:-1}
body.is-admin .admin-auth-story-content{padding:clamp(30px,4.5vw,65px);color:#fff7eb;max-width:660px}
body.is-admin .admin-auth-eyebrow{display:block;color:#e4bd82;font-size:10px;letter-spacing:.22em;font-weight:700}
body.is-admin .admin-auth-story h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(44px,4.6vw,77px);font-weight:500;line-height:.98;letter-spacing:-.025em;margin:25px 0 22px;color:#fff7eb}
body.is-admin .admin-auth-story h2 em{color:#dfb980;font-weight:400}
body.is-admin .admin-auth-story p{font-size:13px;color:#e8dccd;line-height:1.85;max-width:390px;margin:0}
body.is-admin .admin-auth-chips{display:flex;gap:18px;flex-wrap:wrap;border-top:1px solid #ddc29766;padding-top:20px;margin-top:36px;font-size:9px;font-weight:750;letter-spacing:.13em;color:#ebd3b1}
body.is-admin .admin-auth-card-wrap{background:var(--ad-surface);border:1px solid var(--ad-border);display:flex;flex-direction:column;justify-content:center;padding:clamp(22px,4.4vw,62px)}
html[data-theme] body.is-admin .gate-card{background:transparent!important;color:var(--ad-ink)!important;box-shadow:none!important;border:0!important;border-radius:0!important;max-width:none!important;padding:0!important;margin:0!important;text-align:left!important}
body.is-admin .admin-auth-lock{color:#94703c;font-size:10px;letter-spacing:.14em;font-weight:800}
html[data-theme="dark"] body.is-admin .admin-auth-lock{color:#e4c08a}
body.is-admin .gate-card h1{font:500 clamp(46px,4vw,62px)/.98 'Cormorant Garamond',Georgia,serif;letter-spacing:-.02em;color:var(--ad-ink);margin:25px 0 13px}
body.is-admin .gate-card h1 em{font-weight:400;color:#aa8454}
html[data-theme="dark"] body.is-admin .gate-card h1 em{color:#e1b97e}
html[data-theme] body.is-admin .gate-card p.admin-auth-subtitle{font-size:13px;line-height:1.65;color:var(--ad-muted)!important;margin:0 0 25px}
body.is-admin .admin-setup-note{display:flex;align-items:flex-start;gap:15px;padding:18px;background:var(--ad-alt);border:1px solid var(--ad-border);border-left:3px solid #b68c53;border-radius:8px;margin:29px 0 19px;color:var(--ad-ink)}
body.is-admin .admin-setup-symbol{background:#b8915c;color:#16110b;font-weight:800;border-radius:50%;display:grid;place-items:center;width:27px;height:27px;flex-shrink:0}
body.is-admin .admin-setup-note strong{display:block;font-size:13px;margin-bottom:5px}
html[data-theme] body.is-admin .admin-setup-note p{color:var(--ad-muted)!important;font:400 12px/1.7 'DM Sans',sans-serif;margin:0}
body.is-admin .admin-primary-button{background:var(--ad-primary);color:var(--ad-primary-ink);border:1px solid var(--ad-primary);padding:17px 20px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:750;letter-spacing:.025em;cursor:pointer;transition:opacity .18s,transform .18s}
body.is-admin .admin-primary-button:hover{opacity:.88;transform:translateY(-1px)}
body.is-admin .admin-return-link{display:inline-flex!important;align-items:center;margin-top:30px!important;color:var(--ad-muted)!important;font-size:12px!important;text-decoration:none}
body.is-admin .admin-return-link:hover{color:var(--ad-ink)!important}
body.is-admin .admin-login-mini-footer{font-size:9px;letter-spacing:.14em;color:var(--ad-subtle);margin-top:55px}
body.is-admin .admin-login-mini-footer span{padding:0 7px;color:#ab8456}
body.is-admin .gate-card .stack-form{display:grid;gap:18px;margin-top:22px}
body.is-admin .admin-auth-footnote{color:var(--ad-muted);font-size:11px;margin-top:14px}

/* Dashboard chassis; no green leftovers. */
html[data-theme] body.is-admin .admin-shell{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:100svh;background:var(--ad-bg);color:var(--ad-ink)}
html[data-theme] body.is-admin .admin-sidebar{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;padding:0 14px 22px;background:#171410!important;color:#eadecd!important;border-right:1px solid #4a3b2a;overflow:auto;z-index:70}
body.is-admin .admin-side-brand{border-bottom:1px solid #3d3328;padding:27px 10px 25px;margin-bottom:22px}
body.is-admin .admin-side-brand-link{color:#fff7ec!important;display:flex;gap:12px;text-decoration:none;align-items:center;font:600 26px/.86 'Cormorant Garamond',Georgia,serif}
body.is-admin .admin-side-brand-link img{width:43px;height:43px;object-fit:contain}
body.is-admin .admin-side-brand-link small{display:block;margin-top:9px;font:700 8px/1 'DM Sans',sans-serif;letter-spacing:.15em;color:#d7bf9c}
body.is-admin .admin-sidebar-label{color:#c6ad89!important;padding:9px 13px 16px;margin:0;font-size:10px;letter-spacing:.17em}
body.is-admin .admin-sidebar-label span{float:right;color:#a88a61;background:#302920;border:1px solid #534735;padding:2px 7px;border-radius:4px;font-size:9px}
body.is-admin .admin-sidebar nav{display:flex;flex-direction:column;gap:5px}
html[data-theme] body.is-admin .admin-sidebar nav a{color:#ddcebc!important;border:1px solid transparent;background:transparent!important;display:flex;align-items:center;gap:12px;text-decoration:none;border-radius:8px;min-height:45px;padding:10px 11px;font:650 12px 'DM Sans',sans-serif;transition:background .15s,color .15s}
body.is-admin .admin-sidebar nav a .admin-menu-icon{font-size:17px;color:#c2a37d;width:23px;text-align:center}
html[data-theme] body.is-admin .admin-sidebar nav a.selected{background:#413426!important;color:#fff!important;border-color:#796044}
html[data-theme] body.is-admin .admin-sidebar nav a:hover{background:#31271d!important;color:#fff!important}
body.is-admin .admin-sidebar nav a>b{margin-left:auto;font-weight:400;color:#d4b68b}
body.is-admin .admin-side-bottom{margin-top:auto;padding-top:22px;display:flex;flex-direction:column;gap:12px}
body.is-admin .admin-side-status{display:flex;align-items:center;gap:10px;padding:16px 12px;background:#252019;border:1px solid #44372a;border-radius:9px;color:#f6eade}
body.is-admin .admin-status-pip{background:#a98b62;width:9px;height:9px;border-radius:50%;flex:none;box-shadow:0 0 0 3px #92734a33}
body.is-admin .admin-side-status strong{font-size:11px;display:block}.admin-side-status small{font-size:9px;display:block;color:#c9b89d;margin-top:5px}
body.is-admin .admin-side-bottom .back-website{color:#eadac1!important;padding:11px 13px;margin:0;font-size:11px;border:1px solid #514331;border-radius:7px;text-decoration:none}
body.is-admin .admin-side-bottom .admin-exit{border:1px solid #66543c;color:#f3dfc6;background:transparent;border-radius:7px;font-size:11px;display:flex;justify-content:space-between;padding:12px}
html[data-theme] body.is-admin .admin-main{background:var(--ad-bg)!important;color:var(--ad-ink)!important;min-width:0}
html[data-theme] body.is-admin .admin-topbar{height:82px;padding:0 clamp(20px,3vw,45px);background:var(--ad-surface)!important;color:var(--ad-ink)!important;border-bottom:1px solid var(--ad-border)!important;display:flex;align-items:center;justify-content:space-between;gap:15px}
body.is-admin .admin-topbar-heading{display:flex;flex-direction:column;gap:6px;font-family:'DM Sans',sans-serif}
body.is-admin .admin-topbar-breadcrumb{font-size:9px;font-weight:800;letter-spacing:.2em;color:var(--ad-muted)}
body.is-admin .admin-topbar-breadcrumb span{color:#b49260;margin:0 5px}
body.is-admin .admin-topbar-heading strong{font:600 23px 'Cormorant Garamond',serif;color:var(--ad-ink)}
body.is-admin .admin-topbar-actions{display:flex;align-items:center;gap:19px}
body.is-admin .admin-topbar-divider{width:1px;height:31px;background:var(--ad-border)}
body.is-admin .admin-avatar{background:#c6a679!important;color:#20170c!important;width:37px;height:37px;border-radius:50%;font-size:11px;font-weight:800;display:grid;place-items:center;margin:0!important}
body.is-admin .admin-mobile-menu{display:none}
html[data-theme] body.is-admin .admin-inner{width:min(1360px,calc(100% - 76px));margin:0 auto;padding:40px 0 90px;color:var(--ad-ink)}
body.is-admin .admin-title-row{border-bottom:1px solid var(--ad-border);padding-bottom:28px;margin-bottom:27px;align-items:flex-end}
body.is-admin .admin-title-row .eyebrow{color:var(--ad-subtle)!important;font-size:10px;letter-spacing:.16em}
html[data-theme] body.is-admin .admin-title-row h1{font:500 clamp(37px,3.6vw,53px)/1 'Cormorant Garamond',Georgia,serif;color:var(--ad-ink)!important;letter-spacing:-.02em;margin:12px 0 11px}
html[data-theme] body.is-admin .admin-title-row p{font:400 13px/1.65 'DM Sans',sans-serif;color:var(--ad-muted)!important;margin:0}
html[data-theme] body.is-admin .admin-panel,html[data-theme] body.is-admin .stat-card{background:var(--ad-surface)!important;border:1px solid var(--ad-border)!important;color:var(--ad-ink)!important;border-radius:10px!important;box-shadow:var(--ad-shadow)}
html[data-theme] body.is-admin .admin-panel>h2,html[data-theme] body.is-admin .admin-panel h2,html[data-theme] body.is-admin .panel-title h2{color:var(--ad-ink)!important;font:700 18px 'DM Sans',sans-serif}
html[data-theme] body.is-admin .admin-panel p,html[data-theme] body.is-admin .admin-panel small,html[data-theme] body.is-admin .admin-panel .muted{color:var(--ad-muted)!important}
html[data-theme] body.is-admin .stat-card span,html[data-theme] body.is-admin .stat-card small{color:var(--ad-muted)!important}
html[data-theme] body.is-admin .stat-card strong{color:var(--ad-ink)!important;font:550 43px 'Cormorant Garamond',serif}
html[data-theme] body.is-admin .pill-neutral{background:var(--ad-badge)!important;color:var(--ad-ink)!important;border:1px solid var(--ad-border);border-radius:5px}
html[data-theme] body.is-admin .admin-topbar .theme-toggle{background:var(--ad-alt)!important;color:var(--ad-ink)!important;border-color:var(--ad-border)!important}
html[data-theme] body.is-admin .field,html[data-theme] body.is-admin .stack-form{color:var(--ad-ink)}
html[data-theme] body.is-admin .field>span{color:var(--ad-ink)!important;font-size:12px;font-weight:700}
html[data-theme] body.is-admin .field input,html[data-theme] body.is-admin .field textarea,html[data-theme] body.is-admin .field select,html[data-theme] body.is-admin input:not([type="checkbox"]),html[data-theme] body.is-admin textarea,html[data-theme] body.is-admin select{background:var(--ad-input)!important;color:var(--ad-ink)!important;border:1px solid var(--ad-border)!important;border-radius:7px!important;min-height:46px}
html[data-theme] body.is-admin input::placeholder,html[data-theme] body.is-admin textarea::placeholder{color:var(--ad-subtle)!important;opacity:1}
html[data-theme] body.is-admin .admin-panel button:not(.btn):not(.small-button),html[data-theme] body.is-admin .small-button{border-color:var(--ad-border);color:var(--ad-ink)}
html[data-theme] body.is-admin .admin-demo-note,html[data-theme] body.is-admin .notice{background:var(--ad-alt)!important;border:1px solid var(--ad-border)!important;color:var(--ad-ink)!important;border-radius:7px}
body.is-admin .admin-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
body.is-admin .admin-quick-grid a{position:relative;display:flex;flex-direction:column;gap:7px;padding:26px;min-height:155px;background:var(--ad-surface);border:1px solid var(--ad-border);color:var(--ad-ink);text-decoration:none;border-radius:10px;transition:transform .2s,border-color .2s}
body.is-admin .admin-quick-grid a:hover{transform:translateY(-3px);border-color:#a8865a}
body.is-admin .admin-quick-grid a>span{font-size:10px;letter-spacing:.14em;font-weight:750;color:var(--ad-subtle)}
body.is-admin .admin-quick-grid a>strong{font:600 26px 'Cormorant Garamond',serif;color:var(--ad-ink)}
body.is-admin .admin-quick-grid a>small{color:var(--ad-muted);font-size:11px}
body.is-admin .admin-quick-grid a>b{position:absolute;right:23px;top:26px;color:#a17b4b;font-size:18px;font-weight:400}
body.is-admin .admin-preview-banner{display:flex;align-items:center;gap:16px;background:var(--ad-badge);border:1px solid var(--ad-border);border-left:3px solid #b88f52;border-radius:8px;padding:15px 20px;margin-bottom:25px;color:var(--ad-ink)}
body.is-admin .admin-preview-banner>span{font-size:22px;color:#ad8855}
body.is-admin .admin-preview-banner>div{display:flex;flex-direction:column;gap:4px;flex:1}
body.is-admin .admin-preview-banner strong{font-size:12px}
body.is-admin .admin-preview-banner div>span{font-size:11px;color:var(--ad-muted)}
body.is-admin .admin-preview-banner button{background:transparent;color:var(--ad-ink);border:1px solid var(--ad-border);padding:10px 15px;border-radius:5px;font-size:11px;cursor:pointer}
body.is-admin .admin-preview-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:19px}
body.is-admin .admin-preview-kpis>div{display:flex;flex-direction:column;gap:12px;min-height:152px;padding:24px;background:var(--ad-surface);border:1px solid var(--ad-border);border-radius:10px}
body.is-admin .admin-preview-kpis span{font-size:10px;letter-spacing:.16em;color:var(--ad-muted);font-weight:750}
body.is-admin .admin-preview-kpis strong{font:550 47px/.9 'Cormorant Garamond',serif;color:var(--ad-ink)}
body.is-admin .admin-preview-kpis small{font-size:11px;color:var(--ad-muted)}
body.is-admin .admin-preview-editorial{display:grid;grid-template-columns:1fr 135px;gap:28px;align-items:center;background:var(--ad-surface);border:1px solid var(--ad-border);border-radius:10px;padding:26px 36px;margin-bottom:20px}
body.is-admin .admin-preview-editorial>div>span,body.is-admin .admin-preview-placeholder>span{font-size:10px;letter-spacing:.15em;color:var(--ad-subtle);font-weight:750}
body.is-admin .admin-preview-editorial h2,body.is-admin .admin-preview-placeholder h2{font:500 clamp(33px,3vw,48px)/1 'Cormorant Garamond',Georgia,serif;color:var(--ad-ink);margin:13px 0}
body.is-admin .admin-preview-editorial h2 em,body.is-admin .admin-preview-placeholder h2 em{color:#a27a48;font-weight:400}
body.is-admin .admin-preview-editorial p,body.is-admin .admin-preview-placeholder p{font:400 12px/1.8 'DM Sans',sans-serif;color:var(--ad-muted);margin:0;max-width:540px}
body.is-admin .admin-preview-editorial img{width:125px;height:125px;object-fit:contain}
body.is-admin .admin-preview-placeholder{background:var(--ad-surface);border:1px solid var(--ad-border);border-radius:10px;padding:clamp(30px,5vw,70px);min-height:280px}

@media(max-width:1150px){body.is-admin .admin-auth-grid{grid-template-columns:minmax(0,1fr) minmax(380px,1fr);width:calc(100% - 46px)}body.is-admin .admin-auth-story{min-height:520px}body.is-admin .admin-shell{grid-template-columns:228px minmax(0,1fr)}}
@media(max-width:830px){body.is-admin .admin-auth-grid{display:flex;flex-direction:column;max-width:620px;min-height:0;padding:28px 0 50px}body.is-admin .admin-auth-story{min-height:250px}body.is-admin .admin-auth-story h2{font-size:44px}body.is-admin .admin-auth-story-content{padding:27px}body.is-admin .admin-auth-story p{display:none}body.is-admin .admin-auth-chips{margin-top:17px}body.is-admin .admin-auth-card-wrap{padding:38px}html[data-theme] body.is-admin .admin-shell{grid-template-columns:1fr}html[data-theme] body.is-admin .admin-sidebar{position:fixed;top:68px;height:calc(100svh - 68px);left:0;width:270px;transform:translateX(-110%);transition:transform .22s;box-shadow:0 12px 28px #0005}html[data-theme] body.is-admin .admin-sidebar.open{transform:translateX(0)}html[data-theme] body.is-admin .admin-topbar{height:68px;padding:0 18px}body.is-admin .admin-topbar-heading{margin-right:auto}body.is-admin .admin-mobile-menu{display:inline-flex;align-items:center;background:var(--ad-surface);color:var(--ad-ink);border:1px solid var(--ad-border);border-radius:7px;padding:10px 12px;font-size:12px;min-height:41px;cursor:pointer}html[data-theme] body.is-admin .admin-inner{width:calc(100% - 40px);padding:28px 0 65px}}
@media(max-width:540px){body.is-admin .admin-gate-header{height:72px;padding:0 17px}body.is-admin .admin-gate-brand{font-size:22px}body.is-admin .admin-gate-brand img{width:38px;height:38px}body.is-admin .admin-gate-header-note{display:none}body.is-admin .admin-theme-switch button{min-width:59px;padding:8px 7px;font-size:11px}body.is-admin .admin-auth-grid{width:calc(100% - 26px);padding-top:14px}body.is-admin .admin-auth-story{min-height:230px}body.is-admin .admin-auth-story h2{font-size:39px;margin:12px 0}body.is-admin .admin-auth-chips{gap:8px;font-size:8px}body.is-admin .admin-auth-card-wrap{padding:27px 21px}body.is-admin .gate-card h1{font-size:47px}body.is-admin .admin-login-mini-footer{margin-top:40px}body.is-admin .admin-topbar-breadcrumb{display:none}body.is-admin .admin-topbar-heading strong{font-size:19px}body.is-admin .admin-topbar-actions{gap:8px}body.is-admin .admin-topbar-divider{display:none}body.is-admin .admin-avatar{display:none}body.is-admin .admin-theme-switch{gap:0;padding:3px}body.is-admin .admin-theme-switch button{min-width:52px;padding:7px 5px;min-height:33px}body.is-admin .admin-theme-switch button span{margin-right:1px}html[data-theme] body.is-admin .admin-inner{width:calc(100% - 27px)}body.is-admin .admin-preview-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}body.is-admin .admin-preview-kpis>div:last-child{grid-column:span 2}body.is-admin .admin-preview-editorial{grid-template-columns:1fr 76px;padding:22px;gap:10px}body.is-admin .admin-preview-editorial img{width:72px;height:72px}body.is-admin .admin-quick-grid{grid-template-columns:1fr;gap:10px}body.is-admin .admin-preview-banner{align-items:flex-start;flex-wrap:wrap;gap:10px}body.is-admin .admin-preview-banner button{margin-left:30px}}
@media(prefers-reduced-motion:reduce){body.is-admin *,body.is-admin *::before,body.is-admin *::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
/* Legacy sidebar span dimensions must apply to icons only. */
html[data-theme] body.is-admin .admin-sidebar nav a > span:not(.admin-menu-icon){display:block;flex:1;min-width:0;width:auto!important;font:650 12px/1.35 'DM Sans',sans-serif!important;text-align:left!important;white-space:normal}


/* YESHEN V4.9 — upload and preview therapist portraits directly in Admin. */
html[data-theme] body.is-admin .therapist-photo-field{
  display:grid;grid-template-columns:148px minmax(0,1fr);gap:20px;
  align-items:start;margin:10px 0 20px;padding:18px;
  background:var(--ad-alt);border:1px solid var(--ad-border);
  border-radius:9px;min-width:0;
}
html[data-theme] body.is-admin .therapist-photo-preview{
  display:grid;place-items:center;aspect-ratio:3 / 4;
  width:100%;min-height:160px;overflow:hidden;
  background:var(--ad-surface);border:1px solid var(--ad-border);
  border-radius:7px;
}
html[data-theme] body.is-admin .therapist-photo-preview img{
  display:block;width:100%;height:100%;object-fit:cover;
  border:0;border-radius:0;margin:0;
}
html[data-theme] body.is-admin .therapist-photo-empty{
  color:var(--ad-subtle);padding:14px;text-align:center;
  font:500 12px/1.5 'DM Sans',sans-serif;
}
html[data-theme] body.is-admin .therapist-photo-controls{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:11px;min-width:0;color:var(--ad-ink);
}
html[data-theme] body.is-admin .therapist-photo-controls>strong{
  display:block;width:100%;font-size:15px;
}
html[data-theme] body.is-admin .therapist-photo-controls p{
  width:100%;margin:0 0 4px;font:400 12px/1.6 'DM Sans',sans-serif;
  color:var(--ad-muted);
}
html[data-theme] body.is-admin .therapist-photo-picker{
  display:inline-flex;align-items:center;justify-content:center;
  position:relative;min-height:43px;padding:10px 17px;
  font:700 11px/1.4 'DM Sans',sans-serif;
  background:var(--ad-primary);color:var(--ad-primary-ink);
  border:1px solid var(--ad-primary);border-radius:5px;
  cursor:pointer;overflow:hidden;
}
html[data-theme] body.is-admin .therapist-photo-picker input[type=file]{
  position:absolute;inset:0;width:100%;height:100%;
  cursor:pointer;opacity:0;font-size:60px;
}
html[data-theme] body.is-admin .therapist-photo-picker:focus-within{
  outline:3px solid #c4a16a;outline-offset:3px;
}
html[data-theme] body.is-admin .therapist-photo-remove{
  min-height:43px;padding:9px 12px;
  border:1px solid var(--ad-border);border-radius:5px;
  background:var(--ad-surface);color:var(--ad-ink);
  font:600 11px/1.4 'DM Sans',sans-serif;
  cursor:pointer;
}
html[data-theme] body.is-admin .therapist-photo-status{
  display:block;width:100%;font:400 11px/1.6 'DM Sans',sans-serif;
  color:var(--ad-muted);overflow-wrap:anywhere;
}
@media(max-width:580px){
  html[data-theme] body.is-admin .therapist-photo-field{
    grid-template-columns:1fr;gap:15px;padding:15px;
  }
  html[data-theme] body.is-admin .therapist-photo-preview{
    width:min(100%,230px);min-height:0;margin-inline:auto;
  }
}


/* YESHEN V5 — customer review moderation workspace. */
html[data-theme] body.is-admin .yeshen-review-admin-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px;align-items:start;
}
html[data-theme] body.is-admin .yeshen-review-editor,
html[data-theme] body.is-admin .yeshen-review-manager{min-width:0}
html[data-theme] body.is-admin .yeshen-review-photo-field{
  padding:18px;border:1px solid var(--ad-border);background:var(--ad-alt);
  display:flex;gap:12px;flex-wrap:wrap;align-items:center;
  border-radius:7px;
}
html[data-theme] body.is-admin .yeshen-review-photo-field>strong{
  display:block;width:100%;color:var(--ad-ink);font-size:13px;
}
html[data-theme] body.is-admin .yeshen-review-photo-field p,
html[data-theme] body.is-admin .yeshen-review-photo-field small{
  display:block;width:100%;color:var(--ad-muted)!important;
  font:400 11px/1.7 'DM Sans',sans-serif;
  margin:0;overflow-wrap:anywhere;
}
html[data-theme] body.is-admin .yeshen-review-photo-preview{
  display:grid;place-items:center;width:100%;min-height:135px;max-height:340px;
  background:var(--ad-surface);border:1px dashed var(--ad-border);
  border-radius:5px;overflow:hidden;color:var(--ad-subtle);
  font:400 12px 'DM Sans',sans-serif;
}
html[data-theme] body.is-admin .yeshen-review-photo-preview img{
  display:block;width:auto;max-width:100%;height:auto;max-height:340px;
  margin:0 auto;object-fit:contain;
}
html[data-theme] body.is-admin .yeshen-review-photo-picker{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  min-height:43px;padding:10px 16px;cursor:pointer;overflow:hidden;
  background:var(--ad-primary);color:var(--ad-primary-ink);
  border:1px solid var(--ad-primary);border-radius:5px;
  font:700 11px/1.4 'DM Sans',sans-serif;
}
html[data-theme] body.is-admin .yeshen-review-photo-picker input[type=file]{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;cursor:pointer;font-size:70px;
}
html[data-theme] body.is-admin .yeshen-review-photo-picker:focus-within{
  outline:3px solid #c4a16a;outline-offset:2px;
}
html[data-theme] body.is-admin .yeshen-review-manage-item{
  padding:20px 0;border-top:1px solid var(--ad-border);
  display:flex;flex-direction:column;gap:12px;
}
html[data-theme] body.is-admin .yeshen-review-manage-top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
html[data-theme] body.is-admin .yeshen-review-manage-top strong{
  color:var(--ad-ink);font:700 13px 'DM Sans',sans-serif;overflow-wrap:anywhere;
}
html[data-theme] body.is-admin .yeshen-review-state{
  border:1px solid var(--ad-border);padding:5px 9px;border-radius:20px;
  font:700 10px 'DM Sans',sans-serif;color:var(--ad-muted);white-space:nowrap;
}
html[data-theme] body.is-admin .yeshen-review-state.is-published{
  border-color:#a88960;color:var(--ad-ink);background:var(--ad-badge);
}
html[data-theme] body.is-admin .yeshen-review-manage-item p{
  font:400 12px/1.7 'DM Sans',sans-serif;white-space:pre-line;overflow-wrap:anywhere;
  margin:0;
}
html[data-theme] body.is-admin .yeshen-review-manage-item>img{
  display:block;max-width:170px;max-height:190px;object-fit:contain;
  border:1px solid var(--ad-border);
}
html[data-theme] body.is-admin .yeshen-review-manage-actions{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
html[data-theme] body.is-admin .yeshen-review-manager .text-link{
  display:inline-flex;margin-top:19px;
}
@media(max-width:1050px){
  html[data-theme] body.is-admin .yeshen-review-admin-grid{grid-template-columns:1fr}
}
