:root {
  color-scheme: light;
  --ink: #16211d;
  --ink-soft: #53605a;
  --paper: #f5f3ec;
  --surface: #ffffff;
  --line: #d9ded9;
  --navy: #15382f;
  --navy-strong: #0d2b24;
  --mint: #b9edcf;
  --mint-strong: #72d3a0;
  --amber: #ffc45c;
  --danger: #b33b32;
  --shadow: 0 16px 45px rgba(15, 43, 36, 0.09);
  --radius: 22px;
  --content-width: 720px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--navy-strong);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app-shell {
  width: min(100%, var(--content-width));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) 20px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--mint);
  background: var(--navy);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 720;
  white-space: nowrap;
}

.local-badge > span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #168452;
  box-shadow: 0 0 0 4px rgba(22, 132, 82, 0.12);
}

main {
  padding: 38px 20px calc(112px + env(safe-area-inset-bottom));
  outline: none;
}

.screen[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: #2f6c56;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.screen-intro {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.clock-panel {
  margin-top: 36px;
  padding: 28px;
  color: #f7fff9;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.clock-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.clock-status h2,
.empty-state h2 {
  margin: 0;
  font-size: 1.22rem;
}

.status-label {
  margin: 0 0 7px;
  color: var(--mint);
  font-size: 0.71rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 3px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: transparent;
}

.status-dot.is-working {
  border-color: var(--mint);
  background: var(--mint-strong);
  box-shadow: 0 0 0 6px rgba(114, 211, 160, 0.14);
}

.status-dot.is-paused {
  border-color: #ffe0a1;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(255, 196, 92, 0.14);
}

.status-dot.is-finished {
  border-color: #b7c6c0;
  background: #b7c6c0;
}

.current-break {
  display: flex;
  margin-top: 25px;
  padding: 16px 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffe4ac;
}

.current-break span {
  font-size: 0.86rem;
  font-weight: 720;
}

.current-break strong {
  font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
}

.metric {
  min-width: 0;
  padding: 17px;
  background: var(--navy-strong);
}

.metric-primary {
  grid-column: 1 / -1;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: #b9c9c2;
  font-size: 0.76rem;
  font-weight: 690;
}

.metric strong {
  margin-top: 7px;
  color: white;
  font-size: clamp(1.35rem, 7vw, 2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.metric-primary strong {
  color: var(--mint);
  font-size: clamp(1.8rem, 9vw, 2.65rem);
}

.finished-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.finished-details div {
  min-width: 0;
}

.finished-details dt {
  color: #b9c9c2;
  font-size: 0.75rem;
  font-weight: 700;
}

.finished-details dd {
  margin: 5px 0 0;
  font-size: 1.1rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.clock-actions {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.action-button {
  width: 100%;
  min-height: 60px;
  padding: 15px 18px;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.action-primary {
  color: var(--navy-strong);
  background: var(--mint);
}

.action-break {
  color: #3a2a00;
  background: var(--amber);
}

.action-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.48);
  background: transparent;
}

.action-button span {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.privacy-note {
  margin: 19px 0 0;
  color: #a9bbb4;
  font-size: 0.72rem;
  text-align: center;
}

.error-banner {
  margin-top: 22px;
  padding: 15px 17px;
  border-left: 5px solid #d96a5f;
  color: #78251f;
  background: #ffe8e4;
  font-size: 0.9rem;
  font-weight: 670;
  line-height: 1.45;
}

.section-toolbar {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.section-toolbar .screen-intro {
  margin: 0;
}

.compact-button {
  min-height: 48px;
  padding: 11px 16px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  color: white;
  background: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.history-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.history-card {
  display: grid;
  width: 100%;
  min-height: 132px;
  padding: 20px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 9px 26px rgba(15, 43, 36, 0.06);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.history-card:disabled {
  cursor: default;
  opacity: 0.72;
}

.history-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 820;
}

.edited-badge {
  padding: 4px 7px;
  border: 1px solid #9eb8ab;
  border-radius: 999px;
  color: #32614f;
  font-size: 0.72rem;
  font-weight: 780;
}

.day-type-badge {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #aab8b1;
  border-radius: 999px;
  color: #334a40;
  background: #f2f5f2;
  font-size: 0.72rem;
  font-weight: 800;
}

.day-type-badge--paid_leave,
.day-type-badge--public_holiday,
.day-type-badge--rtt {
  color: #24523f;
  border-color: #9bc7ae;
  background: #e9f8ef;
}

.day-type-badge--absence {
  color: #6d3f15;
  border-color: #dfbd8e;
  background: #fff5e5;
}

.history-card-hours {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.history-card-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 7px;
  font-size: 0.78rem;
  font-weight: 730;
}

.editor-dialog {
  width: min(100% - 20px, 650px);
  max-height: min(92vh, 850px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(8, 31, 25, 0.28);
}

.editor-dialog::backdrop {
  background: rgba(10, 29, 24, 0.64);
}

.editor-form {
  max-height: min(92vh, 850px);
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.editor-header,
.form-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.editor-header h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.icon-button {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.form-section {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-grid,
.pause-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 760;
}

.form-field input,
.form-field select,
.form-field textarea,
.pause-editor-row input {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  border: 1px solid #b9c4be;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-size: 1rem;
  font-weight: 560;
}

.form-field select {
  appearance: auto;
}

.credited-duration-fields {
  min-width: 0;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.credited-duration-fields legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.field-help {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  font-size: 0.84rem;
  font-weight: 720;
}

.checkbox-field input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.form-section-heading h3,
.form-section-heading p {
  margin: 0;
}

.form-section-heading h3 {
  font-size: 1.05rem;
}

.form-section-heading p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.small-outline-button {
  min-height: 44px;
  padding: 9px 13px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  color: var(--navy);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 820;
  cursor: pointer;
}

.pause-editor-list {
  display: grid;
  gap: 13px;
}

.pause-editor-row {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8faf8;
}

.pause-editor-row legend {
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 830;
}

.pause-editor-row label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 720;
}

.remove-pause-button {
  min-height: 42px;
  margin-top: 12px;
  padding: 8px 0;
  border: 0;
  color: var(--danger);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.editor-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.stats-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 30px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #e9ece8;
}

.stats-mode-switch button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 820;
  cursor: pointer;
}

.stats-mode-switch button.is-active {
  color: var(--navy-strong);
  background: white;
  box-shadow: 0 5px 15px rgba(15, 43, 36, 0.08);
}

.period-navigator {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}

.period-navigator button {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.period-navigator strong {
  font-size: 0.94rem;
  text-align: center;
}

.goal-panel {
  margin-top: 26px;
  padding: 24px;
  border-radius: var(--radius);
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.presence-goal-panel {
  margin-top: 14px;
  background: #2d5448;
}

.goal-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.goal-values span,
.goal-values strong {
  display: block;
}

.goal-values span {
  color: #b9c9c2;
  font-size: 0.7rem;
  font-weight: 720;
}

.goal-values strong {
  margin-top: 7px;
  font-size: clamp(0.98rem, 4.5vw, 1.25rem);
  font-variant-numeric: tabular-nums;
}

.goal-values strong.is-positive {
  color: var(--mint);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  min-width: 0;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.stat-card-primary {
  grid-column: 1 / -1;
  color: white;
  border-color: var(--navy-strong);
  background: var(--navy-strong);
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card span {
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 720;
  line-height: 1.35;
}

.stat-card-primary span {
  color: #b9c9c2;
}

.stat-card strong {
  margin-top: 13px;
  font-size: clamp(1.25rem, 6vw, 1.8rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.stat-card-primary strong {
  color: var(--mint);
  font-size: clamp(1.7rem, 8vw, 2.35rem);
}

.monthly-highlights {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--line);
}

.monthly-highlights article {
  padding: 18px;
  background: white;
}

.monthly-highlights span,
.monthly-highlights strong {
  display: block;
}

.settings-panel {
  display: grid;
  gap: 0;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.settings-heading h2,
.settings-heading p {
  margin: 0;
}

.settings-heading h2 {
  font-size: 1.22rem;
}

.settings-heading p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.settings-group {
  min-width: 0;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.settings-group legend,
.nested-settings legend {
  padding: 0;
  font-size: 0.84rem;
  font-weight: 780;
}

.duration-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.duration-inputs label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 720;
}

.duration-inputs input {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #b9c4be;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-size: 1rem;
}

.nested-settings {
  min-width: 0;
  margin: 12px 0 0 33px;
  padding: 0;
  border: 0;
}

.nested-settings:disabled {
  opacity: 0.5;
}

.settings-message {
  margin-top: 20px;
  padding: 13px 15px;
  border-left: 4px solid #168452;
  color: #225e45;
  background: #e9f8ef;
  font-size: 0.82rem;
  font-weight: 720;
}

.settings-message.is-error {
  border-left-color: var(--danger);
  color: #78251f;
  background: #ffe8e4;
}

.settings-panel > .save-button {
  margin-top: 22px;
}

.data-panel {
  gap: 20px;
}

.button-stack {
  display: grid;
  gap: 12px;
}

.backup-button {
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  color: var(--navy);
  background: white;
  font-weight: 830;
  cursor: pointer;
}

.file-field {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.file-field input[type="file"] {
  width: 100%;
  min-height: 54px;
  padding: 7px;
  border: 1px solid #b9c4be;
  border-radius: 14px;
  color: var(--ink);
  background: white;
}

.file-field input[type="file"]::file-selector-button {
  min-height: 38px;
  margin-right: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--navy);
  background: #e5f5ec;
  font: inherit;
  font-weight: 800;
}

.import-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8faf8;
}

.summary-line {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 800;
}

.danger-zone {
  border-color: #d6a29d;
}

.backup-button:disabled,
.delete-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.monthly-highlights span {
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 720;
}

.monthly-highlights strong {
  margin-top: 7px;
  font-size: 0.95rem;
}

.save-button,
.delete-button {
  min-height: 56px;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 850;
  cursor: pointer;
}

.save-button {
  border: 2px solid var(--navy);
  color: white;
  background: var(--navy);
}

.delete-button {
  border: 2px solid #d6a29d;
  color: #8a2b24;
  background: #fff5f3;
}

.empty-state {
  display: flex;
  gap: 20px;
  margin-top: 38px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-number {
  color: #8aa397;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.empty-state p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(22, 33, 29, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -14px 38px rgba(15, 43, 36, 0.08);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: flex;
  min-height: 59px;
  padding: 7px 3px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-radius: 16px;
  color: #6b756f;
  font-size: clamp(0.68rem, 2.8vw, 0.76rem);
  font-weight: 720;
  text-decoration: none;
}

.nav-glyph {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
}

.nav-item.is-active {
  color: var(--navy-strong);
  background: #e5f5ec;
}

.nav-item:focus-visible,
.brand:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

noscript {
  display: block;
  max-width: 680px;
  margin: 20px auto;
  padding: 16px;
  color: white;
  background: var(--danger);
}

@media (min-width: 760px) {
  body {
    padding: 28px;
  }

  .app-shell {
    min-height: calc(100vh - 56px);
    overflow: hidden;
    border: 1px solid rgba(22, 33, 29, 0.08);
    border-radius: 28px;
    background: rgba(250, 249, 245, 0.88);
    box-shadow: 0 22px 80px rgba(15, 43, 36, 0.12);
  }

  .app-header {
    padding: 24px 34px 18px;
  }

  main {
    padding: 54px 46px 135px;
  }

  .section-toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .bottom-nav {
    bottom: 28px;
    padding-right: 18px;
    padding-bottom: 12px;
    padding-left: 18px;
    border: 1px solid rgba(22, 33, 29, 0.1);
    border-radius: 0 0 28px 28px;
  }
}

@media (max-width: 430px) {
  .editor-dialog {
    width: 100%;
    max-height: calc(100vh - max(10px, env(safe-area-inset-top)));
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .editor-form {
    max-height: calc(100vh - max(10px, env(safe-area-inset-top)));
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .pause-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
