/* Shared palette, typography and application shell. */
:root {
  --ink: #17283e; --muted: #586b80; --paper: #f2f5f9; --white: #fff;
  --accent: #245fbd; --accent-dark: #18498f; --soft: #edf3fc; --line: #d8e1ec;
  --error: #a32635; --success: #176549; --radius: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #357bd3; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
small { font-size: 12px; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--accent); border-radius: 6px; font-size: 17px; font-style: normal; }
.brand-dot { display: none; }
.skip { position: fixed; z-index: 20; left: 12px; top: -90px; background: #fff; padding: 12px; }
.skip:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; padding: 24px 14px 16px; color: #dbe6f7; background: #15283f; }
.sidebar a { color: inherit; }
.sidebar .brand { padding: 0 10px; color: #fff; }
.workspace-tag { display: flex; gap: 9px; align-items: center; margin: 24px 8px 20px; padding-bottom: 18px; border-bottom: 1px solid #33465d; }
.avatar { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #2c4563; color: #fff; font-weight: 650; }
.workspace-tag strong, .account strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.workspace-tag small, .account small { display: block; color: #b2c3d9; font-size: 11px; overflow-wrap: anywhere; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a { padding: 9px 12px; border-radius: 5px; font-size: 13px; }
.sidebar nav a:hover { background: #223c59; text-decoration: none; }
.sidebar nav a[aria-current] { color: #fff; background: #2a507b; box-shadow: inset 3px 0 #8cbbff; }
.nav-label { padding: 18px 12px 6px; color: #9eb3cd; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-bottom { margin-top: auto; padding: 24px 9px 0; }
.account { display: flex; gap: 9px; align-items: center; border-top: 1px solid #33465d; padding-top: 16px; }
.sidebar .text-button { color: #c7d6ea; }
.workspace-switch { display: grid; gap: 8px; margin: 22px 8px 0; font-size: 11px; }
.workspace-switch select { width: 100%; min-width: 0; }
.workspace-main { min-width: 0; }
.app-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 28px; min-height: 62px; background: #fff; border-bottom: 1px solid var(--line); }
.app-toolbar > span { color: var(--muted); font-size: 12px; }
.global-search { display: flex; align-items: center; gap: 8px; width: min(510px, 100%); }
.global-search input { width: 100%; min-width: 0; }
.content { max-width: 1640px; padding: 24px 28px 40px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.page-heading h1 { margin: 4px 0 6px; }
.page-heading p { color: var(--muted); font-size: 12px; }
.page-heading p a { text-decoration: underline; text-underline-offset: 3px; }
.heading-actions, .form-actions, .link-grid { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading > span { font-size: 12px; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 12px; font-size: 12px; }
.spaced { margin-top: 24px; }
.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.overview > div { background: #fff; padding: 14px 18px; }
.overview .eyebrow { margin-bottom: 5px; }
.overview strong { display: block; font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.overview a { display: block; }
.overview a:hover { text-decoration: none; }
.messages p { background: #eaf5ef; border: 1px solid #a6cfbb; color: var(--success); border-radius: var(--radius); padding: 11px 15px; margin-bottom: 16px; }
.auth-shell { display: grid; place-items: center; min-height: 100dvh; padding: 24px; }
.auth-panel { width: 100%; max-width: 430px; }
.auth-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px #19355408; }
.auth-card > .brand { margin-bottom: 28px; }
.auth-card h2 { font-size: 24px; margin-bottom: 22px; }
.intro { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.form-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 12px; }
.switch-auth { text-align: center; margin-top: 20px; font-size: 12px; }
