/* =====================================================================
   JUST PLAN — Apple 톤 디자인
   ===================================================================== */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);

  --accent: #0071e3;         /* Apple blue */
  --exam: #ff9f0a;           /* 지필 */
  --perf: #30b0c7;           /* 수행 */
  --warn: #ff9500;           /* 몰림 */
  --warn-bg: #fff4e5;
  --warn-ink: #b25e00;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.05);
  --font: "Pretendard Variable", -apple-system, BlinkMacSystemFont, "SF Pro KR",
          system-ui, "Apple SD Gothic Neo", sans-serif;
}

/* 다크 팔레트 — 시스템 다크(라이트 강제 아님) + 수동 다크(data-theme=dark) 둘 다 적용 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #161618;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #8e8e93;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #2997ff;
    --warn-bg: rgba(255, 149, 0, 0.14);
    --warn-ink: #ffb14d;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #161618;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #8e8e93;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #2997ff;
  --warn-bg: rgba(255, 149, 0, 0.14);
  --warn-ink: #ffb14d;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* .btn 등의 display 규칙이 hidden 속성을 덮지 않도록 */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
.wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(48% 60% at 20% 12%, rgba(0,113,227,.22), transparent 62%),
    radial-gradient(46% 60% at 82% 8%, rgba(48,176,199,.20), transparent 60%),
    radial-gradient(60% 70% at 50% -8%, rgba(255,159,10,.10), transparent 60%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; max-width: 720px; }
.badge {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(46px, 11vw, 82px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
}
.hero-title .mark {
  background: linear-gradient(120deg, var(--accent), var(--perf));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin-top: 14px;
  font-size: clamp(17px, 4vw, 21px);
  color: var(--ink-2);
  font-weight: 600; letter-spacing: -0.01em;
}
.hero-copy {
  margin: 18px auto 0; max-width: 720px;
  font-size: clamp(14.5px, 3.4vw, 16.5px); line-height: 1.65;
  color: var(--ink-2);
}
/* 한글 단어가 줄 끝에서 쪼개지지 않도록 */
.hero-copy, .hero-sub, .section-desc, .feature-card p, .foot-principle { word-break: keep-all; }

/* =====================================================================
   월별 달력
   ===================================================================== */
.cal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer;
  display: grid; place-items: center; line-height: 1; transition: .15s;
}
.cal-btn:hover:not(:disabled) { background: var(--surface-2); }
.cal-btn:disabled { opacity: .3; cursor: default; }
.cal-month { font-size: 15px; font-weight: 700; min-width: 96px; text-align: center; letter-spacing: -0.01em; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 2px 0 6px; }
.cal-wd.sun { color: #ff453a; }
.cal-wd.sat { color: #0a84ff; }
.cal-cell {
  min-height: 84px; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 3px; overflow: hidden;
}
.cal-cell.blank { background: transparent; border: 0; }
.cal-cell.hot { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 34%, transparent); }
.cal-cell[data-goto] { cursor: pointer; }
.cal-cell[data-goto]:hover { border-color: var(--accent); }
.cal-date { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.cal-cell.sun .cal-date { color: #ff453a; }
.cal-cell.sat .cal-date { color: #0a84ff; }
.cal-ev {
  font-size: 11px; font-weight: 700; color: #fff; border-radius: 5px;
  padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-ev.perf { background: var(--perf); }
.cal-ev.exam { background: var(--exam); }
.cal-more { font-size: 10.5px; color: var(--ink-3); font-weight: 600; padding-left: 2px; }
.seg button.locked { cursor: default; }

@media (max-width: 560px) {
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 58px; padding: 4px; border-radius: 8px; }
  .cal-date { font-size: 11px; }
  /* 좁은 화면에선 과목명 대신 점으로 */
  .cal-ev { font-size: 0; padding: 0; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
  .cal-cell { flex-direction: column; }
  .cal-cell > .cal-ev { align-self: flex-start; }
}
.hero-copy b { color: var(--ink); font-weight: 700; }
.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 28px;
}
.br-m { display: none; }
@media (max-width: 560px) { .br-m { display: inline; } }

/* ── Stats ────────────────────────────────────────────────────────── */
.stats {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
}
.stat {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 24px; min-width: 116px;
  box-shadow: var(--shadow);
}
.stat .num { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat .num.warn { color: var(--warn); }
.stat .lbl { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ── Controls ─────────────────────────────────────────────────────── */
.controls {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  margin: 34px 0 22px;
}
.seg {
  display: inline-flex; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.seg button {
  border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  transition: .18s;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.chips { display: inline-flex; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: .18s;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip.perf .dot { background: var(--perf); }
.chip.exam .dot { background: var(--exam); }
.chip.off { opacity: .42; }

/* ── Panels ───────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 22px;
}
.panel-head { margin-bottom: 18px; }
.panel-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.panel-desc { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.warn-ink { color: var(--warn); }

/* ── Overview (주간 막대) ─────────────────────────────────────────── */
.overview { display: flex; flex-direction: column; gap: 10px; }
.wk {
  display: grid; grid-template-columns: 132px 1fr auto;
  align-items: center; gap: 14px;
  padding: 8px; border-radius: var(--radius-sm);
  cursor: pointer; text-align: left; border: 0;
  background: transparent; font: inherit; color: inherit; width: 100%;
  transition: background .15s;
}
.wk:hover { background: var(--surface-2); }
.wk-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.wk-label small { display: block; color: var(--ink-3); font-weight: 500; font-size: 11.5px; }
.wk-bar { height: 22px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.wk-bar span {
  display: block; height: 100%; border-radius: 7px;
  background: linear-gradient(90deg, var(--perf), var(--accent));
  min-width: 6px; transition: width .4s ease;
}
.wk.hot .wk-bar span { background: linear-gradient(90deg, var(--warn), var(--exam)); }
.wk-count { font-size: 14px; font-weight: 700; min-width: 58px; text-align: right; }
.wk-count .pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--warn-ink); background: var(--warn-bg);
  padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px;
}

/* ── Timeline ─────────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 26px; }
.wk-group { scroll-margin-top: 16px; }
.wk-group-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.wk-group-head h3 { font-size: 15px; font-weight: 700; }
.wk-group-head .range { font-size: 13px; color: var(--ink-3); }
.wk-group.hot .wk-group-head h3 { color: var(--warn); }
.wk-group.hot .flag {
  font-size: 11.5px; font-weight: 700; color: var(--warn-ink);
  background: var(--warn-bg); padding: 3px 9px; border-radius: 999px; margin-left: auto;
}
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 62px 1fr; gap: 14px;
  align-items: center;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
}
.row .date { text-align: center; }
.row .date .d { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.row .date .w { font-size: 11px; color: var(--ink-3); }
.row .body { min-width: 0; }
.row .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: #fff;
}
.tag.perf { background: var(--perf); }
.tag.exam { background: var(--exam); }
.row .subj { font-size: 15px; font-weight: 700; }
.row .title { font-size: 13px; color: var(--ink-2); }
.row .range { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.grade-tag { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; font-size: 14px; }

/* ── Share ────────────────────────────────────────────────────────── */
.share-body { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr-box {
  width: 96px; height: 96px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  display: grid; place-items: center; color: var(--ink-3);
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.qr-box img { width: 100%; height: 100%; border-radius: inherit; }
.share-info { min-width: 0; }
.share-label { font-size: 12.5px; color: var(--ink-3); }
.share-url {
  display: block; font-size: 16px; font-weight: 600; color: var(--accent);
  text-decoration: none; word-break: break-all; margin: 2px 0 12px;
}
.copy-btn {
  border: 0; background: var(--accent); color: #fff; font: inherit;
  font-weight: 600; font-size: 14px; padding: 9px 18px;
  border-radius: 999px; cursor: pointer; transition: .15s;
}
.copy-btn:active { transform: scale(.97); }
.copy-btn.done { background: var(--perf); }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot { padding: 36px 0 60px; text-align: center; }
.foot-principle { font-size: 13.5px; color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.foot-principle b { color: var(--ink); font-weight: 700; }
.foot-meta { font-size: 12px; color: var(--ink-3); margin-top: 12px; }

@media (max-width: 480px) {
  .wk { grid-template-columns: 104px 1fr auto; gap: 10px; }
  .wk-count { min-width: 44px; }
  .controls { flex-direction: column; align-items: stretch; }
  .controls-right { justify-content: space-between; }
  .chips { justify-content: center; }
  .seg { justify-content: center; }
  .stats { gap: 8px; }
  .stat { flex: 1; min-width: 0; padding: 14px 8px; text-align: center; }
  .stat .num { font-size: 26px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  /* 상단바: 키우되 좁은 화면에선 넘치지 않게 */
  .topbar-in { height: 58px; }
  .topbar-brand { font-size: 20px; }
  .topbar-acct { gap: 8px; }
  .topbar-acct .btn { font-size: 14px; padding: 8px 14px; }
  .acct-name { font-size: 14.5px; }
}

/* ── Top bar (계정) ───────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; max-width: 100%; padding: 0 clamp(18px, 4vw, 56px); }
.topbar-brand { font-weight: 800; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; font-size: 23px; }
.topbar-acct { display: flex; align-items: center; gap: 12px; }
.topbar-acct .btn { font-size: 15.5px; padding: 10px 20px; }
.acct-name { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
/* 학생·학생회·교사 배지 모두 동일한 기본(회색) 알약 디자인 (flex 아이템으로 안 접히게 inline-block) */
.role-badge {
  display: inline-block; vertical-align: middle; margin-left: 7px;
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.count {
  display: inline-block; min-width: 18px; text-align: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--warn);
  padding: 1px 6px; border-radius: 999px; margin-left: 4px;
}

/* 계정 드롭다운 메뉴 (이름 클릭 → 비밀번호 변경 / 로그아웃) */
.acct-menu-wrap { position: relative; }
.acct-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--ink);
  padding: 6px 8px; border-radius: 10px; transition: background .15s;
}
.acct-trigger:hover { background: var(--surface-2); }
.acct-trigger .caret { font-size: 11px; color: var(--ink-3); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
  min-width: 172px; z-index: 40; flex-direction: column; gap: 2px;
  display: flex; animation: pop .16s cubic-bezier(.2,.8,.2,1);
}
.acct-menu-item {
  text-align: left; background: transparent; border: 0; font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--ink); padding: 10px 12px; border-radius: 9px; cursor: pointer;
}
.acct-menu-item:hover { background: var(--surface-2); }
.acct-menu-item.danger { color: #ff3b30; }

/* 설정 톱니 버튼 + 계정 슬롯 */
.acct-slot { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; transition: .15s; flex-shrink: 0; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* 설정 모달 */
.settings { display: flex; flex-direction: column; gap: 22px; }
.set-group { display: flex; flex-direction: column; gap: 10px; }
.set-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg-opts { display: flex; gap: 8px; }
.seg-opt {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.seg-opt.on { border-color: var(--accent); color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.seg-emoji { font-size: 22px; line-height: 1; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); padding: 0; }
.swatch.on { border-color: var(--ink); }
.swatch-reset { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.swatch-reset.on { border-color: var(--ink); color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  border: 0; font: inherit; font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: .15s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; justify-content: center; padding: 12px; font-size: 15px; margin-top: 4px; }
.btn-danger { background: transparent; color: #ff3b30; border: 1px solid color-mix(in srgb, #ff3b30 40%, transparent); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.controls-right { display: flex; align-items: center; gap: 12px; }

/* ── Modal ────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 24px; animation: pop .2s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.modal-x { border: 0; background: transparent; color: var(--ink-3); font-size: 18px; cursor: pointer; padding: 4px; line-height: 1; }

/* ── Form ─────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > span em { color: var(--ink-3); font-weight: 500; font-style: normal; }
.field input, .field select {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 11px 13px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: none; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.form-note b { color: var(--ink-2); }
.form-err {
  font-size: 13px; color: #ff3b30; background: color-mix(in srgb, #ff3b30 10%, transparent);
  padding: 9px 12px; border-radius: 9px;
}
.form-alt { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }
.linklike { border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: 80; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--perf); color: #fff; }

@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* ── Admin ────────────────────────────────────────────────────────── */
.wrap.admin { padding-top: 30px; }   /* 관리 페이지 컨테이너 전용 (역할 배지 .role-badge.admin 과 충돌 방지) */
.admin-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.admin-sub { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 26px; }
.admin-sub a { color: var(--accent); }
.a-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap;
}
.a-main { font-size: 14.5px; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a-main b { font-weight: 700; }
.a-meta { color: var(--ink-3); font-size: 13px; }
.a-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.a-by { font-size: 12.5px; color: var(--ink-3); margin-right: 2px; }
.role-sel {
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 6px 10px; cursor: pointer;
}
#pending-count.count, #pending .count { vertical-align: 2px; }

.init-badge {
  font-size: 11px; font-weight: 700; color: var(--warn-ink);
  background: var(--warn-bg); padding: 2px 8px; border-radius: 999px; margin-left: 6px;
}
.roster { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.roster > summary {
  cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px;
  color: var(--accent); background: var(--surface-2); list-style: none;
}
.roster > summary::-webkit-details-marker { display: none; }
.roster-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.roster-text {
  font: inherit; font-size: 14px; color: var(--ink); line-height: 1.6;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 11px 13px; width: 100%; resize: vertical;
}
.roster-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.roster-body .btn { align-self: flex-start; }

.form-note.callout { background: var(--warn-bg); color: var(--warn-ink); padding: 12px 14px; border-radius: 10px; line-height: 1.55; }
.form-note.callout b { color: var(--warn-ink); }
.linklike.center { display: block; width: 100%; text-align: center; margin-top: 8px; }

/* =====================================================================
   홈페이지 레이아웃 — 섹션 리듬 · 히어로 CTA · 소개 카드 · 스크롤 등장
   ===================================================================== */

/* 브랜드 마크 점 */
.brand-dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--perf));
  margin-right: 9px; vertical-align: 1px;
}
.topbar-brand { display: inline-flex; align-items: center; }
.brand-logo { width: 28px; height: 28px; margin-right: 10px; flex-shrink: 0; object-fit: contain; }
.foot-brand .brand-logo { width: 23px; height: 23px; }
@media (max-width: 480px) { .brand-logo { width: 24px; height: 24px; margin-right: 8px; } }

/* 스크롤 시 상단바 그림자 */
.topbar { transition: box-shadow .2s, border-color .2s; }
.topbar.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,.06); }

/* 큰 버튼 */
.btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: 14px; }

/* 섹션 공통 */
.section { padding: 76px 0; }
.section.features { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-section { padding-top: 76px; padding-bottom: 40px; }
.section-head { margin-bottom: 30px; }
.section-head.center { text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 5vw, 33px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.section-desc { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* 소개 카드 3열 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 16px 40px rgba(0,0,0,.08); }
.feat-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 18px;
}
.feat-ic svg { width: 24px; height: 24px; }
.ic-blue  { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ic-amber { background: var(--warn-bg); color: var(--warn); }
.ic-green { background: color-mix(in srgb, var(--perf) 16%, transparent); color: var(--perf); }
.feature-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature-card p { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.feature-card p b { color: var(--ink); font-weight: 700; }

/* 공유 카드 */
.share-section { padding: 20px 0 72px; }
.share-card {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
.share-text { flex: 1; min-width: 240px; }
.share-text .eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.share-text h2 { font-size: clamp(20px, 4vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }

/* 푸터 브랜드 */
.foot { border-top: 1px solid var(--line); }
.foot-brand { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; display: inline-flex; align-items: center; }

/* (스크롤 등장 애니메이션 제거 — 항상 표시) */
.reveal { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 48px; }
  .share-card { padding: 24px; gap: 22px; }
  .share-card .qr-box { margin: 0 auto; }
}
