:root {
  --page: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #eef1ec;
  --ink: #17201c;
  --muted: #5d6963;
  --line: #d7ddd8;
  --line-strong: #aeb9b2;
  --green: #0b6b4f;
  --green-dark: #07513c;
  --green-soft: #dcefe6;
  --yellow: #f1c453;
  --yellow-soft: #fff4cf;
  --red: #b64232;
  --red-soft: #fbe6e1;
  --blue: #2869a8;
  --blue-soft: #e6f0fa;
  --shadow: 0 12px 35px rgba(24, 39, 31, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--page); }
button, input, textarea { font: inherit; letter-spacing: 0; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; stroke-width: 2; flex: 0 0 auto; }
.hidden { display: none !important; }

.app-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(18px, calc((100% - 920px) / 2));
  border-bottom: 1px solid rgba(174, 185, 178, 0.7);
  background: rgba(245, 246, 242, 0.94);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 8px; color: white; background: var(--green); font-weight: 800; }
.brand > span:last-child { display: grid; }
.brand b { font-size: 17px; line-height: 1.2; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.icon-button:focus-visible, .button:focus-visible, .mode-tab:focus-visible, .record-tab:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(40, 105, 168, 0.28); outline-offset: 2px; }
.icon-button.compact { width: 32px; height: 32px; border: 0; background: transparent; }
.icon-button.compact svg { width: 18px; height: 18px; }

.app-main { width: min(100% - 32px, 920px); margin: 0 auto; padding: 44px 0 calc(48px + env(safe-area-inset-bottom)); }
.query-intro { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; align-items: end; margin-bottom: 24px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 10px; border: 1px solid #cfad55; border-radius: 999px; color: #694e0e; background: var(--yellow-soft); font-size: 12px; font-weight: 700; }
.status-chip svg { width: 15px; height: 15px; }
.query-intro h1 { max-width: 620px; margin: 16px 0 12px; font-size: 50px; line-height: 1.08; letter-spacing: 0; font-weight: 800; }
.query-intro p { max-width: 570px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.today-summary { display: grid; min-height: 132px; align-content: center; padding: 20px; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; background: var(--surface); box-shadow: var(--shadow); }
.today-summary span, .today-summary small { color: var(--muted); font-size: 12px; }
.today-summary strong { margin: 5px 0 3px; font-size: 24px; }

.notice-bar { display: grid; grid-template-columns: 20px minmax(0, 1fr) 32px; gap: 10px; align-items: center; margin-bottom: 20px; padding: 10px 10px 10px 14px; border: 1px solid #e4c36d; border-radius: 8px; color: #654d17; background: var(--yellow-soft); font-size: 13px; line-height: 1.5; }
.notice-bar > svg { width: 18px; height: 18px; }

.query-tool { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.mode-tab { display: flex; min-width: 0; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-weight: 700; }
.mode-tab.active { color: var(--green-dark); background: var(--surface); box-shadow: 0 1px 5px rgba(24, 39, 31, 0.08); }
.mode-tab svg { width: 18px; height: 18px; }
.tool-panel { min-height: 440px; padding: 26px; }

.scanner-stage { position: relative; display: grid; height: 250px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #17201c; }
.scanner-stage video { width: 100%; height: 100%; object-fit: cover; }
.scan-placeholder { display: grid; justify-items: center; padding: 24px; color: #dce4df; text-align: center; }
.scan-placeholder svg { width: 58px; height: 58px; margin-bottom: 16px; color: #8eb5a5; stroke-width: 1.4; }
.scan-placeholder b { color: white; font-size: 17px; }
.scan-placeholder span { margin-top: 7px; color: #9eaaa4; font-size: 12px; }
.scan-frame { position: absolute; inset: 23% 12%; border: 2px solid rgba(255, 255, 255, 0.82); border-radius: 8px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.24); }
.scan-frame span { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--yellow); animation: scan 2s ease-in-out infinite; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; text-decoration: none; }
.button:disabled { cursor: not-allowed; opacity: 0.48; }
.primary-button { color: white; background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.secondary-button:hover { border-color: #7e8d84; background: var(--surface-soft); }
.text-button { min-height: 44px; padding: 0 8px; color: var(--green-dark); background: transparent; }
.text-button:hover { background: var(--green-soft); }
#barcodeButton { width: 100%; margin-top: 14px; }
.permission-copy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 22px; color: var(--muted); font-size: 12px; }
.permission-copy svg { width: 15px; height: 15px; }

.barcode-form { max-width: 560px; margin: 0 auto; }
.barcode-form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.barcode-form > small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.input-action { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; }
.input-action .button { width: 52px; padding: 0; }

input, textarea { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface); }
input { height: 50px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a9690; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); background: var(--red-soft); }
.field-error { display: block; margin-top: 6px; color: var(--red) !important; font-size: 12px; font-weight: 650; }

.photo-guide { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.photo-guide h2, .panel-heading h2 { margin: 0 0 8px; font-size: 22px; }
.photo-guide p, .panel-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.label-preview { display: grid; gap: 9px; width: 132px; padding: 14px; border: 2px solid var(--ink); border-radius: 5px; background: white; transform: rotate(-2deg); box-shadow: 6px 7px 0 #cad3ce; }
.label-preview span { padding-bottom: 7px; border-bottom: 3px solid var(--ink); font-size: 13px; font-weight: 800; }
.label-preview i { display: block; height: 7px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.button-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.camera-stage { position: relative; height: 320px; overflow: hidden; border-radius: 8px; background: #111; }
.camera-stage video { width: 100%; height: 100%; object-fit: cover; }
.camera-guide { position: absolute; inset: 12%; display: flex; align-items: flex-end; justify-content: center; padding: 15px; border: 2px solid white; border-radius: 8px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.25); color: white; font-weight: 700; }
.photo-preview { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; align-items: center; }
.photo-preview img { width: 100%; height: 260px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #202723; }
.preview-copy { display: grid; gap: 9px; }
.preview-copy b { font-size: 18px; }
.preview-copy span { color: var(--muted); font-size: 13px; line-height: 1.5; }
#captureButton, #analyzeButton { width: 100%; margin-top: 12px; }
#stopCameraButton { width: 100%; margin-top: 4px; }

.inline-message { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0; padding: 12px 13px; border: 1px solid #d5b452; border-radius: 8px; color: #634b10; background: var(--yellow-soft); line-height: 1.5; }
.inline-message.warning { margin-bottom: 14px; }
.inline-message svg { width: 18px; height: 18px; margin-top: 2px; }

.panel-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.step-index { display: inline-grid; min-width: 48px; height: 30px; place-items: center; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 12px; font-weight: 750; }
.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 750; }
.field > span small { color: var(--muted); font-weight: 500; }
.input-unit { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-soft); }
.input-unit:focus-within { outline: 3px solid rgba(40, 105, 168, 0.28); outline-offset: 2px; }
.input-unit input { border: 0; border-radius: 0; }
.input-unit input:focus { outline: 0; }
.input-unit b { text-align: center; color: var(--muted); font-size: 13px; }
.input-unit:has(input[aria-invalid="true"]) { border-color: var(--red); background: var(--red-soft); }

.flow-section, .records-section { margin-top: 32px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 86px; }
.section-title { display: flex; gap: 14px; align-items: center; }
.section-title > div { display: grid; }
.section-title span, .records-header span, .result-kicker { color: var(--green); font-size: 12px; font-weight: 750; }
.section-title h2, .records-header h2 { margin: 2px 0 0; font-size: 28px; }
.section-lead { margin: 18px 0 24px; color: var(--muted); line-height: 1.65; }
.confirm-form { display: grid; gap: 18px; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-meta { color: var(--muted); font-size: 11px; line-height: 1.4; }
.evidence-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.evidence-panel > div:first-child { display: grid; gap: 2px; }
.evidence-panel span { color: var(--muted); font-size: 11px; }
.verification-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 700; white-space: nowrap; }
.verification-badge.demo { border-color: #d4af4f; color: #694e0e; background: var(--yellow-soft); }
.verification-badge.user { border-color: #8bb3d8; color: #174f7f; background: var(--blue-soft); }
.verification-badge.verified { border-color: #8fc5ad; color: var(--green-dark); background: var(--green-soft); }
.evidence-list { grid-column: 1 / -1; display: grid; gap: 7px; }
.evidence-item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.evidence-item b { color: var(--ink); }

.result-section { overflow: hidden; padding: 0; }
.result-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 25px 26px 20px; }
.result-header h2 { margin: 4px 0; font-size: 28px; }
.result-header p { margin: 0; color: var(--muted); font-size: 13px; }
.result-hero { padding: 30px 26px; color: white; background: var(--green-dark); }
.result-hero > span { color: #bcd5c9; font-size: 13px; }
.result-hero strong { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; }
.result-hero strong b { font-size: 72px; line-height: 1; font-weight: 800; }
.result-hero strong small { font-size: 24px; }
.result-hero p { display: inline-flex; margin: 15px 0 0; padding: 6px 10px; border-radius: 6px; color: #263029; background: var(--yellow); font-size: 13px; font-weight: 750; }
.result-facts { display: grid; grid-template-columns: 0.7fr 1.15fr 1.15fr; gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.result-facts article { display: grid; align-content: start; min-height: 132px; padding: 18px; background: var(--surface); }
.result-facts span { color: var(--muted); font-size: 11px; }
.result-facts b { margin-top: 7px; font-size: 16px; line-height: 1.35; }
.result-facts article:first-child b { font-size: 21px; }
.result-facts em { font-style: normal; font-size: 30px; }
.result-facts small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.result-note { display: flex; gap: 12px; margin: 22px 26px 0; padding: 15px; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; background: var(--blue-soft); }
.result-note > svg { color: var(--blue); }
.result-note p { margin: 4px 0 0; color: #40576b; line-height: 1.6; }
.evidence-details { margin: 14px 26px 0; border: 1px solid var(--line); border-radius: 8px; }
.evidence-details summary { padding: 13px 15px; cursor: pointer; font-weight: 700; }
.evidence-details .evidence-list { padding: 0 15px 15px; }
.boundary-copy { margin: 16px 26px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.result-actions { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr; gap: 9px; padding: 18px 26px 26px; }

.records-section { margin-top: 48px; }
.records-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.record-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 20px 0 16px; padding: 4px; border-radius: 8px; background: var(--surface-soft); }
.record-tab { min-height: 42px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-weight: 700; }
.record-tab b { display: inline-grid; min-width: 22px; height: 22px; margin-left: 4px; place-items: center; border-radius: 999px; background: #d8ded9; font-size: 11px; }
.record-tab.active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(24, 39, 31, 0.08); }
.history-list { display: grid; gap: 8px; }
.history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 12px; align-items: center; width: 100%; min-height: 68px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; text-align: left; background: var(--surface); }
.history-item:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.history-item > span:first-child { display: grid; gap: 3px; overflow: hidden; }
.history-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { color: var(--muted); font-size: 11px; }
.history-item .history-value { color: var(--green-dark); font-size: 15px; font-weight: 750; white-space: nowrap; }
.history-item svg { width: 18px; color: var(--muted); }
.empty-state { display: grid; min-height: 190px; place-items: center; align-content: center; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); text-align: center; }
.empty-state svg { width: 32px; height: 32px; margin-bottom: 10px; }
.empty-state b { color: var(--ink); }
.empty-state span { margin-top: 5px; font-size: 12px; }
.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.today-grid article { display: grid; min-height: 120px; align-content: center; justify-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.today-grid span { color: var(--muted); font-size: 11px; }
.today-grid b { margin-top: 5px; font-size: 32px; }
.today-grid small { color: var(--muted); font-size: 11px; }

.app-footer { margin-top: 34px; color: var(--muted); font-size: 12px; }
.app-footer details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.app-footer summary { padding: 15px 0; color: var(--ink); cursor: pointer; font-weight: 700; }
.app-footer details > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; padding-bottom: 14px; }
.app-footer details p { margin: 0; line-height: 1.6; }
.app-footer details b { display: block; color: var(--ink); }
.app-footer > p { margin: 18px 0 0; }

.loading-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 15px; color: white; background: rgba(20, 28, 24, 0.9); }
.spinner { width: 46px; height: 46px; border: 4px solid rgba(255, 255, 255, 0.25); border-top-color: var(--yellow); border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-overlay .text-button { color: white; }
.toast-container { position: fixed; z-index: 120; top: max(14px, env(safe-area-inset-top)); left: 50%; display: grid; gap: 8px; width: min(calc(100% - 28px), 430px); transform: translateX(-50%); pointer-events: none; }
.toast-message { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 52px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 36px rgba(11, 24, 17, 0.2); pointer-events: auto; }
.toast-message.success { border-color: #81bba2; background: var(--green-soft); }
.toast-message.warning { border-color: #d7b554; background: var(--yellow-soft); }
.toast-message.error { border-color: #d99688; background: var(--red-soft); }
.toast-message svg { width: 18px; height: 18px; }
.toast-message button { min-height: 34px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--green-dark); background: transparent; font-size: 12px; font-weight: 750; }

dialog { width: min(calc(100% - 28px), 510px); max-height: calc(100svh - 40px); overflow-y: auto; padding: 26px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(12, 25, 17, 0.28); }
dialog::backdrop { background: rgba(20, 28, 24, 0.55); backdrop-filter: blur(3px); }
.dialog-close { float: right; }
.dialog-kicker { color: var(--green); font-size: 12px; font-weight: 750; }
dialog h2 { margin: 9px 0 12px; font-size: 28px; line-height: 1.2; }
dialog > p { color: var(--muted); line-height: 1.65; }
.dialog-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.dialog-points span { display: grid; min-height: 85px; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 12px; font-weight: 700; }
.dialog-points svg { color: var(--green); }
fieldset { display: grid; gap: 7px; padding: 0; border: 0; }
legend { margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.choice { display: flex; min-height: 46px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice input { width: 18px; height: 18px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0%, 100% { transform: translateY(-45px); } 50% { transform: translateY(45px); } }

@media (max-width: 700px) {
  .app-header { min-height: 62px; padding: 8px 16px; }
  .app-main { width: min(100% - 24px, 560px); padding-top: 28px; }
  .query-intro { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .query-intro h1 { font-size: 40px; }
  .query-intro p { font-size: 15px; }
  .today-summary { grid-template-columns: 1fr auto; min-height: auto; align-items: center; padding: 13px 15px; }
  .today-summary span { grid-row: 1; }
  .today-summary strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .today-summary small { grid-row: 2; }
  .tool-panel, .flow-section, .records-section { padding: 18px; }
  .scanner-stage { height: 220px; }
  .photo-guide { grid-template-columns: 92px minmax(0, 1fr); gap: 15px; padding: 16px; }
  .label-preview { width: 88px; padding: 9px; gap: 6px; }
  .label-preview span { font-size: 9px; }
  .photo-guide h2, .panel-heading h2 { font-size: 19px; }
  .photo-guide p, .panel-heading p { font-size: 13px; }
  .photo-preview { grid-template-columns: 1fr; }
  .photo-preview img { height: 230px; }
  .preview-copy { grid-template-columns: 1fr 1fr; }
  .preview-copy b, .preview-copy span { grid-column: 1 / -1; }
  .confirm-grid { grid-template-columns: 1fr; }
  .result-header { display: grid; padding: 21px 18px 16px; }
  .result-header .verification-badge { justify-self: start; }
  .result-hero { padding: 26px 18px; }
  .result-hero strong b { font-size: 64px; }
  .result-facts { grid-template-columns: 1fr 1fr; }
  .result-facts article { min-height: 112px; padding: 14px; }
  .result-facts article:last-child { grid-column: 1 / -1; min-height: 92px; }
  .result-note { margin: 18px 18px 0; }
  .evidence-details { margin: 12px 18px 0; }
  .boundary-copy { margin: 14px 18px 0; }
  .result-actions { grid-template-columns: 1fr 1fr; padding: 16px 18px 20px; }
  .result-actions .primary-button { grid-column: 1 / -1; }
  .records-section { margin-top: 36px; }
  .history-item { grid-template-columns: minmax(0, 1fr) auto 18px; padding: 11px; }
  .today-grid { gap: 6px; }
  .today-grid article { min-height: 98px; }
  .today-grid b { font-size: 26px; }
  .app-footer details > div { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .app-main { width: min(100% - 20px, 560px); }
  .query-intro h1 { font-size: 36px; }
  .mode-tab { gap: 5px; font-size: 13px; }
  .tool-panel, .flow-section, .records-section { padding: 14px; }
  .button-grid { grid-template-columns: 1fr; }
  .photo-guide { grid-template-columns: 1fr; }
  .label-preview { display: none; }
  .today-grid { grid-template-columns: 1fr; }
  .today-grid article { min-height: 76px; }
  .dialog-points { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
