:root {
  --primary: #0a0a0a;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --ink: #181818;
  --ink-strong: #000000;
  --charcoal: #333438;
  --slate: #4d5058;
  --steel: #6b6f78;
  --stone: #8c9099;
  --muted: #a6a9b0;
  --canvas: #ffffff;
  --surface: #f4f5f7;
  --surface-soft: #fafafb;
  --hairline: #e4e6ea;
  --hairline-soft: #eff0f2;

  --brand-coral: #ff5a36;
  --brand-magenta: #e5307f;
  --brand-blue: #1d5cf5;
  --brand-blue-deep: #0f46d1;
  --brand-blue-700: #1d4ed8;
  --brand-cyan: #3cc2ee;
  --brand-blue-200: #dfe8ff;
  --brand-purple: #7340ec;

  --success-bg: #e5f6ea;
  --success-text: #157a3c;
  --error: #d45656;

  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --r-xxl: 20px; --r-xxxl: 24px; --r-hero: 32px; --r-full: 9999px;

  --shadow-1: rgba(0, 0, 0, 0.04) 0 1px 2px 0;
  --shadow-2: rgba(0, 0, 0, 0.08) 0 4px 6px 0;
  --shadow-4: rgba(36, 36, 36, 0.08) 0 12px 16px -4px;

  --font: "DM Sans", Inter, "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: 160ms ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------ chrome */
.promo-banner {
  background: var(--primary); color: var(--on-primary);
  font-size: 14px; font-weight: 500; text-align: center;
  padding: 12px 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 대시보드에서는 배너 줄이 탭·동기화 바가 된다 */
.promo-banner.banner-nav {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 0 32px; min-height: 48px; overflow: visible;
  position: sticky; top: 64px; z-index: 19; /* 계정 줄(64px) 바로 아래에 붙어 함께 고정 */
}
.bn-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.bn-tabs::-webkit-scrollbar { display: none; }
.bn-tab {
  color: rgba(255,255,255,.62); text-decoration: none; font-weight: 500;
  padding: 13px 14px 11px; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color var(--ease);
}
.bn-tab.active { color: var(--on-primary); border-bottom-color: var(--on-primary); }
.bn-count { font-size: 12px; font-weight: 600; padding: 0 6px; border-radius: var(--r-full); background: rgba(255,255,255,.18); }
.bn-sync { display: flex; align-items: center; gap: 12px; flex: none; }
.bn-status { color: rgba(255,255,255,.62); font-size: 13px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.bn-btn {
  background: var(--canvas); color: var(--ink); border: 0; border-radius: var(--r-full);
  padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.bn-btn:active { background: var(--surface); }
.bn-ghost { background: transparent; color: var(--on-primary); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.bn-ghost:active { background: rgba(255,255,255,.12); }
.bn-btn:disabled { background: rgba(255,255,255,.3); color: rgba(255,255,255,.7); cursor: default; }
.privacy-note { margin: 32px 0 0; font-size: 12px; color: var(--stone); text-align: center; }
.topnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 32px;
  background: var(--canvas); border-bottom: 1px solid var(--hairline-soft);
}
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; text-decoration: none; }
.account-tabs { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.account-tabs::-webkit-scrollbar { display: none; }
.topnav-right { display: flex; gap: 8px; }

main { max-width: 1280px; margin: 0 auto; padding: 32px 32px 96px; }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-full); padding: 11px 24px;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  text-decoration: none;
}
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:active { background: var(--charcoal); }
.btn-primary:disabled { background: var(--hairline); color: var(--muted); cursor: default; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-tertiary { background: var(--canvas); color: var(--ink); border-color: var(--hairline); }
.btn-tertiary:disabled, .btn-secondary:disabled { color: var(--muted); border-color: var(--hairline); cursor: default; }
.btn-link { background: none; border: 0; padding: 8px 0; font-weight: 500; cursor: pointer; }
.btn-link:active { text-decoration: underline; }
.btn-danger { background: var(--canvas); color: var(--error); border-color: var(--hairline); }
.btn-icon {
  width: 36px; height: 36px; padding: 0; border-radius: var(--r-full);
  background: var(--canvas); border: 1px solid var(--hairline); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}

/* ------------------------------------------------ pill tabs */
.pill-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-full);
  background: var(--canvas); color: var(--steel); border: 1px solid var(--hairline);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.pill-tab.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pill-tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill-tab .count {
  font-size: 12px; font-weight: 600; min-width: 20px; padding: 0 6px; border-radius: var(--r-full);
  background: var(--surface); color: var(--ink); text-align: center;
}
.pill-tab.active .count { background: rgba(255,255,255,.18); color: var(--on-primary); }

.seg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin: 32px 0 24px; overflow-x: auto; }
.seg-tabs.top { margin-top: 0; align-items: center; }
.tab-sync { margin-left: auto; display: flex; align-items: center; gap: 12px; padding-left: 16px; white-space: nowrap; }
.tab-sync .caption { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.account-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline-soft);
}
.seg-tab {
  padding: 16px 20px; color: var(--steel); font-weight: 500; font-size: 15px;
  border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.seg-tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
  padding: 3px 10px; border-radius: var(--r-full); white-space: nowrap;
}
.badge-reply { background: var(--brand-coral); color: var(--on-dark); }
.badge-review { background: var(--brand-blue-200); color: var(--brand-blue-deep); }
.badge-info { background: var(--surface); color: var(--steel); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-high { background: var(--primary); color: var(--on-primary); }
.badge-code { background: var(--brand-blue-200); color: var(--brand-blue-deep); border-radius: var(--r-sm); padding: 2px 6px; }
.badge-muted { background: var(--surface); color: var(--stone); }

/* ------------------------------------------------ typography */
.hero-display { font-size: 80px; font-weight: 600; line-height: 1.1; letter-spacing: -2px; margin: 0; }
.display-lg { font-size: 56px; font-weight: 600; line-height: 1.1; letter-spacing: -1.5px; margin: 0; }
.heading-lg { font-size: 40px; font-weight: 600; line-height: 1.2; letter-spacing: -1px; margin: 0; }
.heading-md { font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: -0.5px; margin: 0; }
.heading-sm { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 0; }
.card-title { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0; }
.subtitle { font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--steel); margin: 0; }
.caption { font-size: 13px; line-height: 1.7; color: var(--steel); }
.micro { font-size: 12px; color: var(--stone); }
.steel { color: var(--steel); }

/* ------------------------------------------------ landing */
.landing { text-align: center; padding: 64px 0 32px; }
.landing .subtitle { max-width: 640px; margin: 24px auto 32px; }
.landing .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 80px; text-align: left; }
.vibrant {
  position: relative; overflow: hidden;
  border-radius: var(--r-hero); padding: 32px; color: var(--on-dark); min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.vibrant::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.28), transparent 55%);
}
.vibrant > * { position: relative; z-index: 1; }
.vibrant .tag { font-size: 14px; opacity: .85; }
.c-coral { background: linear-gradient(140deg, #ff7a45 0%, var(--brand-coral) 45%, #e8361c 100%); }
.c-magenta { background: linear-gradient(140deg, #ff5fa2 0%, var(--brand-magenta) 50%, #9b2fd4 100%); }
.c-blue { background: linear-gradient(140deg, var(--brand-cyan) 0%, var(--brand-blue) 55%, #1238b8 100%); }
.c-purple { background: linear-gradient(140deg, #ff8a3d 0%, #c149c9 45%, var(--brand-purple) 100%); }
.c-ink { background: radial-gradient(120% 120% at 80% 10%, #3a3d45 0%, var(--primary) 60%); }

/* ------------------------------------------------ dashboard hero */
.dash-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.dash-hero .vibrant { min-height: 300px; }
.dash-hero .addr { font-size: 14px; opacity: .85; word-break: break-all; }
.dash-hero .hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sync-meta { font-size: 13px; opacity: .85; }
.progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; margin-top: 12px; }
.progress > i { display: block; height: 100%; background: #fff; transition: width var(--ease); }
.vibrant .btn-tertiary { border-color: transparent; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  background: var(--canvas); cursor: pointer; text-align: left;
}
.stat .num { font-size: 40px; font-weight: 600; letter-spacing: -1px; line-height: 1.1; }
.stat .label { color: var(--steel); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.stat .swatch { width: 10px; height: 10px; border-radius: 50%; }

/* minmax(0,…) — 긴 제목(한 줄 말줄임)이 칸을 밀어 넓혀 옆 카드를 화면 밖으로 내보내지 않게 */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.two-col > * { min-width: 0; }
.card {
  border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 24px; background: var(--canvas);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.card-feature { background: var(--surface); border-radius: var(--r-xl); padding: 32px; }

/* ------------------------------------------------ rows */
.row-list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 4px; border-bottom: 1px solid var(--hairline-soft); cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { color: var(--steel); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .side { color: var(--stone); font-size: 12px; white-space: nowrap; text-align: right; }
.date-chip {
  flex: none; width: 48px; text-align: center; border-radius: var(--r-lg);
  background: var(--surface); padding: 6px 0; line-height: 1.2;
}
.date-chip b { display: block; font-size: 18px; }
.date-chip span { font-size: 11px; color: var(--steel); }
.date-chip.urgent { background: var(--primary); color: var(--on-primary); }
.date-chip.urgent span { color: rgba(255,255,255,.7); }
.empty { color: var(--stone); padding: 24px 0; text-align: center; }

/* ------------------------------------------------ inbox */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.search-pill {
  height: 36px; min-width: 220px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); outline: none;
}
.search-pill:focus { border: 2px solid var(--brand-blue-deep); padding: 0 13px; background: var(--canvas); }

.inbox { display: grid; grid-template-columns: 380px 1fr; border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; min-height: 640px; }
.mail-list { border-right: 1px solid var(--hairline); overflow-y: auto; max-height: 78vh; }
.mail-item { padding: 16px 20px; border-bottom: 1px solid var(--hairline-soft); cursor: pointer; display: block; width: 100%; text-align: left; background: var(--canvas); border-left: 0; border-right: 0; border-top: 0; }
.mail-item.active { background: var(--surface); }
.mail-item .line1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--steel); }
.mail-item .sender { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item .subj { font-weight: 500; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item .sum { color: var(--steel); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-item .badges { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.mail-item.done { opacity: .55; }

.mail-detail { display: grid; grid-template-columns: 1fr 260px; min-width: 0; }
.detail-body { padding: 32px; min-width: 0; overflow-y: auto; max-height: 78vh; }
.detail-rail { border-left: 1px solid var(--hairline); padding: 24px 20px; background: var(--surface-soft); overflow-y: auto; max-height: 78vh; }
.detail-rail h4 { font-size: 13px; font-weight: 600; color: var(--steel); margin: 0 0 8px; text-transform: none; }
.detail-rail section + section { margin-top: 24px; }
.detail-subj { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 8px 0 4px; word-break: break-word; }
.detail-subj-ko { color: var(--steel); font-size: 16px; margin-bottom: 12px; }
.meta { font-size: 13px; color: var(--steel); line-height: 1.7; word-break: break-all; }
.meta b { color: var(--ink); font-weight: 500; }
.summary-box { background: var(--surface); border-radius: var(--r-lg); padding: 16px 20px; margin: 20px 0; }
.summary-box .lbl { font-size: 12px; font-weight: 600; color: var(--steel); margin-bottom: 4px; }
.prose { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.6; color: var(--charcoal); }
.body-tabs { display: flex; gap: 8px; margin: 20px 0 12px; }
.attach { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--hairline-soft); }
.mini-list li:last-child { border-bottom: 0; }
.rail-actions { display: flex; flex-direction: column; gap: 8px; }
.rail-actions .btn { width: 100%; }
.select {
  height: 36px; border-radius: var(--r-md); border: 1px solid var(--hairline); padding: 0 10px; background: var(--canvas); width: 100%;
}
.placeholder { display: flex; align-items: center; justify-content: center; color: var(--stone); padding: 64px; text-align: center; }
.back-btn { display: none; }

/* ------------------------------------------------ calendar */
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cal-head .heading-sm { min-width: 160px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.cal .dow { background: var(--surface); color: var(--steel); font-size: 13px; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.cal .day { min-height: 116px; padding: 8px; border-right: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); min-width: 0; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: var(--surface-soft); color: var(--muted); }
.cal .dnum { font-size: 13px; font-weight: 500; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal .today .dnum { background: var(--primary); color: var(--on-primary); }
.ev {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  font-size: 12px; line-height: 1.4; padding: 3px 8px; margin-top: 4px; border-radius: var(--r-full);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ev-reply { background: var(--brand-coral); color: #fff; }
.ev-review { background: var(--brand-blue-200); color: var(--brand-blue-deep); }
.ev-info { background: var(--surface); color: var(--slate); }
.ev-todo { background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); }
.ev-done { text-decoration: line-through; opacity: .5; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--steel); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.agenda { display: none; }

/* ------------------------------------------------ todos */
.todo-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.todo-group + .todo-group { margin-top: 32px; }
.todo-group h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--hairline-soft); }
.todo input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 1px; flex: none; cursor: pointer; }
.todo .main { flex: 1; min-width: 0; }
.todo.done .t { text-decoration: line-through; color: var(--stone); }
.todo .src { font-size: 12px; color: var(--steel); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo .due { font-size: 12px; white-space: nowrap; color: var(--steel); }
.todo .due.over { color: var(--error); font-weight: 600; }
.todo .del { border: 0; background: none; color: var(--stone); cursor: pointer; font-size: 16px; }

/* ------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.input, .textarea {
  height: 40px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--hairline);
  background: var(--canvas); outline: none; width: 100%;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { border: 2px solid var(--brand-blue-deep); padding-left: 13px; }
.textarea:focus { padding: 11px 13px; }
.input.error { border-color: var(--error); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.form-section { font-size: 15px; font-weight: 600; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.hint { font-size: 12px; color: var(--steel); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.color-pick { display: flex; gap: 8px; }
.color-pick button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.color-pick button.active { border-color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.test-result { font-size: 13px; margin-top: 4px; }
.test-result.ok { color: var(--success-text); }
.test-result.bad { color: var(--error); }

/* ------------------------------------------------ modal / toast */
.modal-root { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,10,.36); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.modal { background: var(--canvas); border-radius: var(--r-xxl); box-shadow: var(--shadow-4); width: 100%; max-width: 640px; padding: 32px; }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 520px; }
.toast { background: var(--primary); color: var(--on-primary); border-radius: var(--r-full); padding: 12px 20px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-2); }
.toast.bad { background: var(--error); }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------ responsive */
@media (max-width: 1279px) {
  .hero-display { font-size: 56px; letter-spacing: -1.5px; }
}
@media (max-width: 1023px) {
  .feature-grid { grid-template-columns: repeat(4, 280px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .feature-grid > * { scroll-snap-align: start; }
  .dash-hero { grid-template-columns: 1fr; }
  .mail-detail { grid-template-columns: 1fr; }
  .detail-rail { border-left: 0; border-top: 1px solid var(--hairline); max-height: none; }
  .detail-body { max-height: none; }
  .todo-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  main { padding: 24px 16px 80px; }
  .topnav { padding: 0 16px; gap: 12px; }
  .topnav .btn-primary { padding: 10px 16px; }
  .hero-display { font-size: 40px; letter-spacing: -1px; }
  .heading-lg { font-size: 32px; }
  .two-col { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; min-height: 0; }
  .mail-list { border-right: 0; max-height: none; }
  .inbox.show-detail .mail-list { display: none; }
  .inbox:not(.show-detail) .mail-detail { display: none; }
  .back-btn { display: inline-flex; margin-bottom: 12px; }
  .tab-sync .caption { display: none; }
  .promo-banner.banner-nav { padding: 0 8px 0 4px; gap: 8px; }
  .bn-tab { padding: 13px 10px 11px; }
  .bn-status { display: none; }
  .detail-body { padding: 20px; }
  .cal { display: none; }
  .agenda { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .input { height: 44px; }
  .search-pill { min-width: 0; flex: 1; }
}
@media (max-width: 479px) {
  .hero-display { font-size: 32px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat .num { font-size: 32px; }
}

/* AI 사용량 표 */
.usage-wrap { overflow-x: auto; }
.usage { width: 100%; border-collapse: collapse; font-size: 13px; }
.usage th, .usage td { padding: 8px 10px; border-bottom: 1px solid var(--hairline-soft); text-align: left; white-space: nowrap; }
.usage th { color: var(--steel); font-weight: 500; }
.usage .n { text-align: right; font-variant-numeric: tabular-nums; }
.usage tfoot td { font-weight: 600; border-bottom: 0; }
/* 개인정보 안내 표: 설명이 길어 줄바꿈 */
.usage.wrap td, .usage.wrap th { white-space: normal; vertical-align: top; }
.usage.wrap td:first-child { min-width: 9em; } .usage.wrap td:nth-child(2) { min-width: 7em; }
