:root {
  --ink: #12243a;
  --muted: #667386;
  --paper: #edf3f6;
  --surface: #f9fbfc;
  --line: #c9d8df;
  --signal: #e45a3a;
  --signal-dark: #b83e24;
  --blueprint: rgba(26, 78, 104, 0.07);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.blueprint { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--blueprint) 1px, transparent 1px), linear-gradient(90deg, var(--blueprint) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to right, black, transparent 72%); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
.identity { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 8vw, 8rem); }
.mark { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: clamp(4rem, 12vh, 9rem); border: 2px solid var(--ink); font: 700 27px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: -3px; transform: rotate(-2deg); }
.mark span { color: var(--signal); }
.eyebrow, .panel-index { margin: 0 0 1rem; font: 700 .72rem/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.identity h1, .workspace-heading h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; line-height: .94; letter-spacing: -.055em; }
.identity-copy { max-width: 430px; margin: 2rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.login-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(3rem, 7vw, 7rem); color: var(--surface); background: var(--ink); }
.panel-index { color: #91a9ba; }
.login-panel h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 400; letter-spacing: -.04em; }
.panel-copy { margin: .75rem 0 0; color: #a9bac6; }
.login-form { display: grid; gap: 1.5rem; margin-top: 5rem; }
.login-form label { display: grid; gap: .55rem; }
.login-form label span { font: 600 .72rem/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: #b5c3cc; }
.login-form input { width: 100%; border: 0; border-bottom: 1px solid #526578; border-radius: 0; padding: .85rem 0; color: white; outline: none; background: transparent; font-size: 1.05rem; transition: border-color 160ms ease; }
.login-form input:focus { border-color: var(--signal); }
.form-error { margin: -.25rem 0; color: #ffb29f; font-size: .9rem; }
.login-form button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 1rem; border: 0; padding: 1rem 1.1rem; color: white; background: var(--signal); cursor: pointer; font-weight: 700; transition: background 160ms ease, transform 160ms ease; }
.login-form button:hover { background: var(--signal-dark); transform: translateY(-2px); }
.login-form button:focus-visible, .text-button:focus-visible { outline: 3px solid #ffb29f; outline-offset: 3px; }
.app-header { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); background: rgba(237, 243, 246, .9); backdrop-filter: blur(12px); }
.brand { display: flex; gap: .8rem; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand-mark { color: var(--signal); font: 800 1.25rem/1 ui-monospace, monospace; }
.text-button { border: 0; padding: .5rem; color: var(--muted); background: none; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.workspace { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 10vw, 9rem) clamp(1.25rem, 5vw, 3rem); }
.workspace-heading h1 { max-width: 850px; font-size: clamp(3.2rem, 7vw, 6.5rem); }
.workspace-heading > p:last-child { max-width: 600px; margin: 2rem 0 0; color: var(--muted); line-height: 1.65; }
.empty-bay { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; margin-top: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 2rem 0; }
.empty-symbol { width: 58px; height: 58px; display: grid; place-items: center; border: 1px dashed #8aa0ad; color: var(--signal); font: 300 2rem/1 Georgia, serif; }
.empty-title { margin: 0 0 .35rem; font-family: Georgia, serif; font-size: 1.35rem; }
.empty-copy { margin: 0; color: var(--muted); font-size: .92rem; }
.status { margin: 0; color: var(--muted); font: 600 .7rem/1.2 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.status span { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: #38a169; }
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .identity { min-height: 42vh; padding: 2rem 1.5rem 3.5rem; }
  .mark { width: 52px; height: 52px; margin-bottom: 4rem; font-size: 22px; }
  .identity h1 { font-size: clamp(2.8rem, 13vw, 4.3rem); }
  .identity-copy { margin-top: 1.25rem; }
  .login-panel { min-height: 58vh; padding: 3rem 1.5rem; }
  .login-form { margin-top: 4rem; }
  .empty-bay { grid-template-columns: auto 1fr; }
  .status { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

.tool-list { display: grid; gap: 1rem; margin-top: clamp(3rem, 8vw, 6rem); }
.tool-card { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.tool-card h2 { margin: 0 0 .3rem; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.tool-card p { margin: 0; color: var(--muted); }
.tool-mark { display: flex; gap: .25rem; }
.tool-mark { gap: 5px; }
.tool-mark i { width: 18px; height: 26px; border-radius: 2px; background: repeating-linear-gradient(45deg, #3b2f4a 0 2px, #5c4a6e 2px 4px); }
