/* Decoday link pages. Values follow lib/core/tokens.dart and
   design-lab/BRAND.md: neutral paper and ink, one vivid sky for selection,
   ink for the primary action, 44px touch targets. */
:root {
  --paper: #fbfbf9;
  --canvas: #f0f0ee;
  --ink: #2d2e30;
  --gray: #67696b;
  --line: #d9d9d7;
  --sky: #14b8ff;
  --sky-tint: #d6efff;
  --sky-deep: #006b98;
  --error: #b3352e;
  --error-tint: #f6e3e1;
  --on-ink: #ffffff;
  --radius: 12px;
  --control: 44px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.shell { max-width: 560px; margin: 0 auto; padding: 20px var(--gutter) 48px; }
.brand { display: inline-flex; min-height: var(--control); align-items: center; }
.brand img { height: 29px; width: auto; }

h1 { font-size: 24px; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
h1:focus, h2:focus { outline: none; }
h2 { font-size: 18px; line-height: 1.4; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.page-head { margin: 24px 0 16px; }
.eyebrow { color: var(--sky-deep); font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.muted { color: var(--gray); }
.small { font-size: 14px; }

.block { border-top: 1px solid var(--line); padding: 20px 0 8px; margin-top: 8px; }
.notice { background: var(--canvas); border-radius: var(--radius); padding: 12px 14px; }
.notice.error { background: var(--error-tint); color: var(--error); }
.empty { color: var(--gray); padding: 16px 0; }

label { display: block; font-size: 14px; font-weight: 600; margin: 4px 0 6px; }
input, textarea {
  width: 100%; min-height: var(--control); font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #797a7d; border-radius: var(--radius); padding: 10px 12px;
  margin-bottom: 12px;
}
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--sky-deep); outline-offset: 2px;
}

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--control); min-width: var(--control); padding: 0 16px;
  font: inherit; font-weight: 600; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
}
.primary { background: var(--ink); color: var(--on-ink); width: 100%; }
.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.text { background: none; border: none; color: var(--sky-deep); padding: 0 8px; width: auto; }
.block .primary + .text { margin-top: 8px; width: 100%; }
button:disabled { opacity: 0.45; cursor: default; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.day {
  flex: 0 0 auto; flex-direction: column; gap: 0; min-width: 96px; padding: 8px 12px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.day small { font-weight: 400; font-size: 13px; color: var(--gray); }
.day[data-full] { color: var(--gray); }
.day.selected { background: var(--sky); border-color: var(--sky); }
.day.selected small { color: var(--ink); }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 12px 0; }
.time { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.time:not(:disabled):hover { border-color: var(--sky-deep); }
.time:disabled { text-decoration: line-through; }

.week-nav { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0; }
.rows { list-style: none; margin: 0 0 8px; padding: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row div { display: flex; flex-direction: column; }
.done strong { font-size: 18px; }
.stores .button { width: 100%; margin-bottom: 8px; }
.app-link { margin-top: 24px; text-align: center; }
.app-link a { color: var(--sky-deep); display: inline-flex; min-height: var(--control); align-items: center; }
.account { margin-top: 16px; text-align: right; }

/* Footer link to the privacy policy, and the policy page itself. */
.site-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.site-foot a { color: var(--gray); display: inline-flex; min-height: var(--control); align-items: center; }
.legal h3 { font-size: 16px; line-height: 1.4; margin: 16px 0 6px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--sky-deep); }
.table-wrap { overflow-x: auto; margin: 0 0 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--gray); }

@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color 120ms ease, border-color 120ms ease; }
}
