:root { --bg:#F5F6F8; --panel:#FFF; --ink:#1A1F22; --muted:#5E6669; --line:#D8DCD6; --accent:#2B6FDB; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 'IBM Plex Sans',sans-serif; }
header,main,footer { max-width:1120px; margin:auto; padding:24px; }
header { display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:16px; font-weight:600; text-decoration:none; color:var(--ink); }
.brand img { width:112px; height:40px; object-fit:contain; }
nav,.inline { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
nav { font-size:14px; }
nav span { overflow-wrap:anywhere; }
nav form { margin:0; }
main { min-height:70vh; padding-top:40px; }
h1,h2,h3 { font-family:'Bricolage Grotesque',sans-serif; line-height:1.2; }
h1 { font-size:clamp(30px,4vw,44px); letter-spacing:-1px; margin:12px 0 18px; }
h2 { font-size:27px; margin-top:8px; }
h3 { font-size:22px; margin:18px 0; }
a { color:var(--accent); text-underline-offset:3px; }
h3 a { color:var(--ink); text-decoration:none; }
a:hover { text-decoration:underline; }
.muted { color:var(--muted); }
.small { font-size:13px; }
.eyebrow,.tag,label,th { font-family:'IBM Plex Mono',monospace; font-size:12px; }
.eyebrow { letter-spacing:1.2px; color:var(--muted); margin:0; }
.panel { padding:26px; background:var(--panel); border:1px solid var(--line); border-radius:16px; margin:20px 0; }
.signin { max-width:560px; margin:32px auto; }
.documents { background:var(--panel); }
.documents .document-title { min-width:260px; }
.documents .shared-date { min-width:190px; white-space:nowrap; }
.documents .document-number { min-width:105px; font-variant-numeric:tabular-nums; }
.documents th { white-space:nowrap; }
.priority-chip { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; border:1px solid; }
.priority-chip::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.priority-high { background:#FDECEC; color:#A12222; border-color:#F1BDBD; }
.priority-medium { background:#FFF4DC; color:#815000; border-color:#E8CC8A; }
.priority-low { background:#E8F3ED; color:#235C3F; border-color:#B2D3C1; }
.documents .customer-heading th { background:#edf3fe; font-size:16px; }
.documents .project-heading th { background:var(--bg); font-size:14px; }
.tag { display:inline-block; background:#edf3fe; color:var(--accent); border-radius:5px; padding:4px 8px; }
form { margin:20px 0 0; }
label { display:block; font-weight:500; }
input,textarea { display:block; width:100%; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); padding:11px; font:inherit; margin:8px 0 16px; }
.inline input { flex:1; width:auto; min-width:140px; margin:0; }
button { background:var(--accent); color:white; border:1px solid var(--accent); border-radius:7px; padding:10px 16px; font:500 14px 'IBM Plex Sans',sans-serif; cursor:pointer; }
button.link { border:0; padding:0; background:none; color:var(--accent); font:inherit; text-decoration:underline; }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid #82adf4; outline-offset:3px; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
td,th { border-bottom:1px solid var(--line); text-align:left; vertical-align:top; padding:12px; }
td { min-width:120px; overflow-wrap:anywhere; }
.sheet table { width:auto; min-width:100%; }
.sheet td { min-width:0; white-space:nowrap; overflow-wrap:normal; }
.sheet td.long { min-width:360px; white-space:normal; }
td form { margin:0; }
.sheet-tabs { margin:24px 0; }
.sheet-tabs button[aria-pressed=false] { background:white; color:var(--accent); }
[hidden] { display:none !important; }
.notice { padding:14px; background:#edf3fe; border:1px solid var(--accent); border-radius:8px; }
footer { color:var(--muted); font-size:12px; border-top:1px solid var(--line); }
@media(max-width:600px) { header,main,footer { padding:20px 16px; } header { flex-direction:column; align-items:flex-start; } .panel { padding:20px; } nav { gap:12px; } }

select { border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); padding:8px; font:inherit; }
.permissions th:first-child { position:sticky; left:0; background:var(--panel); min-width:230px; z-index:1; }
.permissions select { display:block; margin:8px 0; }
select:focus-visible { outline:3px solid #82adf4; outline-offset:3px; }
