:root{--bg:#f5f7fb;--panel:#fff;--text:#182230;--muted:#667085;--line:#e4e7ec;--blue:#2563eb;--blue2:#1d4ed8;--green:#067647;--red:#b42318;--amber:#b54708;--side:#0f172a;--shadow:0 12px 35px rgba(16,24,40,.08)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.side{position:sticky;top:0;height:100vh;background:var(--side);color:#fff;padding:24px 16px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px}.brand .logo{width:40px;height:40px;border-radius:12px;background:#fff;color:#111827;display:grid;place-items:center;font-weight:900}.brand b{display:block;font-size:18px}.brand small{display:block;color:#94a3b8;margin-top:2px}.nav{display:grid;gap:6px}.nav button,.mobilebar button{border:0;background:transparent;color:#cbd5e1;text-align:left;padding:11px 12px;border-radius:10px;font-weight:700}.nav button:hover,.nav button.active{background:#1e293b;color:#fff}.sidebottom{margin-top:auto;padding:16px 8px 4px}.trial{background:#172033;border:1px solid #273449;border-radius:14px;padding:14px}.trial b{display:block;font-size:14px}.trial small{display:block;margin-top:8px;color:#a8b4c5;line-height:1.4}.bar{height:7px;background:#2a3649;border-radius:999px;margin-top:12px;overflow:hidden}.bar span{display:block;height:100%;width:100%;background:#60a5fa;border-radius:inherit}.main{min-width:0;padding:0 28px 40px}.top{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:28px}.top h1{margin:0;font-size:22px}.user{display:flex;align-items:center;gap:8px;color:var(--muted)}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dbeafe;color:#1d4ed8;font-weight:800}.page{display:none}.page.active{display:block}.headline{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.headline h2{margin:0 0 6px;font-size:26px}.headline p{margin:0;color:var(--muted)}.badge{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;padding:8px 12px;border-radius:999px;font-weight:800;font-size:13px}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 1px 2px rgba(16,24,40,.02)}.profilegrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:grid;gap:7px}.field label{font-size:12px;color:#475467;font-weight:800}.field input,.field textarea{width:100%;border:1px solid #d0d5dd;border-radius:10px;padding:11px 12px;outline:none;background:#fff;color:var(--text)}.field textarea{min-height:92px;resize:vertical}.field input:focus,.field textarea:focus{border-color:#84adff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.drop{position:relative;background:#fff;border:1.5px dashed #b8c2d1;border-radius:16px;padding:26px;min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;transition:.2s}.drop:hover,.drop.hasfile{border-color:#2563eb;background:#f8fbff}.drop .n{position:absolute;top:14px;left:14px;color:#98a2b3;font-weight:800;font-size:12px}.drop strong{font-size:18px}.drop em{font-style:normal;color:var(--muted);font-size:13px}.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.actions{display:flex;align-items:center;gap:10px;margin:16px 0 20px;flex-wrap:wrap}.primary,.alt{border-radius:10px;padding:10px 14px;font-weight:800}.primary{border:1px solid var(--blue);background:var(--blue);color:#fff}.primary:hover{background:var(--blue2)}.primary:disabled{opacity:.55;cursor:not-allowed}.alt{border:1px solid #d0d5dd;background:#fff;color:#344054}.state{font-size:12px;color:var(--muted)}.result{display:none;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.result.show{display:block}.rh{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}.rh h3{margin:0}.stats{display:grid;grid-template-columns:repeat(3,160px);gap:12px;padding:16px 20px}.stat{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fafbfc}.stat span{display:block;font-size:24px;font-weight:900}.stat small{color:var(--muted)}.tw{overflow:auto;border-top:1px solid var(--line)}table{width:100%;border-collapse:collapse;min-width:1450px}th,td{padding:10px 11px;border-right:1px solid #eef1f4;border-bottom:1px solid #eef1f4;text-align:left;vertical-align:top;font-size:12px}th{position:sticky;top:0;background:#f9fafb;z-index:1;color:#475467;font-weight:800}td input{width:100%;min-width:110px;border:1px solid #d0d5dd;border-radius:7px;padding:7px}.status-ok{color:var(--green);font-weight:800}.status-check{color:var(--amber);font-weight:800}.row-save{margin-top:6px;border:0;background:#eef4ff;color:#2457c5;border-radius:7px;padding:6px 8px;font-size:11px;font-weight:800}.note{padding:0 20px 18px;color:var(--muted);font-size:12px;line-height:1.5}.empty{background:#fff;border:1px dashed #cfd6e1;border-radius:16px;padding:34px;color:var(--muted);text-align:center}.history-item,.product-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:10px}.history-top,.product-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-title,.product-title{font-weight:900}.history-meta,.product-meta{font-size:12px;color:var(--muted);margin-top:6px}.subcard{display:flex;justify-content:space-between;align-items:center}.subcard .name{font-weight:900;font-size:20px}.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.plan{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.plan.best{border-color:#93c5fd;box-shadow:0 0 0 2px #dbeafe}.tag{position:absolute;right:14px;top:14px;font-size:10px;font-weight:900;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:5px 8px}.plan h3{margin:0 0 14px}.price{font-size:26px;font-weight:900}.price small{font-size:12px;color:var(--muted)}.save{font-size:12px;color:var(--muted);margin:8px 0 16px}.features{display:grid;gap:8px;margin-bottom:18px;color:#475467;font-size:13px}.features span:before{content:"✓";color:#16a34a;font-weight:900;margin-right:8px}.toast{position:fixed;right:20px;bottom:20px;transform:translateY(20px);opacity:0;pointer-events:none;background:#101828;color:#fff;border-radius:12px;padding:12px 16px;box-shadow:var(--shadow);transition:.2s;z-index:50;max-width:360px}.toast.show{opacity:1;transform:none}.mobilebar{display:none}
@media(max-width:960px){.app{grid-template-columns:1fr}.side{display:none}.main{padding:0 16px 86px}.top{height:66px}.mobilebar{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:#0f172a;z-index:30;padding:7px 4px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(15,23,42,.15)}.mobilebar button{text-align:center;padding:8px 3px;font-size:11px}.mobilebar button.active{color:#fff;background:#1e293b}.plans{grid-template-columns:1fr}.profilegrid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.grid2{grid-template-columns:1fr}.headline{display:block}.badge{display:inline-block;margin-top:12px}.topPlan{display:none}.top .user>span:first-child{display:none}.main{padding-left:12px;padding-right:12px}.card{padding:15px}.drop{min-height:135px}.actions{align-items:stretch}.actions .primary,.actions .alt{flex:1}.state{width:100%}.stats{padding:12px;gap:8px}.stat{padding:10px}.stat span{font-size:20px}}

/* ImportDoc theme switch v1 */
.theme-toggle{
  display:inline-flex;align-items:center;gap:7px;
  border:1px solid #d0d5dd;background:#fff;color:#344054;
  border-radius:10px;padding:8px 11px;font-weight:800;line-height:1;
  transition:background .18s,border-color .18s,color .18s,transform .18s;
}
.theme-toggle:hover{background:#f8fafc;border-color:#b8c2d1}
.theme-toggle:active{transform:scale(.97)}
.theme-icon{font-size:15px;line-height:1}.theme-label{font-size:12px}
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#090d13;
  --panel:#111821;
  --text:#f1f5f9;
  --muted:#9aa7b8;
  --line:#273243;
  --blue:#3b82f6;
  --blue2:#2563eb;
  --green:#3ddc97;
  --red:#ff7b72;
  --amber:#fbbf24;
  --side:#070b10;
  --shadow:0 14px 40px rgba(0,0,0,.38);
}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .side{background:#070b10}
html[data-theme="dark"] .brand .logo{background:#e8eef7;color:#111827}
html[data-theme="dark"] .nav button:hover,
html[data-theme="dark"] .nav button.active{background:#182231}
html[data-theme="dark"] .trial{background:#101720;border-color:#273243}
html[data-theme="dark"] .bar{background:#263142}
html[data-theme="dark"] .top{border-color:var(--line)}
html[data-theme="dark"] .card,
html[data-theme="dark"] .drop,
html[data-theme="dark"] .result,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .history-item,
html[data-theme="dark"] .product-item,
html[data-theme="dark"] .plan{background:var(--panel);border-color:var(--line);box-shadow:none}
html[data-theme="dark"] .stat{background:#0d141d;border-color:var(--line)}
html[data-theme="dark"] .drop:hover,
html[data-theme="dark"] .drop.hasfile{background:#101b2a;border-color:#4b8df8}
html[data-theme="dark"] .field label,
html[data-theme="dark"] .features,
html[data-theme="dark"] th{color:#aeb9c8}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] td input,
html[data-theme="dark"] .row-edit,
html[data-theme="dark"] .products-search input{
  background:#0b121b;color:var(--text);border-color:#334155;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#66758a}
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] td input:focus,
html[data-theme="dark"] .row-edit:focus,
html[data-theme="dark"] .products-search input:focus{
  border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.16);outline:none
}
html[data-theme="dark"] .alt,
html[data-theme="dark"] .theme-toggle{
  background:#111821;color:#dbe5f1;border-color:#334155;
}
html[data-theme="dark"] .alt:hover,
html[data-theme="dark"] .theme-toggle:hover{background:#182231;border-color:#475569}
html[data-theme="dark"] .row-save{background:#14233c;color:#8db7ff}
html[data-theme="dark"] .badge,
html[data-theme="dark"] .tag{background:#102342;color:#8db7ff;border-color:#264c7d}
html[data-theme="dark"] .avatar{background:#132b4d;color:#8db7ff}
html[data-theme="dark"] .plan.best{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.18)}
html[data-theme="dark"] th{background:#0d141d}
html[data-theme="dark"] th,
html[data-theme="dark"] td{border-right-color:#202a38;border-bottom-color:#202a38}
html[data-theme="dark"] .tw{border-top-color:var(--line)}
html[data-theme="dark"] .toast{background:#e8eef7;color:#111827}
html[data-theme="dark"] .mobilebar{background:#070b10;box-shadow:0 -8px 24px rgba(0,0,0,.35)}
html[data-theme="dark"] .mobilebar button.active{background:#182231}
@media(max-width:640px){
  .theme-toggle{padding:8px;width:36px;height:36px;justify-content:center}
  .theme-toggle .theme-label{display:none}
  #topPlan{display:none}
}

/* ImportDoc archive + knowledge UI v2 */
.workspace-tools{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:10px;margin-bottom:14px}
.products-tools{grid-template-columns:minmax(260px,1fr) auto auto auto}
.workspace-search,.workspace-select{border:1px solid #d0d5dd;border-radius:10px;padding:10px 12px;background:#fff;color:var(--text);font:inherit;outline:none}
.workspace-search:focus,.workspace-select:focus{border-color:#84adff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.history-workspace,.products-workspace{display:block}
.history-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.product-code{font-weight:900;font-size:16px;letter-spacing:.02em}
.product-status,.tnved-badge{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;margin-top:6px}
.product-status-confirmed,.tnved-confirmed{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.product-status-latest,.tnved-latest{background:#eff8ff;color:#175cd3;border:1px solid #b2ddff}
.product-status-manual,.tnved-manual{background:#f4f3ff;color:#5925dc;border:1px solid #d9d6fe}
.product-status-missing,.tnved-missing{background:#fff7ed;color:#b54708;border:1px solid #fed7aa}
.product-history-codes{margin-top:8px;color:#98a2b3;font-size:12px}
.tnved-badge{margin:6px 0 0}
html[data-theme="dark"] .workspace-search,
html[data-theme="dark"] .workspace-select{background:#0b121b;color:var(--text);border-color:#334155}
html[data-theme="dark"] .product-status-confirmed,
html[data-theme="dark"] .tnved-confirmed{background:#0d2a20;color:#65e6ad;border-color:#245b45}
html[data-theme="dark"] .product-status-latest,
html[data-theme="dark"] .tnved-latest{background:#102342;color:#8db7ff;border-color:#264c7d}
html[data-theme="dark"] .product-status-manual,
html[data-theme="dark"] .tnved-manual{background:#251b43;color:#c4b5fd;border-color:#4c3b73}
html[data-theme="dark"] .product-status-missing,
html[data-theme="dark"] .tnved-missing{background:#352011;color:#fbbf24;border-color:#6b421e}
@media(max-width:900px){
  .workspace-tools,.products-tools{grid-template-columns:1fr 1fr}
  .workspace-search{grid-column:1/-1}
}
@media(max-width:560px){
  .workspace-tools,.products-tools{grid-template-columns:1fr}
  .workspace-search{grid-column:auto}
  .workspace-tools .alt{width:100%}
}


/* ImportDoc workspace completion v3 */
.dash-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.dash-stat{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow)}
.dash-stat span{display:block;font-size:28px;font-weight:900;letter-spacing:-.03em}.dash-stat small{display:block;color:var(--muted);margin-top:5px}
.dash-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.dash-card{padding:0;overflow:hidden}
.dash-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.dash-card-head h3{margin:0}.dash-list{padding:4px 18px 12px}.dash-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.dash-row:last-child{border-bottom:0}.dash-row div{min-width:0}.dash-row b,.dash-row small{display:block}.dash-row small{color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-row>span{color:var(--muted);white-space:nowrap;font-size:13px}.dash-ready{display:flex;align-items:center;justify-content:space-between;gap:20px}.dash-ready p{margin:5px 0 0;color:var(--muted)}
.dashboard-loading{padding:30px;text-align:center;color:var(--muted)}.knowledge-tools{margin-bottom:14px}
.admin-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.admin-note{font-size:12px;color:var(--muted)}
.import-report{border-radius:12px;padding:13px 14px;display:grid;gap:4px;font-size:13px}.import-report.busy{background:#eff8ff;color:#175cd3}.import-report.success{background:#ecfdf3;color:#067647}.import-report.error{background:#fef3f2;color:#b42318}
.product-admin-actions{margin-top:12px}.corporate-product{position:relative}
.workspace-modal{position:fixed;inset:0;background:rgba(2,6,23,.64);z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px}
.workspace-modal-card{width:min(760px,100%);max-height:92vh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:0 28px 80px rgba(0,0,0,.28);padding:20px}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.modal-head h3,.modal-head p{margin:0}.modal-head p{color:var(--muted);margin-top:4px}.modal-x{border:0;background:transparent;color:var(--muted);font-size:26px;cursor:pointer}
.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.edit-grid .wide{grid-column:1/-1}.modal-history{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.modal-history>p{display:flex;gap:7px;flex-wrap:wrap}
.code-chip{display:inline-block;padding:5px 8px;border-radius:8px;background:#eef3ff;color:#2455d6;font-size:12px;font-weight:800}.change-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}.change-line span{color:var(--muted)}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.empty.compact{padding:16px}
html[data-theme="dark"] .dash-stat,html[data-theme="dark"] .workspace-modal-card{background:#111821;border-color:#273243}
html[data-theme="dark"] .import-report.busy{background:#102342;color:#8db7ff}html[data-theme="dark"] .import-report.success{background:#0d2a20;color:#65e6ad}html[data-theme="dark"] .import-report.error{background:#35191a;color:#ff9c96}html[data-theme="dark"] .code-chip{background:#14233c;color:#8db7ff}
@media(max-width:1000px){.dash-grid{grid-template-columns:1fr 1fr}.dash-columns{grid-template-columns:1fr}}
@media(max-width:700px){.dash-grid{grid-template-columns:1fr 1fr}.dash-ready{align-items:flex-start;flex-direction:column}.edit-grid{grid-template-columns:1fr}.edit-grid .wide{grid-column:auto}.mobilebar{grid-template-columns:repeat(5,1fr)!important}}
@media(max-width:440px){.dash-grid{grid-template-columns:1fr}.dash-stat span{font-size:24px}}


/* Dark theme product title readability fix */
html[data-theme="dark"] .product-title{
  color:#f1f5f9 !important;
}


/* Theme slider + clean topbar v2 */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:auto;
  height:44px;
  padding:8px 12px;
  border-radius:12px;
}
.theme-toggle .theme-label{
  display:inline-block !important;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}
.theme-switch{
  position:relative;
  display:inline-flex;
  width:42px;
  height:24px;
  flex:0 0 42px;
  border-radius:999px;
  background:#d0d5dd;
  border:1px solid #b8c2d1;
  transition:background .2s ease,border-color .2s ease;
}
.theme-thumb{
  position:absolute;
  top:2px;
  left:2px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(15,23,42,.25);
  transition:transform .2s ease,background .2s ease;
}
html[data-theme="dark"] .theme-switch{
  background:#2563eb;
  border-color:#3b82f6;
}
html[data-theme="dark"] .theme-thumb{
  transform:translateX(18px);
  background:#f8fafc;
}
@media(max-width:640px){
  .theme-toggle{
    width:auto;
    height:40px;
    padding:7px 10px;
    justify-content:flex-start;
  }
  .theme-toggle .theme-label{
    display:inline-block !important;
    font-size:13px;
  }
  .theme-switch{
    width:38px;
    height:22px;
    flex-basis:38px;
  }
  .theme-thumb{
    width:16px;
    height:16px;
  }
  html[data-theme="dark"] .theme-thumb{
    transform:translateX(16px);
  }
}

/* Theme slider + clean topbar v3 */
.theme-toggle{
  gap:9px;
  padding:8px 11px;
}
.theme-caption{
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  transition:color .2s ease,opacity .2s ease;
}
.theme-light-label{color:#344054}
.theme-dark-label{color:#98a2b3}
html[data-theme="dark"] .theme-light-label{color:#667085}
html[data-theme="dark"] .theme-dark-label{color:#f1f5f9}
@media(max-width:640px){
  .theme-toggle{gap:7px;padding:7px 9px}
  .theme-caption{font-size:12px}
}

/* Profile simplification + subscription preview v1 */
.profile-help{
  margin-bottom:18px;
  padding:13px 14px;
  border:1px solid #dbe3ef;
  border-radius:12px;
  background:#f8fafc;
  color:#667085;
  font-size:13px;
  line-height:1.5;
}
.profile-help b{color:#344054}
html[data-theme="dark"] .profile-help{
  background:#0d141d;
  border-color:#273243;
  color:#9aa7b8;
}
html[data-theme="dark"] .profile-help b{color:#f1f5f9}
@media(max-width:700px){
  .mobilebar{grid-template-columns:repeat(6,1fr)!important}
}

/* ImportDoc knowledge v6 UI */
.base-admin-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 16px}
.pager{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:18px 0}
.pager-info{color:var(--muted);font-size:13px}
.candidate-count{display:inline-flex;margin-top:6px;padding:4px 8px;border-radius:999px;background:#eff8ff;color:#175cd3;border:1px solid #b2ddff;font-size:11px;font-weight:900}
.candidate-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.name-suggest-wrap{position:relative;width:100%}
.name-suggest-wrap>.row-edit{width:100%}
.name-suggest-menu{display:none;position:absolute;z-index:50;left:0;right:0;top:calc(100% - 4px);max-height:260px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.16);padding:5px}
.name-suggest-menu.show{display:grid}
.name-suggest-item{border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:7px;color:var(--text);cursor:pointer;font:inherit;font-size:13px}
.name-suggest-item:hover{background:#eef3ff}
html[data-theme="dark"] .candidate-count{background:#102342;color:#8db7ff;border-color:#264c7d}
html[data-theme="dark"] .name-suggest-menu{background:#111821;border-color:#273243;box-shadow:0 16px 40px rgba(0,0,0,.45)}
html[data-theme="dark"] .name-suggest-item:hover{background:#182231}
@media(max-width:640px){
  .base-admin-bar{display:grid;grid-template-columns:1fr 1fr}
  .base-admin-bar button{width:100%}
  .pager{padding:14px 0}
}


/* Editable specification rows v1 */
.cell-edit,.cell-textarea{width:100%;min-width:110px;border:1px solid #d0d5dd;border-radius:7px;padding:7px;background:#fff;color:var(--text);font:inherit}
.cell-textarea{min-width:220px;min-height:82px;resize:vertical;line-height:1.35}
.cell-number{min-width:92px}
.cell-edit:focus,.cell-textarea:focus,.row-extra input:focus{border-color:#84adff;box-shadow:0 0 0 3px rgba(37,99,235,.08);outline:none}
.row-extra td{background:#f8fafc;padding:8px 12px 12px;border-bottom:2px solid #e4e7ec}
.row-extra-grid{display:grid;grid-template-columns:1.3fr 1fr 1.2fr .8fr 1.7fr;gap:10px;align-items:end}
.row-extra-grid label{display:grid;gap:5px}
.row-extra-grid label span{font-size:10px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.02em}
.row-extra-grid input{width:100%;border:1px solid #d0d5dd;border-radius:7px;padding:7px;background:#fff;color:var(--text);font:inherit}
html[data-theme="dark"] .cell-edit,
html[data-theme="dark"] .cell-textarea,
html[data-theme="dark"] .row-extra input{background:#0b121b;color:var(--text);border-color:#334155}
html[data-theme="dark"] .row-extra td{background:#0d141d;border-bottom-color:#273243}
@media(max-width:960px){.row-extra-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.row-extra-wide{grid-column:1/-1}}

/* ImportDoc internal workspace */
.row-edit{min-width:240px;min-height:72px;resize:vertical;padding:8px;border:1px solid #d9deea;border-radius:8px;font:inherit;background:#fff}
.row-save{display:block;margin-top:6px;padding:6px 8px;border:0;border-radius:7px;background:#eef3ff;color:#2455d6;font-weight:700;cursor:pointer}
.history-list,.products-wrap{display:grid;gap:12px}
.history-item,.product-item{background:#fff;border:1px solid #e3e7ef;border-radius:14px;padding:16px}
.history-top,.product-top{display:flex;justify-content:space-between;gap:16px;align-items:center}
.history-title,.product-title{font-weight:800;color:#172033}
.history-meta,.product-meta{margin-top:7px;color:#667085;font-size:14px;line-height:1.45}
.history-actions{display:flex;gap:8px;margin-top:12px}
.alt.small{padding:8px 12px;font-size:13px}
.products-search{margin-bottom:12px}
.products-search input{width:100%;padding:12px 14px;border:1px solid #d9deea;border-radius:10px;font:inherit}
.status-ok{color:#16794a;font-weight:700}
.status-check{color:#b54708;font-weight:700}
@media(max-width:700px){
  .history-top,.product-top{align-items:flex-start;flex-direction:column;gap:4px}
  .history-actions{flex-wrap:wrap}
  .row-edit{min-width:180px}
}
