/* DMEDesk theme A — product UI layer for the Acme demo pages.
   Loaded AFTER styles.css on demo pages only (body.theme-a). Admin pages do not load it.
   Concept A palette and type, kept table-first and dense. */
body.theme-a{
  --canvas:#F7F1E8; --app:#F7F1E8; --surface:#FFFCF7; --ink:#1D2C38; --muted:#4E5A63;
  --powder:#EAD9C0; --ice:#EFE5D6; --line:rgba(29,44,56,.12); --line-2:rgba(29,44,56,.22);
  --action:#1D2C38; --featured:#1D2C38;
  --success:#2E6F52; --success-bg:#E3EEE5; --warning:#8F5410; --warning-bg:#F6E7CF;
  --tan:#EAD9C0; --paper:#FFFCF7; --cream-2:#EFE5D6;
  --sans:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --shadow:0 1px 0 rgba(29,44,56,.04),0 14px 36px -24px rgba(29,44,56,.30);
  background:var(--canvas);color:var(--ink);font:400 14px/1.55 var(--sans);
}
.theme-a :is(a,button,input,summary):focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.theme-a h1,.theme-a h2,.theme-a h3{font-weight:500;letter-spacing:-.025em}
.theme-a p,.theme-a small,.theme-a .muted{color:var(--muted)}
.theme-a small,.theme-a .tiny{font-size:12px}
.theme-a .eyebrow{font-size:11.5px;font-weight:600;letter-spacing:.09em;color:var(--muted);margin-bottom:14px}

/* banner */
.theme-a .banner{background:var(--ink);color:#E9E2D6;font-size:12px;letter-spacing:.05em;padding:8px 16px;min-height:0;text-align:center}
.theme-a.app .banner{background:var(--ink);color:#E9E2D6;border:0;text-align:left;padding:8px 32px;font-size:11.5px}

/* buttons */
.theme-a .button,.theme-a button{border-radius:999px;border:1px solid var(--line-2);background:var(--paper);color:var(--ink);font:500 13.5px/1.2 var(--sans);min-height:40px;padding:10px 18px;gap:10px;box-shadow:none;transition:background .2s,transform .2s,box-shadow .2s}
.theme-a .button:hover,.theme-a button:hover{background:#fff}
.theme-a .button.primary,.theme-a button.primary{background:var(--ink);border-color:var(--ink);color:#FFFCF7}
.theme-a .button.primary:hover,.theme-a button.primary:hover{background:#2A3E4F;box-shadow:0 10px 22px -12px rgba(29,44,56,.6)}
.theme-a .button.small,.theme-a button.small{min-height:32px;padding:6px 13px;font-size:12.5px}
.theme-a button:disabled{opacity:.55;cursor:not-allowed}
.theme-a .arrow{font-size:15px}

/* app chrome */
.theme-a.app{background:var(--canvas)}
.theme-a .side{width:240px;background:#FBF7F0;border-right:1px solid var(--line);padding:24px 14px}
.theme-a .side .brand{padding:0 10px 22px}
.theme-a .side .brand img{width:150px;height:auto}
.theme-a .tenant{font-size:13px;padding:12px 10px;margin-bottom:14px;border-color:var(--line)}
.theme-a .tenant strong{font-weight:600}
.theme-a .tenant small{font-size:12px}
.theme-a .nav-label{font-size:10.5px;font-weight:600;color:#6B747B;letter-spacing:.1em;padding:12px 12px 6px}
.theme-a .side nav{gap:2px}
.theme-a .side nav a{font-size:13.5px;color:#485560;padding:9px 12px;border-radius:10px;gap:11px}
.theme-a .side nav a:hover{background:var(--cream-2);color:var(--ink)}
.theme-a .side nav a.active{background:var(--ink);color:#FFFCF7;font-weight:500}
.theme-a .side nav a .count{margin-left:auto;font-size:11px;background:var(--warning-bg);color:var(--warning);border-radius:999px;padding:0 7px}
.theme-a .side nav a.active .count{background:rgba(255,252,247,.18);color:#FFFCF7}
.theme-a .side .bottom{font-size:12.5px;border-top:1px solid var(--line);padding-top:16px}
.theme-a .side .bottom a{display:inline-block;margin-top:6px;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.theme-a .avatar{background:var(--tan);color:var(--ink);font-weight:600;font-size:11px;margin-right:6px}
.theme-a .shell{margin-left:240px}
.theme-a .topbar{height:60px;padding:0 32px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--line);background:rgba(247,241,232,.9);position:sticky;top:0;z-index:2;backdrop-filter:blur(10px)}
.theme-a .topbar .crumbs{color:var(--ink);font-weight:500}
.theme-a .topbar .crumbs span{color:var(--muted);font-weight:400}
.theme-a .topbar nav{display:flex;gap:18px;align-items:center}
.theme-a .topbar nav a{color:var(--muted)}
.theme-a .topbar nav a:hover{color:var(--ink)}
.theme-a .content{padding:30px 32px 48px;max-width:1440px}
.theme-a.app h1{font-size:32px;line-height:1.1;letter-spacing:-.035em}
.theme-a.app h2{font-size:18px;letter-spacing:-.02em}
.theme-a.app h3{font-size:16px}
.theme-a.app p{font-size:13.5px}
.theme-a .page-head{margin-bottom:24px}
.theme-a .page-head p{margin-top:6px}

/* surfaces */
.theme-a .panel{background:#FFFDF9;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);margin-bottom:20px}
.theme-a .panel-head{padding:18px 22px;border-bottom:1px solid var(--line)}
.theme-a .panel-head p{margin-top:3px}
.theme-a .pad{padding:22px}
.theme-a .space{height:16px}
.theme-a .split{gap:20px}
.theme-a .columns{gap:20px}
.theme-a .statrow{gap:12px;margin-bottom:20px}
.theme-a .stat{flex-direction:column-reverse;align-items:flex-start;gap:4px;border-radius:16px;padding:18px 20px;border:1px solid var(--line);background:linear-gradient(180deg,#FFFFFF,#FBF6EE);box-shadow:none}
.theme-a .stat b{font-size:40px;font-weight:500;letter-spacing:-.04em;line-height:1;margin-bottom:6px}
.theme-a .stat span{font-size:13px;color:var(--muted)}
.theme-a .stat .icon{display:none}
.theme-a .card{background:#FFFDF9;border-color:var(--line);border-radius:18px;box-shadow:var(--shadow);padding:24px}
.theme-a .card .num{font-size:11.5px;font-weight:600;letter-spacing:.08em;margin-bottom:24px}
.theme-a.app .cards p{font-size:13px}
.theme-a .note{background:#F3EBDD;border:0;border-radius:12px;color:#3F4B54;font-size:13px;padding:14px 16px}
.theme-a .line{padding:14px 0;border-bottom:1px solid var(--line)}
.theme-a .line strong{font-size:14px}
.theme-a .detail{padding:12px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.theme-a .detail strong{text-align:right}
.theme-a .gridlist li{padding:13px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.theme-a .workrow{border-top:1px solid var(--line);font-size:14px}
.theme-a .workrow p{font-size:12.5px}
.theme-a .icon{background:var(--cream-2);color:var(--ink);border-radius:10px}
.theme-a .mini{background:#FFFDF9;border-color:var(--line);border-radius:18px}
.theme-a .orderhero .initials{background:var(--tan);color:var(--ink);font-weight:600;border-radius:14px}
.theme-a .progress span{background:var(--cream-2)}
.theme-a .progress span.on{background:var(--ink)}
.theme-a .signature{background:#FFFDF9;border-color:var(--line-2);font-size:13px}
.theme-a .divider{font-size:11px;color:var(--muted)}

/* tables: dense and readable */
.theme-a table{font-size:13.5px}
.theme-a th,.theme-a td{padding:12px 16px;border-bottom:1px solid var(--line)}
.theme-a .panel td,.theme-a .panel th{padding:12px 16px}
.theme-a thead th{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#5E6870;background:#FBF7F0}
.theme-a tbody tr:hover{background:#FCF8F1}
.theme-a td a{color:var(--ink);font-weight:500}
.theme-a caption{caption-side:top;text-align:left;font-size:12px;color:var(--muted);padding:0 0 8px}
.theme-a .inventory-table th,.theme-a .inventory-table td{padding:11px 14px;font-size:13px}
.theme-a .inventory-table thead th{font-size:10.5px;background:#FBF7F0}
.theme-a .inventory-table tbody th{background:#FFFDF9}
.theme-a .inventory-table tbody th strong{font-size:13px}
.theme-a .inventory-table small{font-size:10.5px;color:#6B747B}
.theme-a .inventory-table .pill{font-size:11px}

/* pills / chips */
.theme-a .pill{font-size:11.5px;font-weight:500;padding:4px 10px;background:var(--cream-2);color:#3F4B54}
.theme-a .pill.warn{background:var(--warning-bg);color:var(--warning)}
.theme-a .pill.green{background:var(--success-bg);color:var(--success)}

/* toolbars, tabs, steps */
.theme-a .toolbar button{border-radius:999px}
.theme-a .toolbar button.active{background:var(--ink);border-color:var(--ink);color:#FFFCF7}
.theme-a .settings-tabs{gap:4px;border-color:var(--line);padding-bottom:16px;margin-bottom:24px;font-size:13.5px}
.theme-a .settings-tabs a{border-radius:999px;padding:8px 14px}
.theme-a .settings-tabs a.active{background:var(--ink);color:#FFFCF7}
.theme-a .steps{background:#FBF7F0;border-color:var(--line);font-size:12.5px;color:#6B747B}
.theme-a .summarynums div{background:linear-gradient(180deg,#FFFFFF,#FBF6EE);border-color:var(--line);border-radius:14px;font-size:13px}
.theme-a .summarynums b{font-size:36px;letter-spacing:-.04em}

/* forms */
.theme-a .field{font-size:13px}
.theme-a .field input,.theme-a .field .value{background:#fff;border:1px solid #A9B0B5;border-radius:10px;font-size:14px;padding:10px 12px}
.theme-a .field .value{border-color:var(--line)}
.theme-a .checklist-demo label{border-color:var(--line)}
.theme-a .checklist-demo input{accent-color:var(--ink)}
.theme-a .checklist-demo strong{font-size:14px}
.theme-a .checklist-demo small{font-size:12px}

/* login */
.theme-a .login{min-height:calc(100vh - 33px)}
.theme-a .login-left{background:#EFE5D6;position:relative;overflow:hidden}
.theme-a .login-left h1{font-size:52px;line-height:1.02;letter-spacing:-.045em}
.theme-a .login-left p{font-size:16px}
.theme-a .loginbox h2{font-size:32px;letter-spacing:-.03em}
.theme-a .loginbox p{font-size:14px}
.theme-a .loginbox .button{border-radius:999px}

/* marketing-style chrome for gallery.html (uses styles.css .wrap/.site-head) */
.theme-a .site-head{min-height:76px}
.theme-a .site-head nav{font-size:14.5px;gap:26px}
.theme-a .site-head nav a{color:#485560}
.theme-a .site-head nav a:hover{color:var(--ink)}
.theme-a .indexhero h1{font-size:64px;letter-spacing:-.045em;line-height:1}
.theme-a .indexhero p{font-size:17px}
.theme-a .gallery a{background:#FFFDF9;border-color:var(--line);border-radius:20px;box-shadow:var(--shadow)}
.theme-a .gallery a:hover{background:#fff}
.theme-a .gallery strong{font-size:18px}
.theme-a .gallery p{font-size:14px}
.theme-a .foot{font-size:13px;border-color:var(--line)}
.theme-a .toast{background:var(--ink);border-radius:999px;font-size:13px}

@media(max-width:1100px){
  .theme-a .side{width:210px}
  .theme-a .shell{margin-left:210px}
  .theme-a .content{padding:24px}
}
@media(max-width:760px){
  .theme-a .side{position:static;width:auto;padding:14px 16px;border-right:0;border-bottom:1px solid var(--line)}
  .theme-a .side .brand{padding:0}
  .theme-a .side .brand img{width:130px}
  .theme-a .side nav{flex-direction:row;overflow-x:auto;margin-top:12px;gap:4px;padding-bottom:4px}
  .theme-a .side nav a{flex:none;font-size:12.5px;padding:8px 12px}
  .theme-a .side nav svg{display:none}
  .theme-a .shell{margin-left:0}
  .theme-a .topbar{height:auto;min-height:48px;padding:10px 16px;flex-wrap:wrap;position:static}
  .theme-a .topbar nav{gap:12px;font-size:12.5px}
  .theme-a.app .banner{padding:8px 16px}
  .theme-a .content{padding:22px 14px 40px}
  .theme-a.app h1{font-size:26px}
  .theme-a .stat{padding:14px 12px}
  .theme-a .stat b{font-size:30px}
  .theme-a .stat span{font-size:12px}
  .theme-a .panel-head{padding:16px}
  .theme-a .pad{padding:16px}
  .theme-a .login-left h1{font-size:38px}
  .theme-a .indexhero h1{font-size:42px}
  .theme-a .detail{font-size:13px}
}
@media(min-width:761px){
  body.theme-a.app{background:linear-gradient(90deg,#FBF7F0 0,#FBF7F0 239px,rgba(29,44,56,.12) 239px,rgba(29,44,56,.12) 240px,var(--canvas) 240px)}
}
@media(min-width:761px) and (max-width:1100px){
  body.theme-a.app{background:linear-gradient(90deg,#FBF7F0 0,#FBF7F0 209px,rgba(29,44,56,.12) 209px,rgba(29,44,56,.12) 210px,var(--canvas) 210px)}
}
@media(max-width:760px){
  .theme-a .panel-head{flex-wrap:wrap}
  .theme-a .panel-head .toolbar{flex-direction:row;flex-wrap:wrap}
  .theme-a .side .nav-label{display:none}
  .theme-a .side nav+.nav-label+nav{margin-top:4px}
}

/* workspace switcher (Acme ⇄ PlatinumMED example) */
.theme-a .tenant-switch{display:flex;gap:4px;margin-top:10px;background:var(--cream-2);border-radius:999px;padding:3px}
.theme-a .tenant-switch a{flex:1;text-align:center;font-size:11.5px;font-weight:500;color:var(--muted);padding:5px 8px;border-radius:999px;text-decoration:none;white-space:nowrap}
.theme-a .tenant-switch a:hover{color:var(--ink)}
.theme-a .tenant-switch a.on{background:var(--paper);color:var(--ink);box-shadow:0 1px 3px rgba(29,44,56,.15)}
.theme-a .gap-panel{background:#FBF4E8;border-style:dashed}
.theme-a .table-wrap td .pill{white-space:nowrap}
@media(max-width:760px){.theme-a .side .tenant{display:block;padding:10px 0 0;border:0;margin:0}.theme-a .tenant-switch{max-width:260px}}
.theme-a.pm .statrow{grid-template-columns:repeat(4,minmax(0,1fr))}
.theme-a.pm .table-wrap td:first-child{white-space:nowrap}
@media(max-width:760px){.theme-a.pm .statrow{grid-template-columns:repeat(2,minmax(0,1fr))}}
