/* AlphaX Console MVP — styles. MOCK/DRY(안전) 는 LIVE(위험)와 시각적으로 강하게 구분한다. */
:root {
  --bg: #0f1115; --panel: #171a21; --panel2: #1d212b; --text: #e6e8ec; --muted: #8b93a1;
  --ok: #16a34a; --warn: #d97706; --danger: #dc2626; --border: #2a2f3a;
  --mock: #6b7280; --dry: #2563eb; --live: #dc2626;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", Segoe UI, sans-serif; }

.app-header { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--panel); }
.app-title { font-weight: 700; font-size: 16px; }
.app-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.app-main { padding: 14px 16px 40px; max-width: 1100px; margin: 0 auto; }
.app-footer { padding: 10px 16px; font-size: 11px; color: var(--muted);
  border-top: 1px solid var(--border); background: var(--panel); }

/* ── mode banner: 색/문구로 강제 구분 ── */
.mode-banner { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px;
  margin-bottom: 8px; font-weight: 700; border: 2px solid transparent; }
.mode-badge { color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 13px; letter-spacing: .5px; }
.mode-ko { color: var(--muted); font-weight: 500; }
.mode-money { margin-left: auto; padding: 4px 10px; border-radius: 6px; font-weight: 800; }
.money-safe { background: #14351f; color: #86efac; }               /* 실제 돈 안 움직임 = 안전 초록 */
.money-moves { background: #3b0d0d; color: #fca5a5; }              /* 실제 돈 움직임 = 위험 빨강 */
.mode-mock { background: #14171e; border-color: var(--mock); }
.mode-dry  { background: #0f1a2e; border-color: var(--dry); }
.mode-live { background: #2a0b0b; border-color: var(--live); animation: pulseLive 1.4s infinite; }
.mode-unknown { background: #241a05; border-color: var(--warn); }
@keyframes pulseLive { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.6);} 50% { box-shadow: 0 0 0 6px rgba(220,38,38,0);} }

.warning-bar { padding: 8px 14px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; font-size: 13px; }
.warning-bar.mode-mock { background: #1a1d24; color: #cbd5e1; }
.warning-bar.mode-dry  { background: #0e1830; color: #bfdbfe; }
.warning-bar.mode-live { background: #3b0d0d; color: #fecaca; border: 1px solid var(--live); }
.warning-bar.mode-unknown { background: #241a05; color: #fde68a; }

/* ── cards / pills ── */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px; }
.card-title { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.card-body { display: flex; flex-wrap: wrap; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

.pill { display: inline-flex; gap: 6px; align-items: center; background: var(--panel2);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.pill-k { color: var(--muted); }
.pill-v { font-weight: 700; }
.pill-ok .pill-v { color: #86efac; }
.pill-warn .pill-v { color: #fbbf24; }
.pill-danger { border-color: var(--danger); }
.pill-danger .pill-v { color: #fca5a5; }
.pill-neutral .pill-v { color: var(--text); }

.muted { color: var(--muted); }

/* ── alerts / timeline ── */
.alerts { list-style: none; padding: 0; margin: 0; width: 100%; }
.alert { padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; background: var(--panel2); }
.alert .sev { font-weight: 800; margin-right: 6px; }
.alert-warning .sev { color: #fbbf24; }
.alert-error .sev, .alert-critical .sev { color: #fca5a5; }
.alert-info .sev { color: #93c5fd; }

.timeline { width: 100%; border-collapse: collapse; font-size: 12px; }
.timeline th, .timeline td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.timeline th { color: var(--muted); font-weight: 600; }
.ev-critical .ev-sev, .ev-error .ev-sev { color: #fca5a5; font-weight: 800; }
.ev-warning .ev-sev { color: #fbbf24; font-weight: 700; }
.ev-act { color: #fbbf24; }

/* ── readiness ── */
.readiness-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }
.chk { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; background: var(--panel2); }
.chk-box { font-weight: 800; width: 16px; text-align: center; }
.chk-ok .chk-box { color: #86efac; }
.chk-no .chk-box { color: #fca5a5; }
.chk-key { color: var(--muted); font-size: 11px; margin-left: auto; }
.blockers { width: 100%; margin-top: 8px; font-size: 12px; color: #fca5a5; }

/* ── role switcher ── */
.role-switcher { text-align: right; }
.role-note { font-size: 11px; color: #fbbf24; margin-bottom: 4px; }
.role-opt { background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 8px; margin-left: 4px; cursor: pointer; font-size: 12px; }
.role-opt.active { border-color: var(--dry); color: #bfdbfe; }
.role-desc { width: 100%; color: var(--muted); margin-bottom: 6px; }

/* ── disabled controls ── */
.controls { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
/* aria-disabled 로만 비활성 표시(네이티브 disabled 아님) → 클릭 시 mock toast 만, 실제 동작 없음 */
.ctrl-btn { background: #23262e; color: var(--muted); border: 1px dashed var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; cursor: not-allowed; opacity: .8; }
.ctrl-btn[aria-disabled="true"] { pointer-events: auto; }
.ctrl-why { font-size: 11px; color: var(--warn); }
.controls-note { width: 100%; margin-top: 6px; font-size: 11px; color: var(--muted); }

.tabs { display: flex; gap: 8px; margin: 4px 0 10px; }
.tab { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #1d212b; color: #fde68a; border: 1px solid var(--warn); border-radius: 8px;
  padding: 10px 14px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; }

/* ════ friendly main screen (hand-drawn operator concept) ════ */
.m-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--border); }
.m-brand { display: flex; align-items: center; gap: 8px; }
.m-logo { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.m-logo b { color: #7dd3fc; }
.m-badge { color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 5px; }
.m-tabs { display: flex; gap: 4px; }
.m-tab { background: var(--panel2); color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px 8px 0 0; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.m-tab.active { color: var(--text); border-color: var(--dry); background: #0f1a2e; }
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.m-chip { font-size: 11px; color: var(--muted); background: var(--panel2);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.m-chip-name { color: #7dd3fc; }
.m-chip-mode.mode-mock { color: #cbd5e1; } .m-chip-mode.mode-dry { color: #bfdbfe; }
.m-chip-mode.mode-live { color: #fecaca; border-color: var(--live); } .m-chip-mode.mode-unknown { color: #fde68a; }

.m-body { display: grid; grid-template-columns: 300px 1fr; gap: 14px; padding: 14px 16px 30px;
  max-width: 1200px; margin: 0 auto; }
@media (max-width: 820px) { .m-body { grid-template-columns: 1fr; } }
.m-left { display: flex; flex-direction: column; gap: 12px; }
.m-start { background: linear-gradient(180deg,#1e3a2b,#16241c); color: #86efac; border: 1px solid #2f6f4e;
  border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 800; cursor: not-allowed; text-align: center; }
.m-start[aria-disabled="true"] { pointer-events: auto; opacity: .85; }
.m-start-why { display: block; font-size: 10.5px; color: var(--warn); font-weight: 500; margin-top: 4px; }
.m-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.m-card-t { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.m-judge { font-size: 13px; line-height: 1.5; color: var(--text); }
.m-kv { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.m-kv:last-child { border-bottom: 0; }
.m-kv span { color: var(--muted); }
.m-kv b.pos { color: #86efac; } .m-kv b.neg { color: #fca5a5; }
.m-note { font-size: 11px; color: var(--muted); line-height: 1.5; } .m-note b { color: var(--text); }

.m-center { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.m-board { background: #0c0f14; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.m-board-t { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.m-board-sub { font-size: 11px; color: var(--muted); font-weight: 400; }
.m-log-list { display: flex; flex-direction: column; gap: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.m-log-row { display: grid; grid-template-columns: 152px 24px 54px 62px 1fr; gap: 8px; align-items: center;
  font-size: 12px; padding: 4px 6px; border-radius: 5px; background: #11151c; }
.m-log-ts { color: var(--muted); } .m-log-ic { text-align: center; }
.m-log-side { color: #7dd3fc; font-weight: 700; } .m-log-step { color: #fbbf24; }
.m-log-msg { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.m-range { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.m-range-t { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.m-range-inputs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.m-range-inputs label { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.m-date { background: var(--panel2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; }
.m-range-result { display: flex; gap: 8px; flex-wrap: wrap; }
.m-range-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
.m-foot { padding: 10px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); }

/* ════ P2: auth gate / popup / modals / control bar / config / snapshot ════ */
.lg-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lg-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  width: 340px; max-width: 92vw; display: flex; flex-direction: column; gap: 10px; }
.lg-title { font-size: 22px; font-weight: 800; text-align: center; } .lg-title b { color: #7dd3fc; }
.lg-mock { font-size: 11px; color: var(--warn); text-align: center; }
.lg-l { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.lg-in { background: var(--panel2); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 8px; }
.lg-captcha { border: 1px dashed var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.lg-captcha-box { font-size: 20px; letter-spacing: 3px; color: var(--muted); }
.lg-captcha-note { font-size: 10.5px; color: var(--warn); margin: 6px 0; }
.lg-captcha-btn, .lg-btn { background: var(--panel2); color: var(--text); border: 1px solid var(--dry);
  border-radius: 8px; padding: 8px; cursor: pointer; }
.lg-btn { background: linear-gradient(180deg,#1e3a5f,#152436); font-weight: 700; color: #bfdbfe; }
.lg-error { color: #fca5a5; font-size: 12px; }
.lg-status { color: #86efac; font-size: 12px; min-height: 14px; }
.lg-hint { font-size: 11px; color: var(--muted); text-align: center; }

.dp-overlay, .md-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dp-card, .md-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; width: 420px; max-width: 94vw; display: flex; flex-direction: column; gap: 8px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; }
.dp-title { font-weight: 800; font-size: 16px; }
.dp-mode { font-size: 11px; color: var(--warn); }
.dp-row { font-size: 13px; }
.dp-news { margin: 4px 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.dp-hide { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.dp-close { margin-top: 6px; background: var(--dry); color: #fff; border: 0; border-radius: 8px; padding: 9px; cursor: pointer; font-weight: 700; }

.md-title { font-weight: 800; font-size: 16px; }
.md-warn { color: #fca5a5; font-weight: 700; font-size: 13px; }
.md-note { font-size: 12px; color: var(--muted); } .md-note b { color: var(--text); }
.md-safe { background: #14351f; color: #86efac; border-radius: 6px; padding: 6px 8px; font-weight: 800; font-size: 12px; }
.md-l { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.md-in { background: var(--panel2); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 8px; }
.md-hint { font-size: 11px; color: var(--warn); }
.md-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.md-cancel { background: var(--panel2); color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.md-confirm { background: var(--dry); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.md-danger { border-color: var(--live); }
.md-danger-btn { background: var(--live); }

.control-bar { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--panel);
  border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cb-start { background: linear-gradient(180deg,#1e3a2b,#16241c); color: #86efac; border: 1px solid #2f6f4e; border-radius: 9px; padding: 9px 16px; font-weight: 800; cursor: pointer; }
.cb-stop { background: linear-gradient(180deg,#3a2b1e,#241c16); color: #fbbf24; border: 1px solid #6f4e2f; border-radius: 9px; padding: 9px 16px; font-weight: 800; cursor: pointer; }
.cb-emg { background: #2a0b0b; color: #fca5a5; border: 1px solid var(--live); border-radius: 9px; padding: 9px 16px; font-weight: 800; cursor: pointer; }
.cb-note { font-size: 11px; color: var(--muted); margin-left: auto; }

.snap-banner { padding: 8px 16px; font-size: 12px; font-weight: 600; }
.snap-banner[data-state="fresh"] { background: #10261a; color: #86efac; }
.snap-banner[data-state="stale"] { background: #2a2410; color: #fbbf24; }
.snap-banner[data-state="expired"] { background: #2a0b0b; color: #fca5a5; }

/* PC 설정 패널: 넓은 화면에서 과도하게 벌어지지 않도록 max-width + 중앙 정렬(밀도↑). 모바일은 mobile.css 별도. */
.cf-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin: 14px auto; padding: 16px 18px; max-width: 880px; width: calc(100% - 32px); box-sizing: border-box; }
.cf-title { font-weight: 700; margin-bottom: 10px; }
.cf-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.cf-row span { color: var(--muted); }
.cf-notes { margin: 10px 0 0; padding-left: 18px; color: var(--warn); font-size: 12px; }
.cf-flags { font-size: 11px; color: var(--muted); margin-top: 8px; }
.m-range-summary { font-size: 12px; color: var(--text); margin-top: 8px; font-weight: 600; }

/* ════ P3: role-based read-only monitoring views ════ */
.mr-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.mr-brand { font-weight: 800; font-size: 16px; } .mr-brand b { color: #7dd3fc; }
.mr-badge { color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 5px; }
.mr-role { font-size: 12px; color: #bfdbfe; }
.mr-money { padding: 2px 8px; border-radius: 5px; font-weight: 800; font-size: 11px; }
.mr-flags { margin-left: auto; font-size: 11px; color: var(--muted); }
.mr-rolenote { font-size: 12px; color: #bfdbfe; margin-bottom: 4px; }
.mr-readonly { font-size: 11px; color: var(--warn); margin-bottom: 10px; }
.ro-note { width: 100%; font-size: 11px; color: var(--muted); margin-top: 6px; }
.mr-switcher { text-align: right; }
.mr-switcher-note { font-size: 11px; color: #fbbf24; margin-bottom: 4px; }
.mr-role-opt { background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 8px; margin-left: 4px; cursor: pointer; font-size: 12px; }
.mr-role-opt.active { border-color: var(--dry); color: #bfdbfe; }

/* ════ P4: approved AlphaX logo integration (colors/timing/geometry/glow unmodified from source) ════ */
/* landing .ax-stage component rules copied verbatim from mvp/assets/alphax-landing-logo.html (source file unmodified) */
.ax-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ax-halo { position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,210,255,0.18) 0%, rgba(0,229,199,0.08) 35%, transparent 70%);
  filter: blur(8px); animation: ax-halo 4s ease-in-out infinite; pointer-events: none; }
.ax-mark { position: relative; z-index: 2; overflow: visible; }
.ax-word { position: relative; z-index: 2; font-weight: 500; font-size: 52px; letter-spacing: 2px;
  color: #eaf2fb; margin-top: 6px; opacity: 0; animation: ax-fade 0.8s ease-out 1.2s forwards; }
.ax-word .x { color: #00d8e6; }
.ax-tag { position: relative; z-index: 2; font-family: "SF Mono","Menlo","Consolas",monospace; font-size: 13px;
  letter-spacing: 5px; color: #3d7a8a; margin-top: 10px; opacity: 0; animation: ax-fade 0.8s ease-out 1.7s forwards; }
@keyframes ax-halo { 0%,100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes ax-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
/* ── P6 login redesign: dominant central logo hero + minimal login strip (no bulky boxed card) ── */
.lg-wrap { flex-direction: column; gap: 10px; min-height: 100vh; justify-content: center; }
/* larger, dominant, centered landing logo (wrapper sizing only — logo internals unchanged) */
.lg-hero { position: relative; display: flex; align-items: center; justify-content: center; }
.lg-hero-lg { height: 340px; width: 100%; max-width: 560px; overflow: hidden; transform: scale(1.02); margin-bottom: 4px; }
@media (max-width: 560px) { .lg-hero-lg { height: 250px; transform: scale(0.8); } }
/* minimal login strip below the logo — no border box */
.lg-strip { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 0 16px; }
.lg-row { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; justify-content: center; }
.lg-row .lg-in { flex: 1 1 150px; min-width: 130px; }
.lg-captcha-min { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 11px; }
.lg-captcha-min .lg-captcha-box { font-size: 13px; letter-spacing: 2px; color: var(--muted); border: 1px dashed var(--border); border-radius: 6px; padding: 3px 8px; }
.lg-captcha-min .lg-captcha-note { color: var(--warn); font-size: 10.5px; }
.lg-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 2px; }
.lg-foot .lg-hint { color: var(--muted); } .lg-foot .lg-mock { color: var(--warn); font-size: 10.5px; }
/* static header logo (references the unmodified copied SVG) */
.hdr-home { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; display: inline-flex; align-items: center; }
.hdr-home:focus-visible { outline: 2px solid #6ea8fe; outline-offset: 2px; border-radius: 6px; }
.hdr-logo { display: inline-block; height: 34px; width: auto; vertical-align: middle; }
.mr-brand .hdr-logo { height: 29px; }

/* ── P6: config form (UI-only) ── */
.cf-sub { font-size: 11px; color: var(--muted); font-weight: 400; }
/* grouped, bilingual config form — 2열 그리드, 셀 폭 균일 · 입력창 크기/패딩/라운드 통일 */
.cf-form { margin: 10px 0; display: flex; flex-direction: column; gap: 12px; }
.cf-group { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #14171e; }
/* 섹션 제목: 필드 제목보다 상위 위계(더 굵고·구분선). */
.cf-group-t { font-size: 12px; font-weight: 800; color: #bfdbfe; margin: 0 0 10px; padding-bottom: 6px; letter-spacing: .4px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
@media (max-width: 680px) { .cf-grid { grid-template-columns: 1fr; } }
.cf-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-width: 0; }
.cf-field.cf-w-wide { grid-column: 1 / -1; }
.cf-label { color: var(--text); font-size: 12.5px; font-weight: 600; }
.cf-label b { font-weight: 700; }
.cf-ko { color: var(--muted); font-weight: 500; }
.cf-help { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.cf-inputwrap { display: block; }
/* 모든 입력창은 자기 그리드 셀을 꽉 채우도록 폭 통일(항목별 제멋대로 폭 제거). height/padding/radius 동일. */
.cf-input { width: 100%; box-sizing: border-box; background: var(--panel2); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; font-size: 13px; line-height: 1.3; }
.cf-input:focus { outline: none; border-color: var(--dry); }
.cf-w-compact .cf-input, .cf-w-medium .cf-input, .cf-w-wide .cf-input { width: 100%; }
.cf-textarea { min-height: 56px; resize: vertical; width: 100%; }
.cf-note-inline { font-size: 10.5px; color: var(--warn); }
.cf-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.cf-btn { border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); }
.cf-save { background: linear-gradient(180deg,#1e3a2b,#16241c); color: #86efac; border-color: #2f6f4e; }
.cf-apply { background: linear-gradient(180deg,#1e3a5f,#152436); color: #bfdbfe; border-color: var(--dry); }
.cf-reset { background: var(--panel2); color: var(--muted); }
.cf-draftstatus { font-size: 11.5px; color: #86efac; margin-bottom: 8px; }

/* ── P7: local read-only DRY snapshot bridge bar ── */
.bridge-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; font-size: 12px;
  border-bottom: 1px solid var(--border); background: #12151c; }
.bridge-bar[data-state="fresh"] { background: #10261a; }
.bridge-bar[data-state="stale"] { background: #2a2410; }
.bridge-bar[data-state="expired"] { background: #2a0b0b; }
.bridge-dot.on { color: #86efac; font-weight: 800; }
.bridge-dot.off { color: #fca5a5; font-weight: 800; }
.bridge-k { color: var(--muted); margin-left: 6px; }
.bridge-auth { color: var(--muted); font-size: 10.5px; }
.bridge-thr { color: var(--warn); font-size: 10.5px; margin-left: 4px; }
.bridge-refresh { margin-left: auto; background: var(--panel2); color: #bfdbfe; border: 1px solid var(--dry);
  border-radius: 7px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
