:root {
  --ink: #17211d;
  --muted: #68736d;
  --line: #dfe5e1;
  --surface: #ffffff;
  --canvas: #f5f7f5;
  --green: #16643b;
  --green-2: #1f7b4a;
  --green-soft: #e7f4eb;
  --lime: #d9f45a;
  --red: #b63b3b;
  --red-soft: #fcebec;
  --amber: #9d6410;
  --amber-soft: #fff3d9;
  --shadow: 0 14px 35px rgba(24, 46, 35, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
input, select, textarea { width: 100%; border: 1px solid #ccd5cf; border-radius: 10px; background: #fff; padding: 11px 13px; outline: none; transition: border .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(31, 123, 74, .12); }
textarea { resize: vertical; }

.shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 252px; display: flex; flex-direction: column; padding: 27px 19px 20px; color: #eaf2ed; background: #12291f; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 36px; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 20px; letter-spacing: .05em; }
.brand small { color: #8da99a; font-size: 9px; letter-spacing: .13em; }
.brand-mark { position: relative; width: 35px; height: 35px; flex: 0 0 auto; display: inline-block; border: 8px solid var(--lime); border-radius: 50%; }
.brand-mark::before, .brand-mark::after, .brand-mark i::before, .brand-mark i::after { content: ""; position: absolute; width: 4px; height: 4px; background: #12291f; border-radius: 50%; }
.brand-mark::before { left: 7px; top: -6px; }.brand-mark::after { left: 7px; bottom: -6px; }.brand-mark i::before { left: -6px; top: 7px; }.brand-mark i::after { right: -6px; top: 7px; }
.brand-mark.large { width: 42px; height: 42px; border-width: 9px; }
.nav { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.nav a { display: flex; gap: 12px; align-items: center; min-height: 47px; padding: 0 14px; border-radius: 11px; color: #b8c9c0; font-size: 14px; font-weight: 700; }
.nav a span { width: 20px; font-size: 19px; text-align: center; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.active { color: #12291f; background: var(--lime); }
.nav-label { margin: 25px 14px 5px; color: #668174; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.sidebar-user { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 26px; padding: 14px 9px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; display: inline-grid; place-items: center; color: #123221; background: var(--lime); border-radius: 50%; font-size: 14px; font-weight: 900; }
.avatar.small { width: 32px; height: 32px; }
.user-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.user-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { color: #91a89c; font-size: 11px; }
.user-menu summary { padding: 5px; color: #90a79b; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu > div { position: absolute; right: 0; bottom: 38px; width: 150px; padding: 6px; color: var(--ink); background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.user-menu a, .user-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 7px; text-align: left; font-size: 13px; }
.user-menu a:hover, .user-menu button:hover { background: var(--canvas); }
.page { width: calc(100% - 252px); min-width: 0; margin-left: 252px; }
.content { width: min(1420px, 100%); margin: 0 auto; padding: 38px 42px 70px; }
.mobile-header, .nav-backdrop { display: none; }

.eyebrow { margin: 0 0 8px; color: var(--green-2); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.eyebrow.light { color: var(--lime); }
.muted { color: var(--muted); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.page-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; gap: 8px; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.button.primary { color: #fff; background: var(--green); }
.button.primary:hover { background: #0e522e; }
.button.secondary { color: var(--green); background: #fff; border-color: #cbd8d0; }
.button.secondary:hover { background: var(--green-soft); }
.button.dark { color: #fff; background: var(--ink); }
.button.wide { width: 100%; }.button.tall { min-height: 51px; }.small-button { min-height: 36px; }
.panel { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 15px rgba(31, 57, 43, .035); }
.narrow-panel { max-width: 620px; }
.gap-top { margin-top: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading > a { color: var(--green); font-size: 12px; font-weight: 800; }
.count-pill { display: inline-flex; padding: 5px 10px; color: var(--green); background: var(--green-soft); border-radius: 99px; font-size: 12px; font-weight: 800; }
.flash-stack { position: fixed; z-index: 50; top: 22px; right: 26px; display: grid; gap: 8px; max-width: min(430px, calc(100vw - 30px)); }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; color: #6e2929; background: #fff; border: 1px solid #f0c6c8; border-radius: 11px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }
.flash > span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; font-size: 11px; }
.flash.success { color: #174c30; border-color: #b8dec5; }.flash.success > span { background: var(--green-2); }

.search-hero { overflow: hidden; position: relative; min-height: 330px; padding: 54px 58px; color: #fff; background: #173a2a; border-radius: 24px; box-shadow: var(--shadow); }
.search-hero::after { content: ""; position: absolute; width: 390px; height: 390px; right: -90px; top: -170px; border: 70px solid rgba(217,244,90,.08); border-radius: 50%; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.hero-copy h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 53px); letter-spacing: -.045em; }
.hero-copy > p:last-child { margin: 0; color: #bcd0c4; font-size: 15px; }
.search-box { position: relative; z-index: 2; max-width: 830px; margin-top: 35px; }
.search-box > label { display: block; margin-bottom: 7px; color: #d9e5de; font-size: 12px; font-weight: 800; }
.search-control { display: flex; align-items: center; padding: 8px 8px 8px 18px; background: #fff; border-radius: 14px; box-shadow: 0 10px 35px rgba(0,0,0,.17); }
.search-control > span { color: var(--muted); font-size: 24px; }
.search-control input { min-width: 0; height: 48px; color: var(--ink); border: 0; box-shadow: none; font-size: 17px; font-weight: 700; }
.search-control .button { min-width: 98px; min-height: 48px; }
.search-box > small { display: block; margin-top: 9px; color: #97aea1; }
.search-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 22px; }
.search-guide > div { display: grid; grid-template-columns: 44px 1fr; padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.search-guide span { grid-row: span 2; color: var(--green-2); font-size: 13px; font-weight: 900; }
.search-guide strong { font-size: 15px; }.search-guide p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-block { margin-top: 32px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(29, 55, 41, .035); }
.result-top { display: flex; justify-content: space-between; gap: 10px; }
.position-tag { display: inline-flex; padding: 5px 9px; color: #425149; background: #eff3f0; border-radius: 6px; font-size: 11px; font-weight: 800; }
.stock { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 900; }.stock.good { color: var(--green); background: var(--green-soft); }.stock.empty { color: var(--red); background: var(--red-soft); }
.result-code { margin: 25px 0 3px; color: var(--green-2); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-weight: 900; letter-spacing: .03em; }
.result-card h3 { margin: 0 0 20px; font-size: 20px; }
.result-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; margin: 0; padding-top: 18px; border-top: 1px solid #edf0ee; }
.result-meta div { min-width: 0; }.result-meta dt { color: var(--muted); font-size: 10px; font-weight: 800; }.result-meta dd { overflow-wrap: anywhere; margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.result-note { margin: 17px 0 0; padding: 11px 13px; color: #66706b; background: var(--canvas); border-radius: 8px; font-size: 12px; }
.empty-state { padding: 70px 25px; background: #fff; border: 1px dashed #cbd5cf; border-radius: var(--radius); text-align: center; }
.empty-state .empty-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 17px; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 30px; }
.empty-state h3, .empty-state h1 { margin: 0 0 8px; }.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }.suggestions strong { width: 100%; font-size: 12px; }.suggestions a { padding: 7px 11px; color: var(--green); background: var(--green-soft); border-radius: 8px; font-family: monospace; font-weight: 800; }.suggestions small { opacity: .7; }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-grid article { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.stat-grid article > span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }.stat-grid article > strong { display: block; margin: 6px 0 1px; font-size: 25px; letter-spacing: -.04em; }.stat-grid article > small { color: #95a09a; font-size: 10px; }
.stat-grid article.warning-stat { background: var(--amber-soft); border-color: #efdcae; }.stat-grid article.warning-stat > strong { color: var(--amber); }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compact-list { display: grid; }.compact-list > a, .compact-list > div { display: flex; align-items: center; gap: 11px; min-height: 63px; padding: 9px 0; border-top: 1px solid #edf0ee; }.compact-list > :first-child { border-top: 0; }.compact-list > a:hover strong { color: var(--green); }.compact-list > a > span:nth-child(2), .compact-list > div > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; }.compact-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.compact-list small { color: var(--muted); font-size: 10px; }.compact-list em { font-style: normal; }
.file-badge { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--green-2); border-radius: 8px; font-size: 10px; font-weight: 900; }
.search-log-code { width: 110px; overflow: hidden; color: var(--green); font-family: monospace; font-size: 12px; font-weight: 800; text-overflow: ellipsis; }
.status { display: inline-flex; padding: 4px 8px; color: #536059; background: #eef1ef; border-radius: 99px; font-size: 10px; font-style: normal; font-weight: 900; white-space: nowrap; }.status.active, .status.completed { color: var(--green); background: var(--green-soft); }.status.failed { color: var(--red); background: var(--red-soft); }.status.preview, .status.importing { color: var(--amber); background: var(--amber-soft); }.status.disabled, .status.expired { color: #66706b; background: #e9ecea; }

.create-panel { margin-bottom: 22px; }.create-panel > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; }.create-panel > summary::-webkit-details-marker { display: none; }.create-panel > summary > span { display: flex; flex-direction: column; }.create-panel > summary strong { font-size: 18px; }.create-panel > summary small { margin-top: 3px; color: var(--muted); }.create-panel > summary b { color: var(--green); font-size: 25px; }.create-panel[open] > summary { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }.form-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 11px; }
.form-stack { display: grid; gap: 18px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }.field > span { font-size: 11px; font-weight: 800; }.field > small { color: var(--muted); font-size: 10px; }.field.full, .form-actions.full { grid-column: 1 / -1; }.form-actions { display: flex; justify-content: flex-end; }
.user-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }.user-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }.user-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }.user-card-head > div { min-width: 0; display: flex; flex: 1; flex-direction: column; }.user-card-head strong { font-size: 14px; }.user-card-head small { color: var(--muted); font-size: 11px; }.user-meta { display: flex; flex-direction: column; justify-content: center; }.user-meta span { color: var(--muted); font-size: 10px; }.user-meta strong { font-size: 11px; }
.password-reset { margin-top: 13px; padding-top: 12px; border-top: 1px solid #edf0ee; }.password-reset summary { color: var(--muted); font-size: 11px; font-weight: 800; }.password-reset form { display: flex; gap: 7px; margin-top: 10px; }.password-reset .button { min-height: 40px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }.toolbar-search { display: flex; width: min(420px, 100%); align-items: center; padding-left: 12px; border: 1px solid #ccd5cf; border-radius: 10px; }.toolbar-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,123,74,.1); }.toolbar-search input { border: 0; box-shadow: none; }.toolbar-search button { align-self: stretch; padding: 0 15px; color: var(--green); background: none; border: 0; font-size: 12px; font-weight: 900; }.toolbar-count { color: var(--muted); font-size: 12px; }.toolbar-count strong { color: var(--ink); }
.table-wrap { width: 100%; overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }.data-table th { padding: 11px 13px; color: #78837d; background: #f6f8f6; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; letter-spacing: .02em; white-space: nowrap; }.data-table th:first-child { border-radius: 8px 0 0 8px; }.data-table th:last-child { border-radius: 0 8px 8px 0; }.data-table td { padding: 14px 13px; border-bottom: 1px solid #edf0ee; vertical-align: middle; }.data-table td > strong, .data-table td > small { display: block; }.data-table td > small { margin-top: 3px; color: var(--muted); font-size: 10px; }.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }.number-badge { display: inline-grid; min-width: 29px; height: 27px; place-items: center; background: #eef2ef; border-radius: 7px; font-weight: 800; }.text-link { color: var(--green); font-weight: 800; white-space: nowrap; }.text-button { padding: 3px; background: none; border: 0; font-size: 11px; font-weight: 800; }.text-button.danger { color: var(--red); }.empty-row { padding: 34px !important; color: var(--muted); text-align: center !important; }
.stock-form { display: flex; gap: 6px; }.stock-form input { width: 85px; padding: 7px 9px; }.stock-form button { padding: 0 9px; color: var(--green); background: var(--green-soft); border: 0; border-radius: 7px; font-size: 10px; font-weight: 900; }.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 22px; font-size: 12px; }.pagination a { padding: 7px 12px; background: #f0f4f1; border-radius: 7px; font-weight: 800; }.pagination a.disabled { pointer-events: none; opacity: .35; }
.oem-add-form { margin-bottom: 25px; padding: 18px; background: #f7f9f7; border-radius: 12px; }
.oem-focus { scroll-margin-top: 20px; border-color: #afd2bc; box-shadow: 0 8px 24px rgba(31, 123, 74, .08); }
.oem-guidance { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; padding: 13px 16px; color: #315c44; background: var(--green-soft); border-radius: 10px; font-size: 11px; }.oem-guidance strong { font-size: 12px; }.oem-guidance span { color: #587064; }.oem-guidance b { color: var(--red); }
.oem-code-field input { border-color: #8db69c; background: #fbfffc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; }

.upload-panel { padding: 30px; background: #e9f4ed; border: 1px solid #c9e0d1; border-radius: var(--radius); }.upload-copy { display: flex; align-items: center; gap: 15px; }.upload-copy h2 { margin: 0; font-size: 19px; }.upload-copy p { margin: 4px 0 0; color: #567063; font-size: 12px; }.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 13px; font-size: 24px; }.upload-form { display: flex; gap: 10px; margin-top: 22px; }.file-picker { min-width: 0; display: flex; flex: 1; align-items: center; padding: 7px 7px 7px 15px; background: #fff; border: 1px dashed #9eb9aa; border-radius: 11px; }.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }.file-picker span { overflow: hidden; flex: 1; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.file-picker b { padding: 8px 12px; color: var(--green); background: var(--green-soft); border-radius: 7px; font-size: 11px; }.upload-rules { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 15px; color: #60776b; font-size: 10px; }.upload-rules span::before { content: "✓"; margin-right: 5px; color: var(--green); font-weight: 900; }.clickable-row { cursor: pointer; }.clickable-row:hover { background: #f8faf8; }
.import-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.upload-panel .upload-kind { margin: 0 0 3px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.stock-upload { background: #eef3fb; border-color: #cedbed; }.stock-upload .upload-icon { background: #355f96; }.stock-upload .upload-kind, .stock-upload .upload-copy p { color: #49698d; }.stock-upload .file-picker { border-color: #a9bcd3; }.stock-upload .file-picker b { color: #355f96; background: #e6edf7; }
.stock-button { color: #fff; background: #355f96; border-color: #355f96; }.stock-button:hover { background: #294f80; }
.upload-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 13px; color: var(--muted); font-size: 10px; }.upload-actions a { color: var(--green); font-weight: 900; }.stock-upload .upload-actions a { color: #355f96; }.import-rules { margin: 12px 3px 0; }
.import-kind { display: inline-flex; padding: 4px 8px; color: var(--green); background: var(--green-soft); border-radius: 99px; font-size: 10px; font-weight: 900; white-space: nowrap; }.import-kind.stock { color: #355f96; background: #e6edf7; }
.inspect-form { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }.inspect-form .field { width: min(270px, 40%); }.inspect-form .field:nth-of-type(2) { width: 130px; }.mapping-help { margin: 23px 0 17px; padding: 14px 16px; background: var(--green-soft); border-radius: 10px; }.mapping-help strong { font-size: 13px; }.mapping-help p { margin: 4px 0 0; color: #4e6859; font-size: 11px; }.mapping-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }.mapping-grid .field { padding: 11px; background: #f7f9f7; border: 1px solid #e3e8e4; border-radius: 10px; }.mapping-grid .required-map { border-color: #a6c8b3; background: #f0f8f2; }.preview-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }.preview-title h2 { margin: 0; font-size: 17px; }.preview-title span { color: var(--muted); font-size: 10px; }.preview-table { max-height: 440px; border: 1px solid var(--line); border-radius: 10px; }.preview-table th { position: sticky; z-index: 1; top: 0; }.preview-table td { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sticky-actions { position: sticky; z-index: 2; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 14px 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }.sticky-actions > span { color: var(--muted); font-size: 11px; }
.mapping-help.stock-help { background: #e9f0f9; }.mapping-help.stock-help p { color: #49698d; }.mapping-grid.stock-mapping { grid-template-columns: repeat(2, minmax(0, 280px)); }.mapping-grid.stock-mapping .required-map { border-color: #afc3dc; background: #f1f5fb; }
.result-summary { display: flex; align-items: center; gap: 17px; margin-bottom: 18px; padding: 24px; color: #fff; background: var(--green); border-radius: var(--radius); }.result-summary.has-errors { background: #8d5a13; }.summary-icon { width: 46px; height: 46px; display: grid; flex: 0 0 auto; place-items: center; color: var(--green); background: #fff; border-radius: 50%; font-size: 21px; font-weight: 900; }.result-summary p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }.result-summary h2 { margin: 2px 0 0; font-size: 23px; }.import-stats { grid-template-columns: repeat(6, 1fr); }.error-list { max-height: 380px; overflow: auto; }.error-list > div { display: flex; gap: 17px; padding: 10px 0; border-top: 1px solid #edf0ee; font-size: 12px; }.error-list strong { width: 55px; flex: 0 0 auto; color: var(--red); }.error-list span { color: var(--muted); }
.stock-stats { grid-template-columns: repeat(5, 1fr); }
.error-state { margin-top: 8vh; }.error-code { display: block; color: var(--green); font-size: 70px; font-weight: 900; letter-spacing: -.06em; }.error-state .button { margin-top: 22px; }

.login-body { background: #fff; }.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr); }.login-visual { overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; color: #fff; background: #153728; }.login-wordmark { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 900; letter-spacing: .05em; }.login-message { position: relative; z-index: 2; max-width: 620px; margin-bottom: 10vh; }.login-message h1 { margin: 0 0 20px; font-size: clamp(39px, 5vw, 67px); line-height: 1.16; letter-spacing: -.055em; }.login-message > p:last-child { color: #b9cec2; font-size: 15px; }.disc-art { position: absolute; width: 550px; height: 550px; right: -235px; bottom: -205px; border: 105px solid rgba(217,244,90,.11); border-radius: 50%; }.disc-art::before, .disc-art::after, .disc-art i::before, .disc-art i::after { content: ""; position: absolute; width: 32px; height: 32px; background: #153728; border: 12px solid rgba(217,244,90,.11); border-radius: 50%; }.disc-art::before { left: 45px; top: 45px; }.disc-art::after { right: 45px; top: 45px; }.disc-art i::before { left: 45px; bottom: 45px; }.disc-art i::after { right: 45px; bottom: 45px; }.login-panel { display: grid; place-items: center; padding: 40px; }.login-card { width: min(430px, 100%); }.login-card h2 { margin: 0; font-size: 37px; letter-spacing: -.045em; }.login-card > .muted { margin: 7px 0 30px; font-size: 13px; }.login-card .field { margin-top: 17px; }.login-card .button { margin-top: 25px; }.login-help { margin-top: 18px; color: var(--muted); text-align: center; font-size: 11px; }.login-mobile-logo { display: none; }

.view-tabs { display: flex; gap: 5px; margin: -5px 0 17px; }
.view-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; color: var(--muted); border-radius: 9px; font-size: 12px; font-weight: 800; }
.view-tabs a:hover { color: var(--green); background: #edf3ef; }
.view-tabs a.active { color: #fff; background: var(--green); }
.view-tabs span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; color: inherit; background: rgba(255,255,255,.16); border-radius: 99px; font-size: 10px; }
.view-tabs a:not(.active) span { color: var(--green); background: var(--green-soft); }
.bulk-toolbar { display: flex; min-height: 51px; align-items: center; justify-content: flex-end; gap: 13px; margin: 0 0 12px; padding: 7px 9px 7px 15px; background: #f5f8f6; border: 1px solid var(--line); border-radius: 10px; }
.bulk-toolbar > span { margin-right: auto; color: var(--muted); font-size: 11px; }.bulk-toolbar > span strong { color: var(--ink); font-size: 14px; }
.danger-button { color: #fff; background: var(--red); }.danger-button:hover { background: #992f2f; }.button:disabled { cursor: not-allowed; opacity: .42; }
.select-column { width: 68px; text-align: center !important; }
.select-column input, .check-label input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); cursor: pointer; }
.check-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }.check-label span { font-size: 10px; }
.data-table tr.selected-row td { background: #f0f8f2; }
.row-actions { display: flex; align-items: center; gap: 11px; white-space: nowrap; }.row-actions form { margin: 0; }
.edit-link { color: var(--green); font-size: 11px; font-weight: 900; }.button-reset { padding: 0; background: none; border: 0; }

.login-message h1 { font-size: clamp(39px, 4.3vw, 58px); }

@media (max-width: 1180px) {
  .stat-grid, .import-stats { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .mapping-grid { grid-template-columns: repeat(3, 1fr); }
  .import-choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }.sidebar.open { transform: translateX(0); }
  .nav-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(5,20,13,.48); }.nav-backdrop.show { display: block; }
  .page { width: 100%; margin-left: 0; }.content { padding: 25px 18px 50px; }
  .mobile-header { position: sticky; z-index: 15; top: 0; display: flex; height: 59px; align-items: center; justify-content: space-between; padding: 0 17px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
  .nav-toggle { width: 34px; height: 34px; padding: 0; background: none; border: 0; font-size: 20px; }.mobile-brand { color: var(--green); font-size: 16px; font-weight: 900; letter-spacing: .06em; }
  .page-heading { align-items: flex-start; }.page-heading > .button, .heading-actions { margin-top: 2px; }.page-heading p:not(.eyebrow) { display: none; }
  .search-hero { min-height: 315px; padding: 38px 23px; border-radius: 18px; }.search-control { padding-left: 13px; }.search-control input { font-size: 14px; }.search-control .button { min-width: 75px; padding: 0 12px; }
  .search-guide, .result-grid, .two-columns, .user-grid { grid-template-columns: 1fr; }.search-guide { gap: 9px; }
  .stat-grid, .import-stats { grid-template-columns: repeat(2, 1fr); }.stat-grid article { padding: 16px; }
  .panel { padding: 18px; border-radius: 14px; }
  .mapping-grid { grid-template-columns: repeat(2, 1fr); }
  .mapping-grid.stock-mapping { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-layout { display: block; }.login-visual { display: none; }.login-panel { min-height: 100vh; padding: 28px; }.login-mobile-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 70px; color: var(--green); font-size: 18px; font-weight: 900; }
}

@media (max-width: 540px) {
  .page-heading { flex-direction: column; }.page-heading .button { width: 100%; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }
  .form-grid, .form-grid.compact, .mapping-grid { grid-template-columns: 1fr; }
  .result-meta { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }.toolbar-search { width: 100%; }
  .upload-form { flex-direction: column; }.upload-form .button { width: 100%; }.upload-rules { display: grid; }
  .upload-actions { align-items: flex-start; flex-direction: column; gap: 5px; }
  .inspect-form { align-items: stretch; flex-direction: column; }.inspect-form .field, .inspect-form .field:nth-of-type(2) { width: 100%; }.inspect-form .button { width: 100%; }
  .oem-guidance { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sticky-actions { align-items: stretch; flex-direction: column; }.sticky-actions .button { width: 100%; }
  .stat-grid, .import-stats { grid-template-columns: repeat(2, 1fr); }
  .flash-stack { top: 70px; right: 15px; left: 15px; }
}
