:root {
  --bg: #f3f5f1;
  --surface: #ffffff;
  --surface-soft: #f7f8f5;
  --ink: #15201b;
  --muted: #6f7a74;
  --line: #dfe5df;
  --green: #1f8f5f;
  --green-dark: #146744;
  --green-soft: #ddf4e8;
  --lime: #c9f45d;
  --amber: #b77716;
  --amber-soft: #fff0d4;
  --red: #b64242;
  --red-soft: #fde5e2;
  --nav: #17231d;
  --shadow: 0 18px 60px rgba(20, 38, 29, .08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 2vw, 2rem); margin-bottom: .65rem; }
.muted { color: var(--muted); line-height: 1.6; }
.eyebrow { margin-bottom: .7rem; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ad58c; box-shadow: 0 0 0 4px rgba(74, 213, 140, .13); }

.brand-mark { display: flex; align-items: flex-end; gap: 6px; width: 48px; height: 42px; }
.brand-mark span { display: block; width: 10px; border-radius: 8px 8px 3px 3px; background: var(--lime); }
.brand-mark span:nth-child(1) { height: 20px; opacity: .55; }
.brand-mark span:nth-child(2) { height: 32px; opacity: .78; }
.brand-mark span:nth-child(3) { height: 42px; }
.brand-mark.compact { width: 34px; height: 30px; gap: 4px; }
.brand-mark.compact span { width: 7px; }
.brand-mark.compact span:nth-child(1) { height: 14px; }
.brand-mark.compact span:nth-child(2) { height: 22px; }
.brand-mark.compact span:nth-child(3) { height: 30px; }

.login-page { background: var(--nav); overflow-x: hidden; }
.login-page::before, .login-page::after { content: ""; position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.login-page::before { width: 460px; height: 460px; right: -100px; top: -180px; background: radial-gradient(circle, rgba(201, 244, 93, .16), transparent 68%); }
.login-page::after { width: 600px; height: 600px; left: -280px; bottom: -310px; background: radial-gradient(circle, rgba(54, 164, 109, .18), transparent 68%); }
.login-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; max-width: 1260px; margin: auto; padding: 6vw; align-items: center; gap: 10vw; }
.login-brand { color: white; }
.login-brand h1 { font-size: clamp(4.2rem, 8vw, 7.8rem); line-height: .83; margin: 2.5rem 0 2rem; letter-spacing: -.075em; }
.login-brand .eyebrow { color: var(--lime); }
.login-intro { max-width: 510px; color: #b8c5bd; font-size: 1.15rem; line-height: 1.7; }
.login-points { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.login-points span { padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d9e2dc; font-size: .82rem; }
.login-card { background: var(--surface); padding: clamp(2rem, 4vw, 3.6rem); border-radius: 30px; box-shadow: 0 36px 100px rgba(0,0,0,.25); }
.login-card h2 { font-size: 2.3rem; }
.security-note { margin: 1.5rem 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.security-note .status-dot { margin-right: .45rem; }

.stack-form { display: grid; gap: 1rem; margin-top: 1.8rem; }
.stack-form label { display: grid; gap: .5rem; color: #3e4943; font-size: .82rem; font-weight: 700; }
.field-hint { color: var(--muted); font-size: .7rem; font-weight: 500; line-height: 1.4; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); border-radius: 13px; padding: .95rem 1rem; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea { resize: vertical; min-height: 108px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84rem; }
input:focus, textarea:focus, select:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 4px rgba(31,143,95,.1); }
.form-error { padding: .8rem 1rem; border-radius: 12px; color: var(--red); background: var(--red-soft); font-size: .84rem; }
.primary-button, .secondary-button, .text-button { border: 0; border-radius: 12px; transition: transform .15s, background .15s; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .95rem 1.15rem; background: var(--green); color: white; font-weight: 800; box-shadow: 0 10px 25px rgba(31,143,95,.2); }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button.wide { width: 100%; }
.secondary-button { padding: .75rem 1rem; background: white; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.secondary-button:hover { border-color: #b9c7bd; }
.text-button { background: transparent; color: #9eaaa3; padding: .5rem 0; text-align: left; }
.text-button:hover { color: white; }

.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.6rem 1.25rem; background: var(--nav); color: white; }
.brand-row { display: flex; align-items: center; gap: .75rem; padding: .2rem .6rem 2rem; }
.brand-row strong, .brand-row small { display: block; }
.brand-row strong { letter-spacing: -.02em; }
.brand-row small { margin-top: .18rem; color: #89958e; font-size: .7rem; }
.main-nav { display: grid; gap: .4rem; }
.nav-item { display: flex; gap: .85rem; align-items: center; width: 100%; padding: .85rem 1rem; border: 0; border-radius: 12px; background: transparent; color: #9faaa4; text-align: left; font-weight: 650; }
.nav-item span { width: 18px; color: #738078; }
.nav-item:hover { background: rgba(255,255,255,.045); color: white; }
.nav-item.active { background: var(--lime); color: #142019; }
.nav-item.active span { color: var(--green-dark); }
.sidebar-foot { margin-top: auto; display: grid; gap: 1rem; padding: .75rem .6rem .2rem; }
.local-badge { display: flex; align-items: center; gap: .75rem; padding: .8rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; }
.local-badge strong, .local-badge small { display: block; }
.local-badge strong { font-size: .78rem; }
.local-badge small { margin-top: .2rem; color: #87948c; font-size: .66rem; }

.workspace { min-width: 0; padding: 2.2rem clamp(1.2rem, 4vw, 4rem) 4rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.topbar h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.topbar .eyebrow { margin-bottom: .45rem; }
.user-chip { display: flex; align-items: center; gap: .75rem; padding: .45rem .6rem .45rem .45rem; background: white; border: 1px solid var(--line); border-radius: 14px; }
.user-chip > div:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); font-weight: 900; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: .82rem; }
.user-chip small { margin-top: .12rem; color: var(--muted); font-size: .68rem; }
.view { display: none; animation: reveal .25s ease; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }

.hero-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: var(--radius); background: linear-gradient(130deg, #1a2921, #213a2d); color: white; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-panel::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; top: -150px; border: 1px solid rgba(201,244,93,.25); border-radius: 50%; box-shadow: 0 0 0 45px rgba(201,244,93,.035), 0 0 0 90px rgba(201,244,93,.025); }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h2 { max-width: 660px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; }
.hero-panel p:not(.eyebrow) { max-width: 710px; margin-bottom: 0; color: #b8c5bd; line-height: 1.65; }
.hero-panel .eyebrow { color: var(--lime); }
.hero-panel .primary-button { flex: 0 0 auto; background: var(--lime); color: #162019; box-shadow: none; }
.hero-panel .primary-button:hover { background: #d8ff78; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.metric-card { display: grid; min-height: 155px; padding: 1.35rem; background: white; border: 1px solid var(--line); border-radius: 18px; }
.metric-card span { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { align-self: end; font-size: 2.5rem; letter-spacing: -.06em; }
.metric-card small { color: var(--muted); }
.metric-card.accent { background: var(--lime); border-color: var(--lime); }
.metric-card.accent span, .metric-card.accent small { color: #4c6325; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 3rem 0 1rem; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: .35rem; }
.pill { display: inline-flex; align-items: center; white-space: nowrap; padding: .38rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.pill.neutral { background: #e8ece8; color: #68736c; }
.pill.good { background: var(--green-soft); color: var(--green-dark); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.server-card { padding: 1.35rem; background: white; border: 1px solid var(--line); border-radius: 18px; }
.server-card > div { display: flex; align-items: center; justify-content: space-between; }
.server-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-soft); color: var(--green); font-size: .7rem; font-weight: 900; }
.server-card h3 { margin: 1.4rem 0 .4rem; font-size: 1.1rem; }
.server-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.server-meta { display: block; margin-top: .85rem; color: var(--muted); font-size: .7rem; }

.split-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(380px, 1.18fr); gap: 1rem; align-items: stretch; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: 0 10px 35px rgba(29,46,37,.035); }
.form-panel .eyebrow, .policy-panel .eyebrow, .storage-panel .eyebrow { margin-bottom: .45rem; }
.check-progress { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem; background: var(--green-soft); border-radius: 13px; }
.check-progress strong, .check-progress small { display: block; }
.check-progress small { margin-top: .25rem; color: var(--green-dark); }
.spinner { width: 24px; height: 24px; border: 3px solid rgba(31,143,95,.2); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-panel { display: flex; flex-direction: column; }
.empty-result { align-items: center; justify-content: center; min-height: 430px; color: var(--muted); text-align: center; }
.empty-illustration { display: flex; align-items: end; gap: 7px; height: 62px; margin-bottom: 1.4rem; }
.empty-illustration span { width: 14px; border-radius: 6px 6px 2px 2px; background: #dfe6df; }
.empty-illustration span:nth-child(1) { height: 25px; }.empty-illustration span:nth-child(2) { height: 43px; }.empty-illustration span:nth-child(3) { height: 60px; }
.result-verdict { padding: 1.2rem; border-radius: 16px; margin-bottom: 1.2rem; }
.result-verdict.good { background: var(--green-soft); color: var(--green-dark); }
.result-verdict.bad { background: var(--red-soft); color: var(--red); }
.result-verdict strong { display: block; font-size: 1.2rem; margin-bottom: .35rem; }
.result-verdict p { margin: 0; line-height: 1.45; }
.check-list { display: grid; gap: .65rem; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 13px; }
.check-row > div strong, .check-row > div small { display: block; }
.check-row > div small { margin-top: .2rem; color: var(--muted); }
.result-actions { margin-top: auto; padding-top: 1.3rem; }
.accounts-heading { margin-top: 2.5rem; }
.table-wrap { position: relative; overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
th, td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--surface-soft); color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: .82rem; }
tbody tr:last-child td { border-bottom: 0; }
.account-cell strong, .account-cell small { display: block; }
.account-cell small { margin-top: .3rem; color: var(--muted); font-family: ui-monospace, monospace; font-size: .68rem; }
.account-deployment { display: block; max-width: 190px; margin-top: .35rem; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.account-trading-error { display: block; max-width: 320px; margin-top: .4rem; color: var(--red); font-size: .68rem; line-height: 1.4; overflow-wrap: anywhere; }
.account-trading-error.warning { color: var(--amber); }
.actions { display: flex; justify-content: flex-end; gap: .4rem; }
.icon-button { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 9px; padding: .55rem .7rem; }
.icon-button:hover { color: var(--ink); border-color: #aebdb3; }
.icon-button.danger:hover { color: var(--red); border-color: #edb8b4; background: var(--red-soft); }
.table-empty { padding: 3rem; color: var(--muted); text-align: center; }
.icon-button.launch { color: var(--green-dark); background: var(--green-soft); border-color: transparent; }
.icon-button.capacity-disabled:disabled { cursor: not-allowed; color: var(--muted); background: #eef1ef; opacity: .65; }

.software-choice-grid { display: grid; gap: .75rem; }
.software-choice { padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.software-choice.offline { opacity: .7; }
.software-choice-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.software-choice code { display: block; margin-top: .3rem; color: var(--muted); font-size: .72rem; }
.software-choice h3 { margin: .8rem 0 .25rem; font-size: 1rem; }
.software-choice p { margin: 0 0 .3rem; color: var(--muted); font-size: .78rem; }
.software-choice small { color: var(--muted); }
.software-choice .primary-button { margin-top: .8rem; padding: .75rem .9rem; font-size: .8rem; }

.trading-heading { align-items: center; margin-top: 0; }
.trading-heading p.muted { max-width: 720px; margin: .55rem 0 0; font-size: .85rem; }
.deployment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.deployment-card { min-width: 0; padding: 1.45rem; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 35px rgba(29,46,37,.035); }
.deployment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.deployment-head .eyebrow { margin-bottom: .35rem; }
.deployment-head h3 { margin: 0; font-size: 1.35rem; }
.deployment-head small { display: block; margin-top: .3rem; color: var(--muted); font-family: ui-monospace, monospace; font-size: .68rem; }
.deployment-route { display: flex; align-items: center; gap: .65rem; margin: 1.15rem 0; padding: .8rem; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: .75rem; }
.deployment-route strong { color: var(--ink); }
.deployment-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.deployment-metrics > div { min-width: 0; padding: .8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deployment-metrics > div:nth-child(3n) { border-right: 0; }
.deployment-metrics > div:nth-last-child(-n+3) { border-bottom: 0; }
.deployment-metrics span, .deployment-metrics strong { display: block; }
.deployment-metrics span { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }
.deployment-metrics strong { margin-top: .35rem; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; }
.account-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; border: 0; }
.account-metrics > div, .account-metrics > div:nth-child(3n), .account-metrics > div:nth-last-child(-n+3) { border: 1px solid var(--line); border-radius: 12px; }
.account-metrics > div:last-child { grid-column: 1 / -1; }
.positive { color: var(--green-dark); }
.negative { color: var(--red); }
.runtime-state { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .72rem; }
.state-led { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: #b9c0bc; }
.state-led.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.deployment-alert { margin-top: 1rem; padding: .8rem; color: var(--red); background: var(--red-soft); border-radius: 12px; }
.deployment-alert.warning { color: var(--amber); background: var(--amber-soft); }
.deployment-alert strong { font-size: .75rem; }
.deployment-alert p { margin: .3rem 0 0; overflow-wrap: anywhere; font-size: .72rem; line-height: 1.45; }
.error-details { margin-top: .8rem; color: var(--muted); font-size: .72rem; }
.error-details summary { cursor: pointer; }
.error-details ul { max-height: 180px; overflow: auto; padding-left: 1.1rem; }
.error-details li { margin-bottom: .45rem; overflow-wrap: anywhere; }
.deployment-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.deployment-actions { display: flex; gap: .45rem; }
.secondary-button.small { padding: .55rem .7rem; font-size: .72rem; }
.trading-empty { display: grid; place-items: center; min-height: 390px; text-align: center; color: var(--muted); }
.trading-empty h3 { margin-bottom: .4rem; color: var(--ink); }
.trading-empty p { margin-bottom: 1.25rem; }

.users-layout { grid-template-columns: .8fr 1.2fr; }
.policy-list { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.policy-list li { display: flex; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.policy-list li > span { color: var(--green); font-size: .7rem; font-weight: 900; }
.policy-list strong { font-size: .9rem; }
.policy-list p { margin: .25rem 0 0; color: var(--muted); font-size: .8rem; }
.users-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.user-card { padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: 16px; }
.user-card-head { display: flex; align-items: center; gap: .75rem; }
.user-card-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--green-dark); font-weight: 900; }
.user-card h3 { margin: 0; font-size: 1rem; }
.user-card small { color: var(--muted); }
.user-card-meta { display: flex; justify-content: space-between; margin: 1.2rem 0; padding: .8rem 0; border-block: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.user-card-actions { display: flex; gap: .5rem; }
.user-card-actions button { flex: 1; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 980px; }
.storage-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.storage-row:last-child { border-bottom: 0; }
.storage-row span { color: var(--muted); }
.storage-row strong { text-align: right; font-size: .85rem; }
.toast-region { position: fixed; z-index: 20; right: 1.5rem; top: 1.5rem; display: grid; gap: .6rem; }
.toast { max-width: 380px; padding: .9rem 1rem; color: white; background: var(--nav); border-radius: 12px; box-shadow: var(--shadow); animation: toastIn .2s ease; }
.toast.error { background: #7f2e2e; }
.settings-dialog { width: min(620px, calc(100% - 2rem)); padding: 0; color: var(--ink); background: white; border: 0; border-radius: 22px; box-shadow: 0 25px 80px rgba(17, 32, 24, .25); }
.settings-dialog::backdrop { background: rgba(17, 32, 24, .55); backdrop-filter: blur(3px); }
.settings-dialog form { padding: 1.5rem; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dialog-head h2 { margin: .2rem 0 0; }
.dialog-close { width: 36px; height: 36px; padding: 0; color: var(--muted); background: var(--surface-soft); border: 0; border-radius: 10px; font-size: 1.4rem; }
.settings-balance { display: flex; justify-content: space-between; margin: 1.2rem 0; padding: .8rem 1rem; color: var(--muted); background: var(--surface-soft); border-radius: 12px; font-size: .82rem; }
.settings-balance strong { color: var(--ink); }
.mode-choice { display: grid; gap: .65rem; }
.mode-choice label { display: flex; gap: .75rem; padding: .9rem; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.mode-choice input { width: auto; margin-top: .2rem; accent-color: var(--green); }
.mode-choice span, .mode-choice small { display: block; }
.mode-choice small { margin-top: .25rem; color: var(--muted); line-height: 1.4; }
.settings-note { margin: 1rem 0; padding: .8rem; color: var(--green-dark); background: var(--green-soft); border-radius: 12px; font-size: .76rem; line-height: 1.45; }
.fixed-settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 0; border: 0; }
.fixed-settings-fields:disabled { opacity: .5; }
.fixed-settings-fields label span { display: block; margin-bottom: .4rem; font-size: .76rem; font-weight: 700; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .server-grid, .users-grid { grid-template-columns: 1fr 1fr; }
  .split-layout { grid-template-columns: 1fr; }
  .deployment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; padding: 2rem 1.2rem; gap: 2rem; }
  .login-brand h1 { font-size: 4.3rem; margin: 1.5rem 0; }
  .login-points { display: none; }
  .app-shell { display: block; }
  .sidebar { position: static; width: auto; height: auto; padding: 1rem; }
  .brand-row { padding-bottom: 1rem; }
  .main-nav { display: flex; overflow-x: auto; }
  .nav-item { min-width: max-content; }
  .sidebar-foot { display: none; }
  .workspace { padding: 1.4rem 1rem 3rem; }
  .topbar { align-items: flex-start; }
  .topbar .eyebrow { display: none; }
  .user-chip > div:last-child { display: none; }
  .hero-panel { display: block; }
  .hero-panel .primary-button { margin-top: 1.5rem; }
  .metric-grid, .server-grid, .users-grid, .settings-grid { grid-template-columns: 1fr; }
  .trading-heading { align-items: flex-start; }
  .deployment-metrics { grid-template-columns: repeat(2, 1fr); }
  .deployment-metrics > div, .deployment-metrics > div:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .deployment-metrics > div:nth-child(2n) { border-right: 0; }
  .deployment-metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
  .account-metrics > div, .account-metrics > div:nth-child(3n), .account-metrics > div:nth-last-child(-n+2) { border: 1px solid var(--line); }
  .fixed-settings-fields { grid-template-columns: 1fr; }
}
