/* Warden (browser build) - styling kept deliberately plain and dependency-free. */ :root { --bg: #ffffff; --fg: #111827; --muted: #6b7280; --line: #e5e7eb; --panel: #f9fafb; --accent: #2563eb; --allow: #059669; --redact: #d97706; --reroute: #2563eb; --deny: #dc2626; --code-bg: #f3f4f6; --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; } @media (prefers-color-scheme: dark) { :root { --bg: #0b0f17; --fg: #e5e7eb; --muted: #9ca3af; --line: #1f2937; --panel: #111827; --accent: #60a5fa; --allow: #34d399; --redact: #fbbf24; --reroute: #60a5fa; --deny: #f87171; --code-bg: #111827; } } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--fg); font-size: 15px; line-height: 1.6; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif; } .wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 72px; } header h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.01em; } header .sub { color: var(--muted); margin: 0 0 14px; } .banner { border-left: 4px solid var(--accent); background: var(--panel); padding: 12px 14px; border-radius: 6px; margin: 0 0 12px; font-size: 14px; } .banner.warn { border-left-color: var(--redact); } .banner strong { font-weight: 650; } nav.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; } nav.tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 9px 13px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; } nav.tabs button:hover { color: var(--fg); } nav.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; } section.tab { display: none; } section.tab.active { display: block; } .row { display: flex; gap: 14px; flex-wrap: wrap; } .col { flex: 1 1 260px; min-width: 240px; } label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; } input[type="text"], input[type="number"], select, textarea { width: 100%; padding: 8px 10px; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-family: inherit; } textarea { font-family: var(--mono); font-size: 13px; resize: vertical; } textarea.code { min-height: 220px; } button.act { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--fg); padding: 8px 14px; border-radius: 6px; font-size: 14px; cursor: pointer; font-family: inherit; } button.act:hover { border-color: var(--accent); } button.act.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; } button.act.primary:hover { filter: brightness(1.08); } .actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; } pre, .json { background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; max-height: 420px; white-space: pre-wrap; word-break: break-word; } .verdict-card { border-left: 6px solid var(--muted); background: var(--panel); padding: 12px 16px; border-radius: 6px; margin: 14px 0; } .verdict-card .v { font-size: 22px; font-weight: 700; letter-spacing: 0.02em; } .verdict-card .meta { font-size: 13px; color: var(--muted); margin-top: 4px; } .verdict-card .reason { font-size: 14px; margin-top: 6px; } .v-allow { color: var(--allow); } .v-redact { color: var(--redact); } .v-reroute { color: var(--reroute); } .v-deny { color: var(--deny); } .b-allow { border-left-color: var(--allow); } .b-redact { border-left-color: var(--redact); } .b-reroute { border-left-color: var(--reroute); } .b-deny { border-left-color: var(--deny); } .evidence { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin: 12px 0; font-family: var(--mono); font-size: 13px; line-height: 2.1; white-space: pre-wrap; word-break: break-word; } .evidence mark { padding: 2px 4px; border-radius: 4px; background: #fde68a; color: #111827; position: relative; } .evidence mark::after { content: attr(data-label); font-size: 9.5px; font-family: -apple-system, sans-serif; background: var(--fg); color: var(--bg); border-radius: 3px; padding: 1px 4px; margin-left: 5px; vertical-align: middle; letter-spacing: 0.02em; } .evidence mark.cat-credential { background: #fecaca; } .evidence mark.cat-sensitive { background: #bfdbfe; } table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 10px 0; } th, td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; } th { background: var(--panel); font-weight: 600; white-space: nowrap; } td.num { text-align: right; font-variant-numeric: tabular-nums; } .table-scroll { overflow: auto; max-height: 460px; border-radius: 6px; } .chart { margin: 14px 0; } .chart svg { max-width: 100%; height: auto; } .pill { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); } .note { font-size: 13px; color: var(--muted); } .ok { color: var(--allow); font-weight: 600; } .bad { color: var(--deny); font-weight: 600; } h2 { font-size: 19px; margin: 22px 0 6px; } h3 { font-size: 15px; margin: 18px 0 4px; } p { margin: 8px 0; } code { font-family: var(--mono); background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 92%; } ul { padding-left: 20px; } li { margin: 4px 0; } a { color: var(--accent); } .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; } hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; } @media (max-width: 640px) { .wrap { padding: 16px 12px 60px; } header h1 { font-size: 22px; } }