:root{color-scheme:dark;--bg:#12171b;--panel:#1b2429;--panel2:#222d33;--text:#ecf1f0;--muted:#acb9b9;--line:#344248;--accent:#87b9bf;--accent-dark:#24464c;--danger:#ebaaaa;--radius:13px}
*{box-sizing:border-box}
html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}
body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.topbar{display:flex;align-items:center;gap:1.3rem;padding:1rem max(1rem,calc((100vw - 1160px)/2));border-bottom:1px solid var(--line);background:#151d21;flex-wrap:wrap}
.brand{color:var(--text);font-size:1.08rem;font-weight:550;display:flex;gap:.35rem;align-items:center;white-space:nowrap}
.brand strong{color:var(--accent);font-weight:700}
.mark{background:var(--accent-dark);color:#deebec;border-radius:8px;display:inline-grid;place-items:center;width:32px;height:32px;margin-right:.25rem;font-weight:750}
.topbar nav{display:flex;flex-wrap:wrap;gap:1rem;align-items:center}
.topbar nav a{color:var(--muted);font-size:.93rem}
.topbar nav a:hover{color:var(--text)}
.user{color:var(--muted);margin-left:auto;font-size:.85rem}
.container{max-width:1160px;margin:0 auto;padding:2rem 1rem 4rem;min-height:78vh}
.page-intro{display:flex;justify-content:space-between;align-items:end;gap:1.2rem;flex-wrap:wrap;margin-bottom:1.5rem}
h1,h2,h3{line-height:1.22;margin-top:0;overflow-wrap:anywhere}h1{font-size:clamp(1.6rem,4vw,2.5rem);letter-spacing:-.02em;margin-bottom:.5rem}
h2{font-size:1.25rem;margin-bottom:1rem}h3{font-size:1.03rem;margin:.3rem 0}
p{margin:.5rem 0 1.1rem}.eyebrow{text-transform:uppercase;letter-spacing:.1em;color:var(--accent);font-size:.74rem;font-weight:700;margin-bottom:.4rem}
.muted{color:var(--muted)}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;margin:0 0 1.1rem;min-width:0}
.grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(210px,1fr);gap:1rem;align-items:start}.grid .wide{min-width:0}
.auth{width:min(100%,500px);margin:4rem auto;padding:2rem}
.form{display:flex;flex-direction:column;gap:1rem}
label{display:block;font-weight:550;font-size:.93rem}
label input,label textarea,label select{margin-top:.4rem}
input,textarea,select{background:var(--panel2);color:var(--text);border:1px solid #53646a;border-radius:8px;padding:.75rem .85rem;width:100%;font:inherit;min-height:44px}
textarea{resize:vertical;min-height:100px;line-height:1.55}
button{background:var(--accent);border:1px solid transparent;color:#101a1e;padding:.7rem 1rem;border-radius:8px;font:inherit;font-weight:700;min-height:44px;cursor:pointer}
button:hover{background:#a4cdd0}
button:disabled{opacity:.6;cursor:not-allowed}
.text-button{background:transparent;border:0;color:var(--accent);padding:.2rem;font-weight:500;min-height:auto;font-size:.9rem}
.text-button:hover{background:transparent;text-decoration:underline}
.inline{display:inline}.search{display:flex;gap:.5rem;flex:1;max-width:475px;align-items:end}.search input{min-width:0}
.entries{display:grid;gap:0}.entry{border-top:1px solid var(--line);padding:1rem 0 .5rem}.entry:first-child{border-top:0}.entry p{color:var(--muted);font-size:.93rem;margin:.35rem 0}
.tag{display:inline-block;border:1px solid #46616a;color:#c4dfe3;border-radius:6px;padding:.12rem .43rem;margin:.2rem .5rem .2rem 0;font-size:.76rem}
.plain-list{list-style:none;padding:0;margin:0}.plain-list li{padding:.65rem 0;border-bottom:1px solid var(--line)}.plain-list li:last-child{border:0}.plain-list small{display:block;color:var(--muted)}
.document-body{overflow-wrap:anywhere;line-height:1.75}
.notice,.error{border-radius:9px;padding:.85rem 1rem;margin:0 0 1rem}
.notice{border:1px solid #4b756b;background:#223b35;color:#d0e8de}
.error{border:1px solid #8b5558;background:#3a282d;color:#ffd7da}
.tenant-choice{margin-bottom:.8rem}.tenant-switch{display:flex;align-items:end;gap:.7rem;max-width:440px;margin-bottom:1.2rem}
.footer{display:flex;gap:1rem;justify-content:space-between;border-top:1px solid var(--line);padding:1.3rem max(1rem,calc((100vw - 1160px)/2));color:var(--muted);font-size:.8rem}
.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}
@media(max-width:700px){.topbar{gap:.9rem}.topbar nav{order:3;flex-basis:100%;gap:.8rem}.user{margin-left:0}.container{padding:1.25rem .75rem 3rem}.card{padding:1rem}.grid{grid-template-columns:1fr}.page-intro{display:block}.search{max-width:none}.footer{display:block}.footer span{display:block;padding:.2rem}.auth{margin:1.5rem auto;padding:1.3rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
