:root {
    color-scheme: light;
    --ink: #162b32;
    --muted: #62767b;
    --line: #dce5e4;
    --paper: #f3f6f3;
    --accent: #1f655b;
    --sidebar: #132e32;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.6; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #a1cbbf; outline-offset: 3px; }
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); color: #d7e5e1; padding: 36px 25px 24px; display: flex; flex-direction: column; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 650; letter-spacing: .13em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 42px; border: 1px solid #80aea0; color: #bde5cd; border-radius: 9px 2px 9px 2px; font-size: 22px; }
.brand small { display: block; font-size: 9px; font-weight: 400; letter-spacing: .025em; color: #98b6af; margin-top: 3px; }
.environment { align-self: flex-start; border: 1px solid #45625f; border-radius: 30px; padding: 4px 10px; font-size: 11px; color: #b3cbc2; }
nav { display: grid; gap: 6px; margin: 9px -10px; }
nav a { padding: 13px 12px; border-radius: 6px; text-decoration: none; font-size: 13px; display: flex; justify-content: space-between; }
nav a.nav-active { background: #29463f; color: #d5eadb; }
nav a span { color: #8ca79b; }
.sidebar-note { margin-top: auto; border-top: 1px solid #37524e; padding-top: 23px; font-size: 12px; }
.sidebar-note p { color: #91aaa5; line-height: 1.7; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #9ecb9b; border-radius: 50%; margin-right: 5px; }
.account { font-size: 11px; overflow-wrap: anywhere; border-top: 1px solid #37524e; padding-top: 16px; }
.account .text-button { color: #afc7be; padding-top: 7px; }
main { min-width: 0; padding: 0 48px 48px; max-width: 1480px; width: 100%; margin-inline: auto; }
.topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.private-label { border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; }
.eyebrow { font-size: 10px; letter-spacing: .15em; font-weight: 650; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.12; font-weight: 500; letter-spacing: -.055em; margin-bottom: 20px; }
h2 { font-size: 21px; font-weight: 550; line-height: 1.3; letter-spacing: -.02em; }
h3 { font-size: 15px; font-weight: 550; }
.welcome { margin: 64px 0 38px; max-width: 560px; }
.welcome > p:last-child { color: var(--muted); max-width: 440px; font-size: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.login-card { display: grid; grid-template-columns: 1fr 1fr; max-width: 820px; padding: 32px; gap: 52px; }
.login-card p:not(.eyebrow) { color: var(--muted); }
label { display: block; font-size: 12px; font-weight: 550; margin: 0 0 6px; }
input, textarea, select { background: #fbfcfa; border: 1px solid #cedbd7; border-radius: 5px; color: var(--ink); padding: 11px 12px; width: 100%; }
input { margin-bottom: 15px; }
textarea { resize: vertical; min-height: 200px; line-height: 1.7; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 17px; border-radius: 5px; white-space: nowrap; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #174f48; }
.login-card .primary { width: 100%; margin-top: 6px; }
.secondary { background: #e5ede8; color: var(--accent); }
.text-button { background: transparent; color: var(--muted); padding: 0; text-align: left; font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.footnote { font-size: 11px; color: var(--muted); margin-top: 20px; max-width: 650px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 42px 0 32px; }
.page-heading h1 { font-size: 40px; margin-bottom: 10px; }
.page-heading p:last-child { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.org-form { min-width: 270px; }
.org-form > div { display: flex; gap: 8px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.composer { padding: 27px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.tag, .count { border-radius: 20px; background: #edf3ed; padding: 3px 10px; font-size: 11px; color: var(--accent); }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.composer-footer p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0; }
.task-panel { padding: 26px; }
.empty-state { text-align: center; padding: 52px 15px 42px; }
.empty-icon { display: block; font-size: 32px; color: #91b2a2; margin-bottom: 15px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 250px; margin: 0 auto; }
.task { padding: 18px 0; border-top: 1px solid var(--line); }
.task > div { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.task-state { font-size: 10px; border: 1px solid #dce4d5; background: #f2f4e9; color: #657544; border-radius: 20px; padding: 2px 9px; }
.task-state.cancelled { color: var(--muted); background: #eef1ef; border-color: #e1e5e2; }
.task small, .task time { font-size: 10px; color: var(--muted); }
.task > a { display: block; font-size: 13px; line-height: 1.7; text-decoration: none; overflow-wrap: anywhere; }
.task > a:hover { text-decoration: underline; }
.task footer { display: flex; justify-content: space-between; margin-top: 12px; }
.alert { background: #e5f0e8; color: #245547; border: 1px solid #c6ded0; border-radius: 6px; padding: 13px 16px; margin-top: 20px; font-size: 13px; }
.alert.error { background: #fbede9; border-color: #e9cec4; color: #834936; }
.selection-note { padding: 36px; color: var(--muted); }
.selection-note h2 { color: var(--ink); }
.messages { margin-bottom: 24px; max-height: 420px; overflow: auto; }
.messages article { background: #f3f6f2; border-left: 2px solid #a5c2b2; padding: 14px; margin-bottom: 10px; }
.messages small { color: var(--muted); font-size: 10px; }
.messages p { font-size: 13px; margin: 8px 0 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    main { padding-inline: 28px; }
    .workspace-grid { grid-template-columns: 1fr; }
    .page-heading { align-items: start; flex-direction: column; }
    .org-form { width: 100%; }
}
@media (max-width: 760px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { padding: 18px 22px; gap: 14px; }
    .brand { font-size: 18px; }
    .brand-mark { width: 32px; height: 34px; }
    .sidebar nav, .sidebar-note { display: none; }
    .sidebar .environment { position: absolute; right: 20px; top: 26px; }
    .account { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
    main { padding: 0 20px 32px; }
    .topbar { min-height: 65px; }
    .welcome { margin: 40px 0 26px; }
    .login-card { grid-template-columns: 1fr; gap: 18px; padding: 25px; }
    .page-heading { padding-top: 30px; }
    .composer, .task-panel { padding: 22px; }
    .composer-footer { align-items: start; flex-direction: column; }
    .composer-footer .primary { width: 100%; }
}
