:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#203b49;background:#f3f6f7;font-synthesis:none;--navy:#102c3c;--teal:#087f80;--muted:#647985;--line:#dde6e9}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #28b9b7}button{cursor:pointer;border:0;border-radius:8px;padding:11px 17px;background:var(--teal);color:white;font-weight:600}button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:wait}.secondary{background:white;color:var(--navy);border:1px solid var(--line)}.danger{background:#fff0ee;color:#a83b34}.text-button{background:transparent;color:var(--teal);padding:4px 0;text-align:left}.shell{display:grid;grid-template-columns:246px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:#d4e4eb;padding:32px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:24px;font-weight:750;letter-spacing:-1px;color:white;display:flex;align-items:center;gap:11px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;background:#28b9b7;border-radius:10px;color:#102c3c;font-size:22px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#7fa5b7;font-weight:500;margin-top:5px}.nav{display:grid;gap:7px;margin-top:45px}.nav button{background:none;color:#aac1cc;text-align:left;font-weight:500;padding:14px}.nav button.active{background:#204653;color:white;border-left:3px solid #37c7bd}.nav .icon{display:inline-block;width:28px}.sidebar-bottom{margin-top:auto;padding:24px 8px 0;font-size:12px;line-height:1.7;color:#8ba9b7}.sidebar-bottom strong{color:#cce4e9}.main{min-width:0}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 42px;border-bottom:1px solid var(--line);background:white}.tenant-control{display:flex;gap:12px;align-items:center}.tenant-control label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.tenant-control select{border:0;background:white;max-width:260px;font-weight:650;color:var(--navy);padding:6px 0;display:block}.user-box{display:flex;align-items:center;gap:12px;font-size:12px}.avatar{width:36px;height:36px;border-radius:50%;background:#e0efed;display:grid;place-items:center;color:var(--teal);font-weight:700}.user-box button{font-size:11px;padding:7px 9px}.content{padding:35px 42px 50px;max-width:1600px;margin:auto}.eyebrow{font-size:10px;letter-spacing:2px;text-transform:uppercase;font-weight:700;color:var(--teal);margin-bottom:10px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}h1{font-size:30px;font-weight:650;letter-spacing:-1px;margin:0 0 9px;color:var(--navy)}h2{font-size:17px;margin:0;color:var(--navy)}h3{font-size:14px;margin:0 0 12px}p{line-height:1.6}.subtitle{font-size:13px;color:var(--muted);margin:0}.demo-banner{background:#e7f2ef;border:1px solid #cce4dc;color:#355f57;padding:12px 16px;border-radius:8px;font-size:12px;margin-bottom:24px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.card .label{font-size:12px;color:var(--muted)}.card .value{font-size:32px;letter-spacing:-1px;font-weight:650;color:var(--navy);margin:16px 0 9px}.card .foot{font-size:11px;color:var(--muted)}.card.accent{background:var(--navy);border-color:var(--navy)}.card.accent .value{color:white;font-size:23px}.card.accent .label,.card.accent .foot{color:#b2cfd7}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:22px}.panel-head{padding:22px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px}.panel-head .subtitle{margin-top:7px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#f8fafb;color:#6b7e87;text-transform:uppercase;font-size:10px;letter-spacing:.6px;padding:13px 23px;border-top:1px solid #edf1f3;border-bottom:1px solid #edf1f3}td{padding:18px 23px;border-bottom:1px solid #edf1f3;font-size:12px}tr:last-child td{border-bottom:0}td strong{font-weight:600;color:var(--navy)}td small{display:block;color:var(--muted);margin-top:6px}.badge{display:inline-block;padding:5px 9px;border-radius:5px;background:#e4f4ed;color:#287254;font-size:10px;font-weight:650}.badge.draft{background:#fff3d9;color:#8a6620}.toolbar{display:flex;gap:12px;padding:0 24px 20px}.toolbar input{max-width:360px}.toolbar select{max-width:180px}input,select{width:100%;padding:11px 12px;background:#fff;border:1px solid #cfdbdf;border-radius:7px;color:var(--navy);font-size:13px}input::placeholder{color:#8b9ba3}label{font-size:12px;font-weight:600;color:#425c69}.field{display:grid;gap:7px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field.full{grid-column:1/-1}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.empty{padding:45px 25px;text-align:center;color:var(--muted);font-size:13px}.loading{padding:60px;text-align:center;color:var(--muted)}.loading:before{content:'';display:block;width:24px;height:24px;border:3px solid #d3e8e5;border-top-color:var(--teal);border-radius:50%;margin:0 auto 18px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error{padding:13px;background:#fff1ee;color:#a43931;border-radius:7px;font-size:13px;line-height:1.5}.insight{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.info-block{padding:25px}.info-block p{font-size:13px;color:var(--muted)}.status-line{display:flex;justify-content:space-between;gap:20px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:12px}.muted{color:var(--muted)}dialog{border:0;border-radius:16px;max-width:680px;width:calc(100% - 32px);padding:30px;box-shadow:0 30px 100px #102c3c44;color:var(--navy)}dialog::backdrop{background:#102c3c88;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.dialog-head button{padding:5px 10px;background:#eef3f4;color:var(--navy)}dialog .subtitle{margin:-10px 0 25px}.details{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.details dt{font-size:11px;color:var(--muted);margin-bottom:6px}.details dd{margin:0;font-size:14px}.history{margin-top:25px}.history-item{border-left:2px solid #9ed6ce;padding:0 0 20px 18px;margin-left:5px;font-size:12px}.history-item p{color:var(--muted);margin:7px 0 0}.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-story{background:var(--navy);padding:52px 60px;display:flex;flex-direction:column;color:white;position:relative;overflow:hidden}.login-story:after{content:'';position:absolute;width:500px;height:500px;border:1px solid #31505e;border-radius:50%;right:-250px;bottom:-130px;box-shadow:0 0 0 80px #163444,0 0 0 81px #31505e}.login-story .story{margin:auto 0;position:relative;z-index:1}.story h1{font-size:48px;color:white;line-height:1.14;max-width:470px;font-weight:550;letter-spacing:-2px}.story p{color:#a7c2ce;max-width:380px;font-size:15px}.story .eyebrow{color:#5bd5c6;margin-bottom:22px}.login-form{display:flex;align-items:center;justify-content:center;padding:40px;background:#fafcfc}.login-box{width:100%;max-width:370px}.login-box h1{font-size:26px}.login-box form{display:grid;gap:20px;margin-top:30px}.login-box .demo-banner{margin-top:25px;line-height:1.7;overflow-wrap:anywhere}.login-box button{padding:14px}.login-story footer{font-size:11px;color:#80a0af;z-index:1}#notice{position:fixed;bottom:24px;right:24px;background:var(--navy);color:white;box-shadow:0 8px 30px #102c3c33;padding:15px 23px;border-radius:10px;font-size:13px;z-index:5;display:none;max-width:calc(100% - 48px)}.invite-link{margin-top:18px;display:grid;gap:10px}.invite-link input{font-size:11px}.page-note{font-size:11px;color:var(--muted);margin-top:25px;line-height:1.7}.row-link{font-weight:600;color:var(--navy);padding:0;background:transparent}.row-link:hover{color:var(--teal)}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.content{padding:28px}.topbar{padding:18px 28px}.shell{grid-template-columns:210px 1fr}.sidebar{padding:28px 14px}.login-story{padding:40px}.story h1{font-size:40px}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;padding:18px}.brand{font-size:20px}.brand small,.sidebar-bottom{display:none}.nav{display:flex;margin-top:18px;gap:5px;overflow:auto}.nav button{padding:10px;white-space:nowrap;font-size:12px}.nav .icon{width:18px}.topbar{height:auto;padding:16px;align-items:flex-start}.tenant-control{gap:5px}.tenant-control select{max-width:180px}.user-box .avatar,.user-box .user-name{display:none}.content{padding:24px 16px}.heading{align-items:flex-start}h1{font-size:25px}.heading>button{font-size:11px;padding:11px}.cards{gap:10px}.card{padding:17px}.card .value{font-size:28px}.card.accent .value{font-size:19px}.insight{grid-template-columns:1fr}.panel-head{padding:20px 16px}.toolbar{padding:0 16px 18px;flex-wrap:wrap}.toolbar input,.toolbar select{max-width:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.login{grid-template-columns:1fr}.login-story{padding:25px;min-height:180px}.login-story .story{margin:30px 0 0}.story h1{font-size:29px;max-width:100%;letter-spacing:-1px}.story p,.story .eyebrow,.login-story footer{display:none}.login-form{padding:30px 24px}.details{gap:16px}.panel-head button{font-size:11px}dialog{padding:23px}}@media(prefers-reduced-motion:reduce){.loading:before{animation:none}}
.document-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-heading h3{margin-bottom:6px}.section-heading button{flex-shrink:0;font-size:12px}.section-caption{color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 15px}.scan-note{font-size:11px;line-height:1.6;color:#7b6027;background:#fbf5e8;border-left:3px solid #d7b875;padding:10px 12px;margin:15px 0 20px;border-radius:0 6px 6px 0}.document-card{border:1px solid var(--line);padding:17px;border-radius:9px;margin:12px 0;background:#fff}.document-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.document-card-heading>div{min-width:0}.document-title{font-size:13px;text-align:left;overflow-wrap:anywhere}.document-meta{font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0}.document-card-heading .badge{white-space:nowrap;flex-shrink:0}.document-filename{font-size:12px;color:#536d79;overflow-wrap:anywhere;margin:10px 0;line-height:1.6}.document-actions{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 4px}.document-actions a{font-size:12px;color:var(--teal);font-weight:600;text-underline-offset:3px;text-decoration-thickness:1px;padding:4px 0}.document-actions a:hover{color:var(--navy)}.document-history{font-size:11px;margin-top:13px}.document-empty{padding:27px 15px;background:#f7fafb;border:1px dashed #cfdddf;border-radius:9px}.document-original{background:#edf6f3;border:1px solid #d1e8df;border-radius:9px;padding:18px;margin-top:24px}.document-original h3{font-size:13px}.document-summary{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:20px}.document-version{padding:19px 0;border-bottom:1px solid var(--line)}.document-version:last-child{border-bottom:0}.document-version strong{font-size:12px}.checksum{margin-top:14px;font-size:10px;color:var(--muted)}.checksum summary{cursor:pointer;padding:5px 0}.checksum code{display:block;overflow-wrap:anywhere;line-height:1.7;background:#f4f7f8;padding:10px;border-radius:5px;margin-top:6px}.back-link{font-size:12px}.document-confirmation{background:#e8f4ee;border:1px solid #cde4d7;color:#2f654e;border-radius:8px;padding:14px;margin:18px 0;line-height:1.7;font-size:12px;overflow-wrap:anywhere}.field-help{color:var(--muted);font-size:11px;line-height:1.6;margin:0}.upload-progress{background:#f0f6f6;border-radius:8px;padding:15px;margin-top:17px}.upload-progress[hidden]{display:none}.upload-progress progress{width:100%;accent-color:var(--teal);height:7px;display:block;margin:0 0 9px}.upload-progress span{font-size:11px;color:var(--muted)}input[type=file]{padding:14px;background:#f8fbfb;border-style:dashed;line-height:1.7;overflow:hidden}input[type=file]::file-selector-button{border:0;border-radius:5px;padding:8px 11px;background:#e2eeed;color:#24565c;font:inherit;font-weight:600;margin-right:12px;cursor:pointer}.history>summary{font-size:13px;font-weight:600;cursor:pointer;padding:8px 0;color:#456370}.history-list{padding-top:18px}.document-section .loading{padding:25px}.document-section .loading:before{width:18px;height:18px}.document-section .error{font-size:12px}dialog{max-height:calc(100dvh - 32px);overflow-y:auto}.dialog-head h2{overflow-wrap:anywhere;min-width:0}.dialog-head button{flex-shrink:0}@media(max-width:480px){.section-heading{align-items:flex-start}.section-heading button{padding:9px;font-size:11px}.document-card{padding:13px}.document-card-heading{flex-wrap:wrap;gap:8px}.document-actions{gap:15px}.document-actions a{font-size:11px}.document-summary{gap:7px}.document-original{padding:14px}.document-title{font-size:12px}.scan-note{font-size:10px}.actions{flex-wrap:wrap}.actions button{font-size:12px}}
#site-create > .actions,
#site-assign > .actions,
#site-access > .actions { justify-content: flex-start; }
#site-access > .field + .field,
#site-access > #site-choices { margin-top: 16px; }
#site-choices { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
#site-choices[hidden] { display: none; }
#site-choices .site-choice { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
#site-choices .site-choice input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; padding: 0; accent-color: var(--teal); }
.site-directory { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.site-directory li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f4f8f8; overflow-wrap: anywhere; }
.policy-guarantees { display: grid; gap: 12px; }
.policy-guarantee { display: grid; gap: 12px; min-width: 0; }
.policy-guarantee .field { margin: 0; min-width: 0; }
.policy-guarantee-values { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.policy-guarantee textarea { resize: vertical; overflow-wrap: anywhere; }
.policy-guarantee-keep { display: flex; align-items: center; gap: 8px; }
.policy-guarantee-keep input { width: auto; margin: 0; }
.policy-guarantee details { overflow-wrap: anywhere; }
.policy-guarantee-review.with-source { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.policy-source-preview { position: sticky; top: 0; min-width: 0; background: white; }
.policy-source-preview img { display: block; width: 100%; height: auto; margin-top: 8px; }
.policy-source-preview img[hidden] { display: none; }
@media (max-width: 720px) {
  .policy-guarantee-review.with-source { grid-template-columns: minmax(0, 1fr); }
  .policy-source-preview { position: static; grid-row: 1; }
}
dialog:has(.policy-guarantee-review.with-source) { max-width: 1080px; }

/* Shared workspace presentation */
:root {
  color: #23354a;
  background: #f3f5f8;
  --navy: #16283e;
  --teal: #1c5774;
  --muted: #526579;
  --line: #dce3ec;
  --surface: #fff;
  --surface-muted: #f5f7fa;
}
body { font-size: 14px; }
a { color: var(--teal); text-underline-offset: 3px; }
textarea { font: inherit; }
button, input, select, textarea { border-radius: 6px; }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #2675a3;
  outline-offset: 3px;
}
button:focus-visible, a:focus-visible { outline: 2px solid #2675a3; }
.secondary:hover { border-color: #9cb1c4; background: #f4f8fc; }
.sidebar {
  background: #142439;
  border-right: 1px solid #263b52;
  padding-block: 26px;
  overflow-y: auto;
}
.brand { font-size: 23px; letter-spacing: -.55px; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: #e4eff9;
  border-radius: 7px;
  color: #173b58;
}
.brand small { font-size: 9px; letter-spacing: 1.2px; color: #b4c7db; }
.nav { margin-top: 32px; gap: 4px; }
.nav button {
  min-height: 42px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  color: #c6d5e5;
  font-size: 13px;
  white-space: nowrap;
}
.nav button:hover { background: #203650; color: #fff; filter: none; }
.nav button.active { background: #254460; border-left: 2px solid #8cc4ed; }
.nav button:focus-visible { outline-color: #9ad2ff; }
.nav .icon { width: 25px; color: #a7c1da; }
.topbar { height: auto; min-height: 70px; padding-block: 13px; }
.tenant-control, .user-box { min-width: 0; flex-wrap: wrap; }
.company-logo { object-fit: contain; object-position: left center; }
.company-logo-small { width: 40px; height: 40px; }
.company-logo-preview { width: 160px; height: 64px; margin: 12px 0; }
#company-logo-removal { margin-top: 12px; }
#remove-company-logo { width: auto; }
.tenant-control select { max-width: 100%; }
.avatar { background: #e9f0f8; color: #214969; flex-shrink: 0; }
.heading { flex-wrap: wrap; }
.heading h1 { font-weight: 700; letter-spacing: -.75px; }
.eyebrow { color: #526579; letter-spacing: 1.3px; }
.card, .panel, .document-card { border-radius: 8px; }
.card .value { font-variant-numeric: tabular-nums; }
.card.accent { background: #eaf1f8; border-color: #d4e1ef; }
.card.accent .value { color: #173b58; }
.card.accent .label, .card.accent .foot { color: #475f77; }
.panel-head { border-bottom: 1px solid var(--line); }
.panel-head + .toolbar { padding-top: 16px; }
table { font-variant-numeric: tabular-nums; }
th { background: #f1f4f8; color: #465c73; }
td { color: #263c52; }
tbody tr:hover > td { background: #f7f9fc; }
input, select, textarea { border-color: #bbc9d8; }
label { color: #374e65; }
dialog { border: 1px solid #d5deea; border-radius: 10px; }
dialog::backdrop { background: #14243985; backdrop-filter: none; }
.dialog-head { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.dialog-head button { background: var(--surface-muted); min-width: 32px; min-height: 32px; }
.history-item { border-left-color: #9bb5cb; }
.login-story { background: #142439; }
.login-story::after { display: none; }
.story h1 { font-size: clamp(32px, 4vw, 54px); font-weight: 650; letter-spacing: -1px; }
.story p { color: #c6d5e5; }
.login-form { background: #f3f5f8; }
.login-box {
  max-width: 440px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.login-box .demo-banner { margin-bottom: 0; }
.demo-banner { background: #eef4fa; border-color: #d6e3f1; color: #344e67; }
@media (max-width: 760px) {
  .sidebar { padding: 16px; }
  .nav { margin-top: 16px; }
  .nav button { min-height: 40px; }
  .user-box { justify-content: flex-start; }
  .login-form { padding: 24px 16px; }
}

.brand .brand-mark {
  display: block;
  object-fit: contain;
  background: #eef4fa;
  border: 1px solid #c3d4e3;
}
.login-story .brand .brand-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

/* Shared form and disclosure controls */
input[type="checkbox"], input[type="radio"] {
  width: 1rem;
  height: 1rem;
  padding: 0;
  accent-color: var(--teal);
  vertical-align: middle;
}
:where(fieldset) {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
:where(legend) { padding-inline: 5px; color: var(--navy); font-weight: 600; }
:where(summary) { cursor: pointer; color: var(--teal); font-weight: 600; overflow-wrap: anywhere; }
:where(summary):hover { text-decoration: underline; text-underline-offset: 3px; }
dialog :where(form > .field + .field, form > .field + fieldset, form > .form-grid + .field) {
  margin-top: 14px;
}
dialog :where(ul, ol):not(.record-list) { padding-inline-start: 22px; }
dialog :where(li + li):not(.record-row) { margin-top: 6px; }
dialog [role="alert"]:not(:empty):not(:has(.error)) {
  padding: 10px 12px;
  color: #a43931;
  background: #fff1ee;
  border-radius: 6px;
}
dialog .actions { flex-wrap: wrap; }

.record-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding: 14px;
}
.record-row + .record-row { border-top: 1px solid var(--line); }
.record-identity, .record-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.record-identity strong, .record-identity small { display: block; overflow-wrap: anywhere; }
.record-identity small { margin-top: 3px; color: var(--muted); }
.record-actions { flex-wrap: wrap; }
.record-actions:empty { display: none; }
.record-actions .danger { font-size: 12px; }
.badge.neutral { color: #294b6c; background: #eaf1f8; }
@media (min-width: 761px) {
  .login-story {
    background-image: linear-gradient(90deg, rgba(14, 28, 46, .88), rgba(14, 28, 46, .61) 58%, rgba(14, 28, 46, .16)),
      url('/sign-in-tower.webp');
    background-position: center, center 58%;
    background-size: cover;
  }
}
