/* Tinsen Operations visual system. Canonical reference: tinsen-operations/src/styles.css. */
:root {
  --green: #006b4c;
  --green-hover: #00573e;
  --dark: #174333;
  --ink: #203c30;
  --muted: #63776b;
  --line: #e0e7df;
  --gold: #c7a76a;
  --bg: #f5f6f2;
  --soft: #eaf3eb;
  --red: #a63628;
  --radius: 14px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; line-height: 1.7; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
button, a, input, select, textarea { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8abb9d; }
a { color: inherit; }
input, select, textarea { color: #234432; padding: 10px 12px; border: 1px solid #cbd8cf; border-radius: 9px; background: white; width: 100%; min-width: 0; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #849287; }
input:focus, select:focus, textarea:focus { border-color: #80b99a; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: #4c6557; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.45; letter-spacing: -.7px; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.2px; }
h3 { font-size: 16px; }
p { line-height: 1.8; }
small { font-size: 12px; color: var(--muted); }
.shell { min-height: 100vh; }
.topbar { background: white; border-bottom: 1px solid var(--line); padding: 14px clamp(20px,2.4vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 25px; position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; font-size: 17px; font-weight: 650; flex-shrink: 0; }
.brand img { width: 101px; height: 48px; object-fit: contain; }
.brand small { display: block; font-size: 12px; letter-spacing: 1.2px; margin-top: 3px; font-weight: 400; }
.topbar nav { display: flex; gap: 5px; min-width: 0; }
.nav { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 15px; border-radius: 9px; background: transparent; color: #607567; font-size: 14px; white-space: nowrap; border: 0; }
.nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav:hover { background: #f3f6f1; }
.nav.active { background: var(--soft); color: var(--green); font-weight: 650; }
.header-context { display: flex; gap: 12px; align-items: center; color: #64786b; font-size: 13px; }
.context-tag, .assessment-edition { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 8px; background: #eff4ee; color: #406b51; font-size: 12px; white-space: nowrap; }
.assessment-edition { background: white; border: 1px solid var(--line); padding: 8px 13px; font-size: 14px; }
main { padding: 32px clamp(20px,2.4vw,48px) 0; max-width: 2200px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading>div { min-width: 0; }
.eyebrow { display: block; font-size: 12px; letter-spacing: 1px; color: #789082; margin-bottom: 9px; }
.page-heading p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -24px -24px 22px; padding: 20px 24px; border-bottom: 1px solid #edf0e9; flex-wrap: wrap; }
.step { color: var(--green); font-size: 14px; }
.setup { margin-bottom: 24px; }
.start-fields { display: grid; grid-template-columns: minmax(140px,1.15fr) minmax(180px,1.6fr) minmax(120px,.8fr) minmax(120px,.8fr) auto; gap: 18px; align-items: end; }
.start-fields>div { min-width: 0; }
.start-fields input, .start-fields select { height: 46px; }
.start-button { min-height: 46px; padding-inline: 24px!important; }
.setup-note { font-size: 13px; color: #526b5b; margin-top: 18px; }
.required { color: var(--green); }
.primary, .secondary, .danger, .text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 9px; padding: 11px 17px; font-size: 14px; font-weight: 500; border: 1px solid transparent; line-height: 1.5; min-height: 44px; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-hover); }
.secondary { background: white; border-color: #cedbd2; color: #31533f; }
.secondary:hover { background: #f3f7f1; }
.danger { background: var(--red); color: white; }
.text-btn { background: none; color: var(--green); padding: 8px 0; font-weight: 600; }
.wide { width: 100%; margin-top: 10px; }
.muted { color: var(--muted); }
.fine { font-size: 12px!important; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; min-width: 0; }
.kpi.featured { background: var(--green); border-color: var(--green); color: white; }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.kpi-label small { color: #68806f; }
.kpi-value { font-size: clamp(28px,2.3vw,38px); font-weight: 650; letter-spacing: -1px; line-height: 1.3; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.kpi-budget { font-size: 13px; color: #758778; }
.featured small, .featured .kpi-budget { color: #c0d9cd; }
.kpi-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #e7ece5; }
.featured .kpi-bottom { border-color: #ffffff2a; }
.home-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(330px,1fr); gap: 24px; margin-bottom: 24px; }
.rules-grid { display: grid; gap: 21px; }
.rule { display: flex; align-items: flex-start; gap: 15px; }
.rule-number, .source-number { background: #edf4ee; color: var(--green); min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.rule h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.rule p { font-size: 14px; color: var(--muted); }
.source-row { display: flex; align-items: flex-start; gap: 13px; padding: 11px 0; }
.source-row:first-of-type { padding-top: 0; }
.source-number { color: #738577; background: #f4f6f1; min-width: 28px; height: 28px; }
.source-row b { font-size: 14px; font-weight: 500; }
.source-row small { display: block; margin-top: 3px; }
.source-note { color: #687967; font-size: 12px; line-height: 1.9; padding: 12px 15px; border-radius: 8px; background: #f6f7f2; margin-top: 14px; }
.storage-note { font-size: 13px; color: var(--muted); margin: 20px 0 26px; }
footer { color: #81917f; font-size: 12px; padding: 8px clamp(20px,2.4vw,48px) 25px; line-height: 1.8; max-width: 2200px; margin: auto; }
.notice { color: #486451; font-size: 14px; background: #f0f6ed; padding: 14px 18px; border-radius: 8px; margin: 12px 0; }
.exam-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 24px; margin-bottom: 26px; }
.question-card { min-height: 470px; padding: 30px; }
.q-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; margin-bottom: 20px; flex-wrap: wrap; }
.tag { background: #edf4ee; color: #397453; border-radius: 6px; padding: 3px 9px; font-size: 12px; }
.question-text { font-size: 21px; line-height: 1.8; font-weight: 600; margin: 12px 0 25px; max-width: 1100px; }
.option { display: flex; align-items: flex-start; gap: 13px; border: 1px solid #dce5dc; border-radius: 9px; padding: 15px 17px; margin: 11px 0; cursor: pointer; font-size: 16px; font-weight: 400; color: var(--ink); }
.option:hover { background: #fafcf8; border-color: #aecab7; }
.option.selected { background: #eaf4ec; border-color: #7aac8c; }
.option input { width: 18px; height: 18px; min-height: 18px; flex-shrink: 0; padding: 0; margin: 5px 0 0; accent-color: var(--green); }
.option-letter { font-weight: 600; display: inline-block; margin-right: 9px; color: #65816e; }
.question-card textarea { min-height: 225px; resize: vertical; line-height: 1.8; margin-top: 5px; }
.q-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 27px; }
.q-actions>div { display: flex; gap: 10px; }
.timer { font: 600 32px/1.5 Inter,"PingFang SC",system-ui,sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.4px; color: var(--dark); }
.timer.low { color: var(--red); }
.progress-track { height: 5px; background: #e7eee5; border-radius: 6px; margin: 12px 0; }
.progress-fill { background: var(--green); height: 100%; border-radius: 6px; }
.answer-sheet { position: sticky; top: 104px; align-self: start; padding: 24px; }
.answer-sheet h3 { font-size: 14px; margin: 20px 0 9px; font-weight: 600; }
.question-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.q-number { border: 1px solid #dce5dc; background: white; color: #63776b; border-radius: 6px; aspect-ratio: 1; font-size: 13px; padding: 0; position: relative; }
.q-number.answered { background: #eaf4ec; border-color: #bad1bf; color: #266446; }
.q-number.current { background: var(--green); color: white; border-color: var(--green); }
.q-number.flagged:after { content: ''; width: 5px; height: 5px; background: #c59344; position: absolute; right: 3px; top: 3px; border-radius: 50%; }
.legend { font-size: 12px; color: var(--muted); margin: 14px 0; }
.flag-btn { background: none; border: 0; color: #93672e; font-size: 14px; padding: 7px 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar select, .toolbar input { width: auto; min-width: 160px; padding: 8px 12px; }
.toolbar h2 { margin: 0; }
.record-list { display: grid; gap: 16px; margin-bottom: 24px; }
.record { display: grid; grid-template-columns: minmax(130px,1fr) 1fr auto; gap: 20px; align-items: center; }
.record h3 { font-size: 17px; margin-bottom: 4px; }
.record p { color: var(--muted); font-size: 13px; margin: 3px 0; }
.badge { display: inline-block; border-radius: 6px; padding: 3px 9px; background: #fff4df; color: #885317; font-size: 12px; }
.badge.pass { background: #e5f2e9; color: #17623f; }
.badge.fail { background: #faeae5; color: var(--red); }
.empty { text-align: center; padding: 65px 25px; margin-bottom: 24px; }
.empty h2 { margin-bottom: 10px; }
.empty .primary { margin-top: 20px; }
.score-summary { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 30px; align-items: center; margin-bottom: 24px; padding: 30px; }
.score-dial { width: 164px; height: 164px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; background: var(--green); color: white; margin: 0 auto; flex-direction: column; }
.score-dial strong { font-size: 52px; line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; }
.score-dial span { font-size: 12px; color: #c0d9cd; margin-top: 7px; }
.score-summary h2 { font-size: 25px; margin: 10px 0 18px; }
.score-summary p { font-size: 14px; color: var(--muted); margin-top: 14px; }
.score-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.score-stats small { font-size: 12px; display: block; color: var(--muted); }
.score-stats b { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.review-item { margin-bottom: 20px; }
.review-item h3 { font-size: 17px; margin: 12px 0; }
.review-item p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; }
.review-answer { padding: 16px 18px; background: #f3f7f1; border-radius: 9px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.reference { font-size: 12px!important; color: var(--muted); line-height: 1.9; }
.rubric-row { display: grid; grid-template-columns: minmax(0,1fr) 100px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rubric-row label { margin-bottom: 0; }
.rubric-row select { padding: 7px 10px; }
.details-title { cursor: pointer; color: var(--green); font-size: 14px; margin: 13px 0; }
.success-text { color: var(--green); }
.error-text { color: var(--red); }
.bank-list { display: grid; gap: 16px; margin-bottom: 24px; }
.bank-item h3 { font-size: 17px; line-height: 1.8; margin: 8px 0 12px; }
.bank-item p { font-size: 15px; margin: 10px 0; }
.bank-options { color: var(--muted); font-size: 15px; padding-left: 25px; }
.bank-options li { margin: 6px 0; }
.bank-count { color: var(--muted); font-size: 14px; }
.source-panel { margin: 20px 0; }
.source-panel li { font-size: 14px; margin: 8px 0; }
.bank-alert { background: #f0f6ed; border: 1px solid #d4e4d7; color: #405e4c; font-size: 14px; padding: 17px 20px; border-radius: 9px; margin-bottom: 20px; }
.inline-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 14px 20px; border: 1px solid #b6d7c4; border-radius: 12px; background: #f0faf3; color: #175c3e; box-shadow: 0 8px 32px #15392526; max-width: calc(100vw - 32px); display: none; z-index: 100; font-size: 14px; }
dialog { border: 1px solid var(--line); border-radius: 17px; padding: 30px; width: calc(100% - 36px); max-width: 480px; max-height: 92vh; overflow: auto; color: var(--ink); box-shadow: 0 25px 100px #12351c20; }
dialog::backdrop { background: #15392570; backdrop-filter: blur(3px); }
dialog h2 { font-size: 21px; margin-bottom: 12px; }
dialog p { color: var(--muted); font-size: 15px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.print-only { display: none; }
pre { white-space: pre-wrap; }
@media (min-width: 1800px) {
  main { padding-top: 38px; }
  .kpi { padding: 26px 30px; }
  .nav { padding-inline: 22px; }
}
@media (max-width: 1200px) {
  .brand { gap: 9px; font-size: 15px; }
  .brand small { display: none; }
  .topbar { gap: 14px; }
  .nav { padding: 11px 12px; }
  .kpi { padding: 20px; }
  .kpi-value { font-size: 30px; }
  .start-fields { grid-template-columns: minmax(140px,1fr) minmax(170px,1.2fr) minmax(110px,.7fr) minmax(110px,.7fr); }
  .start-button { grid-column: 1/-1; justify-self: end; min-width: 180px; }
  .home-grid { grid-template-columns: minmax(0,1.3fr) minmax(310px,1fr); }
}
@media (max-width: 950px) {
  .topbar { flex-wrap: wrap; padding: 12px 20px; gap: 12px; }
  .topbar nav { order: 3; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 5px; }
  .brand img { width: 85px; height: 38px; }
  .brand { font-size: 16px; }
  .header-context { margin-left: auto; }
  .home-grid { grid-template-columns: minmax(0,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .start-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .start-button { grid-column: auto; justify-self: stretch; min-width: 0; }
  .exam-grid { grid-template-columns: minmax(0,1fr) 220px; }
  .answer-sheet { padding: 18px; top: 140px; }
  .question-card { padding: 24px; }
  .question-text { font-size: 19px; }
  .score-summary { grid-template-columns: 170px minmax(0,1fr); gap: 24px; }
}
@media (max-width: 640px) {
  main { padding: 22px 16px 0; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand img { width: 76px; height: 36px; }
  .header-context { gap: 6px; font-size: 12px; }
  .header-context>span:first-child { display: none; }
  .nav { font-size: 14px; padding: 10px 6px; gap: 6px; }
  .nav svg { width: 16px; height: 16px; }
  h1 { font-size: 26px; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; gap: 12px; }
  .page-heading p { font-size: 14px; }
  .eyebrow { font-size: 12px; letter-spacing: 0; }
  .assessment-edition { display: none; }
  .card { padding: 18px; border-radius: 14px; }
  .section-title { margin: -18px -18px 18px; padding: 18px; gap: 7px; }
  .section-title .fine { flex-basis: 100%; }
  .start-fields { gap: 14px; }
  .start-fields>div:first-child, .start-fields>div:nth-child(2), .start-button { grid-column: 1/-1; }
  .setup-note { margin-top: 14px; font-size: 13px; }
  .kpi-grid { gap: 12px; }
  .kpi { padding: 17px 14px; }
  .kpi-label { font-size: 14px; }
  .kpi-label small { display: none; }
  .kpi-value { font-size: 28px; margin: 15px 0 7px; }
  .kpi-budget { font-size: 12px; }
  .kpi-bottom { font-size: 12px; gap: 5px; margin-top: 13px; }
  .home-grid { gap: 20px; }
  .rule { gap: 12px; }
  .rule p { font-size: 14px; }
  .exam-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .answer-sheet { position: static; grid-row: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 16px; }
  .sheet-top { grid-column: 1; }
  .sheet-navigation { grid-column: 1/-1; }
  .submit-wrap { grid-column: 2; grid-row: 1; align-self: center; }
  .sheet-navigation details summary { font-size: 13px; margin-top: 12px; }
  .answer-sheet h3 { margin-top: 12px; }
  .question-grid { grid-template-columns: repeat(10,minmax(0,1fr)); gap: 5px; }
  .q-number { min-height: 27px; }
  .legend { display: none; }
  .question-card { min-height: 420px; padding: 20px; }
  .question-text { font-size: 19px; }
  .option { padding: 13px; font-size: 16px; }
  .q-actions { gap: 12px; }
  .q-actions .secondary, .q-actions .primary { padding: 10px 13px; }
  .flag-btn { font-size: 13px; }
  .score-summary { grid-template-columns: minmax(0,1fr); text-align: center; gap: 20px; padding: 24px 18px; }
  .score-dial { width: 150px; height: 140px; }
  .score-dial strong { font-size: 46px; }
  .score-summary h2 { font-size: 22px; }
  .score-stats { justify-content: center; gap: 24px; }
  .record { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .record>div:nth-child(2) { grid-column: 1; grid-row: 2; }
  .record>button { grid-column: 2; grid-row: 1/3; }
  .toolbar { align-items: stretch; }
  .toolbar select, .toolbar input { min-width: 0; width: 100%; }
  .toolbar>div { width: 100%; }
  .toolbar .primary, .toolbar .secondary { padding: 9px 13px; }
  .rubric-row { grid-template-columns: minmax(0,1fr) 84px; }
  .inline-fields { grid-template-columns: minmax(0,1fr); }
  footer { padding: 8px 16px 24px; }
  dialog { padding: 24px; }
}
@media (max-width: 360px) {
  .nav { gap: 4px; font-size: 13px; }
  .nav svg { width: 15px; height: 15px; }
  .kpi-grid { grid-template-columns: minmax(0,1fr); }
  .kpi-label small { display: inline; }
  .question-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .q-actions { align-items: stretch; }
  .q-actions>div { margin-left: auto; }
}
@media print {
  .topbar, footer, .no-print, #toast, dialog { display: none!important; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #cbd8cf; break-inside: avoid; }
  .print-only { display: block; }
  .page-heading { margin-top: 15px; }
  body { background: white; }
  .review-item, .bank-item { break-inside: avoid; }
  details, details>* { display: block; }
  button, input[type=file] { display: none!important; }
  .record-list { display: block; }
  .score-summary { display: grid; grid-template-columns: 180px minmax(0,1fr); text-align: left; }
  .score-dial { background: white; color: #174333; border: 2px solid #006b4c; }
  .score-dial span { color: #63776b; }
  h1 { font-size: 26px; }
  @page { size: A4; margin: 16mm; }
}
/* Cloud submissions and examiner console share the Tinsen visual language. */
[hidden] { display: none!important; }
a.nav, a.primary, a.secondary { text-decoration: none; }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.button-group.centered { justify-content: center; margin-top: 20px; }
.cloud-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #edf5ef; border: 1px solid #d6e5d9; border-radius: 10px; padding: 16px 20px; margin: 16px 0 22px; }
.cloud-notice p { font-size: 14px; color: var(--muted); margin: 4px 0; }
.cloud-notice>div { min-width: 0; overflow-wrap: anywhere; }
.cloud-notice>button { flex-shrink: 0; }
.cloud-warning { background: #fff8ea; border-color: #eadabb; }
.record-list .cloud-notice { margin-bottom: 0; }
.objective-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.objective-item:last-child { border-bottom: 0; }
.login-card { max-width: 460px; margin: 40px auto 90px; padding: 32px; }
.form-field { margin-top: 20px; }
.login-card h2 { margin-bottom: 8px; }
.login-card .error-text { margin-top: 15px; }
.admin-filters { display: grid; grid-template-columns: minmax(180px,1.5fr) minmax(130px,.8fr) minmax(160px,1fr) minmax(160px,1fr) auto; gap: 16px; align-items: end; margin-bottom: 24px; }
.table-card { padding: 0; overflow: hidden; margin-bottom: 24px; }
.table-scroll { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: 14px; }
.admin-table th { background: #f7f9f5; color: #5a7262; font-weight: 500; text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 17px 18px; border-bottom: 1px solid var(--line); }
.admin-table tbody tr:hover { background: #fafcf8; }
.admin-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.record-id { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 24px; color: var(--muted); font-size: 14px; }
.break-anywhere { overflow-wrap: anywhere; }
.review-actions { margin: 22px 0 10px; }
@media (max-width: 1150px) { .admin-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .admin-filters>div:first-child { grid-column: 1/-1; } .header-context { flex-wrap: wrap; } }
@media (max-width: 950px) { .topbar nav:has([data-cloud-only]:not([hidden])) { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 640px) {
 .cloud-notice { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
 .cloud-notice>button { align-self: flex-start; }
 .admin-filters { grid-template-columns: minmax(0,1fr); gap: 14px; }
 .admin-filters>div:first-child { grid-column: auto; }
 .admin-filters .button-group button { flex: 1; }
 .login-card { margin: 20px auto 50px; padding: 24px; }
 .pagination { align-items: flex-start; flex-direction: column; padding: 16px; }
 #admin-account { font-size: 12px; gap: 8px; }
 #admin-account .secondary { padding: 8px 12px; }
 #admin-account .text-btn { font-size: 12px; }
 .topbar nav:has([data-cloud-only]:not([hidden])) { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .topbar nav:has([data-cloud-only]:not([hidden])) .nav { justify-content: flex-start; padding-left: 14px; }
 .topbar:has(#admin-account) nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.field-label { display: block; margin-bottom: 8px; color: #4c6557; font-size: 14px; font-weight: 500; }
.rule-value { display: flex; align-items: center; min-height: 46px; padding: 10px 12px; background: #f4f7f1; border: 1px solid var(--line); border-radius: 9px; color: var(--dark); font-weight: 600; }
.settings-caption { margin-top: 14px; }
.settings-card { max-width: 960px; margin-bottom: 30px; }
#settings-error .cloud-notice { margin-bottom: 0; }
@media (max-width: 640px) { .topbar:has(#admin-account) nav:has(#settings-nav) { grid-template-columns: repeat(3,minmax(0,1fr)); } .topbar:has(#admin-account) nav:has(#settings-nav) .nav { font-size: 13px; } }
