@import url('lib/bootstrap/dist/css/bootstrap.min.css');
:root { color-scheme: light; font-family: 'Segoe UI', system-ui, sans-serif; --brand-accent:#087f8c; --ink:#17313b; --muted:#5a6c74; --line:#dce5e9; --surface:#f3f6f8; }
html,body { margin:0; color:var(--ink); background:var(--surface); font-size:16px; }
* { box-sizing:border-box; }
a { color:var(--brand-accent); }
button,input,select,textarea { font:inherit; }
button,a.button,input,select { min-height:44px; }
button,a,input,select,textarea { outline-offset:4px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #f6b83b; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.5; }
.workspace { min-height:100vh; display:flex; flex-direction:column; }
.workspace-header { background:white; border-bottom:1px solid var(--line); padding:18px 30px; display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.brand { display:flex; gap:12px; align-items:center; text-decoration:none; color:var(--ink); font-size:1.08rem; font-weight:700; }
.brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--brand-accent); color:white; font-size:1.6rem; font-weight:700; }
.brand small { display:block; color:var(--muted); font-size:.76rem; font-weight:400; margin-top:3px; }
.environment-badge { background:#fff3d1; color:#715000; border:1px solid #e8cf87; padding:5px 11px; border-radius:30px; font-size:.75rem; font-weight:700; text-transform:uppercase; }
.user-name { margin-left:auto; color:var(--muted); font-size:.9rem; }
.workspace-body { display:grid; grid-template-columns:230px minmax(0,1fr); flex:1; }
.workspace-nav { background:white; border-right:1px solid var(--line); padding:28px 16px; }
.workspace-nav nav { display:flex; flex-direction:column; gap:5px; }
.workspace-nav a { display:flex; align-items:center; padding:12px 16px; border-radius:8px; text-decoration:none; color:var(--muted); }
.workspace-nav a.active { background:#e7f2f3; color:var(--brand-accent); font-weight:700; }
.workspace-nav a:hover { background:var(--surface); }
.nav-section { padding:26px 16px 8px; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.workspace-content { padding:34px; width:100%; max-width:1600px; }
.workspace-content h1 { font-size:1.9rem; letter-spacing:-.04em; margin:0 0 10px; overflow-wrap:anywhere; }
.lead-copy { color:var(--muted); max-width:820px; margin-bottom:26px; line-height:1.6; }
.eyebrow { font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; color:var(--brand-accent); font-weight:700; margin-bottom:10px; }
.card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.workspace-card,.panel { background:white; border:1px solid var(--line); border-radius:12px; padding:24px; box-shadow:0 3px 12px #17313b04; margin-bottom:20px; min-width:0; }
.workspace-card h2,.panel h2 { font-size:1.15rem; margin:0 0 12px; }
.workspace-card p { color:var(--muted); line-height:1.6; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--brand-accent); border-radius:7px; padding:9px 16px; background:var(--brand-accent); color:white; text-decoration:none; font-weight:600; font-size:.9rem; }
.button:hover { filter:brightness(.94); color:white; }
.button.secondary { background:white; color:var(--brand-accent); border-color:var(--line); }
.button.danger { background:#a83232; border-color:#a83232; }
.button-row { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0 0; }
.notice { border-radius:9px; border:1px solid #c3dce3; background:#eff8fa; padding:18px; margin:0 0 20px; line-height:1.5; }
.notice p { margin:8px 0; }
.notice small { display:block; margin:10px 0; }
.notice.error { border-color:#ecc1c1; background:#fff2f2; color:#7a2828; }
.notice.success { background:#edf8ef; border-color:#c0ddc5; color:#235b32; }
.busy-notice { display:flex; align-items:center; gap:11px; color:var(--muted); padding:16px 0; }
.spinner { width:18px; height:18px; border:2px solid #c8dce0; border-top-color:var(--brand-accent); border-radius:50%; animation:spin .8s linear infinite; flex-shrink:0; }
@keyframes spin { to { transform:rotate(360deg); } }
.data-grid { background:white; border:1px solid var(--line); border-radius:12px; padding:20px; }
.grid-toolbar { display:flex; gap:20px; justify-content:space-between; align-items:end; flex-wrap:wrap; margin-bottom:16px; }
.grid-toolbar label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:.85rem; }
.search-field { flex:1; max-width:480px; min-width:180px; }
input,select,textarea { border:1px solid #bfccd3; border-radius:6px; padding:9px 12px; color:var(--ink); background:white; max-width:100%; }
textarea { min-height:100px; width:100%; }
input[type=checkbox] { min-height:20px; width:20px; margin-right:9px; vertical-align:middle; }
.table-scroll { overflow-x:auto; }
.data-grid table { width:100%; border-collapse:collapse; font-size:.9rem; }
.data-grid th { text-align:left; border-bottom:1px solid var(--line); background:#f8fafb; color:var(--muted); }
.data-grid td { padding:14px 12px; border-bottom:1px solid #edf1f3; vertical-align:middle; overflow-wrap:anywhere; }
.sort-button { border:0; background:transparent; padding:10px 12px; color:inherit; font-weight:600; text-align:left; }
.pagination { display:flex; align-items:center; justify-content:flex-end; gap:14px; flex-wrap:wrap; margin-top:18px; color:var(--muted); font-size:.85rem; }
.pagination>span:first-child { margin-right:auto; }
.empty-state { padding:30px; text-align:center; color:var(--muted); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; max-width:850px; min-width:0; }
.form-grid > * { min-width:0; overflow-wrap:anywhere; }
.form-grid input:not([type=checkbox]):not([type=radio]),.form-grid select,.form-grid textarea { width:100%; min-width:0; }
.form-field { display:flex; flex-direction:column; gap:7px; }
.form-field.wide { grid-column:1 / -1; }
.field-help { font-size:.82rem; color:var(--muted); }
.checkbox-list { display:flex; gap:16px; flex-wrap:wrap; padding:10px 0; }
.tag { display:inline-block; border-radius:5px; padding:4px 9px; background:#eff4f6; font-size:.8rem; }
footer { display:flex; gap:20px; justify-content:space-between; padding:18px 30px; font-size:.8rem; color:var(--muted); border-top:1px solid var(--line); background:white; }
.startup-panel,.access-notice { max-width:700px; margin:12vh auto; padding:32px; }
.startup-panel .brand-mark { margin-bottom:24px; }
.sr-only,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link:focus { position:fixed; top:8px; left:8px; background:white; padding:12px; z-index:1000; }
.validation-message { color:#a83232; }
.authenticator-qr { display:block; width:280px; max-width:100%; height:auto; margin:12px 0 20px; image-rendering:pixelated; }
.authenticator-key { white-space:normal; overflow-wrap:anywhere; }
.public-panel { max-width:900px; }
.public-message { white-space:pre-wrap; line-height:1.7; }
@media(max-width:1000px) { .workspace-body { grid-template-columns:190px minmax(0,1fr); } .workspace-content { padding:24px; } .workspace-header { padding:16px 22px; } }
@media(max-width:700px) { .workspace-body { display:block; } .workspace-nav { border-right:0; border-bottom:1px solid var(--line); padding:10px 12px; } .workspace-nav nav { flex-direction:row; flex-wrap:wrap; } .workspace-nav a { padding:10px; } .nav-section { display:none; } .workspace-content { padding:20px 14px; } .workspace-header { gap:12px; padding:16px; } .user-name { margin-left:0; } .form-grid { grid-template-columns:minmax(0,1fr); } .data-grid { padding:12px; } .grid-toolbar { gap:12px; } .pagination { gap:8px; } footer { padding:16px; } .workspace-content h1 { font-size:1.6rem; } }
@media(prefers-reduced-motion:reduce) { .spinner { animation:none; } }

@media (min-width: 701px) { .compact .data-grid td, .compact .data-grid th { padding-top: 7px; padding-bottom: 7px; } }
