:root {
  color-scheme: light;
  --font-sans: "SF Pro Text", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "SF Pro Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface-soft: #fafbf7;
  --ink: #18231f;
  --muted: #65736b;
  --line: #d9e2dc;
  --strong-line: #c2d0c7;
  --green: #0f5d4f;
  --green-dark: #0a3f35;
  --blue: #284f7d;
  --amber: #b5823a;
  --red: #a13b3b;
  --shadow: 0 18px 45px rgba(25, 37, 31, 0.09);
  --soft-shadow: 0 10px 24px rgba(25, 37, 31, 0.055);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.46;
  font-family: var(--font-sans);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
.brand-row,
.panel-head h2,
.metric strong,
.view-title h1,
.login-copy h1 {
  font-family: var(--font-display);
}

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(244, 246, 242, 0.9), rgba(244, 246, 242, 0.95)),
    url("data:image/svg+xml,%3Csvg width='1600' height='1000' viewBox='0 0 1600 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1600' height='1000' fill='%23f4f6f2'/%3E%3Cg fill='none' stroke='%23c3d0c8' stroke-width='2' opacity='.68'%3E%3Cpath d='M0 750 C220 680 260 580 480 610 C720 642 700 820 980 790 C1210 765 1280 585 1600 650'/%3E%3Cpath d='M0 260 C250 315 350 180 590 230 C840 280 920 420 1180 360 C1360 318 1470 260 1600 295'/%3E%3Cpath d='M200 100 L420 220 L620 130 L840 260 L1080 140 L1280 260 L1500 180'/%3E%3C/g%3E%3Cg fill='%230f5d4f' opacity='.085'%3E%3Crect x='220' y='330' width='250' height='170' rx='10'/%3E%3Crect x='540' y='390' width='190' height='130' rx='10'/%3E%3Crect x='880' y='250' width='270' height='160' rx='10'/%3E%3Crect x='1180' y='470' width='220' height='145' rx='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.login-panel {
  width: min(900px, 100%);
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.login-panel.platform-login {
  width: min(860px, 100%);
}

.login-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-right: 1px solid var(--line);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(18, 34, 29, 0.08);
}

.brand-mark img,
.brand-dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-domain {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
}

.login-copy h1,
.view-title h1 {
  margin: 0;
  line-height: 1.12;
  font-size: 26px;
  letter-spacing: 0;
}

.login-copy p,
.view-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 0;
}

.login-stack {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px 30px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 4px;
}

.login-tabs.single {
  grid-template-columns: 1fr;
}

.login-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.login-tabs button.active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 6px 16px rgba(38, 48, 40, 0.08);
}

.portal-login {
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.portal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.portal-head h2 {
  margin: 0;
  font-size: 14px;
}

.portal-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-context {
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.login-context-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 251, 247, 0.72);
}

.login-context-item strong {
  font-size: 11px;
  line-height: 1.2;
}

.login-context-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.login-note {
  border-left: 3px solid var(--green);
  background: rgba(15, 93, 79, 0.06);
  color: var(--green-dark);
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.demo-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.field-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--strong-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 7px 9px;
  outline: none;
}

.field input[type="color"] {
  padding: 3px;
}

.field textarea {
  line-height: 1.45;
  resize: vertical;
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  min-height: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  accent-color: var(--green-dark);
}

.field select[multiple] {
  min-height: 116px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 93, 79, 0.13);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

.compact {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 11px;
}

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

.primary-btn:hover {
  background: var(--green-dark);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.primary-btn:disabled:hover {
  background: var(--green);
}

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

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

.ghost-btn:hover,
.icon-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.link-btn {
  min-height: auto;
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 2px 0;
  font-size: 11px;
  font-weight: 800;
}

.link-btn:hover {
  color: var(--green);
  text-decoration: underline;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 10px 12px;
  line-height: 1.45;
}

.notice.success {
  border-color: rgba(15, 93, 79, 0.24);
  background: rgba(15, 93, 79, 0.065);
  color: var(--green-dark);
  font-weight: 800;
}

.error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid #093244;
  background: linear-gradient(180deg, #083447 0%, #072c42 50%, #05243a 100%);
  color: #e8f3f1;
}

.sidebar-head {
  padding: 16px;
  border-bottom: 1px solid rgba(221, 235, 230, 0.12);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.brand-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 34, 29, 0.08);
}

.tenant-name {
  margin-top: 10px;
  color: #a9beb9;
  font-size: 11px;
  line-height: 1.5;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  min-height: 23px;
  border: 1px solid rgba(18, 183, 106, 0.34);
  border-radius: 999px;
  background: rgba(18, 183, 106, 0.14);
  color: #d8f8e8;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.nav {
  padding: 10px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-group {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.nav-group-label {
  padding: 8px 10px 5px;
  color: #89a39f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c6d6d3;
  padding: 0 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  transition:
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.nav button:hover,
.nav button.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav button.active {
  background: linear-gradient(90deg, #12b76a 0%, #0f8f68 100%);
  box-shadow: 0 8px 24px rgba(18, 183, 106, 0.22);
  color: #fff;
}

.nav-submenu {
  display: grid;
  margin: -1px 0 6px 27px;
  padding: 4px 0 4px 9px;
  border-left: 1px solid rgba(232, 243, 241, 0.16);
}

.nav-submenu label {
  display: grid;
  gap: 4px;
}

.nav-submenu label > span {
  color: rgba(232, 243, 241, 0.42);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-submenu select {
  width: min(100%, 150px);
  min-height: 30px;
  border: 1px solid rgba(232, 243, 241, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
  outline: none;
}

.nav-submenu select:focus {
  border-color: rgba(33, 201, 139, 0.7);
  box-shadow: 0 0 0 3px rgba(33, 201, 139, 0.13);
}

.nav-submenu select option {
  color: #0f1d1a;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: inherit;
}

.nav-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-foot {
  padding: 12px;
  border-top: 1px solid rgba(221, 235, 230, 0.12);
}

.user-chip {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  color: #a9beb9;
  font-size: 11px;
}

.user-chip strong {
  color: #fff;
  font-size: 12px;
}

.sidebar .secondary-btn {
  border-color: rgba(221, 235, 230, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 242, 0.92);
  padding: 0 24px;
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.topbar-context {
  display: grid;
  gap: 2px;
  min-width: 120px;
}

.topbar-context span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar-context strong {
  font-size: 13px;
}

.search-box {
  width: min(440px, 100%);
}

.search-box input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #bfd4ca;
  border-radius: 999px;
  background: #edf6f1;
  color: var(--green-dark);
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.connection-pill.offline {
  border-color: #e2c486;
  background: #fff6df;
  color: var(--amber);
}

.content {
  padding: 22px;
}

.security-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(177, 128, 20, 0.26);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  padding: 10px 12px;
  box-shadow: 0 1px 0 rgba(38, 48, 40, 0.03);
}

.security-nudge strong,
.security-nudge span {
  display: block;
}

.security-nudge strong {
  font-size: 12px;
}

.security-nudge span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.view-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.view-title h1 {
  font-size: 22px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbf7 100%);
  box-shadow: var(--soft-shadow);
  padding: 16px;
}

.dashboard-hero h2 {
  margin: 0;
  font-size: 18px;
}

.dashboard-hero p {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(174px, 1fr));
  gap: 10px;
}

.action-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px 10px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(38, 48, 40, 0.03);
}

.action-card:hover {
  border-color: #bfd2c8;
  background: #fbfcf8;
}

.action-card.is-primary {
  border-color: #b5cec2;
  background: #edf6f1;
}

.action-card strong {
  display: block;
  font-size: 12px;
}

.action-card small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.4;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.advanced-subnav-strip {
  display: flex;
  gap: 7px;
  margin: -4px 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.advanced-subnav-strip button {
  flex: 0 0 auto;
  min-height: 31px;
  border: 1px solid var(--strong-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 900;
}

.advanced-subnav-strip button.active {
  border-color: rgba(15, 93, 79, 0.18);
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 93, 79, 0.16);
}

.compact-metrics {
  margin-bottom: 10px;
}

.premium-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 1px 0 rgba(38, 48, 40, 0.03);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.metric-warning {
  border-color: #e7d49c;
  background: #fffaf0;
}

.metric-danger {
  border-color: #efc5c5;
  background: #fff7f7;
}

.dashboard-premium {
  display: grid;
  gap: 12px;
}

.dashboard-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-kpi-card {
  position: relative;
  min-height: 112px;
  border: 1px solid rgba(216, 226, 219, 0.92);
  border-radius: 8px;
  background: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--kpi-color) 11%, #fff) 0%, #fff 54%),
    #fff;
  padding: 12px 12px 11px 58px;
  box-shadow: 0 10px 28px rgba(22, 35, 31, 0.06);
  overflow: hidden;
}

.dashboard-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto 10px 10px auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--kpi-color) 10%, transparent);
}

.dashboard-kpi-card.is-warning {
  border-color: rgba(245, 158, 11, 0.35);
}

.dashboard-kpi-icon,
.dashboard-status-icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
}

.dashboard-kpi-icon {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--kpi-color);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--kpi-color) 26%, transparent);
}

.dashboard-kpi-icon .nav-svg {
  width: 17px;
  height: 17px;
}

.dashboard-kpi-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.dashboard-kpi-card strong {
  display: block;
  margin-top: 6px;
  color: #17211d;
  font-size: 21px;
  line-height: 1.05;
}

.dashboard-kpi-card small {
  display: block;
  margin-top: 6px;
  color: #66756d;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.74fr) minmax(300px, 0.86fr);
  gap: 12px;
  align-items: stretch;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(320px, 1fr) minmax(300px, 1fr);
  gap: 12px;
}

.dashboard-panel {
  border-color: rgba(216, 226, 219, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(22, 35, 31, 0.055);
}

.dashboard-panel .panel-head {
  min-height: 48px;
  background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
}

.dashboard-panel .panel-head h2,
.dashboard-panel .report-meta strong {
  font-size: 12px;
}

.dashboard-panel .report-meta span {
  font-size: 10px;
  line-height: 1.35;
}

.dashboard-chart {
  min-height: 238px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.dashboard-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-chart-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 8px;
  border: 1px solid #cfe3d8;
  border-radius: 999px;
  background: #f2faf6;
  color: var(--green-dark);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
}

.dashboard-chart-summary span {
  color: var(--muted);
  text-transform: uppercase;
}

.dashboard-bar-chart {
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(92px, 1fr));
  align-items: end;
  gap: 12px;
  width: max(100%, var(--chart-min-width));
  min-height: 232px;
  padding: 8px 4px 0;
}

.dashboard-bar-item {
  display: grid;
  grid-template-rows: auto 154px minmax(34px, auto);
  gap: 7px;
  align-items: end;
  min-width: 0;
}

.dashboard-bar-item strong {
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}

.dashboard-bar-track {
  position: relative;
  display: flex;
  align-items: end;
  height: 154px;
  overflow: hidden;
  border-bottom: 1px solid #dfe8e2;
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(180deg, rgba(221, 232, 226, 0.65) 1px, transparent 1px) 0 0 / 100% 38px,
    #f7faf8;
}

.dashboard-bar-track span {
  display: block;
  width: 100%;
  min-height: 6px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--chart-color) 72%, #fff) 0%, var(--chart-color) 100%);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--chart-color) 22%, transparent);
}

.dashboard-bar-item small {
  display: block;
  min-height: 34px;
  color: #64726b;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-chart-grid line {
  stroke: #e7eee9;
  stroke-width: 1;
}

.dashboard-chart-grid text {
  fill: #7a8982;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-chart-area {
  fill: url(#dashboardChartFill);
}

.dashboard-chart-line {
  fill: none;
  stroke: #079455;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.dashboard-chart-point circle {
  fill: #fff;
  stroke: #079455;
  stroke-width: 3;
}

.dashboard-chart-point text {
  fill: #64726b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-status-list {
  display: grid;
  gap: 7px;
}

.dashboard-status-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fbf9;
  color: var(--ink);
  padding: 6px 7px;
  text-align: left;
}

.dashboard-status-row:hover {
  border-color: #cbded4;
  background: #fff;
}

.dashboard-status-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #0f5d4f;
}

.dashboard-status-icon .nav-svg {
  width: 15px;
  height: 15px;
}

.dashboard-status-row strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 11px;
}

.dashboard-status-row > span:not(.dashboard-status-icon) {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-status-row em {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: #1f2b26;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-status-row .badge {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

.dashboard-premium .dashboard-actions-premium {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-premium .action-card {
  min-height: 76px;
  border-color: #d9e5de;
  background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
  padding: 10px;
}

.dashboard-premium .action-card .nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef7f2;
  color: var(--green-dark);
}

.dashboard-premium .action-card.is-primary .nav-icon {
  background: var(--green);
  color: #fff;
}

.dashboard-premium .action-card small {
  font-size: 10px;
}

.dashboard-donut-wrap {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.dashboard-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--donut-fill);
  box-shadow: inset 0 0 0 1px rgba(15, 93, 79, 0.08);
}

.dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #e7eee9;
}

.dashboard-donut.is-empty {
  background: #eef4f0;
}

.dashboard-donut strong,
.dashboard-donut span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.dashboard-donut strong {
  align-self: end;
  color: #17211d;
  font-size: 20px;
}

.dashboard-donut span {
  align-self: start;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-donut-legend {
  display: grid;
  gap: 8px;
}

.dashboard-donut-legend div:not(.empty) {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-donut-legend strong {
  color: var(--ink);
}

.dashboard-table-wrap {
  max-height: 260px;
}

.dashboard-table-wrap td,
.dashboard-table-wrap th {
  padding-block: 7px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 12px;
}

.lower-grid {
  margin-top: 12px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(38, 48, 40, 0.03);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.panel-head h2 {
  min-width: 0;
  margin: 0;
  font-size: 13px;
}

.panel-body {
  padding: 12px;
}

.panel-subtitle {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.color-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 1px solid var(--strong-line);
  border-radius: 50%;
  vertical-align: -2px;
}

.table-wrap {
  max-height: 560px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 11px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfcf8;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

tbody tr:hover td {
  background: #fbfdf9;
}

td input,
td select,
.panel-head select {
  width: min(100%, 260px);
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 5px 7px;
  color: var(--ink);
  font-size: 12px;
}

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

.table-wrap td .muted {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border: 1px solid #bfd4ca;
  border-radius: 999px;
  background: #edf6f1;
  color: var(--green-dark);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
}

.badge.warning {
  border-color: #e2c486;
  background: #fff6df;
  color: var(--amber);
}

.badge.danger {
  border-color: #efb6b6;
  background: #fff0f0;
  color: var(--red);
}

.badge.low {
  border-color: #c9d8cf;
  background: #f5faf6;
  color: var(--green-dark);
}

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

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.broadcast-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #c8d8cf;
  border-radius: 8px;
  background: #f5faf6;
  padding: 10px 12px;
}

.broadcast-preview strong {
  font-size: 12px;
  color: var(--green-dark);
}

.broadcast-preview span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.channel-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.channel-check {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 4px 8px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.channel-check input {
  grid-row: 1 / span 2;
  margin-top: 2px;
}

.channel-check strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
}

.channel-check span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.check-row input {
  margin-top: 2px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.tenant-module-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  gap: 8px;
  background: #fbfdfa;
}

.tenant-module-grid .tenant-module-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid #d9e4dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
  color: var(--ink);
}

.tenant-module-grid .tenant-module-choice:hover {
  border-color: #b8cec2;
  background: #f6faf7;
}

.tenant-module-grid .tenant-module-choice input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green-dark);
  justify-self: center;
}

.tenant-module-grid .tenant-module-choice span {
  min-width: 0;
  color: #47584f;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: none;
}

.tenant-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 180px;
}

.tenant-config-form {
  margin-top: 14px;
}

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

.tenant-config-card {
  border: 1px solid #d9e4dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.tenant-config-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.tenant-config-card .checkbox-grid {
  grid-column: 1 / -1;
}

.tenant-usage-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.tenant-usage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  border: 1px solid #e3ece7;
  border-radius: 8px;
  background: #f8fbf8;
  padding: 8px 10px;
}

.tenant-usage-item strong,
.tenant-usage-item span {
  display: block;
}

.tenant-usage-item strong {
  color: var(--ink);
  font-size: 12px;
}

.tenant-usage-item span {
  color: var(--muted);
  font-size: 11px;
}

.tenant-usage-track {
  grid-column: 1 / -1;
  width: 100%;
}

.tenant-action-row {
  margin-top: 10px;
  justify-content: flex-start;
}

.tenant-save-btn {
  width: 100%;
  margin-top: 12px;
}

.tenant-brand-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 14px;
  align-items: end;
  min-height: 154px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tenant-preview-primary) 82%, #071b17) 0%, color-mix(in srgb, var(--tenant-preview-secondary) 58%, transparent) 52%, transparent 100%),
    var(--tenant-preview-image) center / cover no-repeat;
  color: #fff;
  padding: 18px;
}

.tenant-brand-preview span,
.tenant-brand-preview small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.tenant-brand-preview span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.tenant-brand-preview strong {
  display: block;
  max-width: 36ch;
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.05;
}

.tenant-brand-preview small {
  max-width: 44ch;
  margin-top: 8px;
  line-height: 1.4;
}

.tenant-brand-preview b {
  justify-self: end;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--tenant-preview-primary), var(--tenant-preview-accent));
  box-shadow: 0 18px 42px color-mix(in srgb, var(--tenant-preview-primary) 36%, transparent);
}

.tenant-media-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px) auto;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  background: rgba(247, 250, 247, 0.74);
  padding: 12px;
}

.tenant-media-upload strong,
.tenant-media-upload span,
.tenant-media-upload small {
  display: block;
}

.tenant-media-upload strong {
  font-size: 12px;
}

.tenant-media-upload span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.tenant-media-upload small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.tenant-media-upload input {
  min-width: 0;
}

.tenant-preview-devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: stretch;
}

.tenant-preview-desktop,
.tenant-preview-mobile-screen,
.mobile-screen {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 58px rgba(17, 35, 30, 0.09);
}

.tenant-preview-desktop {
  min-height: 240px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tenant-preview-primary) 76%, #071b17) 0%, color-mix(in srgb, var(--tenant-preview-secondary) 40%, transparent) 54%, rgba(255, 255, 255, 0.16) 100%),
    var(--tenant-preview-image) center / cover no-repeat;
  color: #ffffff;
  padding: 14px;
}

.tenant-preview-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.tenant-preview-nav span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.tenant-preview-nav img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tenant-preview-nav b,
.tenant-preview-mobile-screen b {
  border-radius: 999px;
  background: #ffffff;
  color: var(--tenant-preview-primary);
  padding: 8px 11px;
  font-size: 10px;
  box-shadow: 0 14px 36px rgba(5, 20, 18, 0.12);
}

.tenant-preview-hero {
  display: grid;
  align-content: end;
  max-width: 460px;
  min-height: 176px;
  padding-top: 30px;
}

.tenant-preview-hero small,
.tenant-preview-mobile-screen span,
.tenant-preview-mobile-screen small,
.mobile-hero-card small,
.mobile-row span,
.mobile-pwa-list span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.tenant-preview-hero strong {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.04;
}

.tenant-preview-hero span {
  max-width: 52ch;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.48;
}

.tenant-preview-mobile {
  display: grid;
  place-items: center;
}

.tenant-preview-mobile-screen {
  display: grid;
  align-content: end;
  width: 160px;
  min-height: 240px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tenant-preview-primary) 78%, #071b17), color-mix(in srgb, var(--tenant-preview-secondary) 26%, transparent)),
    var(--tenant-login-preview) center / cover no-repeat;
  color: #ffffff;
  padding: 16px;
}

.tenant-preview-mobile-screen strong {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.08;
}

.tenant-preview-mobile-screen b {
  justify-self: start;
  margin-top: 14px;
}

.tenant-billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tenant-billing-plan {
  display: grid;
  gap: 6px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(13, 111, 86, 0.08), rgba(43, 86, 132, 0.08)),
    rgba(247, 250, 247, 0.86);
  padding: 12px;
}

.tenant-billing-plan strong,
.tenant-billing-plan span,
.tenant-billing-plan small {
  display: block;
}

.tenant-billing-plan span {
  color: var(--green-dark);
  font-weight: 900;
}

.tenant-billing-plan small {
  color: var(--muted);
  line-height: 1.38;
}

.tenant-billing-table {
  max-height: 360px;
}

.mobile-pwa-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.mobile-device-preview {
  display: grid;
  justify-items: center;
}

.mobile-screen {
  display: grid;
  gap: 12px;
  width: min(240px, 100%);
  min-height: 430px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--green-dark) 88%, #061512), color-mix(in srgb, var(--green) 52%, #eaf3ed));
  color: #ffffff;
  padding: 16px;
}

.mobile-screen.lecturer {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 84%, #07111f), color-mix(in srgb, var(--green) 38%, #eff7f2));
}

.mobile-topbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mobile-topbar span,
.mobile-topbar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-topbar span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.mobile-topbar strong {
  font-size: 11px;
}

.mobile-hero-card,
.mobile-mini-grid div,
.mobile-row {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 12px;
}

.mobile-hero-card {
  display: grid;
  gap: 4px;
  min-height: 108px;
  align-content: end;
}

.mobile-hero-card strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
}

.mobile-hero-card span {
  color: rgba(255, 255, 255, 0.82);
}

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

.mobile-mini-grid div {
  display: grid;
  gap: 3px;
}

.mobile-mini-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.mobile-mini-grid strong {
  font-size: 18px;
}

.mobile-row {
  display: grid;
  gap: 4px;
}

.mobile-row strong,
.mobile-pwa-list strong {
  overflow-wrap: anywhere;
}

.mobile-pwa-panels {
  display: grid;
  gap: 12px;
}

.mobile-pwa-list {
  display: grid;
  gap: 8px;
}

.mobile-pwa-list > div:not(.empty) {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  background: rgba(247, 250, 247, 0.78);
  padding: 10px;
}

.mobile-pwa-list span {
  color: var(--muted);
  line-height: 1.4;
  text-transform: none;
}

.security-activity-list {
  display: grid;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding-right: 2px;
}

.security-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  background: rgba(247, 250, 247, 0.78);
  padding: 10px;
}

.security-activity-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.security-activity-row strong,
.security-activity-row span,
.security-activity-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.security-activity-row span,
.security-activity-row small {
  color: var(--muted);
  line-height: 1.38;
}

.security-activity-row small {
  font-size: 10px;
}

.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.audit-list,
.notification-list,
.mini-list {
  display: grid;
  gap: 8px;
}

.mini-list {
  margin-top: 12px;
}

.audit-item,
.notification-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.notification-item.is-unread {
  border-color: rgba(185, 125, 20, .35);
  background: #fffaf0;
}

.notification-item.is-read {
  opacity: .78;
}

.audit-item strong,
.notification-item strong {
  display: block;
  margin-bottom: 6px;
}

.notification-item p {
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.45;
}

.audit-item span,
.notification-item span {
  color: var(--muted);
  font-size: 11px;
}

.muted {
  color: var(--muted);
  font-size: 11px;
}

.danger-text {
  color: var(--red);
}

.context-line {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.context-line span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.domain-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.domain-readiness .context-line small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.tenant-onboarding-wizard {
  display: grid;
  gap: 14px;
}

.tenant-wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 111, 86, 0.08), rgba(49, 95, 155, 0.08));
}

.tenant-wizard-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 9px 10px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.tenant-wizard-step small {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
}

.tenant-wizard-step span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tenant-wizard-step strong {
  color: inherit;
  font-size: 11px;
}

.tenant-wizard-step em {
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-wizard-step.active,
.tenant-wizard-step.done {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(21, 61, 45, 0.08);
}

.tenant-wizard-step.done small {
  background: var(--green-dark);
  color: #ffffff;
}

.tenant-wizard-panels {
  min-height: 360px;
}

.tenant-wizard-panel[hidden] {
  display: none;
}

.tenant-wizard-panel {
  display: grid;
  gap: 14px;
}

.tenant-wizard-intro {
  display: grid;
  gap: 5px;
}

.tenant-wizard-intro h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.tenant-wizard-intro p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tenant-wizard-section {
  display: grid;
  gap: 12px;
}

.tenant-wizard-note {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 111, 86, 0.08), rgba(170, 107, 18, 0.08));
  padding: 12px;
}

.tenant-wizard-note strong {
  color: var(--ink);
  font-size: 12px;
}

.tenant-wizard-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

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

.tenant-wizard-review div {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  background: #f8fbf8;
  padding: 12px;
}

.tenant-wizard-review span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.tenant-wizard-review strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.tenant-wizard-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.operation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 12px;
}

.operation-panel-main .panel-body {
  min-height: 230px;
}

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

.operation-signal {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  background: #f8fbf8;
  padding: 12px;
}

.operation-signal span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-signal strong {
  color: var(--ink);
  font-size: 18px;
}

.operation-signal.ok strong {
  color: var(--green-dark);
}

.operation-signal.danger strong {
  color: #b42318;
}

.operation-action-row .secondary-btn {
  min-width: 82px;
}

.compact-actions {
  gap: 6px;
  flex-wrap: nowrap;
}

.krs-form {
  display: grid;
  gap: 12px;
}

.choice-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.choice-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.choice-item input {
  margin-top: 3px;
}

.choice-item strong,
.choice-item small {
  display: block;
}

.choice-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.inline-actions input {
  min-width: 160px;
  min-height: 30px;
  border: 1px solid var(--strong-line);
  border-radius: 8px;
  padding: 6px 8px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.list-row div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.list-row span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.stack-block {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  margin-bottom: 10px;
}

.stack-block p {
  margin: 0;
  color: var(--muted);
}

.question-list,
.cbt-attempt-form {
  display: grid;
  gap: 10px;
}

.question-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 11px;
}

.option-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.option-list span {
  display: block;
}

.option-list .correct {
  color: var(--green-dark);
  font-weight: 800;
}

.compact-choice {
  max-height: none;
}

.mini-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

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

.attendance-save {
  margin-top: 10px;
}

.attendance-access {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
}

.attendance-access .summary-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
}

.attendance-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.attendance-qr img {
  width: 96px;
  height: 96px;
  display: block;
}

.mono-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0;
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 12px 14px;
  color: var(--muted);
}

.summary-strip strong {
  color: var(--ink);
}

.detail-stack {
  display: grid;
  gap: 10px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.mini-metrics .metric {
  padding: 8px;
}

.mini-metrics .metric strong {
  font-size: 15px;
}

.mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.mapping-card {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 8px;
}

.mapping-card span,
.mapping-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.compact-table th,
.compact-table td {
  padding: 7px;
}

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

.toolbar select,
.toolbar input[type="file"] {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  font-size: 12px;
}

.report-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.report-meta strong {
  color: var(--ink);
}

.import-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.error-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.error-row {
  border: 1px solid #edc6c6;
  border-radius: 8px;
  background: #fff7f7;
  color: var(--red);
  padding: 8px;
  font-size: 11px;
}

.warning-list .error-row {
  border-color: #e8d49a;
  background: #fffaf0;
  color: #7a5a13;
}

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

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

.job-main {
  display: grid;
  gap: 6px;
}

.job-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.job-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 120px;
}

.danger-text {
  color: var(--red);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.quality-list {
  display: grid;
  gap: 8px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 12px;
}

.document-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.document-card p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.45;
}

.quality-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 9px;
  font-size: 11px;
}

.quality-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.hardening-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.hardening-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 186px;
  border: 1px solid rgba(191, 212, 202, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 249, 0.92));
  padding: 13px;
}

.hardening-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.hardening-card p,
.hardening-action,
.hardening-evidence span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.hardening-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hardening-action {
  color: var(--ink);
}

.hardening-evidence {
  display: grid;
  gap: 3px;
  padding-top: 4px;
}

.hardening-evidence span {
  color: #557066;
}

.program-stage-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.program-stage {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(10, 99, 80, 0.08), rgba(26, 160, 139, 0.05));
  padding: 11px;
}

.program-stage strong {
  color: var(--green-dark);
  font-size: 12px;
}

.program-stage span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.program-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 210px;
  border: 1px solid rgba(191, 212, 202, 0.64);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.program-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.program-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.program-docs span {
  border-radius: 999px;
  background: #f4f8f6;
  color: #557066;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
}

.import-readiness {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.import-reference-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reference-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: #eef7f2;
  color: var(--green-dark);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
}

.reference-pill.warning {
  background: #fff6df;
  color: var(--amber);
}

.import-order {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.import-order.compact {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  margin-top: 0;
}

.import-step {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: #f5faf6;
  padding: 9px;
}

.import-step span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.import-step strong {
  font-size: 11px;
  line-height: 1.3;
}

.import-step small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.readiness-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 118px;
}

.custom-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.check-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 9px;
}

.check-card input {
  margin-top: 2px;
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.access-save {
  margin-top: 4px;
}

.progress-track {
  width: 112px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece5;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

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

.risk-item {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.risk-item p {
  margin: 0;
  color: var(--muted);
}

.analytics-title .toolbar {
  justify-content: flex-end;
}

.analytics-overview {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.analytics-distribution {
  display: grid;
  gap: 12px;
}

.analytics-stack {
  display: flex;
  min-width: 360px;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(223, 232, 226, 0.9);
}

.analytics-stack-segment {
  min-width: 0;
  background: #8bb6a8;
}

.analytics-stack-segment.danger {
  background: #b94a48;
}

.analytics-stack-segment.warning {
  background: #d49b38;
}

.analytics-stack-segment.info {
  background: #4e7db8;
}

.analytics-stack-segment.success {
  background: var(--green);
}

.analytics-legend,
.analytics-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.analytics-legend div,
.analytics-signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: rgba(247, 250, 247, 0.72);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.analytics-signal {
  grid-template-columns: minmax(0, 1fr) auto;
}

.analytics-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8bb6a8;
}

.analytics-legend i.danger {
  background: #b94a48;
}

.analytics-legend i.warning {
  background: #d49b38;
}

.analytics-legend i.info {
  background: #4e7db8;
}

.analytics-legend i.success {
  background: var(--green);
}

.analytics-legend strong,
.analytics-signal strong {
  color: var(--ink);
  font-size: 14px;
}

.analytics-table-wrap {
  max-height: 640px;
  overflow: auto;
}

.analytics-table-wrap table {
  min-width: 1060px;
}

.analytics-score {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.analytics-driver-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 340px;
}

.analytics-driver-list span {
  border-radius: 999px;
  background: rgba(232, 239, 235, 0.92);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.analytics-action {
  max-width: 280px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.analytics-program-list {
  display: grid;
  gap: 9px;
}

.analytics-program-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.7fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: rgba(247, 250, 247, 0.72);
  padding: 10px;
}

.analytics-program-row span,
.analytics-program-row small,
.academic-advisor-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.analytics-program-score {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.academic-advisor-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.academic-advisor-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.alumni-tracker-panel .panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.alumni-tracker-panel .compact-metrics {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.tracker-block {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: rgba(247, 250, 247, 0.72);
  padding: 12px;
}

.tracker-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tracker-block-head h2 {
  margin: 0;
  font-size: 13px;
}

.tracker-block-body {
  display: grid;
  gap: 10px;
}

.provider-signal span {
  display: grid;
  gap: 3px;
}

.provider-signal small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .analytics-overview,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .analytics-distribution {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .analytics-program-row {
    grid-template-columns: 1fr;
  }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 36px));
  border: 1px solid #bfd4ca;
  border-radius: 8px;
  background: #f4faf6;
  color: var(--green-dark);
  padding: 13px 14px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.search-hidden {
  display: none !important;
}

.offline-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.offline-panel {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.offline-panel h1 {
  margin: 0;
  font-size: 22px;
}

.offline-panel p {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.offline-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(108px, 1fr));
  }

  .section-grid,
  .grid-2,
  .operation-layout {
    grid-template-columns: 1fr;
  }

  .tenant-wizard-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-strip,
  .dashboard-premium-grid,
  .dashboard-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-panel-chart,
  .dashboard-panel-notifications {
    grid-column: 1 / -1;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 18px;
  }

  .top-actions {
    justify-content: space-between;
  }
}

@media (max-width: 780px) {
  .login-page {
    align-items: start;
    padding: 14px;
  }

  .login-panel,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: 0;
  }

  .login-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }

  .login-copy h1 {
    font-size: 22px;
  }

  .login-form {
    padding: 0;
  }

  .login-stack {
    padding: 22px;
  }

  .portal-login {
    padding: 0;
  }

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

  .nav {
    display: flex;
    overflow-x: auto;
  }

  .nav-group {
    display: flex;
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .nav-group-label {
    display: none;
  }

  .nav button {
    min-width: max-content;
  }

  .sidebar-foot {
    display: none;
  }

  .topbar-left {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .top-actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: space-between;
  }

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

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-head select {
    width: 100%;
  }

  .content {
    padding: 18px;
  }

  .security-nudge {
    align-items: stretch;
    flex-direction: column;
  }

  .security-nudge .primary-btn {
    width: 100%;
  }

  .view-title {
    flex-direction: column;
  }

  .metrics,
  .form-grid,
  .checkbox-grid,
  .channel-toggle-grid,
  .tenant-config-grid,
  .domain-readiness,
  .tenant-wizard-review,
  .tenant-preview-devices,
  .mobile-pwa-layout,
  .operation-runtime-grid,
  .operation-signal-grid {
    grid-template-columns: 1fr;
  }

  .tenant-wizard-steps {
    grid-template-columns: 1fr;
  }

  .tenant-wizard-controls {
    flex-direction: column;
  }

  .tenant-badge-row {
    min-width: 0;
  }

  .premium-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-strip,
  .dashboard-premium-grid,
  .dashboard-bottom-grid,
  .dashboard-donut-wrap {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-chart,
  .dashboard-panel-notifications {
    grid-column: auto;
  }

  .job-row {
    grid-template-columns: 1fr;
  }

  .job-actions {
    justify-items: start;
  }
}

.mfa-setup-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mfa-qr {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid var(--line);
  background: #fff;
}

.mfa-qr img {
  display: block;
  width: 240px;
  height: 240px;
}

.mono-text,
.recovery-code-grid code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.recovery-code-grid code {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 10px;
  text-align: center;
}

@media (max-width: 780px) {
  .mfa-setup-layout,
  .recovery-code-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium borderless refresh */
:root {
  --bg: #fbfcfa;
  --surface: #ffffff;
  --surface-soft: #f7faf7;
  --ink: #111b18;
  --muted: #64726b;
  --line: rgba(22, 42, 35, 0.09);
  --strong-line: rgba(22, 42, 35, 0.14);
  --green: #0b6b57;
  --green-dark: #094b3e;
  --blue: #173b63;
  --amber: #b87925;
  --red: #a13b3b;
  --shadow: 0 28px 90px rgba(17, 27, 24, 0.11);
  --soft-shadow: 0 18px 58px rgba(24, 45, 38, 0.065);
  --tenant-hero-image: url("/media/campus-admissions-hero.jpg");
  --tenant-login-image: url("/media/campus-admissions-hero.jpg");
}

body {
  background:
    radial-gradient(circle at top left, rgba(11, 107, 87, 0.06), transparent 30vw),
    linear-gradient(180deg, #fbfcfa 0%, #f5f8f4 100%);
}

.login-page {
  align-items: center;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green-dark) 86%, #020807) 0%, color-mix(in srgb, var(--green) 58%, transparent) 44%, rgba(251, 252, 250, 0.86) 100%),
    var(--tenant-login-image) center / cover no-repeat;
}

.login-panel {
  width: min(980px, 100%);
  min-height: 520px;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.88fr);
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 34px 110px rgba(5, 23, 20, 0.28);
  backdrop-filter: blur(18px);
}

.login-panel.platform-login {
  width: min(930px, 100%);
}

.login-copy {
  border-right: 0;
  color: #fff;
  padding: clamp(30px, 4vw, 52px);
}

.login-copy h1 {
  max-width: 520px;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  font-weight: 860;
}

.login-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.brand-mark,
.brand-dot {
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(17, 27, 24, 0.11);
}

.login-domain {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.login-context {
  max-width: 520px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.login-context-item {
  border: 0;
  background: transparent;
  padding: 0;
}

.login-context-item strong {
  color: #fff;
}

.login-context-item span {
  color: rgba(255, 255, 255, 0.68);
}

.login-stack {
  margin: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 22px 70px rgba(5, 23, 20, 0.16);
  backdrop-filter: blur(16px);
}

.login-tabs {
  border: 0;
  background: #f3f7f4;
  box-shadow: inset 0 0 0 1px rgba(22, 42, 35, 0.05);
}

.login-tabs button.active {
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 27, 24, 0.08);
}

.login-note,
.notice,
.notice.success {
  border: 0;
  border-left: 0;
  box-shadow: none;
}

.field input,
.field select,
.field textarea,
td input,
td select,
.panel-head select,
.toolbar select,
.toolbar input[type="file"],
.inline-actions input,
.search-box input {
  border: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 27, 24, 0.045);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-box input:focus,
td input:focus,
td select:focus,
.toolbar select:focus,
.inline-actions input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(11, 107, 87, 0.12), 0 12px 28px rgba(17, 27, 24, 0.06);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  border: 0;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    color .16s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 14px 34px rgba(11, 107, 87, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 27, 24, 0.045);
}

.ghost-btn,
.icon-btn {
  background: transparent;
  box-shadow: none;
}

.app-shell {
  grid-template-columns: 236px 1fr;
  background:
    radial-gradient(circle at top right, rgba(11, 107, 87, 0.055), transparent 34vw),
    #fbfcfa;
}

.sidebar {
  border-right: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--green-dark) 78%, #062333) 0%, color-mix(in srgb, var(--green-dark) 70%, #051f2f) 58%, rgba(4, 28, 39, 0.98) 100%),
    var(--tenant-login-image) center / cover no-repeat;
  box-shadow: 18px 0 60px rgba(17, 27, 24, 0.12);
}

.sidebar-head,
.sidebar-foot {
  border: 0;
}

.portal-pill {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #d7f7e8;
}

.nav {
  padding: 8px 12px 12px;
}

.nav-group {
  gap: 3px;
  margin-bottom: 12px;
}

.nav-group-label {
  color: rgba(232, 243, 241, 0.46);
}

.nav button {
  border-radius: 8px;
  color: rgba(232, 243, 241, 0.74);
}

.nav button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav button.active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 3px 0 0 #21c98b, 0 12px 28px rgba(0, 0, 0, 0.12);
}

.topbar {
  border-bottom: 0;
  background: rgba(251, 252, 250, 0.9);
  box-shadow: 0 16px 46px rgba(17, 27, 24, 0.055);
}

.content {
  padding: clamp(22px, 2.4vw, 34px);
}

.view-title {
  margin-bottom: 22px;
}

.view-title h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.dashboard-premium {
  gap: clamp(18px, 2vw, 28px);
}

.dashboard-kpi-strip {
  gap: clamp(18px, 3vw, 42px);
}

.dashboard-kpi-card {
  min-height: 108px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 8px 48px;
}

.dashboard-kpi-card::after {
  display: none;
}

.dashboard-kpi-card.is-warning {
  border: 0;
}

.dashboard-kpi-icon {
  left: 0;
  top: 10px;
  width: 34px;
  height: 34px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--kpi-color) 20%, transparent);
}

.dashboard-kpi-card strong {
  font-size: clamp(23px, 2vw, 30px);
}

.dashboard-kpi-card small {
  max-width: 24ch;
}

.dashboard-premium-grid,
.dashboard-bottom-grid,
.section-grid,
.grid-2 {
  gap: clamp(16px, 2vw, 24px);
}

.panel,
.dashboard-panel,
.metric,
.action-card,
.security-nudge,
.broadcast-preview,
.channel-check,
.checkbox-grid,
.tenant-module-grid .tenant-module-choice,
.tenant-config-card,
.tenant-usage-item,
.audit-item,
.notification-item,
.context-line,
.choice-item,
.list-row,
.stack-block,
.question-card,
.attendance-access .summary-strip,
.attendance-qr,
.summary-strip,
.mapping-card,
.job-row,
.document-card,
.quality-row,
.check-card,
.risk-item,
.offline-panel,
.mfa-qr,
.recovery-code-grid code {
  border: 0;
  box-shadow: none;
}

.panel,
.dashboard-panel,
.tenant-config-card,
.offline-panel {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 58px rgba(24, 45, 38, 0.055);
  backdrop-filter: blur(10px);
}

.dashboard-panel .panel-head,
.panel-head {
  border-bottom: 0;
  background: transparent;
  padding: 14px 16px 8px;
}

.panel-body {
  padding: 14px 16px 16px;
}

.dashboard-chart-summary,
.badge,
.connection-pill {
  border: 0;
  box-shadow: none;
}

.dashboard-status-row,
.dashboard-premium .action-card,
.action-card,
.metric,
.tenant-usage-item,
.audit-item,
.notification-item,
.context-line,
.choice-item,
.list-row,
.stack-block,
.question-card,
.mapping-card,
.job-row,
.document-card,
.quality-row,
.check-card,
.risk-item,
.broadcast-preview,
.channel-check,
.checkbox-grid {
  background: rgba(247, 250, 247, 0.72);
}

.dashboard-status-row:hover,
.action-card:hover,
.tenant-module-grid .tenant-module-choice:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(17, 27, 24, 0.055);
}

.dashboard-premium .action-card {
  min-height: 72px;
  padding: 11px;
}

.dashboard-premium .action-card .nav-icon,
.dashboard-status-icon {
  border-radius: 999px;
}

.dashboard-bar-track {
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(221, 232, 226, 0.55) 1px, transparent 1px) 0 0 / 100% 38px,
    rgba(247, 250, 248, 0.7);
}

.dashboard-donut {
  box-shadow: none;
}

.dashboard-donut::after {
  box-shadow: none;
}

.table-wrap {
  border-radius: 8px;
}

th {
  background: rgba(251, 252, 250, 0.94);
}

th,
td {
  border-bottom-color: rgba(22, 42, 35, 0.07);
}

.summary-strip {
  border-top: 0;
}

.toast {
  border: 0;
  box-shadow: 0 20px 58px rgba(17, 27, 24, 0.16);
}

@media (max-width: 780px) {
  .login-page {
    display: block;
    min-height: 100svh;
    overflow-x: hidden;
    padding: 14px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--green-dark) 88%, #020807) 0%, color-mix(in srgb, var(--green) 64%, transparent) 42%, rgba(251, 252, 250, 0.92) 100%),
      var(--tenant-login-image) center / cover no-repeat;
  }

  .login-panel {
    width: min(100%, 480px);
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    margin: 0 auto;
  }

  .login-copy {
    border-bottom: 0;
    padding: 18px 18px 12px;
    gap: 14px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .login-domain {
    margin-bottom: 10px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .login-copy h1 {
    max-width: 100%;
    font-size: clamp(27px, 8vw, 36px);
    line-height: 1.02;
  }

  .login-copy p {
    max-width: 100%;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.56;
  }

  .login-context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 100%;
    margin-top: 4px;
  }

  .login-context-item strong {
    font-size: 10.5px;
  }

  .login-context-item span {
    font-size: 10px;
    line-height: 1.25;
  }

  .login-stack {
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(5, 23, 20, 0.16);
    backdrop-filter: blur(16px);
  }

  .login-tabs {
    gap: 4px;
    padding: 4px;
  }

  .login-tabs button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  .portal-head {
    align-items: center;
  }

  .portal-head h2 {
    font-size: 14px;
  }

  .portal-head span {
    font-size: 9.5px;
  }

  .portal-login {
    gap: 12px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 34px;
    font-size: 12px;
  }

  .primary-btn {
    min-height: 38px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: 100svh;
    overflow-x: hidden;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    height: auto;
    max-width: 100vw;
    overflow: hidden;
    border-right: 0;
    box-shadow: 0 14px 34px rgba(17, 27, 24, 0.12);
  }

  .sidebar-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    padding: 12px 14px 8px;
  }

  .brand-row {
    min-width: 0;
    font-size: 12px;
  }

  .brand-row > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-dot {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
  }

  .tenant-name {
    grid-column: 1 / -1;
    margin-top: 0;
    overflow: hidden;
    color: rgba(232, 243, 241, 0.68);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-pill {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    white-space: nowrap;
  }

  .nav {
    display: flex;
    gap: 7px;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    margin-bottom: 0;
  }

  .nav-group-label {
    display: none;
  }

  .nav button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 34px;
    margin-bottom: 0;
    padding: 0 11px;
    scroll-snap-align: start;
  }

  .sidebar {
    box-shadow: none;
  }

  .sidebar-foot {
    display: none;
  }

  .main {
    width: 100%;
    min-width: 0;
  }

  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 12px 14px;
    box-shadow: 0 12px 34px rgba(17, 27, 24, 0.045);
  }

  .topbar-left {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .topbar-context {
    min-width: 0;
  }

  .search-box,
  .search-box input {
    width: 100%;
  }

  .top-actions,
  .quick-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
  }

  .content {
    padding: 16px 14px 22px;
  }

  .view-title {
    margin-bottom: 16px;
  }

  .view-title h1 {
    font-size: 22px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-kpi-strip {
    gap: 12px;
  }

  .tenant-brand-preview,
  .tenant-media-upload {
    grid-template-columns: 1fr;
  }

  .tenant-preview-mobile {
    justify-items: start;
  }

  .tenant-preview-mobile-screen {
    width: min(100%, 220px);
  }

  .mobile-device-preview {
    justify-items: start;
  }

  .mobile-screen {
    width: min(100%, 280px);
    min-height: 390px;
  }

  .security-activity-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 10px;
  }

  .login-panel {
    width: min(100%, 360px);
  }

  .login-copy {
    padding: 16px 14px 10px;
  }

  .login-copy h1 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.05;
  }

  .login-copy p {
    font-size: 12px;
  }

  .login-context {
    display: none;
  }

  .login-stack {
    padding: 16px;
  }

  .login-tabs {
    grid-template-columns: 1fr;
  }

  .portal-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 520px) {
  .login-panel {
    width: min(100%, 360px);
  }

  .login-copy h1 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.05;
  }

  .login-context {
    display: none;
  }

  .login-stack {
    padding: 16px;
  }
}

@media (max-width: 780px) {
  .nav-submenu {
    display: grid;
    flex: 0 0 auto;
    margin: 0;
    border-left: 0;
    padding: 0;
  }

  .nav-submenu label > span {
    display: none;
  }

  .nav-submenu select {
    width: 128px;
    min-height: 34px;
  }

  .advanced-subnav-strip {
    margin-top: 0;
  }
}
