/* Original Finch UI. All palette colors live in theme.css. */
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--finch-background); color: var(--finch-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.6; }
a { color: var(--finch-accent); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; border: 1px solid var(--finch-control-border); border-radius: 9px; padding: 10px 16px; background: var(--finch-surface-raised); color: var(--finch-text); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
button:hover, .button:hover { background: var(--finch-surface-hover); }
button.primary, .button.primary { background: var(--finch-accent); color: var(--finch-on-accent); border-color: var(--finch-accent); }
button.primary:hover, .button.primary:hover { background: var(--finch-accent-hover); }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; color: var(--finch-muted); background: var(--finch-surface); border-color: var(--finch-border); }
:focus-visible { outline: 3px solid var(--finch-focus); outline-offset: 4px; }
input, select, textarea { display: block; width: 100%; min-height: 46px; border: 1px solid var(--finch-control-border); border-radius: 8px; background: var(--finch-background); color: var(--finch-text); padding: 11px 13px; }
input::placeholder, textarea::placeholder { color: var(--finch-muted); }
input[type="checkbox"] { display: inline-block; width: 18px; min-height: 18px; accent-color: var(--finch-accent); }
label { display: block; font-weight: 600; font-size: 13px; }
label > input, label > select, label > textarea { margin-top: 7px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 10px; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -1.1px; line-height: 1.2; margin-bottom: 10px; font-weight: 650; }
h2 { font-size: 18px; letter-spacing: -.25px; line-height: 1.4; margin-bottom: 7px; }
h3 { font-size: 15px; margin-bottom: 5px; }
p { margin-bottom: 16px; }
small, .muted { color: var(--finch-muted); }
small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 10px 16px; background: var(--finch-accent); color: var(--finch-on-accent); }
.skip-link:focus { top: 12px; }
.boot-screen { min-height: 100vh; display: grid; align-content: center; justify-content: center; gap: 25px; padding: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--finch-text); font-weight: 700; font-size: 28px; letter-spacing: -1.3px; line-height: 1; }
.brand-mark { width: 35px; height: 38px; display: grid; place-items: center; border-radius: 11px 11px 11px 3px; background: var(--finch-accent); color: var(--finch-on-accent); font-size: 31px; font-weight: 800; font-family: Georgia, serif; padding-bottom: 3px; }
.brand-dot { color: var(--finch-accent); }
.eyebrow { color: var(--finch-accent); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-story { display: flex; flex-direction: column; padding: 52px clamp(32px, 6vw, 88px); background: var(--finch-surface); border-right: 1px solid var(--finch-border); }
.login-copy { max-width: 490px; margin: auto 0; padding: 60px 0; }
.login-copy h1 { font-size: clamp(40px, 4.8vw, 65px); letter-spacing: -2.5px; line-height: 1.07; margin: 20px 0 26px; }
.login-copy h1 span { color: var(--finch-accent); }
.login-copy p { font-size: 16px; max-width: 385px; color: var(--finch-muted); }
.login-route { border-top: 1px solid var(--finch-border); margin-top: 40px; padding-top: 25px; display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--finch-muted); flex-wrap: wrap; }
.login-route strong { color: var(--finch-text); font-weight: 500; }
.login-form { display: grid; place-content: center; padding: 48px 32px; }
.login-card { width: min(100%, 380px); }
.login-card h2 { font-size: 28px; margin: 16px 0 10px; letter-spacing: -.8px; }
.login-card .button { width: 100%; margin: 18px 0; }
.login-footnote { border-top: 1px solid var(--finch-border); margin-top: 30px; padding-top: 24px; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--finch-surface); border-right: 1px solid var(--finch-border); padding: 28px 18px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { margin: 2px 12px 34px; }
.nav-label { margin: 22px 14px 8px; color: var(--finch-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 600; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; align-items: center; gap: 12px; color: var(--finch-muted); border-radius: 8px; padding: 11px 13px; text-decoration: none; min-height: 45px; }
.nav a:hover { background: var(--finch-surface-raised); color: var(--finch-text); }
.nav a[aria-current="page"] { background: var(--finch-selected); color: var(--finch-accent); box-shadow: inset 3px 0 var(--finch-accent); }
.sidebar-footer { margin-top: auto; padding: 28px 14px 0; }
.sidebar-footer p { font-size: 12px; color: var(--finch-muted); margin-bottom: 3px; }
.theme-mini { display: flex; align-items: center; gap: 8px; color: var(--finch-muted); font-size: 11px; }
.theme-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--finch-accent); }
.main-area { min-width: 0; }
.topbar { min-height: 85px; padding: 16px 36px; border-bottom: 1px solid var(--finch-border); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.org-switcher { min-width: 150px; max-width: 320px; }
.org-switcher select { font-size: 13px; margin-top: 4px; padding: 6px 32px 6px 10px; min-height: 36px; }
.org-switcher label { color: var(--finch-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 9px; }
.user-area { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--finch-selected); color: var(--finch-accent); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.user-details { max-width: 210px; }
.user-details strong, .user-details small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-details strong { font-size: 12px; }
.text-button { border: none; background: none; padding: 8px; color: var(--finch-muted); font-size: 12px; }
.content { padding: 38px 36px 30px; max-width: 1400px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 27px; }
.page-header .eyebrow { margin-bottom: 12px; }
.page-header p { color: var(--finch-muted); margin-bottom: 0; }
.page-header > button { margin-top: 25px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--finch-border); border-radius: 30px; font-size: 11px; color: var(--finch-muted); white-space: nowrap; }
.badge.amber { color: var(--finch-accent); background: var(--finch-selected); }
.badge.good { color: var(--finch-success); }
.badge.danger { color: var(--finch-danger); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { border: 1px solid var(--finch-border); background: var(--finch-surface); padding: 21px 22px; border-radius: 12px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; color: var(--finch-muted); font-size: 12px; }
.stat-value { font-size: 34px; letter-spacing: -1px; margin: 14px 0 2px; line-height: 1.2; font-weight: 600; }
.stat a { color: var(--finch-muted); font-size: 11px; }
.grid-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--finch-surface); border: 1px solid var(--finch-border); border-radius: 12px; overflow: hidden; margin-bottom: 22px; min-width: 0; }
.panel-body, .panel-header { padding: 22px 24px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--finch-border); }
.panel-header p { margin: 0; font-size: 12px; color: var(--finch-muted); }
.panel-header h2 { font-size: 16px; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: flex; gap: 15px; padding: 22px 24px; border-bottom: 1px solid var(--finch-border); }
.setup-list li:last-child { border-bottom: 0; }
.step-number { border: 1px solid var(--finch-border); background: var(--finch-surface-raised); border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; font-size: 12px; color: var(--finch-accent); }
.setup-list h3 { margin: 0 0 2px; font-size: 13px; }
.setup-list p { margin: 0; font-size: 12px; color: var(--finch-muted); }
.setup-list a { margin-left: auto; display: flex; align-items: center; text-decoration: none; padding: 0 3px; }
.callout { border-left: 3px solid var(--finch-accent); background: var(--finch-selected); padding: 14px 17px; border-radius: 0 8px 8px 0; margin-bottom: 20px; font-size: 12px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--finch-accent); }
.notice { padding: 13px 17px; border: 1px solid var(--finch-border); border-radius: 8px; margin-bottom: 22px; background: var(--finch-surface-raised); color: var(--finch-info); }
.notice.error { color: var(--finch-danger); }
.notice.success { color: var(--finch-success); }
.empty { padding: 42px 28px; text-align: center; color: var(--finch-muted); }
.empty .icon { width: 32px; height: 32px; margin-bottom: 12px; color: var(--finch-accent); }
.empty h3 { color: var(--finch-text); }
.empty p { max-width: 440px; margin: 7px auto 0; font-size: 13px; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--finch-muted); font-weight: 500; }
th, td { padding: 15px 24px; border-bottom: 1px solid var(--finch-border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--finch-surface-raised); }
td strong { font-size: 13px; font-weight: 500; }
td small { display: block; margin-top: 3px; }
.id { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; color: var(--finch-muted); overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hint { display: block; font-size: 12px; color: var(--finch-muted); font-weight: 400; margin-top: 7px; }
.checkbox-list { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.checkbox-list label { display: flex; gap: 8px; align-items: center; font-weight: 400; min-height: 44px; }
.checkbox-list input { margin: 0; }
.access-list { margin: 0; display: grid; gap: 15px; }
.access-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; border-bottom: 1px solid var(--finch-border); padding-bottom: 13px; }
.access-list dt { color: var(--finch-muted); font-size: 12px; }
.access-list dd { margin: 0; text-align: right; font-size: 12px; }
.access-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.message { padding: 20px 24px; border-bottom: 1px solid var(--finch-border); }
.message:last-child { border-bottom: 0; }
.message-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--finch-muted); margin-bottom: 9px; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.palette { display: flex; height: 130px; border-radius: 10px; overflow: hidden; border: 1px solid var(--finch-border); margin-bottom: 20px; }
.palette span { flex: 1; }
.palette .base { background: var(--finch-background); }
.palette .surface { background: var(--finch-surface-raised); }
.palette .accent { background: var(--finch-accent); }
.palette .text { background: var(--finch-text); }
.page-footer { font-size: 11px; color: var(--finch-muted); margin: 30px 0 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--finch-border); padding-top: 18px; }
.mobile-menu { display: none; }
[hidden] { display: none !important; }
@media (min-width: 1500px) { .content { padding-top: 48px; } }
@media (max-width: 1100px) { .shell { grid-template-columns: 205px minmax(0, 1fr); } .content { padding: 28px 24px; } .topbar { padding: 16px 24px; } .grid-two { grid-template-columns: 1fr; gap: 0; } .stat { padding: 17px; } .user-details { max-width: 140px; } }
@media (max-width: 760px) { .login { grid-template-columns: 1fr; } .login-story { padding: 30px 28px; border-right: 0; border-bottom: 1px solid var(--finch-border); } .login-copy { padding: 44px 0 0; } .login-copy h1 { font-size: 42px; } .login-route, .login-story > small { display: none; } .login-form { display: block; padding: 36px 28px 50px; } .login-card { margin: auto; } .shell { display: block; } .sidebar { position: static; height: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--finch-border); } .sidebar .brand { margin: 0; font-size: 25px; } .sidebar-head { display: flex; align-items: center; justify-content: space-between; } .mobile-menu { display: inline-flex; } .sidebar-footer { display: none; } .sidebar #navigation { display: none; padding-top: 12px; } .sidebar #navigation.open { display: block; } .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .topbar { min-height: 82px; padding: 14px 20px; gap: 14px; } .org-switcher { min-width: 0; max-width: 220px; flex: 1; } .user-details, .user-area .avatar { display: none; } .user-area { gap: 0; } .content { padding: 27px 20px; } .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; } .page-header { gap: 12px; } .page-header > button { margin-top: 21px; padding: 9px 12px; } .panel-header, .panel-body, .setup-list li { padding: 20px; } .page-footer { flex-wrap: wrap; gap: 8px; } }
@media (max-width: 420px) { .form-grid { grid-template-columns: 1fr; } .page-header { flex-wrap: wrap; } .page-header > button { margin-top: 0; } .content { padding: 24px 16px; } .stat { padding: 15px; } .stat-head { font-size: 11px; } .stat-value { font-size: 30px; } .nav a { font-size: 12px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .nav a[aria-current="page"] { outline: 2px solid; } .brand-mark { border: 1px solid; } }
