:root {
  color-scheme: dark;
  --canvas: #171819; --surface: #1d1e20; --raised: #25272a; --header: #141516;
  --ink: #eeeef0; --muted: #a8aaaf; --border: #313235; --accent: #82b8f5;
  --primary: #4983c5; --primary-hover: #6097d5; --danger: #e9a1a5; --focus: #8bc3ff;
  --warning: #dfbe7e; --restriction: #e5ad7b;
  --list-default-width: 300px; --inspector-width: 300px;
  --radius: 6px; --font-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  font-family: var(--font-ui); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--canvas); word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; font-weight: 600; }
h1 { font-size: 20px; letter-spacing: -.03em; }
h2 { font-size: 26px; letter-spacing: -.035em; }
h3, legend { font-size: 15px; font-weight: 600; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.app-shell { height: 100dvh; min-height: 420px; display: flex; flex-direction: column; }
.app-header { display: flex; align-items: center; gap: 24px; height: 56px; min-height: 56px; flex-shrink: 0; padding: 0 20px; background: var(--header); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand-image { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.brand-copy { display: flex; align-items: baseline; gap: 6px; font-size: 16px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.brand-context { color: #b8bcc3; font-weight: 400; }
.review-tabs { display: flex; flex-shrink: 0; height: 56px; gap: 24px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.review-tab { min-height: 44px; padding: 0 3px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 15px; white-space: nowrap; }
.review-tab:hover:not(:disabled) { color: var(--ink); }
.review-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
main { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.mode-label { color: var(--muted); font-size: 13px; }
#content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.workspace { flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: var(--list-width, var(--list-default-width)) 0 minmax(0, 1fr); }
.panel-resizer { position: relative; z-index: 1; width: 16px; margin-left: -8px; align-self: stretch; cursor: col-resize; touch-action: none; user-select: none; }
.panel-resizer::before { content: ""; position: absolute; inset: 0 7px; background: transparent; }
.panel-resizer::after { content: ""; position: absolute; top: 50%; left: 6px; width: 4px; height: 32px; margin-top: -16px; border-radius: 2px; background: #62666e; }
.panel-resizer:hover::before, .panel-resizer:focus-visible::before, .panel-resizer.is-resizing::before { background: var(--accent); }
.panel-resizer:hover::after, .panel-resizer:focus-visible::after, .panel-resizer.is-resizing::after { background: var(--accent); }
.panel-resizer:focus-visible { outline-offset: -2px; }
.resizing-panels, .resizing-panels * { cursor: col-resize !important; user-select: none !important; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 1px solid #424449; border-radius: var(--radius); background: #2d2f32; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.button:hover:not(:disabled) { background: #373a3e; }
.button.primary { background: var(--primary); color: #fff; border-color: transparent; }
.button.primary:hover:not(:disabled) { background: var(--primary-hover); }
.button.danger { background: #a73d44; border-color: transparent; color: #fff; }
.button.danger:hover:not(:disabled) { background: #bd4c54; }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button.quiet:hover:not(:disabled) { background: var(--raised); color: var(--ink); }
.button.icon-button { width: 42px; padding: 9px; flex-shrink: 0; }
.list-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: #1a1b1d; }
.list-header { padding: 14px 16px 8px; }
.list-toolbar { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
#list-summary { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.list-toolbar .icon-button { width: 34px; min-height: 34px; padding: 7px; }
.search-field { display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; border: 1px solid #383a3e; border-radius: var(--radius); padding: 0 10px; background: #212326; color: var(--muted); }
.search-field .icon { width: 17px; height: 17px; }
.search-field input { min-width: 0; width: 100%; min-height: 40px; border: 0; padding: 8px 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-field input:focus { outline: none; }
input::placeholder { color: var(--muted); opacity: 1; }
.type-filter { width: 94px; min-height: 34px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.type-filter option { background: var(--surface); }
.list-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 72px; padding: 12px 16px; background: transparent; border: 0; border-bottom: 1px solid #242629; border-left: 2px solid transparent; color: var(--ink); text-align: left; }
.report-row:hover:not(:disabled) { background: #25272a; }
.report-row[aria-current="true"] { background: #2a3038; border-left-color: var(--accent); }
.report-reason-icon { width: 24px; flex: 0 0 24px; color: #b4bbc4; }
.report-row-content { min-width: 0; flex: 1; }
.row-heading { display: block; min-width: 0; }
.row-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 550; }
.row-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.row-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-footer { border-top: 1px solid var(--border); padding: 7px 14px; }
.load-more { width: 100%; }
.detail-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.detail-toolbar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.detail-toolbar .back-button { display: none; }
.detail-heading { display: flex; flex: 1; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
#detail-title { font-size: 18px; line-height: 1.4; letter-spacing: -.035em; }
#detail-title:focus { outline: none; }
.detail-kind { font-size: 12px; color: var(--muted); white-space: nowrap; }
.detail-navigation { display: flex; align-items: center; flex-shrink: 0; gap: 2px; }
.detail-navigation .icon-button { width: 32px; min-height: 32px; padding: 6px; }
.detail-navigation > span { min-width: 42px; color: var(--muted); font-size: 12px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-scroll { min-height: 0; min-width: 0; flex: 1; display: flex; padding: 0; overflow: hidden; }
.detail-workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; container: review / inline-size; }
.detail-columns { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--inspector-width); }
.evidence-section { min-width: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; }
.evidence-frame { margin: 0; min-width: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; }
.evidence-viewport { position: relative; min-width: 0; min-height: 0; flex: 1; display: flex; overflow: hidden; }
.evidence-stage { min-width: 0; min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; background: #151617; scrollbar-gutter: stable; }
.evidence-canvas { min-width: 100%; min-height: 100%; width: max-content; display: grid; place-items: center; padding: 20px; }
.evidence-image, .sample-image { display: block; max-width: none; object-fit: contain; }
.is-concealed .evidence-canvas { filter: blur(28px); }
.evidence-mask { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: #151617e8; color: var(--muted); pointer-events: none; font-size: 14px; }
.viewer-tools { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 46px; flex-shrink: 0; padding: 5px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.viewer-tools .button { min-height: 34px; width: 34px; padding: 5px; }
.zoom-button { font-size: 21px; }
.scale-field { display: flex; align-items: center; gap: 2px; padding: 0 7px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); font-size: 12px; }
.scale-field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
#image-scale { width: 32px; min-height: 32px; padding: 4px 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; appearance: textfield; }
#image-scale::-webkit-inner-spin-button, #image-scale::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.viewer-tools .view-preset { width: auto; padding: 5px 8px; font-size: 12px; }
.view-preset[aria-pressed="true"] { background: var(--raised); color: var(--ink); }
.viewer-tools .hide-image { margin-left: 6px; }
.evidence-unavailable, .evidence-loading { flex: 1; min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 30px; color: var(--muted); text-align: center; font-size: 14px; }
.evidence-error { color: var(--danger); }
.evidence-unavailable p { max-width: 32ch; }
.evidence-absent p, .evidence-mask span { white-space: nowrap; }
.evidence-unavailable > .icon { width: 30px; height: 30px; }
.review-inspector { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--border); background: #1a1b1d; }
.inspector-heading { display: flex; align-items: center; min-height: 56px; flex-shrink: 0; padding: 8px 20px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.inspector-scroll { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.report-facts, .metadata { margin: 0; }
.report-facts > div { margin-bottom: 16px; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 7px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.identifier { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.identifier-value { white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; line-height: 26px; }
.report-facts time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.record-identifiers { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 10px; }
.record-details { min-width: 0; }
.record-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; list-style: none; font-size: 13px; color: var(--muted); }
.record-details summary::-webkit-details-marker { display: none; }
.record-details summary .icon { width: 16px; height: 16px; }
.record-details[open] summary .icon { transform: rotate(180deg); }
.record-details > .identifier { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); background: #171819; line-height: 1.65; overflow-wrap: anywhere; word-break: break-all; }
.metadata > div + div { margin-top: 16px; }
.decision-section { padding-top: 20px; border-top: 1px solid var(--border); }
.continue-action { margin-top: 16px; width: 100%; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 8px; }
.action-options { display: grid; gap: 2px; }
.action-option { display: flex; align-items: center; gap: 10px; padding: 10px 0; height: 46px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.action-option input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.action-option .icon { width: 18px; height: 18px; color: var(--action-color, var(--muted)); }
.action-option:has(input:checked) { font-weight: 600; color: var(--ink); }
.action-option:hover { color: var(--ink); }
.action-dismiss { --action-color: #b5bcc5; }
.action-warn { --action-color: var(--warning); }
.action-suspend { --action-color: var(--restriction); }
.action-remove { --action-color: var(--danger); }
.decision-footer { flex-shrink: 0; padding: 14px 20px; border-top: 1px solid var(--border); background: #1a1b1d; }
.decision-footer .button { width: 100%; }
.audit-note { color: var(--muted); font-size: 13px; margin-top: 20px; }
.resolved-action { display: flex; gap: 10px; align-items: center; min-height: 46px; margin-top: 8px; color: var(--action-color, var(--ink)); font-size: 16px; font-weight: 500; white-space: nowrap; }
.restore-section { margin-top: 22px; }
.restore-section .button { margin-top: 16px; width: 100%; }
.restriction-status { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.restriction-status dt, .restriction-status dd { margin: 0; font-size: 13px; white-space: nowrap; }
.restriction-status dd { color: var(--muted); }
.welcome-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; height: 100%; min-height: 300px; color: var(--muted); padding: 30px; text-align: center; }
.welcome-state > .icon { width: 38px; height: 38px; stroke-width: 1.3; }
.welcome-state h2 { font-size: 17px; font-weight: 400; letter-spacing: 0; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 45px 22px; text-align: center; color: var(--muted); font-size: 14px; }
.empty h3 { color: var(--ink); }
.empty-icon > .icon { width: 28px; height: 28px; }
.loading-state { padding: 26px; color: var(--muted); font-size: 14px; }
.feedback { margin: 0 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; overflow-wrap: anywhere; }
.feedback p + p { margin-top: 10px; }
.feedback .button { margin-top: 14px; }
.feedback.error { border-color: #694345; background: #302123; color: #f0b7ba; }
.feedback.receipt { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); background: var(--raised); }
.list-body > .feedback { margin: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.connection-layout { display: grid; place-items: center; flex: 1; padding: 30px; }
.connection { width: min(100%, 440px); }
.connection > .muted, .connection > .feedback { margin-top: 20px; }
.connection > .button { margin-top: 20px; }
.connection form { display: grid; gap: 12px; margin-top: 28px; }
.connection label { font-size: 14px; }
.connection input, .demo-tools select { min-width: 0; min-height: 44px; background: var(--raised); color: var(--ink); border: 1px solid #484a50; border-radius: var(--radius); padding: 10px; }
dialog { color: var(--ink); width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 30px; border: 1px solid #484a50; border-radius: 10px; background: var(--surface); box-shadow: 0 20px 100px #0008; }
dialog::backdrop { background: #08090bc7; }
dialog h2 { font-size: 23px; }
#confirm-mode { margin-top: 12px; }
#confirm-mode:empty, #confirm-progress:empty { display: none; }
.dialog-description { margin-top: 22px; line-height: 1.8; font-size: 15px; }
.dialog-description ul { margin: 0; padding-left: 20px; }
.dialog-description li + li { margin-top: 8px; }
.confirm-metadata { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 20px; }
#confirm-progress { margin-top: 20px; font-size: 14px; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.demo-tools { position: fixed; bottom: 12px; left: 12px; z-index: 10; padding: 12px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; max-width: calc(100% - 24px); }
.demo-tools[open] { display: grid; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); background: var(--surface); padding: 12px; }
.skip-link:focus { transform: none; }
* { scrollbar-width: thin; scrollbar-color: #51545a transparent; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@container review (max-width: 680px) {
  .inspector-empty { display: none; }
  .detail-columns { display: block; overflow-y: auto; scrollbar-gutter: stable; }
  .detail-scroll { flex: none; height: clamp(340px, 65dvh, 700px); }
  .detail-scroll:has(.evidence-absent) { height: auto; }
  .evidence-absent { min-height: 180px; }
  .review-inspector { border-left: 0; border-top: 1px solid var(--border); }
  .inspector-scroll { overflow: visible; scrollbar-gutter: auto; }
  .report-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .action-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-footer { position: sticky; bottom: 0; }
}
@media (max-width: 760px) {
  .app-shell { min-height: 100dvh; height: auto; }
  .app-header { gap: 12px; padding: 0 16px; }
  .brand-copy { font-size: 14px; }
  .header-tools { gap: 6px; }
  .mode-label { font-size: 12px; }
  .workspace { display: block; }
  .panel-resizer { display: none; }
  .list-panel { border: 0; }
  .list-body { overflow: visible; }
  .report-row { height: 76px; }
  .workspace:not(.has-selection) .detail-workspace, .workspace.has-selection .list-panel { display: none; }
  .detail-toolbar { gap: 4px; padding: 8px; }
  .detail-toolbar .back-button { display: inline-flex; width: 32px; min-height: 36px; padding: 6px; }
  .detail-heading { gap: 2px 6px; }
  #detail-title { font-size: 17px; }
  .detail-navigation { gap: 0; }
  .detail-navigation .icon-button { width: 28px; }
  .detail-navigation > span { min-width: 36px; }
  .detail-columns { overflow: visible; scrollbar-gutter: auto; }
  .report-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .action-options { grid-template-columns: minmax(0, 1fr); }
  dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

#service-links:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
#service-links a { color: inherit; text-underline-offset: .22em; font-size: .875rem; }
@media (max-width: 520px) { #service-links:not([hidden]) { gap: .35rem; } }

.sign-in { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 28px; background: #16181b; }
.sign-in-panel { box-sizing: border-box; width: min(100%, 396px); padding: 38px; border: 1px solid #383b40; border-radius: 14px; background: #1e2024; box-shadow: 0 12px 44px #0002; }
.sign-in-brand { display: flex; align-items: center; gap: 9px; color: #f3f3f4; font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.sign-in-brand img { border-radius: 8px; }
.sign-in-panel h1 { margin-top: 36px; color: #fafafa; font-size: 28px; line-height: 1.3; letter-spacing: -.045em; }
.sign-in-hint { margin-top: 8px; color: #b7bac0; font-size: 14px; }
.sign-in-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; margin-top: 28px; padding: 10px 14px; background: #f5f5f5; border: 1px solid transparent; border-radius: 6px; color: #232529; font-size: 15px; font-weight: 600; }
.sign-in-button:hover:not(:disabled) { background: #fff; }
.sign-in-button:disabled { opacity: .8; }
.sign-in-status:not(:empty), .sign-in-panel noscript { display: block; margin-top: 16px; font-size: 14px; color: #d3d4d8; }
@media (max-width: 420px) { .sign-in { padding: 24px; } .sign-in-panel { padding: 28px 24px; } }

#service-links button { border: 0; border-bottom: 2px solid transparent; padding: 8px 6px; min-height: 40px; background: transparent; color: var(--muted); font-size: 14px; }
#service-links button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.insights-pane { overflow: auto; width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(20px, 4vw, 56px); }
.metric-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.metric-head h2 { font-size: 24px; }
.metric-period, .metric-note { color: var(--muted); font-size: 14px; margin-top: 8px; }
.metric-body { margin-top: 28px; }
.metric-counts, .metric-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 24px; padding: 0; margin: 0 0 22px; }
.metric-counts > div, .metric-lists > section { border-top: 1px solid var(--border); padding-top: 18px; }
.metric-counts dt, .metric-lists dt { color: var(--muted); font-size: 14px; }
.metric-counts dd { margin: 8px 0; font-size: 32px; font-variant-numeric: tabular-nums; }
.metric-lists dl { margin: 12px 0; }
.metric-lists dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.metric-lists dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .app-header:has(#service-links:not([hidden])) { height: auto; flex-wrap: wrap; padding-block: 8px; gap: 6px 12px; } .header-tools:has(#service-links:not([hidden])) { flex-wrap: wrap; } }
