/* 띤뚜 비서실 — 5-room office map */
:root {
  --cream: #f7f2e8;
  --cream-deep: #efe6d6;
  --card: #fffdf8;
  --ink: #2b332e;
  --ink-2: #5d6a62;
  --ink-3: #94a09a;
  --mint: #63c9a8;
  --mint-deep: #2f9e7e;
  --mint-soft: #ddf3ea;
  --amber: #d99a33;
  --amber-soft: #fbf0db;
  --line: rgba(43, 51, 46, 0.08);
  --line-soft: rgba(43, 51, 46, 0.055);
  --shadow-1: 0 1px 2px rgba(70, 58, 38, 0.04), 0 10px 26px -20px rgba(70, 58, 38, 0.45);
  --shadow-2: 0 2px 4px rgba(70, 58, 38, 0.05), 0 22px 46px -32px rgba(70, 58, 38, 0.55);
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% -8%, #fffdf6 0%, rgba(255, 253, 246, 0) 62%),
    radial-gradient(90% 50% at 100% 100%, #f3ead9 0%, rgba(243, 234, 217, 0) 70%),
    var(--cream);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable",
    Pretendard, "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "Helvetica Neue", Arial,
    system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }
body.locked { overflow: hidden; }
body.sheet-open { overflow: hidden; }

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 16px) 16px calc(104px + var(--safe-b));
}

/* ── header ─────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 14px;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(160deg, #8fdcbf, #4dbd98);
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 8px 18px -10px rgba(47, 158, 126, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(-3deg);
}

.brand-text { min-width: 0; }
.brand-text h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.brand-text p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today { text-align: right; flex: none; }
.top-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.lock-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.85);
  color: var(--ink-2);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease;
}
.lock-btn:active { transform: scale(0.94); background: #fffdf8; }
.today b {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.today span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ── map ────────────────────────────── */
.map {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #fbf7ef;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-2);
}
.map img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(120, 100, 70, 0.06), inset 0 -30px 50px -40px rgba(90, 70, 40, 0.35);
  pointer-events: none;
}

.pins { position: absolute; inset: 0; }

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(43, 51, 46, 0.09);
  background: rgba(255, 253, 248, 0.95);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 16px -10px rgba(70, 55, 35, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: pinIn 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
  animation-delay: var(--d, 0s);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.pin:active { transform: translate(-50%, -50%) scale(0.94); }
.pin-emoji { font-size: 11px; line-height: 1; }
.pin-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 2px rgba(99, 201, 168, 0.22);
}
.pin.wait .pin-dot {
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(217, 154, 51, 0.2);
}
.pin.is-active {
  background: var(--ink);
  color: #fbf6ea;
  border-color: var(--ink);
}
@keyframes pinIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 7px)) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 360px) {
  .pin { font-size: 9.5px; padding: 3px 6px 3px 5px; gap: 3px; }
  .pin-emoji { font-size: 10px; }
}

.map-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.hint-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(99, 201, 168, 0.16);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.quick {
  display: block;
  padding: 11px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease;
}
.quick:active { transform: scale(0.97); }
.quick-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.quick-value {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.quick-value small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); margin-left: 2px; }

.home-note {
  margin-top: 14px;
  padding: 13px 15px 14px;
  border-radius: 18px;
  border: 1px solid rgba(99, 201, 168, 0.26);
  background: linear-gradient(180deg, rgba(221, 243, 234, 0.72), rgba(255, 253, 248, 0.92));
}
.home-note-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--mint-deep);
  letter-spacing: 0.01em;
  margin-bottom: 5px;
}
.home-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  font-weight: 600;
  color: #33443c;
  letter-spacing: -0.025em;
}

/* ── lock screen ────────────────────── */
.lock {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-t) + 26px) 22px calc(22px + var(--safe-b));
  background:
    radial-gradient(90% 55% at 50% 0%, #fffdf6 0%, rgba(255, 253, 246, 0) 62%),
    var(--cream);
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.lock.is-off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lock-inner {
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 34px -18px rgba(70, 55, 35, 0.65), 0 0 0 1px rgba(43, 51, 46, 0.06);
  background: #f4ecdd;
}
.lock-brand { display: flex; flex-direction: column; align-items: center; }
.lock-brand h1 {
  margin: 15px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.lock-sub {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.lock-dots { display: flex; gap: 15px; margin: 28px 0 4px; }
.lock-dots span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #d5cebd;
  background: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.lock-dots span.on { background: var(--ink); border-color: var(--ink); transform: scale(1.06); }
.lock-dots.ok span { background: var(--mint-deep); border-color: var(--mint-deep); }
.lock-dots.error span { background: #d9736a; border-color: #d9736a; }
.lock-dots.error { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.lock-error {
  margin: 0;
  height: 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: #c2645a;
  opacity: 0;
  transition: opacity 0.2s ease;
  letter-spacing: -0.01em;
}
.lock-error.on { opacity: 1; }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 13px 23px;
  justify-content: center;
  margin-top: 16px;
}
.keypad button {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(43, 51, 46, 0.07);
  background: rgba(255, 253, 248, 0.95);
  color: var(--ink);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 6px 14px -11px rgba(70, 55, 35, 0.55);
  transition: transform 0.1s ease, background 0.15s ease;
}
.keypad button:active { transform: scale(0.93); background: var(--mint-soft); }
.keypad .key-del { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.keypad-empty { pointer-events: none; }
.keypad.busy { pointer-events: none; opacity: 0.65; }

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  cursor: pointer;
}
.remember input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.remember-box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #d8d2c4;
  background: #fffdf8;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.remember-box svg { opacity: 0; transform: scale(0.6); transition: opacity 0.16s ease, transform 0.16s ease; }
.remember input:checked + .remember-box { background: var(--mint); border-color: var(--mint); }
.remember input:checked + .remember-box svg { opacity: 1; transform: scale(1); }
.remember input:focus-visible + .remember-box { outline: 2px solid var(--mint-deep); outline-offset: 2px; }

@media (max-height: 730px) {
  .lock-icon { width: 64px; height: 64px; border-radius: 19px; }
  .lock-brand h1 { margin-top: 12px; font-size: 19px; }
  .lock-dots { margin: 20px 0 2px; }
  .keypad { grid-template-columns: repeat(3, 62px); gap: 10px 20px; margin-top: 10px; }
  .keypad button { width: 62px; height: 62px; font-size: 22px; }
  .remember { margin-top: 18px; }
}

/* ── footer ─────────────────────────── */
.foot {
  margin-top: 22px;
  padding: 0 4px;
  text-align: center;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}
.foot p { margin: 0; }
.foot-sub { margin-top: 3px !important; font-size: 10.5px; opacity: 0.85; }
.foot b { color: var(--ink-2); font-weight: 700; }

/* ── bottom nav ─────────────────────── */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 80;
  width: min(calc(100% - 20px), 456px);
  display: flex;
  gap: 2px;
  padding: 7px 6px;
  background: rgba(255, 253, 248, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(43, 51, 46, 0.07);
  border-radius: 22px;
  box-shadow: 0 18px 40px -24px rgba(70, 55, 35, 0.55), 0 2px 6px rgba(70, 55, 35, 0.04);
}
.nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px 5px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-emoji { font-size: 16px; line-height: 1.1; filter: saturate(0.85); }
.nav-item.is-active { color: var(--mint-deep); background: rgba(99, 201, 168, 0.13); }
.nav-item.is-active .nav-emoji { filter: none; }

/* ── sheet ──────────────────────────── */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(46, 38, 26, 0.34);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.scrim.is-open { opacity: 1; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(88px + var(--safe-b));
  z-index: 70;
  width: min(calc(100% - 16px), 540px);
  margin: 0 auto;
  max-height: calc(86vh - 88px);
  max-height: calc(86dvh - 88px);
  display: flex;
  flex-direction: column;
  background: #fffcf6;
  border-radius: 26px;
  box-shadow: 0 -24px 60px -26px rgba(50, 40, 25, 0.5);
  transform: translateY(calc(100% + 110px));
  visibility: hidden;
  transition: transform 0.36s cubic-bezier(0.22, 0.8, 0.26, 1), visibility 0s linear 0.36s;
}
.sheet.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.36s cubic-bezier(0.22, 0.8, 0.26, 1), visibility 0s;
}

.sheet-grip {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #e2dbcc;
  margin: 9px auto 2px;
  flex: none;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px 13px;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.sheet-emoji {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: var(--mint-soft);
  font-size: 19px;
}
.sheet-title-wrap { min-width: 0; flex: 1; }
.sheet-title-wrap h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.sheet-title-wrap p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #f3eee2;
  color: var(--ink-2);
  cursor: pointer;
}
.sheet-close:active { transform: scale(0.93); }

.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(20px + var(--safe-b));
  overscroll-behavior: contain;
}

/* ── room blocks ────────────────────── */
.block + .block { margin-top: 20px; }
.block-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.block-title span { font-weight: 600; color: #b3bcb6; font-size: 10.5px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.metric {
  padding: 12px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.metric-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.metric-value {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.metric.up .metric-value { color: var(--mint-deep); }
.metric:last-child:nth-child(odd) { grid-column: span 2; }
.metric-note {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  overflow: hidden;
}
.rows > li + li { border-top: 1px solid var(--line-soft); }
.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
}
.row-main { flex: 1; min-width: 0; }
.row-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.row-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.badge {
  flex: none;
  align-self: center;
  padding: 3px 7px;
  border-radius: 7px;
  background: #f3efe4;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.badge.live { background: var(--mint-soft); color: var(--mint-deep); }
.badge.wait { background: var(--amber-soft); color: var(--amber); }

/* checklist */
.tasks { list-style: none; margin: 0; padding: 2px 0; overflow: hidden; }
.tasks > li + li { border-top: 1px solid var(--line-soft); }
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
}
.task-row:active { background: rgba(99, 201, 168, 0.06); }
.task-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.task-box {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid #d8d2c4;
  background: #fffdf8;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.task-box svg { opacity: 0; transform: scale(0.6); transition: opacity 0.15s ease, transform 0.18s ease; }
input:checked + .task-box { background: var(--mint); border-color: var(--mint); }
input:checked + .task-box svg { opacity: 1; transform: scale(1); }
input:focus-visible + .task-box { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.task-row:active .task-box { transform: scale(0.92); }

.task-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.task-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
  transition: color 0.15s ease;
}
.task-sub { font-size: 11px; color: var(--ink-3); letter-spacing: -0.01em; }
input:checked ~ .task-main .task-title {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: rgba(148, 160, 154, 0.7);
}
.task-time {
  align-self: flex-start;
  flex: none;
  min-width: 47px;
  padding: 2px 6px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  letter-spacing: -0.03em;
}

/* links */
.links { list-style: none; margin: 0; padding: 2px 0; overflow: hidden; }
.links > li + li { border-top: 1px solid var(--line-soft); }
.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.link-row:active { background: rgba(99, 201, 168, 0.06); }
.link-main { flex: 1; min-width: 0; }
.link-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.link-desc {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
  word-break: break-all;
  line-height: 1.45;
}
.link-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--mint-deep);
  letter-spacing: -0.02em;
  max-width: 42%;
  text-align: right;
}
.link-go::after { content: "→"; }
.link-go.plain { color: var(--ink-3); }
.link-go.plain::after { content: ""; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-item {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* note */
.note {
  margin: 0;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(99, 201, 168, 0.28);
  background: linear-gradient(180deg, rgba(221, 243, 234, 0.75), rgba(255, 253, 248, 0.9));
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  color: #33443c;
  letter-spacing: -0.02em;
}
.greeting {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #313a34;
}

/* invite */
.invite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
}
.invite-main { flex: 1; min-width: 0; }
.invite-url {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  word-break: break-all;
  margin-top: 3px;
  letter-spacing: -0.01em;
}
.invite-note {
  margin: 8px 3px 0;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.copy-btn {
  flex: none;
  height: 34px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fbf6ea;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.copy-btn:active { transform: scale(0.95); }
.copy-btn.done { background: var(--mint-deep); }

/* timer */
.timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 15px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(99, 201, 168, 0.1), rgba(99, 201, 168, 0) 68%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
}
.ring-wrap { position: relative; width: 150px; height: 150px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #efe8da; stroke-width: 10; }
.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s linear, stroke 0.3s ease;
}
.timer.is-done .ring-fg { stroke: var(--amber); }
.timer.is-running .ring-fg { filter: drop-shadow(0 0 6px rgba(99, 201, 168, 0.5)); }
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.timer-time {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.timer-state { font-size: 10.5px; font-weight: 800; color: var(--ink-3); }
.timer.is-running .timer-state { color: var(--mint-deep); }
.timer.is-done .timer-state { color: var(--amber); }

.timer-buttons { display: flex; gap: 8px; margin-top: 13px; width: 100%; max-width: 260px; }
.btn {
  flex: 1;
  height: 42px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: #fbf6ea; }
.btn-ghost { flex: 0 0 88px; background: transparent; border-color: var(--line); color: var(--ink-2); }
.timer-foot {
  margin: 10px 0 0;
  font-size: 10px;
  color: var(--ink-3);
  text-align: center;
  min-height: 13px;
  letter-spacing: -0.01em;
}

/* ── wide screens ───────────────────── */
@media (min-width: 760px) {
  .app { max-width: 560px; padding-top: calc(var(--safe-t) + 26px); }
  .map { border-radius: 30px; }
  .pin { font-size: 11.5px; padding: 5px 10px 5px 7px; }
  .pin-emoji { font-size: 12px; }
  .bottom-nav { width: 540px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
