:root {
  color-scheme: light;
  --ink: #12243c;
  --navy: #071d36;
  --navy-2: #0d2c4f;
  --gold: #c79b3b;
  --gold-soft: #f4ead2;
  --paper: #f5f7fa;
  --card: #ffffff;
  --muted: #65758a;
  --line: #dfe5ec;
  --green: #167458;
  --green-soft: #e8f5ef;
  --amber: #986712;
  --amber-soft: #fff4d7;
  --red: #b64242;
  --red-soft: #fff0ef;
  --shadow: 0 18px 50px rgba(9, 30, 55, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(199, 155, 59, .33);
  outline-offset: 2px;
}

.shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar {
  background: var(--navy);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 34px; }
.brand-mark {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  display: block; object-fit: cover; flex: none;
}
.brand-name { font-weight: 720; font-size: 15px; }
.brand-sub { color: #a9bacd; font-size: 11px; margin-top: 2px; }
.nav-label { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: #8095ac; margin: 0 10px 8px; }
.nav { display: grid; gap: 5px; }
.nav-btn {
  border: 0; background: transparent; color: #b9c7d6; text-align: left; padding: 11px 12px;
  border-radius: 10px; display: flex; gap: 10px; align-items: center;
}
.nav-btn:hover, .nav-btn.active { background: rgba(255,255,255,.09); color: #fff; }
.nav-btn.active::before { content: ""; width: 3px; height: 18px; border-radius: 5px; background: var(--gold); }
.sidebar-note { margin-top: auto; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #b9c7d6; font-size: 11px; line-height: 1.55; }
.lock-dot { display: inline-block; width: 7px; height: 7px; background: #5fce9a; border-radius: 50%; margin-right: 6px; }

.main { min-width: 0; }
.topbar {
  min-height: 76px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; padding: 14px 34px;
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px);
}
.eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 23px; letter-spacing: -.03em; margin-bottom: 0; }
h2 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 6px; }
h3 { font-size: 15px; margin-bottom: 5px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.account-chip { display: flex; align-items: center; gap: 9px; }
.account-chip > div:last-child { display: grid; gap: 1px; }
.account-chip strong { font-size: 12px; color: var(--navy); }
.account-chip span { color: var(--muted); font-size: 11px; }
.logout-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; background: #fff; }
.role-switch { background: #edf1f5; padding: 4px; border-radius: 10px; display: flex; }
.role-switch button { border: 0; background: transparent; color: var(--muted); padding: 7px 11px; border-radius: 7px; font-size: 12px; }
.role-switch button.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(7,29,54,.08); font-weight: 700; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 12px; }

.content { padding: 28px 34px 46px; max-width: 1280px; margin: auto; }
.notice {
  background: #fff9e9; border: 1px solid #ead9a8; color: #73551d; border-radius: 12px;
  padding: 11px 14px; font-size: 12px; display: flex; gap: 9px; align-items: flex-start; margin-bottom: 20px;
}
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.summary-card { padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; overflow: hidden; position: relative; }
.summary-card::after { content: ""; width: 170px; height: 170px; border-radius: 50%; background: var(--gold-soft); position: absolute; right: -86px; top: -92px; opacity: .6; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.summary-stat { font-size: 13px; margin-bottom: 14px; color: var(--muted); }
.summary-stat strong { color: var(--navy); }
.progress-track { height: 8px; background: #e9edf2; border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #deb95f); border-radius: inherit; transition: width .35s ease; }
.progress-ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) var(--progress), #edf0f3 0); position: relative; z-index: 1; }
.progress-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.progress-ring strong { z-index: 2; font-size: 20px; color: var(--navy); }
.contact-card { padding: 21px; }
.contact-row { display: flex; gap: 11px; align-items: center; margin-top: 17px; }
.contact-icon { width: 35px; height: 35px; border-radius: 10px; background: var(--gold-soft); color: var(--amber); display: grid; place-items: center; font-weight: 800; }

.section-card { padding: 22px; margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-btn { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 7px 10px; border-radius: 9px; font-size: 11px; }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.checklist { display: grid; gap: 10px; }
.item {
  border: 1px solid var(--line); border-radius: 13px; padding: 16px; display: grid;
  grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; transition: border-color .2s, transform .2s;
}
.item:hover { border-color: #c5ced8; transform: translateY(-1px); }
.item-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.detail-copy { line-height: 1.55; overflow-wrap: anywhere; }
.review-note { margin-top: 8px; border-left: 3px solid var(--gold); padding: 7px 10px; background: #fffbf2; color: #6d571f; font-size: 12px; line-height: 1.45; }
.provider-note { margin-top: 8px; border-left: 3px solid var(--navy-2); padding: 7px 10px; background: #f1f5f9; color: var(--ink); font-size: 12px; line-height: 1.45; }
.note-field { margin-top: 15px; }
.item-icon { width: 38px; height: 38px; border-radius: 11px; background: #eff3f6; display: grid; place-items: center; color: var(--navy); font-size: 16px; }
.item-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.tag, .status { border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 700; }
.tag { background: #eef1f5; color: var(--muted); }
.status.complete { background: var(--green-soft); color: var(--green); }
.status.missing { background: var(--red-soft); color: var(--red); }
.status.needs-review { background: var(--amber-soft); color: var(--amber); }
.btn { border: 1px solid var(--navy); border-radius: 9px; padding: 9px 13px; font-size: 12px; font-weight: 700; background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy-2); }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.danger { background: #fff; color: var(--red); border-color: #efc8c8; }
.btn.small-btn { padding: 7px 10px; font-size: 11px; }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.inactive-row { opacity: .65; background: #f7f8fa; }
.btn.danger { background: var(--red); color: #fff; border-color: var(--red); }
.manage-actions { flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px; }
.kpi-label { color: var(--muted); font-size: 11px; margin-bottom: 11px; }
.kpi-value { font-size: 25px; font-weight: 760; letter-spacing: -.035em; color: var(--navy); }
.kpi-note { font-size: 10px; color: var(--muted); margin-top: 7px; }
.admin-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; padding: 10px; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--line); }
td { padding: 14px 10px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.provider-cell { display: flex; align-items: center; gap: 9px; }
.large-avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.provider-review-head { padding: 21px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.provider-review-head h2 { margin-bottom: 2px; }
.provider-review-head p { margin-bottom: 0; }
.review-progress { text-align: right; display: grid; gap: 3px; }
.review-progress strong { color: var(--navy); font-size: 25px; }
.review-progress span { color: var(--muted); font-size: 12px; }
.back-btn { border: 0; background: transparent; color: var(--navy); font-weight: 750; font-size: 12px; padding: 4px 0; margin-bottom: 12px; }
.mini-avatar { width: 31px; height: 31px; border-radius: 50%; background: #e9eef3; display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 10px; }
.mini-progress { display: flex; gap: 8px; align-items: center; min-width: 120px; }
.mini-progress .progress-track { width: 70px; height: 5px; }
.requirement-list { display: grid; gap: 9px; }
.requirement-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 11px; }
.requirement-row > div:nth-child(2) { flex: 1; }
.requirement-edit-btn { border:0; background:transparent; color:var(--navy); font-size:11px; font-weight:750; padding:5px; cursor:pointer; }
.requirement-edit-btn:hover { text-decoration:underline; }
.staff-panel { grid-column: 1 / -1; }
.staff-list { display: grid; gap: 9px; }
.staff-row { border: 1px solid var(--line); border-radius: 11px; padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.manager-choices { display: grid; gap: 8px; max-height: 210px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.manager-choice { display: flex; align-items: flex-start; gap: 9px; padding: 7px; border-radius: 8px; cursor: pointer; }
.manager-choice:hover { background: #f5f7fa; }
.manager-choice input { width: auto; margin-top: 3px; }
.manager-choice span { display: grid; gap: 2px; }
.manager-choice small { color: var(--muted); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(3,17,32,.56); display: grid; place-items: center; padding: 18px; }
.modal { background: #fff; width: min(560px, 100%); max-height: 90vh; overflow: auto; border-radius: 17px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal-head { padding: 21px 22px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.modal-body { padding: 21px 22px; }
.modal-actions { padding: 15px 22px 21px; display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 11px; font-weight: 750; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cfd7e0; border-radius: 9px; padding: 10px 11px; color: var(--ink); background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.upload-zone { border: 1.5px dashed #bcc8d4; background: #f8fafb; border-radius: 13px; padding: 24px; text-align: center; }
.upload-zone input { max-width: 100%; }
.security-copy { border-left: 3px solid var(--gold); padding-left: 12px; color: var(--muted); font-size: 11px; line-height: 1.55; margin-top: 13px; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; font-size: 12px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; animation: rise .2s ease; }
.toast.error { background: #8f2f2f; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
.hidden { display: none !important; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr); background: #fff; }
.login-shell.single { display: grid; place-items: center; background: var(--paper); padding: 24px; }
.login-card { width: min(480px, calc(100% - 48px)); margin: auto; padding: 40px 0; }
.login-brand { margin-bottom: 64px; color: var(--navy); }
.login-brand .brand-mark { border-color: #d6dee7; }
.login-brand .brand-sub { color: var(--muted); }
.login-copy { margin-bottom: 26px; }
.login-copy h1, .login-card > h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; margin-bottom: 12px; }
.login-copy p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.login-card .field label { font-size: 13px; }
.login-card .field input { padding: 13px 14px; font-size: 16px; }
.wide { width: 100%; min-height: 46px; }
.login-message { background: #f2f5f8; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 17px; font-size: 13px; line-height: 1.5; }
.success-message { background: var(--green-soft); border-color: #c4e3d6; color: var(--green); }
.error-message { background: var(--red-soft); border-color: #efc9c7; color: var(--red); }
.login-security { display: flex; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 24px; }
.login-security svg { flex: none; margin-top: 2px; color: var(--gold); }
.login-aside { background: linear-gradient(145deg, var(--navy), #0a335c); color: #fff; padding: clamp(48px, 8vw, 110px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-aside::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -220px; top: -160px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.login-aside > * { position: relative; z-index: 1; }
.login-aside h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; max-width: 650px; margin-bottom: 20px; }
.login-aside p { color: #bfd0df; line-height: 1.7; max-width: 570px; }
.login-monogram { width: 88px; height: 88px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: block; object-fit: cover; margin-bottom: 46px; }
.loading-screen { min-height: 100vh; display: flex; gap: 16px; align-items: center; justify-content: center; background: var(--paper); padding: 30px; }
.loading-screen .brand-mark { background: var(--navy); animation: pulse 1.4s ease-in-out infinite; }
.loading-screen p { margin: 4px 0 0; }
@keyframes pulse { 50% { transform: scale(.96); opacity: .72; } }

@media (max-width: 980px) {
  .shell { grid-template-columns: 76px 1fr; }
  .sidebar { padding: 22px 12px; }
  .brand-name, .brand-sub, .nav-label, .nav-btn span, .sidebar-note { display: none; }
  .brand { justify-content: center; }
  .nav-btn { justify-content: center; }
  .nav-btn.active::before { display: none; }
  .admin-grid, .hero-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .review-item { grid-template-columns: 38px 1fr; }
  .review-item .item-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 680px) {
  .shell { display: block; }
  .sidebar { height: auto; position: static; padding: 12px 16px; flex-direction: row; align-items: center; }
  .brand { margin: 0; flex: 1; justify-content: flex-start; }
  .brand-name, .brand-sub { display: block; }
  .nav, .nav-label, .sidebar-note { display: none; }
  .topbar { padding: 12px 16px; align-items: flex-start; gap: 10px; }
  .top-actions { flex-direction: column-reverse; align-items: flex-end; }
  .avatar { display: none; }
  .content { padding: 18px 16px 34px; }
  .summary-card { grid-template-columns: 1fr; }
  .progress-ring { width: 78px; height: 78px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .item { grid-template-columns: 34px 1fr; }
  .item-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .section-head { display: grid; }
  .account-chip > div:last-child { display: none; }
  .provider-review-head { align-items: flex-start; }
  .login-shell { display: block; }
  .login-card { min-height: 100vh; width: min(100% - 34px, 480px); padding: 28px 0 40px; }
  .login-brand { margin-bottom: 46px; }
  .login-aside { display: none; }
}
.login-options {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #294f78;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover {
  color: #071d36;
}
.table-wrap tbody .provider-cell::after { content: "Active"; margin-left: auto; padding: 3px 8px; border-radius: 999px; background: #e4f7ee; color: #16734b; font-size: 10px; font-weight: 700; }
.table-wrap tbody .inactive-row .provider-cell::after { content: "Deactivated"; background: #fde9e7; color: #b53a34; }


.provider-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.archived-row {
  background: #f5f6f8;
  opacity: 0.86;
}

.archived-row .provider-cell::after {
  content: "Archived" !important;
  background: #eceff3 !important;
  color: #586174 !important;
}

@media (max-width: 760px) {
  .provider-toolbar {
    justify-content: flex-start;
  }
}
.requirement-choice-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.requirement-choice-head > label { margin:0; }
.requirement-choice-head > div { display:flex; gap:10px; }
.text-btn { border:0; background:transparent; color:var(--navy); font:inherit; font-size:12px; font-weight:700; padding:2px; cursor:pointer; }
.text-btn:hover { text-decoration:underline; }
.requirement-choices { max-height:240px; overflow:auto; }
.requirement-choices .manager-choice { width:100%; align-items:flex-start; justify-content:flex-start; text-align:left; }
.field .requirement-choices .manager-choice input[type="checkbox"] { width:16px; height:16px; flex:0 0 16px; margin:3px 0 0; padding:0; }
.requirement-choices .manager-choice span { flex:1; min-width:0; }
