:root {
  --ink: #101820;
  --muted: #667085;
  --line: #d9dee7;
  --panel: #ffffff;
  --page: #f4f6f8;
  --soft: #eef1f5;
  --green: #18745b;
  --green-soft: #dff4ed;
  --amber: #9a5b05;
  --amber-soft: #fff1d6;
  --red: #b42318;
  --red-soft: #fee4e2;
  --blue: #2458a6;
  --blue-soft: #e7eefb;
  --teal: #0f766e;
  --purple: #6842a3;
  --shadow: 0 14px 36px rgba(28, 39, 49, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 320ms ease, color 320ms ease;
}

body,
.login-shell,
.login-frame,
.login-header,
.login-panel,
.platform-panel,
.login-card input,
.login-card .primary-btn,
.login-card .secondary-btn,
.theme-toggle,
.theme-toggle-track,
.theme-toggle-knob,
.app-shell,
.sidebar,
.topbar,
.content,
.panel,
.kpi,
.executive-band,
.board-score,
.portfolio-row,
.audit-card,
.audit-hero,
.phase-tile,
.plan-card,
.quarter-column,
.quarter-audit,
.report-block,
.check-row,
.task-row,
.request-row,
.finding-row {
  transition:
    background-color 650ms ease,
    border-color 650ms ease,
    color 650ms ease,
    box-shadow 650ms ease,
    opacity 420ms ease;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #060708;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
}

.login-frame {
  width: min(1440px, 100%);
  min-height: min(800px, calc(100vh - 44px));
  border: 1px solid #222426;
  border-radius: 30px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38);
}

.login-header {
  height: 88px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #242424;
  background: #0d0d0d;
}

.login-header .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f7f7f4;
  color: #ffffff;
  color: #0d0d0d;
  border-color: #f7f7f4;
}

.login-header .sidebar-head strong {
  font-size: 25px;
  font-weight: 500;
  color: #f7f7f4;
}

.login-header .sidebar-head span {
  display: none;
}

.secure-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8d8d8a;
  font-size: 19px;
  font-weight: 400;
}

.secure-label::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 4px;
  display: inline-block;
}

.theme-toggle {
  min-height: 36px;
  border: 1px solid #3a3a37;
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7f7f4;
  background: #151515;
  font-size: 13px;
  font-weight: 700;
}

.theme-toggle-track {
  position: relative;
  width: 52px;
  height: 26px;
  border-radius: 999px;
  background: #2b2b29;
  box-shadow: inset 0 0 0 1px #3a3a37;
}

.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f7f7f4;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), background-color 650ms ease;
  will-change: transform;
}

.theme-toggle.is-light .theme-toggle-knob {
  transform: translateX(26px);
}

.theme-toggle-label {
  min-width: 32px;
  text-align: left;
}

.login-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(420px, 1fr);
  min-height: calc(min(800px, calc(100vh - 44px)) - 88px);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 32px 56px;
  background: #0d0d0d;
}

.login-card {
  width: min(600px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-card h2,
.section-title h2 {
  margin: 0;
  color: #f7f7f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 36px;
  font-weight: 520;
  line-height: 1.05;
}

.login-card p,
.section-title p {
  margin: 8px 0 0;
  color: #999994;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
}

.login-card .form-grid {
  display: grid;
  margin-top: 30px;
  gap: 16px;
}

.login-card label {
  color: #d7d7d2;
  font-size: 17px;
  font-weight: 500;
  gap: 12px;
}

.login-card input {
  min-height: 52px;
  border-color: #2f2f2d;
  border-radius: 12px;
  color: #f7f7f4;
  background: #111111;
  font-size: 22px;
  font-weight: 400;
  padding: 0 24px;
}

.login-card input::placeholder {
  color: #6f6f6b;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -4px;
}

.remember-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  color: #8e8e8b;
  font-size: 17px;
  font-weight: 400;
}

.remember-row input {
  min-height: auto;
  width: 21px;
  height: 21px;
  padding: 0;
  border-radius: 5px;
}

.link-btn {
  border: 0;
  border-bottom: 2px solid #f7f7f4;
  padding: 0;
  color: #f7f7f4;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
}

.login-card .primary-btn,
.login-card .secondary-btn {
  min-height: 48px;
  border-radius: 14px;
  font-size: 21px;
  font-weight: 500;
}

.login-card .primary-btn {
  color: #0d0d0d;
  background: #f7f7f4;
  border-color: #f7f7f4;
}

.login-card .primary-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-card .secondary-btn {
  color: #f7f7f4;
  background: #111111;
  border-color: #3a3a37;
}

.sso-btn::before {
  content: "▧";
  margin-right: 13px;
}

.login-card .credential-panel {
  padding: 0;
  border: 0;
  background: transparent;
  color: #858581;
}

.login-card .credential-panel strong {
  color: #c8c8c2;
}

.support-note {
  margin: -2px 0 0;
  color: #858581;
  font-size: 13px;
}

.support-link {
  border: 0;
  padding: 0;
  color: #f7f7f4;
  background: transparent;
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
}

.platform-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 54px 56px;
  color: #f8f8f7;
  background: #080808;
  border-left: 1px solid #242424;
}

.platform-panel .eyebrow {
  color: #565656;
  font-size: 17px;
  font-weight: 600;
}

.platform-panel h1 {
  max-width: 420px;
  margin: 20px 0 28px;
  color: #f8f8f7;
  font-size: 31px;
  font-weight: 520;
  line-height: 1.32;
}

.feature-window {
  height: 186px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}

.feature-track {
  display: grid;
  gap: 15px;
  animation: featureScroll 16s linear infinite;
}

.feature-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  color: #9a9a97;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.42;
}

.feature-item span {
  width: 11px;
  height: 11px;
  margin-top: 10px;
  border-radius: 50%;
  background: #626260;
}

.compliance-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  color: #41413f;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.compliance-list span::before {
  content: "✓";
  margin-right: 16px;
  color: #3f3f3d;
}

.login-transition {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(12px);
  animation: transitionFade 180ms ease both;
}

.transition-card {
  width: min(420px, 100%);
  border: 1px solid #2f2f2d;
  border-radius: 18px;
  padding: 26px;
  display: grid;
  gap: 12px;
  background: #0d0d0d;
  color: #f7f7f4;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.transition-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f7f7f4;
  color: #0d0d0d;
  font-weight: 800;
}

.transition-card strong {
  font-size: 21px;
}

.transition-card span {
  color: #999994;
  line-height: 1.5;
}

.transition-bar {
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #242424;
}

.transition-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #f7f7f4;
  transform-origin: left;
  animation: transitionProgress 1150ms ease forwards;
}

@keyframes transitionFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes transitionProgress {
  from {
    transform: scaleX(0.08);
  }
  to {
    transform: scaleX(1);
  }
}

.theme-light {
  --ink: #101820;
  --muted: #667085;
  --line: #d9dee7;
  --panel: #ffffff;
  --page: #f4f6f8;
  --soft: #eef1f5;
}

.theme-light .login-shell {
  background: #f2f2ef;
}

.theme-light .login-frame {
  border-color: #d8d8d4;
  background: #fbfbfa;
  box-shadow: 0 30px 80px rgba(16, 24, 32, 0.12);
}

.theme-light .login-header,
.theme-light .login-panel {
  background: #fbfbfa;
  border-color: #e4e4e2;
}

.theme-light .login-header .brand-mark {
  background: #0d0d0d;
  color: #f7f7f4;
  border-color: #0d0d0d;
}

.theme-light .login-header .sidebar-head strong,
.theme-light .login-card h2 {
  color: #0d0d0d;
}

.theme-light .login-card label {
  color: #41413f;
}

.theme-light .login-card input {
  color: #111;
  background: #fbfbfa;
  border-color: #d9d9d6;
}

.theme-light .login-card input::placeholder {
  color: #bcbcb8;
}

.theme-light .link-btn {
  color: #111;
  border-bottom-color: #111;
}

.theme-light .login-card .primary-btn {
  color: #111;
  background: #fbfbfa;
  border-color: #bdbdb9;
}

.theme-light .login-card .secondary-btn {
  color: #111;
  background: #fbfbfa;
  border-color: #bdbdb9;
}

.theme-light .login-card .credential-panel strong {
  color: #585856;
}

.theme-light .support-link {
  color: #111;
}

.theme-light .login-notice {
  border-color: #d9d9d6;
  color: #475467;
  background: #f5f5f2;
}

.theme-light .login-error {
  border-color: #d9d9d6;
  color: #475467;
  background: #f5f5f2;
}

.theme-light label small {
  color: #667085;
}

.theme-light .platform-panel {
  background: #111111;
  border-left-color: #111111;
}

.theme-light .theme-toggle {
  color: #111;
  background: #fbfbfa;
  border-color: #bdbdb9;
}

.theme-light .theme-toggle-track {
  background: #e7e7e3;
  box-shadow: inset 0 0 0 1px #bdbdb9;
}

.theme-light .theme-toggle-knob {
  background: #111;
}

.theme-light .executive-band {
  border-color: #cfd8e3;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, #dce8f6, #e9f3ee);
  box-shadow: none;
}

.theme-light .executive-band h1,
.theme-light .board-score strong,
.theme-light .executive-grid .panel h2,
.theme-light .executive-grid .audit-title h3,
.theme-light .kpi strong {
  color: #101820;
}

.theme-light .executive-band p,
.theme-light .board-score small {
  color: #52606d;
}

.theme-light .executive-band .eyebrow {
  color: var(--blue);
}

.theme-light .board-score {
  border-color: #c9d3df;
  background: rgba(255, 255, 255, 0.82);
}

.theme-light .executive-grid .panel,
.theme-light .kpi {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.theme-light .executive-grid .panel .muted,
.theme-light .executive-grid .audit-title p,
.theme-light .executive-grid .decision-list span,
.theme-light .executive-grid .risk-stack span,
.theme-light .kpi span,
.theme-light .kpi small {
  color: var(--muted);
}

.theme-light .executive-grid .portfolio-row {
  border-color: var(--line);
  background: #ffffff;
}

.theme-light .executive-grid .secondary-btn {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.theme-light .executive-grid .progress-track {
  background: #e9edf3;
}

.theme-light .login-transition {
  background: rgba(244, 246, 248, 0.68);
}

.theme-light .transition-card {
  border-color: #d8d8d4;
  background: #fbfbfa;
  color: #111;
}

.theme-light .transition-mark {
  background: #111;
  color: #f7f7f4;
}

.theme-light .transition-bar {
  background: #e4e4e2;
}

.theme-light .transition-bar span {
  background: #111;
}

@keyframes featureScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.login-error {
  margin-top: 14px;
  border: 1px solid #3a3a37;
  border-radius: 7px;
  padding: 10px 12px;
  color: #d7d7d2;
  background: #111111;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.login-notice {
  margin-top: 14px;
  border: 1px solid #3a3a37;
  border-radius: 7px;
  padding: 10px 12px;
  color: #bcbcb8;
  background: #111111;
  font-size: 13px;
  line-height: 1.45;
}

.credential-panel {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 13px;
}

.credential-panel strong {
  color: var(--ink);
}

.credential-panel small {
  margin-top: 3px;
  color: #344054;
  font-weight: 750;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

label small {
  color: #858581;
  font-size: 12px;
  font-weight: 400;
}

.domain-entry {
  gap: 8px;
}

.domain-entry small {
  padding-left: 4px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 88, 166, 0.12);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: var(--ink);
}

.secondary-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.ghost-btn {
  background: transparent;
  color: var(--muted);
}

.icon-btn {
  width: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sidebar-head span,
.user-strip span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  border: 0;
  border-radius: 7px;
  padding: 11px 12px;
  background: transparent;
  text-align: left;
  color: #475467;
  font-weight: 700;
}

.nav button.active {
  background: var(--soft);
  color: var(--ink);
}

.user-strip {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 12px;
}

.workspace {
  min-width: 0;
}

.topbar {
  min-height: 76px;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(246, 247, 249, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.search {
  max-width: 420px;
}

.content {
  padding: 28px 30px 42px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.content-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.content-head h1 {
  margin: 0;
  font-size: 30px;
}

.content-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.stats-grid,
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat,
.kpi {
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.stat span,
.kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.stat strong,
.kpi strong {
  display: block;
  margin-top: 12px;
  font-size: 32px;
}

.stat small,
.kpi small {
  color: var(--muted);
}

.executive-band {
  min-height: 210px;
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid #263443;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.95), rgba(24, 42, 58, 0.92)),
    linear-gradient(120deg, #14202c, #1f3b4a);
  box-shadow: 0 22px 60px rgba(16, 24, 32, 0.18);
}

.executive-band h1 {
  margin: 0;
  max-width: 760px;
  font-size: 38px;
  line-height: 1.08;
  color: #ffffff;
}

.executive-band p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #c7d3df;
  line-height: 1.55;
}

.executive-band .eyebrow {
  color: #90d4c5;
}

.board-score {
  border: 1px solid rgba(202, 213, 225, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.board-score span,
.plan-card span,
.detail-grid span,
.planning-brief span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.board-score strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 34px;
  color: #ffffff;
}

.board-score small {
  color: #c7d3df;
}

.executive-grid .panel,
.kpi {
  border-color: #263443;
  background: #111b24;
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(16, 24, 32, 0.12);
}

.executive-grid .panel h2,
.executive-grid .audit-title h3,
.kpi strong {
  color: #ffffff;
}

.executive-grid .panel .muted,
.executive-grid .audit-title p,
.executive-grid .decision-list span,
.executive-grid .risk-stack span,
.kpi span,
.kpi small {
  color: #a9b8c8;
}

.executive-grid .portfolio-row {
  border-color: rgba(202, 213, 225, 0.16);
  background: #172433;
}

.executive-grid .secondary-btn {
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(202, 213, 225, 0.2);
}

.executive-grid .decision-list > div,
.executive-grid .control-list > div {
  border-top-color: rgba(202, 213, 225, 0.14);
}

.executive-grid .progress-track {
  background: rgba(226, 232, 240, 0.16);
}

.executive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
  gap: 18px;
}

.board-panel {
  box-shadow: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2,
.panel h3 {
  margin: 0;
  font-size: 18px;
}

.audit-list {
  display: grid;
  gap: 12px;
}

.portfolio-list {
  display: grid;
  gap: 10px;
}

.portfolio-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px minmax(170px, 0.45fr) 82px;
  gap: 14px;
  align-items: center;
  background: #fff;
}

.audit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 118px;
  gap: 14px;
  align-items: center;
  background: #fff;
}

.audit-card button {
  justify-self: end;
}

.audit-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.audit-title h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.portfolio-row .audit-title h3 {
  white-space: normal;
  overflow-wrap: anywhere;
}

.portfolio-row .audit-title p {
  margin-top: 4px;
  line-height: 1.4;
}

.portfolio-row .status-pill {
  justify-self: start;
  white-space: nowrap;
}

.portfolio-row > .secondary-btn {
  justify-self: end;
}

.audit-title p,
.table-wrap td span,
.muted {
  color: var(--muted);
}

.risk-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 99px;
}

.risk-high {
  background: var(--red);
}

.risk-very-high {
  background: #8a1230;
}

.risk-medium {
  background: var(--amber);
}

.risk-low {
  background: var(--green);
}

.risk-very-low {
  background: #6f7785;
}

.risk-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 26px;
  border-radius: 6px;
  padding: 0 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.status-Planning {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-Notstarted {
  color: var(--muted);
  background: rgba(116, 126, 145, 0.16);
}

.status-Fieldwork {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-Reporting {
  color: var(--purple);
  background: #efe8fb;
}

.status-Complete {
  color: var(--green);
  background: var(--green-soft);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
  color: #344054;
  background: #eef1f5;
}

.rating-amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.rating-green {
  color: var(--green);
  background: var(--green-soft);
}

.rating-red {
  color: var(--red);
  background: var(--red-soft);
}

.rating-not-rated {
  color: #475467;
  background: #eef1f5;
}

.progress-track {
  height: 9px;
  border-radius: 99px;
  background: #e9edf3;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.risk-fill-high {
  background: var(--red);
}

.risk-fill-medium {
  background: var(--amber);
}

.risk-fill-low {
  background: var(--green);
}

.progress-label {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.timeline-row strong {
  color: var(--ink);
}

.access-restricted {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.access-card h1 {
  margin: 8px 0 10px;
  font-size: 34px;
  line-height: 1.12;
}

.access-card > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.access-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.access-detail-grid div,
.team-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.access-detail-grid span,
.team-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.access-detail-grid strong,
.team-list strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
}

.access-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.access-actions p {
  flex-basis: 100%;
  margin: 0;
}

.team-list {
  display: grid;
  gap: 10px;
}

.access-queue .decision-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.approval-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.approval-actions button {
  width: auto;
  min-width: 94px;
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

tr:last-child td {
  border-bottom: 0;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.audit-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  margin-bottom: 18px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.audit-hero h1 {
  margin: 0;
  font-size: 28px;
}

.audit-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.detail-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.detail-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.phase-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfd;
}

.phase-tile strong {
  display: block;
  margin-bottom: 8px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tabs button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  min-height: 39px;
  padding: 0 13px;
  font-weight: 800;
  color: #475467;
}

.tabs button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-row,
.task-row,
.request-row,
.finding-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.check-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
}

.check-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.check-row strong,
.task-row strong,
.request-row strong {
  display: block;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.inline-form .full {
  grid-column: 1 / -1;
}

.request-row,
.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px 112px;
  gap: 14px;
  align-items: center;
}

.split-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-draft {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #b8c7e4;
  background: var(--blue-soft);
  color: #243b63;
  line-height: 1.55;
}

.planning-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.planning-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  margin-bottom: 18px;
}

.risk-method-list {
  display: grid;
  gap: 10px;
}

.risk-method-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfd;
}

.risk-method-list strong,
.risk-method-list span {
  display: block;
}

.risk-method-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.risk-method-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfd;
}

.profile-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.profile-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.rating-scale {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rating-scale div {
  display: grid;
  grid-template-columns: minmax(96px, 0.9fr) 0.5fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rating-scale strong {
  color: var(--ink);
}

.rating-scale small {
  color: var(--muted);
  font-size: 12px;
}

.universe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.universe-grid article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.universe-grid strong {
  color: var(--ink);
}

.universe-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.plan-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 26px;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
}

.quarter-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.quarter-column {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.quarter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quarter-head h2 {
  margin: 0;
  font-size: 18px;
}

.quarter-head span {
  color: var(--muted);
  font-size: 13px;
}

.quarter-list {
  display: grid;
  gap: 10px;
}

.quarter-audit {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 13px;
}

.quarter-audit .secondary-btn {
  width: 100%;
  margin-top: 12px;
}

.risk-stack,
.decision-list,
.control-list {
  display: grid;
  gap: 13px;
}

.risk-stack > div {
  display: grid;
  gap: 6px;
}

.risk-stack span,
.decision-list span,
.control-list span {
  color: var(--muted);
  font-size: 13px;
}

.risk-stack strong {
  font-size: 22px;
}

.decision-list > div,
.control-list > div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.decision-list > div:first-child,
.control-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.decision-list strong,
.control-list strong {
  display: block;
  margin-bottom: 4px;
}

.planning-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.planning-brief div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.planning-brief p {
  margin: 8px 0 0;
  color: #344054;
  line-height: 1.5;
}

.ai-apm-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(36, 88, 166, 0.08), rgba(18, 122, 112, 0.08));
}

.ai-apm-builder h3 {
  margin: 6px 0 6px;
  font-size: 20px;
}

.ai-apm-builder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ai-apm-builder textarea {
  min-height: 112px;
}

.ai-request-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.method-grid,
.testing-list {
  display: grid;
  gap: 14px;
}

.method-card,
.testing-card,
.nested-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.method-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.method-card-head > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.method-card h3,
.testing-card h3 {
  margin: 0 0 12px;
}

.method-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.method-card dl div,
.testing-summary div,
.design-grid div,
.tracker-summary div,
.request-log > div,
.issue-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.method-card dt,
.testing-summary span,
.tracker-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.method-card dd {
  margin: 6px 0 0;
  color: var(--ink);
  line-height: 1.5;
}

.register-table {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(180px, 0.65fr) minmax(240px, 1fr) minmax(220px, 0.85fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.register-table > div {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.register-table .register-head {
  background: #eef1f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.register-table span,
.register-table p,
.request-log span,
.issue-card span,
.testing-card p,
.design-grid span,
.design-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.register-table strong,
.testing-summary strong,
.request-log strong,
.issue-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
}

.testing-summary,
.tracker-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tracker-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tracker-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.testing-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.testing-section h4 {
  margin: 0;
}

.upload-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.upload-strip span,
.attribute-list span {
  color: var(--muted);
  font-size: 13px;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
}

.attribute-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attribute-list span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 10px;
}

.request-log {
  display: grid;
  gap: 10px;
}

.procedure-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.35fr) minmax(130px, 0.45fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.procedure-matrix div {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.procedure-matrix div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.procedure-matrix .matrix-head {
  background: #eef1f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-preview {
  display: grid;
  gap: 14px;
}

.report-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.report-block h3 {
  margin: 0 0 8px;
}

.empty-state {
  border: 1px dashed #b9c2cf;
  border-radius: 8px;
  padding: 22px;
  background: #fbfcfd;
  color: var(--muted);
}

/* AuditGPT application theme */
.theme-dark {
  --ink: #f7f7f4;
  --muted: #999994;
  --line: #2f2f2d;
  --panel: #111111;
  --page: #080808;
  --soft: #171717;
}

.theme-dark .app-shell {
  background: #080808;
  color: #f7f7f4;
}

.theme-dark .sidebar,
.theme-dark .topbar {
  background: #0d0d0d;
  border-color: #242424;
}

.theme-dark .workspace,
.theme-dark .content {
  background: #080808;
}

.theme-dark .sidebar .brand-mark {
  background: #f7f7f4;
  color: #0d0d0d;
  border-color: #f7f7f4;
  border-radius: 12px;
}

.theme-dark .sidebar-head strong,
.theme-dark .user-strip strong,
.theme-dark .content-head h1,
.theme-dark .panel h2,
.theme-dark .panel h3,
.theme-dark .audit-title h3,
.theme-dark .quarter-head h2,
.theme-dark .report-block h3 {
  color: #f7f7f4;
  font-weight: 520;
}

.theme-dark .sidebar-head span,
.theme-dark .user-strip span,
.theme-dark .content-head p,
.theme-dark .muted,
.theme-dark .audit-title p,
.theme-dark .timeline-row,
.theme-dark .timeline-row span,
.theme-dark .panel p,
.theme-dark .table-wrap td span,
.theme-dark .quarter-head span,
.theme-dark .plan-card p,
.theme-dark .report-block p,
.theme-dark .access-detail-grid span,
.theme-dark .team-list span {
  color: #999994;
}

.theme-dark .nav button {
  color: #999994;
  font-weight: 500;
}

.theme-dark .nav button.active {
  background: #171717;
  color: #f7f7f4;
}

.theme-dark .search,
.theme-dark input,
.theme-dark textarea,
.theme-dark select {
  background: #111111;
  border-color: #2f2f2d;
  color: #f7f7f4;
}

.theme-dark .primary-btn {
  color: #0d0d0d;
  background: #f7f7f4;
  border-color: #f7f7f4;
  font-weight: 500;
}

.theme-dark .secondary-btn,
.theme-dark .ghost-btn,
.theme-dark .icon-btn {
  color: #f7f7f4;
  background: #111111;
  border-color: #3a3a37;
  font-weight: 500;
}

.theme-dark .tabs .workspace-tab-risk,
.theme-dark .tabs .workspace-tab-risk.active {
  color: #0d0d0d;
  background: #f7f7f4;
  border-color: #f7f7f4;
}

.theme-dark .executive-band {
  border-color: #242424;
  background: #0d0d0d;
  box-shadow: none;
}

.theme-dark .executive-band h1 {
  color: #f7f7f4;
  font-size: 34px;
  font-weight: 520;
}

.theme-dark .executive-band p {
  color: #999994;
}

.theme-dark .executive-band .eyebrow,
.theme-dark .eyebrow {
  color: #6f6f6b;
  font-weight: 600;
}

.theme-dark .board-score,
.theme-dark .panel,
.theme-dark .kpi,
.theme-dark .portfolio-row,
.theme-dark .audit-card,
.theme-dark .audit-hero,
.theme-dark .phase-tile,
.theme-dark .plan-card,
.theme-dark .risk-method-list > div,
.theme-dark .ai-apm-builder,
.theme-dark .method-card,
.theme-dark .testing-card,
.theme-dark .nested-panel,
.theme-dark .method-card dl div,
.theme-dark .testing-summary div,
.theme-dark .design-grid div,
.theme-dark .tracker-summary div,
.theme-dark .request-log > div,
.theme-dark .issue-card,
.theme-dark .profile-metrics div,
.theme-dark .access-detail-grid div,
.theme-dark .team-list div,
.theme-dark .quarter-column,
.theme-dark .quarter-audit,
.theme-dark .report-block,
.theme-dark .check-row,
.theme-dark .task-row,
.theme-dark .request-row,
.theme-dark .finding-row,
.theme-dark .planning-brief div,
.theme-dark .detail-grid div,
.theme-dark .procedure-matrix div {
  border-color: #242424;
  background: #111111;
  color: #f7f7f4;
  box-shadow: none;
}

.theme-dark .kpi span,
.theme-dark .kpi small,
.theme-dark .stat span,
.theme-dark .stat small,
.theme-dark .board-score span,
.theme-dark .board-score small,
.theme-dark .detail-grid span,
.theme-dark .planning-brief span,
.theme-dark .control-list span,
.theme-dark .decision-list span,
.theme-dark th {
  color: #858581;
}

.theme-dark .kpi strong,
.theme-dark .board-score strong,
.theme-dark .stat strong,
.theme-dark .detail-grid strong,
.theme-dark .plan-card strong,
.theme-dark .profile-metrics strong,
.theme-dark .risk-method-list strong,
.theme-dark .control-list strong,
.theme-dark .decision-list strong,
.theme-dark td strong {
  color: #f7f7f4;
  font-weight: 520;
}

.theme-dark .progress-track {
  background: #242424;
}

.theme-dark .progress-bar {
  background: #f7f7f4;
}

.theme-dark table td,
.theme-dark table th,
.theme-dark .user-strip,
.theme-dark .decision-list > div,
.theme-dark .control-list > div,
.theme-dark .access-detail-grid div,
.theme-dark .team-list div,
.theme-dark .register-table,
.theme-dark .register-table > div,
.theme-dark .upload-strip,
.theme-dark .attribute-list span,
.theme-dark .procedure-matrix div {
  border-color: #242424;
}

.theme-dark .procedure-matrix .matrix-head {
  background: #171717;
}

.theme-dark .empty-state {
  border-color: #3a3a37;
  background: #111111;
  color: #858581;
}

.theme-light .app-shell,
.theme-light .workspace,
.theme-light .content {
  background: #f2f2ef;
  color: #0d0d0d;
}

.theme-light .sidebar,
.theme-light .topbar {
  background: #fbfbfa;
  border-color: #e4e4e2;
}

.theme-light .sidebar .brand-mark {
  background: #0d0d0d;
  color: #f7f7f4;
  border-color: #0d0d0d;
  border-radius: 12px;
}

.theme-light .nav button {
  color: #6f6f6b;
  font-weight: 500;
}

.theme-light .nav button.active {
  background: #ecece8;
  color: #0d0d0d;
}

.theme-light .content-head h1,
.theme-light .sidebar-head strong,
.theme-light .user-strip strong,
.theme-light .panel h2,
.theme-light .panel h3,
.theme-light .audit-title h3 {
  color: #0d0d0d;
  font-weight: 520;
}

.theme-light .primary-btn {
  font-weight: 500;
}

.theme-light .secondary-btn {
  background: #fbfbfa;
  border-color: #d8d8d4;
  color: #0d0d0d;
  font-weight: 500;
}

.theme-light .search,
.theme-light input,
.theme-light textarea,
.theme-light select {
  background: #fbfbfa;
  border-color: #d8d8d4;
  color: #0d0d0d;
}

.theme-light .executive-band {
  border-color: #d8d8d4;
  background: #fbfbfa;
  box-shadow: none;
}

.theme-light .executive-band h1 {
  font-size: 34px;
  font-weight: 520;
}

.theme-light .board-score,
.theme-light .panel,
.theme-light .kpi,
.theme-light .portfolio-row,
.theme-light .audit-card,
.theme-light .audit-hero,
.theme-light .phase-tile,
.theme-light .plan-card,
.theme-light .risk-method-list > div,
.theme-light .ai-apm-builder,
.theme-light .method-card,
.theme-light .testing-card,
.theme-light .nested-panel,
.theme-light .method-card dl div,
.theme-light .testing-summary div,
.theme-light .design-grid div,
.theme-light .tracker-summary div,
.theme-light .request-log > div,
.theme-light .issue-card,
.theme-light .profile-metrics div,
.theme-light .quarter-column,
.theme-light .quarter-audit,
.theme-light .report-block,
.theme-light .check-row,
.theme-light .task-row,
.theme-light .request-row,
.theme-light .finding-row,
.theme-light .planning-brief div,
.theme-light .detail-grid div,
.theme-light .access-detail-grid div,
.theme-light .team-list div,
.theme-light .register-table,
.theme-light .register-table > div,
.theme-light .upload-strip,
.theme-light .attribute-list span,
.theme-light .procedure-matrix div {
  border-color: #d8d8d4;
  background: #fbfbfa;
  box-shadow: none;
}

@media (max-width: 1040px) {
  .login-shell,
  .app-shell,
  .grid-2,
  .workspace-layout,
  .access-restricted,
  .executive-grid,
  .executive-band,
  .login-body {
    grid-template-columns: 1fr;
  }

  .login-frame {
    min-height: auto;
  }

  .platform-panel {
    min-height: 430px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats-grid,
  .kpi-grid,
  .phase-grid,
  .detail-grid,
  .access-detail-grid,
  .planning-insight-grid,
  .universe-grid,
  .planning-summary,
  .planning-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-row {
    grid-template-columns: minmax(0, 1fr) 124px;
  }

  .portfolio-row > div:nth-of-type(2),
  .portfolio-row > .secondary-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .login-header,
  .login-panel,
  .platform-panel,
  .content,
  .topbar {
    padding: 13px 18px;
  }

  .login-shell {
    padding: 0;
  }

  .login-frame {
    min-height: auto;
    border-radius: 0;
  }

  .login-header {
    height: auto;
    min-height: 62px;
  }

  .login-header .brand-mark {
    width: 42px;
    height: 42px;
  }

  .login-header .sidebar-head strong {
    font-size: 23px;
  }

  .secure-label {
    display: none;
  }

  .login-card h2 {
    font-size: 26px;
  }

  .login-card p {
    font-size: 16px;
  }

  .login-card .form-grid {
    margin-top: 20px;
    gap: 10px;
  }

  .login-card label {
    font-size: 15px;
    gap: 8px;
  }

  .login-card input {
    min-height: 44px;
    font-size: 18px;
  }

  .login-card .primary-btn,
  .login-card .secondary-btn {
    min-height: 42px;
    font-size: 18px;
  }

  .remember-row {
    font-size: 15px;
  }

  .remember-row input {
    width: 18px;
    height: 18px;
  }

  .login-card .credential-panel {
    font-size: 12px;
  }

  .platform-panel h1 {
    margin: 10px 0 14px;
    font-size: 21px;
  }

  .platform-panel .eyebrow,
  .feature-item,
  .compliance-list {
    font-size: 14px;
  }

  .feature-window {
    height: 84px;
  }

  .feature-track {
    gap: 9px;
  }

  .feature-item {
    gap: 14px;
    line-height: 1.3;
  }

  .compliance-list {
    margin-top: 12px;
    gap: 6px;
  }

  .mini-metrics,
  .stats-grid,
  .kpi-grid,
  .phase-grid,
  .detail-grid,
  .planning-insight-grid,
  .profile-metrics,
  .rating-scale div,
  .universe-grid,
  .planning-summary,
  .planning-brief,
  .inline-form,
  .procedure-matrix {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
  }

  .content-head,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .audit-card,
  .portfolio-row,
  .access-detail-grid,
  .request-row,
  .task-row {
    grid-template-columns: 1fr;
  }

  .access-queue .decision-list > div {
    grid-template-columns: 1fr;
  }

  .approval-actions {
    justify-content: flex-start;
  }

  .audit-card button {
    justify-self: start;
  }
}
