/* ================================================================
   Rina se Hoekie 2026 Responsive UI System
   Final override layer. Keeps all application/business logic intact.
   ================================================================ */
:root{
  --rsh-bg:#f6efe5;
  --rsh-surface:#fffdf8;
  --rsh-surface-2:#fff7eb;
  --rsh-ink:#2b1b13;
  --rsh-muted:#765e4e;
  --rsh-brand:#7a3f22;
  --rsh-brand-2:#a96833;
  --rsh-accent:#cf9a4b;
  --rsh-line:rgba(74,42,20,.12);
  --rsh-shadow:0 12px 34px rgba(66,39,22,.10);
  --rsh-shadow-lg:0 24px 64px rgba(66,39,22,.15);
  --rsh-radius:22px;
  --rsh-radius-sm:15px;
  --rsh-admin-bg:#071421;
  --rsh-admin-panel:#0b2237;
  --rsh-admin-panel-2:#102e49;
  --rsh-admin-line:rgba(104,210,255,.18);
  --rsh-admin-text:#f1f8fd;
  --rsh-admin-muted:#a9c1d2;
  --rsh-admin-accent:#41c8ff;
  --rsh-mobile-nav:72px;
}

html{scroll-behavior:smooth;scroll-padding-top:88px;-webkit-text-size-adjust:100%}
body.site{font-size:16px!important;line-height:1.5!important;background:
  radial-gradient(circle at 8% 0%,rgba(255,255,255,.95),transparent 33rem),
  radial-gradient(circle at 96% 10%,rgba(207,154,75,.17),transparent 27rem),
  linear-gradient(135deg,#f8f0e5,#ecd3ad)!important;color:var(--rsh-ink)!important;overflow-x:hidden}
body.site::before{content:""!important;display:block!important;position:fixed!important;inset:0!important;pointer-events:none!important;z-index:0!important;background:
  linear-gradient(rgba(122,63,34,.018) 1px,transparent 1px),
  linear-gradient(90deg,rgba(122,63,34,.018) 1px,transparent 1px)!important;background-size:38px 38px!important;opacity:.7!important}
body.site.agent-theme{background:
  radial-gradient(circle at 10% 0%,rgba(255,255,255,.94),transparent 31rem),
  radial-gradient(circle at 95% 7%,rgba(139,74,42,.16),transparent 29rem),
  linear-gradient(135deg,#f5eadc,#dfbc8d)!important}
body.site.admin-theme{background:
  radial-gradient(circle at 88% -5%,rgba(65,200,255,.15),transparent 34rem),
  radial-gradient(circle at -5% 98%,rgba(35,124,176,.10),transparent 30rem),
  linear-gradient(145deg,var(--rsh-admin-bg),#0a1d30)!important;color:var(--rsh-admin-text)!important;color-scheme:dark}
body.site.admin-theme::before{background:
  linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px)!important;background-size:40px 40px!important}

/* Typography */
body.site h1,body.site h2,body.site h3{color:inherit!important;text-wrap:balance}
body.site h1{font-size:clamp(2rem,4vw,3.9rem)!important;line-height:1.01!important;letter-spacing:-.045em!important;margin:0 0 14px!important}
body.site h2{font-size:clamp(1.35rem,2.25vw,2.15rem)!important;line-height:1.09!important;letter-spacing:-.025em!important;margin:0 0 9px!important}
body.site h3{font-size:1.06rem!important;line-height:1.25!important;margin:0 0 7px!important}
body.site p{color:var(--rsh-muted)!important;line-height:1.58!important}
body.site.admin-theme p{color:var(--rsh-admin-muted)!important}
body.site .eyebrow{display:inline-flex!important;align-items:center!important;width:max-content!important;max-width:100%!important;margin:0 0 8px!important;padding:5px 9px!important;border:1px solid rgba(122,63,34,.12)!important;border-radius:999px!important;background:rgba(122,63,34,.065)!important;color:var(--rsh-brand)!important;font-size:.69rem!important;line-height:1!important;font-weight:900!important;letter-spacing:.105em!important;text-transform:uppercase!important}
body.site.admin-theme .eyebrow{border-color:rgba(65,200,255,.18)!important;background:rgba(65,200,255,.08)!important;color:#79dcff!important}

/* Global layout */
body.site .app-shell{position:relative!important;z-index:1!important;display:grid!important;grid-template-columns:258px minmax(0,1fr)!important;align-items:start!important;gap:18px!important;width:min(100%,1780px)!important;max-width:1780px!important;min-height:100vh!important;margin:0 auto!important;padding:18px!important}
body.site .content-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:16px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0 0 24px!important}
body.site .content-shell>*{min-width:0}

/* Sidebar */
body.site .sidebar{position:sticky!important;top:18px!important;height:calc(100dvh - 36px)!important;width:100%!important;padding:13px!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:24px!important;background:linear-gradient(165deg,#fffdf8,#f4e6d4)!important;color:var(--rsh-ink)!important;box-shadow:var(--rsh-shadow-lg)!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important;overflow:auto!important;overscroll-behavior:contain!important}
body.site.agent-theme .sidebar{background:linear-gradient(165deg,#56301e,#321b13)!important;color:#fff8ef!important;border-color:rgba(255,255,255,.15)!important}
body.site.admin-theme .sidebar{background:linear-gradient(165deg,#0b2135,#061523)!important;color:var(--rsh-admin-text)!important;border-color:var(--rsh-admin-line)!important;box-shadow:0 24px 64px rgba(0,0,0,.28)!important}
body.site .brand-block{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;margin:0 0 10px!important;padding:5px 4px 13px!important;border-bottom:1px solid var(--rsh-line)!important}
body.site.agent-theme .brand-block,body.site.admin-theme .brand-block{border-bottom-color:rgba(255,255,255,.12)!important}
body.site .brand-logo-wrap{display:grid!important;place-items:center!important;width:48px!important;height:48px!important;border-radius:15px!important;background:#fff!important;border:1px solid rgba(122,63,34,.12)!important;box-shadow:0 6px 18px rgba(60,34,18,.10)!important;overflow:hidden!important}
body.site .brand-logo{width:44px!important;height:44px!important;object-fit:contain!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}
body.site .brand-block strong{display:block!important;color:inherit!important;font-size:.96rem!important;line-height:1.12!important;font-weight:900!important}
body.site .brand-block span{display:block!important;margin-top:3px!important;color:var(--rsh-muted)!important;font-size:.72rem!important;line-height:1.1!important;font-weight:700!important;opacity:1!important}
body.site.agent-theme .brand-block span,body.site.admin-theme .brand-block span{color:rgba(255,255,255,.68)!important}
body.site .side-nav{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;margin:0!important}
body.site .side-nav-group{display:block!important;margin:10px 8px 2px!important;color:#738ca1!important;font-size:.61rem!important;font-weight:900!important;letter-spacing:.09em!important;text-transform:uppercase!important}
body.site .side-nav a{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;gap:8px!important;min-height:44px!important;padding:8px 10px!important;border:1px solid transparent!important;border-radius:13px!important;background:transparent!important;color:inherit!important;box-shadow:none!important;transform:none!important;transition:background .16s ease,border-color .16s ease,transform .16s ease!important}
body.site .side-nav a>span{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;color:inherit!important;font-size:.83rem!important;line-height:1.12!important;font-weight:850!important}
body.site .side-nav a small{display:block!important;color:var(--rsh-muted)!important;font-size:.65rem!important;line-height:1!important;font-weight:750!important;opacity:.82!important;text-align:right!important}
body.site .side-nav a:hover{background:rgba(122,63,34,.07)!important;border-color:rgba(122,63,34,.10)!important;transform:translateX(2px)!important}
body.site .side-nav a.active{background:linear-gradient(135deg,var(--rsh-brand),#5b2e19)!important;border-color:var(--rsh-brand)!important;color:#fff!important;box-shadow:0 7px 18px rgba(122,63,34,.20)!important}
body.site .side-nav a.active small{color:#f8e8d4!important;opacity:.86!important}
body.site.agent-theme .side-nav a small{color:#e9cdb8!important}
body.site.agent-theme .side-nav a:hover{background:rgba(255,255,255,.09)!important;border-color:rgba(255,255,255,.10)!important}
body.site.agent-theme .side-nav a.active{background:linear-gradient(135deg,#ba7b40,#8d4f27)!important;border-color:#cb8c4d!important}
body.site.admin-theme .side-nav a{background:rgba(255,255,255,.025)!important}
body.site.admin-theme .side-nav a small{color:#8eabbf!important}
body.site.admin-theme .side-nav a:hover{background:rgba(65,200,255,.075)!important;border-color:rgba(65,200,255,.13)!important;transform:translateX(2px)!important}
body.site.admin-theme .side-nav a.active{background:linear-gradient(135deg,rgba(65,200,255,.23),rgba(20,105,153,.18))!important;border-color:rgba(65,200,255,.42)!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--rsh-admin-accent),0 7px 20px rgba(0,0,0,.18)!important}
body.site.admin-theme .side-nav a.active small{color:#aeeaff!important}
body.site .sidebar-note{margin-top:12px!important;padding:11px!important;border-radius:13px!important;background:rgba(122,63,34,.055)!important;color:var(--rsh-muted)!important;font-size:.72rem!important;line-height:1.38!important;font-weight:650!important;opacity:1!important}
body.site.agent-theme .sidebar-note,body.site.admin-theme .sidebar-note{background:rgba(255,255,255,.045)!important;color:rgba(255,255,255,.64)!important}

/* Desktop command bar */
body.site .desktop-command-bar{position:sticky!important;top:18px!important;z-index:80!important;display:grid!important;grid-template-columns:minmax(220px,.75fr) minmax(0,1.6fr)!important;align-items:center!important;gap:14px!important;min-height:58px!important;padding:9px 10px 9px 15px!important;border:1px solid rgba(255,255,255,.64)!important;border-radius:19px!important;background:rgba(255,253,248,.86)!important;box-shadow:0 10px 28px rgba(66,39,22,.09)!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important}
body.site .command-copy strong{display:block!important;color:var(--rsh-ink)!important;font-size:.83rem!important;line-height:1.15!important;font-weight:900!important}
body.site .command-copy span{display:block!important;margin-top:2px!important;color:var(--rsh-muted)!important;font-size:.68rem!important;line-height:1.2!important}
body.site .command-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:0!important;overflow-x:auto!important;scrollbar-width:none!important}
body.site .command-actions::-webkit-scrollbar{display:none!important}
body.site .command-actions a{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:6px 10px!important;border:1px solid rgba(122,63,34,.09)!important;border-radius:999px!important;background:rgba(122,63,34,.045)!important;color:var(--rsh-brand)!important;font-size:.70rem!important;font-weight:850!important;white-space:nowrap!important}
body.site .command-actions a:hover,body.site .command-actions a.active{background:var(--rsh-brand)!important;border-color:var(--rsh-brand)!important;color:#fff!important}
body.site.admin-theme .desktop-command-bar{background:rgba(8,28,46,.88)!important;border-color:var(--rsh-admin-line)!important;box-shadow:0 14px 34px rgba(0,0,0,.22)!important}
body.site.admin-theme .command-copy strong{color:#fff!important}
body.site.admin-theme .command-copy span{color:var(--rsh-admin-muted)!important}
body.site.admin-theme .command-actions a{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.055)!important;color:#c7e9f7!important}
body.site.admin-theme .command-actions a:hover,body.site.admin-theme .command-actions a.active{background:rgba(65,200,255,.18)!important;border-color:rgba(65,200,255,.34)!important;color:#fff!important}

/* Ticker */
body.site .agent-ticker-shell{margin:0!important;padding:0!important;border:1px solid var(--rsh-line)!important;border-radius:14px!important;background:rgba(255,253,248,.66)!important;box-shadow:none!important;color:var(--rsh-ink)!important;backdrop-filter:blur(12px)!important}
body.site .agent-ticker-track{gap:20px!important;padding:7px 0!important;font-size:.70rem!important;animation-duration:58s!important}
body.site .agent-ticker-title{padding-left:14px!important;color:var(--rsh-brand)!important;font-weight:900!important}
body.site .agent-ticker-praise{color:var(--rsh-muted)!important;padding-right:14px!important}
body.site.admin-theme .agent-ticker-shell{background:rgba(65,200,255,.055)!important;border-color:var(--rsh-admin-line)!important;color:#def5ff!important}
body.site.admin-theme .agent-ticker-title{color:#72ddff!important}
body.site.admin-theme .agent-ticker-praise{color:#91aebe!important}

/* Surfaces */
body.site .glass-panel,body.site .glass-card,body.site .panel,body.site .metric-card,body.site .checkout-card,body.site .login-panel{border:1px solid rgba(122,63,34,.10)!important;background:rgba(255,253,248,.80)!important;color:var(--rsh-ink)!important;box-shadow:var(--rsh-shadow)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important}
body.site .glass-panel{padding:clamp(22px,3vw,38px)!important;border-radius:26px!important}
body.site .glass-card,body.site .panel,body.site .metric-card{padding:17px!important;border-radius:19px!important}
body.site.admin-theme .glass-panel,body.site.admin-theme .glass-card,body.site.admin-theme .panel,body.site.admin-theme .metric-card,body.site.admin-theme .checkout-card,body.site.admin-theme .login-panel,body.site.admin-theme .dark-panel{border-color:var(--rsh-admin-line)!important;background:linear-gradient(145deg,rgba(13,40,64,.96),rgba(8,29,48,.96))!important;color:var(--rsh-admin-text)!important;box-shadow:0 15px 38px rgba(0,0,0,.20)!important}
body.site .page-header,body.site .dashboard-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;padding:24px 26px!important;border-radius:24px!important;overflow:hidden!important}
body.site .page-header>*:not(.button-row),body.site .dashboard-header>*:not(.button-row){min-width:0}
body.site .page-header>p,body.site .dashboard-header>p{grid-column:1/-1!important;margin-bottom:0!important;max-width:900px!important}
body.site .page-header .eyebrow,body.site .dashboard-header .eyebrow{grid-column:1/-1!important}
body.site .page-header h1,body.site .dashboard-header h1{margin-bottom:0!important}
body.site.admin-theme .page-header,body.site.admin-theme .dashboard-header{background:linear-gradient(135deg,rgba(16,51,80,.98),rgba(8,28,47,.96))!important}

/* Home */
body.site .hero-grid{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(280px,370px)!important;gap:34px!important;align-items:center!important;min-height:470px!important;background:
  radial-gradient(circle at 82% 18%,rgba(207,154,75,.20),transparent 17rem),
  rgba(255,253,248,.82)!important;overflow:hidden!important}
body.site .hero-grid::after{content:"";position:absolute;right:-80px;bottom:-120px;width:300px;height:300px;border-radius:50%;border:42px solid rgba(122,63,34,.035);pointer-events:none}
body.site .hero-text{max-width:700px!important;margin-bottom:22px!important;color:#695042!important;font-size:1.06rem!important}
body.site .hero-card{position:relative!important;z-index:1!important;margin:0!important;padding:13px!important;border:1px solid rgba(122,63,34,.10)!important;border-radius:28px!important;background:linear-gradient(145deg,#fff,#f5e6d1)!important;box-shadow:0 22px 54px rgba(75,43,22,.15)!important;transform:rotate(1.2deg)!important}
body.site .hero-card img{display:block!important;width:100%!important;max-height:315px!important;object-fit:contain!important;border-radius:21px!important;background:#fff!important}
body.site .hero-card strong{display:block!important;margin:10px 4px 0!important;color:var(--rsh-brand)!important;font-size:1rem!important}
body.site .hero-card span{display:block!important;margin:3px 4px 4px!important;color:var(--rsh-muted)!important;font-size:.78rem!important;line-height:1.35!important}
body.site .section-block{display:grid!important;gap:13px!important}
body.site .section-heading{padding:0 4px!important}
body.site .section-heading h2{margin-bottom:0!important}
body.site .inline-heading{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:14px!important}

/* Buttons */
body.site .btn,body.site button.btn,body.site a.btn{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:40px!important;padding:9px 14px!important;border:1px solid transparent!important;border-radius:12px!important;background:#efe2d2!important;color:var(--rsh-ink)!important;box-shadow:none!important;font-size:.84rem!important;font-weight:900!important;line-height:1.15!important;text-shadow:none!important;cursor:pointer!important;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important}
body.site .btn:hover:not(:disabled){transform:translateY(-1px)!important;filter:none!important;box-shadow:0 8px 17px rgba(79,45,24,.12)!important}
body.site .btn.primary,body.site button.btn.primary,body.site a.btn.primary,body.site .btn.tiny{background:linear-gradient(135deg,var(--rsh-brand-2),var(--rsh-brand))!important;color:#fff!important;border-color:rgba(92,46,23,.14)!important}
body.site .btn.secondary,body.site button.btn.secondary,body.site a.btn.secondary,body.site .shop-pager .btn:not(.danger){background:#fffaf3!important;color:var(--rsh-brand)!important;border-color:rgba(122,63,34,.15)!important}
body.site .btn.danger,body.site button.btn.danger{background:#a83232!important;color:#fff!important;border-color:#a83232!important}
body.site .btn.tiny{min-height:34px!important;padding:7px 10px!important;font-size:.76rem!important;border-radius:10px!important}
body.site.admin-theme .btn:not(.danger),body.site.admin-theme button.btn:not(.danger),body.site.admin-theme a.btn:not(.danger){background:rgba(65,200,255,.12)!important;color:#dff7ff!important;border-color:rgba(65,200,255,.24)!important;text-shadow:none!important;box-shadow:none!important}
body.site.admin-theme .btn.primary,body.site.admin-theme button.btn.primary,body.site.admin-theme a.btn.primary,body.site.admin-theme .btn.tiny{background:linear-gradient(135deg,#28bce8,#1174a8)!important;color:#fff!important;border-color:rgba(116,222,255,.24)!important}
body.site.admin-theme .btn.secondary,body.site.admin-theme button.btn.secondary,body.site.admin-theme a.btn.secondary{background:rgba(255,255,255,.055)!important;color:#d8eef8!important;border-color:rgba(255,255,255,.10)!important}
body.site .text-link{display:inline-flex!important;align-items:center!important;min-height:36px!important;padding:6px 2px!important;color:var(--rsh-brand)!important;font-weight:900!important}
body.site.admin-theme .text-link{color:#6fdcff!important}

/* Inputs and filters */
body.site input,body.site select,body.site textarea{width:100%!important;min-height:42px!important;padding:10px 12px!important;border:1px solid rgba(122,63,34,.15)!important;border-radius:12px!important;background:#fffdf9!important;color:var(--rsh-ink)!important;box-shadow:inset 0 1px 1px rgba(76,41,20,.025)!important;outline:none!important;font-size:16px!important;line-height:1.35!important;transition:border-color .15s ease,box-shadow .15s ease!important}
body.site textarea{min-height:104px!important;resize:vertical!important}
body.site input:focus,body.site select:focus,body.site textarea:focus{border-color:rgba(122,63,34,.48)!important;box-shadow:0 0 0 3px rgba(122,63,34,.09)!important}
body.site label{color:var(--rsh-muted)!important;font-size:.82rem!important;font-weight:820!important}
body.site.admin-theme input,body.site.admin-theme select,body.site.admin-theme textarea{background:#f8fbfe!important;color:#10283a!important;border-color:#d1e2ec!important;color-scheme:light!important}
body.site.admin-theme input:focus,body.site.admin-theme select:focus,body.site.admin-theme textarea:focus{border-color:#38bce9!important;box-shadow:0 0 0 3px rgba(65,200,255,.16)!important}
body.site.admin-theme label{color:#bfd3df!important}
body.site .toolbar,body.site .shop-toolbar,body.site .admin-filter-bar,body.site .book-filter-bar,body.site .order-filter-bar,body.site .batch-toolbar,body.site .filter-toolbar{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;align-items:end!important;gap:10px!important;padding:12px!important;border-radius:18px!important}
body.site .toolbar label,body.site .shop-toolbar label,body.site .admin-filter-bar label{display:grid!important;gap:5px!important;min-width:0!important}

/* Metrics and general grids */
body.site .value-grid,body.site .seller-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
body.site .metric-grid,body.site .dashboard-widget-grid,body.site .admin-summary-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
body.site .metric-card{position:relative!important;overflow:hidden!important;min-height:104px!important;display:grid!important;align-content:center!important}
body.site .metric-card::after{content:"";position:absolute;right:-24px;bottom:-30px;width:82px;height:82px;border-radius:50%;background:rgba(122,63,34,.035)!important}
body.site.admin-theme .metric-card::after{background:rgba(65,200,255,.05)!important}
body.site .metric-card span{display:block!important;margin:0 0 5px!important;color:var(--rsh-muted)!important;font-size:.73rem!important;font-weight:800!important}
body.site .metric-card strong{display:block!important;color:inherit!important;font-size:clamp(1.4rem,2.2vw,2rem)!important;line-height:1.05!important;letter-spacing:-.03em!important}
body.site.admin-theme .metric-card span{color:#9db8c9!important}
body.site .site-card{transition:transform .16s ease,box-shadow .16s ease!important}
body.site .site-card:hover{transform:translateY(-2px)!important;box-shadow:var(--rsh-shadow-lg)!important}
body.site .card-icon{width:40px!important;height:40px!important;margin-bottom:10px!important;border-radius:12px!important;background:rgba(122,63,34,.08)!important;color:var(--rsh-brand)!important}
body.site .card-value{margin:5px 0!important;color:var(--rsh-brand)!important;font-size:1.65rem!important}

/* Products */
body.site .product-grid,body.site .shop-product-grid,body.site .portal-product-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;gap:14px!important;align-items:stretch!important}
body.site .product-grid.compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important}
body.site .product-card{position:relative!important;display:flex!important;flex-direction:column!important;min-width:0!important;overflow:hidden!important;border:1px solid rgba(122,63,34,.10)!important;border-radius:18px!important;background:#fffdf9!important;box-shadow:0 8px 22px rgba(71,42,24,.075)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
body.site .product-card:hover{transform:translateY(-3px)!important;border-color:rgba(122,63,34,.18)!important;box-shadow:0 16px 34px rgba(71,42,24,.13)!important}
body.site .product-card>img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:1.25/1!important;padding:7px!important;object-fit:contain!important;background:linear-gradient(145deg,#fff,#f8f1e9)!important;border-bottom:1px solid rgba(122,63,34,.07)!important}
body.site .product-body{display:flex!important;flex:1!important;flex-direction:column!important;gap:6px!important;padding:13px!important}
body.site .product-body .pill{align-self:flex-start!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:4px 7px!important;border-radius:999px!important;background:#f5e8d8!important;color:var(--rsh-brand)!important;font-size:.64rem!important;font-weight:900!important}
body.site .product-body small{display:block!important;margin:0!important;color:#8b7464!important;font-size:.66rem!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.site .product-body h3{min-height:0!important;margin:0!important;color:var(--rsh-ink)!important;font-size:.96rem!important;line-height:1.22!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
body.site .product-body p{min-height:0!important;margin:0 0 2px!important;color:#766051!important;font-size:.78rem!important;line-height:1.4!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
body.site .price-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:auto!important;padding-top:5px!important}
body.site .price-row strong{color:var(--rsh-brand)!important;font-size:1.04rem!important;line-height:1!important;font-weight:950!important;white-space:nowrap!important}
body.site .favorite-button{position:absolute!important;z-index:3!important;top:9px!important;right:9px!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border:1px solid rgba(122,63,34,.10)!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:var(--rsh-brand)!important;box-shadow:0 5px 14px rgba(65,37,20,.11)!important;font-size:.9rem!important}
body.site.admin-theme .product-card{background:#f7fbfe!important;border-color:#dce9f0!important;color:#14283a!important}
body.site.admin-theme .product-body h3{color:#14283a!important}
body.site.admin-theme .product-body p{color:#637989!important}
body.site.admin-theme .price-row strong{color:#0d6e9e!important}

/* Shop pager */
body.site .shop-pager,body.site .admin-pager{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:0!important;padding:10px 12px!important;border:1px solid rgba(122,63,34,.10)!important;border-radius:15px!important;background:rgba(255,253,248,.78)!important;box-shadow:0 7px 20px rgba(65,39,22,.07)!important;color:var(--rsh-muted)!important;font-size:.78rem!important;font-weight:800!important}
body.site.admin-theme .shop-pager,body.site.admin-theme .admin-pager{border-color:var(--rsh-admin-line)!important;background:rgba(15,43,68,.85)!important;color:#b8cfdd!important}

/* Cart + checkout */
body.site .cart-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(330px,390px)!important;gap:14px!important;align-items:start!important}
body.site .checkout-card{position:sticky!important;top:94px!important;padding:20px!important;border-radius:21px!important}
body.site .cart-items{display:grid!important;gap:9px!important}
body.site .cart-row{display:grid!important;grid-template-columns:64px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;padding:10px!important;border:1px solid rgba(122,63,34,.08)!important;border-radius:14px!important;background:#fffaf4!important}
body.site .cart-row img{width:64px!important;height:64px!important;padding:3px!important;border-radius:11px!important;object-fit:contain!important;background:#fff!important}
body.site .summary-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px 0!important;border-bottom:1px solid rgba(122,63,34,.09)!important;color:var(--rsh-muted)!important}
body.site .summary-row strong{color:var(--rsh-ink)!important}
body.site .summary-row.total{margin-top:4px!important;padding-top:14px!important;color:var(--rsh-ink)!important}
body.site .summary-row.total strong{color:var(--rsh-brand)!important;font-size:1.34rem!important}
body.site .stacked-form{display:grid!important;gap:10px!important;margin-top:14px!important}
body.site .promo-box,.agent-shop-identity-banner,.pudo-rate-preview{border-radius:14px!important}

/* Tables: normal desktop */
body.site .table-wrap,body.site .data-table-wrap,body.site .document-table{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:14px!important}
body.site table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-size:.82rem!important}
body.site th,body.site td{padding:10px 11px!important;border-bottom:1px solid rgba(122,63,34,.075)!important;text-align:left!important;vertical-align:top!important}
body.site th{position:sticky;top:0;background:#f6e9d9!important;color:#60402d!important;font-size:.68rem!important;font-weight:900!important;letter-spacing:.035em!important;text-transform:uppercase!important;white-space:nowrap!important}
body.site tbody tr:hover td{background:rgba(122,63,34,.025)!important}
body.site.admin-theme table{background:#f8fbfd!important;color:#163047!important;border-radius:13px!important;overflow:hidden!important}
body.site.admin-theme th{background:#e8f1f6!important;color:#2f566f!important;border-bottom-color:#d7e5ee!important}
body.site.admin-theme td{color:#173247!important;border-bottom-color:#e0eaf0!important}
body.site.admin-theme tbody tr:hover td{background:#f1f7fa!important}
body.site .table-thumb{width:48px!important;height:48px!important;border-radius:10px!important;object-fit:contain!important;background:#fff!important}

/* Modals, drawers and chat */
body.site .modal,body.site .book-detail-modal{backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important}
body.site .modal{padding:16px!important;background:rgba(39,22,14,.48)!important}
body.site .modal-card{width:min(860px,100%)!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;padding:20px!important;border:1px solid rgba(122,63,34,.11)!important;border-radius:22px!important;background:#fffdf9!important;box-shadow:0 30px 90px rgba(30,17,10,.25)!important}
body.site .modal-product{display:grid!important;grid-template-columns:minmax(220px,300px) minmax(0,1fr)!important;gap:20px!important;align-items:start!important}
body.site .modal-product img{width:100%!important;max-height:430px!important;padding:8px!important;border-radius:16px!important;object-fit:contain!important;background:#fff!important}
body.site .quick-cart-drawer{width:min(430px,100vw)!important;background:#fffdf9!important;border-left:1px solid rgba(122,63,34,.12)!important;box-shadow:-20px 0 60px rgba(33,19,12,.18)!important}
body.site .quick-cart-head{background:#f8ebdc!important;border-bottom-color:rgba(122,63,34,.10)!important}
body.site .quick-cart-row{background:#fff!important;border-color:rgba(122,63,34,.10)!important}
body.site .chat-panel.floating-window{border:1px solid rgba(122,63,34,.12)!important;background:#fffdf9!important;box-shadow:0 24px 70px rgba(40,22,13,.24)!important}
body.site .float-action{min-height:48px!important;padding:11px 14px!important;border:1px solid rgba(255,255,255,.4)!important;border-radius:999px!important;background:linear-gradient(135deg,var(--rsh-brand-2),var(--rsh-brand))!important;color:#fff!important;box-shadow:0 12px 28px rgba(75,40,21,.24)!important;font-size:.82rem!important}
body.site.admin-theme .float-action{background:linear-gradient(135deg,#33c4f4,#116b9c)!important;color:#fff!important}

/* Alerts/status */
body.site .alert{padding:11px 13px!important;border-radius:13px!important;font-size:.82rem!important}
body.site .status-badge,body.site .status-pill{display:inline-flex!important;align-items:center!important;width:max-content!important;max-width:100%!important;padding:5px 8px!important;border-radius:999px!important;font-size:.68rem!important;line-height:1!important;font-weight:850!important}

/* Mobile top bar is injected by the shared layout */
.mobile-topbar{display:none}

/* Bookstore alignment with main system */
body.site .bookstore-hero,body.site .bookstore-toolbar,body.site .bookstore-steps{border-radius:22px!important}
body.site .bookstore-grid{gap:14px!important}
body.site .book-card{overflow:hidden!important;padding:0!important}
body.site .book-card-body{padding:16px!important}
body.site .book-cover-wrap{background:linear-gradient(145deg,#fff,#f4eadf)!important}
body.site .book-cover-wrap img{object-fit:contain!important}

/* Documents remain document-like */
body.site .document-page,body.site .invoice-one-page,body.site .packing-slip-square{color:#1f2933!important}

/* ---------------- DESKTOP REFINEMENT ---------------- */
@media(min-width:981px){
  body.site .mobile-app-nav,body.site .mobile-menu-button,body.site .sidebar-backdrop,body.site .sidebar-mobile-close,body.site .mobile-topbar{display:none!important}
  body.site.admin-theme .app-shell{grid-template-columns:246px minmax(0,1fr)!important}
}
@media(min-width:1320px){
  body.site .app-shell{grid-template-columns:268px minmax(0,1fr)!important;padding:20px!important;gap:20px!important}
  body.site.admin-theme .app-shell{grid-template-columns:254px minmax(0,1fr)!important}
  body.site .product-grid,body.site .shop-product-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))!important}
  body.site .product-grid.compact{grid-template-columns:repeat(auto-fill,minmax(205px,1fr))!important}
}

/* ---------------- TABLET / MOBILE APP SHELL ---------------- */
@media(max-width:980px){
  :root{--rsh-mobile-nav:70px}
  html{scroll-padding-top:70px!important;scroll-padding-bottom:calc(var(--rsh-mobile-nav) + 20px)!important}
  body.site{font-size:15px!important;padding:0!important;padding-bottom:calc(var(--rsh-mobile-nav) + 14px)!important;background:linear-gradient(160deg,#f9f1e6,#efd8b8)!important;overflow-x:hidden!important}
  body.site.admin-theme{background:linear-gradient(160deg,#071421,#0b2137)!important}
  body.site::before{display:none!important}
  body.site.sidebar-open{overflow:hidden!important}

  body.site .mobile-topbar{position:fixed!important;z-index:4600!important;top:8px!important;left:8px!important;right:8px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:52px!important;padding:6px 7px 6px 8px!important;border:1px solid rgba(122,63,34,.12)!important;border-radius:18px!important;background:rgba(255,253,248,.94)!important;box-shadow:0 9px 28px rgba(58,34,20,.13)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
  body.site.admin-theme .mobile-topbar{background:rgba(9,30,49,.94)!important;border-color:var(--rsh-admin-line)!important;box-shadow:0 11px 30px rgba(0,0,0,.25)!important}
  body.site .mobile-brand{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;color:var(--rsh-ink)!important}
  body.site.admin-theme .mobile-brand{color:#fff!important}
  body.site .mobile-brand img{width:38px!important;height:38px!important;padding:2px!important;border-radius:12px!important;object-fit:contain!important;background:#fff!important;box-shadow:0 4px 12px rgba(65,37,20,.09)!important}
  body.site .mobile-brand-copy{min-width:0!important}
  body.site .mobile-brand strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:.88rem!important;line-height:1.06!important;font-weight:950!important}
  body.site .mobile-brand small{display:block!important;margin-top:3px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--rsh-muted)!important;font-size:.65rem!important;line-height:1!important;font-weight:750!important}
  body.site.admin-theme .mobile-brand small{color:#91adbf!important}
  body.site .mobile-menu-button{position:static!important;inset:auto!important;display:inline-grid!important;place-items:center!important;grid-template-columns:20px auto!important;gap:5px!important;min-width:76px!important;min-height:39px!important;margin:0!important;padding:8px 10px!important;border:1px solid rgba(122,63,34,.14)!important;border-radius:12px!important;background:#f7e9d8!important;color:var(--rsh-brand)!important;box-shadow:none!important;font-size:.76rem!important;line-height:1!important;font-weight:950!important;z-index:auto!important}
  body.site.admin-theme .mobile-menu-button{background:rgba(65,200,255,.10)!important;color:#b7edff!important;border-color:rgba(65,200,255,.20)!important}
  body.site .mobile-menu-button .hamburger{font-size:1rem!important;color:inherit!important}

  body.site .app-shell{display:block!important;width:100%!important;max-width:100%!important;min-height:100dvh!important;margin:0!important;padding:70px 9px calc(var(--rsh-mobile-nav) + 10px)!important}
  body.site .content-shell{display:grid!important;gap:10px!important;width:100%!important;max-width:100%!important;padding:0!important}
  body.site .desktop-command-bar{display:none!important}

  /* Mobile full menu sheet */
  body.site .sidebar-backdrop{position:fixed!important;z-index:4700!important;inset:0!important;display:block!important;background:rgba(26,15,10,.46)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .18s ease,visibility .18s ease!important;backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important}
  body.site.admin-theme .sidebar-backdrop{background:rgba(0,7,13,.60)!important}
  body.site.sidebar-open .sidebar-backdrop{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  body.site .sidebar,body.site.admin-theme .sidebar,body.site.agent-theme .sidebar{position:fixed!important;z-index:4800!important;top:68px!important;left:8px!important;right:8px!important;bottom:calc(var(--rsh-mobile-nav) + 10px)!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:11px!important;border-radius:22px!important;background:#fffdf9!important;color:var(--rsh-ink)!important;border:1px solid rgba(122,63,34,.13)!important;box-shadow:0 28px 80px rgba(33,18,10,.26)!important;overflow-y:auto!important;transform:translateY(18px) scale(.985)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:transform .18s ease,opacity .18s ease,visibility .18s ease!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  body.site.admin-theme .sidebar{background:#0a2034!important;color:#fff!important;border-color:rgba(65,200,255,.20)!important;box-shadow:0 28px 80px rgba(0,0,0,.42)!important}
  body.site.sidebar-open .sidebar{transform:translateY(0) scale(1)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  body.site .brand-block{position:sticky!important;top:-11px!important;z-index:4!important;grid-template-columns:42px minmax(0,1fr) auto!important;margin:-11px -11px 9px!important;padding:11px!important;border-radius:22px 22px 0 0!important;background:#fffdf9!important;border-bottom:1px solid rgba(122,63,34,.10)!important}
  body.site.admin-theme .brand-block{background:#0a2034!important;border-bottom-color:rgba(65,200,255,.15)!important}
  body.site .brand-logo-wrap{width:42px!important;height:42px!important;border-radius:13px!important}
  body.site .brand-logo{width:39px!important;height:39px!important}
  body.site .brand-block span{color:var(--rsh-muted)!important}
  body.site.admin-theme .brand-block span{color:#91adbf!important}
  body.site .sidebar-mobile-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;margin:0!important;padding:6px 10px!important;border:1px solid rgba(122,63,34,.12)!important;border-radius:10px!important;background:#f3e4d3!important;color:var(--rsh-brand)!important;font-size:.73rem!important;font-weight:900!important}
  body.site.admin-theme .sidebar-mobile-close{background:rgba(65,200,255,.10)!important;color:#aeeaff!important;border-color:rgba(65,200,255,.18)!important}
  body.site .side-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.site .side-nav-group{grid-column:1/-1!important;margin:7px 5px 0!important}
  body.site .side-nav a{grid-template-columns:1fr!important;align-content:center!important;min-height:58px!important;padding:10px!important;border:1px solid rgba(122,63,34,.10)!important;border-radius:14px!important;background:#faf0e4!important;color:var(--rsh-ink)!important;box-shadow:none!important;transform:none!important}
  body.site .side-nav a>span{font-size:.86rem!important}
  body.site .side-nav a small{font-size:.65rem!important;text-align:left!important;color:#816756!important}
  body.site .side-nav a:hover,body.site .side-nav a.active{background:linear-gradient(135deg,var(--rsh-brand),#5b2e19)!important;border-color:var(--rsh-brand)!important;color:#fff!important;transform:none!important}
  body.site .side-nav a:hover small,body.site .side-nav a.active small{color:#f5deca!important}
  body.site.admin-theme .side-nav a{background:rgba(255,255,255,.045)!important;border-color:rgba(255,255,255,.055)!important;color:#edf8ff!important}
  body.site.admin-theme .side-nav a small{color:#8eabbf!important}
  body.site.admin-theme .side-nav a:hover,body.site.admin-theme .side-nav a.active{background:rgba(65,200,255,.16)!important;border-color:rgba(65,200,255,.28)!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--rsh-admin-accent)!important}
  body.site.admin-theme .side-nav a:hover small,body.site.admin-theme .side-nav a.active small{color:#afe9ff!important}
  body.site .sidebar-note{display:none!important}

  /* Bottom app nav */
  body.site .mobile-app-nav{position:fixed!important;z-index:4500!important;left:8px!important;right:8px!important;bottom:max(7px,env(safe-area-inset-bottom))!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;min-height:62px!important;margin:0!important;padding:6px!important;border:1px solid rgba(122,63,34,.12)!important;border-radius:20px!important;background:rgba(255,253,248,.96)!important;box-shadow:0 14px 36px rgba(55,31,18,.18)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
  body.site.admin-theme .mobile-app-nav{background:rgba(9,30,49,.96)!important;border-color:var(--rsh-admin-line)!important;box-shadow:0 16px 38px rgba(0,0,0,.30)!important}
  body.site .mobile-app-nav a,body.site .mobile-app-nav button{appearance:none!important;display:grid!important;place-items:center!important;align-content:center!important;gap:3px!important;min-width:0!important;min-height:50px!important;padding:5px 2px!important;border:0!important;border-radius:14px!important;background:transparent!important;color:#6c4d3a!important;font:inherit!important;text-decoration:none!important;box-shadow:none!important}
  body.site .mobile-app-nav span{display:block!important;font-size:1.05rem!important;line-height:1!important;filter:saturate(.8)!important}
  body.site .mobile-app-nav strong{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:inherit!important;font-size:.63rem!important;line-height:1!important;font-weight:900!important;letter-spacing:-.01em!important}
  body.site .mobile-app-nav a.active{background:#f1dfca!important;color:var(--rsh-brand)!important}
  body.site .mobile-app-nav button:active{background:#f1dfca!important}
  body.site.admin-theme .mobile-app-nav a,body.site.admin-theme .mobile-app-nav button{color:#9dbbcb!important}
  body.site.admin-theme .mobile-app-nav a.active{background:rgba(65,200,255,.13)!important;color:#79ddff!important}

  /* Core mobile spacing */
  body.site .agent-ticker-shell{margin:0!important;border-radius:12px!important}
  body.site .agent-ticker-track{padding:6px 0!important;font-size:.66rem!important}
  body.site .glass-panel{padding:15px!important;border-radius:18px!important}
  body.site .glass-card,body.site .panel,body.site .metric-card{padding:12px!important;border-radius:16px!important}
  body.site .page-header,body.site .dashboard-header{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:15px!important;border-radius:18px!important}
  body.site .page-header>p,body.site .dashboard-header>p{grid-column:auto!important}
  body.site h1,body.site .page-header h1,body.site .dashboard-header h1{font-size:clamp(1.55rem,7.2vw,2.35rem)!important;line-height:1.04!important;margin-bottom:2px!important}
  body.site h2{font-size:clamp(1.18rem,5vw,1.55rem)!important}
  body.site h3{font-size:.98rem!important}
  body.site p{line-height:1.47!important}
  body.site .eyebrow{font-size:.61rem!important;margin-bottom:3px!important;padding:4px 7px!important}
  body.site .inline-heading{align-items:flex-start!important;gap:7px!important}

  /* Home mobile */
  body.site .hero-grid{grid-template-columns:1fr!important;gap:16px!important;min-height:0!important;padding:18px!important}
  body.site .hero-grid::after{display:none!important}
  body.site .hero-text{margin-bottom:15px!important;font-size:.94rem!important;line-height:1.5!important}
  body.site .hero-card{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;padding:8px!important;border-radius:17px!important;transform:none!important}
  body.site .hero-card img{width:92px!important;height:92px!important;max-height:92px!important;border-radius:13px!important}
  body.site .hero-card strong{margin:0!important}
  body.site .hero-card span{margin:4px 0 0!important;font-size:.74rem!important}

  /* Mobile grids */
  body.site .value-grid,body.site .seller-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.site .metric-grid,body.site .dashboard-widget-grid,body.site .admin-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.site .metric-card{min-height:86px!important;padding:11px!important}
  body.site .metric-card span{font-size:.65rem!important}
  body.site .metric-card strong{font-size:1.24rem!important}
  body.site .toolbar,body.site .shop-toolbar,body.site .admin-filter-bar,body.site .book-filter-bar,body.site .order-filter-bar,body.site .batch-toolbar,body.site .filter-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important;border-radius:16px!important}
  body.site .form-grid,body.site .form-grid-two,body.site .settings-form,body.site .mini-form{grid-template-columns:1fr!important;gap:9px!important;min-width:0!important}
  body.site .form-grid .span-2,body.site .settings-form .span-2,body.site .file-line{grid-column:auto!important}
  body.site .button-row,body.site .row-actions,body.site .admin-quick-actions,body.site .admin-export-strip,body.site .compact-doc-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
  body.site .button-row .btn,body.site .row-actions .btn{flex:1 1 130px!important;width:auto!important}

  /* Mobile product cards stay two columns */
  body.site .product-grid,body.site .product-grid.compact,body.site .shop-product-grid,body.site .portal-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.site .product-card{border-radius:15px!important}
  body.site .product-card>img{aspect-ratio:1.08/1!important;max-height:none!important;padding:5px!important}
  body.site .product-body{gap:5px!important;padding:9px!important}
  body.site .product-body .pill{padding:3px 6px!important;font-size:.58rem!important}
  body.site .product-body small{font-size:.61rem!important}
  body.site .product-body h3{font-size:.82rem!important;line-height:1.18!important;min-height:1.94em!important}
  body.site .product-body p{display:none!important}
  body.site .price-row{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:6px!important;padding-top:2px!important}
  body.site .price-row strong{font-size:.92rem!important}
  body.site .price-row .btn{width:100%!important;min-height:34px!important;padding:7px 6px!important;font-size:.72rem!important}
  body.site .favorite-button{width:30px!important;height:30px!important;top:6px!important;right:6px!important}

  /* Cart mobile */
  body.site .cart-layout{grid-template-columns:1fr!important;gap:10px!important}
  body.site .checkout-card{position:static!important;top:auto!important;padding:14px!important}
  body.site .cart-row{grid-template-columns:54px minmax(0,1fr)!important;gap:8px!important}
  body.site .cart-row img{width:54px!important;height:54px!important}
  body.site .cart-row>.qty-control,body.site .cart-row>.row-form{grid-column:1/-1!important;justify-content:flex-end!important}

  /* Responsive table cards. Labels are injected by rsh-2026-redesign.js */
  body.site .table-wrap:not(.keep-table) table,body.site .data-table-wrap:not(.keep-table) table{display:block!important;width:100%!important;min-width:0!important;background:transparent!important}
  body.site .table-wrap:not(.keep-table) thead,body.site .data-table-wrap:not(.keep-table) thead{display:none!important}
  body.site .table-wrap:not(.keep-table) tbody,body.site .data-table-wrap:not(.keep-table) tbody{display:grid!important;gap:8px!important;width:100%!important}
  body.site .table-wrap:not(.keep-table) tr,body.site .data-table-wrap:not(.keep-table) tr{display:grid!important;grid-template-columns:1fr!important;gap:0!important;width:100%!important;margin:0!important;padding:9px 10px!important;border:1px solid rgba(122,63,34,.10)!important;border-radius:14px!important;background:#fffaf4!important;box-shadow:0 5px 14px rgba(65,38,21,.055)!important}
  body.site.admin-theme .table-wrap:not(.keep-table) tr,body.site.admin-theme .data-table-wrap:not(.keep-table) tr{border-color:rgba(65,200,255,.12)!important;background:#f7fbfd!important;box-shadow:none!important}
  body.site .table-wrap:not(.keep-table) td,body.site .data-table-wrap:not(.keep-table) td{display:grid!important;grid-template-columns:minmax(92px,.42fr) minmax(0,1fr)!important;gap:10px!important;align-items:start!important;width:100%!important;min-width:0!important;padding:6px 0!important;border:0!important;border-bottom:1px solid rgba(122,63,34,.065)!important;background:transparent!important;color:var(--rsh-ink)!important;font-size:.78rem!important;line-height:1.35!important;overflow-wrap:anywhere!important}
  body.site .table-wrap:not(.keep-table) td:last-child,body.site .data-table-wrap:not(.keep-table) td:last-child{border-bottom:0!important}
  body.site .table-wrap:not(.keep-table) td::before,body.site .data-table-wrap:not(.keep-table) td::before{content:attr(data-label)!important;color:#8d7564!important;font-size:.63rem!important;line-height:1.25!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.03em!important}
  body.site.admin-theme .table-wrap:not(.keep-table) td,body.site.admin-theme .data-table-wrap:not(.keep-table) td{color:#173247!important;border-bottom-color:#e1ebf0!important}
  body.site.admin-theme .table-wrap:not(.keep-table) td::before,body.site.admin-theme .data-table-wrap:not(.keep-table) td::before{color:#5e7b8d!important}
  body.site .table-wrap:not(.keep-table) td[colspan],body.site .data-table-wrap:not(.keep-table) td[colspan]{grid-template-columns:1fr!important}
  body.site .table-wrap:not(.keep-table) td[colspan]::before,body.site .data-table-wrap:not(.keep-table) td[colspan]::before{display:none!important}

  /* Reduce floating clutter because cart has its own bottom-nav item */
  body.site .quick-cart-widget{display:none!important}
  body.site .chat-widget{right:11px!important;bottom:calc(var(--rsh-mobile-nav) + 15px)!important;z-index:4400!important}
  body.site .chat-widget .float-action{width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;border-radius:50%!important}
  body.site .chat-widget .float-action>span:not(.float-icon){display:none!important}
  body.site .chat-panel.floating-window{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(var(--rsh-mobile-nav) + 12px)!important;width:auto!important;height:min(520px,calc(100dvh - var(--rsh-mobile-nav) - 92px))!important;max-width:none!important;max-height:none!important;min-width:0!important;border-radius:20px!important;resize:none!important}
  body.site .admin-floating-chat-panel,body.site .agent-floating-chat-panel{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;min-width:0!important;max-height:calc(100dvh - var(--rsh-mobile-nav) - 20px)!important;resize:none!important}
}

@media(max-width:620px){
  body.site .toolbar,body.site .shop-toolbar,body.site .admin-filter-bar,body.site .book-filter-bar,body.site .order-filter-bar,body.site .batch-toolbar,body.site .filter-toolbar{grid-template-columns:1fr!important}
  body.site .inline-heading{display:grid!important;grid-template-columns:1fr!important}
  body.site .value-grid{grid-template-columns:1fr!important}
  body.site .bookstore-grid{grid-template-columns:1fr!important}
  body.site .modal-product{grid-template-columns:1fr!important}
  body.site .modal-product img{max-height:280px!important}
  body.site .shop-pager,body.site .admin-pager{display:grid!important;grid-template-columns:1fr!important;text-align:center!important}
  body.site .shop-pager>div,body.site .admin-pager>div{justify-content:center!important}
}

@media(max-width:390px){
  body.site .mobile-menu-button{min-width:42px!important;grid-template-columns:1fr!important;padding:8px!important}
  body.site .mobile-menu-button span:last-child{display:none!important}
  body.site .mobile-brand small{display:none!important}
  body.site .metric-card{padding:9px!important}
  body.site .product-grid,body.site .product-grid.compact,body.site .shop-product-grid,body.site .portal-product-grid{gap:7px!important}
  body.site .product-body{padding:8px!important}
  body.site .product-body h3{font-size:.78rem!important}
}

/* Keep print output clean and unmodified by application chrome */
@media print{
  body.site{background:#fff!important;padding:0!important}
  body.site::before,.mobile-topbar,.sidebar,.mobile-menu-button,.mobile-app-nav,.sidebar-backdrop,.desktop-command-bar,.agent-ticker-shell,.chat-widget,.quick-cart-widget,.admin-floating-chat-widget,.agent-floating-chat-widget{display:none!important}
  body.site .app-shell,body.site .content-shell{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body.site .document-page{box-shadow:none!important}
}

/* ================================================================
   FINAL AUTHORITY: neutralize legacy late desktop overrides (ZIP89)
   ================================================================ */
@media(min-width:981px){
  :root{
    --rsh-final-sidebar:276px;
    --rsh-final-left:310px;
    --rsh-final-right:18px;
  }
  html{font-size:16px!important}
  body.site,body.site.public-theme,body.site.agent-theme,body.site.admin-theme{font-size:16px!important}

  body.site .app-shell,
  body.site.public-theme .app-shell,
  body.site.agent-theme .app-shell,
  body.site.admin-theme .app-shell{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:18px var(--rsh-final-right) 30px var(--rsh-final-left)!important;
  }
  body.site .content-shell,
  body.site.public-theme .content-shell,
  body.site.agent-theme .content-shell,
  body.site.admin-theme .content-shell{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:none!important;
    gap:16px!important;
    margin:0!important;
    padding:0!important;
  }
  body.site .sidebar,
  body.site.public-theme .sidebar,
  body.site.public-theme .sidebar-public,
  body.site.agent-theme .sidebar,
  body.site.admin-theme .sidebar{
    position:fixed!important;
    z-index:90!important;
    top:16px!important;
    bottom:16px!important;
    left:16px!important;
    right:auto!important;
    width:var(--rsh-final-sidebar)!important;
    max-width:var(--rsh-final-sidebar)!important;
    height:auto!important;
    max-height:none!important;
    padding:13px!important;
    border-radius:24px!important;
    overflow:auto!important;
  }
  body.site.public-theme .sidebar,
  body.site.public-theme .sidebar-public{
    background:linear-gradient(165deg,#6f4328,#4b2a1b)!important;
    border:1px solid rgba(255,244,226,.20)!important;
    color:#fff9f0!important;
  }
  body.site.agent-theme .sidebar{
    background:linear-gradient(165deg,#58301e,#331c13)!important;
    border:1px solid rgba(255,244,226,.16)!important;
    color:#fff9f0!important;
  }
  body.site.admin-theme .sidebar{
    background:linear-gradient(165deg,#0b2135,#061421)!important;
    border:1px solid var(--rsh-admin-line)!important;
    color:var(--rsh-admin-text)!important;
  }
  body.site .sidebar .brand-block,
  body.site.public-theme .sidebar .brand-block,
  body.site.public-theme .sidebar-public .brand-block,
  body.site.agent-theme .sidebar .brand-block,
  body.site.admin-theme .sidebar .brand-block{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr)!important;
    align-items:center!important;
    gap:10px!important;
    min-height:0!important;
    margin:0 0 10px!important;
    padding:7px 5px 13px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    border-radius:0!important;
    background:transparent!important;
  }
  body.site .sidebar .brand-logo-wrap,
  body.site.public-theme .sidebar .brand-logo-wrap,
  body.site.agent-theme .sidebar .brand-logo-wrap,
  body.site.admin-theme .sidebar .brand-logo-wrap{
    width:48px!important;height:48px!important;min-width:48px!important;border-radius:15px!important;background:#fff!important;box-shadow:0 6px 18px rgba(0,0,0,.12)!important
  }
  body.site .sidebar .brand-logo,
  body.site.public-theme .sidebar .brand-logo,
  body.site.agent-theme .sidebar .brand-logo,
  body.site.admin-theme .sidebar .brand-logo{
    width:44px!important;height:44px!important;border-radius:12px!important;object-fit:contain!important
  }
  body.site .sidebar .brand-block strong,
  body.site.public-theme .sidebar .brand-block strong,
  body.site.agent-theme .sidebar .brand-block strong,
  body.site.admin-theme .sidebar .brand-block strong{font-size:.96rem!important;line-height:1.1!important;color:#fff!important}
  body.site .sidebar .brand-block span,
  body.site.public-theme .sidebar .brand-block span,
  body.site.agent-theme .sidebar .brand-block span,
  body.site.admin-theme .sidebar .brand-block span{font-size:.70rem!important;line-height:1.1!important;color:rgba(255,255,255,.68)!important}
  body.site .sidebar .side-nav,
  body.site.public-theme .sidebar .side-nav,
  body.site.agent-theme .sidebar .side-nav,
  body.site.admin-theme .sidebar .side-nav{gap:5px!important;padding:0!important;overflow:visible!important}
  body.site .sidebar .side-nav a,
  body.site.public-theme .sidebar .side-nav a,
  body.site.agent-theme .sidebar .side-nav a,
  body.site.admin-theme .sidebar .side-nav a{
    min-height:42px!important;padding:8px 10px!important;border-radius:12px!important
  }
  body.site .sidebar .side-nav a span,
  body.site.public-theme .sidebar .side-nav a span,
  body.site.agent-theme .sidebar .side-nav a span,
  body.site.admin-theme .sidebar .side-nav a span{font-size:.82rem!important;line-height:1.12!important;white-space:normal!important}
  body.site .sidebar .side-nav a small,
  body.site.public-theme .sidebar .side-nav a small,
  body.site.agent-theme .sidebar .side-nav a small,
  body.site.admin-theme .sidebar .side-nav a small{font-size:.63rem!important;line-height:1.05!important;max-width:82px!important;white-space:normal!important}

  body.site .desktop-command-bar,
  body.site.public-theme .desktop-command-bar,
  body.site.agent-theme .desktop-command-bar,
  body.site.admin-theme .desktop-command-bar{
    min-height:58px!important;height:auto!important;padding:9px 10px 9px 15px!important;border-radius:19px!important;gap:14px!important
  }
  body.site .command-copy strong,body.site.public-theme .command-copy strong,body.site.agent-theme .command-copy strong,body.site.admin-theme .command-copy strong{font-size:.83rem!important;line-height:1.12!important}
  body.site .command-copy span,body.site.public-theme .command-copy span,body.site.agent-theme .command-copy span,body.site.admin-theme .command-copy span{font-size:.68rem!important;line-height:1.2!important;font-weight:650!important}
  body.site .command-actions,body.site.public-theme .command-actions,body.site.agent-theme .command-actions,body.site.admin-theme .command-actions{gap:5px!important;flex-wrap:nowrap!important;overflow-x:auto!important}
  body.site .command-actions a,body.site.public-theme .command-actions a,body.site.agent-theme .command-actions a,body.site.admin-theme .command-actions a{min-height:34px!important;padding:6px 10px!important;font-size:.70rem!important}

  body.site .agent-ticker-shell,
  body.site.public-theme .agent-ticker-shell,
  body.site.agent-theme .agent-ticker-shell,
  body.site.admin-theme .agent-ticker-shell{height:auto!important;min-height:31px!important;border-radius:14px!important}
  body.site .agent-ticker-track,
  body.site.public-theme .agent-ticker-track,
  body.site.agent-theme .agent-ticker-track,
  body.site.admin-theme .agent-ticker-track{height:auto!important;padding:7px 0!important;font-size:.70rem!important;line-height:1.15!important}
  body.site .agent-ticker-title,body.site .agent-ticker-item,body.site .agent-ticker-praise{line-height:1.15!important;padding-inline:0!important}

  body.site.agent-theme .dashboard-header,
  body.site.agent-theme .dashboard-header.warm-header{min-height:0!important;padding:24px 26px!important;gap:18px!important}
  body.site.agent-theme .dashboard-header h1{font-size:clamp(2rem,3.2vw,3.25rem)!important;line-height:1.01!important}
  body.site.agent-theme .dashboard-header p{font-size:.96rem!important;line-height:1.5!important}
  body.site.agent-theme .top-agent-celebration{min-height:0!important;padding:20px 22px!important;gap:18px!important}
  body.site.agent-theme .top-agent-celebration h2{font-size:clamp(1.55rem,2.1vw,2.3rem)!important;line-height:1.05!important}
  body.site.agent-theme .top-agent-celebration p,body.site.agent-theme .top-agent-celebration small{font-size:.90rem!important;line-height:1.42!important}

  body.site.admin-theme .metric-grid,
  body.site.admin-theme .dashboard-widget-grid,
  body.site.admin-theme .admin-summary-grid,
  body.site.admin-theme .metric-grid.compact-metrics{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))!important;gap:12px!important}
  body.site.admin-theme .metric-card,
  body.site.admin-theme .dashboard-widget-grid .metric-card,
  body.site.admin-theme .admin-summary-grid .metric-card{min-height:104px!important;padding:16px!important}
  body.site.admin-theme .admin-grid.fullwidth-grid,
  body.site.admin-theme .admin-dashboard-exports,
  body.site.admin-theme .admin-grid:not(.three-cols){grid-template-columns:repeat(auto-fit,minmax(360px,1fr))!important;gap:15px!important}
}

@media(max-width:620px){
  body.site .value-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:340px){
  body.site .value-grid,body.site .product-grid,body.site .product-grid.compact,body.site .shop-product-grid,body.site .portal-product-grid{grid-template-columns:1fr!important}
}

/* Final responsive authority: compact desktop navigation and deliberate mobile value cards. */
@media(min-width:981px){
  body.site .sidebar .side-nav,
  body.site.public-theme .sidebar .side-nav,
  body.site.public-theme .sidebar-public .side-nav,
  body.site.agent-theme .sidebar .side-nav,
  body.site.admin-theme .sidebar .side-nav{
    flex:0 0 auto!important;
    align-content:start!important;
    grid-auto-rows:minmax(42px,auto)!important;
  }
}
@media(max-width:620px){
  body.site.public-theme .value-grid,
  body.site.agent-theme .value-grid,
  body.site.admin-theme .value-grid,
  body.site.page-home .value-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.site .value-grid > :last-child:nth-child(odd){grid-column:1/-1!important}
}
@media(max-width:340px){
  body.site.public-theme .value-grid,
  body.site.agent-theme .value-grid,
  body.site.admin-theme .value-grid,
  body.site.page-home .value-grid{
    grid-template-columns:1fr!important;
  }
  body.site .value-grid > :last-child:nth-child(odd){grid-column:auto!important}
}

/* Admin desktop filters: compact control deck instead of a tall form stack. */
@media(min-width:981px){
  body.site.admin-theme .zip29-admin-filter{
    display:grid!important;
    grid-template-columns:minmax(280px,2fr) minmax(150px,1fr) repeat(3,minmax(130px,.82fr)) auto!important;
    align-items:end!important;
    gap:10px!important;
    padding:13px!important;
  }
  body.site.admin-theme .zip29-admin-filter label{
    display:grid!important;
    gap:5px!important;
    min-width:0!important;
    margin:0!important;
  }
  body.site.admin-theme .zip29-admin-filter input,
  body.site.admin-theme .zip29-admin-filter select{
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
  }
  body.site.admin-theme .zip29-admin-filter > button{
    min-height:44px!important;
    padding:9px 16px!important;
    border-radius:13px!important;
    align-self:end!important;
  }
  body.site.admin-theme .zip29-admin-filter .filter-note{
    grid-column:1/-1!important;
    margin:0!important;
    padding:0 2px!important;
    font-size:.74rem!important;
  }
}

/* ==================================================================
   MOBILE MENU STACKING FIX - 2026-09-15
   The sidebar is rendered inside .app-shell while the backdrop is a
   sibling of .app-shell. A z-index on .app-shell created a stacking
   context that trapped the sidebar underneath the backdrop on mobile.
   Remove that stacking context so the fixed sidebar can sit above the
   backdrop, and use a simple dim layer instead of blurring the screen.
   ================================================================== */
@media(max-width:980px){
  body.site .app-shell{
    position:static!important;
    z-index:auto!important;
    isolation:auto!important;
  }

  body.site .sidebar-backdrop,
  body.site.sidebar-open .sidebar-backdrop{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  body.site.sidebar-open #appSidebar{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}

/* ================================================================
   ADMIN READABILITY PASS - 2026-09-18
   Final contrast/legibility authority for the admin control centre.
   Keeps light data surfaces dark-on-light and dark dashboard surfaces
   bright-on-dark so inherited theme colours cannot wash text out.
   ================================================================ */
body.site.admin-theme{
  --rsh-admin-text:#f7fbff;
  --rsh-admin-muted:#c6d9e6;
  --admin-text:#f7fbff;
  --admin-muted:#c6d9e6;
  --admin-faint:#b6cbd9;
}

/* Dark dashboard surfaces */
body.site.admin-theme .dashboard-header,
body.site.admin-theme .page-header,
body.site.admin-theme .glass-panel,
body.site.admin-theme .glass-card,
body.site.admin-theme .panel,
body.site.admin-theme .dark-panel,
body.site.admin-theme .metric-card,
body.site.admin-theme .admin-dashboard-section,
body.site.admin-theme .report-card-grid > article,
body.site.admin-theme .audit-list li,
body.site.admin-theme .admin-export-strip,
body.site.admin-theme .admin-pager,
body.site.admin-theme .shop-pager,
body.site.admin-theme .toolbar,
body.site.admin-theme .filter-toolbar,
body.site.admin-theme .admin-filter-bar,
body.site.admin-theme .book-filter-bar,
body.site.admin-theme .order-filter-bar,
body.site.admin-theme .batch-toolbar{
  color:#f7fbff!important;
}
body.site.admin-theme .content-shell h1,
body.site.admin-theme .content-shell h2,
body.site.admin-theme .content-shell h3,
body.site.admin-theme .content-shell h4,
body.site.admin-theme .content-shell legend,
body.site.admin-theme .content-shell summary{
  color:#ffffff!important;
}
body.site.admin-theme .content-shell p,
body.site.admin-theme .content-shell .mini-note,
body.site.admin-theme .content-shell .muted,
body.site.admin-theme .content-shell .help-text,
body.site.admin-theme .content-shell .filter-note{
  color:#c8dce8!important;
}
body.site.admin-theme .content-shell small{
  color:#bdd2df!important;
  opacity:1!important;
}
body.site.admin-theme .content-shell label,
body.site.admin-theme .toolbar label,
body.site.admin-theme .filter-toolbar label,
body.site.admin-theme .admin-filter-bar label,
body.site.admin-theme .book-filter-bar label,
body.site.admin-theme .order-filter-bar label,
body.site.admin-theme .batch-toolbar label{
  color:#d7e7f1!important;
  opacity:1!important;
}
body.site.admin-theme .check-line{color:#eef8ff!important;}
body.site.admin-theme .metric-card span{color:#c7dbe7!important;}
body.site.admin-theme .metric-card small{color:#bcd1de!important;opacity:1!important;}
body.site.admin-theme .admin-section-heading > span,
body.site.admin-theme .audit-list li span,
body.site.admin-theme .report-split > article span{color:#bfd4e2!important;}
body.site.admin-theme .side-nav-group{color:#8edfff!important;opacity:1!important;}
body.site.admin-theme .side-nav a small{color:#b5cbd9!important;opacity:1!important;}
body.site.admin-theme .command-copy span{color:#c3d8e5!important;}
body.site.admin-theme .sidebar-note{color:#b9cfdd!important;}

/* Controls: preserve dark readable text on the light form fields. */
body.site.admin-theme input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
body.site.admin-theme select,
body.site.admin-theme textarea{
  background:#f8fbfe!important;
  color:#10283a!important;
  -webkit-text-fill-color:#10283a!important;
}
body.site.admin-theme input::placeholder,
body.site.admin-theme textarea::placeholder{
  color:#536b7c!important;
  -webkit-text-fill-color:#536b7c!important;
  opacity:1!important;
}
body.site.admin-theme select option{background:#ffffff!important;color:#10283a!important;}
body.site.admin-theme input:disabled,
body.site.admin-theme select:disabled,
body.site.admin-theme textarea:disabled,
body.site.admin-theme textarea[readonly]{
  background:#dce7ed!important;
  color:#40596b!important;
  -webkit-text-fill-color:#40596b!important;
  opacity:1!important;
}

/* Light data surfaces: override the dark-panel text colours inside tables/cards. */
body.site.admin-theme table,
body.site.admin-theme .table-wrap table,
body.site.admin-theme .data-table-wrap table{
  color:#163047!important;
}
body.site.admin-theme th{color:#294f68!important;background:#e5f0f6!important;}
body.site.admin-theme td,
body.site.admin-theme td p,
body.site.admin-theme td small,
body.site.admin-theme td span:not(.status-badge):not(.status-pill):not(.pill):not(.bg-severity):not(.bg-source),
body.site.admin-theme td strong,
body.site.admin-theme td summary{
  color:#173247!important;
}
body.site.admin-theme td small{color:#526f82!important;opacity:1!important;}
body.site.admin-theme td a:not(.btn){color:#005f8d!important;font-weight:800!important;}
body.site.admin-theme .modal-card,
body.site.admin-theme .modal-card h1,
body.site.admin-theme .modal-card h2,
body.site.admin-theme .modal-card h3,
body.site.admin-theme .modal-card h4,
body.site.admin-theme .modal-card p,
body.site.admin-theme .modal-card small,
body.site.admin-theme .modal-card label{
  color:#173247!important;
}
body.site.admin-theme .modal-card p,
body.site.admin-theme .modal-card small,
body.site.admin-theme .modal-card label{color:#526f82!important;}

/* Buttons and badges need text that remains visible at a glance. */
body.site.admin-theme .btn:not(.danger),
body.site.admin-theme button.btn:not(.danger),
body.site.admin-theme a.btn:not(.danger){
  color:#f8fdff!important;
  text-shadow:0 1px 1px rgba(0,0,0,.34)!important;
}
body.site.admin-theme .btn.primary,
body.site.admin-theme button.btn.primary,
body.site.admin-theme a.btn.primary{
  background:linear-gradient(135deg,#1687b6,#075778)!important;
  color:#ffffff!important;
  border-color:#53caef!important;
}
body.site.admin-theme .btn.secondary,
body.site.admin-theme button.btn.secondary,
body.site.admin-theme a.btn.secondary{
  background:#173b56!important;
  color:#f0f9ff!important;
  border-color:#4b7792!important;
}
body.site.admin-theme .status-badge,
body.site.admin-theme .status-pill,
body.site.admin-theme .pill{opacity:1!important;}

/* Frequently used admin widgets that previously used very faint copy. */
body.site.admin-theme.page-admin_email .agent-mail-choice small,
body.site.admin-theme.page-admin_email .agent-mail-agent-check small,
body.site.admin-theme.page-admin_email .agent-mail-message-card > summary small,
body.site.admin-theme.page-admin_email .agent-mail-delivery-grid span,
body.site.admin-theme.page-admin_email .agent-mail-empty,
body.site.admin-theme.page-admin_email .agent-mail-signature-note span{
  color:#c3d8e5!important;
}
body.site.admin-theme.page-admin_email .agent-mail-message-body p{color:#c8dce8!important;}
body.site.admin-theme .bg-filter-note,
body.site.admin-theme .bg-scan-summary span,
body.site.admin-theme .bg-pager{color:#c5d9e6!important;}

/* Legibility floor: admin remains compact, but no longer microscopic. */
body.site.admin-theme .content-shell p{font-size:max(.84rem,13px)!important;}
body.site.admin-theme .content-shell small,
body.site.admin-theme .mini-note{font-size:max(.74rem,12px)!important;line-height:1.42!important;}
body.site.admin-theme .content-shell label{font-size:max(.80rem,13px)!important;line-height:1.3!important;}
body.site.admin-theme .metric-card span{font-size:max(.72rem,12px)!important;line-height:1.25!important;}
body.site.admin-theme .side-nav a span{font-size:max(.84rem,13px)!important;}
body.site.admin-theme .side-nav a small{font-size:max(.68rem,11px)!important;line-height:1.15!important;}
body.site.admin-theme .status-badge,
body.site.admin-theme .status-pill,
body.site.admin-theme .pill{font-size:max(.70rem,11px)!important;line-height:1.15!important;}
body.site.admin-theme th{font-size:max(.70rem,11px)!important;}
body.site.admin-theme td{font-size:max(.80rem,13px)!important;line-height:1.4!important;}

@media(max-width:980px){
  body.site.admin-theme .mobile-brand small{color:#b8cfdd!important;}
  body.site.admin-theme .side-nav a small{color:#b7cdda!important;}
  body.site.admin-theme .mobile-app-nav a,
  body.site.admin-theme .mobile-app-nav button{color:#bfd3df!important;}
  body.site.admin-theme .mobile-app-nav a.active{color:#9ee8ff!important;}
}

/* ===== 2026-09-18 ADMIN BOOK SALES - FORCE ACTION COLUMN CONTRAST ===== */
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"]{
  color:#102f44!important;
}
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions{
  align-items:flex-start!important;
}
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions .btn,
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions button,
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions a{
  background:#0b587d!important;
  background-image:none!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border:1px solid #064263!important;
  opacity:1!important;
  text-shadow:none!important;
  box-shadow:0 5px 12px rgba(6,66,99,.22)!important;
  font-weight:900!important;
  font-size:.78rem!important;
  line-height:1.2!important;
  min-height:32px!important;
  padding:7px 11px!important;
  border-radius:9px!important;
  text-decoration:none!important;
}
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions .btn:hover,
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions button:hover,
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions a:hover{
  background:#073f5b!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  filter:none!important;
}
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions .btn:focus-visible,
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions button:focus-visible,
body.site.admin-theme.page-admin_books .bookstore-sales-table td[data-label="Aksies"] .bookstore-sale-actions a:focus-visible{
  outline:3px solid #31bde9!important;
  outline-offset:2px!important;
}

/* ===== 2026-09-18 HOMEPAGE ANIMATED AD ===== */
body.site .home-ad-section{
  position:relative;
}
body.site .home-ad-heading{
  text-align:center;
  margin-inline:auto;
}
body.site .home-ad-heading h2{
  margin-inline:auto;
}
body.site .home-ad-card{
  width:min(100%,430px);
  margin:18px auto 0;
  padding:14px!important;
  border-radius:30px!important;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(248,237,224,.96))!important;
  box-shadow:0 22px 52px rgba(75,43,22,.15)!important;
}
body.site .home-ad-animation{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:358/642;
  object-fit:cover;
  border-radius:20px;
  background:#eee2d4;
}
@media(max-width:640px){
  body.site .home-ad-section{
    margin-top:18px!important;
  }
  body.site .home-ad-heading{
    margin-bottom:10px!important;
  }
  body.site .home-ad-heading h2{
    font-size:1.35rem!important;
  }
  body.site .home-ad-card{
    width:min(100%,390px);
    margin-top:10px;
    padding:8px!important;
    border-radius:22px!important;
  }
  body.site .home-ad-animation{
    border-radius:16px;
  }
}
