/*
 * DeciusAc "Console" theme layer (Option B, Craig 2026-11-18).
 * Loaded after style.css by Code Snippet "Theme: Console layer". Turn that snippet off to get the old look back.
 * Same pages and markup; this only restyles: square edges, ruled 1px grids, IBM Plex Sans + JetBrains Mono
 * (self-hosted), calmer green, a tool board on the home page and an index on Security Tools.
 */
@font-face { font-family: 'IBM Plex Sans'; src: url('dac-ibmplexsans.woff2') format('woff2'); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('dac-jetbrainsmono.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ---------- tokens (dark default, light via [data-theme="light"]) ---------- */
:root {
  --bg-base: #050807; --bg-surface: #0a0f0c; --bg-card: #0a0f0c; --bg-elevated: #0f1612; --bg-inset: #040706;
  --border-subtle: #131b16; --border-default: #1a241e; --border-strong: #26332b; --border-accent: rgba(34,197,94,.35);
  --text-primary: #dfe9e2; --text-secondary: #a9b8ae; --text-muted: #6f8076; --text-dim: #3f4b44;
  --accent: #22c55e; --accent-light: #4ade80; --accent-dim: rgba(34,197,94,.5); --accent-glow: rgba(34,197,94,.08);
  --glow-sm: none; --glow-md: none; --glow-lg: none;
  --shadow-xs: none; --shadow-sm: none; --shadow-md: 0 12px 32px -18px rgba(0,0,0,.8); --shadow-lg: 0 16px 40px -18px rgba(0,0,0,.85);
  --r-sm: 2px; --r-md: 2px; --r-lg: 2px; --r-xl: 2px;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --dac-hdr: rgba(5,8,7,.82); --dac-accent-ink: #03140a; --dac-warn: #eab308; --dac-crit: #ef4444;
}
[data-theme="light"] {
  --bg-base: #f3f5f2; --bg-surface: #ffffff; --bg-card: #ffffff; --bg-elevated: #e9ede8; --bg-inset: #e3e8e2;
  --border-subtle: #e2e7e1; --border-default: #d3dbd2; --border-strong: #b6c2b5; --border-accent: rgba(21,122,60,.4);
  --text-primary: #0d1a12; --text-secondary: #2f3d34; --text-muted: #5d6b62; --text-dim: #93a097;
  --accent: #157a3c; --accent-light: #16a34a; --accent-dim: rgba(21,122,60,.5); --accent-glow: rgba(21,122,60,.08);
  --shadow-md: 0 10px 28px -18px rgba(13,26,18,.35); --shadow-lg: 0 14px 36px -18px rgba(13,26,18,.4);
  --dac-hdr: rgba(243,245,242,.88); --dac-accent-ink: #ffffff; --dac-warn: #a16207; --dac-crit: #b91c1c;
}

html body { font-family: var(--font-sans); background-color: var(--bg-base); color: var(--text-primary); }
html body ::selection { background: var(--accent); color: var(--dac-accent-ink); }

/* ---------- header ---------- */
html body .site-header {
  background: var(--dac-hdr); border: 0; border-bottom: 1px solid var(--border-default); border-radius: 0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none;
}
html body .site-header:hover { background: var(--dac-hdr); }
html body .site-title { font-family: var(--font-mono); }
html body .site-title:hover { color: var(--accent); }
html body .resume-btn, html body .header-chat-btn, html body .dacm-theme-btn, html body .dacm-srch-btn, html body .menu-toggle {
  border-radius: 2px; border: 1px solid var(--border-default); background: var(--bg-surface); box-shadow: none; font-family: var(--font-mono);
}
html body .resume-btn:hover, html body .header-chat-btn:hover, html body .dacm-theme-btn:hover, html body .dacm-srch-btn:hover {
  border-color: var(--border-accent); color: var(--accent); background: var(--bg-surface);
}

/* breach ticker: square red tag, ruled items */
html body .breach-ticker { border-radius: 0; border-top: 1px solid var(--border-default); background: var(--bg-surface); margin-top: .5rem; }
html body .ticker-label {
  border-radius: 0; background: var(--dac-crit); color: #fff; border: 0; font-family: var(--font-mono); letter-spacing: .08em; font-weight: 700;
}
html body .ticker-label .ticker-dot { background: #fff; box-shadow: none; }
html body .ticker-item { border-right: 1px solid var(--border-subtle); }
html body .ticker-date { font-family: var(--font-mono); color: var(--text-secondary); }

/* ---------- hero: left-aligned statement + quick check ---------- */
html body .hero { border-bottom: 1px solid var(--border-default); background: var(--bg-base); }
html body .hero-glow, html body .scanline { display: none; }
html body .hero-grid { opacity: .05; }
html body .hero-overlay { background: none; }
html body .hero-content { text-align: left; max-width: 1180px; width: 100%; margin-inline: auto; padding: 0 1.25rem; }
html body .dac-hero-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
html body .dac-hero-cols > .dac-hero-main { padding: 0 2.5rem 0 0; border-right: 1px solid var(--border-default); min-width: 0; }
html body .dac-hero-cols > .dac-qc { padding: 0 0 0 2.5rem; min-width: 0; }
html body .hero h1 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
html body .hero h1 .highlight { color: var(--text-primary); text-shadow: none; box-shadow: inset 0 -.12em 0 var(--accent); }
html body .hero h1 br { display: none; }
html body .hero-tagline { color: var(--text-secondary); }
html body .hero-description { color: var(--text-muted); max-width: 54ch; margin-left: 0; }
html body .hero-buttons { justify-content: flex-start; gap: 0; }
html body .hero-buttons .btn + .btn { margin-left: -1px; }
html body .terminal-prompt { justify-content: flex-start; font-family: var(--font-mono); }
html body .tutorial-links { text-align: left; }
html body .tutorial-tags { justify-content: flex-start; }
html body .tutorial-tag { border-radius: 2px; border-color: var(--border-default); background: var(--bg-surface); }
html body .tutorial-tag:hover { border-color: var(--border-accent); color: var(--accent); }

/* buttons */
html body .btn { border-radius: 2px; box-shadow: none; font-family: var(--font-mono); letter-spacing: 0; transform: none; }
html body .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--dac-accent-ink); }
html body .btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); box-shadow: none; transform: none; }
html body .btn-outline { background: var(--bg-surface); border-color: var(--border-default); color: var(--text-primary); }
html body .btn-outline:hover { border-color: var(--border-accent); color: var(--accent); background: var(--bg-surface); box-shadow: none; transform: none; }

/* quick check box (markup added by the Console snippet) */
.dac-qc .dac-label { font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .6rem; display: block; }
.dac-qc-box { border: 1px solid var(--border-default); background: var(--bg-surface); text-align: left; }
.dac-qc-box form { display: flex; border-bottom: 1px solid var(--border-default); margin: 0; }
.dac-qc-box .dac-pfx { display: flex; align-items: center; padding: 0 .75rem; font: 600 13px var(--font-mono); color: var(--accent); border-right: 1px solid var(--border-subtle); }
.dac-qc-box input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text-primary); font: 14px var(--font-mono); padding: .75rem; outline: none; }
.dac-qc-box button { border: 0; border-left: 1px solid var(--border-default); background: var(--accent); color: var(--dac-accent-ink); font: 600 13px var(--font-mono); padding: 0 1.1rem; cursor: pointer; }
.dac-qc-box button:disabled { opacity: .6; cursor: wait; }
.dac-qc-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .55rem .75rem; border-top: 1px solid var(--border-subtle); font: 12.5px var(--font-mono); }
.dac-qc-row:first-child { border-top: 0; }
.dac-qc-row .k { color: var(--text-muted); }
.dac-qc-row .v { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dac-qc-row a.v:hover { color: var(--accent); }
.dac-st { font-weight: 700; font-size: 11px; padding: 1px 7px; border: 1px solid currentColor; }
.dac-st.ok { color: var(--accent); } .dac-st.warn { color: var(--dac-warn); } .dac-st.bad { color: var(--dac-crit); } .dac-st.wait { color: var(--text-muted); }
.dac-qc-hint { display: block; margin-top: .6rem; font: 12px var(--font-mono); color: var(--text-muted); }

/* ---------- features: ruled tool board, toolbox gets the big square ---------- */
html body .features { border-top: 0; border-bottom: 1px solid var(--border-default); padding: 3rem 0; }
html body .features-grid { gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border-default); border-left: 1px solid var(--border-default); }
html body .features .feature-card, html body .features .feature-card-link {
  border-radius: 0; border: 0; border-right: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface); box-shadow: none; transform: none; padding: 1.25rem; min-width: 0;
}
html body .features .feature-card:hover, html body .features .feature-card-link:hover { background: var(--bg-elevated); transform: none; box-shadow: none; border-color: var(--border-default); }
html body .features .feature-card::before, html body .features .feature-card::after { display: none; }
html body .feature-icon { border-radius: 2px; background: var(--accent-glow); border: 1px solid var(--border-accent); box-shadow: none; }
html body .feature-card h3 { font-family: var(--font-sans); letter-spacing: -.01em; }
html body .feature-card p { color: var(--text-muted); }
html body .features-grid > .feature-card.dac-big { order: -1; grid-column: span 2; grid-row: span 2; }
html body .features-grid > .feature-card.dac-big h3 { font-size: 1.6rem; letter-spacing: -.02em; }
html body .features-grid > .feature-card.dac-big p { font-size: 1rem; color: var(--text-secondary); max-width: 44ch; }

/* ---------- support + footer ---------- */
html body .support { border-top: 0; border-bottom: 1px solid var(--border-default); background: var(--bg-base); }
html body .support-icon { border-radius: 2px; box-shadow: none; }
html body .support h2 .highlight { text-shadow: none; }
html body .site-footer { border-top: 1px solid var(--border-default); background: var(--bg-base); font-family: var(--font-mono); }
html body .footer-contact-btn { border-radius: 2px; border: 1px solid var(--border-default); background: var(--bg-surface); box-shadow: none; }
html body .footer-contact-btn:hover { border-color: var(--border-accent); color: var(--accent); }

/* ---------- Security Tools: picker becomes a searchable index ---------- */
html body .st-picker { gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-default); border-left: 1px solid var(--border-default); }
html body .st-picker .st-pick-card {
  flex-direction: row; align-items: center; gap: .85rem; padding: .7rem .9rem; border-radius: 0; border: 0;
  border-right: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); background: var(--bg-surface); text-align: left; min-width: 0;
}
html body .st-picker .st-pick-card:hover { background: var(--bg-elevated); border-color: var(--border-default); }
html body .st-picker .st-pick-icon, html body .st-picker .st-pick-icon svg { width: 22px; height: 22px; flex: none; }
html body .st-picker .st-pick-label { font-family: var(--font-sans); font-size: .9rem; }
html body .st-picker .st-pick-sub { text-align: left; margin-left: auto; font-family: var(--font-mono); font-size: .68rem; }
html body .st-picker .st-pick-card[hidden] { display: none !important; }
.dac-idx-bar { display: flex; flex-wrap: wrap; border: 1px solid var(--border-default); background: var(--bg-surface); margin-bottom: -1px; }
.dac-idx-bar label { flex: 1 1 260px; display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; border-right: 1px solid var(--border-default); margin: 0; }
.dac-idx-bar label span { font: 700 13px var(--font-mono); color: var(--accent); }
.dac-idx-bar input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text-primary); font: 14px var(--font-mono); padding: .7rem 0; outline: none; }
.dac-idx-tabs { display: flex; flex-wrap: wrap; }
.dac-idx-tabs button { font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; border: 0; border-right: 1px solid var(--border-subtle); background: none; color: var(--text-muted); padding: 0 .9rem; min-height: 42px; cursor: pointer; }
.dac-idx-tabs button[aria-pressed="true"] { color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--accent); }
.dac-idx-empty { padding: 1rem; border: 1px solid var(--border-default); border-top: 0; color: var(--text-muted); font: 13px var(--font-mono); }

/* ---------- inside each tool: results, inputs, tabs, code (Console look) ---------- */
html body .st-input, html body .st-input-row input, html body .sn88-ta, html body .st-input-row select {
  border-radius: 2px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font-family: var(--font-mono); box-shadow: none;
}
html body .st-input:focus, html body .st-input-row input:focus, html body .sn88-ta:focus { border-color: var(--border-accent); outline: none; box-shadow: none; }
html body .st-input-row { border-radius: 2px; gap: 0; }
html body .st-input-row > * + * { margin-left: -1px; }
html body .st-btn, html body .tp-btn, html body .dacm-act-btn, html body .netdiag-btn, html body .netgame-btn, html body .wfb-btn, html body .wfb-tpl-btn {
  border-radius: 2px; box-shadow: none; transform: none; font-family: var(--font-mono);
}
html body .st-btn:hover, html body .tp-btn:hover, html body .dacm-act-btn:hover { transform: none; box-shadow: none; }
html body .st-result, html body .st-summary, html body .sn88-panel, html body .st-device-card, html body .wfb-panel, html body .netdiag-panel {
  border-radius: 0; border: 1px solid var(--border-default); background: var(--bg-surface); box-shadow: none;
}
html body .st-summary { border-left: 3px solid var(--accent); }
html body .st-row, html body .sn88-irow { border-radius: 0; border: 0; border-bottom: 1px solid var(--border-subtle); background: none; }
html body .st-row:last-child, html body .sn88-irow:last-child { border-bottom: 0; }
html body .st-row-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
html body .st-row-val, html body .sn88-val, html body .st-mv { font-family: var(--font-mono); color: var(--text-primary); }
html body .st-ml, html body .st-device-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
html body .st-grade, html body .grade_letter { border-radius: 2px; font-family: var(--font-mono); box-shadow: none; text-shadow: none; }
html body .st-badge, html body .sn88-tag, html body .dacm-fix-pri { border-radius: 2px; font-family: var(--font-mono); letter-spacing: .04em; }
html body .st-issue, html body .st-rec, html body .sn88-chk { border-radius: 0; border: 0; border-left: 3px solid var(--border-strong); background: var(--bg-elevated); }
html body .st-error { border-radius: 0; border: 1px solid var(--dac-crit); border-left-width: 3px; background: var(--bg-surface); color: var(--text-primary); }
html body .st-loading { border-radius: 0; font-family: var(--font-mono); color: var(--text-muted); }
html body .sn88-tabs { gap: 0; border-bottom: 1px solid var(--border-default); border-radius: 0; background: none; }
html body .sn88-tab { border-radius: 0; border: 0; background: none; color: var(--text-muted); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: none; }
html body .sn88-tab.active { color: var(--text-primary); background: none; box-shadow: inset 0 -2px 0 var(--accent); }
html body .sn88-pre, html body .sys-ssh-output, html body .dacm-curl-block, html body .st-tool pre, html body .st-result pre {
  border-radius: 0; border: 1px solid var(--border-default); background: var(--bg-inset); font-family: var(--font-mono);
}
html body .dacm-curl-copy { border-radius: 2px; font-family: var(--font-mono); }
html body .st-back-link, html body .st-bc-tool, html body .st-bc-sep { font-family: var(--font-mono); }
html body .st-back-link:hover { color: var(--accent); }
html body table { border-collapse: collapse; }
html body .st-result table td, html body .st-result table th, html body .sn88-panel table td, html body .sn88-panel table th { border-bottom: 1px solid var(--border-subtle); border-radius: 0; }
html body .st-result table th, html body .sn88-panel table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.dac-qc-share { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font: 12px var(--font-mono); color: var(--text-muted); }
.dac-qc-share button { border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font: 600 12px var(--font-mono); padding: .35rem .7rem; cursor: pointer; border-radius: 2px; }
.dac-qc-share button:hover { border-color: var(--border-accent); color: var(--accent); }
.dac-qc-share code { font-family: var(--font-mono); color: var(--text-secondary); overflow-wrap: anywhere; }

/* ---------- general polish everywhere ---------- */
html body input, html body select, html body textarea { border-radius: 2px; }
html body :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  html body .dac-hero-cols { grid-template-columns: 1fr; }
  html body .dac-hero-cols > .dac-hero-main { padding: 0 0 1.75rem; border-right: 0; border-bottom: 1px solid var(--border-default); }
  html body .dac-hero-cols > .dac-qc { padding: 1.75rem 0 0; }
  html body .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .features-grid > .feature-card.dac-big { grid-row: auto; }
}
@media (max-width: 600px) {
  html body .features-grid { grid-template-columns: 1fr; }
  html body .features-grid > .feature-card.dac-big { grid-column: auto; }
  html body .st-picker { grid-template-columns: 1fr; }
  .dac-qc-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) { html body * { transition: none !important; } }
