/* The dashboard and sign-in pages. Builds on site.css (tokens, buttons, the wordmark). */

/* --- shared pieces --- */
.hint { color: var(--muted); font-size: 13.5px; line-height: 1.55; } .hint a, .view-head p a { color: var(--accent); font-weight: 500; }
.hint.bad { color: var(--loss); min-height: 0; } .hint.bad:empty { display: none; }
.hint.good { color: var(--win); }
.hook-test { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); } .hook-test h3 { margin: 0 0 4px; font-size: 14px; } .hook-test select { width: auto; min-height: 38px; } .hook-test .hint:empty { display: none; }
.hint code, .view-head code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--raised); font-size: 12px; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
input[type="email"], input[type="url"], input[type="number"], input[type="search"], input:not([type]), select {
  width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); font: 15px var(--sans);
  transition: border-color 150ms, box-shadow 150ms;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:hover, select:hover { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
input:focus, select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .row.end { justify-content: flex-end; }
.ghost-button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color 150ms, border-color 150ms; }
.ghost-button:hover { background: var(--raised); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.ghost-button.small { min-height: 30px; padding: 0 10px; } .ghost-button.danger { color: var(--loss); } .ghost-button.danger:hover { border-color: color-mix(in srgb, var(--loss) 45%, var(--line)); background: color-mix(in srgb, var(--loss) 8%, transparent); }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--muted); } .icon-button:hover { background: var(--raised); color: var(--ink); }
.app svg, .auth svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { color: var(--win); background: color-mix(in srgb, var(--win) 12%, transparent); }
.badge.bad { color: var(--loss); background: color-mix(in srgb, var(--loss) 12%, transparent); }
.badge.warn { color: #d97706; background: color-mix(in srgb, #f59e0b 14%, transparent); }
.badge.muted { color: var(--muted); background: var(--raised); }
.meter { height: 6px; margin-top: 10px; border-radius: 6px; background: var(--raised); overflow: hidden; } .meter i { display: block; height: 100%; min-width: 2px; border-radius: 6px; background: var(--grad); transition: width 400ms cubic-bezier(0.23, 1, 0.32, 1); }

/* --- sign in --- */
.auth { position: relative; isolation: isolate; min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 26px; padding: 40px 16px; }
.auth .backdrop { height: 100%; }
.auth-card { width: min(420px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 30px 90px -40px var(--lift); }
.auth-card h1 { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; } .auth-card p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; } .auth-card p b { color: var(--ink); font-weight: 600; }
.auth-card form { display: grid; gap: 14px; margin-top: 24px; } .auth-card .button { width: 100%; } .auth-card .ghost-button, #verify-actions { margin-top: 20px; }
.auth-card .oauth { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); } .auth-card .oauth:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); } .auth-card .oauth svg { width: 18px; height: 18px; }
.auth-card .or { display: flex; align-items: center; gap: 12px; margin: 20px 0 -8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; } .auth-card .or::before, .auth-card .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.link-button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; } .link-button:hover { text-decoration: underline; }
.auth-card .auth-switch { margin-top: 14px; text-align: center; font-size: 14px; } .auth-card .auth-switch + .auth-switch { margin-top: 6px; }
.auth-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.auth-foot { max-width: 420px; color: var(--muted); font-size: 13px; text-align: center; } .auth-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* --- app shell --- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.app-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 22px 14px 14px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 60%, var(--page)); }
.app-side .wordmark { padding: 0 8px; font-size: 16px; } .app-side .brand-mark { width: 26px; height: 26px; }
.app-nav, .app-side-foot { display: grid; gap: 2px; } .app-side-foot { margin-top: auto; }
.app-nav a, .app-side-foot > a { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background-color 120ms, color 120ms; }
.app-nav a:hover, .app-side-foot > a:hover { background: var(--raised); color: var(--ink); }
/* Sandbox / Live. The Sandbox wears amber so test data is never mistaken for real. */
.ws-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: -10px 4px 0; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.ws-switch button { min-height: 30px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.ws-switch button:hover { color: var(--ink); } .ws-switch button.active { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.in-sandbox .ws-switch button.active { background: color-mix(in srgb, #f59e0b 18%, var(--raised)); color: #b45309; }
@media (prefers-color-scheme: dark) { .in-sandbox .ws-switch button.active { color: #fbbf24; } } :root[data-theme="dark"] .in-sandbox .ws-switch button.active { color: #fbbf24; } :root[data-theme="light"] .in-sandbox .ws-switch button.active { color: #b45309; }
.ws-note { margin: -18px 8px 0; color: var(--muted); font-size: 12px; }
.app-nav a.active, .app-side-foot > a.active { background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--ink); } .app-nav a.active svg, .app-side-foot > a.active svg { color: var(--accent); }
.count { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--raised); color: var(--muted); font: 600 11px var(--mono); } .count:empty { display: none; }
.app-user { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding: 12px 6px 0 10px; border-top: 1px solid var(--line); }
.app-user > div { flex: 1; min-width: 0; } .app-user b, .app-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user b { font-size: 13.5px; font-weight: 600; } .app-user span { color: var(--muted); font-size: 12px; }
.app-main { min-width: 0; padding: 40px clamp(18px, 4vw, 52px) 80px; } .view { max-width: 1040px; margin-inline: auto; display: grid; gap: 20px; }
.view-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.view-head h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; } .view-head p { max-width: 620px; margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.select-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; } .select-label select { width: auto; min-height: 38px; font-size: 14px; }
.app-loading { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: var(--page); } .app-loading .brand-mark { width: 40px; height: 40px; animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.35; transform: scale(0.94); } }

/* --- panels, tiles, tables --- */
.panel { display: grid; gap: 16px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0; }
.panel.flush { padding: 0; gap: 0; overflow: hidden; } .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .panel-head.pad { padding: 18px 22px 14px; }
.panel h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; } .panel pre { margin: 0; font-size: 12.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0; }
.tile span { color: var(--muted); font-size: 12.5px; font-weight: 500; } .tile b { display: block; margin-top: 8px; font-size: 22px; font-weight: 650; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-count { padding: 2px 9px; border-radius: 99px; background: var(--raised); color: var(--muted); font: 600 11px var(--mono); }
.steps-list { display: grid; gap: 4px; list-style: none; counter-reset: step; }
.steps-list a { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; padding: 10px; border-radius: 10px; } .steps-list a:hover { background: var(--raised); }
.steps-list a::before { counter-increment: step; content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font: 600 12px var(--mono); }
.steps-list b { font-size: 14px; font-weight: 600; } .steps-list span { color: var(--muted); font-size: 13px; }
.steps-list .done a::before { content: "✓"; border-color: transparent; background: var(--accent); color: var(--action-ink); } .steps-list .done b { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th { padding: 11px 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--raised) 55%, transparent); color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.data td { padding: 14px 22px; border-bottom: 1px solid var(--line); white-space: nowrap; } .data tr:last-child td { border-bottom: 0; } .data tbody tr:hover td { background: color-mix(in srgb, var(--raised) 40%, transparent); }
.data td.right { text-align: right; } .data td.empty { padding: 44px 22px; color: var(--muted); text-align: center; white-space: normal; } .data tbody tr:hover td.empty { background: none; }
.data code, .secret code { font: 13px var(--mono); } .data b { font-weight: 600; }
.secret { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* --- plans --- */
.billing { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; transition: border-color 150ms, box-shadow 150ms; }
.plan-card:hover { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.plan-card:has(input[type="radio"]:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -34px var(--lift); }
.plan-card:has(input[type="radio"]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; } .plan-top b { font-size: 16px; font-weight: 650; } .plan-top em { color: var(--muted); font: 500 13px var(--mono); font-style: normal; }
.plan-card.current .plan-top b::after { content: "Current"; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font: 600 11px var(--sans); vertical-align: 2px; }
.plan-text { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.plan-card ul { display: grid; gap: 5px; margin-top: 4px; list-style: none; font-size: 13.5px; } .plan-card li { padding-left: 20px; position: relative; } .plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; } .plan-qty input { width: 120px; min-height: 36px; text-align: right; font-family: var(--mono); font-size: 14px; }
.summary { position: sticky; top: 24px; } .summary dl { display: grid; gap: 10px; font-size: 14px; } .summary dl div { display: flex; justify-content: space-between; gap: 12px; } .summary dt { color: var(--muted); } .summary dd { font-weight: 600; text-align: right; }
.switch { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; } .switch input { width: 17px; height: 17px; accent-color: var(--accent); }
.switch b { display: block; font-size: 13.5px; font-weight: 600; } .switch small { color: var(--muted); font-size: 12.5px; }
.total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; } .total b { color: var(--ink); font-size: 28px; font-weight: 650; letter-spacing: -0.04em; }
.summary .button { width: 100%; }

/* --- dialog and toast --- */
.modal { width: min(460px, calc(100% - 32px)); margin: auto; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); box-shadow: 0 40px 120px -30px rgb(0 0 0 / 55%); }
.modal::backdrop { background: rgb(4 8 12 / 62%); backdrop-filter: blur(3px); }
.modal form, .modal > div { display: grid; gap: 16px; } .modal h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; } .modal .hint { margin-top: -8px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 40; translate: -50% 0; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--page); font-size: 14px; font-weight: 500; box-shadow: 0 20px 60px -20px rgb(0 0 0 / 50%); animation: toast-in 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.toast.bad { background: var(--loss); color: #fff; border-color: transparent; }
@keyframes toast-in { from { opacity: 0; translate: -50% 8px; } }

/* --- narrow screens: the sidebar becomes a top bar --- */
@media (max-width: 1100px) { .tiles { grid-template-columns: 1fr 1fr; } .billing { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; } .split, .plan-cards { grid-template-columns: minmax(0, 1fr); } .app-side { min-width: 0; }
  .app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-nav { order: 3; flex-basis: 100%; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; } .app-nav a { white-space: nowrap; }
  .app-side-foot { margin: 0 0 0 auto; display: flex; align-items: center; } .app-side-foot > a { display: none; } .app-user { margin: 0; padding: 0; border: 0; } .app-user > div { display: none; }
  .app-main { padding: 26px 16px 64px; }
}
@media (prefers-reduced-motion: reduce) { .app-loading .brand-mark, .toast { animation: none; } }

/* Overview: recent events, once the workspace is set up. */
.activity { display: grid; list-style: none; } .activity li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.activity li:last-child { border-bottom: 0; } .activity code { font: 13px var(--mono); } .activity span:not(.badge) { color: var(--muted); font-size: 12.5px; } .activity .none { display: block; color: var(--muted); }

/* --- admin panel --- */
.count.bad { background: color-mix(in srgb, var(--loss) 16%, transparent); color: var(--loss); }
.alerts { display: grid; gap: 8px; } .alerts p { padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--loss) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--loss) 7%, transparent); font-size: 14px; }
.alerts b { color: var(--loss); } .alerts span { color: var(--muted); }
.legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; } .legend i { width: 9px; height: 9px; border-radius: 3px; margin-left: 10px; }
.legend .ok, .bar .ok { background: var(--accent); } .legend .no, .bar .no { background: var(--loss); }
.bars { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 5px; height: 150px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; border-radius: 4px 4px 0 0; overflow: hidden; cursor: default; } .bar:hover { background: var(--raised); }
.bar i { display: block; min-height: 0; } .bar .ok:only-child, .bar i:first-child { border-radius: 4px 4px 0 0; }
.metric { display: flex; align-items: center; gap: 10px; font: 13px var(--mono); } .mini { width: 70px; height: 6px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.mini i { display: block; height: 100%; border-radius: 6px; background: var(--accent); } .mini i.hot { background: var(--loss); }
.search { width: min(280px, 100%); }
.data.rows tbody tr { cursor: pointer; } .data small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; } .data td.wrap { white-space: normal; min-width: 260px; color: var(--muted); }
.data.compact th { padding: 8px 14px 8px 0; background: none; } .data.compact td { padding: 9px 14px 9px 0; font-size: 13.5px; } .data.compact td.empty { padding: 18px 0; text-align: left; }
.modal.wide { width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; } .modal h3 { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.client-form { display: grid; grid-template-columns: 1fr 140px 150px auto auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
@media (max-width: 760px) { .client-form { grid-template-columns: 1fr 1fr; } .bars { gap: 2px; } }

/* Admin: the customer emails switch. */
.switch.big { padding: 4px 0; border: 0; } .switch.big input { width: 20px; height: 20px; } .switch.big b { font-size: 15px; } .switch.big small { font-size: 13.5px; }

/* Sign in: the Forexizer app's layout. Form on the left, the product on the right; the right side goes on phones. */
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: var(--page); }
.signin-single { grid-template-columns: minmax(0, 1fr); }
.signin-form { display: flex; flex-direction: column; min-height: 100vh; padding: 40px 56px 32px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 55%, var(--page)); }
.signin-single .signin-form { border-right: 0; }
.signin-form .wordmark { font-size: 15px; } .signin-form .brand-mark { width: 26px; height: 26px; }
.signin-body { width: min(380px, 100%); margin: auto; padding: 48px 0; }
.signin-body h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.signin-lead { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.button-outline { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 40px; margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: 500 14px var(--sans); cursor: pointer;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05); transition: background-color 150ms, border-color 150ms, transform 150ms cubic-bezier(0.23, 1, 0.32, 1); }
.button-outline:hover { background: var(--raised); border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); } .button-outline:active { transform: scale(0.97); }
.button-outline.oauth-next { margin-top: 10px; }
.button-outline:disabled { opacity: 0.6; cursor: default; } .button-outline svg { width: 17px; height: 17px; flex: none; }
.button-outline svg[viewBox] path:not([fill]), .button-outline rect { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.signin-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#login-form, #reset-form { display: grid; gap: 14px; } #reset-form { margin-top: 24px; }
.signin-field { display: grid; gap: 6px; } .signin-field > span, .signin-field > label { color: var(--ink); font-size: 13px; font-weight: 500; }
.signin-field input { width: 100%; height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: 14px var(--sans); outline: none;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04); transition: border-color 150ms, box-shadow 150ms; }
.signin-field input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.signin-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.signin-password { position: relative; } .signin-password input { padding-right: 42px; }
.signin-password button { position: absolute; inset: 0 0 0 auto; width: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; }
.signin-password button:hover, .signin-password button.on { color: var(--ink); }
.signin-password svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.signin-forgot { display: flex; justify-content: flex-end; margin-top: -6px; }
.signin-quiet { padding: 0; border: 0; background: none; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; } .signin-quiet:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.signin-submit { width: 100%; height: 40px; margin-top: 4px; border-radius: 10px; font-size: 14px; transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1), opacity 150ms; } .signin-submit:active { transform: scale(0.97); }
.signin-submit:disabled { opacity: 0.7; }
.signin-feedback { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.45; }
.signin-feedback.error { border-color: color-mix(in srgb, var(--loss) 25%, transparent); background: color-mix(in srgb, var(--loss) 8%, transparent); color: var(--loss); }
.signin-feedback.success { border-color: color-mix(in srgb, var(--win) 30%, transparent); background: color-mix(in srgb, var(--win) 10%, transparent); color: var(--ink); }
.signin-feedback.info { margin-top: 20px; background: color-mix(in srgb, var(--raised) 60%, transparent); color: var(--muted); } .signin-feedback.info b { color: var(--ink); font-weight: 600; }
#login-sent .signin-submit { margin-top: 16px; }
.signin-switch { margin-top: 22px; font-size: 14px; }
.signin-link { padding: 0; border: 0; background: none; color: var(--accent); font: 500 14px var(--sans); cursor: pointer; } .signin-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.signin-foot { display: flex; gap: 16px; font-size: 12px; } .signin-foot a { color: var(--muted); } .signin-foot a:hover { color: var(--ink); }

.signin-art { position: relative; display: grid; place-items: center; overflow: hidden; padding: 56px; background: var(--panel); }
.signin-art::before { content: ""; position: absolute; top: -18%; right: -14%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); filter: blur(80px); }
.signin-art-inner { position: relative; width: min(450px, 100%); }
.signin-eyebrow { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.signin-art h2 { margin-top: 14px; color: var(--ink); font-size: 32px; font-weight: 650; line-height: 1.15; letter-spacing: -0.03em; }
.signin-card { margin-top: 30px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 24px 60px -24px var(--lift); }
.signin-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; } .signin-card-head code { font: 12px var(--mono); color: var(--muted); }
.signin-pill { padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--win) 14%, transparent); color: var(--win); font: 600 11px var(--mono); white-space: nowrap; }
.signin-card pre { margin-top: 12px; color: #cbd5e1; font: 13px/1.75 var(--mono); white-space: pre; overflow: hidden; }
.signin-card .k { color: var(--tok-k); } .signin-card .s { color: var(--tok-s); } .signin-card .n { color: var(--tok-n); }
.signin-note { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 14px 0 0 auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 13px; }
.signin-note code { color: var(--ink); font: 12px var(--mono); }
.signin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 4px color-mix(in srgb, var(--win) 18%, transparent); }
@media (max-width: 900px) {
  .signin { grid-template-columns: minmax(0, 1fr); } .signin-art { display: none; }
  .signin-form { padding: 24px 16px 24px; border-right: 0; } .signin-body { padding: 36px 0; }
}
/* "Last used" on the way this browser signed in before. */
.has-last { position: relative; }
.last-used { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font: 600 11px var(--sans); font-style: normal; letter-spacing: 0.01em; pointer-events: none; }
.signin-submit .last-used { background: rgb(255 255 255 / 0.18); color: inherit; }
/* Renaming the workspace, in the overview's header. */
#o-sub .sep { color: var(--muted); } .link-button.small { font-size: 13px; }
.rename { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .rename input { width: min(320px, 60vw); min-height: 34px; }
/* Settings: one panel per thing, text on the left, the control on the right. */
.settings { display: grid; gap: 14px; max-width: 860px; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 22px; }
.setting h2 { font-size: 15px; } .setting .hint { margin-top: 4px; max-width: 460px; } .setting .hint b { color: var(--ink); font-weight: 600; }
.setting-row { display: flex; gap: 8px; align-items: center; flex: none; } .setting-row input { width: 260px; }
@media (max-width: 760px) { .setting { flex-direction: column; align-items: stretch; } .setting-row input { width: 100%; flex: 1; } }
.app-side-sep { height: 1px; margin: 6px 10px; background: var(--line); }
.app-user .icon-button { flex: none; } .app-user > div { overflow: hidden; }
.weekend-note { margin-top: 6px; color: var(--warn, #d9a441); font-size: 13px; }

/* Admin: servers and their workers, live. */
.live-head { padding: 6px 0 0; } .live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live-pulse 2s ease-in-out infinite; }
.live-dot.stale::before { background: var(--loss); animation: none; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.server-card { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0; }
.server-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .server-card header b { font: 600 14px var(--mono); }
.server-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .server-meters > div { display: grid; gap: 5px; min-width: 0; }
.server-meters span { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; } .server-meters .metric { font-size: 12px; gap: 8px; } .server-meters .mini { width: 48px; flex: none; }
.workers { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.worker { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--page); font-size: 13px; }
.worker code { font-size: 12px; color: var(--muted); padding-top: 1px; } .worker .doing { display: grid; gap: 2px; min-width: 0; } .worker .doing > span { overflow-wrap: anywhere; } .worker .muted { color: var(--muted); }
.worker small { color: var(--muted); font-size: 11.5px; } .worker .since { font-variant-numeric: tabular-nums; }
.worker .dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.worker.busy .dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: live-pulse 1.4s ease-in-out infinite; }
.worker.off .dot { background: var(--loss); } .worker.busy { background: color-mix(in srgb, var(--accent) 7%, var(--page)); }
@media (prefers-reduced-motion: reduce) { .live-dot::before, .worker.busy .dot { animation: none; } }
@media (max-width: 520px) { .server-meters { grid-template-columns: 1fr 1fr; } }
.signin-legal { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; } .signin-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
/* Dashboard: stop or grow at the account limit. */
.overflow { display: grid; gap: 12px; margin-top: 16px; padding: 18px; max-width: 640px; } .overflow h2 { font-size: 15px; }
.radio-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .radio-row input { margin-top: 3px; accent-color: var(--accent); }
.radio-row b { display: block; font-size: 14px; } .radio-row small { color: var(--muted); font-size: 13px; }
.grow-max { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; padding-left: 24px; } .grow-max input { width: 110px; }
.tile small .line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tile small:has(.line) { white-space: normal; }
