:root {
  --ink: #f2f4ff;
  --ink-soft: #b7bdd6;
  --muted: #7c84a3;
  --paper: #0b1020;
  --paper-deep: #11172b;
  --card: #151c34;
  --card-alt: #10172b;
  --line: rgba(169, 181, 225, .15);
  --line-strong: rgba(169, 181, 225, .28);
  --teal: #a8ff60;
  --teal-dark: #71c934;
  --teal-pale: rgba(168, 255, 96, .11);
  --orange: #b896ff;
  --orange-pale: rgba(184, 150, 255, .12);
  --shadow: 0 30px 90px rgba(0, 0, 0, .32);
  --radius-lg: 24px;
  --radius-md: 14px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at 12% 0%, rgba(110, 72, 204, .22), transparent 32%), radial-gradient(circle at 88% 18%, rgba(168, 255, 96, .08), transparent 27%), linear-gradient(180deg, #0b1020 0%, #0c1224 60%, #090e1b 100%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.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; }
.site-shell { overflow: hidden; }
.site-header { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 850; letter-spacing: -.05em; }
.brand-name span, .footer-brand span { color: var(--teal); }
.brand-mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; padding: 5px; background: linear-gradient(135deg, var(--teal), #74d6ff); border-radius: 8px 8px 8px 2px; box-shadow: 0 0 22px rgba(168,255,96,.22); }
.brand-mark span { display: block; background: #0d1623; border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 7px; opacity: .55; }.brand-mark span:nth-child(2) { height: 12px; opacity: .78; }.brand-mark span:nth-child(3) { height: 17px; }
.header-nav { display: flex; align-items: center; gap: 34px; margin-left: 100px; }
.header-nav a { padding: 30px 0 27px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.header-nav a:hover, .header-nav a.active { color: var(--ink); border-color: var(--teal); }
.header-status { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(168,255,96,.12), 0 0 14px var(--teal); }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 490px; display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: 80px; padding: 74px 0 54px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--teal); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 9px currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 25px; font-size: clamp(48px, 6vw, 76px); line-height: .99; letter-spacing: -.075em; font-weight: 850; }
h1 em { color: var(--teal); font-style: normal; text-shadow: 0 0 28px rgba(168,255,96,.19); }
.hero-intro { max-width: 460px; margin-bottom: 28px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 8px; transition: color .2s ease, border-color .2s ease; }
.text-link:hover { color: var(--teal); border-color: var(--teal); }.text-link span { color: var(--orange); font-size: 16px; }
.hero-visual { min-height: 340px; position: relative; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(145deg, rgba(25,34,63,.95), rgba(12,18,37,.95)); overflow: hidden; box-shadow: var(--shadow); }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(184,150,255,.13), transparent 47%), repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(168,255,96,.045) 50px); }
.hero-visual::after { content: "CIPHER / 001"; position: absolute; right: 18px; top: 14px; color: rgba(242,244,255,.36); font: 9px var(--mono); letter-spacing: .12em; }
.orbit { position: absolute; border: 1px solid rgba(168,255,96,.3); border-radius: 50%; transform: rotate(-27deg); }
.orbit-one { width: 350px; height: 184px; top: 78px; left: calc(50% - 175px); }.orbit-two { width: 275px; height: 132px; top: 103px; left: calc(50% - 137px); border-color: rgba(184,150,255,.44); transform: rotate(32deg); }
.hero-lock { position: absolute; left: calc(50% - 38px); top: 92px; width: 76px; height: 104px; }
.lock-shackle { display: block; width: 40px; height: 42px; margin: 0 auto -7px; border: 8px solid var(--teal); border-bottom: 0; border-radius: 24px 24px 0 0; filter: drop-shadow(0 0 8px rgba(168,255,96,.3)); }
.lock-body { display: flex; position: relative; height: 61px; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #b7ff6a, #6cc8ff); border-radius: 9px; box-shadow: 0 13px 25px rgba(72, 213, 157, .22); }.lock-body i { width: 9px; height: 13px; background: #0b1020; border-radius: 5px; opacity: .92; }.lock-body b { width: 3px; height: 8px; background: #0b1020; opacity: .92; }
.code-strip { position: absolute; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(10,16,33,.72); border: 1px solid rgba(169,181,225,.2); border-radius: 7px; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; backdrop-filter: blur(8px); }.code-strip span { color: var(--muted); }.code-strip strong { color: var(--ink-soft); font-size: 10px; font-weight: 600; }.strip-top { top: 18px; }.strip-bottom { bottom: 18px; }.strip-bottom strong { color: var(--orange); }.visual-note { position: absolute; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; transform: rotate(-90deg); }.note-one { left: 9px; top: 145px; }.note-two { right: 0; top: 146px; }
.workspace-section, .result-section, .reference-section { padding-top: 78px; }.section-heading, .result-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }.section-heading .eyebrow, .result-heading .eyebrow { margin-bottom: 13px; }.section-note { margin: 0 0 3px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.6; letter-spacing: .05em; text-align: right; text-transform: uppercase; }h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.04; letter-spacing: -.06em; }
.workspace-card { display: grid; grid-template-columns: 205px 1fr; min-height: 690px; background: rgba(21,28,52,.86); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(12px); }
.step-rail { padding: 39px 23px; background: rgba(10,16,33,.52); border-right: 1px solid var(--line); }.step-item { position: relative; padding: 0 0 41px 35px; color: var(--muted); }.step-item:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 28px; width: 1px; height: 48px; background: var(--line-strong); }.step-item span { position: absolute; left: 0; top: 0; color: var(--muted); font-family: var(--mono); font-size: 9px; }.step-item strong { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 750; }.step-item small { display: block; font-family: var(--mono); font-size: 9px; line-height: 1.4; }.step-item.active { color: var(--ink); }.step-item.active span { color: var(--teal); }.step-item.active::before { content: ""; position: absolute; left: -23px; top: -8px; width: 3px; height: 34px; border-radius: 0 3px 3px 0; background: var(--teal); box-shadow: 0 0 12px rgba(168,255,96,.65); }
.workbench-main { padding: 39px 42px 43px; }.mode-row, .selection-heading, .panel-heading { display: flex; align-items: start; justify-content: space-between; }.mode-row { padding-bottom: 31px; border-bottom: 1px solid var(--line); }.field-label { margin: 0 0 7px; font-size: 12px; font-weight: 800; }.field-hint { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .02em; }.segmented-control { display: inline-flex; padding: 4px; background: #0b1123; border: 1px solid var(--line); border-radius: 9px; }.segment { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 11px; font-weight: 750; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }.segment.active { color: #0d1523; background: var(--teal); box-shadow: 0 2px 13px rgba(168,255,96,.2); }.segment-icon { color: var(--orange); font-size: 16px; line-height: 10px; }.segment.active .segment-icon { color: #213411; }
.cipher-selection { padding: 31px 0; border-bottom: 1px solid var(--line); }.selection-count { color: var(--muted); font-family: var(--mono); font-size: 9px; }.cipher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 19px; }.cipher-option { position: relative; min-height: 139px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); text-align: left; background: rgba(10,16,33,.58); border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }.cipher-option:hover { transform: translateY(-2px); border-color: var(--line-strong); }.cipher-option.selected { background: var(--teal-pale); border-color: var(--teal); box-shadow: inset 0 0 0 1px rgba(168,255,96,.13), 0 0 25px rgba(168,255,96,.06); }.cipher-number { color: var(--muted); font-family: var(--mono); font-size: 9px; }.cipher-symbol { margin: 9px 0 6px; color: var(--teal); font-size: 20px; line-height: 1; }.cipher-name { font-size: 13px; font-weight: 800; }.cipher-description { max-width: 145px; margin-top: 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }.option-arrow { position: absolute; top: 15px; right: 15px; color: var(--orange); font-size: 14px; opacity: 0; transition: opacity .2s ease; }.cipher-option.selected .option-arrow { opacity: 1; }
#cipher-form { padding-top: 31px; }.input-grid { display: grid; grid-template-columns: .73fr 1.27fr; gap: 18px; }.key-panel, .text-panel { min-height: 196px; padding: 20px; background: rgba(10,16,33,.43); border: 1px solid var(--line); border-radius: var(--radius-md); }.panel-heading { margin-bottom: 17px; }.required-tag { color: var(--teal); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }.text-input, textarea { width: 100%; color: var(--ink); background: #0b1123; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }.text-input { height: 54px; padding: 0 15px; font-family: var(--mono); font-size: 18px; }.text-input::-webkit-inner-spin-button { opacity: .45; } textarea { display: block; min-height: 94px; padding: 13px 14px; resize: vertical; font-size: 13px; line-height: 1.55; }.text-input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(168,255,96,.11), 0 0 25px rgba(168,255,96,.06); } textarea::placeholder { color: #5f6784; }.input-helper { display: flex; gap: 7px; margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.45; }.helper-mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 13px; height: 13px; color: var(--teal); border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }.input-helper code { color: var(--teal); }
.message { margin-top: 14px; padding: 11px 14px; border-radius: 8px; font-family: var(--mono); font-size: 10px; line-height: 1.45; }.error-message { color: #e3b4ff; background: var(--orange-pale); border: 1px solid rgba(184,150,255,.35); }.action-row { display: flex; align-items: center; gap: 17px; margin-top: 23px; }.primary-button { display: inline-flex; align-items: center; gap: 19px; padding: 14px 17px 14px 19px; color: #0d1523; background: var(--teal); border: 0; border-radius: 7px; font-size: 11px; font-weight: 850; box-shadow: 0 8px 20px rgba(168,255,96,.14); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }.primary-button:hover { background: #c2ff8d; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(168,255,96,.2); }.button-arrow { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; color: #0d1523; background: rgba(13,21,35,.14); border-radius: 50%; font-size: 13px; }.clear-button { padding: 9px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid transparent; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }.clear-button:hover { color: var(--ink); border-color: var(--ink); }
.result-section { padding-top: 96px; }.result-meta { display: flex; align-items: center; gap: 20px; }.result-meta > span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }.copy-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; font-family: var(--mono); font-size: 9px; transition: border-color .2s ease, color .2s ease; }.copy-button:hover:not(:disabled) { color: var(--teal); border-color: var(--teal); }.copy-button:disabled { cursor: not-allowed; opacity: .45; }.copy-button span { color: var(--orange); font-size: 14px; }.result-card { min-height: 208px; display: flex; align-items: center; background: linear-gradient(135deg, #171e3a, #0b1123); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }.result-placeholder { width: 100%; padding: 42px; color: #8e98b8; text-align: center; }.placeholder-mark { display: block; margin-bottom: 13px; color: var(--teal); font-size: 25px; text-shadow: 0 0 16px rgba(168,255,96,.3); }.result-placeholder p { margin: 0 0 8px; color: #d0d5eb; font-size: 14px; font-weight: 700; }.result-placeholder small { color: #7180a3; font-family: var(--mono); font-size: 9px; }.result-content { width: 100%; padding: 37px 42px 31px; }.result-output { min-height: 75px; margin: 0 0 30px; color: #edf2ff; font-family: var(--mono); font-size: clamp(17px, 2.3vw, 25px); line-height: 1.6; letter-spacing: .04em; overflow-wrap: anywhere; }.result-footer { display: flex; justify-content: space-between; align-items: center; color: #7d89ad; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }.success-chip { display: inline-flex; align-items: center; gap: 7px; color: #b9ed8e; }.success-chip span { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 9px var(--teal); }
.reference-section { padding-bottom: 94px; }.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.reference-card { position: relative; min-height: 218px; padding: 26px 26px 21px; background: rgba(21,28,52,.78); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .2s ease, border-color .2s ease; }.reference-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }.reference-index { color: var(--teal); font-family: var(--mono); font-size: 9px; }.reference-card h3 { margin: 31px 0 10px; font-size: 18px; letter-spacing: -.04em; }.reference-card p { max-width: 260px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }.reference-rule { position: absolute; bottom: 21px; color: var(--orange); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }.site-footer { width: min(1180px, calc(100% - 48px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); }.footer-brand { color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.04em; }.site-footer p { margin: 0; font-size: 11px; }.footer-code { font-family: var(--mono); font-size: 9px !important; letter-spacing: .08em; }
@media (max-width: 900px) { .hero { gap: 38px; grid-template-columns: 1fr .8fr; }.workspace-card { grid-template-columns: 1fr; }.step-rail { display: flex; justify-content: space-between; padding: 24px 32px; border-right: 0; border-bottom: 1px solid var(--line); }.step-item { padding: 0 0 0 28px; }.step-item:not(:last-child)::after { left: auto; right: -35px; top: 5px; width: 25px; height: 1px; }.step-item.active::before { left: -32px; top: -24px; width: 100%; height: 3px; border-radius: 0; }.workbench-main { padding: 32px; } }
@media (max-width: 680px) { .site-header, main, .site-footer { width: min(100% - 32px, 560px); }.site-header { min-height: 69px; }.header-nav { display: none; }.header-status { font-size: 8px; }.hero { display: block; padding: 57px 0 26px; }.hero h1 { font-size: 52px; }.hero-intro { font-size: 14px; }.hero-visual { min-height: 270px; margin-top: 43px; }.orbit-one { width: 280px; height: 145px; top: 61px; left: calc(50% - 140px); }.orbit-two { width: 220px; height: 110px; top: 78px; left: calc(50% - 110px); }.hero-lock { top: 72px; transform: scale(.82); }.strip-top, .strip-bottom { left: 10px; right: 10px; }.workspace-section, .result-section, .reference-section { padding-top: 63px; }.section-heading, .result-heading { display: block; }.section-note { margin-top: 15px; text-align: left; }.workspace-card { border-radius: 17px; }.step-rail { display: block; padding: 28px 26px 5px; }.step-item { padding: 0 0 26px 28px; }.step-item:not(:last-child)::after { left: 4px; right: auto; top: 25px; width: 1px; height: 24px; }.step-item.active::before { left: -26px; top: -8px; width: 3px; height: 32px; }.workbench-main { padding: 27px 20px 30px; }.mode-row { display: block; }.segmented-control { margin-top: 19px; }.cipher-grid { grid-template-columns: 1fr; }.cipher-option { min-height: 106px; }.cipher-description { max-width: 230px; }.input-grid { grid-template-columns: 1fr; }.key-panel, .text-panel { min-height: auto; }.result-card { min-height: 192px; }.result-content, .result-placeholder { padding: 28px 22px; }.result-output { min-height: 85px; font-size: 15px; }.result-footer { align-items: flex-start; flex-direction: column; gap: 13px; }.reference-grid { grid-template-columns: 1fr; }.reference-card { min-height: 190px; }.site-footer { min-height: 119px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; } }

/* Theme palettes */
:root[data-theme="light"] {
  --ink: #172033;
  --ink-soft: #536079;
  --muted: #7d889d;
  --paper: #f4f7fb;
  --paper-deep: #e9eef7;
  --card: #ffffff;
  --card-alt: #f5f8fc;
  --line: #dce3ef;
  --line-strong: #c5d0e2;
  --teal: #0f8a77;
  --teal-dark: #096859;
  --teal-pale: #e1f6ef;
  --orange: #7654d7;
  --orange-pale: #f0ebff;
  --shadow: 0 26px 70px rgba(45, 65, 102, .12);
}
:root[data-theme="matrix"] {
  --ink: #d7ffd1;
  --ink-soft: #8dc887;
  --muted: #54835d;
  --paper: #050d08;
  --paper-deep: #07150b;
  --card: #0a1b0f;
  --card-alt: #07150b;
  --line: rgba(102, 255, 119, .16);
  --line-strong: rgba(102, 255, 119, .34);
  --teal: #66ff77;
  --teal-dark: #35c957;
  --teal-pale: rgba(102, 255, 119, .1);
  --orange: #d1ff57;
  --orange-pale: rgba(209, 255, 87, .1);
  --shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
:root[data-theme="light"] body::before { background: radial-gradient(circle at 12% 0%, rgba(122, 92, 226, .12), transparent 32%), radial-gradient(circle at 88% 18%, rgba(15, 138, 119, .08), transparent 27%), linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%); }
:root[data-theme="light"] body::after { opacity: .5; background-image: linear-gradient(rgba(41,63,101,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(41,63,101,.05) 1px, transparent 1px); }
:root[data-theme="light"] .hero-visual { background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(231,237,247,.95)); }
:root[data-theme="light"] .code-strip { background: rgba(255,255,255,.75); }
:root[data-theme="light"] .workspace-card { background: rgba(255,255,255,.82); }
:root[data-theme="light"] .step-rail { background: rgba(232,238,247,.72); }
:root[data-theme="light"] .cipher-option, :root[data-theme="light"] .key-panel, :root[data-theme="light"] .text-panel { background: rgba(246,249,253,.9); }
:root[data-theme="light"] .text-input, :root[data-theme="light"] textarea, :root[data-theme="light"] .segmented-control { background: #fff; }
:root[data-theme="light"] .segment.active { color: #fff; }
:root[data-theme="light"] .result-card { background: linear-gradient(135deg, #1d284a, #111a33); }
:root[data-theme="matrix"] body::before { background: radial-gradient(circle at 50% -10%, rgba(47, 255, 91, .13), transparent 34%), linear-gradient(180deg, #050d08 0%, #030806 100%); }
:root[data-theme="matrix"] body::after { opacity: .22; background-image: linear-gradient(rgba(102,255,119,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(102,255,119,.08) 1px, transparent 1px); }
:root[data-theme="matrix"] .hero-visual, :root[data-theme="matrix"] .workspace-card, :root[data-theme="matrix"] .result-card { border-radius: 8px; }
:root[data-theme="matrix"] .hero-visual::after, :root[data-theme="matrix"] .header-status, :root[data-theme="matrix"] .field-hint { text-shadow: 0 0 7px rgba(102,255,119,.3); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.theme-switcher { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: rgba(10,16,33,.32); }
.theme-label { padding: 0 6px 0 7px; color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.theme-button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 7px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font: 9px var(--mono); transition: color .2s ease, background .2s ease; }
.theme-button:hover, .theme-button.active { color: var(--ink); background: var(--teal-pale); }
.theme-swatch { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.swatch-neon { background: #a8ff60; box-shadow: 0 0 7px rgba(168,255,96,.6); }.swatch-light { background: #fff; border: 1px solid #aebbd0; }.swatch-matrix { background: #66ff77; box-shadow: 0 0 7px rgba(102,255,119,.6); }
.reference-card { padding-bottom: 48px; }
.example-button { position: absolute; right: 20px; bottom: 18px; padding: 6px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid transparent; font: 9px var(--mono); letter-spacing: .03em; transition: color .2s ease, border-color .2s ease; }
.example-button:hover, .example-button.active { color: var(--teal); border-color: var(--teal); }
.learn-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; margin-top: 14px; padding: 25px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(110deg, var(--teal-pale), rgba(184,150,255,.07)); }
.learn-copy .eyebrow { margin-bottom: 12px; }.learn-copy h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.04em; }.learn-copy > p:last-child { max-width: 570px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.learn-example { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line-strong); }.learn-label { color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }.learn-example code { color: var(--ink); font: 12px/1.6 var(--mono); }.load-example-button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; color: #0d1523; background: var(--teal); border: 0; border-radius: 6px; font-size: 10px; font-weight: 800; }.load-example-button:hover:not(:disabled) { background: #c2ff8d; }.load-example-button:disabled { cursor: not-allowed; opacity: .45; }.load-example-button span { font-size: 14px; }
@media (max-width: 900px) { .header-actions { gap: 10px; }.theme-label { display: none; }.theme-button { padding: 6px; }.learn-panel { grid-template-columns: 1fr; }.learn-example { padding: 18px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; } }
@media (max-width: 680px) { .header-actions { gap: 8px; }.theme-switcher { padding: 3px; }.theme-button { font-size: 0; }.theme-swatch { width: 10px; height: 10px; }.learn-panel { padding: 21px 18px; }.example-button { right: 16px; } }

.auth-actions { display: flex; align-items: center; gap: 8px; }
.auth-open-button { padding: 9px 12px; color: var(--ink); background: var(--teal-pale); border: 1px solid var(--line-strong); border-radius: 7px; font: 10px var(--mono); transition: border-color .2s ease, color .2s ease; }.auth-open-button:hover { color: var(--teal); border-color: var(--teal); }
.user-menu { display: inline-flex; align-items: center; gap: 7px; padding: 4px 5px 4px 4px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font: 9px var(--mono); }.user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: #0d1523; background: var(--teal); border-radius: 50%; font-weight: 800; }.logout-button { padding: 3px 5px; color: var(--muted); background: transparent; border: 0; font: 8px var(--mono); }.logout-button:hover { color: var(--orange); }
.auth-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }.auth-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 13, .75); backdrop-filter: blur(8px); }.auth-dialog { position: relative; width: min(100%, 430px); padding: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }.auth-close { position: absolute; top: 15px; right: 18px; color: var(--muted); background: transparent; border: 0; font-size: 25px; line-height: 1; }.auth-close:hover { color: var(--ink); }.auth-dialog h2 { margin-bottom: 9px; }.auth-subtitle { margin-bottom: 22px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }.auth-tabs { display: flex; gap: 5px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }.auth-tab { padding: 10px 0; margin-right: 18px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 800; }.auth-tab.active { color: var(--ink); border-color: var(--teal); }.auth-form { display: grid; gap: 8px; }.auth-form label { margin-top: 5px; color: var(--ink-soft); font: 10px var(--mono); }.auth-form input { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); background: var(--card-alt); border: 1px solid var(--line-strong); border-radius: 7px; outline: none; }.auth-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(168,255,96,.1); }.auth-submit { justify-content: space-between; margin-top: 10px; }.auth-error { margin: 5px 0 0; padding: 10px; color: #ffb8df; background: var(--orange-pale); border: 1px solid rgba(184,150,255,.35); border-radius: 7px; font: 10px/1.45 var(--mono); }.auth-footnote { margin: 20px 0 0; color: var(--muted); font: 9px/1.5 var(--mono); }
.account-section { padding: 78px 0 0; }.account-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 14px; }.account-summary, .history-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(21,28,52,.78); }.account-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }.account-kicker, .account-muted { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }.account-summary strong { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }.change-password-button, .clear-history-button { margin-top: 18px; padding: 8px 0; color: var(--teal); background: transparent; border: 0; border-bottom: 1px solid transparent; font: 9px var(--mono); }.change-password-button:hover, .clear-history-button:hover { border-color: var(--teal); }.history-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 12px; }.clear-history-button { margin: 0; color: var(--muted); }.history-list { display: grid; gap: 7px; }.history-empty { margin: 0; color: var(--muted); font: 10px var(--mono); }.history-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; background: rgba(10,16,33,.5); border: 1px solid var(--line); border-radius: 7px; }.history-item strong, .history-item span, .history-item code, .history-item time { display: block; }.history-item strong { color: var(--teal); font: 9px var(--mono); }.history-item span { margin-top: 4px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.history-item code { color: var(--ink-soft); font: 10px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.history-item time { color: var(--muted); font: 8px var(--mono); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .header-status { display: none; }.account-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .auth-open-button { padding: 7px 8px; font-size: 9px; }.user-menu { max-width: 125px; }.user-menu #user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.auth-dialog { padding: 28px 22px; }.history-item { grid-template-columns: 1fr; gap: 5px; }.history-item time { margin-top: 3px; }.account-section { padding-top: 63px; } }
