@font-face {
  font-family: "RIDIBatang";
  src: url("/assets/fonts/RIDIBatang.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --paper: #faf9f6;
  --surface: #f1f2ec;
  --ink: #262824;
  --heading: #343731;
  --body: #494c46;
  --muted: #70746b;
  --quiet: #898d84;
  --accent: #53654f;
  --output: #b8664f;
  --line: #dedfd8;
  --focus: #354a31;
  --font-body: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-display: "RIDIBatang", "Noto Serif KR", "AppleMyungjo", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --card: var(--paper);
  --card-2: var(--surface);
  --line-strong: #b7bcb1;
  --text: var(--body);
  --faint: var(--quiet);
  --amber: var(--accent);
  --amber-soft: #6f806a;
  --warn: var(--output);
  --card-line: var(--line);
  --text-dim: var(--muted);
  --text-faint: var(--quiet);
  --indigo: var(--accent);
  --indigo-pale: var(--surface);
  --indigo-deep: var(--focus);
  --danger: var(--output);
  --ok: var(--accent);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before { display: none; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--focus); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
.mono, code, .key-meta, .mem-date, .site-foot { font-family: var(--font-mono); }

.shell {
  position: relative;
  width: min(calc(100% - 48px), 1080px);
  margin: 0 auto;
  padding: 24px 0 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 72px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.brand svg { width: 20px; height: 20px; }
.brand svg rect:first-child { stroke: var(--accent); }
.brand .mark-core { fill: var(--accent); }
.brand .name { color: var(--accent); font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.brand .name b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; }

h1, h2 { margin: 0; color: var(--heading); font-family: var(--font-display); font-weight: 400; line-height: 1.35; letter-spacing: -.025em; word-break: keep-all; }
h1 { font-size: clamp(36px, 5vw, 62px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h2::before, h2::after { display: none; }
.sub { margin: 16px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.85; }

.card { margin: 0 0 16px; padding: 28px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.card:hover { border-color: var(--line-strong); }
.card h2 { margin-bottom: 16px; }

input[type=email], input[type=text], select, input[type=date] { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper); color: var(--ink); outline: none; }
select { appearance: auto; }
input::placeholder { color: var(--quiet); }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(83, 101, 79, .13); }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .6; }

button { min-height: 44px; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 0; background: transparent; color: var(--accent); font-size: 14px; font-weight: 650; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
button:hover:not(:disabled) { border-color: var(--focus); color: var(--focus); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--focus); border-color: var(--focus); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--muted); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-danger { min-height: 36px; padding: 6px 10px; border-color: rgba(184, 102, 79, .55); color: var(--output); font-size: 12px; }
.btn-danger:hover:not(:disabled) { border-color: var(--output); background: rgba(184, 102, 79, .08); color: var(--output); }
.btn-small { min-height: 36px; padding: 6px 11px; font-size: 12px; }
.row { display: flex; align-items: stretch; gap: 10px; }
.row input { flex: 1; }

.divider { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: var(--quiet); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-oauth { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; border-color: var(--line-strong); background: var(--paper); color: var(--body); }
.btn-oauth:hover { border-color: var(--accent); color: var(--accent); }
.btn-oauth + .btn-oauth { margin-top: 8px; }
.btn-kakao { border-color: #FEE500; background: #FEE500; color: rgba(0, 0, 0, .85); }
.btn-kakao:hover { border-color: #FEE500; color: #000; filter: brightness(.97); }

.msg { margin-top: 12px; font-size: 14px; line-height: 1.7; }
.msg.ok { color: var(--accent); }
.msg.err { color: var(--output); }
.msg .hint { display: inline-block; margin-top: 4px; color: var(--quiet); font-size: 13px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.key-row:last-child { border-bottom: 0; }
.key-label { color: var(--ink); font-weight: 650; font-size: 14px; }
.key-meta { margin-top: 4px; color: var(--quiet); font-size: 11px; }
.empty { padding: 8px 0; color: var(--quiet); font-size: 14px; }

.token-reveal { margin-top: 16px; padding: 16px; border: 1px solid var(--output); background: rgba(184, 102, 79, .05); color: var(--output); font-family: var(--font-mono); font-size: 12px; line-height: 1.7; word-break: break-all; }
.token-reveal .warn { display: block; margin-top: 10px; color: var(--output); font-family: var(--font-body); font-size: 13px; line-height: 1.6; }
.snippet { margin-top: 12px; padding: 16px; overflow-x: auto; border: 1px solid var(--line); background: var(--ink); color: #e7e8df; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; white-space: pre; }
.copy-btn { float: right; min-height: 30px; padding: 4px 9px; border-color: #777b70; color: #e7e8df; font-size: 11px; }
#logoutBtn { position: absolute; top: 24px; right: 0; z-index: 1; }
.hidden { display: none !important; }

.tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.tab { min-height: 42px; margin-right: 26px; padding: 7px 0; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 550; }
.tab:hover { color: var(--accent); }
.tab.active { border-bottom-color: var(--accent); color: var(--accent); }
.tab.active:hover { color: var(--accent); }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-card { flex: 1; min-width: 160px; padding: 22px 20px; border: 1px solid var(--line); border-top: 2px solid var(--accent); background: var(--surface); }
.stat-num { color: var(--accent); font-family: var(--font-mono); font-size: 34px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 8px; color: var(--muted); font-size: 13px; }
.shortcut-row { display: flex; gap: 12px; flex-wrap: wrap; }
.shortcut { flex: 1; min-width: 240px; margin-bottom: 0; text-align: left; cursor: pointer; }
.shortcut:hover { border-color: var(--accent); }
.shortcut h2 { color: var(--accent); }

.filter-row { display: flex; gap: 10px; margin-bottom: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.field select, .field input { width: 100%; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1; min-width: 150px; }
.field-group-label { margin: 5px 0 8px; color: var(--accent); font-size: 13px; font-weight: 650; }
.field-group-label::before, .field-group-label::after { display: none; }

.mem-row { padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.mem-row:last-child { border-bottom: 0; }
.mem-row:hover .mem-summary { color: var(--accent); }
.mem-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 7px; }
.mem-tag { padding: 2px 7px; border: 1px solid rgba(83, 101, 79, .42); border-radius: 0; color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.mem-summary { color: var(--ink); font-size: 15px; line-height: 1.65; }
.mem-date { margin-top: 5px; color: var(--quiet); font-size: 11px; }
.mem-card { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--paper); color: var(--body); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.mem-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.mem-actions select { width: auto; min-height: 36px; padding: 6px 9px; font-size: 12px; }
.tag-readonly { margin-top: 8px; color: var(--quiet); font-size: 12px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 20px; }
.pager button { min-width: 34px; min-height: 34px; padding: 4px 6px; border-color: var(--line-strong); color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.pager button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager button:disabled { opacity: .3; }
.pager .dots { padding: 0 4px; color: var(--quiet); }

.bar { height: 5px; margin-top: 6px; overflow: hidden; background: rgba(83, 101, 79, .14); }
.bar > i { display: block; height: 100%; background: var(--accent); }
.dist-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.dist-row:last-child { border-bottom: 0; }
.dist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dist-name { color: var(--body); font-size: 14px; }
.dist-num { color: var(--quiet); font-family: var(--font-mono); font-size: 11px; }
.note { margin-top: 10px; color: var(--quiet); font-size: 13px; line-height: 1.7; }
.note b { color: var(--body); font-weight: 650; }
.note code { color: var(--body); font-size: .9em; }

.connect-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.connect-tabs button { min-height: 36px; padding: 6px 11px; border-color: var(--line-strong); color: var(--muted); font-size: 12px; }
.connect-tabs button:hover, .connect-tabs button.active { border-color: var(--accent); color: var(--accent); }
.danger-box { margin-top: 12px; padding: 16px; border: 1px solid rgba(184, 102, 79, .45); background: rgba(184, 102, 79, .05); }
.danger-box p { margin: 0 0 10px; color: var(--output); font-size: 13px; line-height: 1.7; }
.danger-box .row { align-items: center; }
.toggle-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.toggle-row input { width: auto; accent-color: var(--accent); }

.legal-note { margin-top: 22px; color: var(--quiet); font-size: 12px; line-height: 1.8; }
.legal-note a { color: var(--muted); }
.legal-note a:hover { color: var(--accent); }
.site-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; }
.site-foot a { color: var(--quiet); }
.site-foot a:hover { color: var(--accent); }
.site-foot .sep { opacity: .5; }

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 32px), 1080px); padding-top: 16px; }
  .brand { margin-bottom: 48px; }
  h1 { font-size: 38px; }
  .card { padding: 20px 18px; }
  .row { flex-wrap: wrap; }
  .row input, .row button { flex: 1 1 100%; width: 100%; }
  .field-row, .stat-row, .shortcut-row { flex-direction: column; }
  .stat-card, .shortcut { min-width: 0; }
  .tabs { gap: 0 18px; }
  .tab { margin-right: 0; font-size: 13px; }
  #logoutBtn { position: static; width: 100%; margin-bottom: 24px; }
  .key-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .key-row .btn-danger { align-self: flex-start; }
  .snippet { font-size: 11px; }
}

/* ---------- AI 기록 (2026-09-13) ---------- */
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tool-chip { min-height: 28px; padding: 3px 9px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--muted); font-size: 12px; cursor: pointer; }
.tool-chip:hover { border-color: var(--accent); color: var(--accent); }

.rec-switch { display: inline-flex; margin: -8px 0 18px; border: 1px solid var(--line-strong); }
.rec-switch-btn { min-height: 36px; padding: 6px 16px; border: 0; background: var(--paper); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.rec-switch-btn + .rec-switch-btn { border-left: 1px solid var(--line-strong); }
.rec-switch-btn.active { background: var(--accent); color: #fff; }
.rec-demo-note { margin: 0 0 18px; padding: 14px 16px; border-left: 3px solid var(--output); background: rgba(184, 102, 79, .06); color: var(--body); font-size: 14px; line-height: 1.8; }
.rec-demo-note b { color: var(--ink); }
.rec-demo-q { display: block; margin-top: 6px; color: var(--muted); }
.rec-demo-q i { color: var(--ink); font-style: normal; }
.rec-demo-note .btn-small { margin-left: 6px; vertical-align: middle; }
#recStats .stat-num small { margin-left: 2px; font-size: 18px; color: var(--muted); }
.rec-card-sub { margin: -8px 0 18px; font-size: 13px; }

.rec-flow { padding: 16px 0; border-top: 1px solid var(--line); }
.rec-flow:first-child { padding-top: 0; border-top: 0; }
.rec-flow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rec-flow-meta { color: var(--quiet); font-family: var(--font-mono); font-size: 11px; }
.rec-project { color: var(--ink); font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.rec-project--sm { margin-right: 8px; padding: 1px 6px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 500; }
.rec-steps { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rec-step { flex: 0 0 auto; width: 176px; padding: 10px 12px; border: 1px solid var(--line); border-top: 3px solid var(--tone); background: var(--paper); }
.rec-step-tool { color: var(--tone); font-size: 15px; font-weight: 700; }
.rec-step-time { margin-top: 2px; color: var(--quiet); font-family: var(--font-mono); font-size: 11px; }
.rec-step-who { margin-top: 6px; color: var(--ink); font-family: var(--font-mono); font-size: 12px; }
.rec-step-last { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rec-arrow { align-self: center; color: var(--quiet); font-size: 18px; }

.rec-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rec-two .card { margin-bottom: 16px; }
.rec-table { display: grid; gap: 12px; }
.rec-row { display: grid; grid-template-columns: minmax(84px, auto) 1fr auto; grid-template-areas: "name bar n" "sub sub sub"; align-items: center; gap: 4px 10px; }
.rec-row-name { grid-area: name; }
.rec-row-bar { grid-area: bar; height: 6px; background: var(--line); }
.rec-row-bar span { display: block; height: 100%; background: var(--accent); }
.rec-row-n { grid-area: n; color: var(--ink); font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.rec-row-sub { grid-area: sub; color: var(--quiet); font-size: 12px; }

.rec-tool { display: inline-block; padding: 1px 7px; border: 1px solid var(--tone); color: var(--tone); font-size: 12px; font-weight: 650; white-space: nowrap; }
.rec-tool--none { border-style: dashed; border-color: var(--line-strong); color: var(--quiet); font-weight: 500; }
.rec-speaker { display: inline-block; color: var(--ink); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.rec-speaker--none { color: var(--quiet); font-family: var(--font-body); }

.rec-day { margin: 18px 0 6px; color: var(--accent); font-size: 13px; font-weight: 650; }
.rec-day:first-child { margin-top: 0; }
.rec-line { display: grid; grid-template-columns: 44px 96px 96px 1fr; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rec-line > .rec-tool, .rec-line > .rec-speaker { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rec-time { color: var(--quiet); font-family: var(--font-mono); font-size: 12px; }
.rec-text { color: var(--body); font-size: 14px; line-height: 1.6; }
.rec-status { margin-right: 6px; color: var(--output); font-size: 12px; font-weight: 650; }
@media (max-width: 640px) {
  .rec-line { grid-template-columns: 44px auto 1fr; }
  .rec-line .rec-text { grid-column: 1 / -1; }
}
.input-clear { position: relative; }
.input-clear input { padding-right: 38px; }
.input-clear-btn { position: absolute; top: 50%; right: 4px; width: 30px; min-height: 30px; padding: 0; transform: translateY(-50%); border: 0; background: transparent; color: var(--quiet); font-size: 18px; line-height: 1; cursor: pointer; }
.input-clear-btn:hover { color: var(--output); }
.tool-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.issued-summary { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); display: grid; gap: 6px; font-size: 14px; }
.issued-summary .issued-k { display: inline-block; width: 44px; color: var(--quiet); font-size: 12px; }
.link-btn { min-height: 0; padding: 0 2px; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.tool-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.tool-edit .input-clear { width: 12rem; }
.tool-edit input { width: 100%; min-height: 36px; font-size: 13px; }
.tool-edit-msg { color: var(--output); font-size: 12px; }

/* ---------- 관리자 · 회원 관리 (2026-09-20 전면 개편) ---------- */
.mg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mg-head .sub { margin-bottom: 0; }
.mg-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 2fr); gap: 10px; margin-bottom: 14px; }
.mg-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.mg-stat strong { display: block; color: var(--heading, var(--ink)); font-size: 26px; font-weight: 600; line-height: 1.2; }
.mg-stat .mg-stat-small { font-size: 14px; line-height: 1.6; }
.mg-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.mg-members-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mg-members-head h2 { margin: 0; }
.mg-tools { display: flex; gap: 8px; }
.mg-tools input, .mg-tools select { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: inherit; font: inherit; font-size: 14px; }
.mg-table-wrap { margin-top: 10px; overflow-x: auto; }
.mg-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; }
.mg-table th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; text-align: left; white-space: nowrap; }
.mg-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mg-row { cursor: pointer; }
.mg-row:hover, .mg-row:focus { background: rgba(83, 101, 79, .06); outline: none; }
.mg-email { font-weight: 600; }
.mg-dim { color: var(--muted); font-size: 12px; }
.mg-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.mg-badge--ok { background: rgba(83, 101, 79, .12); color: var(--accent); }
.mg-badge--wait { background: rgba(184, 132, 30, .14); color: #8a5d08; }
.mg-badge--bad { background: rgba(176, 60, 50, .12); color: #9b3328; }
.mg-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mg-detail-head h2 { margin: 0; word-break: break-all; }
.mg-facts { margin-top: 10px; }
.mg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mg-sub { margin: 20px 0 6px; font-size: 15px; }
.mg-small { min-height: 0; margin-left: 8px; padding: 2px 10px; font-size: 12px; }
.mg-system { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.mg-system .card { margin: 0; }
@media (max-width: 900px) {
  .mg-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-stat--wide { grid-column: 1 / -1; }
  .mg-system { grid-template-columns: 1fr; }
  .mg-head { flex-direction: column; align-items: flex-start; }
}

/* 로그인 방법 연결 (2026-09-20) */
.identity-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.identity-actions:empty { display: none; }
.mg-num { text-align: right; font-variant-numeric: tabular-nums; }
.mg-overview { margin-bottom: 14px; }
.mg-overview h2 { margin-top: 0; }
.mg-ov-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 32px; }
.mg-ov-total strong { display: block; color: var(--heading); font-size: 40px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mg-ov-add strong { display: block; color: var(--accent); font-size: 22px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mg-ov-total span, .mg-ov-add span { color: var(--muted); font-size: 12px; }
.mg-ov-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 20px; }
.mg-ov-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.mg-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.mg-bar { display: flex; flex: 1; align-items: flex-end; height: 100%; }
.mg-bar span { display: block; width: 100%; min-height: 1px; border-radius: 2px 2px 0 0; background: var(--accent); opacity: .8; }
.mg-bar:hover span { opacity: 1; }
.mg-bars-axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: 11px; }
.mg-tool { display: grid; grid-template-columns: 110px 1fr 56px; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.mg-tool-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-tool-bar { height: 8px; border-radius: 4px; background: rgba(83, 101, 79, .1); }
.mg-tool-bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
@media (max-width: 900px) { .mg-ov-grid { grid-template-columns: 1fr; } }

/* ---------- 연결 (2026-09-20, ux-f1 재설계) ---------- */
.cx-main { padding-bottom: 18px; }
.cx-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.cx-steps span { margin-right: 4px; color: var(--accent); font-weight: 600; }
.cx-prompt { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: inherit; font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: keep-all; }
.cx-more > summary, .cx-rules > summary { cursor: pointer; color: var(--heading); font-weight: 600; list-style-position: inside; }
.cx-more[open] > summary { margin-bottom: 8px; }
.cx-rules { margin-top: 6px; }
.cx-rules > summary { font-weight: 500; font-size: 14px; }
.cx-sub { margin: 18px 0 4px; font-size: 14px; }
.cx-tool + .cx-tool { border-top: 1px solid var(--line); }
.cx-issued { margin-top: 14px; }

/* ---------- 로그인 화면 (2026-09-20) ---------- */
/* 가운데 좁은 칸 하나. 대시보드 폭(1180)을 따라 늘어나지 않게 한다. */
#loginView { display: flex; justify-content: center; padding: clamp(32px, 9vh, 96px) 0 64px; }
.login-box { width: min(100%, 380px); }
.login-box h1 { font-size: clamp(28px, 4vw, 34px); }
.login-sub { margin: 10px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.login-box .divider { margin: 24px 0 18px; }
.login-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.login-box input[type="email"] { width: 100%; }
.login-send { width: 100%; margin-top: 8px; }
.login-hint { margin: 10px 0 0; color: var(--quiet); font-size: 12.5px; line-height: 1.7; }
.login-box .msg:not(:empty) { margin-top: 14px; }
.login-box .legal-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.login-back { margin: 14px 0 0; font-size: 13px; }
.login-back a { color: var(--muted); text-decoration: none; }
.login-back a:hover { color: var(--accent); }

/* ---------- 연결 (2026-09-20, ux-f1 재설계) ---------- */
.cx-main { padding-bottom: 18px; }
.cx-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.cx-steps span { margin-right: 4px; color: var(--accent); font-weight: 600; }
.cx-prompt { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: inherit; font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: keep-all; }
.cx-more > summary, .cx-rules > summary { cursor: pointer; color: var(--heading); font-weight: 600; list-style-position: inside; }
.cx-more[open] > summary { margin-bottom: 8px; }
.cx-rules { margin-top: 6px; }
.cx-rules > summary { font-weight: 500; font-size: 14px; }
.cx-sub { margin: 18px 0 4px; font-size: 14px; }
.cx-tool + .cx-tool { border-top: 1px solid var(--line); }
.cx-issued { margin-top: 14px; }

/* ---------- 로그인 화면 (2026-09-20) ---------- */
/* 가운데 좁은 칸 하나. 대시보드 폭(1180)을 따라 늘어나지 않게 한다. */
#loginView { display: flex; justify-content: center; padding: clamp(32px, 9vh, 96px) 0 64px; }
.login-box { width: min(100%, 380px); }
.login-box h1 { font-size: clamp(28px, 4vw, 34px); }
.login-sub { margin: 10px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.login-box .divider { margin: 24px 0 18px; }
.login-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.login-box input[type="email"] { width: 100%; }
.login-send { width: 100%; margin-top: 8px; }
.login-hint { margin: 10px 0 0; color: var(--quiet); font-size: 12.5px; line-height: 1.7; }
.login-box .msg:not(:empty) { margin-top: 14px; }
.login-box .legal-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.login-back { margin: 14px 0 0; font-size: 13px; }
.login-back a { color: var(--muted); text-decoration: none; }
.login-back a:hover { color: var(--accent); }

/* ---------- 무료 한도·탈퇴 (2026-09-20) ---------- */
.stat-note { margin-top: 6px; color: var(--quiet); font-size: 12px; line-height: 1.5; }
.stat-note--full { color: #a2543f; }
.leave-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.leave-title { color: var(--body); font-size: 14px; font-weight: 600; }
.leave-note { margin-top: 4px; color: var(--quiet); font-size: 12.5px; line-height: 1.6; }
.leave-row button { white-space: nowrap; }
@media (max-width: 560px) { .leave-row { display: block; } .leave-row button { width: 100%; margin-top: 12px; } }
