:root{--ink:#202026;--muted:#62616c;--line:#d6d4dd;--paper:#f6f5f2;--accent:#2c5fb0;--soft:#e8eef8}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 Futura,"Century Gothic","Avenir Next",Avenir,system-ui,sans-serif}header{height:82px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:45px;padding:0 5%}.brand{font-weight:750;font-size:25px;letter-spacing:-1.2px;text-decoration:none;color:var(--ink)}.brand span{font-size:13px;letter-spacing:0;background:var(--soft);padding:4px 7px;border-radius:5px;margin-left:9px;vertical-align:middle}nav{display:flex;gap:24px}a{color:var(--accent);text-underline-offset:3px}nav a{text-decoration:none;color:var(--muted)}.account{margin-left:auto;display:flex;align-items:center;gap:18px;font-size:13px}main{max-width:1400px;margin:0 auto;padding:40px 5% 60px}footer{border-top:1px solid var(--line);padding:24px 5%;color:var(--muted);font-size:12px;display:flex;justify-content:space-between}h1{font-size:clamp(27px,3vw,39px);letter-spacing:-1.3px;line-height:1.15;margin:10px 0 14px}h2{font-size:19px;letter-spacing:-.3px;margin:0 0 16px}h3{font-size:16px}p{color:var(--muted);margin:8px 0 18px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:750;color:var(--accent);margin:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.card{background:white;border:1px solid var(--line);border-radius:2px;padding:26px;margin-bottom:22px;min-width:0}.statistics{display:grid;grid-template-columns:repeat(5,1fr);background:var(--ink);color:white;border-radius:2px;margin-bottom:28px;padding:25px 12px}.statistics>div,.statistics>a{padding:0 20px;text-decoration:none;color:white;border-right:1px solid #45605a}.statistics>:last-child{border:0}.statistics strong{font-size:33px;display:block;font-weight:550}.statistics span{font-size:12px;color:#c1d3cc}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading a{font-size:12px}.record{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-top:1px solid var(--line);gap:14px;text-decoration:none;color:var(--ink)}.record strong{font-size:14px}.record small{display:block;color:var(--muted);font-size:11px}.empty{padding:30px 0;font-size:14px}.badge{display:inline-block;white-space:nowrap;background:#edf0ef;border-radius:6px;padding:5px 10px;font-size:12px;font-weight:600}.badge.ready{background:#e8eef8;color:#1f4a8f}.badge.exported{background:#e5edf9;color:#34547c}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:26px}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gallery img{width:100%;height:150px;object-fit:contain;background:#f1f3f0;border-radius:8px;border:1px solid var(--line)}.gallery .empty{grid-column:1/-1}.upload{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.small,small{font-size:12px;color:var(--muted)}.uuid{display:block;overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:11px;color:var(--muted)}label{display:block;font-size:13px;font-weight:650;margin-bottom:6px}input,textarea,select{width:100%;border:1px solid #c9d4cd;border-radius:6px;background:white;padding:11px 12px;font:inherit;color:var(--ink);margin-bottom:14px}textarea{resize:vertical}input[type=file]{font-size:13px;padding:12px}input[type=checkbox]{width:auto;margin:0;accent-color:var(--accent)}input:focus,textarea:focus,select:focus{outline:2px solid #7d9bd6;outline-offset:1px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.wide{grid-column:1/-1}.spec-row{display:grid;grid-template-columns:1fr 1.5fr auto;gap:10px;align-items:start;margin-bottom:6px}.delete-spec{font-size:11px;white-space:nowrap;margin-top:37px}.save-bar{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:26px;padding-top:20px}button,.button{cursor:pointer;border:1px solid #bccbc3;background:white;border-radius:7px;padding:10px 16px;color:var(--ink);font:600 13px/1.5 system-ui;text-decoration:none;display:inline-block}button:hover,.button:hover{background:#e8eef8}button.primary{background:var(--accent);color:white;border-color:var(--accent)}button.primary:hover{background:#1f4a8f}button:disabled{opacity:.45;cursor:not-allowed}.text-button{border:0;background:none;padding:6px 0}.danger{color:#97392e}.full{width:100%;margin-top:10px}.stack{display:grid;gap:8px}.corrected{font-size:10px;font-weight:500;color:#946b19;display:inline-block;margin-left:4px}.ai-card{background:#edf1f8}.confidence{font-size:45px;font-weight:600}.confidence small{font-size:23px}hr{border:0;border-top:1px solid var(--line);margin:25px 0}summary{cursor:pointer;font-size:13px}dt{font-size:12px;font-weight:650;margin-top:12px}dd{margin:2px 0;font-size:12px;overflow-wrap:anywhere}.history{border-top:1px solid var(--line);padding:15px 0;font-size:12px}.history p{margin:4px 0}.history small{font-size:10px;overflow-wrap:anywhere}.filters{display:flex;align-items:end;gap:18px}.filters label:first-child{flex:1}.filters input,.filters select{margin:5px 0 0}.filters label{margin:0}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);padding:12px 10px}td{padding:17px 10px;border-top:1px solid var(--line);font-size:13px}td a{font-weight:650}.pagination{display:flex;justify-content:center;gap:24px;font-size:12px;margin-top:22px}.login{max-width:440px;margin:50px auto;padding:38px}.notice{border-radius:8px;background:#e8eef8;padding:14px 18px;margin-bottom:20px}.notice.error,.errorlist{background:#fff0ed;color:#983828;font-size:13px}.errorlist{padding:12px 25px}.back{font-size:12px;display:inline-block;margin-bottom:20px}a:focus-visible,button:focus-visible{outline:3px solid #7d9bd6;outline-offset:3px}@media(max-width:1000px){.editor-grid{grid-template-columns:minmax(0,1fr) 290px}.card{padding:20px}.statistics>div,.statistics>a{padding:0 12px}}@media(max-width:760px){header{height:auto;min-height:76px;gap:15px;flex-wrap:wrap;padding:16px 5%}nav{order:3;width:100%;font-size:13px}.account{gap:10px}.brand{font-size:22px}main{padding-top:28px}.editor-grid,.dashboard-grid{grid-template-columns:1fr}.statistics{grid-template-columns:repeat(3,1fr);gap:20px 0}.statistics strong{font-size:28px}.statistics span{font-size:10px}.page-heading{align-items:flex-start;flex-wrap:wrap}.gallery{grid-template-columns:repeat(2,1fr)}.filters{align-items:stretch;flex-direction:column}.field-grid{grid-template-columns:1fr}.spec-row{grid-template-columns:1fr 1fr}.delete-spec{margin:0 0 12px;grid-column:1/-1}.save-bar{align-items:stretch;flex-direction:column}input,textarea,select{font-size:16px}footer{gap:20px}.login{margin:20px auto;padding:25px}}

/* Text wordmark slot can be replaced by a licensed official SVG. */
.brand sup{font-size:.46em;color:var(--accent);position:relative;top:-.45em;margin-left:3px;letter-spacing:0}
.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary,.button.primary{padding:13px 24px;font-size:15px;border-radius:3px}
fieldset{border:0;padding:0;margin:0 0 25px}legend{font-size:19px;font-weight:650;margin-bottom:16px}.mode{border:1px solid var(--line);padding:20px;display:inline-block;width:calc(50% - 12px);vertical-align:top;min-height:110px;margin-right:8px;background:#fff}.mode input{width:auto;margin:0 8px 0 0;accent-color:var(--accent)}.mode span{display:block;font-weight:400;margin:8px 0 0 24px}.mode:has(input:checked){border:2px solid var(--accent);padding:19px;background:var(--soft)}
.upload-files{max-height:12rem;overflow:auto;margin:12px 0;padding-left:28px;font-size:14px}.upload-files li{margin:4px 0}.upload-files li[data-state="saved"]{color:#287043}.upload-files li[data-state^="failed"]{color:#a12b35}
.drop-zone{padding:30px;background:#fff;border:2px dashed #9fb0cc;margin:24px 0}.drop-zone:focus-within{border-color:var(--accent)}.intake-form{max-width:950px}.product-section{margin:40px 0}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px}.product-tile{text-decoration:none;color:var(--ink);min-width:0}.product-tile img,.photo-placeholder{width:100%;height:210px;object-fit:contain;background:#ebe9e5;margin-bottom:12px}.photo-placeholder{display:grid;place-items:center;color:var(--muted)}.product-tile strong,.product-tile span{display:block}.product-tile span{font-size:12px;color:var(--muted);margin-top:4px}.table-photo{width:72px;height:60px;object-fit:contain;float:left;margin-right:14px}.photo-choice{background:white;border:1px solid var(--line);padding:10px}.photo-choice:has(input:checked){outline:2px solid var(--accent)}.photo-choice small{display:block}.review-controls{padding:24px 0}.review-controls select{max-width:100%}progress{display:block;width:100%;margin:20px 0;accent-color:var(--accent)}progress[hidden]{display:none}header{background:#faf9f6}.gallery img{height:190px}.card{box-shadow:none}.record{padding:20px 0}input,select,button{border-radius:3px}.product-tile h3{overflow-wrap:anywhere}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode{width:100%;margin-bottom:12px}.drop-zone{padding:20px}}@media(max-width:480px){.product-grid{gap:15px}.product-tile img,.photo-placeholder{height:150px}.review-controls button{display:block;margin-bottom:12px;width:100%}.record{flex-wrap:wrap}nav{gap:18px}}

/* Sprint 1.1 corrective workflow: the dashboard is the primary navigation. */
header{gap:0}
.dashboard-section{margin:40px 0}
.record span{display:block;color:var(--muted);font-size:13px;margin-top:4px}
.record b{color:var(--accent);font-size:13px;white-space:nowrap}
.batch-status{background:#fff;border:1px solid var(--line);padding:18px 20px;margin-bottom:28px}
.batch-status p:last-child{margin-bottom:0}
.manual-product{margin-top:32px}
@media(max-width:760px){.record b{width:100%;margin-top:4px}.account{margin-left:auto}}
.stat-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}
.stat-strip>div{background:white;border:1px solid var(--line);border-radius:12px;padding:18px 22px}
.stat-strip strong{font-size:30px;font-weight:600;display:block;line-height:1.1}
.stat-strip span{font-size:12px;color:var(--muted)}
.dashboard-section{margin-bottom:34px}
.dashboard-section.attention .record-split{border-left:3px solid var(--accent)}
.dashboard-section.muted h2{color:var(--muted)}
.record-split{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid var(--line)}
.record-split a{text-decoration:none;color:var(--ink)}
.record-split strong{display:block;font-size:15px}
.record-split small{display:block;color:var(--muted);font-size:11px;margin:2px 0}
.record-split span{display:block;font-size:13px;color:var(--muted)}
.record-split form,.record-split .button{flex:none}
.tile-meta{font-size:12px;color:var(--muted);margin-top:2px}
.tile-action{font-size:12px;font-weight:650;color:var(--accent);margin-top:6px}
.tile-idents{margin:8px 0 4px;padding:0}
.tile-idents div{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:2px 0}
.tile-idents dt{font-weight:600;color:var(--muted);margin:0}
.tile-idents dd{margin:0;overflow-wrap:anywhere;text-align:right}
.review-card{border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column}
.review-card .button{margin-top:12px}
.correction-area{margin-top:10px}
.correction-area summary{font-weight:650}
.submit-bar{margin-top:20px}
/* --- UI refinements: nav, clickable stats, tighter dashboard tiles, section separation --- */
.mainnav{display:flex;gap:22px;margin-left:32px;flex:1}
.mainnav a{text-decoration:none;color:var(--muted);font-size:14px;font-weight:600}
.mainnav a:hover{color:var(--ink)}
.stat-strip a{text-decoration:none;color:var(--ink);transition:border-color .15s}
.stat-strip a:hover{border-color:var(--accent)}
/* Dashboard product tiles: smaller previews than the batch-review grid */
.dashboard-section .product-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:18px}
.dashboard-section .product-tile img,.dashboard-section .photo-placeholder{height:120px;margin-bottom:8px}
.dashboard-section .product-tile strong{font-size:14px}
/* Clearer separation between dashboard sections */
.dashboard-section{padding-bottom:30px;border-bottom:1px solid var(--line)}
.dashboard-section:last-of-type{border-bottom:none}
.dashboard-section .section-heading{margin-bottom:16px}
.dashboard-section .section-heading h2{font-size:17px}
.dashboard-section.attention{background:#fbf7f2;border:1px solid #e7d9c6;border-radius:12px;padding:8px 20px 20px;margin-bottom:34px}
@media(max-width:760px){.mainnav{margin-left:0;width:100%;order:3;margin-top:10px}}
/* Bulk CSV export selection */
.bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;flex-wrap:wrap}
.bulk-bar .small{flex:1;min-width:200px;color:var(--muted)}
th.tick,td.tick{width:36px;text-align:center}
td.tick .muted{color:#bbb}
.notice.warn{background:#fdf6e3;border:1px solid #e6d5a8;color:#7a5c17}
.notice.warn a{color:#7a5c17;font-weight:600}
.warn-text{color:#8a5d12!important;font-weight:700}
.photo-editor{min-width:0}
.photo-actions{margin-top:8px;border-top:1px solid var(--line);padding-top:8px}
.photo-actions summary{font-weight:650;color:var(--accent)}
.photo-actions form{margin-top:12px}
.photo-actions label{font-size:12px;margin-top:5px}

/* Shared platform shell; Inventory keeps its existing workspace styles. */
.skip-link{position:absolute;left:12px;top:-80px;background:white;padding:12px;z-index:10}.skip-link:focus{top:12px}
.mainnav{align-items:center;flex-wrap:wrap}.mainnav [aria-current],.module-nav [aria-current]{color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:5px}
.nav-unavailable{color:var(--muted);font-size:13px}.nav-unavailable small{display:block;font-size:10px}
.module-nav{display:flex;flex-wrap:wrap;align-items:center;gap:22px;padding:16px 5%;border-bottom:1px solid var(--line);background:#fff;font-size:13px}.module-nav strong{margin-right:12px}.module-nav a{text-decoration:none;color:var(--ink)}
.platform-intro{max-width:720px;margin:12px 0 42px}.platform-intro h1{font-size:clamp(30px,4vw,46px);margin-bottom:14px}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.module-card{border:1px solid var(--line);background:white;padding:26px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.module-card h3{font-size:21px;margin:0 0 12px;overflow-wrap:anywhere}.module-card p:not(.eyebrow){color:var(--muted);line-height:1.6;flex:1}.module-card .eyebrow{margin-top:0}.coming-soon{background:#f5f4f1}.unavailable-label{font-size:12px;color:var(--muted)}
.avai-preview{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:32px;padding:26px 0;border-top:1px solid var(--line)}.avai-preview h2{margin:0}.avai-preview p:last-child{color:var(--muted)}
@media(max-width:1000px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.mainnav{gap:20px}.module-nav{gap:16px;width:auto}.module-nav strong{width:100%}.module-grid{grid-template-columns:1fr}.avai-preview{align-items:flex-start;flex-direction:column}.account span{max-width:130px;overflow-wrap:anywhere}footer{flex-wrap:wrap}}

.advanced-search{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.advanced-search>summary{font-weight:650;color:var(--accent);cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px}.advanced-search>summary::before{content:"+";font-weight:700}.advanced-search[open]>summary::before{content:"\2212"}.advanced-search .field-grid{margin-top:14px}

/* ============================================================
   STONE THEME (schum ai) — global restyle, appended last
   Warm stone surfaces, soft neumorphic relief, engraved anthracite
   text, lowercase chrome, aubergine accent. Applies to every page.
   ============================================================ */
:root{
  --ink:#5f5d67;         /* anthracite text */
  --muted:#8b867d;       /* stone muted */
  --line:#d6d0c6;        /* stone hairline */
  --paper:#e4dfd8;       /* stone page background */
  --accent:#3f5a86;      /* aubergine accent */
  --soft:#e9e4dc;        /* stone card / soft */
  --card:#e9e4dc;
  --stone-dark:rgba(150,143,132,.5);
  --stone-light:rgba(255,255,255,.92);
}
:root{ --noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

body{
  background:
    radial-gradient(130% 120% at 15% 0%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(120% 120% at 90% 100%, rgba(150,143,132,.28), transparent 55%),
    var(--paper);
  color:var(--ink);
}

/* Header sits on the stone, no white bar */
header{ background:transparent; border-bottom:1px solid var(--line); }
.brand-logo{ height:30px; display:block; }
.account{ color:var(--muted); }

/* Engraved, lowercase chrome */
nav a, .mainnav a, .module-nav a, .nav-unavailable,
.eyebrow, .badge, button, .button, .unavailable-label,
h2, h3, .stat-strip span, .statistics span,
.platform-intro h1, .login h1, .page-heading h1{
  text-transform:lowercase;
}
h1, h2, h3, .eyebrow, nav a, .mainnav a{
  text-shadow:0 1px 0 rgba(255,255,255,.7);
}
.asis{ text-transform:none !important; }   /* product name and real data */
.page-heading h1{ font-size:clamp(22px,2.4vw,30px); }

/* Soft stone cards with grain + neumorphic relief */
.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.5);
  border-radius:26px;
  box-shadow:14px 14px 30px var(--stone-dark), -12px -12px 26px var(--stone-light);
  position:relative;
}
.card::before{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background-image:var(--noise); background-size:170px 170px;
  opacity:.5; mix-blend-mode:overlay; pointer-events:none;
}
.card > *{ position:relative; }

/* Stat strips */
.statistics{ background:var(--card); color:var(--ink); border-radius:26px;
  box-shadow:14px 14px 30px var(--stone-dark), -12px -12px 26px var(--stone-light); }
.statistics>div, .statistics>a{ color:var(--ink); border-right:1px solid var(--line); }
.statistics span{ color:var(--muted); }
.stat-strip{ gap:20px; }
.stat-strip a{
  background:var(--card); border:1px solid rgba(255,255,255,.5); border-radius:22px;
  padding:22px 24px; box-shadow:10px 10px 22px var(--stone-dark), -8px -8px 18px var(--stone-light);
  color:var(--ink);
}
.stat-strip strong{ color:var(--ink); }

/* Module grid, home */
.module-card{
  background:var(--card); border:1px solid rgba(255,255,255,.5); border-radius:28px;
  box-shadow:14px 14px 30px var(--stone-dark), -12px -12px 26px var(--stone-light);
  position:relative;
}
.module-card::before{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background-image:var(--noise); background-size:170px 170px; opacity:.5;
  mix-blend-mode:overlay; pointer-events:none;
}
.module-card > *{ position:relative; }
.coming-soon{ background:var(--card); }
.module-card:not(.coming-soon){
  background:radial-gradient(120% 100% at 30% 15%, #5e4478, #4b3563);
  color:#e8ded2; border:1px solid rgba(255,255,255,.18);
  box-shadow:14px 14px 30px rgba(45,30,60,.4), -10px -10px 24px rgba(255,255,255,.5);
}
.module-card:not(.coming-soon) .eyebrow{ color:#d9cbe6; }
.module-card:not(.coming-soon) p{ color:#cbbccf; }
.module-card:not(.coming-soon) .button{
  background:rgba(255,255,255,.9); color:#1f4a8f; border-color:transparent;
}

/* Badges as sculpted pills */
.badge{
  background:var(--card); color:var(--muted);
  box-shadow:3px 3px 6px var(--stone-dark), -3px -3px 6px var(--stone-light);
  border-radius:999px;
}
.badge.ready{ color:#5b4a76; background:var(--card); }
.badge.exported{ color:#4b5f7c; background:var(--card); }

/* Buttons: primary aubergine, others raised stone */
button, .button{
  background:var(--card); color:var(--ink); border:1px solid rgba(255,255,255,.5);
  border-radius:16px; box-shadow:6px 6px 12px var(--stone-dark), -5px -5px 10px var(--stone-light);
}
button:hover, .button:hover{ background:var(--card); filter:brightness(.99); }
button.primary, .button.primary{
  background:var(--accent); color:#fff; border-color:transparent;
  box-shadow:8px 8px 18px rgba(60,40,90,.28), -6px -6px 14px var(--stone-light);
}
button.primary:hover{ background:#4b3a63; }
.text-button{ background:none; box-shadow:none; border:0; color:var(--accent); }
button:disabled{ opacity:.5; }

/* Inputs: inset stone wells */
input, textarea, select{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  box-shadow:inset 3px 3px 6px var(--stone-dark), inset -3px -3px 6px var(--stone-light);
  color:var(--ink);
}
input:focus, textarea:focus, select:focus{ outline:2px solid #8aa2cf; }

/* Tables */
table{ color:var(--ink); }
th{ color:var(--muted); }
td{ border-top:1px solid var(--line); }

/* Notices */
.notice{ background:var(--soft); border:1px solid rgba(255,255,255,.5); border-radius:16px; }
.notice.warn{ background:#f1ece2; }
.notice.error, .errorlist{ background:#f3e7e3; color:#8a4a3c; }

/* Sub-navigation (Inventory module) */
.module-nav{ background:transparent; border-bottom:1px solid var(--line); }

/* Avai preview + records */
.avai-preview{ border-top:1px solid var(--line); }
.record{ border-top:1px solid var(--line); color:var(--ink); }

/* Footer */
footer{ border-top:1px solid var(--line); color:var(--muted); }

/* Lowercase remaining chrome (never product data) */
footer, .module-nav strong, .section-heading a, .record small, .filters label,
th, label, summary, .small, .notice, .stat-strip small, dt, caption{ text-transform:lowercase; }
th{ letter-spacing:.4px; }
/* Product data keeps its real case even inside the lowercased chrome above */
td .asis, .asis, td.asis{ text-transform:none !important; }

/* Search / filter bar: uniform field height + proper search button */
.filters{ align-items:flex-end; }
.filters label{ margin:0; }
.filters input, .filters select{
  height:44px; padding:0 14px; margin-top:6px; border-radius:14px; box-sizing:border-box;
}
.filters button{ height:44px; margin-top:6px; align-self:flex-end; border-radius:14px; }
.filters button:not(.primary):not(.text-button){
  background:var(--accent); color:#fff; border:1px solid transparent; padding:0 26px; font-weight:700;
  box-shadow:7px 7px 16px rgba(60,40,90,.26), -5px -5px 12px var(--stone-light);
}
.filters button:not(.primary):not(.text-button):hover{ background:#4b3a63; }

/* Boost analysis button: engraved secondary by default, highlighted when confidence was low */
button.boost{
  margin-top:8px; background:var(--card); color:var(--accent);
  border:1px solid rgba(95,76,125,.4); font-weight:600;
  box-shadow:5px 5px 11px var(--stone-dark), -4px -4px 9px var(--stone-light);
}
button.boost:hover{ background:var(--card); filter:brightness(.99); }
button.boost.boost-strong{
  background:#a8762e; color:#fff; border-color:transparent;
  box-shadow:7px 7px 16px rgba(120,80,20,.30), -5px -5px 12px var(--stone-light);
}
button.boost.boost-strong:hover{ background:#946627; }

/* AI working indicator: indeterminate animated bar (a single analysis has no % steps) */
.work-progress{ margin-top:12px; }
.work-bar{ height:8px; border-radius:6px; background:var(--card); overflow:hidden;
  box-shadow:inset 2px 2px 5px var(--stone-dark), inset -2px -2px 5px var(--stone-light); }
.work-bar span{ display:block; height:100%; width:40%; border-radius:6px;
  background:linear-gradient(90deg, #7a6499, var(--accent));
  animation:work-slide 1.3s ease-in-out infinite; }
@keyframes work-slide{ 0%{ margin-left:-40%; } 100%{ margin-left:100%; } }
.work-status{ margin-top:6px; color:var(--muted); }
@media (prefers-reduced-motion: reduce){ .work-bar span{ animation:none; width:100%; opacity:.6; } }

/* Import progress on the dashboard "Working on it" rows */
.batch-track{ display:flex; align-items:center; justify-content:space-between; gap:18px; }
.batch-track-title{ display:flex; flex-direction:column; }
.batch-status{ display:flex; flex-direction:column; align-items:flex-end; gap:5px; min-width:210px; }
.batch-progress-text{ color:var(--muted); }
progress.batch-progress{ -webkit-appearance:none; -moz-appearance:none; appearance:none;
  width:210px; height:9px; border:0; border-radius:6px; background:var(--card);
  box-shadow:inset 2px 2px 5px var(--stone-dark), inset -2px -2px 5px var(--stone-light); overflow:hidden; }
progress.batch-progress::-webkit-progress-bar{ background:transparent; border-radius:6px; }
progress.batch-progress::-webkit-progress-value{ background:linear-gradient(90deg,#7a6499,var(--accent)); border-radius:6px; transition:width .4s ease; }
progress.batch-progress::-moz-progress-bar{ background:linear-gradient(90deg,#7a6499,var(--accent)); border-radius:6px; }
@media (max-width:640px){ .batch-track{ flex-direction:column; align-items:flex-start; gap:8px; } .batch-status{ align-items:flex-start; min-width:0; width:100%; } progress.batch-progress{ width:100%; } }

/* Batch Review hub: compact rows for fast validation, cards on a phone */
.js .nojs-only{ display:none; }
.review-hub [hidden]{ display:none !important; }
.review-filters button, .review-filters .button, .bulk-controls button{ margin:0; align-self:flex-end; }
.review-status .badge.ready{ background:var(--accent); color:#fff; }
.review-filters{ display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin:6px 0 10px; }
.review-filters label, .bulk-controls label{ display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.review-filters input, .review-filters select, .bulk-controls select{ height:40px; padding:0 12px; }
.review-filters input[type=number]{ width:120px; }
.review-filters button, .review-filters .button{ height:40px; }
.review-bulk{ margin:14px 0; padding:14px 16px; background:var(--card); border-radius:16px;
  box-shadow:inset 2px 2px 5px var(--stone-dark), inset -2px -2px 5px var(--stone-light); }
.review-bulk p{ margin:0 0 8px; }
.bulk-controls{ display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.bulk-controls button{ height:40px; }
.select-matching .text-button{ padding:0; font-weight:700; text-decoration:underline; }
.bulk-confirm{ margin-top:12px; padding:12px 14px; }
.bulk-confirm p{ color:var(--ink); }
.stack-inline{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.review-table td{ padding:10px 8px; vertical-align:middle; }
.review-table th{ padding:6px 8px; font-size:12px; }
.review-table select{ height:38px; padding:0 10px; max-width:220px; }
.review-product{ min-width:230px; }
.review-product > div{ display:flex; flex-direction:column; }
.review-product small{ color:var(--muted); font-size:12px; line-height:1.35; }
.review-product .table-photo{ width:60px; height:52px; margin-right:12px; }
span.table-photo.photo-placeholder{ display:block; margin-bottom:0; }
.review-table tr[aria-busy] { opacity:.6; }
.qty-input{ width:78px; height:38px; padding:0 10px; }
.confidence-pill{ font-weight:700; }
.confidence-pill.low{ color:#8a5d12; }
.review-status{ min-width:150px; }
.review-status > *{ display:block; margin:3px 0; }
.review-status .badge{ display:inline-block; }
.validate-button{ padding:6px 16px; }
.row-message{ min-height:1em; }
@media (max-width:760px){
  .review-table thead{ display:none; }
  .review-table, .review-table tbody, .review-table tr, .review-table td{ display:block; width:100%; }
  .review-table tr{ position:relative; padding:12px 12px 12px 44px; margin-bottom:12px; background:var(--card); border-radius:16px;
    box-shadow:5px 5px 11px var(--stone-dark), -4px -4px 9px var(--stone-light); }
  .review-table td{ border:0; padding:5px 0; }
  .review-table td.tick{ position:absolute; left:12px; top:16px; width:auto; }
  .review-table td[data-label]:not(.review-product){ display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .review-table td[data-label]:not(.review-product)::before{ content:attr(data-label); font-size:12px; color:var(--muted); text-transform:lowercase; }
  .review-table select{ max-width:62%; flex:1; }
  .review-status{ flex-wrap:wrap; }
  .review-status > *{ display:inline-block; }
  .review-filters label{ flex:1 1 140px; }
  .review-filters input[type=number]{ width:100%; }
  .bulk-controls label{ flex:1 1 140px; }
  .bulk-controls button{ flex:1 1 auto; }
}

/* Unassigned photos panel on an import: shown first, one card per photo */
.unassigned-panel{ padding:20px; }
.unassigned-panel h2{ margin-bottom:6px; }
.unassigned-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:18px; }
.unassigned-photo{ background:var(--card); border-radius:16px; padding:12px;
  box-shadow:5px 5px 11px var(--stone-dark), -4px -4px 9px var(--stone-light); }
.unassigned-photo img{ width:100%; height:180px; object-fit:contain; background:#ebe9e5; border-radius:10px; }
.unassigned-photo .stack{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.unassigned-photo label{ display:flex; flex-direction:column; gap:4px; font-size:12px; }
.unassigned-photo select{ height:38px; padding:0 10px; }

/* Archive / delete controls, delete confirmation, visual photo picker */
.bulk-lifecycle{ display:flex; gap:10px; margin-left:auto; flex-wrap:wrap; }
button.danger, .button.danger{ color:#8a3b2c; }
.review-search input{ width:260px; }
.delete-list{ margin:6px 0 0; padding-left:20px; }
.delete-list li{ margin:3px 0; }
.delete-actions{ display:flex; flex-wrap:wrap; gap:14px; align-items:flex-start; }
.force-delete{ flex-basis:100%; }
.force-delete summary{ cursor:pointer; color:#8a3b2c; }
.acknowledge{ display:flex; gap:10px; align-items:flex-start; margin:10px 0; max-width:720px; text-transform:none; }
.move-layout{ display:grid; grid-template-columns:minmax(220px,320px) 1fr; gap:26px; align-items:start; }
.move-photo img{ width:100%; max-height:420px; object-fit:contain; background:#ebe9e5; border-radius:10px; }
.move-photo .stack{ display:flex; flex-direction:column; gap:8px; }
.pick-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:16px; margin-bottom:26px; }
.pick-card button{ width:100%; height:100%; display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:10px; text-align:left; border-radius:16px; }
.pick-card img, .pick-card .photo-placeholder{ width:100%; height:120px; object-fit:contain; background:#ebe9e5; border-radius:10px; margin:0 0 6px; }
.pick-card small{ color:var(--muted); font-size:12px; }
.pick-card .pick-action{ margin-top:auto; color:var(--accent); font-weight:700; font-size:13px; }
.pick-card button:hover, .pick-card button:focus-visible{ outline:2px solid #8aa2cf; }
.pick-search-title{ margin-top:10px; }
@media (max-width:760px){
  .move-layout{ grid-template-columns:1fr; }
  .pick-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .review-search, .review-search input{ width:100%; flex-basis:100%; }
  .bulk-lifecycle{ margin-left:0; }
}

/* Keep feedback and bulk actions in view while scrolling long lists */
.flash-stack{ position:sticky; top:8px; z-index:30; display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.flash-stack .notice{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0;
  box-shadow:8px 8px 18px var(--stone-dark), -6px -6px 14px var(--stone-light); }
.flash-close{ flex:none; font-size:13px; }
.review-bulk.has-selection{ position:sticky; top:8px; z-index:25; background:#efeae3;
  box-shadow:10px 10px 22px var(--stone-dark), -6px -6px 14px var(--stone-light); }
.heading-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.heading-actions form{ margin:0; }
.restore-button{ margin-left:10px; padding:4px 14px; }
@media (max-width:760px){
  .review-bulk.has-selection{ top:0; max-height:60vh; overflow:auto; }
  .heading-actions{ justify-content:flex-start; }
}
.filters .search-main{ flex:1 1 260px; min-width:220px; }
.filters .search-main input{ width:100%; }

/* Phone: the platform header wraps into two compact rows instead of squeezing the nav. */
@media (max-width:600px){
  header{ height:auto; flex-wrap:wrap; gap:6px 16px; padding:10px 16px; }
  header .brand-logo{ max-height:34px; }
  .mainnav{ order:3; flex:0 0 100%; width:100%; margin:4px 0 0; gap:18px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; }
  .mainnav a, .nav-unavailable{ white-space:nowrap; }
  .account{ margin-left:auto; }
  main{ padding:22px 16px 40px; }
}

/* The schum ai logo keeps its design; only a light engraved relief is added. */
.brand-logo{ filter:drop-shadow(1px 1px 0 rgba(255,255,255,.9)) drop-shadow(-1px -1px 0 rgba(0,0,0,.14)); }

/* Subcategories under each category (Categories screen) */
.sub-row td{ border-top:0; padding-top:0; }
.sub-list{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.inline-form{ display:inline-flex; align-items:center; margin:0; }
.inline-form input{ width:auto; min-width:160px; margin:0 6px 0 0; }
.inline-form button.badge{ cursor:pointer; border:0; }

/* Place tree: indentation by depth (inline styles are blocked by the CSP) */
.tree-row{ display:inline-block; }
.tree-row.depth-1{ padding-left:20px; } .tree-row.depth-2{ padding-left:40px; } .tree-row.depth-3{ padding-left:60px; }
.tree-row.depth-4{ padding-left:80px; } .tree-row.depth-5{ padding-left:100px; } .tree-row.depth-6{ padding-left:120px; }
.tree-row.depth-7{ padding-left:140px; }
.place-edit summary{ cursor:pointer; font-size:12px; }
.place-edit form{ margin:6px 0; }
.place-edit select, .place-edit input{ margin-bottom:6px; }
