:root {
    color-scheme: only light;
    --canvas: #f4f7fb;
    --surface: #fff;
    --ink: #172b43;
    --muted: #5a6c80;
    --brand: #225eaa;
    --brand-dark: #154b88;
    --tint: #eaf1fc;
    --line: #dce4ef;
    --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 19px; border: 1px solid transparent; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.5; }
button:hover, .button:hover { background: var(--brand-dark); color: #fff; }
button:disabled { cursor: not-allowed; opacity: .6; }
.button-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: var(--tint); border-color: #b4c8e2; color: var(--brand-dark); }
:focus-visible { outline: 3px solid #2167be; outline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0 0 8px; font-size: clamp(25px, 2.3vw, 32px); font-weight: 650; line-height: 1.25; letter-spacing: -.8px; }
h2 { margin: 0 0 12px; font-size: 21px; font-weight: 650; line-height: 1.35; letter-spacing: -.35px; }
h3 { font-size: 16px; line-height: 1.4; margin: 24px 0 8px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.muted { color: var(--muted); }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.25px; text-transform: uppercase; margin-bottom: 8px; }
.app-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 32px 20px 24px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 12px; text-decoration: none; color: var(--ink); }
.brand img { display: block; flex: 0 0 auto; object-fit: contain; }
.brand strong { display: block; font-size: 29px; line-height: 1.1; letter-spacing: -1px; color: var(--ink); }
.brand-owner { display: block; font-size: 10px; color: var(--muted); line-height: 1.4; margin-top: 4px; letter-spacing: .2px; }
.nav-caption { margin: 48px 12px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.workspace-nav { display: flex; flex-direction: column; gap: 6px; }
.workspace-nav a { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 10px 12px; border-radius: 8px; color: #4b6078; font-size: 14px; font-weight: 550; text-decoration: none; }
.workspace-nav a:hover { color: var(--brand); background: #f4f7fb; }
.workspace-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--tint); box-shadow: inset 3px 0 0 var(--brand); font-weight: 700; }
.nav-symbol { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.sidebar-footer { display: flex; align-items: center; gap: 12px; margin: auto 12px 0; padding-top: 32px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.footer-mark { width: 5px; height: 32px; background: #b2c9e7; border-radius: 5px; }
.workspace-shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 88px; padding: 18px 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; }
.workspace-context { min-width: 0; }
.workspace-context .eyebrow { font-size: 9px; margin-bottom: 2px; }
.workspace-context strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.topbar-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.topbar-actions button { font-size: 13px; padding: 8px 16px; }
.page-content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 36px 40px 32px; }
.page-content:focus, .guest-content:focus { outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading .muted { max-width: 760px; margin: 0; }
.page-heading > .badge { flex-shrink: 0; }
section { background: var(--surface); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); margin: 24px 0; box-shadow: 0 3px 12px rgb(28 48 75 / 2%); }
section > :last-child { margin-bottom: 0; }
.workspace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.workspace-card, .module-card { margin: 0; }
.workspace-card h2 { margin-top: 24px; }
.workspace-card .button { width: 100%; justify-content: space-between; margin-top: 10px; }
.workspace-avatar { display: grid; place-items: center; height: 48px; width: 48px; border-radius: 12px; background: var(--tint); color: var(--brand); font-size: 22px; font-weight: 600; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card-top .eyebrow { margin: 0; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 650; line-height: 1.5; }
.badge-neutral { background: #f0f3f8; color: #53657b; border: 1px solid #e0e6ef; }
.badge-enabled { color: #176b4d; background: #eaf7ef; border: 1px solid #cde5d5; }
.module-grid { display: grid; gap: 20px; max-width: 800px; margin-bottom: 24px; }
.module-card h2 { font-size: 26px; margin-top: 22px; }
.module-card > p { max-width: 640px; }
.card-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; font-size: 14px; }
.module-connection { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.module-help { background: var(--canvas); padding: 16px; border-radius: 8px; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 40px; }
label { display: block; margin: 20px 0 7px; font-size: 14px; font-weight: 550; }
input, select, textarea, option { background-color: #fff; color: var(--ink); }
input, select, textarea { padding: 11px 12px; border: 1px solid #aab9cd; border-radius: 8px; max-width: 100%; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #5c6d82; opacity: 1; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]) { width: min(100%, 440px); }
input[type="checkbox"], input[type="radio"] { min-height: auto; width: 18px; height: 18px; accent-color: var(--brand); }
input[type="file"] { width: 100%; margin-bottom: 16px; font-size: 14px; }
input::file-selector-button { background: var(--tint); color: var(--brand-dark); border: 0; border-radius: 5px; padding: 7px 12px; margin-right: 12px; cursor: pointer; font: inherit; }
input.field { width: 100% !important; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; min-width: 0; }
legend { font-size: 14px; padding: 0 6px; }
form.inline { display: inline; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f5f8fc; color: #415773; font-weight: 650; }
tbody tr:hover td { background: #fafcff; }
td { min-width: 80px; }
td:nth-child(2) { min-width: 180px; }
.scroll { overflow-x: auto; }
dt { font-weight: 600; }
dd { margin: 0 0 14px; overflow-wrap: anywhere; }
.error, .notice { padding: 16px 20px; margin: 0 0 24px; border-radius: 10px; border: 1px solid; overflow-wrap: anywhere; }
.error { background: #fff3f2; color: #8a302e; border-color: #ebc8c5; }
.error p { margin: 8px 0 0; }
.notice { background: #edf7f1; color: #236446; border-color: #c9e2d3; }
.page-footer { margin-top: auto; padding: 20px 40px; color: var(--muted); font-size: 11px; }
.page-footer span { color: #8090a5; padding: 0 8px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 18px; border-radius: 6px; z-index: 10; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }
.guest-body { background: #edf2f8; }
.guest-content { max-width: 1100px; margin: 0 auto; padding: max(48px, 9vh) 28px 32px; }
.login-shell { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid #d9e2ee; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 60px rgb(26 52 84 / 6%); }
.login-intro { display: flex; flex-direction: column; padding: 48px; background: linear-gradient(145deg, #f4f8fe, #e6eef9); border-right: 1px solid var(--line); }
.company-logo { width: 205px; max-width: 100%; height: auto; }
.login-message { margin: 70px 0 56px; }
.login-message h2 { font-size: clamp(32px, 3.1vw, 42px); font-weight: 600; letter-spacing: -1.5px; line-height: 1.15; margin: 18px 0 24px; }
.login-message p { color: #47617e; max-width: 340px; }
.login-detail { margin-top: auto; font-size: 10px; color: #4c6380; letter-spacing: .2px; }
.login-detail span { display: block; margin-bottom: 9px; font-weight: 650; letter-spacing: 2px; color: var(--brand); }
.login { border: 0; border-radius: 0; box-shadow: none; padding: 66px 48px; margin: 0; align-self: center; }
.login h1 { font-size: 29px; margin-top: 12px; }
.login form { margin-top: 28px; }
.button-wide { width: 100%; margin-top: 28px; justify-content: space-between; }
.login-help { margin-top: 30px; color: var(--muted); font-size: 12px; }
.guest-footer { text-align: center; color: var(--muted); font-size: 11px; margin-top: 24px; }
@media (max-width: 1050px) {
    .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
    .sidebar { padding-inline: 14px; }
    .topbar, .page-footer { padding-inline: 28px; }
    .page-content { padding: 28px; }
    .login-intro, .login { padding: 36px; }
}
@media (max-width: 760px) {
    .app-shell { display: block; }
    .sidebar { position: static; height: auto; padding: 18px 16px 10px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { padding: 0 6px; }
    .brand strong { font-size: 25px; }
    .brand img { width: 28px; height: 32px; }
    .nav-caption, .sidebar-footer { display: none; }
    .workspace-nav { flex-direction: row; overflow-x: auto; gap: 5px; margin-top: 18px; padding: 3px 2px 7px; }
    .workspace-nav a { flex: 0 0 auto; min-height: 44px; font-size: 13px; padding: 9px 12px; }
    .workspace-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }
    .nav-symbol { display: none; }
    .topbar { min-height: 78px; padding: 16px 20px; gap: 12px; }
    .topbar-actions { gap: 8px; }
    .topbar-actions .badge { display: none; }
    .page-content { padding: 26px 20px; }
    .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    section { padding: 22px; }
    .page-footer { padding: 18px 20px; }
    .guest-content { padding: 28px 20px; }
    .login-shell { grid-template-columns: 1fr; border-radius: 16px; }
    .login-intro { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
    .company-logo { width: 172px; }
    .login-message { margin: 24px 0 0; }
    .login-message h2, .login-message p, .login-detail { display: none; }
    .login-message .eyebrow { font-size: 10px; margin: 0; }
    .login { padding: 32px 28px; }
}
@media (prefers-reduced-motion: no-preference) {
    button, .button, .workspace-nav a { transition: background-color 120ms ease, border-color 120ms ease; }
}
