﻿/* 목업의 색·카드·탭을 실제 앱 전체 화면에서 사용한다. */
.study-active-strip { position:fixed; z-index:40; top:0; left:50%; transform:translateX(-50%); width:min(100%,480px); min-height:44px; display:flex; align-items:center; justify-content:center; background:#0e5160; color:white; font-weight:700; text-decoration:none; }
.view.has-study-active { padding-top:44px; }
:root {
  --bg: #fbf8f2; --card: #fff; --ink: #0f3d47; --ink-2: #44575e;
  --muted: #5d696d; --line: #ebe6dc; --teal: #0e5160; --teal-2: #3bb8b0;
  --coral: #b73935; --green: #2f9256; --gray-bg: #eef0f1; --blue-bg: #e9f3fb;
  --shadow: 0 6px 22px rgba(70, 55, 30, .08);
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(14, 81, 96, .6); outline-offset: 3px; border-radius: 10px; }
h1, h2, p { margin: 0; }
h1, h2 { color: var(--ink); }
h2 { font-size: 18px; line-height: 1.5; }
.app { height: 100%; height: 100dvh; display: flex; flex-direction: column; padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.view { flex: 1; min-height: 0; width: 100%; max-width: 680px; margin-inline: auto; overflow-y: auto; overflow-x: hidden; }
.pad { padding: 20px 20px 28px; max-width: 680px; margin-inline: auto; }
.stack { display: grid; gap: 12px; }
.brandbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; max-width: 680px; margin-inline: auto; }
.brandbar h1 { margin: 0; }
.brand { font-size: 28px; font-weight: 900; letter-spacing: -1px; line-height: 1.3; }
.logo { height: 32px; width: auto; }
.greeting { font-size: 20px; }
.topbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 56px; padding: 0 8px; background: var(--bg); }
.topbar h1 { margin: 0; text-align: center; font-size: 17px; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); }
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.time-card { padding: 22px 18px; border: 1px solid #d9ecea; background: #f3f8f7; }
.time-card h2 { font-size: 22px; }
.sub { font-size: 14.5px; line-height: 1.6; }
.label { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.bold { font-weight: 700; color: var(--ink); }
.section-title { font-size: 16px; margin-top: 6px; }
.empty { padding: 16px; border: 1px dashed #d8dcdc; border-radius: 14px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.garden-empty { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; background: #eef5e7; border: 1px solid #dce8cf; }
.garden-empty .label { grid-row: 2; }
.garden-empty svg { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.btn { width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; text-align: center; }
.btn.teal { background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(14, 81, 96, .16); }
.btn.line { background: var(--card); color: var(--ink); border: 1.5px solid #d8dcdc; }
.btn:disabled { opacity: .55; cursor: default; }
.quick-now { width: auto; justify-self: center; min-height: 44px; font-size: 14px; }
.link { min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.help { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.center { text-align: center; }
.listrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); width: 100%; text-align: left; }
.grow { flex: 1; min-width: 0; }
.listrow .t { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.listrow .s { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.ico-tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-bg); color: #3577c4; flex: none; }
.tabbar { flex: none; width: 100%; max-width: 680px; margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 6px calc(10px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 48px; font-size: 11.5px; color: #6b787d; padding: 4px 0; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; }
.seg { display: flex; background: var(--gray-bg); border-radius: 10px; padding: 4px; }
.seg a { flex: 1; min-width: 0; min-height: 44px; display: grid; place-items: center; padding: 7px 4px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #6b787d; }
.seg a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.diary-tabs { position: sticky; top: 0; z-index: 2; }
.diary-paper { padding: 16px 12px; border: 1px solid #e6e1d6; border-radius: 18px; background: #fffcf6; }
.diary-paper h2 { font-size: 15px; }
.sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 720px; max-height: 88dvh; border: 0; background: var(--bg); color: var(--ink-2); border-radius: 26px 26px 0 0; padding: 14px 20px calc(22px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); overflow-y: auto; }
.sheet[open] { display: grid; gap: 14px; }
.sheet::backdrop { background: rgba(20, 32, 34, .38); }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: #d9d4ca; margin: 0 auto 4px; }
.sheet h2 { font-size: 20px; font-weight: 800; }
.toast { position: fixed; inset-inline: 0; z-index: 40; box-sizing: border-box; display: grid; place-items: center; min-height: 50px; padding: 7px 16px; background: rgba(15, 45, 52, .96); color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; pointer-events: none; }
.toast-flow-space { height: 50px; flex: none; pointer-events: none; }
.age-small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 11px; }
.toast.in-reserve { left: 50%; width: max-content; max-width: calc(100% - 32px); min-height: 0; padding: 11px 16px; border-radius: 14px; transform: translateX(-50%); }
.login-title { font-size: 27px; line-height: 1.4; letter-spacing: -1px; }
.login-title em { color: var(--teal); font-style: normal; }
.login-hero { width: 100%; max-height: 230px; object-fit: cover; border-radius: 20px; }
.auth-choice { display: grid; gap: 3px; }
.auth-button { position: relative; border-radius: 12px; padding: 12px 44px; font-size: 15px; font-weight: 500; }
.auth-button.kakao { background: #fee500; color: rgba(0, 0, 0, .85); }
.auth-button.google { background: #fff; border: 1px solid #747775; color: #1f1f1f; }
.auth-button.apple { background: #e8e8e8; color: #5f6368; }
.auth-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; display: grid; place-items: center; }
.auth-icon svg { display: block; width: 20px; height: 20px; }
.auth-label { width: 100%; text-align: center; }
.auth-status { justify-self: end; padding-right: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.field { display: grid; gap: 9px; font-size: 14px; font-weight: 600; min-width: 0; padding: 0; border: 0; margin: 0; }
.field legend { padding: 0; margin-bottom: 9px; }
.input { width: 100%; min-width: 0; min-height: 50px; border: 1.5px solid #d8dcdc; border-radius: 12px; background: white; padding: 11px 12px; }
.avatar { display: inline-block; flex: none; width: 58px; height: 58px; border-radius: 50%; background-image: url('/demo/crew-avatar.webp'); background-size: 200% 200%; background-repeat: no-repeat; }
.character-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.character-picker label { display: grid; justify-items: center; gap: 6px; min-width: 0; padding: 8px 2px; border: 2px solid transparent; border-radius: 15px; font-size: 12px; background: white; cursor: pointer; }
.character-picker label:has(:checked) { border-color: var(--teal); background: #e9f5f2; }
.character-picker input { accent-color: var(--teal); }
.interest-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-picker label { display: flex; gap: 6px; align-items: center; min-height: 42px; border: 1px solid #d8dcdc; border-radius: 12px; background: white; padding: 7px 10px; cursor: pointer; font-size: 12px; }
.interest-picker label:has(:checked) { border-color: var(--teal); background: #e9f5f2; }
.agree { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; }
.agree input { width: 20px; height: 20px; accent-color: var(--teal); }
.text-link { text-decoration: underline; text-underline-offset: 3px; }
.form-error { color: #b43532; font-size: 13px; line-height: 1.5; }
.form-error:empty { display: none; }
.profile-card, .account-actions { display: flex; align-items: center; gap: 16px; }
.account-actions .btn { width: auto; min-height: 44px; }
.account-actions .link { margin-left: auto; }
.btn.danger { background: #b43532; color: white; }
.btn.coral { background: var(--coral); color: #fff; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.sync-notice { display: grid; gap: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sync-notice .link { justify-self: start; }
.timepick { display: grid; gap: 10px; }
.timepick button { display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; border: 1.5px solid #d8dcdc; border-radius: 16px; background: white; min-height: 76px; }
.timepick button[aria-pressed="true"] { border-color: var(--teal); background: #e9f5f2; }
.timepick .tt { color: var(--ink); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timepick .grow { display: grid; gap: 4px; }
.timepick b { color: var(--ink); font-size: 14px; }
.chips-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-sel button { min-height: 44px; border: 1.5px solid #d8dcdc; border-radius: 12px; padding: 8px 16px; background: white; font-size: 14px; }
.chips-sel button[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); background: #e9f5f2; font-weight: 700; }
.daysel { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.daysel label { display: grid; justify-items: center; align-content: center; gap: 5px; border-radius: 12px; min-height: 64px; background: white; border: 1.5px solid #d8dcdc; font-size: 14px; cursor: pointer; }
.daysel label:has(:checked) { border-color: var(--teal); background: #e9f5f2; }
.daysel input { accent-color: var(--teal); width: 17px; height: 17px; }
.recommend-placeholder { border-radius: 14px; background: #eef0f1; padding: 14px; font-size: 13px; }
.delete-time { color: #b43532; justify-self: start; font-size: 13px; }
/* Rooms reuse the app cards and form fields; long invite links stay inside mobile sheets. */
.room-card { text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.room-roster { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.room-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.room-actions .btn { flex: 1 1 120px; min-width: 0; }
[data-room-form] .row > .field { flex: 1; min-width: 0; }
[data-room-form], [data-room-code], [data-room-search] { min-width: 0; }
[data-room-id] h2 { overflow-wrap: anywhere; }
.room-roster.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.room-roster.compact .card { padding: 10px; min-width: 0; overflow-wrap: anywhere; }
.room-roster.compact .card:first-child { grid-column: 1 / -1; }
.room-roster.compact .room-actions .btn { padding: 8px 2px; font-size: 12px; }
.room-roster .avatar { width: 56px; height: 56px; }

/* The dial follows the monotonic server clock; ring motion needs no rerender. */
.session-panel { padding-block: 12px; }
.session-dial { --on:#ff5a2c; --glow:rgba(255,90,44,.35); box-sizing:border-box; width:min(280px,78%); margin:6px auto 0; padding:12px; border-radius:34px; background:linear-gradient(160deg,#fff,#eeeae2); box-shadow:0 10px 28px rgba(40,30,10,.16),inset 0 -3px 0 rgba(0,0,0,.05); }
.session-dial[data-phase="rest"] { --on:#f2b632; --glow:rgba(242,182,50,.35); }
.session-dial[data-phase="waiting"], .session-dial[data-phase="countdown"] { --on:#6f8fb8; --glow:rgba(111,143,184,.3); }
.session-dial-screen { position:relative; aspect-ratio:1; border-radius:24px; background:radial-gradient(circle at 50% 40%,#1d1f22,#0d0e10); overflow:hidden; }
.session-dial-ring { position:absolute; inset:4%; width:92%; height:92%; }
.session-segment { fill:#26282c; transition:fill .4s,opacity .4s; }
.session-segment.on, .session-segment[style] { fill:var(--on); filter:drop-shadow(0 0 2px var(--glow)); }
.session-dial-label { fill:#d9d9d9; font:600 9.5px ui-monospace,monospace; text-anchor:middle; dominant-baseline:central; }
.session-dial-mid { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:2px; pointer-events:none; }
.session-dial strong { font:400 clamp(34px,11vw,46px) ui-monospace,monospace; color:#f4f4f4; letter-spacing:1px; text-shadow:0 0 10px rgba(255,255,255,.25); line-height:1; font-variant-numeric:tabular-nums; }
.session-dial span { font-size:11px; color:#a9a9a9; font-weight:600; margin-top:2px; text-align:center; }
.session-dial[data-phase="countdown"] strong { font-size:70px; }
@media (prefers-reduced-motion:reduce) { .session-segment { transition:none; } }
.chips-sel button { min-height: 40px; border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.signup-page { max-width: 680px; padding-top: 8px; }
.signup-card { width: min(100%, 520px); margin-inline: auto; display: grid; gap: 4px; padding: 10px 16px 12px; border: 1px solid #e8e4dc; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.signup-account { margin: 0; padding: 4px 6px; }
.signup-title { margin: 0; font-size: 21px; line-height: 1.35; }
.signup-progress { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 4px 8px; border-radius: 12px; background: #f3f6f4; color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; }
.signup-progress i { color: #879395; font-style: normal; }
.signup-form { gap: 4px; }
.signup-form .field { gap: 3px; font-size: 13px; }
.signup-form .field legend { margin-bottom: 2px; }
.signup-form .input { min-height: 38px; padding-block: 6px; }
.signup-form .character-picker { gap: 5px; }
.signup-form .character-picker label { gap: 3px; padding: 5px 2px; }
.signup-form .character-picker .avatar { width: 34px; height: 34px; }
.signup-form .nickname-suggestions button { min-height: 28px; padding: 3px 8px; }
.signup-form .help { margin: 0; line-height: 1.25; }
.signup-interest-picker { max-height: 56px; overflow-y: auto; gap: 4px; }
.signup-interest-picker label { min-height: 28px; padding: 3px 6px; font-size: 11px; }
.signup-form .agree { min-height: 34px; }
.signup-form .btn { min-height: 40px; }
.privacy-page { gap: 14px; }
.privacy-legend, .privacy-badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: flex-end; }
.privacy-badge { display: inline-flex; min-height: 26px; align-items: center; border-radius: 999px; padding: 4px 9px; background: #eef0f1; color: #344e54; font-size: 11px; font-weight: 700; white-space: nowrap; }
.privacy-badge.private { background: #edf3ec; color: #2d6844; }
.privacy-badge.friends { background: #e8f2f5; color: #22536a; }
.privacy-badge.public { background: #f7eee2; color: #79531e; }
.privacy-card { gap: 14px; }
.privacy-row { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.privacy-row > .row { gap: 8px; }
.privacy-row .label { margin: 0; }
.privacy-row .link { min-height: 30px; justify-self: start; }
.privacy-lock { width: fit-content; border: 1px solid #dce8df; border-radius: 999px; padding: 6px 10px; background: #edf5ef; color: #285d3b; font-size: 12px; font-weight: 700; }
.privacy-setting { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #f6f8f7; }
.privacy-toggle { display: flex; align-items: flex-start; gap: 10px; }
.privacy-toggle input, .privacy-option input { width: 18px; height: 18px; accent-color: var(--teal); }
.privacy-toggle span { display: grid; gap: 3px; }
.privacy-toggle small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.privacy-option { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 1px solid #d8dcdc; border-radius: 999px; background: white; font-size: 13px; }
.today-dday { align-self: flex-start; min-height: 36px; padding: 7px 13px; font-weight: 700; }
.yesterday-next { border: 1px solid #dce8df; background: #f0f6ef; }
.session-expressions { display:flex; flex-wrap:wrap; gap:8px; }
.session-expressions .btn { flex:1 1 140px; font-size:13px; padding:10px; }
.session-panel [hidden] { display:none; }
