:root {
  --terracotta: #c95b4b;
  --terracotta-dark: #a94739;
  --mustard: #e0b64d;
  --off-white: #f5f5f0;
  --charcoal: #3a3a3a;
  --paper: var(--off-white);
  --paper-deep: #e7e5dc;
  --ink: var(--charcoal);
  --muted: #77746e;
  --line: rgba(58, 58, 58, 0.11);
  --accent: var(--terracotta);
  --accent-dark: var(--terracotta-dark);
  --green: var(--charcoal);
  --card: #fffefa;
  --header-height: 158px;
  --filter-height: 63px;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --soft-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(201, 91, 75, 0.1), transparent 27rem),
    radial-gradient(circle at 5% 70%, rgba(224, 182, 77, 0.08), transparent 22rem),
    var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  transform: translateZ(0);
  transform-origin: center;
  transition:
    color 220ms ease,
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 420ms var(--soft-spring),
    opacity 220ms ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.top-shell {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  overflow: hidden;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, calc((100vw - 760px) / 2), env(safe-area-inset-right))
    22px
    max(20px, calc((100vw - 760px) / 2), env(safe-area-inset-left));
  background: rgba(245, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.post-watermark {
  position: absolute;
  z-index: 0;
  top: max(-48px, calc(env(safe-area-inset-top) - 58px));
  right: max(-72px, calc((100vw - 920px) / 2));
  width: clamp(270px, 42vw, 430px);
  opacity: 0.065;
  pointer-events: none;
  transform: rotate(-3deg);
}

.post-watermark svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.post-watermark .post-bird {
  fill: var(--terracotta);
}

.post-watermark .speed-line {
  fill: none;
  stroke: var(--terracotta);
  stroke-linecap: round;
  stroke-width: 5;
}

.status-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

h1 {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.3rem, 11vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.progress-copy {
  display: flex;
  align-items: end;
  flex-direction: column;
}

.progress-copy strong {
  color: var(--green);
  font-family: "DM Sans", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}

.progress-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.progress-track {
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 720px;
  height: 7px;
  margin: 0 auto;
  background: var(--paper-deep);
  border-radius: 100px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--mustard));
  border-radius: inherit;
  transition: width 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.completion-message {
  position: absolute;
  right: max(12px, calc((100vw - 770px) / 2));
  bottom: 3px;
  color: #3479c7e1;
  font-family: "DM Sans", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 220ms ease;
}

.completion-message.is-visible {
  opacity: 1;
}

.completion-message span {
  display: inline-block;
  min-width: 2px;
  padding-right: 4px;
  border-right: 2px solid #3478c7;
}

.completion-message.is-visible span {
  animation: cloud-caret 700ms step-end infinite;
}

@keyframes cloud-caret {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: #3478c7;
  }
}

.filter-shell {
  position: fixed;
  z-index: 25;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: var(--filter-height);
  padding:
    10px
    max(20px, env(safe-area-inset-right))
    10px
    max(20px, env(safe-area-inset-left));
  background: rgba(245, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: auto;
}

.filters {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  padding: 1px 3px 3px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 9px 17px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    color 240ms ease,
    background-color 320ms var(--spring),
    box-shadow 320ms ease,
    transform 420ms var(--soft-spring);
  scroll-snap-align: start;
}

.filter.active {
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 5px 14px rgba(58, 58, 58, 0.17);
}

main {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(var(--header-height) + var(--filter-height) + 22px)
    max(20px, env(safe-area-inset-right))
    max(130px, calc(100px + env(safe-area-inset-bottom)))
    max(20px, env(safe-area-inset-left));
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 16px 14px 16px 18px;
  background: var(--card);
  border: 1px solid rgba(58, 58, 58, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(58, 58, 58, 0.06);
  scroll-margin-top: calc(var(--header-height) + var(--filter-height) + 18px);
  will-change: transform, opacity;
  transition:
    color 300ms ease,
    background-color 380ms var(--spring),
    border-color 300ms ease,
    box-shadow 380ms var(--spring);
}

.task-card.completed {
  color: #888681;
  background: #e1e0da;
  box-shadow: none;
}

.task-card.completed .task-title {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.check-button,
.customer-button,
.favorite-button,
.pin-button,
.drag-handle,
.icon-button {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.check-button {
  width: 34px;
  height: 34px;
  border: 2px solid #c8c8c1;
  border-radius: 11px;
  transition:
    background-color 300ms var(--spring),
    border-color 260ms ease,
    transform 420ms var(--soft-spring);
}

.check-button:hover {
  border-color: var(--accent);
}

.completed .check-button {
  background: var(--green);
  border-color: var(--green);
}

.completed .check-button span::after {
  display: block;
  width: 7px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
  transform: translateY(-1px) rotate(45deg);
}

.task-content {
  min-width: 0;
}

.task-title {
  overflow: hidden;
  margin: 0 0 5px;
  font-size: clamp(0.96rem, 4vw, 1.08rem);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 280ms ease;
}

.task-title.long-title {
  font-size: clamp(0.78rem, 3.1vw, 0.9rem);
  letter-spacing: -0.04em;
}

.task-title.very-long-title {
  font-size: clamp(0.72rem, 2.8vw, 0.84rem);
  letter-spacing: -0.055em;
}

.task-card.favorite .task-title {
  color: #c95b4b;
}

.task-note {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-note:empty {
  display: none;
}

.task-card.completed .task-note {
  color: #85837e;
}

.task-schedule {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.task-schedule::before {
  content: "◷";
  font-size: 0.8rem;
}

.time-arrow {
  color: #aaa9a3;
}

.elapsed-time {
  margin-left: 4px;
  padding: 3px 7px;
  color: #65635f;
  background: #faeed2;
  border-radius: 999px;
  font-size: 0.65rem;
}

.task-card.completed .elapsed-time {
  background: rgba(58, 58, 58, 0.085);
}

.task-flags {
  display: flex;
  gap: 6px;
}

.customer-button,
.favorite-button,
.pin-button {
  width: 35px;
  height: 35px;
  color: #b0aea6;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(58, 58, 58, 0.11);
  border-radius: 50%;
  transition:
    color 240ms ease,
    background-color 300ms var(--spring),
    border-color 260ms ease,
    transform 440ms var(--soft-spring),
    box-shadow 300ms ease;
}

.customer-button svg,
.favorite-button svg,
.pin-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.customer-button:hover,
.favorite-button:hover,
.pin-button:hover {
  border-color: rgba(58, 58, 58, 0.24);
  box-shadow: 0 4px 12px rgba(58, 58, 58, 0.08);
}

.customer-button.is-customer {
  color: white;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.customer-button.is-customer svg {
  fill: rgba(224, 182, 77, 0.18);
}

.favorite-button.is-favorite {
  color: #a67a12;
  background: rgba(224, 182, 77, 0.2);
  border-color: rgba(224, 182, 77, 0.65);
}

.favorite-button.is-favorite svg {
  fill: currentColor;
  stroke-width: 1.2;
}

.pin-button.is-pinned {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.pin-button.is-pinned svg {
  fill: currentColor;
}

.task-card.pinned {
  position: sticky;
  z-index: 20;
  top: calc(var(--header-height) + var(--filter-height) + 12px);
  border-color: rgba(201, 91, 75, 0.5);
  box-shadow: 0 13px 35px rgba(58, 58, 58, 0.16);
}

.edit-button {
  padding: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.drag-handle {
  display: none;
  width: 24px;
  color: var(--muted);
  cursor: grab;
  font-size: 1.25rem;
  touch-action: none;
}

.move-buttons {
  display: none;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.move-buttons button {
  width: 27px;
  height: 24px;
  padding: 0;
  color: var(--green);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}

.move-buttons button + button {
  border-top: 1px solid var(--line);
}

.move-buttons button:disabled {
  color: #c7c7c1;
  cursor: default;
}

.task-list.reorder-mode .task-card {
  grid-template-columns: auto auto minmax(0, 1fr);
  border-color: rgba(201, 91, 75, 0.35);
}

.task-list.reorder-mode .drag-handle,
.task-list.reorder-mode .move-buttons {
  display: grid;
  animation: control-in 380ms var(--spring) both;
}

.task-list.reorder-mode .check-button,
.task-list.reorder-mode .task-flags,
.task-list.reorder-mode .edit-button {
  display: none;
}

@keyframes control-in {
  from {
    opacity: 0;
    transform: translateX(-8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.task-card.dragging {
  z-index: 2;
  opacity: 0.55;
  transform: scale(0.98);
}

.empty-state {
  padding: 17vh 20px 0;
  color: var(--muted);
  text-align: center;
}

.empty-state span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--green);
  background: rgba(224, 182, 77, 0.2);
  border-radius: 50%;
  font-size: 1.4rem;
}

.empty-state h2 {
  margin: 14px 0 5px;
  color: var(--ink);
  font-size: 1rem;
}

.empty-state p {
  margin: 0;
  font-size: 0.82rem;
}

.tab-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
}

.tab-action-button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  color: var(--charcoal);
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(58, 58, 58, 0.12);
  transition:
    color 240ms ease,
    background-color 320ms var(--spring),
    border-color 260ms ease,
    transform 440ms var(--soft-spring),
    box-shadow 320ms ease;
}

.tab-action-button:hover {
  box-shadow: 0 6px 17px rgba(58, 58, 58, 0.17);
}

.tab-action-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.tab-action-button.add {
  color: white;
  background: var(--terracotta);
  border-color: var(--terracotta);
  font-size: 1.45rem;
  line-height: 1;
}

.tab-action-button.active {
  color: #fff;
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: 0 5px 16px rgba(201, 91, 75, 0.3);
}

dialog {
  width: min(calc(100% - 32px), 440px);
  max-height: calc(100dvh - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom)));
  padding: 0;
  overflow-y: auto;
  background: var(--card);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(25, 27, 24, 0.28);
  -webkit-overflow-scrolling: touch;
}

dialog[open] {
  animation: dialog-in 480ms var(--spring) both;
}

dialog::backdrop {
  background: rgba(27, 30, 27, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: backdrop-in 320ms ease-out both;
}

dialog.is-closing {
  animation: dialog-out 220ms ease-in both;
}

dialog.is-closing::backdrop {
  animation: backdrop-out 220ms ease-in both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dialog-out {
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdrop-out {
  to { opacity: 0; }
}

#taskForm {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 3px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--muted);
  border-radius: 50%;
  font-size: 1.7rem;
}

label {
  display: grid;
  gap: 7px;
}

.time-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  min-height: 48px;
  font-size: 16px;
}

select {
  min-width: 0;
  min-height: 48px;
  padding: 4px 9px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: none;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  text-align: center;
  text-align-last: center;
  appearance: none;
  -webkit-appearance: none;
}

select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 91, 75, 0.12);
}

.time-select-group {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 6px;
}

.time-select-group select:nth-child(2),
.time-select-group select:nth-child(3) {
  font-size: 14px;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 91, 75, 0.12);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
}

.text-button,
.save-button {
  padding: 11px 17px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.text-button {
  color: var(--muted);
  background: transparent;
}

.save-button {
  color: white;
  background: var(--accent);
}

@media (max-width: 420px) {
  :root {
    --header-height: 150px;
    --filter-height: 64px;
  }

  .top-shell {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .post-watermark {
    top: -35px;
    right: -105px;
    width: 315px;
  }

  .completion-message {
    right: -2px;
    bottom: 2px;
    font-size: 0.64rem;
  }

  .filter-shell,
  main {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .time-inputs {
    grid-template-columns: 1fr;
  }

  .time-select-group {
    grid-template-columns: 1.1fr 1fr 1fr;
  }

  .time-select-group select:nth-child(2),
  .time-select-group select:nth-child(3) {
    font-size: 16px;
  }

  .time-select-group select {
    font-size: 16px;
  }

  .filter-bar {
    gap: 4px;
  }

  .filters {
    gap: 3px;
  }

  .filter {
    padding-right: 11px;
    padding-left: 11px;
  }

  .tab-actions {
    gap: 3px;
  }

  .tab-action-button {
    width: 40px;
    height: 40px;
  }

  .task-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 104px;
    padding: 13px 9px 13px 14px;
    border-radius: 15px;
    gap: 8px;
  }

  .check-button {
    width: 40px;
    height: auto;
    min-height: 80px;
    grid-row: 1 / 3;
    align-self: stretch;
    background: rgba(58, 58, 58, 0.035);
    border-radius: 14px;
  }

  .completed .check-button {
    background: var(--charcoal);
  }

  .task-flags {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
    gap: 4px;
  }

  .customer-button,
  .favorite-button,
  .pin-button {
    width: min(40px, 10.7vw);
    height: min(40px, 10.7vw);
    max-width: 40px;
    max-height: 40px;
    border-width: 2px;
    flex: 0 0 auto;
  }

  .customer-button svg,
  .favorite-button svg,
  .pin-button svg {
    stroke-width: 1.8;
  }

  .task-schedule {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 5px;
    row-gap: 4px;
    align-content: center;
    justify-content: start;
    justify-items: start;
    font-size: 0.76rem;
    white-space: normal;
  }

  .task-schedule::before {
    display: none;
  }

  .start-time {
    grid-row: 1;
    grid-column: 1;
    min-width: 3.6em;
    text-align: left;
  }

  .end-time {
    grid-row: 2;
    grid-column: 1;
    min-width: 3.6em;
    text-align: left;
  }

  .time-arrow {
    display: none;
  }

  .elapsed-time {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    justify-self: start;
    margin-left: 3px;
    padding: 2px 5px;
  }

  .edit-button {
    grid-row: 2;
    grid-column: 3;
    align-self: center;
    justify-self: end;
    margin-left: -4px;
    padding: 5px 4px;
    min-width: 40px;
    min-height: 40px;
  }

  .task-list.reorder-mode .drag-handle {
    display: none;
  }

  .task-list.reorder-mode .task-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 80px;
  }

  .task-list.reorder-mode .task-content {
    grid-row: 1;
    grid-column: 2;
  }
}

@media (min-width: 360px) and (max-width: 420px) {
  .task-card {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 82px;
    padding: 12px 8px 12px 12px;
    gap: 5px;
  }

  .check-button {
    grid-row: auto;
    width: 32px;
    height: 38px;
    min-height: 38px;
    align-self: center;
    border-radius: 11px;
  }

  .task-content {
    min-width: 0;
  }

  .task-title {
    font-size: 0.92rem;
  }

  .task-schedule {
    display: flex;
    gap: 3px;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.61rem;
    white-space: nowrap;
  }

  .task-schedule::before {
    display: none;
  }

  .start-time,
  .end-time {
    min-width: 0;
    text-align: left;
  }

  .time-arrow {
    display: inline;
  }

  .elapsed-time {
    margin-left: 1px;
    padding: 2px 4px;
  }

  .task-flags {
    grid-row: auto;
    grid-column: auto;
    justify-self: auto;
    gap: 2px;
  }

  .customer-button,
  .favorite-button,
  .pin-button {
    width: 29px;
    height: 29px;
    border-width: 1.5px;
  }

  .customer-button svg,
  .favorite-button svg,
  .pin-button svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.7;
  }

  .edit-button {
    grid-row: auto;
    grid-column: auto;
    min-width: 32px;
    min-height: 36px;
    margin-left: 0;
    padding: 4px 2px;
    font-size: 0.68rem;
  }

  .task-list.reorder-mode .task-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 78px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height: 112px;
    --filter-height: 60px;
  }

  .top-shell {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 14px;
  }

  .status-row {
    margin-bottom: 12px;
  }

  h1 {
    font-size: 2.3rem;
  }

  .post-watermark {
    top: -72px;
  }

  .completion-message {
    bottom: 1px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
