/* Minification failed. Returning unminified contents.
(24,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(25,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(26,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(27,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(28,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(29,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(30,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(31,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(32,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(33,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(34,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(42,22): run-time error CSS1039: Token not allowed after unary operator: '-bg'
(43,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(50,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(75,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(76,34): run-time error CSS1039: Token not allowed after unary operator: '-border'
(88,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(96,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(104,25): run-time error CSS1039: Token not allowed after unary operator: '-radius'
(105,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(112,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(113,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(118,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(119,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(125,32): run-time error CSS1039: Token not allowed after unary operator: '-border'
(128,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(153,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(160,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(161,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(162,25): run-time error CSS1039: Token not allowed after unary operator: '-radius'
(171,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(185,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(199,22): run-time error CSS1039: Token not allowed after unary operator: '-bg'
(200,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(201,25): run-time error CSS1039: Token not allowed after unary operator: '-radius'
(202,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(213,24): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(217,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(229,17): run-time error CSS1039: Token not allowed after unary operator: '-sell'
(236,28): run-time error CSS1039: Token not allowed after unary operator: '-sell'
(237,25): run-time error CSS1039: Token not allowed after unary operator: '-radius'
(240,17): run-time error CSS1039: Token not allowed after unary operator: '-sell'
(254,25): run-time error CSS1039: Token not allowed after unary operator: '-radius'
(261,22): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(268,24): run-time error CSS1039: Token not allowed after unary operator: '-border'
(269,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(271,41): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(286,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(289,35): run-time error CSS1039: Token not allowed after unary operator: '-border'
(294,35): run-time error CSS1039: Token not allowed after unary operator: '-border'
(299,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(318,17): run-time error CSS1039: Token not allowed after unary operator: '-buy'
(323,17): run-time error CSS1039: Token not allowed after unary operator: '-sell'
(327,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(328,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(332,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(333,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
(340,25): run-time error CSS1039: Token not allowed after unary operator: '-radius'
(347,28): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(348,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(362,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(363,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(364,25): run-time error CSS1039: Token not allowed after unary operator: '-radius'
(379,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(385,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(395,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(401,17): run-time error CSS1039: Token not allowed after unary operator: '-accent'
(413,17): run-time error CSS1039: Token not allowed after unary operator: '-text-dim'
(418,28): run-time error CSS1039: Token not allowed after unary operator: '-border'
(420,17): run-time error CSS1039: Token not allowed after unary operator: '-text'
 */
/* ============================================================
   Trading Ledger — design tokens
   Palette:
     --bg        #14151A  near-black charcoal
     --surface   #1C1E26  panel background
     --surface-2 #232733  raised panel / hover
     --border    #2B2E3A  hairline
     --text      #E7E5DC  warm off-white
     --text-dim  #9B9D A8 / #8B8D98 muted
     --accent    #5EEAD4  mint (primary actions, highlights)
     --buy       #5EEAD4  mint = buy / long
     --sell      #F2967D  coral = sell / short
     --warn      #F2C078  amber = alerts

   Type:
     Display  — "Space Grotesk" (headings, nav, signature numerals)
     Body     — "Inter" (body copy, labels)
     Mono     — "IBM Plex Mono" (prices, quantities, symbols, dates)
   ============================================================ */

/* fonts: system stacks only (no third-party requests; strict CSP) */

:root {
    --bg: #14151A;
    --surface: #1C1E26;
    --surface-2: #232733;
    --border: #2B2E3A;
    --text: #E7E5DC;
    --text-dim: #8B8D98;
    --accent: #5EEAD4;
    --buy: #5EEAD4;
    --sell: #F2967D;
    --warn: #F2C078;
    --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em 0;
}

.mono {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-feature-settings: "tnum";
}

/* ── Layout shell ─────────────────────────────────────────── */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-nav {
    width: 220px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-nav .brand {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.app-nav .brand .tick {
    color: var(--accent);
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 13px;
}

.app-nav a.nav-link {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}

.app-nav a.nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

.app-nav a.nav-link.active {
    background: var(--surface-2);
    color: var(--accent);
}

.app-nav .nav-spacer { flex: 1; }

.app-nav .nav-foot {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font-size: 13px;
    color: var(--text-dim);
}

.app-main {
    flex: 1;
    padding: 32px 40px;
    max-width: 1200px;
}

/* ── Page header ──────────────────────────────────────────── */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 26px;
}

.page-header .subtitle {
    color: var(--text-dim);
    font-size: 14px;
}

/* ── Cards / panels ───────────────────────────────────────── */

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.panel h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ── Forms ────────────────────────────────────────────────── */

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field input[type="datetime"],
.field input[type="datetime-local"],
.field select,
.field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 10px 12px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 14px;
    transition: border-color 0.12s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.field .hint {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 6px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.field-error {
    color: var(--sell);
    font-size: 13px;
    margin-top: 6px;
}

.validation-summary-errors {
    background: rgba(242, 150, 125, 0.1);
    border: 1px solid var(--sell);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 18px;
    color: var(--sell);
    font-size: 14px;
}

.validation-summary-errors ul { margin: 0; padding-left: 18px; }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
    display: inline-block;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.12s, background 0.12s;
}

.btn-primary {
    background: var(--accent);
    color: #0B1411;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-secondary:hover { background: var(--surface-2); }

/* ── Tables ───────────────────────────────────────────────── */

table.ledger {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.ledger th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    font-weight: 500;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

table.ledger td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

table.ledger tr:hover td {
    background: var(--surface-2);
}

table.ledger td.num { text-align: right; }

/* ── Tags ─────────────────────────────────────────────────── */

.tag {
    display: inline-block;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.tag-buy {
    background: rgba(94, 234, 212, 0.12);
    color: var(--buy);
}

.tag-sell {
    background: rgba(242, 150, 125, 0.12);
    color: var(--sell);
}

.tag-open {
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.tag-close {
    border: 1px solid var(--border);
    color: var(--text);
}

/* ── Alerts ───────────────────────────────────────────────── */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 18px;
}

.alert-success {
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* ── Login page ───────────────────────────────────────────── */

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.login-card .brand {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.login-card .brand .tick {
    color: var(--accent);
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 14px;
}

.login-card .tagline {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 28px;
}

/* ── Empty state ──────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state .glyph {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ── Pagination ───────────────────────────────────────────── */

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 13px;
    color: var(--text-dim);
}

.pagination a {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

@media (max-width: 800px) {
    .app-shell { flex-direction: column; }
    .app-nav { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .app-nav .nav-spacer { display: none; }
    .app-main { padding: 24px; }
}

/* utilities (replace inline styles so CSP can forbid them) */
.btn-block{width:100%}.btn-compact{padding:8px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mb-8{margin-bottom:8px}.text-center{text-align:center}.justify-center{justify-content:center}.h2-note{text-transform:none;letter-spacing:normal;font-weight:400}

