:root {
  color-scheme: light;
  --paper: #f5f1e7;
  --surface: #fffcf5;
  --ink: #242e29;
  --muted: #5e6258;
  --line: #ddd6c5;
  --line-strong: #bfb49f;
  --brass: #765929;
  --brass-wash: #f2e8d3;
  --green-wash: #e4ece1;
  --green: #34513e;
  --red: #8a322c;
  --red-wash: #f7e7e1;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-width: 280px; margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--sans);
}
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
a { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible, .date-picker:focus-within, .file-picker:focus-within {
  outline: 2px solid #916f36; outline-offset: 3px;
}
svg { display: block; flex-shrink: 0; }

.masthead {
  border-bottom: 1px solid var(--line);
  background: #efeadf;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.masthead-inner {
  width: min(100% - 64px, 1110px); min-height: 76px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 11px; }
.brand strong { display: block; font: 26px/1.05 var(--serif); letter-spacing: -.6px; }
.brand small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.masthead-end { display: flex; align-items: center; gap: 14px; }
.group-label {
  font-size: 13px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 6px; color: var(--brass); white-space: nowrap;
}
.group-label b { font-variant-numeric: tabular-nums; font-weight: 650; }
.shell { width: min(100% - 64px, 1110px); margin: auto; padding: 42px 0 calc(108px + env(safe-area-inset-bottom)); }
.load { color: var(--muted); }
.page-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: 31px; min-width: 0;
}
.eyebrow {
  font-size: 12px; text-transform: uppercase; font-weight: 700;
  letter-spacing: .12em; color: var(--brass); margin-bottom: 5px;
}
h1 { font: 400 clamp(44px, 5vw, 65px)/1.02 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.date-year { display: inline-block; margin-left: .22em; color: var(--brass); font: 500 .48em/1.2 var(--sans); letter-spacing: -.04em; }
.auth-card {
  max-width: 475px; margin: 15px auto; padding: clamp(18px, 6vw, 35px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.auth-card h1 { font-size: clamp(36px, 6.5vw, 50px); }
.auth-card > .form-help { margin: 10px 0 20px; }
.head-actions, .form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head-actions { flex-shrink: 0; padding-bottom: 2px; }
.button, .text-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; min-height: 44px; border-radius: 7px; padding: 8px 14px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.button { border: 1px solid var(--line-strong); background: var(--surface); }
.button:hover:not(:disabled), .date-picker:hover, .file-picker:hover { background: #f6f0e2; }
.button.primary { color: #fffaf0; background: #354538; border-color: #354538; }
.button.primary:hover:not(:disabled) { background: #25382c; }
.text-button { background: none; border: 0; padding-inline: 0; color: var(--brass); }
.text-button:hover { text-decoration: underline; text-underline-offset: .2em; }
.icon-button { width: 44px; height: 44px; padding: 0; flex: 0 0 44px; }
.icon-button svg { width: 20px; height: 20px; }
.settings-button { background: transparent; }
.date-picker, .file-picker { position: relative; cursor: pointer; }
.date-picker input, .file-picker input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
  padding: 0; border: 0; margin: 0; font-size: 16px;
}
.date-picker input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; cursor: pointer; }
.segmented {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #efeadd; padding: 3px; gap: 1px;
}
.segmented button {
  min-height: 36px; border: 1px solid transparent; background: transparent; color: var(--muted);
  border-radius: 5px; padding: 5px 13px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.segmented button:hover { color: var(--ink); }
.segmented [aria-pressed=true] {
  border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px #29240f0e;
}

.schedule-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(338px, 1fr); gap: 27px; }
.schedule-main { grid-column: 1; grid-row: 1; min-width: 0; }
.schedule-side { grid-column: 2; grid-row: 1; min-width: 0; }
.week-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 17px 15px 7px; }
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; padding-inline: 2px; }
.week-head h2 { font: 400 24px/1.15 var(--serif); }
.week-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.week-arrows { display: flex; gap: 4px; }
.week-arrows .icon-button { border-color: var(--line); background: transparent; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.day-key {
  min-width: 0; min-height: 62px; border: 1px solid transparent; border-radius: 7px; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 0; gap: 1px;
}
.day-key span:first-child { color: var(--muted); font-size: 11px; font-weight: 600; }
.day-key strong { font-size: 17px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.day-key:hover { background: var(--paper); }
.day-key[aria-current=date] { border-color: var(--line-strong); }
.day-key.selected { background: #354538; color: #fffaf0; border-color: #354538; }
.day-key.selected span:first-child { color: #eee8d9; }
.day-dot { height: 4px; width: 4px; margin-top: 2px; border-radius: 50%; }
.day-dot.has-class { background: #a68347; }
.day-key.selected .has-class { background: #d8ba79; }
.today-button { margin: 5px 2px 0; }
.today-button svg { width: 15px; height: 15px; }
.bells-button {
  border: 1px solid var(--line); border-radius: var(--radius); background: #f0eadc; width: 100%; margin-top: 12px;
  min-height: 54px; text-align: left; padding: 10px 16px; display: flex; align-items: center; gap: 10px;
  color: var(--brass); font-weight: 600; font-size: 14px;
}
.bells-button:hover { background: var(--brass-wash); }
.bells-button span { flex: 1; }
.bells-button svg { width: 19px; height: 19px; }
.day-block + .day-block { margin-top: 25px; }
.day-heading {
  min-height: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); padding: 0 0 7px;
}
.day-heading h2 { font: 400 24px/1.18 var(--serif); }
.day-heading span { color: var(--muted); font-size: 13px; text-align: right; flex-shrink: 0; }
.day-heading > div { min-width: 0; }
.day-heading > div span { display: block; text-align: left; }
.button.day-mark { flex-shrink: 0; color: var(--brass); }
.edit-details { margin-bottom: 13px; }
.lesson-list, .tasks-list, .absence-list { display: grid; gap: 8px; }
.lesson {
  display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 12px 16px 0;
}
.lesson-time { align-self: stretch; border-right: 1px solid var(--line); padding: 1px 12px 0 15px; }
.lesson-time span { display: block; color: var(--brass); font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.lesson-time strong { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lesson-info { min-width: 0; padding: 0 14px; }
.subject-link {
  display: block; text-align: left; background: transparent; border: 0; padding: 0; margin: 0;
  color: var(--ink); font: 400 23px/1.13 var(--serif); overflow-wrap: anywhere;
}
.subject-link:hover { text-decoration: underline; text-underline-offset: .15em; }
.teacher { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; }
.lesson-actions { display: flex; gap: 3px; align-items: center; }
.lesson-actions .icon-button { border: 0; background: transparent; color: var(--muted); }
.mark-button {
  min-width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: #f8f3e7; color: var(--brass); font: 700 18px/1 var(--serif);
}
.mark-button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.lesson-labels { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag, .status {
  font-size: 12px; line-height: 1.35; display: inline-block;
  border-radius: 4px; padding: 3px 7px; background: var(--brass-wash); color: #684c22;
}
.status.excused, .mark-button.excused { background: var(--green-wash); color: var(--green); border-color: #aabca9; }
.status.unexcused, .mark-button.unexcused { background: #f2e7d2; color: #6f4a23; border-color: #c4a983; }
.lesson-inactive { background: #eee9de; }
.lesson-inactive .status { background: #e5dfd2; color: #514e45; }
.empty {
  min-height: 159px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  display: grid; place-items: center; align-content: center; gap: 8px;
  text-align: center; padding: 22px 15px; background: #f9f6ee;
}
.empty svg { width: 25px; height: 25px; color: var(--brass); }
.empty strong { font: 400 23px/1.2 var(--serif); }
.empty p { color: var(--muted); font-size: 14px; }

.tabbar {
  position: fixed; inset: auto 0 0; z-index: 2; background: #f5f1e7;
  border-top: 1px solid var(--line-strong);
  padding: 7px env(safe-area-inset-right) max(7px, env(safe-area-inset-bottom)) env(safe-area-inset-left);
  box-shadow: 0 -8px 30px #26201607;
}
.tabbar-inner { width: min(100%, 570px); margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 0; border-radius: 8px; min-height: 50px; background: transparent; color: var(--muted);
  padding: 4px; font-size: 12px; font-weight: 650;
}
.tabbar button:hover { color: var(--ink); }
.tabbar button span { display: grid; place-items: center; padding: 3px 15px; border-radius: 6px; }
.tabbar button[aria-current=page] { color: #563e19; }
.tabbar button[aria-current=page] span { background: var(--brass-wash); }

.subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subject-card, .attachment {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px;
}
.subject-card:hover, .attachment:hover { border-color: var(--line-strong); background: #fbf4e6; }
.subject-card { min-height: 100px; }
.subject-card span, .attachment span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.subject-card strong { display: block; font: 400 23px/1.18 var(--serif); }
.subject-card small { display: block; margin-top: 6px; color: var(--muted); }
.subject-card svg, .attachment svg { color: var(--brass); width: 19px; height: 19px; }
.back-button { margin: -12px 0 14px; }
.back-button svg { width: 17px; height: 17px; }
.subject-head { align-items: start; }
.subject-head h1 { font-size: clamp(32px, 5.1vw, 56px); max-width: 820px; }
.subject-head .button { flex-shrink: 0; }
.tasks-list { margin-top: 10px; }
.task { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px; }
.task h3 { font: 400 23px/1.17 var(--serif); overflow-wrap: anywhere; }
.task-due, .period-range { display: flex; align-items: center; gap: 7px; color: var(--brass); font-size: 14px; }
.task-due { margin-top: 7px; }
.task-due svg, .period-range svg { width: 17px; height: 17px; }
.task-description { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.attachments { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 5px; }
.attachment { padding: 9px 11px; min-height: 44px; font-size: 14px; background: var(--paper); }

.period-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.counter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.counter {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 15px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.counter span { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.counter strong { font: 400 clamp(36px, 6vw, 55px)/1 var(--serif); letter-spacing: -.06em; }
.counter small { color: var(--muted); white-space: nowrap; }
.counter.exceeded, .counter.exceeded small { color: var(--red); }
.counter.exceeded { background: var(--red-wash); border-color: #c89183; }
.count-rule { color: var(--muted); font-size: 14px; margin: 3px 0 11px; }
.count-rule button { margin-left: 8px; }
.warning {
  margin-bottom: 17px; display: flex; align-items: start; gap: 10px; color: var(--red); background: var(--red-wash);
  border: 1px solid #c89183; border-radius: var(--radius); padding: 13px 14px; font-size: 14px;
}
.warning p { margin-top: 3px; }
.absence-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.absence-date { font-size: 13px; color: var(--brass); }
.absence-row h3 { font: 400 22px/1.2 var(--serif); margin-top: 3px; overflow-wrap: anywhere; }
.absence-row button { border: 1px solid; min-height: 44px; max-width: 170px; }
.absence-row button:hover { text-decoration: underline; }
.custom-period { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.custom-period .form-error { flex-basis: 100%; }

dialog {
  width: min(100% - 30px, 540px); max-height: min(90vh, 780px);
  max-height: min(90dvh, 780px); margin: auto; padding: 0;
  border-radius: 12px; border: 1px solid var(--line-strong); color: var(--ink);
  background: var(--surface); box-shadow: 0 18px 75px #2d261c33;
}
dialog::backdrop { background: #29271e70; }
.dialog-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; background: #eee9dc; border-bottom: 1px solid var(--line); padding: 9px 13px 9px 17px;
}
.dialog-head h2 { font: 400 25px/1.15 var(--serif); overflow-wrap: anywhere; }
.dialog-head .button { background: transparent; border-color: var(--line); }
.dialog-body { padding: 17px; }
.dialog-body > p + p, .dialog-body > p + .form-stack { margin-top: 10px; }
.dialog-context { margin-bottom: 15px; }
.dialog-context strong { font: 400 22px/1.2 var(--serif); }
.dialog-context p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.form-stack { display: grid; gap: 12px; justify-items: start; }
.form-stack > label, .form-stack > fieldset, .form-columns { width: 100%; }
.form-stack label, .custom-period label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.form-stack input, .form-stack textarea, .form-stack select, .custom-period input {
  width: 100%; min-width: 0; min-height: 44px; padding: 7px 9px; border: 1px solid var(--line-strong);
  border-radius: 6px; background: white; font-size: 16px; font-weight: 400;
}
textarea { resize: vertical; }
.form-stack fieldset { margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.form-stack legend { padding-inline: 4px; color: var(--brass); font-size: 14px; font-weight: 700; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.form-help { color: var(--muted); font-size: 14px; font-weight: 400; }
fieldset .form-help { margin-top: 8px; }
.form-error { color: var(--red); font-size: 14px; }
.choice-list { display: grid; gap: 8px; margin-bottom: 12px; }
.choice {
  display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: white; text-align: left;
}
.choice-dot { display: block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; }
.choice[aria-pressed=true] .choice-dot { box-shadow: inset 0 0 0 3px white; background: currentColor; }
.choice.excused:hover, .choice.excused[aria-pressed=true] { background: var(--green-wash); color: var(--green); }
.choice.unexcused:hover, .choice.unexcused[aria-pressed=true] { background: var(--brass-wash); color: var(--brass); }
.settings-section { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.settings-section h3 { font: 400 21px/1.2 var(--serif); margin-bottom: 5px; }
.settings-section .form-actions { margin-top: 9px; }
.backup-actions { margin-top: 12px; }
.bells-list { list-style: none; padding: 0; margin: 0; }
.bells-list li {
  display: flex; justify-content: space-between; gap: 9px; padding: 11px 4px;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.bells-list li:first-child { padding-top: 3px; }
.bells-list li:last-child { border-bottom: 0; }

.viewer-dialog { width: min(100% - 20px, 890px); max-height: 92vh; max-height: 92dvh; }
.viewer-tools, .pdf-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.file-preview { margin-top: 12px; overflow-wrap: anywhere; }
.pdf-controls { justify-content: center; padding-bottom: 8px; font-variant-numeric: tabular-nums; }
.pdf-controls .button { min-width: 44px; }
.pdf-controls span { padding: 0 3px; }
.pdf-stage { overflow: auto; background: #e8e2d6; text-align: center; padding: 6px; }
.pdf-stage canvas { display: block; background: white; height: auto; }
.word-page {
  background: white; border: 1px solid var(--line); padding: clamp(10px, 2.5vw, 24px);
  overflow: auto; line-height: 1.5; color: #202724;
}
.word-page p, .word-page h1, .word-page h2, .word-page h3, .word-page ul, .word-page ol { margin: .55em 0; }
.word-page h1 { font-size: 28px; letter-spacing: 0; }
.word-page h2 { font-size: 23px; }
.word-page table { border-collapse: collapse; margin-block: 12px; max-width: 100%; }
.word-page td, .word-page th { border: 1px solid #bdb6aa; padding: 6px; vertical-align: top; }
.word-page img { max-width: 100%; height: auto; }
.file-notice { padding: 8px; margin-bottom: 6px; background: var(--brass-wash); font-size: 14px; }
.toast {
  position: fixed; z-index: 4; bottom: calc(73px + env(safe-area-inset-bottom)); inset-inline-end: max(16px, env(safe-area-inset-right));
  max-width: min(360px, 100% - 32px); padding: 11px 15px; border-radius: 6px;
  background: #364638; color: white; box-shadow: 0 4px 16px #242e2933; font-size: 14px;
}

@media (max-width: 900px) {
  .masthead-inner, .shell { width: min(100% - 44px, 1110px); }
  .schedule-grid { grid-template-columns: minmax(0, 1fr) 316px; gap: 17px; }
  .lesson { grid-template-columns: 95px minmax(0, 1fr) auto; }
  .lesson-time { padding-inline: 9px; }
  .lesson-info { padding-inline: 10px; }
  .lesson-actions { flex-direction: column; }
}

@media (max-width: 740px) {
  .masthead-inner, .shell { width: calc(100% - 32px - env(safe-area-inset-right) - env(safe-area-inset-left)); }
  .masthead-inner { min-height: 64px; }
  .shell { padding-top: 25px; }
  .page-head { gap: 10px; margin-bottom: 19px; }
  .schedule-grid { display: flex; flex-direction: column; gap: 13px; }
  .week-card { padding-top: 8px; }
  .week-head { margin-bottom: 2px; }
  .week-head h2 { font-size: 20px; }
  .week-head p { margin-top: 1px; }
  .week-days { gap: 4px; }
  .day-key { min-height: 52px; }
  .today-button { margin-top: 1px; }
  .bells-button { min-height: 44px; margin-top: 7px; padding: 8px 12px; }
  .lesson { grid-template-columns: 102px minmax(0, 1fr) auto; }
  .lesson-time { padding-inline: 10px; }
  .lesson-actions { flex-direction: row; }
  .lesson-info { padding-inline: 12px; }
  .subject-card strong { font-size: 20px; }
}

@media (max-width: 500px) {
  .brand { gap: 8px; }
  .brand img { width: 39px; height: 39px; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 11px; }
  .masthead-end { gap: 6px; }
  .group-label { font-size: 11px; padding: 5px; }
  .masthead-end .button { width: 44px; }
  h1 { font-size: clamp(33px, 9.7vw, 46px); }
  .page-head { flex-wrap: wrap; align-items: center; }
  .head-actions { gap: 5px; }
  .head-actions .segmented button { padding-inline: 7px; font-size: 13px; }
  .head-actions .icon-button { width: 44px; }
  .day-heading h2 { font-size: 21px; }
  .lesson { padding: 9px 5px 10px 11px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 7px; }
  .lesson-time {
    grid-column: 1; grid-row: 1; border-right: 0; padding: 0; display: flex; gap: 7px;
    align-items: baseline; flex-wrap: wrap; min-height: 22px;
  }
  .lesson-time span { margin: 0; }
  .lesson-time strong { color: var(--muted); font-size: 12px; }
  .lesson-info { grid-column: 1; grid-row: 2; padding: 0; }
  .lesson-actions { grid-column: 2; grid-row: 1 / span 2; align-items: start; flex-direction: column; gap: 0; }
  .lesson-actions .icon-button { margin-top: -2px; }
  .subject-link { font-size: 21px; }
  .teacher { font-size: 13px; margin-top: 5px; }
  .lesson-labels { margin-top: 5px; }
  .subject-grid { grid-template-columns: 1fr; gap: 7px; }
  .subject-card { min-height: 72px; padding: 11px; }
  .subject-card small { margin-top: 3px; }
  .counter-grid { gap: 5px; }
  .counter { padding: 8px; gap: 6px; }
  .counter span { font-size: 12px; }
  .counter small { display: block; font-size: 11px; }
  .segmented button { padding-inline: 7px; }
  .absence-row { flex-direction: column; align-items: start; }
  .absence-row button { max-width: none; }
  .custom-period label { flex: 1 0 120px; }
  .custom-period .button { min-height: 44px; width: 100%; }
  .viewer-dialog .dialog-body { padding-inline: 10px; }
}

@media (max-width: 340px) {
  .brand small { display: none; }
  .segmented button { font-size: 12px; padding-inline: 4px; }
  .form-columns { grid-template-columns: 1fr; }
}
