:root {
  --navy: #183b56;
  --navy-deep: #102b40;
  --blue: #2f6690;
  --blue-soft: #e8f1f7;
  --teal: #238477;
  --green-soft: #e6f4ef;
  --amber: #ad6a1c;
  --amber-soft: #fff3df;
  --red: #b74343;
  --red-soft: #fff0ef;
  --ink: #1d2e3b;
  --muted: #748391;
  --line: #dfe6eb;
  --surface: #ffffff;
  --canvas: #f4f7f8;
  --shadow: 0 16px 40px rgba(19, 52, 72, .07);
  font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.topbar {
  display: flex; align-items: center; gap: 28px; min-height: 72px; padding: 0 clamp(18px, 4vw, 54px);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #2f6690, #1b8078); font-size: 17px; font-weight: 700; box-shadow: 0 5px 12px rgba(47,102,144,.2); }
.brand-label { display: flex; flex-direction: column; line-height: 1.2; }
.brand-label strong { font-size: 14px; }
.brand-label small { font-size: 10px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.topbar nav { display: flex; align-self: stretch; align-items: center; gap: 5px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a, .topbar nav .nav-disabled { height: 40px; display: inline-flex; align-items: center; padding: 0 13px; white-space: nowrap; border-radius: 9px; color: #61717d; font-size: 13px; font-weight: 600; transition: .15s ease; }
.topbar nav a:hover { background: #f2f6f8; color: var(--navy); }
.topbar nav a.active { color: var(--navy); background: var(--blue-soft); }
.topbar nav .nav-disabled { color: #a4afb6; cursor: not-allowed; user-select: none; }
.account-chip { display: flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap; }
.account-chip > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.account-chip strong { max-width: 150px; overflow: hidden; color: #314451; font-size: 12px; text-overflow: ellipsis; }
.account-chip small { padding: 4px 7px; border: 1px solid #e2e9ed; border-radius: 20px; background: #f5f8f9; color: #72838b; font-size: 9px; line-height: 1; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e7eff4; color: var(--navy); font-weight: 700; }
.account-chip form { margin-left: 4px; }
.link-button { border: 0; padding: 6px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.link-button:hover { color: var(--red); }

.container { width: min(1460px, 100%); margin: 0 auto; padding: 34px clamp(18px, 4vw, 54px) 54px; }
.footer { padding: 22px 20px 28px; text-align: center; color: #98a4ad; font-size: 11px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading h1 { margin: 3px 0 7px; color: var(--navy-deep); font-size: clamp(23px, 2.4vw, 31px); line-height: 1.2; letter-spacing: -.035em; }
.report-page-title { margin-bottom: 23px; }
.report-page-title h1 { margin: 0; color: var(--navy-deep); font-size: clamp(23px, 2.4vw, 31px); line-height: 1.2; letter-spacing: -.035em; }
.eyebrow { margin: 0; color: #8293a0; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.subtitle { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.welcome-row .page-heading { margin-bottom: 25px; }
.welcome-actions, .toolbar-actions, .row-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .16s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); filter: brightness(.98); }
.button.primary { background: var(--navy); color: #fff; box-shadow: 0 4px 10px rgba(24,59,86,.13); }
.button.primary:hover { background: #214e70; }
.button.secondary { border-color: var(--line); background: #fff; color: #415561; }
.button.secondary:hover { border-color: #b8c8d2; background: #f9fbfc; }
.button.danger { background: var(--red-soft); border-color: #f3d3d0; color: var(--red); }
.button.small { min-height: 34px; padding: 0 11px; border-radius: 7px; font-size: 11px; }
.link-button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47,102,144,.28); outline-offset: 2px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 4px 0 20px; }
.workbench-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px 18px; min-height: 116px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 4px 15px rgba(25,56,74,.025); }
.kpi-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; font-size: 18px; font-weight: 700; }
.kpi-icon.blue { color: var(--blue); background: #e8f1f7; }
.kpi-icon.green { color: #238477; background: #e6f4ef; }
.kpi-icon.amber { color: #ad6a1c; background: #fff3df; }
.kpi-icon.violet { color: #6550a1; background: #f0edfb; }
.kpi-card div { min-width: 0; display: flex; flex-direction: column; }
.kpi-card div > span { color: #73818c; font-size: 11px; font-weight: 600; }
.kpi-card strong { margin: 5px 0 2px; color: var(--navy-deep); font-size: 27px; line-height: 1.2; letter-spacing: -.04em; }
.kpi-card small { color: #a0abb3; font-size: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); gap: 16px; }
.admin-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.admin-tool-card { min-height: 230px; display: flex; gap: 17px; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.admin-tool-card:hover { transform: translateY(-3px); border-color: #c5d9d3; box-shadow: 0 18px 42px rgba(19,52,72,.11); }
.admin-tool-number { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #e8f3ee; color: #347468; font-size: 12px; font-weight: 700; }
.admin-tool-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.admin-tool-copy .eyebrow { color: #6f9186; }
.admin-tool-copy h2 { margin: 10px 0 7px; color: var(--navy-deep); font-size: 18px; }
.admin-tool-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.admin-tool-summary { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; color: #59776d; font-size: 11px; }
.admin-tool-summary b { color: #347468; font-size: 18px; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 4px 16px rgba(25,56,74,.025); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 21px 15px; }
.panel-heading h2 { margin: 0 0 5px; color: var(--navy-deep); font-size: 15px; letter-spacing: -.02em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.panel-heading > a:not(.button) { color: var(--blue); font-size: 11px; font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; width: 100%; }
.data-table { width: 100%; min-width: 790px; border-collapse: separate; border-spacing: 0; text-align: left; }
.data-table th { padding: 11px 13px; border-top: 1px solid #edf0f2; border-bottom: 1px solid #e9eef1; background: #f8fafb; color: #73818c; font-size: 10px; font-weight: 700; white-space: nowrap; }
.data-table td { padding: 12px 13px; border-bottom: 1px solid #edf1f3; color: #455965; font-size: 11px; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fcfdfd; }
.data-table td strong, .data-table td small { display: block; }
.data-table td strong { color: #253c4b; font-size: 11px; }
.data-table td small { margin-top: 3px; color: #91a0aa; font-size: 10px; }
.data-table.compact { min-width: 650px; }
.score-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 4px 7px; border-radius: 6px; color: var(--navy); background: #eaf2f7; font-weight: 700; }
.record-link { color: var(--blue); font-weight: 700; }
.record-link:hover { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; color: #667784; background: #eef2f4; font-size: 10px; font-weight: 700; white-space: nowrap; }
.pill.positive { color: #277469; background: #e8f5f0; }
.pill.negative { color: #a44d49; background: #fff0ef; }
.pill.warning { color: #9c651e; background: #fff4df; }
.table-empty, .empty-inline { padding: 30px 20px; color: #8a9aa4; text-align: center; font-size: 12px; }
.recent-list { padding: 0 20px 12px; }
.recent-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eef1f3; }
.recent-row:last-child { border-bottom: 0; }
.recent-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #57a497; box-shadow: 0 0 0 4px #e9f5f2; }
.recent-row span:nth-child(2) { min-width: 0; flex: 1; }
.recent-row strong, .recent-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row strong { color: #344c5b; font-size: 11px; }
.recent-row small { margin-top: 4px; color: #94a1aa; font-size: 10px; }
.recent-row b { color: var(--navy); font-size: 12px; }
.process-hint { display: flex; align-items: flex-start; gap: 11px; margin-top: 17px; padding: 14px 17px; border: 1px solid #deebef; border-radius: 11px; background: #edf5f6; }
.hint-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: #d7ebea; color: #2d7772; font-size: 12px; font-weight: 700; }
.process-hint strong { display: block; color: #3d696c; font-size: 11px; }
.process-hint p { margin: 5px 0 0; color: #688487; font-size: 10px; line-height: 1.7; }

.notice { margin: 0 0 16px; padding: 12px 15px; border: 1px solid #d3eae3; border-radius: 9px; background: #eef8f4; color: #286d61; font-size: 12px; line-height: 1.6; }
.notice.error { border-color: #f0d2cf; background: #fff3f1; color: #a7443e; }
.saved-celebration-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(18, 42, 55, .48); backdrop-filter: blur(5px); animation: saved-backdrop-in .2s ease-out both; }
.saved-celebration { position: relative; width: min(440px, 100%); overflow: hidden; padding: 32px 28px 26px; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; background: radial-gradient(circle at 50% 0, #fff9e8 0, #fff 46%); box-shadow: 0 24px 70px rgba(11, 37, 49, .25); text-align: center; animation: saved-card-in .34s cubic-bezier(.2,.8,.25,1.1) both; }
.saved-celebration-close { position: absolute; z-index: 1; top: 10px; right: 13px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.8); color: #829097; font-size: 22px; line-height: 1; cursor: pointer; }
.saved-celebration-sparkles { position: absolute; inset: 8px 20px auto; display: flex; justify-content: space-around; color: #e7b64b; pointer-events: none; }
.saved-celebration-sparkles span:nth-child(2), .saved-celebration-sparkles span:nth-child(4) { margin-top: 25px; color: #70b9a6; font-size: 12px; }
.saved-celebration-sparkles span:nth-child(1), .saved-celebration-sparkles span:nth-child(5) { margin-top: 43px; color: #db8d71; font-size: 10px; }
.saved-celebration-check { width: 66px; height: 66px; display: grid; place-items: center; margin: 4px auto 12px; border: 5px solid #e5f3ec; border-radius: 50%; background: linear-gradient(145deg, #48ad8e, #218678); color: #fff; font-size: 31px; font-weight: 700; box-shadow: 0 8px 18px rgba(35,132,119,.2); }
.saved-celebration-kicker { margin: 0 0 6px; color: #b17b29; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.saved-celebration h2 { margin: 0; color: #183b48; font-size: 21px; letter-spacing: -.02em; }
.saved-celebration-copy { margin: 9px 0 22px; color: #75848b; font-size: 12px; }
.saved-celebration-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
@keyframes saved-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes saved-card-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.filter-panel { margin-bottom: 15px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); align-items: end; gap: 12px; }
.filter-grid.compact-filter { grid-template-columns: minmax(145px, 1.2fr) minmax(145px, 1.2fr) minmax(100px, .75fr) minmax(120px, .9fr) minmax(120px, .9fr) auto; gap: 9px; }
.filter-grid.report-filter { grid-template-columns: minmax(95px, .95fr) minmax(130px, 1.25fr) minmax(80px, .75fr) minmax(95px, .9fr) minmax(95px, .9fr) auto; gap: 7px; }
.report-filter .filter-actions { gap: 5px; white-space: nowrap; }
.report-filter .button { padding-right: 9px; padding-left: 9px; }
.filter-grid.workbench-filter { grid-template-columns: repeat(3, minmax(115px, .8fr)) minmax(145px, 1fr) minmax(185px, 1.3fr) auto; gap: 9px; }
.filter-field, .field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.filter-field > span, .field > span { color: #526571; font-size: 11px; font-weight: 700; }
.filter-field input, .filter-field select, .field input, .field select, .field textarea, .inline-form input { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid #d8e1e6; border-radius: 8px; outline: 0; background: #fff; color: var(--ink); font-size: 12px; }
.filter-field input:focus, .filter-field select:focus, .field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus { border-color: #74a3c0; box-shadow: 0 0 0 3px rgba(47,102,144,.1); }
.filter-field input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #aab5bc; }
.filter-field.search-field { grid-column: span 2; }
.filter-grid.workbench-filter .search-field { grid-column: auto; }
.filter-actions { display: flex; align-items: center; gap: 8px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 17px 0 10px; }
.result-count { color: #7a8993; font-size: 11px; font-weight: 600; }
.list-panel { overflow: hidden; }
.report-product-link { display: inline-flex; flex-direction: column; gap: 3px; color: var(--navy-deep); text-decoration: none; }
.report-product-link:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.report-product-link small { color: var(--muted); font-size: 9px; }
.report-detail-panel { margin-top: 15px; }
.report-detail-table { min-width: 1450px; }
.report-detail-table td:nth-child(14), .report-detail-table td:nth-child(15) { min-width: 180px; max-width: 320px; white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.sensory-chart-panel { margin-top: 16px; padding: 0 20px 18px; }
.sensory-chart-panel .panel-heading { padding: 18px 0 16px; }
.chart-scale-label { padding: 5px 9px; border-radius: 20px; background: #f1f6f7; color: #71828a; font-size: 10px; font-weight: 700; }
.sensory-chart-layout { display: grid; grid-template-columns: minmax(210px, 25%) minmax(0, 1fr); align-items: center; gap: 14px; }
.sensory-participant-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.participant-stat-card { display: flex; min-width: 0; min-height: 94px; flex-direction: column; justify-content: center; gap: 5px; padding: 11px 12px; border: 1px solid #e5ecee; border-radius: 12px; background: linear-gradient(145deg, #fff, #f7fafb); box-shadow: 0 4px 12px rgba(42,71,82,.035); }
.participant-stat-card > span { display: flex; align-items: center; gap: 6px; color: #71818a; font-size: 10px; font-weight: 650; white-space: nowrap; }
.participant-stat-card > strong { color: #304c59; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.participant-stat-card > i { color: #91a0a5; font-size: 9px; font-style: normal; }
.participant-stat-total { border-color: #cfe5dd; background: linear-gradient(145deg, #f0faf6, #e8f5f0); }
.participant-stat-total > span, .participant-stat-total > strong { color: #258576; }
.participant-stat-total > strong { font-size: 25px; }
.participant-stat-total > strong small { margin-left: 3px; font-size: 9px; font-weight: 600; }
.participant-stat-total > i { color: #709b90; }
.participant-stat-intent { grid-column: 1 / -1; min-height: 72px; align-items: center; gap: 3px; text-align: center; border-color: #cfe5dd; background: linear-gradient(120deg, #f0faf6, #f8fbff); }
.participant-stat-intent > span { justify-content: center; color: #258576; }
.participant-stat-intent > strong { color: #258576; font-size: 25px; }
.participant-stat-intent > i { text-align: center; }
.participant-dot { width: 8px; height: 8px; border-radius: 50%; }
.employee-dot { background: #398b79; }
.external-dot { background: #718bd3; }
.other-dot { background: #e3a846; }
.sensory-participant-note { grid-column: 1 / -1; margin: 0; color: #8b999e; font-size: 9px; text-align: center; }
.sensory-chart-area { min-width: 0; align-self: center; }
.sensory-svg { display: block; width: 100%; height: auto; max-height: 380px; overflow: visible; }
.sensory-gridline { stroke: #e9eff1; stroke-width: 1; stroke-dasharray: 4 5; }
.sensory-baseline { stroke: #aebbc1; stroke-width: 1.5; }
.sensory-tick { fill: #9aa8ae; font-size: 10px; }
.sensory-score { fill: #344e5c; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sensory-category { fill: #485e69; font-size: 12px; font-weight: 600; }
.sensory-chart-foot { display: flex; justify-content: space-between; gap: 12px; margin: 7px 24px 0; color: #87959d; font-size: 10px; }
.sensory-chart-empty { padding: 36px 16px; border: 1px dashed #d8e2e5; border-radius: 10px; color: #83929a; font-size: 12px; text-align: center; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 14px 5px; color: var(--muted); font-size: 11px; }
.pagination > div { display: flex; gap: 8px; }
.muted, .muted-note { color: #93a0a9; font-size: 10px; }
.muted-note { line-height: 1.6; }

.form-panel { padding: 22px clamp(16px, 3vw, 28px); }
.record-info-main-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; }
.score-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.score-field legend { margin-bottom: 7px; color: #526571; font-size: 11px; font-weight: 700; }
.score-field legend em { color: #ce655a; font-style: normal; }
.score-color_score { --score-accent: #c58d20; --score-bg: #fff8e7; }
.score-aroma_score { --score-accent: #8065bf; --score-bg: #f7f3ff; }
.score-taste_score { --score-accent: #ce5e5d; --score-bg: #fff3f1; }
.score-texture_score { --score-accent: #238477; --score-bg: #edf8f5; }
.score-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.score-choice { position: relative; min-width: 0; cursor: pointer; }
.score-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.score-choice span { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid color-mix(in srgb, var(--score-accent) 20%, #d8e1e6); border-radius: 7px; background: var(--score-bg); color: #526571; transition: .14s ease; }
.score-choice b { font-size: 13px; line-height: 1; }
.score-choice small { font-size: 7px; line-height: 1; white-space: nowrap; }
.score-choice:hover span { border-color: var(--score-accent); transform: translateY(-1px); }
.score-choice input:checked + span { border-color: var(--score-accent); background: var(--score-accent); color: #fff; box-shadow: 0 3px 8px color-mix(in srgb, var(--score-accent) 25%, transparent); }
.score-choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--score-accent) 30%, transparent); outline-offset: 2px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.section-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 700; }
.section-title h2 { margin: 0 0 3px; color: var(--navy-deep); font-size: 14px; }
.section-title p { margin: 0; color: #8c9aa3; font-size: 10px; }
.section-spaced { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.participant-opinion-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.participant-opinion-grid .span-all { grid-column: 1 / -1; }
.participant-opinion-grid textarea { min-height: 40px; height: 40px; resize: vertical; }
.product-create-grid, .product-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qr-admin-panel { padding: 20px; }
.qr-product-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.qr-product-heading h2 { margin: 4px 0; color: var(--navy-deep); font-size: 20px; }
.qr-product-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.qr-product-heading .toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.qr-product-heading form { display: inline-flex; }
.qr-print-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; width: min(100%, 660px); min-height: 710px; margin: 24px auto; padding: 42px 34px; border: 1px solid #d9e5e6; border-radius: 18px; background: linear-gradient(160deg, #fff 0%, #f4faf8 100%); box-shadow: 0 12px 30px rgba(24,59,86,.08); text-align: center; }
.qr-print-card header, .qr-print-card footer { width: 100%; }
.qr-print-card img { display: block; width: min(78vw, 420px); height: auto; aspect-ratio: 1; padding: 9px; border: 1px solid #e6ecee; border-radius: 16px; background: #fff; }
.qr-print-card h1 { margin: 0 0 12px; color: var(--navy-deep); font-size: 36px; line-height: 1.3; overflow-wrap: anywhere; }
.qr-print-card p { margin: 0; color: var(--muted); font-size: 24px; font-weight: 600; }
.qr-print-card strong { display: block; color: var(--teal); font-size: 23px; }
.qr-print-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.qr-local-note, .qr-security-note { width: min(100%, 580px); margin: 12px auto; color: #7d898f; font-size: 11px; line-height: 1.7; }
.qr-local-note { padding: 10px 12px; border-radius: 8px; background: var(--amber-soft); color: #8a5b17; }
.qr-security-note { padding: 12px 14px; border: 1px solid #e8edef; border-radius: 10px; }
.qr-empty { padding: 48px 16px 30px; text-align: center; }
.qr-empty > span { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--green-soft); color: var(--teal); font-size: 32px; }
.qr-empty h2 { margin: 12px 0 5px; color: var(--navy-deep); font-size: 17px; }
.qr-empty p { margin: 0; color: var(--muted); font-size: 11px; }
.qr-back-link { display: block; width: fit-content; margin: 12px auto 0; }
.blank-product-picker { padding: 20px; }
.blank-picker-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.blank-picker-toolbar > .field { flex: 1; max-width: 440px; }
.blank-picker-count { display: flex; justify-content: space-between; margin: 16px 0 8px; color: var(--muted); font-size: 12px; }
.blank-picker-count strong { color: var(--teal); font-size: 16px; }
.blank-product-list { max-height: 470px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.blank-product-option { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #edf1f3; cursor: pointer; }
.blank-product-option:last-child { border-bottom: 0; }
.blank-product-option:hover { background: #f7fafb; }
.blank-product-option[hidden] { display: none; }
.blank-product-option input { width: 17px; height: 17px; accent-color: var(--teal); }
.blank-product-option > span { display: grid; gap: 3px; min-width: 0; flex: 1; }
.blank-product-option strong { color: var(--navy-deep); font-size: 13px; }
.blank-product-option small { color: var(--muted); font-size: 10px; }
.blank-product-option em { color: var(--teal); font-size: 10px; font-style: normal; }
.qr-form-heading { margin: 4px 0 16px; text-align: center; }
.qr-form-heading h1 { margin: 0; color: var(--navy-deep); font-size: 24px; }
.qr-form-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.qr-record-form { max-width: 850px; margin: 0 auto; }
.qr-record-form .record-info-main-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr-record-form .field input[readonly] { background: #f1f7f6; color: var(--teal); font-weight: 700; }
.qr-record-form .participant-opinion-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { width: 210mm; height: 297mm; min-height: 0; margin: 0 !important; overflow: hidden !important; background: #fff; }
  body > header, body > footer, body > main > :not(.qr-admin-panel),
  body > main > .qr-admin-panel > :not(.qr-print-card) { display: none !important; }
  body > main.container { width: 210mm; height: 297mm; max-width: none; margin: 0; padding: 0; overflow: hidden; }
  .qr-admin-panel { display: block !important; width: 210mm; height: 297mm; margin: 0; padding: 0; overflow: hidden; border: 0; box-shadow: none; }
  .qr-print-card { width: 210mm; height: 297mm; min-height: 0; margin: 0; padding: 18mm 16mm; border: 0; border-radius: 0; box-shadow: none; background: #fff; justify-content: center; gap: 14mm; break-inside: avoid; }
  .qr-print-card img { width: 140mm; height: 140mm; padding: 3mm; border: 0; border-radius: 0; }
  .qr-print-card h1 { font-size: 36pt; }
  .qr-print-card p { font-size: 22pt; }
  .qr-print-card strong { font-size: 22pt; }
  .qr-print-card small { margin-top: 5mm; font-size: 17pt; }
}
.field em { color: #ce655a; font-style: normal; }
.field small { color: #8c9aa3; font-size: 10px; }
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.span-all { grid-column: 1 / -1; }
.form-actions { justify-content: space-between; margin-top: 23px; padding-top: 16px; border-top: 1px solid #edf1f3; }
.empty-state { padding: 38px 20px; text-align: center; }
.empty-state h2 { margin: 10px 0 5px; font-size: 16px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.empty-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 22px; }
.narrow-form { max-width: 560px; padding: 25px; }
.narrow-form .field + .field { margin-top: 16px; }
.detail-panel { padding: 20px 24px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-item { min-height: 70px; padding: 13px 14px; border-bottom: 1px solid #edf1f3; }
.detail-item span, .detail-item strong { display: block; }
.detail-item span { margin-bottom: 7px; color: #84929c; font-size: 10px; }
.detail-item strong { color: #304755; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { margin-top: 8px; }
.inline-form { display: inline-flex; align-items: center; gap: 7px; }
.inline-form input { width: 190px; min-height: 34px; font-size: 11px; }
.row-actions { gap: 7px; flex-wrap: nowrap; }
.row-actions form { display: flex; align-items: center; gap: 5px; }
.row-actions input { width: 135px; min-height: 32px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.export-access-form { display: grid; grid-template-columns: minmax(150px, 1fr); gap: 8px; max-width: 240px; margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.export-access-form .field { gap: 4px; }
.export-access-form .field input { width: 100%; min-height: 34px; }
.export-access-form .row-actions { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.login-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .8fr); align-items: center; gap: clamp(36px, 8vw, 112px); width: min(1040px, 100%); min-height: min(700px, calc(100vh - 140px)); margin: 0 auto; padding: 20px 0; }
.login-story { display: flex; min-height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 36px; text-align: center; }
.login-logo { display: block; width: clamp(72px, 7vw, 90px); height: auto; margin: 0 0 23px; filter: drop-shadow(0 12px 18px rgba(28,90,79,.2)); }
.login-story h1 { max-width: 520px; margin: 0; color: #244c42; font-size: clamp(27px, 3vw, 39px); font-weight: 700; line-height: 1.55; letter-spacing: .06em; text-wrap: balance; }
.login-story p { margin: 12px 0 0; color: #56766d; font-size: clamp(17px, 2.2vw, 24px); font-weight: 600; letter-spacing: .1em; }
.login-layout::before { content: ""; position: fixed; z-index: -1; inset: 0 48% 0 0; background: radial-gradient(ellipse at 18% 12%, rgba(255,255,255,.72) 0, transparent 38%), linear-gradient(140deg, #edf4e9 0%, #d6e7d9 54%, #c5ddd3 100%); }
.login-card { padding: 34px 34px 24px; border: 1px solid rgba(223,230,235,.9); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(8,31,46,.2); }
.login-card-heading { text-align: center; }
.login-lock { display: grid; place-items: center; width: 43px; height: 43px; margin: 0 auto 14px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); font-size: 22px; }
.login-card-heading .eyebrow { color: var(--blue); }
.login-card-heading h2 { margin: 8px 0 4px; color: var(--navy-deep); font-size: 22px; }
.login-card-heading > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-top: 25px; }
.login-form .field span { display: flex; align-items: baseline; justify-content: space-between; }
.login-form .field span small { font-weight: 400; }
.test-login-note { padding: 10px 12px; border: 1px solid #d8e9df; border-radius: 8px; background: #f0f7f2; color: #426e58; font-size: 11px; text-align: center; }
.login-submit { width: 100%; min-height: 46px; margin-top: 5px; }
.login-submit span { font-size: 16px; }
.login-note { margin-top: 19px; padding-top: 14px; border-top: 1px solid #edf1f3; color: #8e9aa3; font-size: 10px; text-align: center; }
.login-note span { color: #548d83; }
.login-forgot-link { display: block; margin: 2px 0 -7px; color: #397d70; font-size: 12px; text-align: right; }
.login-forgot-link:hover { color: #1b594f; text-decoration: underline; }
.password-request-layout { display: grid; min-height: min(650px, calc(100vh - 150px)); place-items: center; }
.password-request-success { max-width: 520px; padding: 34px; border: 1px solid #dceae3; border-radius: 16px; background: white; text-align: center; box-shadow: 0 12px 36px rgba(25,65,54,.08); }
.password-request-success > span { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: #e4f4ec; color: #258576; font-size: 24px; }
.password-request-success h2 { margin: 0 0 8px; }
.password-request-success p { margin: 0 0 20px; color: var(--muted); line-height: 1.7; }
.error-page { max-width: 580px; margin: 80px auto; padding: 36px; text-align: center; }
.error-code { color: #bfd0da; font-size: 42px; font-weight: 700; }
.error-page h1 { color: var(--navy); font-size: 19px; }
.error-page p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.one-time-password { display: grid; gap: 12px; margin: 0 0 18px; padding: 18px; border: 1px solid #9bd4c6; border-radius: 14px; background: #f0faf6; color: #183f38; }
.one-time-password p { margin: 6px 0 0; color: #55736d; font-size: 12px; }
.one-time-password .field { max-width: 520px; }
.one-time-password .temporary-password { user-select: all; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.one-time-password > small { color: #718780; }
.workbench-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.workbench-title h1 { margin: 0 0 20px; color: var(--navy-deep); font-size: clamp(23px, 2.4vw, 31px); line-height: 1.2; letter-spacing: -.035em; }
.filter-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.filter-panel-heading strong, .filter-panel-heading small { display: block; }
.filter-panel-heading strong { color: var(--navy-deep); font-size: 13px; }
.filter-panel-heading small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.workbench-records { overflow: hidden; }
.workbench-records .panel-heading { padding-bottom: 13px; }
.workbench-records + .pagination { margin-top: 8px; }
.admin-page-header { display: flex; align-items: center; gap: 17px; margin-bottom: 20px; padding: 20px 22px; border: 1px solid #dce8e3; border-radius: 15px; background: linear-gradient(115deg, #f7fbf8 0%, #eef5f3 58%, #e9f2f4 100%); }
.admin-heading-mark { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(53,124,109,.14); border-radius: 16px; background: #fff; color: #317466; box-shadow: 0 6px 18px rgba(24,71,63,.07); font-size: 23px; font-weight: 700; }
.admin-heading-copy { min-width: 0; }
.admin-heading-copy h1 { margin: 3px 0 4px; color: var(--navy-deep); font-size: 23px; letter-spacing: -.03em; }
.admin-heading-copy > p:last-child { margin: 0; color: #74858a; font-size: 11px; line-height: 1.65; }
.admin-heading-copy .eyebrow { color: #558579; }
.admin-section-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-section-nav a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 13px; border-radius: 8px; color: #61717d; transition: .15s ease; }
.admin-section-nav a:hover { background: #f6f9f8; color: var(--navy); }
.admin-section-nav a.active { background: #eaf4ef; color: #276d60; }
.admin-section-nav a span { color: #92aaa1; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.admin-section-nav a strong { font-size: 11px; }
.admin-pending-badge { display: inline-grid; min-width: 17px; height: 17px; margin-left: 6px; padding: 0 4px; place-items: center; border-radius: 999px; background: #d85e54; color: #fff; font-size: 9px; font-weight: 750; line-height: 1; vertical-align: 1px; }
.admin-action-reminder { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #efdcad; border-radius: 12px; background: linear-gradient(105deg, #fff9e9, #fff); color: #574a2e; }
.admin-action-reminder strong { color: #8b651e; }
.admin-action-reminder span { flex: 1; color: #7c7462; font-size: 12px; }
.feedback-list { display: grid; gap: 12px; }
.feedback-item { padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(27,49,62,.035); }
.feedback-item.is-pending { border-left: 4px solid #e1a831; }
.feedback-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-item-head > div { display: grid; gap: 5px; }
.feedback-item-head small, .feedback-item > small { color: #85949c; font-size: 10px; }
.feedback-item > p { margin: 15px 0; color: #354e5a; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-item form { display: flex; justify-content: flex-end; }
.feedback-item .pill { white-space: nowrap; }
.admin-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.admin-summary-strip > div { display: flex; min-height: 75px; flex-direction: column; justify-content: center; gap: 6px; padding: 13px 17px; background: #fff; }
.admin-summary-strip span { color: #7d8c94; font-size: 10px; }
.admin-summary-strip strong { color: var(--navy-deep); font-size: 17px; line-height: 1.2; }
.admin-form-panel { margin-bottom: 26px; border-color: #dce7e3; box-shadow: 0 7px 24px rgba(24,71,63,.035); }
.admin-form-panel .panel-heading { padding: 0 0 18px; }
.admin-form-panel .panel-heading h2, .admin-list-panel .panel-heading h2 { margin: 4px 0 5px; font-size: 17px; }
.panel-kicker { display: block; margin-bottom: 4px; color: #56877c; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.admin-list-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 8px 0 13px; }
.admin-list-heading h2 { margin: 4px 0; color: var(--navy-deep); font-size: 17px; }
.admin-list-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.employee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.employee-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(25,56,74,.035); }
.employee-card-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid #edf1f2; }
.employee-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #e5f2ed, #edf4f6); color: #317466; font-size: 15px; font-weight: 800; }
.employee-identity { min-width: 0; flex: 1; }
.employee-identity h3 { overflow: hidden; margin: 0 0 3px; color: #263f4e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.employee-identity p { overflow: hidden; margin: 0; color: #829098; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.employee-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 13px 0; }
.employee-facts span, .employee-facts strong { display: block; }
.employee-facts span { margin-bottom: 4px; color: #8a989f; font-size: 9px; }
.employee-facts strong { color: #52656f; font-size: 10px; }
.employee-facts strong.text-warning { color: #a16a1b; }
.employee-export { min-width: 0; padding: 8px; border: 1px solid #e7edef; border-radius: 9px; background: #f8faf9; }
.employee-export-title { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.employee-export-title > strong { color: #455c64; font-size: 10px; line-height: 1.35; }
.employee-export-title .pill { max-width: 100%; font-size: 9px; }
.employee-export-form { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 7px; }
.employee-export-form .field { gap: 4px; }
.employee-export-form .field > span { font-size: 9px; }
.employee-export-form .field input { min-height: 31px; padding: 5px 7px; font-size: 10px; }
.employee-export-form .row-actions { justify-content: flex-start; flex-wrap: wrap; gap: 5px; }
.employee-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.employee-permissions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.edit-permissions { margin-top: 14px; }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.product-actions form { margin: 0; }
.product-list-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 16px 14px; padding: 10px 13px; border: 1px solid #e7edef; border-radius: 10px; background: #f9fbfb; }
.product-list-toolbar label { display: flex; align-items: center; gap: 8px; color: #70818a; font-size: 10px; white-space: nowrap; }
.product-list-toolbar select { min-width: 115px; min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid #dce5e8; border-radius: 7px; background: #fff; color: #344c57; font: inherit; }
.product-list-toolbar > span { color: #809098; font-size: 10px; }
.admin-empty-state { grid-column: 1 / -1; padding: 36px 20px; border: 1px dashed #cddbd7; border-radius: 13px; background: #fbfdfc; text-align: center; }
.admin-empty-state > span, .admin-empty-state strong { display: block; }
.admin-empty-state > span { margin-bottom: 8px; color: #7ca297; font-size: 10px; font-weight: 800; }
.admin-empty-state strong { color: #39575a; font-size: 14px; }
.admin-empty-state p { max-width: 420px; margin: 7px auto 0; color: #829197; font-size: 10px; line-height: 1.7; }
.admin-list-panel { overflow: hidden; }
.admin-list-panel .panel-heading { padding-bottom: 16px; }
.audit-table td:last-child { min-width: 260px; max-width: 520px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.audit-table code { color: #50656e; font-size: 10px; }

@media (max-width: 1120px) {
  .topbar { gap: 16px; padding: 0 20px; }
  .account-chip > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .account-chip strong { max-width: 120px; font-size: 10px; }
  .account-chip small { padding: 3px 5px; font-size: 8px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .filter-grid.workbench-filter { grid-template-columns: repeat(3, minmax(105px, .8fr)) minmax(130px, 1fr) minmax(150px, 1.2fr) auto; gap: 8px; }
  .admin-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .product-create-grid, .product-edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-product-heading { align-items: stretch; flex-direction: column; }
  .qr-product-heading .toolbar-actions { justify-content: flex-start; }
  .qr-print-card { min-height: 650px; gap: 20px; padding: 28px 20px; }
  .qr-print-card img { width: min(100%, 300px); height: auto; aspect-ratio: 1; }
  .qr-print-card h1 { font-size: 29px; }
  .qr-print-card p { font-size: 19px; }
  .qr-print-card strong { font-size: 18px; }
  .qr-print-card small { font-size: 14px; }
  .qr-record-form .participant-opinion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { min-height: auto; flex-wrap: wrap; gap: 8px 13px; padding: 11px 15px 8px; }
  .topbar nav { order: 3; flex-basis: 100%; height: 38px; margin: 0 -4px; }
  .topbar nav a, .topbar nav .nav-disabled { height: 32px; padding: 0 10px; font-size: 11px; }
  .filter-grid.workbench-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-mark { width: 33px; height: 33px; }
  .brand-label strong { font-size: 13px; }
  .account-chip { margin-left: auto; }
  .account-chip form { margin-left: 0; }
  .container { padding: 25px 16px 40px; }
  .content-grid { grid-template-columns: 1fr; }
  .admin-tools-grid { grid-template-columns: 1fr; }
  .admin-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 0; }
  .welcome-actions { margin: -7px 0 17px; }
  .form-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-layout { grid-template-columns: 1fr; width: min(520px, 100%); min-height: 0; gap: 24px; padding: 10px 0 35px; }
  .login-layout::before { inset: 0; }
  .login-story { min-height: 150px; padding: 22px 14px; }
  .login-story h1 { max-width: 360px; font-size: clamp(22px, 6vw, 29px); line-height: 1.5; }
  .login-card { padding: 27px 24px 20px; }
  .login-card-heading { display: none; }
  .login-form { margin-top: 0; }
}
@media (max-width: 560px) {
  .blank-product-picker { padding: 13px; }
  .blank-picker-toolbar { align-items: stretch; flex-direction: column; }
  .blank-picker-toolbar > .field { max-width: none; }
  .blank-product-list { max-height: 54vh; }
  .product-create-grid, .product-edit-grid { grid-template-columns: 1fr; }
  .container { padding: 21px 12px 32px; }
  .saved-celebration { padding: 28px 18px 20px; }
  .saved-celebration-actions { align-items: stretch; flex-direction: column; }
  .saved-celebration-actions .button { width: 100%; }
  .page-heading { margin-bottom: 18px; }
  .page-heading h1 { font-size: 23px; }
  .subtitle { font-size: 11px; }
  .kpi-grid { gap: 9px; }
  .kpi-card { min-height: 102px; gap: 9px; padding: 13px 11px; border-radius: 11px; }
  .kpi-icon { width: 31px; height: 31px; border-radius: 9px; font-size: 15px; }
  .kpi-card div > span { font-size: 10px; }
  .kpi-card strong { font-size: 23px; }
  .kpi-card small { font-size: 9px; }
  .recent-list { grid-template-columns: 1fr; }
  .panel-heading { padding: 16px 14px 12px; }
  .filter-panel { padding: 13px; }
  .filter-grid, .filter-grid.compact-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filter-grid.workbench-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid.workbench-filter .search-field { grid-column: 1 / -1; }
  .filter-field.search-field { grid-column: 1 / -1; }
  .filter-field input, .filter-field select { min-height: 38px; padding: 8px; font-size: 11px; }
  .filter-actions { grid-column: 1 / -1; }
  .sensory-chart-panel { padding: 0 12px 15px; }
  .sensory-chart-layout { grid-template-columns: minmax(112px, 40%) minmax(0, 1fr); gap: 8px; }
  .sensory-participant-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .participant-stat-card { min-height: 70px; padding: 7px; }
  .participant-stat-card > span { white-space: normal; font-size: 8px; }
  .participant-stat-card > strong, .participant-stat-total > strong { font-size: 17px; }
  .sensory-participant-note { display: none; }
  .sensory-svg { max-height: 300px; }
  .sensory-chart-foot { margin: 7px 8px 0; flex-direction: column; gap: 4px; }
  .list-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .button { flex: 1; }
  .form-panel { padding: 18px 13px; }
  .form-grid, .form-grid.three, .form-grid.four { grid-template-columns: 1fr; gap: 13px; }
  .participant-opinion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .participant-opinion-grid .span-all { grid-column: 1 / -1; }
  .record-info-main-grid { grid-template-columns: 1fr; gap: 13px; }
  .span-all { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .form-actions .muted-note { order: 2; }
  .detail-panel { padding: 10px; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-item { padding: 11px 8px; }
  .detail-item strong { font-size: 11px; }
  .detail-actions .toolbar-actions { display: flex; flex-direction: column; align-items: stretch; }
  .inline-form { width: 100%; flex-wrap: wrap; }
  .inline-form input { width: 100%; }
  .login-layout { padding-top: 4px; }
  .login-story { min-height: 126px; }
  .login-story h1 { font-size: clamp(20px, 5.8vw, 25px); }
  .login-card { padding: 21px 17px 17px; }
  .login-note { line-height: 1.6; }
  .process-hint { padding: 12px; }
  .pagination { flex-direction: column; align-items: flex-start; gap: 10px; }
  .workbench-heading { align-items: stretch; flex-direction: column; gap: 0; }
  .workbench-heading .welcome-actions { margin: -7px 0 17px; }
  .workbench-heading .welcome-actions .button { flex: 1; }
  .filter-panel-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .admin-page-header { align-items: flex-start; gap: 12px; padding: 16px 14px; }
  .admin-heading-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 19px; }
  .admin-heading-copy h1 { font-size: 20px; }
  .admin-section-nav { gap: 5px; padding: 5px; }
  .admin-section-nav a { gap: 7px; padding: 10px 8px; }
  .admin-section-nav a strong { font-size: 10px; }
  .admin-summary-strip > div { min-height: 66px; padding: 11px 12px; }
  .admin-action-reminder { align-items: flex-start; flex-wrap: wrap; }
  .admin-action-reminder span { flex-basis: 100%; order: 1; }
  .admin-action-reminder .button { margin-left: auto; }
  .employee-card { padding: 13px; }
  .employee-permissions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 与新品研发系统一致的平台返回入口。 */
.platform-return-bar{max-width:1280px;margin:0 auto;padding:12px 24px 0}.platform-return-link{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:8px 10px;border-radius:9px;color:#4d5b54;font-size:16px;font-weight:650;line-height:1.5;text-decoration:none;transition:background .15s,color .15s}.platform-return-link svg{flex-shrink:0}.platform-return-link:hover{background:#e9efea;color:#254d3d}.platform-return-link:focus-visible{outline:2px solid #438473;outline-offset:3px}@media(max-width:600px){.platform-return-bar{padding:10px 14px 0}.platform-return-link{font-size:15px}}

/* 已登录时作为第一项导航；登录页保留独立入口。 */
.topbar nav a.platform-return-link{min-height:0;gap:6px}.topbar nav a.platform-return-link svg{width:16px;height:16px}

@media (max-width: 560px) { .employee-permissions { grid-template-columns: 1fr; } }

.qr-management-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.qr-management-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #e7edef; border-radius: 10px; background: #fbfcfc; }
.qr-management-item > div { display: grid; min-width: 0; gap: 4px; }
.qr-management-item strong { overflow: hidden; color: #344d58; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.qr-management-item small { overflow: hidden; color: #809098; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .qr-management-list { grid-template-columns: 1fr; padding: 0 10px 10px; } .qr-management-item { padding: 10px; } }
