/* 사이트 기능 "내정보 보안체크"(/site/security-check, 2026-11-18) 전용 스타일. 이 페이지에서만 싣는다(site_features/_security_check 파셜이 head 에
   dynamic 추적 스타일시트로 건다 - 길체크·날씨와 같은 방식). 확대·축소 단추는 공용 stage_view.css.

   **Tailwind 를 거치지 않는 순수 CSS 다**(Propshaft 가 그대로 내보낸다). 테마는 조상 셀렉터(.dark)로 가른다. 글자 크기는 em 으로 적고 뿌리에서
   큰글씨 배율(--silver-scale)을 한 번 곱한다. 상태는 색과 함께 글자로도 보인다(색에만 기대지 않는다). 작은 글자는 바탕과 4.5:1 넘게 둔다.
   강조색은 사이트 강조색 #1e40af(금고의 남색), 무대 판은 짙은 남색, 경보는 빨강, 마친 자물쇠는 초록. */

.sc {
  --sc-accent: #1e40af;
  --sc-accent-deep: #1e3a8a;
  --sc-navy: #14213d;
  --sc-ink: #121926;
  --sc-paper: #ffffff;
  --sc-paper-2: #f4f6fa;
  --sc-rule: #dce2ec;
  --sc-muted: #4b5565;
  --sc-ok: #136330;
  --sc-ok-bg: #dcf3e3;
  --sc-warn: #7a4300;
  --sc-warn-bg: #fdebc8;
  --sc-alert: #a8201a;
  --sc-alert-bg: #fde2e1;
  --sc-kr: #a8201a;
  --sc-global: #6d28d9;
  --sc-adv: #1e40af;
  font-size: calc(1rem * var(--silver-scale, 1));
  color: var(--sc-ink);
}
.dark .sc {
  --sc-ink: #e8edf5;
  --sc-paper: #101826;
  --sc-paper-2: #152033;
  --sc-rule: #26344a;
  --sc-muted: #a9b4c4;
  --sc-ok: #a8e9bd;
  --sc-ok-bg: #12391f;
  --sc-warn: #ffd59a;
  --sc-warn-bg: #47300a;
  --sc-alert: #ffc0bb;
  --sc-alert-bg: #4a1715;
  --sc-kr: #ffb4ae;
  --sc-global: #d8c4ff;
  --sc-adv: #b7cdfd;
}

/* ── 머리 ── */
.sc-head { display: grid; gap: 0.2em; }
.sc-eyebrow { font-size: 0.82em; font-weight: 800; letter-spacing: 0.02em; color: var(--sc-accent); }
.dark .sc-eyebrow { color: #93b4ff; }
.sc-lead { font-size: 0.93em; line-height: 1.55; color: var(--sc-muted); }

/* ── 무대 카드 ── */
/* .sc-card(흰 바탕)와 함께 쓰므로 두 꼴을 함께 적어 남색이 이기게 한다(같은 무게면 뒤에 오는 .sc-card 가 이겼다). */
.sc-stage-card.sc-card { border-radius: 1.25rem; background: var(--sc-navy); box-shadow: 0 0 0 1px rgb(20 33 61 / 0.35), 0 18px 40px -18px rgb(9 20 38 / 0.6); }
.sc-stage {
  position: relative; overflow: hidden; border-radius: 1.25rem 1.25rem 0 0; min-height: 14rem;
  background-color: #cfe2f3; background-image: linear-gradient(180deg, #a8cdee 0%, #f6e7da 100%); background-size: cover; background-position: center 55%;
  isolation: isolate; touch-action: none;
}
.sc-stage::before { content: ""; display: block; padding-top: 52%; }
@media (min-width: 1024px) { .sc-stage::before { padding-top: min(52%, calc(46vh - 4rem)); } }
@media (max-width: 639px) { .sc-stage::before { padding-top: 74%; } }
@media (any-pointer: coarse) { .sc-stage { touch-action: pan-y; } }
.sc-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; z-index: 0; opacity: 0; transition: opacity 0.6s ease; }
.sc-stage[data-gl="gpu"] canvas, .sc-stage[data-gl="software"] canvas { opacity: 1; }
.sc-stage-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sc-stage[data-gl="none"] .sc-stage-labels { display: none; }
.sc-bell-label {
  pointer-events: auto; cursor: pointer; padding: 0.22em 0.65em; border-radius: 999px; border: 0; font: inherit; font-size: 0.78em; font-weight: 800;
  color: #fff; background: rgb(17 24 39 / 0.8); box-shadow: 0 6px 14px -8px rgb(0 0 0 / 0.7); white-space: nowrap;
}
.sc-bell-label[data-state="new"] { background: #b42318; }
@media (prefers-reduced-motion: reduce) { .sc-stage canvas { transition: none; } }

/* 자물쇠 단추 - 무대와 같은 내용을 글로(무대가 없어도 누를 수 있다). 다섯 갈래 + 새 소식. */
.sc-locks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4em; padding: 0.6em; }
@media (min-width: 640px) { .sc-locks { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sc-lock-btn {
  display: grid; gap: 0.1em; justify-items: start; align-content: start; min-height: 3.4em; padding: 0.45em 0.6em; border: 0; border-radius: 0.8em; cursor: pointer;
  text-align: left; background: rgb(255 255 255 / 0.08); color: #fff; font: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}
.sc-lock-btn:hover { background: rgb(255 255 255 / 0.14); }
.sc-lock-btn:focus-visible { outline: 3px solid #fcd34d; outline-offset: 2px; }
/* 한국어는 낱말 단위로 꺾고, 라틴 글자 화면(es·en)은 낱말 중간에서 자르지 않고 붙임표로 꺾는다("contras/eña" 꼴 - 화면 검수). */
.sc-lock-name { font-size: 0.8em; font-weight: 800; line-height: 1.2; word-break: keep-all; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.sc-lock-count { font-size: 0.76em; color: #d5dceb; font-variant-numeric: tabular-nums; }
.sc-lock-icon { width: 0.95em; height: 0.95em; border-radius: 0.2em; background: #94a3b8; position: relative; margin-top: 0.25em; }
.sc-lock-icon::before { content: ""; position: absolute; left: 0.18em; right: 0.18em; bottom: 80%; height: 0.45em; border: 0.12em solid #94a3b8; border-bottom: 0; border-radius: 0.4em 0.4em 0 0; }
.sc-lock-btn[data-state="done"] .sc-lock-icon, .sc-lock-btn[data-state="done"] .sc-lock-icon::before { background-color: #4ade80; border-color: #4ade80; }
.sc-lock-btn[data-state="done"] .sc-lock-icon::before { background: none; }
.sc-lock-btn[data-state="doing"] .sc-lock-icon, .sc-lock-btn[data-state="doing"] .sc-lock-icon::before { background-color: #fbbf24; border-color: #fbbf24; }
.sc-lock-btn[data-state="doing"] .sc-lock-icon::before { background: none; }
.sc-lock-btn[data-state="alert"] .sc-lock-icon, .sc-lock-btn[data-state="alert"] .sc-lock-icon::before { background-color: #f87171; border-color: #f87171; }
.sc-lock-btn[data-state="alert"] .sc-lock-icon::before { background: none; transform: translateX(0.25em); }
.sc-lock-btn[data-state="idle"] .sc-lock-icon::before { background: none; }
.sc-bell { width: 0.95em; height: 0.95em; margin-top: 0.25em; border-radius: 0.5em 0.5em 0.15em 0.15em; background: #94a3b8; }
.sc-news-btn[data-state="new"] .sc-bell { background: #f87171; box-shadow: 0 0 0 3px rgb(248 113 113 / 0.3); }
.sc-news-btn > span:last-child { font-size: 0.8em; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.sc-alarm { margin: 0 0.6em 0.6em; padding: 0.5em 0.75em; border-radius: 0.7em; background: #4a1715; color: #ffd3cf; font-size: 0.84em; font-weight: 700; }
.sc-alarm[hidden] { display: none; }

/* ── 탭 ── */
.sc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35em; padding: 0.3em; border-radius: 999px; background: var(--sc-paper-2); box-shadow: inset 0 0 0 1px var(--sc-rule); }
.sc-tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.6em; padding: 0.35em 0.5em; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 0.88em; font-weight: 800; color: var(--sc-muted); background: transparent;
  white-space: normal; word-break: keep-all; overflow-wrap: anywhere; hyphens: auto; text-align: center; line-height: 1.15;
}
.sc-tab:hover { color: var(--sc-ink); }
.sc-tab[aria-selected="true"] { background: var(--sc-navy); color: #fff; box-shadow: 0 6px 16px -10px rgb(9 20 38 / 0.8); }
.dark .sc-tab[aria-selected="true"] { background: #2b3f63; }
@media (max-width: 440px) { .sc-tab { font-size: 0.78em; padding-inline: 0.25em; } }
html.silver[data-silver-scale="3"] .sc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 1.2em; }
@media (max-width: 360px) { .sc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 1.2em; } }

/* ── 칸 ── */
.sc-pane { display: grid; gap: 0.9rem; }
.sc-pane[hidden] { display: none; }
.sc-pane > * { min-width: 0; }
.sc-card { border-radius: 1em; background: var(--sc-paper); box-shadow: 0 0 0 1px var(--sc-rule); }
.sc-pane > .sc-card { display: grid; gap: 0.65em; padding: 1em 1.1em; }
.sc-h { margin: 0; font-size: 1.04em; font-weight: 900; line-height: 1.35; }
.sc-sub { margin: 0; font-size: 0.88em; font-weight: 800; }
.sc-text { font-size: 0.92em; line-height: 1.6; }
.sc-note { font-size: 0.84em; line-height: 1.55; color: var(--sc-muted); }
.sc-warn { color: #9a3412; }
.dark .sc-warn { color: #fdba74; }
.sc-cols { display: grid; gap: 0.8em; }
@media (min-width: 640px) { .sc-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.sc-bullets, .sc-steps { margin: 0.3em 0 0; padding-left: 1.2em; display: grid; gap: 0.25em; font-size: 0.9em; line-height: 1.5; }
.sc-bullets { list-style: disc; }
.sc-steps { list-style: decimal; }
.sc-details { border-radius: 0.8em; background: var(--sc-paper-2); padding: 0.55em 0.8em; box-shadow: inset 0 0 0 1px var(--sc-rule); }
.sc-details summary { cursor: pointer; font-size: 0.88em; font-weight: 800; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em 1em; }
.sc-go { display: inline-flex; align-items: center; }
.sc-table-wrap { overflow-x: auto; margin-top: 0.5em; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 0.84em; }
.sc-table th, .sc-table td { padding: 0.45em 0.5em; border-bottom: 1px solid var(--sc-rule); text-align: left; vertical-align: top; }
.sc-table thead th { font-size: 0.92em; color: var(--sc-muted); }
.sc-state { font-weight: 800; white-space: nowrap; }
.sc-state-ok { color: var(--sc-ok); }
.sc-state-stale { color: #9a3412; }
.sc-state-never { color: var(--sc-muted); }
.dark .sc-state-stale { color: #fdba74; }

/* 결과 기록 */
.sc-record { display: grid; gap: 0.45em; padding: 0.8em 0.9em; border-radius: 0.9em; background: var(--sc-paper-2); box-shadow: inset 0 0 0 1px var(--sc-rule); }
.sc-record[data-returned="true"] { box-shadow: inset 0 0 0 2px var(--sc-accent); }
.sc-returned { color: var(--sc-accent); font-weight: 700; }
.dark .sc-returned { color: #93b4ff; }
.sc-record-line { display: grid; gap: 0.45em; padding-top: 0.4em; border-top: 1px dashed var(--sc-rule); }
.sc-record-line[hidden], .sc-record-next[hidden], .sc-returned[hidden], .sc-record-stale[hidden] { display: none; }
.sc-record-text { font-size: 0.92em; font-weight: 800; }
.sc-record-text[data-result="leaked"] { color: var(--sc-alert); }
.sc-record-text[data-result="clean"] { color: var(--sc-ok); }
.sc-record-next { display: grid; gap: 0.4em; justify-items: start; font-size: 0.9em; line-height: 1.55; }

/* 비밀번호·찾기 칸 */
.sc-label { font-size: 0.82em; font-weight: 700; color: var(--sc-muted); }
.sc-password-row { display: flex; flex-wrap: wrap; gap: 0.45em; }
.sc-input {
  flex: 1 1 12em; min-width: 0; min-height: 2.6em; padding: 0.35em 0.75em; border-radius: 0.7em; border: 1px solid var(--sc-rule);
  /* 16px 아래면 iOS Safari 가 초점 때 화면을 확대한다(화면 검수). */
  background: var(--sc-paper); color: var(--sc-ink); font: inherit; font-size: max(16px, 0.95em);
}
.sc-input:focus-visible { outline: 3px solid #1e6fb8; outline-offset: 1px; }
.sc-result { min-height: 1.2em; font-size: 0.9em; line-height: 1.55; }
.sc-result[data-tone="bad"] { color: var(--sc-alert); font-weight: 800; }
.sc-result[data-tone="good"] { color: var(--sc-ok); font-weight: 700; }
.sc-result[data-tone="error"] { color: #9a3412; }
.dark .sc-result[data-tone="error"] { color: #fdba74; }

/* 거르기 단추·칩 */
.sc-seg { display: flex; flex-wrap: wrap; gap: 0.35em; }
.sc-seg-btn, .sc-chip {
  min-height: 2.4em; padding: 0.3em 0.85em; border-radius: 999px; border: 1px solid var(--sc-rule); background: var(--sc-paper); color: var(--sc-ink);
  font: inherit; font-size: 0.86em; font-weight: 700; cursor: pointer;
}
.sc-seg-btn[aria-pressed="true"], .sc-chip[aria-pressed="true"] { background: var(--sc-accent); border-color: var(--sc-accent); color: #fff; }
.sc-chip[aria-pressed="true"]::before { content: "✓ "; }
.sc-chip-remove::after { content: " ✕"; }
.sc-link-btn { padding: 0.2em 0; border: 0; background: none; font: inherit; font-size: 0.86em; font-weight: 800; color: var(--sc-accent-deep); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.dark .sc-link-btn { color: #93b4ff; }
.sc-tab:focus-visible, .sc-seg-btn:focus-visible, .sc-chip:focus-visible, .sc-link-btn:focus-visible, .sc-check:focus-visible { outline: 3px solid #1e6fb8; outline-offset: 2px; }
.dark .sc-tab:focus-visible, .dark .sc-seg-btn:focus-visible, .dark .sc-chip:focus-visible, .dark .sc-link-btn:focus-visible, .dark .sc-check:focus-visible { outline-color: #f6b22d; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 0.35em; }
.sc-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 0.45em; }
.sc-pick legend { font-size: 0.88em; font-weight: 800; margin-bottom: 0.3em; }
.sc-mine-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5em; }

/* ── 소식 ── */
.sc-new-since { font-size: 0.9em; font-weight: 800; color: var(--sc-alert); }
.sc-new-since[data-none="true"] { color: var(--sc-muted); font-weight: 600; }
.sc-search { display: grid; gap: 0.4em; padding: 0.8em 0.9em; border-radius: 0.9em; background: var(--sc-paper-2); box-shadow: inset 0 0 0 1px var(--sc-rule); }
.sc-status { min-height: 1.2em; font-size: 0.86em; color: var(--sc-muted); }
.sc-status[data-tone="error"] { color: var(--sc-alert); }
.sc-board { display: grid; gap: 0.8rem; }
.sc-board > * { min-width: 0; }
.sc-board-meta { font-size: 0.8em; color: var(--sc-muted); }
.sc-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; border-radius: 0.9rem; overflow: hidden; background: var(--sc-paper); box-shadow: 0 0 0 1px var(--sc-rule); }
.sc-list:not(:has(.sc-item:not([hidden]))) { display: none; }
.sc-list[hidden] { display: none; }
.sc-item { display: grid; gap: 0.3em; padding: 0.85em 1.05em; }
.sc-item[hidden] { display: none; }
.sc-item:not([hidden]) ~ .sc-item { border-top: 1px solid var(--sc-rule); }
.sc-item-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15em 0.6em; font-size: 0.8em; }
.sc-kind { font-weight: 800; }
.sc-kind-breach_kr { color: var(--sc-kr); }
.sc-kind-breach_global { color: var(--sc-global); }
.sc-kind-advisory { color: var(--sc-adv); }
.sc-flag { padding: 0.05em 0.45em; border-radius: 0.35em; font-size: 0.92em; font-weight: 800; }
.sc-flag[hidden] { display: none; }
.sc-flag-new { background: var(--sc-alert-bg); color: var(--sc-alert); }
.sc-flag-mine { background: #e0e7ff; color: #1e3a8a; }
.dark .sc-flag-mine { background: #1e2b55; color: #c7d4ff; }
.sc-item-title { margin: 0; font-size: 1em; font-weight: 800; line-height: 1.42; overflow-wrap: anywhere; }
.sc-item-meta { display: flex; flex-wrap: wrap; gap: 0.15em 0.45em; font-size: 0.8em; color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.sc-item-meta span + span::before { content: "·"; margin-right: 0.45em; }
.sc-classes { display: flex; flex-wrap: wrap; gap: 0.3em; margin: 0; padding: 0; list-style: none; }
.sc-class { padding: 0.1em 0.5em; border-radius: 0.4em; font-size: 0.76em; font-weight: 700; background: var(--sc-paper-2); box-shadow: inset 0 0 0 1px var(--sc-rule); }
.sc-class-more { color: var(--sc-muted); }
.sc-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 1em; }
.sc-out { text-decoration: none; }
.sc-out:hover { text-decoration: underline; }
.sc-ko-note { font-size: 0.76em; }
.sc-empty { padding: 1.2em; border-radius: 1em; text-align: center; background: var(--sc-paper-2); color: var(--sc-muted); font-size: 0.92em; }
.sc-empty[hidden] { display: none; }
.sc-failed { padding: 1.2em; border-radius: 1em; text-align: center; background: var(--sc-paper-2); color: var(--sc-ink); font-size: 0.92em; }
.sc-retry { margin-top: 0.5em; }
.sc-more { justify-self: center; }
.sc-more[hidden] { display: none; }
.sc-sources { border-radius: 1em; background: var(--sc-paper-2); padding: 0.7em 0.9em; box-shadow: inset 0 0 0 1px var(--sc-rule); }
.sc-sources summary { cursor: pointer; font-size: 0.88em; font-weight: 800; }

/* ── 할 일 ── */
.sc-todo[hidden] { display: none; }
.sc-todo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3em 1em; }
.sc-progress { font-size: 0.86em; font-weight: 800; color: var(--sc-accent); font-variant-numeric: tabular-nums; }
.dark .sc-progress { color: #93b4ff; }
.sc-checklist { display: grid; gap: 0.15em; margin: 0; padding: 0; list-style: none; }
.sc-check-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.2em 0.6em; padding: 0.5em 0.2em; border-bottom: 1px solid var(--sc-rule); }
.sc-check-row:last-child { border-bottom: 0; }
.sc-check-row > .sc-out { grid-column: 2; justify-self: start; }
.sc-check { width: 1.25em; height: 1.25em; margin-top: 0.15em; accent-color: var(--sc-accent); cursor: pointer; }
.sc-check-row label { font-size: 0.92em; line-height: 1.55; cursor: pointer; }
.sc-check:checked + label { color: var(--sc-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.sc-done { color: var(--sc-ok); font-weight: 700; }
.sc-done[hidden] { display: none; }
.sc-report-list { display: grid; gap: 0.35em; margin: 0; padding: 0; list-style: none; }

/* ── 아래 ── */
.sc-foot { display: grid; gap: 0.35em; padding-top: 0.6em; border-top: 1px solid var(--sc-rule); }
.sc-source { font-size: 0.78em; line-height: 1.55; color: var(--sc-muted); overflow-wrap: anywhere; }
.sc-source a { color: inherit; text-decoration: underline; }
.sc-result-ad[hidden] { display: none; }
/* 공용 .btn 은 글자 크기가 고정(14px)이라 큰글씨 배율을 따르지 않았다 - 이 패널 안에서는 em 으로(2차 검수). */
.sc .btn { font-size: 0.875em; }

@media (forced-colors: active) {
  .sc-tab[aria-selected="true"], .sc-seg-btn[aria-pressed="true"], .sc-chip[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: 1px; }
}
