:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --panel: #ffffff;
  --panel-soft: #f8fbfb;
  --ink: #1f2a2e;
  --muted: #66777d;
  --line: #dce5e6;
  --teal: #0d8f8a;
  --blue: #2f6fed;
  --amber: #c67912;
  --red: #b83b3b;
  --green: #237a45;
  --nav: #172326;
  --nav-active: #e9f7f4;
  --shadow: 0 12px 30px rgba(31, 42, 46, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) 1.12fr;
  background: linear-gradient(120deg, #f6faf9, #e9f0f4);
}

.brand-panel {
  background:
    linear-gradient(145deg, rgba(13, 143, 138, 0.92), rgba(36, 66, 81, 0.88)),
    url("/rink-operations.png");
  background-size: cover;
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-weight: 800;
}

.brand-panel h1 {
  margin: 30px 0 14px;
  font-size: 42px;
  line-height: 1.08;
}

.brand-panel p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.login-card {
  align-self: center;
  width: min(440px, calc(100vw - 40px));
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.login-stack {
  align-self: center;
  width: min(520px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.login-stack .login-card {
  width: 100%;
  margin: 0;
  align-self: auto;
}

.trial-card {
  padding: 22px;
}

.login-card h2,
.view-head h2 {
  margin: 0;
  font-size: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field label {
  color: var(--muted);
  font-size: 13px;
}

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

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.qualification-course-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(76px, 1fr));
  gap: 7px 12px;
  min-width: 180px;
}

.field .qualification-course-types label,
.qualification-course-types label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.field .qualification-course-types input,
.qualification-course-types input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.primary,
.secondary,
.danger,
.ghost {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 650;
}

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

.secondary {
  background: #edf6f5;
  border-color: #b8dfdc;
  color: #095f5b;
}

.danger {
  background: #fff1f1;
  border-color: #f0c4c4;
  color: var(--red);
}

.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.demo-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-list button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--muted);
}

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

.sidebar {
  background: var(--nav);
  color: #d9e5e4;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-brand strong {
  display: block;
  color: #fff;
}

.side-brand span {
  font-size: 12px;
  color: #9fb6b4;
}

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

.mobile-nav-toggle {
  display: none;
}

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

.nav-section + .nav-section {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-section-title {
  padding: 0 10px 3px;
  color: #7f9b99;
  font-size: 12px;
  font-weight: 750;
}

.nav button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c9d8d7;
  min-height: 40px;
  text-align: left;
  padding: 8px 10px;
}

.nav button.active {
  background: var(--nav-active);
  color: #103b39;
  font-weight: 750;
}

.account {
  margin-top: auto;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 9px;
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.status,
.check-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf1f2;
  color: #496166;
  font-size: 12px;
  font-weight: 650;
}

.check-pill {
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.status.AVAILABLE,
.status.READY,
.status.PAID,
.status.ACTIVE,
.status.APPROVED,
.status.CONFIRMED,
.status.SUCCESS,
.status.DONE,
.status.COMPLETED,
.status.SIGNED,
.status.PUBLIC_AUTHORIZED {
  background: #e8f6ee;
  color: var(--green);
}

.status.HELD,
.status.WARN,
.status.PENDING,
.status.PENDING_REVIEW,
.status.PARTIALLY_REFUNDED,
.status.FORMING,
.status.DRAFT,
.status.OPEN,
.status.DUE_SOON,
.status.P1,
.status.PENDING_SIGNATURE,
.status.RETRY_SCHEDULED,
.status.PAST_DUE {
  background: #fff6e8;
  color: var(--amber);
}

.status.BOOKED,
.status.BLOCKED,
.status.LOCKED,
.status.MAINTENANCE,
.status.REFUNDED,
.status.REJECTED,
.status.CANCELLED,
.status.EXPIRED,
.status.VOIDED,
.status.FAILED,
.status.REVERSED,
.status.REVOKED,
.status.DEAD_LETTER,
.status.SIGNING_FAILED,
.status.COURSE_OCCUPIED,
.status.NEEDS_REVIEW,
.status.OVERDUE,
.status.BREACHED,
.status.P0,
.status.SUSPEND_REVIEW {
  background: #f3ecec;
  color: var(--red);
}

.status.ON_TRACK,
.status.P2 {
  background: #edf1f2;
  color: #496166;
}

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

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

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.card,
.metric,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(31, 42, 46, 0.05);
}

.card {
  padding: 16px;
}

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

.section-title p {
  margin: 4px 0 0;
}

.section-label {
  margin: 18px 0 10px;
}

.section-label h3 {
  margin: 0;
}

.section-label p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #f7fbfb;
  padding: 12px 14px;
}

.notice p {
  margin: 8px 0;
}

.metric {
  padding: 16px;
  min-height: 112px;
  display: grid;
  align-content: space-between;
}

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

.metric strong {
  font-size: 26px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.table-wrap {
  overflow: hidden;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.detail-panel summary {
  min-height: 48px;
  padding: 14px 16px;
  color: #304448;
  cursor: pointer;
  font-weight: 750;
}

.detail-panel[open] {
  padding-bottom: 16px;
}

.detail-panel > .grid,
.detail-panel > .split,
.detail-body {
  margin: 0 16px 14px;
}

.detail-panel > .grid:first-of-type {
  margin-top: 2px;
}

.detail-panel > .split:last-child,
.detail-body:last-child {
  margin-bottom: 0;
}

.identity-remediation-panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.identity-collision-list,
.identity-request-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.identity-collision summary,
.identity-request summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.identity-user-table {
  overflow-x: auto;
}

.identity-user-table table {
  min-width: 940px;
}

.identity-canonical-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.identity-canonical-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.identity-action-select {
  min-width: 138px;
}

.identity-email-input {
  min-width: 230px;
}

.identity-user-table select,
.identity-user-table input[type="email"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
}

.identity-user-table select:disabled,
.identity-user-table input:disabled {
  color: var(--muted);
  background: var(--panel-soft);
}

.identity-plan-footer {
  align-items: stretch;
}

.identity-plan-confirm {
  display: grid;
  align-content: end;
  gap: 12px;
}

.identity-review-form,
.identity-cancel-form {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.identity-cancel-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compact-table table {
  font-size: 12px;
}

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

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

th {
  color: #52676b;
  background: var(--panel-soft);
  font-size: 12px;
}

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

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

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

.usage-line {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.usage-line > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.usage-line strong {
  color: var(--ink);
}

.usage-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eeee;
}

.usage-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.usage-bar i.danger-fill {
  background: var(--red);
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
}

.flow {
  display: grid;
  gap: 9px;
}

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

.step-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f6ee;
  color: var(--green);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.operations-workbench {
  min-width: 0;
}

.operations-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  background: var(--bg);
}

.operations-tabs {
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--line);
}

.operations-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.operations-tabs button[aria-selected="true"] {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

.operations-filter-toggle {
  display: none;
}

.operations-summary {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.operations-summary > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.operations-summary > div:last-child {
  border-right: 0;
}

.operations-summary span {
  color: var(--muted);
  font-size: 12px;
}

.operations-summary strong {
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.operations-filters {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr)) auto;
  align-items: end;
  gap: 9px;
  margin-top: 10px;
  padding: 10px;
  border-block: 1px solid var(--line);
  background: var(--panel-soft);
}

.operations-filters .field {
  gap: 4px;
}

.operations-filters .field select {
  min-height: 38px;
  padding: 7px 9px;
}

.operations-content {
  min-height: 300px;
  margin-top: 10px;
}

.operations-table-wrap {
  max-width: 100%;
  max-height: calc(100vh - 330px);
  overflow: auto;
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.operations-pager {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.operations-pager .actions {
  flex-wrap: nowrap;
}

.operations-pager button {
  min-width: 72px;
}

.operations-table {
  table-layout: fixed;
}

.operations-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
}

.operations-table th:nth-child(1) { width: 100px; }
.operations-table th:nth-child(2) { width: 25%; }
.operations-table th:nth-child(3) { width: 16%; }
.operations-table th:nth-child(4) { width: 142px; }
.operations-table th:nth-child(5) { width: 15%; }
.operations-table th:nth-child(6) { width: 100px; }
.operations-table th:nth-child(7) { width: 110px; }

.operations-table td {
  overflow-wrap: anywhere;
}

.operations-table td > span:not(.status):not(.operations-priority-marker),
.operations-task-link + .compact,
.operations-overdue {
  display: block;
}

.operations-task-link {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #124f71;
  font-weight: 750;
  text-align: left;
  overflow-wrap: anywhere;
}

.operations-task-row.is-p0 {
  box-shadow: inset 4px 0 0 var(--red);
}

.operations-priority-marker {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.operations-priority-text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.operations-overdue {
  margin-top: 3px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.operations-task-row[aria-busy="true"] {
  opacity: 0.58;
}

.operations-command {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.operations-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-block: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.operations-state.is-error,
.operations-drawer-error {
  color: var(--red);
  background: #fff4f4;
}

.operations-detail-error-state {
  min-height: 220px;
}

.operations-band {
  margin-bottom: 14px;
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.operations-band-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--panel-soft);
}

.operations-band-head h3,
.operations-band-head p {
  margin: 0;
}

.operations-band-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.operations-safe-registry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operations-safe-registry > div {
  min-height: 64px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.operations-safe-registry > div:last-child {
  border-right: 0;
}

.operations-safe-registry span {
  color: var(--muted);
  font-size: 12px;
}

.operations-policy-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.operations-policy-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.operations-policy-meta > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.operations-policy-meta > div:last-child {
  border-right: 0;
}

.operations-policy-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.operations-policy-meta dd {
  margin: 5px 0 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.operations-policy-error {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-block: 1px solid #f2c2c2;
  background: #fff4f4;
  color: var(--red);
}

.operations-policy-form {
  margin-bottom: 14px;
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.operations-policy-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.operations-policy-form fieldset:disabled {
  opacity: 0.78;
}

.operations-policy-section + .operations-policy-section,
.operations-policy-submit {
  border-top: 1px solid var(--line);
}

.operations-policy-section-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--panel-soft);
}

.operations-policy-section-head h3 {
  margin: 0;
  font-size: 15px;
}

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

.operations-policy-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.operations-policy-field input,
.operations-policy-reason textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.operations-policy-field input {
  min-height: 40px;
  padding: 8px 10px;
}

.operations-policy-input {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.operations-policy-input em {
  min-width: 38px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.operations-policy-calendar {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(360px, 1fr);
  align-items: start;
}

.operations-policy-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.operations-policy-weekdays label {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.operations-policy-weekdays input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal);
}

.operations-policy-capacity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.operations-policy-playbooks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operations-policy-playbook {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.operations-policy-playbook:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.operations-policy-playbook > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.operations-policy-playbook strong,
.operations-policy-playbook small {
  overflow-wrap: anywhere;
}

.operations-policy-playbook small {
  color: var(--muted);
}

.operations-policy-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 12px;
  background: var(--panel-soft);
}

.operations-policy-reason {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.operations-policy-reason textarea {
  min-height: 72px;
  padding: 9px 10px;
  resize: vertical;
}

.operations-policy-submit button {
  min-width: 150px;
}

.operations-policy-history {
  max-width: 100%;
  overflow-x: auto;
}

.operations-policy-history table {
  min-width: 820px;
  table-layout: fixed;
}

.operations-policy-history th:nth-child(1) { width: 70px; }
.operations-policy-history th:nth-child(2) { width: 76px; }
.operations-policy-history th:nth-child(3) { width: 145px; }
.operations-policy-history th:nth-child(4) { width: 120px; }
.operations-policy-history th:nth-child(5) { width: 24%; }

.operations-policy-history td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.operations-report-toolbar {
  min-height: 58px;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
  padding: 9px 10px;
  border-block: 1px solid var(--line);
  background: var(--panel-soft);
}

.operations-report-toolbar label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.operations-report-toolbar input {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workforce-decision {
  border-left: 4px solid var(--blue);
}

.workforce-recommendation {
  margin: 0;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 750;
}

.workforce-evidence {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.workforce-evidence > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.workforce-evidence > div:last-child {
  border-right: 0;
}

.workforce-evidence dt {
  color: var(--muted);
  font-size: 12px;
}

.workforce-evidence dd {
  margin: 5px 0 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.workforce-blockers {
  min-height: 42px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}

.workforce-blockers span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.operations-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr minmax(420px, 560px);
}

.operations-drawer-scrim {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(18, 29, 32, 0.42);
}

.operations-drawer {
  max-height: 100vh;
  overflow-y: auto;
  background: var(--panel);
  box-shadow: -12px 0 30px rgba(31, 42, 46, 0.16);
}

.operations-drawer-error {
  padding: 10px 14px;
  border-bottom: 1px solid #f0c4c4;
}

.operations-detail-empty {
  min-height: 280px;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.operations-detail-empty p {
  margin: 0;
}

.operations-detail-head {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.operations-detail-head h3 {
  margin: 8px 0 5px;
  font-size: 18px;
}

.operations-detail-head p {
  margin: 0;
  color: var(--muted);
}

.operations-close {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 22px;
}

.operations-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.operations-detail-facts > div {
  min-width: 0;
  padding: 11px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operations-detail-facts > div:nth-child(2n) {
  border-right: 0;
}

.operations-detail-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.operations-detail-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.operations-source-link,
.operations-detail-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.operations-detail-section h4 {
  margin: 0 0 10px;
}

.operations-inline-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.refund-impact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.refund-queue {
  margin: 18px 0;
}

.refund-queue .section-title h3 {
  margin: 0;
}

.refund-form {
  display: grid;
  gap: 14px;
}

.refund-form textarea {
  min-height: 112px;
  resize: vertical;
}

.refund-confirmation {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--ink);
  line-height: 1.5;
}

.refund-confirmation input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.refund-actions {
  justify-content: flex-end;
}

.operations-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operations-timeline li {
  padding: 11px 0 11px 15px;
  border-left: 2px solid #aacdcc;
  border-bottom: 1px solid var(--line);
}

.operations-timeline li:last-child {
  border-bottom: 0;
}

.operations-event-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.operations-event-line time {
  color: var(--muted);
  font-size: 12px;
}

.operations-evidence {
  margin-top: 5px;
  color: #385d65;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ice-workbench {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.ice-summary-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.ice-summary-strip button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.ice-summary-strip button:last-child {
  border-right: 0;
}

.ice-summary-strip span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.ice-summary-strip strong {
  font-size: 20px;
}

.ice-filter-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 0.8fr)) repeat(5, minmax(105px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.ice-filter-bar .field,
.ice-filter-bar .actions {
  min-width: 0;
}

.ice-filter-bar input,
.ice-filter-bar select {
  min-height: 38px;
  padding: 8px 9px;
}

.ice-command-grid,
.ice-management-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ice-command-grid:empty,
.ice-management-grid:empty {
  display: none;
}

.ice-command-panel,
.ice-quota-panel,
.ice-report-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ice-command-panel h3,
.ice-quota-panel h3,
.ice-report-panel h3,
.ice-table-head h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.ice-time-pair {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ice-quote-preview,
.ice-generation-preview {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 10px;
  padding: 9px 11px;
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #f7fbfb;
  color: var(--muted);
  font-size: 12px;
}

.ice-quote-preview strong,
.ice-generation-preview strong {
  color: var(--ink);
  font-size: 16px;
}

.ice-generation-preview span,
.ice-generation-preview small {
  grid-column: 1 / -1;
}

.ice-inventory-table {
  min-width: 0;
  overflow: hidden;
}

.ice-table-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.ice-table-head h3,
.ice-table-head p {
  margin-bottom: 0;
}

.ice-table-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.ice-inventory-table table {
  min-width: 1040px;
  font-size: 12px;
}

.ice-inventory-table th,
.ice-inventory-table td {
  padding: 9px 10px;
}

.ice-icon-button,
.ice-close-button {
  min-width: 38px;
  padding-inline: 8px;
}

.ice-quota-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.8fr) auto;
  align-items: end;
  gap: 8px;
}

.ice-quota-summary,
.ice-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

.ice-quota-summary > div,
.ice-metrics > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px;
  border-right: 1px solid var(--line);
}

.ice-quota-summary > div:last-child,
.ice-metrics > div:last-child {
  border-right: 0;
}

.ice-quota-summary span,
.ice-metrics span,
.ice-metrics small {
  color: var(--muted);
  font-size: 11px;
}

.ice-quota-summary strong,
.ice-metrics strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.ice-quota-ledger {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.ice-quota-ledger > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.ice-quota-ledger small {
  min-width: 0;
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

.ice-report-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ice-report-detail > div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ice-report-detail h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.ice-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
}

.ice-drawer-scrim {
  border: 0;
  background: rgba(23, 35, 38, 0.38);
}

.ice-detail-drawer {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 18px;
  background: var(--panel);
  box-shadow: -12px 0 30px rgba(31, 42, 46, 0.16);
  overflow-y: auto;
}

.ice-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ice-drawer-head h3,
.ice-drawer-head p {
  margin: 0;
}

.ice-drawer-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ice-drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.ice-drawer-facts > div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ice-drawer-facts > div:nth-child(2n) {
  border-right: 0;
}

.ice-drawer-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ice-drawer-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.ice-drawer-facts dd {
  margin: 4px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ice-event-timeline {
  display: grid;
}

.ice-event {
  min-width: 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.ice-event-marker {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--teal);
}

.ice-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ice-event-head time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.ice-event-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.ice-event-evidence code {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-soft);
  color: #385d65;
  font-size: 11px;
  overflow-wrap: anywhere;
}

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

.course-workbench,
.free-group-workbench {
  min-width: 0;
}

.course-tabs {
  display: flex;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.course-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 720;
  white-space: nowrap;
}

.course-tabs button[aria-selected="true"] {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

.course-panel,
.free-group-workbench {
  margin-top: 12px;
}

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

.course-form {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.course-form .section-title {
  margin-bottom: 2px;
}

.course-form .section-title h3,
.course-form .section-title p {
  margin: 0;
}

.course-form .section-title p {
  margin-top: 4px;
}

.course-product-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  align-items: start;
  gap: 12px;
}

.course-product-table,
.course-class-table {
  box-shadow: none;
}

.free-group-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.free-group-summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border-right: 1px solid var(--line);
}

.free-group-summary > div:last-child {
  border-right: 0;
}

.free-group-summary > div.has-exception {
  background: #fff4f4;
}

.free-group-summary span {
  color: var(--muted);
  font-size: 12px;
}

.free-group-summary strong {
  font-size: 20px;
  line-height: 1.15;
}

.free-group-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.free-group-filters {
  flex: 0 1 auto;
  border-bottom: 0;
}

.free-group-filters button {
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--panel);
}

.free-group-filters button:first-child {
  border-radius: 7px 0 0 7px;
}

.free-group-filters button:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 7px 7px 0;
}

.free-group-filters button[aria-selected="true"] {
  border-bottom-color: var(--line);
  background: #eaf6f4;
  color: #095f5b;
}

.free-group-create-panel {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.free-group-create-panel summary {
  min-height: 44px;
  padding: 11px 13px;
  cursor: pointer;
  font-weight: 750;
}

.free-group-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  padding: 0 12px 12px;
}

.free-group-create-grid .field:nth-child(1),
.free-group-create-grid .field:nth-child(2),
.free-group-create-grid .field:nth-child(4),
.free-group-create-grid button {
  grid-column: span 2;
}

.free-group-create-grid .field {
  min-width: 0;
  gap: 4px;
}

.free-group-create-grid input,
.free-group-create-grid select {
  min-height: 38px;
  padding: 7px 9px;
}

.free-group-create-grid button {
  min-width: 120px;
}

.free-group-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.free-group-table {
  width: 100%;
  min-width: 960px;
  table-layout: fixed;
}

.free-group-table th:nth-child(1) { width: 17%; }
.free-group-table th:nth-child(2) { width: 14%; }
.free-group-table th:nth-child(3) { width: 16%; }
.free-group-table th:nth-child(4) { width: 12%; }
.free-group-table th:nth-child(5) { width: 21%; }
.free-group-table th:nth-child(6) { width: 20%; }

.free-group-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.free-group-table td > strong,
.free-group-table td > span {
  display: block;
}

.free-group-progress {
  width: 100%;
  height: 7px;
  margin: 3px 0 7px;
  border-radius: 999px;
  background: #e7eeee;
  overflow: hidden;
}

.free-group-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.free-group-participants,
.free-group-actions {
  display: grid;
  gap: 6px;
}

.free-group-participant {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.free-group-participant:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.free-group-inline-action {
  min-height: 28px;
  padding: 3px 7px;
  font-size: 12px;
}

.free-group-actions {
  grid-template-columns: minmax(110px, 1fr) auto;
}

.free-group-actions select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  background: #fff;
}

.free-group-actions .ghost {
  grid-column: 1 / -1;
}

.free-group-empty {
  min-height: 96px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.growth-workbench {
  margin-top: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.growth-workbench > * {
  grid-column: 1 / -1;
}

.sales-workbench {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.sales-toolbar,
.sales-table-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.sales-toolbar h3,
.sales-table-head h4,
.sales-insights h4 {
  margin: 0;
  font-size: 16px;
}

.sales-toolbar p,
.sales-table-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sales-toolbar .actions {
  flex-wrap: nowrap;
}

.sales-state {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
}

.sales-state-error,
.sales-dialog-error {
  color: var(--red);
  background: #fff4f4;
}

.sales-summary {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.sales-summary > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.sales-summary > div:last-child {
  border-right: 0;
}

.sales-summary span,
.sales-summary small,
.sales-stage-strip span,
.sales-stage-strip small {
  color: var(--muted);
  font-size: 12px;
}

.sales-summary strong {
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.sales-stage-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.sales-stage-strip > div {
  min-width: 112px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.sales-stage-strip > div:last-child {
  border-right: 0;
}

.sales-stage-strip strong {
  font-size: 17px;
}

.sales-create-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr 0.7fr 1.2fr 1fr auto;
  align-items: end;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.sales-create-grid .field {
  min-width: 0;
  gap: 4px;
}

.sales-create-grid input,
.sales-create-grid select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 7px 9px;
}

.sales-create-grid > button {
  min-width: 92px;
}

.sales-table-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.sales-lead-table {
  max-height: 520px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
}

.sales-lead-table table {
  min-width: 1080px;
}

.sales-lead-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-soft);
}

.sales-lead-table th:nth-child(1) { width: 78px; }
.sales-lead-table th:nth-child(2) { width: 21%; }
.sales-lead-table th:nth-child(3) { width: 112px; }
.sales-lead-table th:nth-child(4) { width: 132px; }
.sales-lead-table th:nth-child(5) { width: 160px; }
.sales-lead-table th:nth-child(6) { width: 126px; }
.sales-lead-table th:nth-child(7) { width: 210px; }

.sales-lead-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.sales-sla {
  margin-top: 5px;
}

.sales-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 5px;
}

.sales-row-actions button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}

.sales-empty {
  min-height: 92px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.sales-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sales-insights > section {
  min-width: 0;
  padding: 13px 14px 15px;
  border-right: 1px solid var(--line);
}

.sales-insights > section:last-child {
  border-right: 0;
}

.sales-insights h4 {
  margin-bottom: 8px;
}

.sales-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr minmax(400px, 520px);
}

.sales-dialog-scrim {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(18, 29, 32, 0.44);
}

.sales-dialog {
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--panel);
  box-shadow: -12px 0 30px rgba(31, 42, 46, 0.16);
}

.sales-dialog-head {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.sales-dialog-head h3 {
  margin: 7px 0 4px;
  font-size: 18px;
}

.sales-dialog-head p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.sales-dialog-close {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 22px;
}

.sales-dialog-error,
.sales-dialog-empty {
  padding: 10px 18px;
  border-bottom: 1px solid #f0c4c4;
}

.sales-dialog-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
}

.sales-dialog-form {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.sales-dialog-form .actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.status.NEW,
.status.FOLLOWING,
.status.QUALIFIED {
  color: #1d568f;
  background: #edf5ff;
}

.status.TRIAL_SCHEDULED,
.status.PROPOSAL,
.status.DUE_TODAY,
.status.STALE,
.status.MISSING_ACTION {
  color: #8a570d;
  background: #fff7e8;
}

.status.WON,
.status.CONVERTED,
.status.PLANNED,
.status.CLOSED {
  color: var(--green);
  background: #edf8f1;
}

.status.LOST {
  color: var(--red);
  background: #fff1f1;
}

.training-workbench {
  min-width: 0;
}

.training-tabs {
  display: flex;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.training-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 720;
  white-space: nowrap;
}

.training-tabs button[aria-selected="true"] {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

.training-tabs button span {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  border-radius: 50%;
  background: #fff0e3;
  color: #8a570d;
  font-size: 11px;
}

.training-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.training-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.training-summary > div {
  min-width: 0;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border-right: 1px solid var(--line);
}

.training-summary > div:last-child {
  border-right: 0;
}

.training-summary span,
.training-summary small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.training-summary strong {
  font-size: 22px;
}

.training-summary-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.training-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.training-command-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(31, 42, 46, 0.04);
}

.training-command-panel h3,
.training-command-form h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.training-command-form {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 11px;
}

.training-form-separated {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.training-table {
  max-width: 100%;
  overflow-x: auto;
}

.training-table table {
  min-width: 760px;
}

.training-table tr.is-selected td {
  background: #f0f8f7;
}

.training-row-action {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 12px;
}

.training-selection {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-left: 3px solid var(--teal);
  background: var(--panel-soft);
}

.training-selection span {
  color: var(--muted);
  font-size: 12px;
}

.training-member-tools,
.training-transfer-panel {
  margin-top: 0;
}

.training-roster-heading {
  align-items: end;
}

.training-roster-filter {
  min-width: min(100%, 430px);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
}

.training-roster-filter input,
.training-roster-filter button {
  min-height: 38px;
}

.training-roster-meta {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.training-member-tools > .training-layout,
.training-transfer-panel > .training-layout {
  padding: 0 16px;
}

.training-tool-forms {
  align-items: start;
}

.training-growth-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.training-report-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.training-report-card header,
.training-report-card footer {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.training-report-card h3 {
  margin: 3px 0 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.training-report-card p {
  margin: 0;
  color: #384b50;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.training-report-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.training-report-metrics > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px;
  border-right: 1px solid var(--line);
}

.training-report-metrics > div:last-child {
  border-right: 0;
}

.training-report-metrics span {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.training-report-metrics strong {
  font-size: 15px;
}

.training-report-evidence {
  display: grid;
  gap: 7px;
  margin: 0;
}

.training-report-evidence > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
}

.training-report-evidence dt,
.training-report-evidence dd {
  margin: 0;
  font-size: 12px;
}

.training-report-evidence dt {
  color: var(--muted);
}

.training-report-evidence dd {
  overflow-wrap: anywhere;
}

.training-report-evidence .digest {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #385d65;
}

.training-report-card footer {
  align-items: center;
  padding-top: 2px;
}

.training-empty {
  grid-column: 1 / -1;
  min-height: 100px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #1f2a2e;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  max-width: 360px;
  box-shadow: var(--shadow);
  z-index: 10;
}

@media (max-width: 980px) {
  .login-screen,
  .shell,
  .split,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-form-columns,
  .course-product-workbench {
    grid-template-columns: 1fr;
  }

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

  .training-summary-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .training-summary > div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .training-summary > div:nth-child(3n) {
    border-right: 0;
  }

  .training-summary > div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .training-summary-compact > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .training-summary-compact > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .training-layout,
  .training-growth-grid {
    grid-template-columns: 1fr;
  }

  .free-group-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .free-group-create-grid button {
    width: 100%;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .nav-section {
    min-width: 0;
  }

  .brand-panel {
    min-height: 360px;
    padding: 34px;
  }

  .section-title {
    display: grid;
  }

  .training-roster-filter {
    min-width: 0;
    width: 100%;
  }

  .identity-cancel-form {
    grid-template-columns: 1fr;
  }

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

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

  .operations-summary > div:nth-child(4n) {
    border-right: 0;
  }

  .operations-summary > div:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .operations-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workforce-evidence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workforce-evidence > div:nth-child(3n) {
    border-right: 0;
  }

  .ice-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ice-summary-strip button:nth-child(3n) {
    border-right: 0;
  }

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

  .ice-filter-bar .actions {
    grid-column: span 2;
  }

  .ice-command-grid,
  .ice-management-grid {
    grid-template-columns: 1fr;
  }

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

  .sales-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .sales-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .sales-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-create-grid > button {
    width: 100%;
  }

  .sales-insights {
    grid-template-columns: 1fr;
  }

  .sales-insights > section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sales-insights > section:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .shell:has(.sales-workbench) .sidebar {
    min-width: 0;
    min-height: 54px;
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
  }

  .shell:has(.sales-workbench) .side-brand {
    padding: 0;
    border: 0;
  }

  .shell:has(.sales-workbench) .side-brand .brand-mark,
  .shell:has(.sales-workbench) .side-brand span,
  .shell:has(.sales-workbench) .nav-section-title,
  .shell:has(.sales-workbench) .account > div {
    display: none;
  }

  .shell:has(.sales-workbench) .nav {
    display: none;
  }

  .shell:has(.sales-workbench) .nav.is-open {
    position: absolute;
    top: 100%;
    right: 8px;
    left: 8px;
    z-index: 9;
    max-height: min(60vh, 420px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--nav);
    box-shadow: var(--shadow);
    overflow-y: auto;
  }

  .shell:has(.sales-workbench) .nav-section {
    display: contents;
  }

  .shell:has(.sales-workbench) .nav-section + .nav-section {
    padding: 0;
    border: 0;
  }

  .shell:has(.sales-workbench) .nav button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .shell:has(.sales-workbench) .mobile-nav-toggle {
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    white-space: normal;
  }

  .shell:has(.sales-workbench) .account {
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .shell:has(.sales-workbench) .account .ghost {
    min-height: 36px;
    padding: 6px 9px;
    color: #d9e5e4;
  }

  .sales-toolbar,
  .sales-table-head {
    align-items: stretch;
    display: grid;
  }

  .sales-toolbar .actions,
  .sales-toolbar .actions button {
    width: 100%;
  }

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

  .sales-summary > div {
    min-height: 78px;
    padding: 10px;
  }

  .sales-stage-strip {
    grid-template-columns: repeat(7, minmax(116px, 1fr));
  }

  .sales-create-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sales-lead-table {
    max-height: none;
    padding: 8px;
    overflow: visible;
    background: var(--bg);
  }

  .sales-lead-table table,
  .sales-lead-table tbody,
  .sales-lead-table tr,
  .sales-lead-table td {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .sales-lead-table thead {
    display: none;
  }

  .sales-lead-table tr {
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
  }

  .sales-lead-table td {
    min-height: 38px;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
  }

  .sales-lead-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .sales-lead-table td:last-child {
    border-bottom: 0;
  }

  .sales-row-actions {
    grid-template-columns: 94px repeat(2, minmax(0, 1fr));
  }

  .sales-row-actions::before {
    grid-row: span 2;
  }

  .sales-empty::before {
    display: none;
  }

  .sales-insights > section {
    padding: 12px;
  }

  .sales-dialog-layer {
    grid-template-columns: 1fr;
  }

  .sales-dialog-scrim {
    display: none;
  }

  .sales-dialog {
    width: 100%;
  }

  .sales-dialog-form .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  .main {
    min-width: 0;
    padding: 14px 10px;
  }

  .shell:has(.training-workbench) .sidebar {
    min-width: 0;
    min-height: 54px;
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
  }

  .shell:has(.training-workbench) .side-brand {
    padding: 0;
    border: 0;
  }

  .shell:has(.training-workbench) .side-brand .brand-mark,
  .shell:has(.training-workbench) .side-brand span,
  .shell:has(.training-workbench) .nav-section-title,
  .shell:has(.training-workbench) .account > div {
    display: none;
  }

  .shell:has(.training-workbench) .nav {
    display: none;
  }

  .shell:has(.training-workbench) .nav.is-open {
    position: absolute;
    top: 100%;
    right: 8px;
    left: 8px;
    z-index: 9;
    min-width: 0;
    max-height: min(60vh, 420px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--nav);
    box-shadow: var(--shadow);
    overflow-y: auto;
  }

  .shell:has(.training-workbench) .nav-section {
    display: contents;
  }

  .shell:has(.training-workbench) .nav-section + .nav-section {
    padding: 0;
    border: 0;
  }

  .shell:has(.training-workbench) .nav button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .shell:has(.training-workbench) .mobile-nav-toggle {
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    white-space: normal;
  }

  .shell:has(.training-workbench) .account {
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .shell:has(.training-workbench) .account .ghost {
    min-height: 36px;
    padding: 6px 9px;
    color: #d9e5e4;
  }

  .shell:has(.training-workbench) .topbar,
  .shell:has(.training-workbench) .view-head {
    min-height: 0;
    display: grid;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .shell:has(.training-workbench) .view-head h2 {
    font-size: 20px;
  }

  .shell:has(.training-workbench) .view-head p {
    font-size: 12px;
  }

  .shell:has(.training-workbench) .view-head .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shell:has(.training-workbench) .view-head .actions button {
    width: 100%;
  }

  .training-tabs button {
    min-height: 38px;
    padding: 6px 11px;
    font-size: 13px;
  }

  .training-summary,
  .training-summary-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-summary > div,
  .training-summary > div:nth-child(3n),
  .training-summary > div:nth-last-child(-n + 3),
  .training-summary-compact > div:nth-last-child(-n + 3) {
    min-height: 82px;
    padding: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .training-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .training-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .training-summary-compact > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .training-command-panel,
  .training-report-card {
    padding: 12px;
  }

  .training-roster-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-roster-filter input {
    grid-column: 1 / -1;
  }

  .training-roster-filter button {
    width: 100%;
  }

  .training-report-card header,
  .training-report-card footer {
    display: grid;
    align-items: start;
  }

  .training-report-card footer button {
    width: 100%;
  }

  .training-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-report-metrics > div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .training-report-metrics > div:nth-child(2n) {
    border-right: 0;
  }

  .training-report-metrics > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .course-workbench,
  .free-group-workbench {
    min-width: 0;
  }

  .course-tabs {
    max-width: 100%;
  }

  .course-tabs button {
    min-height: 38px;
    padding: 6px 11px;
    font-size: 13px;
  }

  .course-form-columns,
  .course-product-workbench,
  .free-group-create-grid {
    grid-template-columns: 1fr;
  }

  .course-form {
    padding: 12px;
  }

  .free-group-summary {
    grid-template-columns: 1fr 1fr;
  }

  .free-group-summary > div,
  .free-group-summary > div:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .free-group-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .free-group-summary > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .free-group-toolbar {
    display: grid;
    align-items: stretch;
  }

  .free-group-filters {
    width: 100%;
  }

  .free-group-filters button {
    flex: 1 0 auto;
    padding-inline: 8px;
  }

  .free-group-create-grid {
    padding: 0 10px 10px;
  }

  .free-group-create-grid .field,
  .free-group-create-grid .field:nth-child(1),
  .free-group-create-grid .field:nth-child(2),
  .free-group-create-grid .field:nth-child(4),
  .free-group-create-grid button {
    grid-column: auto;
  }

  .free-group-create-grid button {
    width: 100%;
  }

  .free-group-table {
    min-width: 0;
  }

  .free-group-table thead {
    display: none;
  }

  .free-group-table,
  .free-group-table tbody,
  .free-group-table tr,
  .free-group-table td {
    display: block;
    width: 100%;
  }

  .free-group-table tr {
    border-bottom: 8px solid var(--bg);
  }

  .free-group-table tr:last-child {
    border-bottom: 0;
  }

  .free-group-table td {
    min-height: 38px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
  }

  .free-group-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .free-group-table td:last-child {
    border-bottom: 0;
  }

  .free-group-table .free-group-empty {
    display: block;
  }

  .free-group-table .free-group-empty::before {
    display: none;
  }

  .free-group-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .free-group-participant {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .free-group-participant .free-group-inline-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ice-workbench {
    min-width: 0;
  }

  .shell:has(.ice-workbench) .sidebar,
  .shell:has(.course-workbench) .sidebar {
    min-width: 0;
    min-height: 54px;
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
  }

  .shell:has(.ice-workbench) .side-brand,
  .shell:has(.course-workbench) .side-brand {
    padding: 0;
    border: 0;
  }

  .shell:has(.ice-workbench) .side-brand .brand-mark,
  .shell:has(.ice-workbench) .side-brand span,
  .shell:has(.ice-workbench) .nav-section-title,
  .shell:has(.ice-workbench) .account > div,
  .shell:has(.course-workbench) .side-brand .brand-mark,
  .shell:has(.course-workbench) .side-brand span,
  .shell:has(.course-workbench) .nav-section-title,
  .shell:has(.course-workbench) .account > div {
    display: none;
  }

  .shell:has(.ice-workbench) .nav,
  .shell:has(.course-workbench) .nav {
    display: none;
  }

  .shell:has(.ice-workbench) .nav.is-open,
  .shell:has(.course-workbench) .nav.is-open {
    position: absolute;
    top: 100%;
    right: 8px;
    left: 8px;
    z-index: 9;
    min-width: 0;
    max-height: min(60vh, 420px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--nav);
    box-shadow: var(--shadow);
    overflow-x: visible;
    overflow-y: auto;
  }

  .shell:has(.ice-workbench) .nav-section,
  .shell:has(.course-workbench) .nav-section {
    display: contents;
  }

  .shell:has(.ice-workbench) .nav-section + .nav-section,
  .shell:has(.course-workbench) .nav-section + .nav-section {
    padding: 0;
    border: 0;
  }

  .shell:has(.ice-workbench) .nav button,
  .shell:has(.course-workbench) .nav button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .shell:has(.ice-workbench) .mobile-nav-toggle,
  .shell:has(.course-workbench) .mobile-nav-toggle {
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    white-space: normal;
  }

  .shell:has(.ice-workbench) .account,
  .shell:has(.course-workbench) .account {
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .shell:has(.ice-workbench) .account .ghost,
  .shell:has(.course-workbench) .account .ghost {
    min-height: 36px;
    padding: 6px 9px;
    color: #d9e5e4;
  }

  .ice-workbench .view-head h2 {
    font-size: 20px;
  }

  .ice-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ice-summary-strip button,
  .ice-summary-strip button:nth-child(3n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .ice-summary-strip button:nth-child(2n) {
    border-right: 0;
  }

  .ice-summary-strip button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .ice-filter-bar {
    grid-template-columns: 1fr;
  }

  .ice-filter-bar .actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ice-command-grid,
  .ice-management-grid,
  .ice-command-panel .grid.cols-2,
  .ice-command-panel .grid.cols-3,
  .ice-command-panel .grid.cols-4,
  .ice-report-detail {
    grid-template-columns: 1fr;
  }

  .ice-command-panel,
  .ice-quota-panel,
  .ice-report-panel {
    padding: 12px;
  }

  .ice-table-head,
  .ice-report-panel .section-title {
    align-items: stretch;
    display: grid;
  }

  .ice-table-head button,
  .ice-report-panel .actions,
  .ice-report-panel .actions button {
    width: 100%;
  }

  .ice-quota-controls,
  .ice-quota-summary,
  .ice-metrics {
    grid-template-columns: 1fr;
  }

  .ice-quota-summary > div,
  .ice-metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ice-quota-summary > div:last-child,
  .ice-metrics > div:last-child {
    border-bottom: 0;
  }

  .ice-quota-ledger > div {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ice-quota-ledger small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .ice-drawer-layer {
    grid-template-columns: 1fr;
  }

  .ice-drawer-scrim {
    display: none;
  }

  .ice-detail-drawer {
    width: 100%;
    padding: 14px;
  }

  .ice-drawer-facts {
    grid-template-columns: 1fr;
  }

  .ice-drawer-facts > div,
  .ice-drawer-facts > div:nth-child(2n),
  .ice-drawer-facts > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ice-drawer-facts > div:last-child {
    border-bottom: 0;
  }

  .shell:has(.operations-workbench) .sidebar {
    min-width: 0;
    min-height: 54px;
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
  }

  .shell:has(.operations-workbench) .side-brand {
    padding: 0;
    border: 0;
  }

  .shell:has(.operations-workbench) .side-brand .brand-mark,
  .shell:has(.operations-workbench) .side-brand span,
  .shell:has(.operations-workbench) .nav-section-title,
  .shell:has(.operations-workbench) .account > div {
    display: none;
  }

  .shell:has(.operations-workbench) .nav {
    display: none;
  }

  .shell:has(.operations-workbench) .nav.is-open {
    position: absolute;
    top: 100%;
    right: 8px;
    left: 8px;
    z-index: 9;
    min-width: 0;
    max-height: min(60vh, 420px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: var(--nav);
    box-shadow: var(--shadow);
    overflow-x: visible;
    overflow-y: auto;
  }

  .shell:has(.operations-workbench) .nav-section {
    display: contents;
  }

  .shell:has(.operations-workbench) .nav-section + .nav-section {
    padding: 0;
    border: 0;
  }

  .shell:has(.operations-workbench) .nav button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .shell:has(.operations-workbench) .mobile-nav-toggle {
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    white-space: normal;
  }

  .shell:has(.operations-workbench) .account {
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .shell:has(.operations-workbench) .account .ghost {
    min-height: 36px;
    padding: 6px 9px;
    color: #d9e5e4;
  }

  .shell:has(.operations-workbench) .topbar {
    min-height: 54px;
    margin-bottom: 12px;
  }

  .operations-workbench .view-head {
    align-items: start;
  }

  .operations-workbench .view-head h2 {
    font-size: 20px;
  }

  .operations-workbench .view-head p {
    font-size: 12px;
  }

  .operations-toolbar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
    padding-top: 4px;
  }

  .operations-toolbar .actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
  }

  .operations-filter-toggle {
    display: inline-flex;
  }

  .operations-tabs {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .operations-tabs button {
    width: 100%;
    min-width: 0;
    padding: 7px 5px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .operations-summary {
    min-height: 244px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-summary > div,
  .operations-summary > div:nth-child(4n) {
    min-height: 61px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .operations-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .operations-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .operations-filters {
    display: none;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
  }

  .operations-filters.is-open {
    display: grid;
  }

  .operations-filters .field:nth-child(3),
  .operations-filters .field:nth-child(4),
  .operations-filters .field:nth-child(5),
  .operations-filters button {
    grid-column: 1 / -1;
  }

  .operations-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .operations-pager .actions,
  .operations-pager button {
    width: 100%;
  }

  .operations-table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .operations-table,
  .operations-table tbody,
  .operations-table tr,
  .operations-table td {
    display: block;
    width: 100%;
  }

  .operations-table thead {
    display: none;
  }

  .operations-table tr {
    margin-bottom: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
  }

  .operations-table tr.is-p0 {
    border-left: 4px solid var(--red);
    box-shadow: none;
  }

  .operations-table td {
    min-height: 38px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
  }

  .operations-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .operations-table td:last-child {
    border-bottom: 0;
  }

  .operations-table .operations-row-action {
    grid-template-columns: 1fr;
  }

  .operations-table .operations-row-action::before {
    display: none;
  }

  .operations-empty-row td {
    display: block;
    text-align: center;
  }

  .operations-empty-row td::before {
    display: none;
  }

  .operations-safe-registry,
  .workforce-evidence {
    grid-template-columns: 1fr 1fr;
  }

  .operations-safe-registry > div,
  .workforce-evidence > div,
  .workforce-evidence > div:nth-child(3n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .operations-safe-registry > div:nth-child(2n),
  .workforce-evidence > div:nth-child(2n) {
    border-right: 0;
  }

  .operations-report-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .operations-report-toolbar input,
  .operations-report-toolbar button {
    width: 100%;
  }

  .workforce-blockers {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .operations-policy-meta {
    grid-template-columns: 1fr 1fr;
  }

  .operations-policy-meta > div,
  .operations-policy-meta > div:nth-child(2n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .operations-policy-meta > div:nth-child(2n) {
    border-right: 0;
  }

  .operations-policy-meta > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .operations-policy-grid,
  .operations-policy-calendar,
  .operations-policy-capacity,
  .operations-policy-playbooks,
  .operations-policy-submit {
    grid-template-columns: 1fr;
  }

  .operations-policy-calendar {
    min-width: 0;
  }

  .operations-policy-weekdays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-policy-capacity {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .operations-policy-playbook {
    grid-template-columns: minmax(0, 1fr) minmax(116px, 145px);
  }

  .operations-policy-playbook:nth-child(odd) {
    border-right: 0;
  }

  .operations-policy-submit button {
    width: 100%;
  }

  .operations-drawer-layer {
    grid-template-columns: 1fr;
  }

  .operations-drawer-scrim {
    display: none;
  }

  .operations-drawer {
    width: 100%;
  }

  .operations-detail-facts {
    grid-template-columns: 1fr;
  }

  .operations-detail-facts > div,
  .operations-detail-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .operations-event-line {
    display: grid;
    gap: 3px;
  }
}
