/* euna.cloud — A + C: white paper, graphite ink, one green dot, generous
   whitespace; developer-note details (monospace paths and keys, a path
   header, a blinking caret, a highlighter used sparingly). Light by default;
   dark only through the toggle (public/theme.js sets html[data-theme]). */

@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Pretendard-Regular.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
}

/* Hangul in the locally installed Malgun Gothic (Windows) — never hosted by us (Microsoft licence):
   local() sources only. Where it is missing the face is skipped and Hangul stays Pretendard. */
@font-face {
  font-family: "Euna Hangul";
  font-weight: 400;
  src: local("Malgun Gothic"), local("MalgunGothic"), local("맑은 고딕");
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}
@font-face {
  font-family: "Euna Hangul";
  font-weight: 600 700;
  src: local("Malgun Gothic Bold"), local("MalgunGothic-Bold"), local("MalgunGothicBold"), local("맑은 고딕 Bold");
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #16181b;
  --ink-2: #5f656d;
  --line: #e5e7ea;
  --dot: #1f7a5c;
  /* highlighter: the stroke behind "you are here", the softer row hover */
  --mark: #c6ebd6;
  --mark-soft: #ebf7f0;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --sans: "Euna Hangul", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", system-ui, sans-serif;
  /* Hangul in monospace runs falls back to Pretendard, not a random system font. */
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Euna Hangul", "Pretendard",
    "Apple SD Gothic Neo", "Malgun Gothic", monospace;
  font-family: var(--sans);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131518;
  --ink: #e8eaed;
  --ink-2: #9aa1aa;
  --line: #2b3036;
  --dot: #4cc38a;
  --mark: rgba(76, 195, 138, 0.32);
  --mark-soft: rgba(76, 195, 138, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--dot); outline-offset: 3px; border-radius: 2px; }

h1, h2, p, ul { margin: 0; }

.shell {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.dot { color: var(--dot); }

/* Where you are: a highlighter stroke across the lower half of the text. */
.path [aria-current] {
  padding-inline: 0.1em;
  background: linear-gradient(transparent 52%, var(--mark) 52% 94%, transparent 94%);
}

/* Top line: the path on the left; email and the theme toggle on the right. */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
}
.bar--landing { justify-content: flex-end; }
.bar__end { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.who { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); font-size: 0.875rem; }

.path { font-family: var(--mono); font-size: 0.9375rem; color: var(--ink-2); overflow-wrap: anywhere; }
.path a { color: var(--ink); text-decoration: none; }
.path a:hover { text-decoration: underline; }
.path [aria-current] { color: var(--ink); font-weight: 600; }

/* The site bar (src/layout.ts siteBar): the path line above, then the 홈 key
   and the menu on a line of their own. Quiet at rest (owner, 2026-11-24):
   plain text, the current page in semibold with a thin underline; green only
   as the underline on hover and focus. */

.site-nav { flex-basis: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-inline-start: -0.5rem; list-style: none; padding: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 0.35em;
  white-space: nowrap;
}
.site-nav svg { flex: none; }
.site-nav a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; }
.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--dot);
  text-decoration-thickness: 2px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle__track {
  position: relative;
  width: 2rem;
  height: 1.125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.theme-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.125rem - 6px);
  height: calc(1.125rem - 6px);
  border-radius: 50%;
  background: var(--ink-2);
  transition: transform 0.15s ease;
}
.theme-toggle[aria-pressed="true"] .theme-toggle__track { border-color: var(--dot); background: var(--dot); }
.theme-toggle[aria-pressed="true"] .theme-toggle__track::after {
  transform: translateX(0.875rem);
  background: var(--paper);
}
/* Without JavaScript the toggle could not work: hide it. */
html:not([data-theme]) .theme-toggle { display: none; }

/* Landing: the wordmark leads a compact block in the upper left (owner,
   2026-11-24: smaller, higher, more to the left). */

.landing {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.landing__main {
  align-self: start;
  padding-top: clamp(2rem, 8vh, 5rem);
  padding-bottom: 3rem;
}
.wordmark {
  margin-left: -0.06em;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.caret {
  display: inline-block;
  width: 0.34em;
  height: 0.7em;
  margin-left: 0.1em;
  background: var(--ink);
  vertical-align: 0;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.landing__foot {
  padding-block: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* Signed-in pages: one narrow, left-aligned column. */

.content { padding-top: clamp(2.5rem, 9vh, 5.5rem); padding-bottom: 6rem; }
.content > * { max-width: 44rem; }
.content h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.lead { margin-top: 0.75rem; color: var(--ink-2); text-wrap: pretty; }

/* /app: one row per tool in the M1 list style (hairlines), a monospace path,
   the name (and a state such as waiting guest logins), "열기 →" on the right;
   the whole row is the link. Quiet at rest; the row lights up on hover and focus. */

.keys {
  margin-top: clamp(2.5rem, 7vh, 4rem);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.keys > li { border-bottom: 1px solid var(--line); }
.key {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  grid-template-areas: "path title go" "path desc go";
  column-gap: 1.5rem;
  align-items: baseline;
  padding: 1.375rem 0.75rem;
  margin-inline: -0.75rem;
  text-decoration: none;
}
.key__path { grid-area: path; font-family: var(--mono); font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.key__title { grid-area: title; font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.key__desc { grid-area: desc; margin-top: 0.125rem; color: var(--ink-2); font-size: 0.9375rem; }
.key__go { grid-area: go; align-self: center; font-size: 0.875rem; color: var(--ink-2); }
.key:hover, .key:focus-visible { background: var(--mark-soft); }
.key:hover .key__path, .key:focus-visible .key__path,
.key:hover .key__go, .key:focus-visible .key__go { color: var(--dot); }

/* The landing's way in: a quiet text link; green only on hover and focus. */

.actions { margin-top: clamp(2rem, 6vh, 3rem); }
.enter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.3em;
}
.enter:hover, .enter:focus-visible {
  color: var(--dot);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* A button: 저장소 점검's 점검 시작. */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border: 1px solid var(--dot);
  border-radius: 999px;
  background: var(--dot);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
:root[data-theme="dark"] .button { color: #0b1a13; }
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: 0.55; cursor: default; }
.check-result { margin-top: 1rem; overflow-wrap: anywhere; }

/* /app: the morning dashboard (owner only; filled by /app/office/dashboard.js,
   owner's pick 2026-11-26: tiles). Small and quiet in the upper left: a
   monospace date line, four hairline tiles (일정, 메일, 날씨, 봇), labels in
   grey, green only for "now" and a working bot. Phones keep a compact 2×2:
   일정 and 봇 across, 메일 and 날씨 side by side. */

.today {
  --tile-block: #e4e7eb;
  --tile-block-next: #cfd4da;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 7vh, 4rem);
  font-size: 0.875rem;
  line-height: 1.5;
}
:root[data-theme="dark"] .today { --tile-block: #2b3037; --tile-block-next: #3b424b; }
.today__date { margin-bottom: 0.625rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); }
.today__foot { margin-top: 0.625rem; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.today__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tile h2 { margin: 0; }
.tile__k { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--ink-2); }
.tile__sub { margin-left: 0.25rem; }
.tile__body { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.tile__k2, .tile__faint, .tile__stale { color: var(--ink-2); }
.tile__stale { font-size: 0.75rem; }

/* 일정: today's hours 08–24, blocks for events, a green line for now */
.cal__allday { font-size: 0.8125rem; }
.cal__track { position: relative; height: 0.875rem; border-bottom: 1px solid var(--line); }
.cal__ev { position: absolute; top: 0; bottom: 0; min-width: 3px; border-radius: 3px; background: var(--tile-block); }
.cal__ev--next { background: var(--tile-block-next); box-shadow: inset 0 0 0 1px var(--ink-2); }
.cal__now { position: absolute; top: -3px; bottom: -3px; width: 1.5px; margin-left: -0.75px; background: var(--dot); }
.cal__ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-2); }
.cal__next b { font-weight: 600; }
.cal__later { font-size: 0.8125rem; color: var(--ink-2); }

/* 메일: big counts; the subjects open below the tile on hover or tap */
.mail__counts {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: baseline;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.mail__counts:disabled { cursor: default; }
.mail__count { display: inline-flex; align-items: baseline; gap: 0.375rem; }
.mail__count b { font-size: 1.75rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.mail__count small { font-size: 0.8125rem; color: var(--ink-2); }
.mail__list {
  display: none;
  position: absolute; z-index: 2; left: -1px; right: -1px; top: calc(100% - 4px);
  padding: 0.5rem 0.875rem 0.625rem;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px;
  background: var(--paper);
  font-size: 0.8125rem;
}
.mail__list ul { margin: 0 0 0.25rem; padding: 0; list-style: none; }
.tile--mail:hover .mail__list, .tile--mail[data-open] .mail__list { display: block; }

/* 날씨: our pixel icon, the temperature now, today's range and rain */
.wx { display: grid; grid-template-columns: 36px auto minmax(0, 1fr); align-items: center; gap: 0.625rem; }
.wx__icon svg { display: block; width: 36px; height: 36px; }
.wx__temp { font-size: 1.75rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.wx__meta { display: flex; flex-direction: column; font-size: 0.8125rem; line-height: 1.35; min-width: 0; }
.wx__short { display: none; }

/* 봇: each bot's character with a status dot; the tile opens the office */
.tile--bots:hover, .tile--bots:focus-visible { border-color: var(--ink-2); }
.tile--bots:hover .tile__sub { color: var(--dot); }
.bots { display: flex; justify-content: space-between; gap: 0.5rem; padding-top: 0.25rem; }
.bot { display: inline-flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 0; }
.bot__pic { position: relative; display: block; }
.bot__pic svg { display: block; }
.bot__dot {
  position: absolute; right: -3px; bottom: -2px;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--ink-2); background: var(--paper);
}
.bot[data-state="working"] .bot__dot { border-color: var(--dot); background: var(--dot); }
.bot__name { font-size: 0.75rem; color: var(--ink-2); }

@media (max-width: 40rem) {
  .today__tiles { gap: 0.5rem; }
  .tile { gap: 0.375rem; padding: 0.625rem 0.75rem; }
  .tile--cal, .tile--bots { grid-column: 1 / -1; }
  .mail__counts { flex-direction: column; gap: 0.125rem; }
  .mail__count b, .wx__temp { font-size: 1.375rem; }
  .wx { grid-template-columns: 24px auto minmax(0, 1fr); gap: 0 0.375rem; }
  .wx__icon svg { width: 24px; height: 24px; }
  .wx__short { display: block; font-size: 0.75rem; color: var(--ink-2); }
  .wx__name { display: none; }
  .wx__meta { grid-column: 1 / -1; font-size: 0.75rem; }
  .wx + .wx { margin-top: 0.25rem; }
}

/* Lists of things to open: the study hub's subjects. */

.list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.list > li { border-bottom: 1px solid var(--line); }

.set {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.375rem 0.75rem;
  margin-inline: -0.75rem;
  text-decoration: none;
}
.set:hover { background: var(--mark-soft); }
.set__title { display: block; font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.set__exam { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-2); white-space: nowrap; }
.set__exam b { color: var(--dot); }

.foot-links { margin-top: 2.5rem; font-size: 0.9375rem; color: var(--ink-2); }

/* Study hub: one row per subject, the name linking to the set, exam badge on the right. */

.sets .set { grid-template-columns: 1fr auto; gap: 0.25rem 1rem; }
.empty { margin-top: 3rem; color: var(--ink-2); }

/* A small page in the upper left (the mini PC status). */

.content--compact { padding-top: clamp(1.5rem, 5vh, 2.75rem); }
.content--compact > * { max-width: 40rem; }
.content--compact h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }

/* Read-only status: one verdict line with a small dot (the only colour), then
   quiet label/value rows between hairlines. */

.health {
  --warn: #a15c07;
  --bad: #b42318;
  margin-top: clamp(1.75rem, 5vh, 2.5rem);
}
:root[data-theme="dark"] .health { --warn: #f0b45b; --bad: #f28b82; }
.health__line { display: flex; align-items: center; gap: 0.625rem; font-size: 1.125rem; font-weight: 600; }
.health__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line); }
.health[data-tone="ok"] .health__dot { background: var(--dot); }
.health[data-tone="warn"] .health__dot { background: var(--warn); }
.health[data-tone="bad"] .health__dot { background: var(--bad); }
.health__note { margin-top: 0.25rem; color: var(--ink-2); font-size: 0.9375rem; text-wrap: pretty; }
.health__checked { margin-top: 0.375rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); }

.facts-group { margin-top: 2.25rem; }
.facts-group h2 { margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts .mono { font-family: var(--mono); font-size: 0.875rem; }

/* Forms (the guest login, the owner's 게스트 page): quiet labelled fields;
   the one green thing is the main button. */

.form { display: grid; gap: 0.875rem; max-width: 22rem; margin-top: clamp(1.5rem, 4vh, 2.25rem); }
.form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; gap: 0.75rem 1rem; align-items: end; }
.field { display: grid; gap: 0.25rem; min-width: 0; }
.field__label { font-size: 0.8125rem; color: var(--ink-2); }
.field__input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field__input:focus-visible { outline: 2px solid var(--dot); outline-offset: 1px; border-color: transparent; }
.form-note { margin-top: 1rem; padding: 0.5rem 0.75rem; border-left: 2px solid var(--dot); background: var(--mark-soft); font-size: 0.9375rem; }
.form-note--error { border-left-color: var(--ink); }
/* Form submits (로그인, 승인, 만들기, 저장): quiet like the landing's 들어가기
   (owner, 2026-11-26): semibold text at rest, green with an underline only on
   hover and focus. */
.action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.action:hover, .action:focus-visible { color: var(--dot); text-decoration: underline; text-decoration-thickness: 2px; }
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.text-button:hover, .text-button:focus-visible { color: var(--ink); text-decoration-color: var(--dot); }
.text-button--danger:hover, .text-button--danger:focus-visible { color: #b42318; }
:root[data-theme="dark"] .text-button--danger:hover, :root[data-theme="dark"] .text-button--danger:focus-visible { color: #f28b82; }
.inline-form { margin: 0; }
.check { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.9375rem; cursor: pointer; }
.check input { accent-color: var(--dot); }
.check--off { color: var(--ink-2); cursor: default; }
.mono { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); }

/* The guest area (/guest/): no site menu, only the path, the guest's name,
   로그아웃 and the theme toggle. */

.guest-main > * { max-width: 64rem; }
.guest-main > .lead { max-width: 44rem; }
.guest-section { margin-top: clamp(2rem, 6vh, 3rem); }
.guest-section h2 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.guest-section > .empty { margin-top: 0.75rem; }
.ms-overall { display: flex; align-items: baseline; gap: 0.625rem; max-width: 44rem; margin-top: 0.5rem; }
.ms-overall b { font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.ms-overall span { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-2); }
.meter-bar {
  appearance: none;
  display: block;
  width: 100%;
  height: 0.375rem;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  color: var(--dot);
  overflow: hidden;
}
.meter-bar::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.meter-bar::-webkit-progress-value { background: var(--dot); border-radius: 999px; }
.meter-bar::-moz-progress-bar { background: var(--dot); border-radius: 999px; }
.meter-bar--big { max-width: 44rem; height: 0.5rem; margin-top: 0.5rem; }
.ms { max-width: 44rem; margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ms__row {
  display: grid;
  grid-template-columns: minmax(6rem, 11rem) minmax(0, 1fr) 6.5rem 2.5rem;
  align-items: center;
  gap: 1rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.ms__title { min-width: 0; overflow-wrap: anywhere; }
.ms__count { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); text-align: right; white-space: nowrap; }
.ms__done { font-size: 0.8125rem; font-weight: 600; color: var(--dot); }
.pics__cat { margin-top: 1.5rem; font-size: 1rem; font-weight: 600; }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.25rem 1rem; margin: 0.625rem 0 0; padding: 0; list-style: none; }
.pic figure { margin: 0; }
.pic img, .pick img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  background: #f4f5f6;
  border-radius: 6px;
}
:root[data-theme="dark"] .pic img, :root[data-theme="dark"] .pick img { background: #1c1f23; }
.pic figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.5rem; margin-top: 0.5rem; }
.pic__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pic__stage { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.pic__caption { flex-basis: 100%; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.wait-code { display: flex; align-items: baseline; gap: 0.75rem; margin-top: clamp(1.5rem, 4vh, 2.25rem); }
.wait-code__label { font-size: 0.875rem; color: var(--ink-2); }
.wait-code b { font-family: var(--mono); font-size: 2.25rem; font-weight: 600; letter-spacing: 0.12em; }
.wait-note { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--ink-2); }

/* 게스트 (/app/guests/, owner): sections of hairline rows. */

.admin > * { max-width: 48rem; }
.admin > #pictures { max-width: 64rem; }
.admin__section { margin-top: clamp(2rem, 6vh, 2.75rem); }
.admin__section h2 { margin-bottom: 0.5rem; font-size: 1.0625rem; font-weight: 600; }
.admin__count { margin-left: 0.25rem; font-family: var(--mono); font-size: 0.875rem; font-weight: 400; color: var(--ink-2); }
.admin__sub { margin: 1.75rem 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.admin__hint { margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--ink-2); text-wrap: pretty; }
.admin .form { margin-top: 0.75rem; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem; padding-block: 0.625rem; border-bottom: 1px solid var(--line); }
.row__main { min-width: 0; }
.row__title { font-weight: 600; overflow-wrap: anywhere; }
.row__title .mono { margin-left: 0.25rem; font-weight: 400; }
.row__meta { font-size: 0.875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.row__meta b { color: var(--ink); font-weight: 600; }
.row__actions { display: flex; align-items: center; gap: 1rem; }
.rows--dense .row { padding-block: 0.375rem; }
.row--account { display: block; }
.acct summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; cursor: pointer; }
.acct__note { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.acct__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.75rem; }
.inline-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 0.5rem 0.75rem; margin-top: 0.75rem; }
.acct__actions .inline-fields { margin-top: 0; align-items: center; }
.field--inline { width: min(16rem, 100%); }
.empty-line { padding-block: 0.625rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.375rem 1rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem 0.875rem; margin: 0; padding: 0; list-style: none; }
.pick { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.pick__choose { position: relative; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.375rem; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.pick__choose:hover { background: var(--mark-soft); }
.pick__choose:has(input:checked) { border-color: var(--dot); box-shadow: inset 0 0 0 1px var(--dot); }
.pick__choose input { position: absolute; top: 0.625rem; left: 0.625rem; width: 1.125rem; height: 1.125rem; accent-color: var(--dot); }
.pick__title { font-size: 0.8125rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pick__meta { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-2); }
.pick__caption { padding: 0.3125rem 0.5rem; font-size: 0.8125rem; }
.picks__save { position: sticky; bottom: 0; margin-top: 1rem; padding-block: 0.75rem; background: var(--paper); border-top: 1px solid var(--line); }
.key__alert { color: var(--dot); font-weight: 600; }

@media (max-width: 40rem) {
  .form--grid { grid-template-columns: 1fr; }
  .ms__row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title count done" "bar bar bar"; gap: 0.375rem 0.75rem; }
  .ms__title { grid-area: title; }
  .ms__row .meter-bar { grid-area: bar; }
  .ms__count { grid-area: count; }
  .ms__done { grid-area: done; }
  .pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 403 / 404 */

.status-code {
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dot);
}

@media (max-width: 40rem) {
  .bar { padding-block: 1.25rem; }
  .set, .sets .set { grid-template-columns: 1fr; gap: 0.25rem; }
  .site-nav ul { gap: 0.125rem; }
  .site-nav a { padding-inline: 0.4375rem; }
  .key { grid-template-columns: 1fr auto; grid-template-areas: "path path" "title go" "desc desc"; }
  .facts > div { grid-template-columns: 6.25rem 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .theme-toggle__track::after { transition: none; }
}
