:root { --ink: #182526; --muted: #59696a; --line: #d5dedc; --paper: #fff; --surface: #f4f7f5; --accent: #176851; --danger: #a72e34; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; letter-spacing: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.92); }
.quiet { background: var(--paper); border-color: var(--line); color: var(--ink); }
.danger { background: var(--danger); border-color: var(--danger); }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #aabbb6; border-radius: 4px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
label { display: block; margin: 12px 0 5px; font-weight: 600; }
:focus-visible { outline: 3px solid #d6a629; outline-offset: 3px; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 650; }
h2 { font-size: 17px; margin: 0 0 14px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 70px; padding: 12px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 650; }
.brand img { width: 68px; height: 42px; object-fit: contain; }
.session { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.workspace { display: flex; min-height: calc(100vh - 70px); }
.sidebar { flex: 0 0 208px; padding: 28px 16px; border-right: 1px solid var(--line); background: #eaf0ec; }
.nav-label { display: block; padding: 0 12px 14px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.sidebar a { display: block; padding: 10px 12px; border-left: 3px solid transparent; text-decoration: none; font-weight: 650; }
.sidebar a[aria-current=page] { border-left-color: var(--accent); background: #dcebe3; }
.development-badge { padding: 3px 8px; border: 1px solid #d7b85c; border-radius: 3px; background: #fff3ce; color: #715819; font-size: 12px; font-weight: 650; }
.switchboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 340px)); gap: 18px; }
.workspace-option { display: flex; flex-direction: column; align-items: flex-start; min-height: 164px; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; background: var(--surface); text-decoration: none; overflow-wrap: anywhere; }
.workspace-option:hover { border-color: var(--accent); background: #edf4ef; }
.workspace-name { color: var(--ink); font-size: 18px; font-weight: 650; }
.workspace-action { margin-top: auto; padding-top: 22px; font-weight: 650; }
.viewport { flex: 1; min-width: 0; padding: 30px; background: var(--paper); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.eyebrow { color: var(--muted); font-size: 12px; text-transform: uppercase; margin: 0 0 8px; }
.summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding: 20px 0; margin: 0 0 24px; border-block: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { font-size: 26px; font-weight: 650; margin: 4px 0 0; }
.filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.filters > div { flex: 1 1 140px; }
.filters > div:first-child { flex-grow: 2; }
.filters label { margin-top: 0; }
.table-heading { display: flex; justify-content: space-between; align-items: baseline; }
.table-heading span, .secondary { color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: var(--muted); font-size: 12px; background: var(--surface); }
th, td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { overflow-wrap: anywhere; }
.secondary { display: block; font-size: 13px; }
.nowrap { white-space: nowrap; }
.status { display: inline-block; padding: 3px 8px; border-radius: 3px; background: #e9f1ec; color: #285640; font-size: 12px; font-weight: 650; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 20px; }
.notice { padding: 12px 16px; background: #edf5ee; border-left: 3px solid var(--accent); overflow-wrap: anywhere; }
.error, .validation { color: var(--danger); }
.error { background: #fff0f0; border-color: var(--danger); }
.empty { padding: 35px 0; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 40px; }
.contact-details { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 18px; margin: 0 0 30px; }
.contact-details dt { color: var(--muted); }
.contact-details dd { margin: 0; overflow-wrap: anywhere; }
.reference { font-family: monospace; font-size: 12px; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.workflow { border-left: 1px solid var(--line); padding-left: 24px; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0; }
.checkbox input { flex: 0 0 auto; margin-top: 4px; }
.notes { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.note { padding: 14px 0; border-bottom: 1px solid var(--line); }
.note-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.note-meta time { color: var(--muted); }
.notes button { margin-top: 12px; }
.danger-zone { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.login { max-width: 460px; margin: 60px auto; }
.login h1 { font-size: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1000px) { .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sidebar { flex-basis: 180px; } .viewport { padding: 24px; } }
@media (max-width: 700px) { .topbar { padding: 12px 16px; align-items: flex-start; flex-wrap: wrap; } .session { flex-basis: 100%; gap: 12px; min-width: 0; } .session > span { overflow-wrap: anywhere; } .workspace { display: block; } .sidebar { padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); } .nav-label { display: none; } .viewport { padding: 20px 16px; } .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .workflow { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); } h1 { font-size: 24px; } .contact-details { grid-template-columns: 72px minmax(0, 1fr); } .brand { font-size: 15px; } .login { margin: 30px auto; } .filters > div { flex-basis: calc(50% - 12px); } }