:root {
  --bg-950: #050b17;
  --bg-900: #091326;
  --bg-850: #0c1830;
  --bg-800: #102043;
  --bg-760: #132955;
  --line: rgba(145, 177, 232, 0.16);
  --line-strong: rgba(145, 177, 232, 0.28);
  --text-heading: #F7FAFF;
  --text-entity: #8FE8FF;
  --text-body: #D9E4F5;
  --text-descriptor: #9FB2CC;
  --text-utility: #7F93B2;
  --text: var(--text-body);
  --text-muted: var(--text-descriptor);
  --text-soft: var(--text-utility);
  --cyan: #58d6f4;
  --cyan-strong: #2ee6ff;
  --cyan-soft: rgba(88, 214, 244, 0.14);
  --indigo: #8f97ff;
  --indigo-soft: rgba(143, 151, 255, 0.14);
  --amber: #efbe61;
  --amber-soft: rgba(239, 190, 97, 0.14);
  --green: #2fd69f;
  --green-soft: rgba(47, 214, 159, 0.14);
  --red: #f06b7f;
  --red-soft: rgba(240, 107, 127, 0.14);
  --panel: linear-gradient(180deg, rgba(14, 24, 49, 0.95), rgba(9, 16, 35, 0.95));
  --panel-soft: linear-gradient(180deg, rgba(14, 24, 49, 0.86), rgba(9, 16, 35, 0.88));
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --card-action-bg: linear-gradient(180deg, rgba(15, 31, 57, 0.9), rgba(9, 18, 35, 0.9));
  --card-action-border: rgba(88, 214, 244, 0.16);
  --card-record-bg: linear-gradient(180deg, rgba(16, 29, 56, 0.9), rgba(10, 19, 38, 0.84));
  --card-record-border: rgba(145, 177, 232, 0.1);
  --card-review-bg: linear-gradient(180deg, rgba(15, 26, 49, 0.86), rgba(9, 17, 33, 0.82));
  --card-review-border: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(88, 214, 244, 0.1), transparent 24%),
    radial-gradient(circle at bottom right, rgba(239, 190, 97, 0.08), transparent 22%),
    linear-gradient(180deg, #060b17 0%, #081020 100%);
}

body {
  padding: 18px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 18px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(5, 12, 24, 0.96);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.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;
}

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

button {
  border: 0;
  cursor: pointer;
  color: inherit;
}

button:focus-visible,
a[href]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid rgba(239, 190, 97, 0.98);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(5, 11, 23, 0.92),
    0 0 0 7px rgba(239, 190, 97, 0.22);
}

#pageContent:focus-visible,
.auth-card:focus-visible,
.side-panel-card:focus-visible,
.floating-panel:focus-visible {
  outline: 3px solid rgba(239, 190, 97, 0.98);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.22;
  pointer-events: none;
}

.background-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.glow-a {
  top: -90px;
  right: -60px;
  background: rgba(88, 214, 244, 0.5);
}

.glow-b {
  bottom: -120px;
  left: -80px;
  background: rgba(239, 190, 97, 0.35);
}

.auth-modal {
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.auth-card,
.panel,
.floating-panel,
.side-panel-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.auth-card {
  width: min(560px, 100%);
  border-radius: 34px;
  padding: 38px;
}

.auth-logo {
  width: min(100%, 420px);
  height: auto;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--text-utility);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-copy,
.status-note,
.panel-copy,
.detail-copy,
.empty-copy {
  color: var(--text-body);
  line-height: 1.55;
}

.muted,
.list-subtext {
  color: var(--text-descriptor);
}

.stat-subcopy,
.table-meta {
  color: var(--text-utility);
}

.auth-tabs,
.date-toggle,
.view-toggle {
  display: inline-flex;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
}

.auth-tabs {
  margin: 22px 0 18px;
}

.auth-form,
.builder-form,
.builder-grid,
.filter-grid,
.quick-actions,
.metric-grid,
.status-kpis,
.command-grid,
.record-card-grid,
.overview-grid,
.detail-grid,
.timeline-list,
.group-grid,
.export-group,
.upload-group {
  display: grid;
  gap: 18px;
}

.auth-form label,
.form-field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.required-indicator {
  color: var(--amber);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

select,
input[type="date"] {
  color: var(--text);
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(93%) sepia(16%) saturate(943%) hue-rotate(159deg) brightness(102%) contrast(93%);
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  filter: brightness(0) saturate(100%) invert(88%) sepia(54%) saturate(843%) hue-rotate(151deg) brightness(107%) contrast(102%);
}

.field-error {
  color: #ffd0d7;
  font-size: 0.84rem;
  line-height: 1.5;
}

.field-error:not(.hidden) {
  display: block;
}

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

.tab-button,
.toggle-chip,
.nav-link,
.ghost-button,
.text-button,
.primary-button,
.secondary-button,
.status-chip,
.mini-chip,
.saved-view-chip {
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.tab-button,
.toggle-chip,
.nav-link,
.ghost-button {
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  color: var(--text);
}

.tab-button.active,
.toggle-chip.active,
.nav-link.active {
  background: rgba(88, 214, 244, 0.14);
  color: var(--cyan-strong);
  box-shadow: inset 0 0 0 1px rgba(88, 214, 244, 0.22);
}

.date-toggle .toggle-chip,
.view-toggle .toggle-chip {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  color: var(--text-muted);
}

.date-toggle .toggle-chip:hover,
.view-toggle .toggle-chip:hover {
  border-color: rgba(156, 242, 255, 0.16);
  color: var(--text);
}

.date-toggle .toggle-chip.active,
.view-toggle .toggle-chip.active {
  background: linear-gradient(180deg, rgba(88, 214, 244, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(88, 214, 244, 0.28);
  color: var(--cyan-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(88, 214, 244, 0.12);
}

.primary-button,
.secondary-button {
  padding: 12px 18px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan), #9cf2ff);
  color: #041122;
  box-shadow: 0 0 24px rgba(88, 214, 244, 0.24);
}

.secondary-button {
  background: rgba(239, 190, 97, 0.12);
  color: #ffe3ad;
  box-shadow: inset 0 0 0 1px rgba(239, 190, 97, 0.22);
}

.ghost-button,
.icon-button {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--cyan);
}

.tab-button:hover,
.toggle-chip:hover,
.nav-link:hover,
.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.brief-type-choice:hover,
.work-status-card:hover,
.kpi-card:hover {
  transform: translateY(-1px);
}

.mini-action:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 214, 244, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(88, 214, 244, 0.08);
}

.record-card:hover,
.list-row:hover,
.activity-item:hover,
.saved-view-chip:hover,
.operational-card:hover,
.attention-action:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 177, 232, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(0, 0, 0, 0.14);
}

.group-card:hover,
.info-block:hover,
.partner-network-helper-card:hover,
.builder-readiness-panel:hover,
.builder-submit-card:hover,
.ai-result-group:hover,
.ai-suggestion-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.07);
}

.full-width {
  width: 100%;
}

.app-shell {
  position: relative;
  z-index: 2;
}

.app-notice {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(88, 214, 244, 0.2);
  background: linear-gradient(180deg, rgba(14, 24, 49, 0.94), rgba(9, 16, 35, 0.94));
  box-shadow: var(--shadow-md);
}

.app-notice[data-tone="info"] {
  border-color: rgba(88, 214, 244, 0.22);
}

.app-notice[data-tone="success"] {
  border-color: rgba(47, 214, 159, 0.24);
}

.app-notice[data-tone="warning"] {
  border-color: rgba(239, 190, 97, 0.3);
}

.app-notice[data-tone="danger"] {
  border-color: rgba(240, 107, 127, 0.3);
}

.app-notice-body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.app-notice-title,
.app-notice-text {
  margin: 0;
}

.app-notice-title {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.app-notice-text {
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.55;
}

.command-header {
  position: relative;
  z-index: 30;
  overflow: visible;
  padding: 14px 20px;
  border-radius: 22px;
  border: 1px solid rgba(145, 177, 232, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 23, 47, 0.97), rgba(8, 14, 28, 0.98)),
    radial-gradient(circle at top right, rgba(88, 214, 244, 0.08), transparent 26%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.command-header::before {
  content: "";
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(88, 214, 244, 0), rgba(88, 214, 244, 0.45), rgba(239, 190, 97, 0.25), rgba(88, 214, 244, 0));
  border-radius: 999px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.7;
}

.header-single-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  overflow: visible;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-logo {
  width: 100%;
  max-width: 168px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  color: var(--text-heading);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card h1,
.page-header h1,
.page-header h2,
.panel h3,
.side-panel-header h3 {
  margin: 0;
  color: var(--text-heading);
}

.header-operations {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  overflow: visible;
}

.header-search {
  position: relative;
  width: clamp(180px, 18vw, 240px);
}

.header-search input {
  min-height: 42px;
  padding: 10px 14px;
  border-color: rgba(145, 177, 232, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.header-menu-wrap {
  position: relative;
  z-index: 35;
  overflow: visible;
}

.date-range-wrap {
  position: relative;
  z-index: 40;
}

.floating-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 48px));
  border-radius: 18px;
  padding: 14px;
  z-index: 80;
  max-width: calc(100vw - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#workDropdown {
  left: 0;
  right: auto;
  width: min(320px, calc(100vw - 36px));
}

#customDateRangeDropdown {
  width: min(340px, calc(100vw - 48px));
  padding: 16px;
  border-color: rgba(88, 214, 244, 0.18);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(88, 214, 244, 0.08);
}

.date-range-grid {
  display: grid;
  gap: 14px;
}

#customDateRangeDropdown .field-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

#customDateRangeDropdown input[type="date"] {
  min-height: 48px;
  border-color: rgba(156, 242, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

.date-range-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

#customDateRangeDropdown .date-range-actions .ghost-button,
#customDateRangeDropdown .date-range-actions .primary-button {
  min-width: 92px;
}

#customDateRangeDropdown .field-error {
  color: #ffd8de;
}

#searchDropdown {
  left: 0;
  right: auto;
  width: min(420px, calc(100vw - 48px));
}

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

#accountDropdown {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.dropdown-item {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text);
  text-align: left;
}

.dropdown-item:hover {
  border-color: rgba(88, 214, 244, 0.18);
  background: rgba(88, 214, 244, 0.08);
}

.compact-field {
  width: 170px;
}

.command-header .primary-button,
.command-header .ghost-button,
.command-header .nav-link {
  min-height: 42px;
  font-weight: 600;
}

.command-header .nav-link,
.command-header .ghost-button {
  padding: 10px 14px;
  background: transparent;
  color: var(--text-muted);
}

.command-header .nav-link.active,
.command-header .ghost-button.active,
.command-header .account-trigger.active {
  color: var(--text);
  background: rgba(88, 214, 244, 0.12);
  box-shadow: inset 0 0 0 1px rgba(88, 214, 244, 0.18);
}

.command-header .primary-button {
  padding-inline: 18px;
  box-shadow:
    0 10px 24px rgba(88, 214, 244, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.command-header .ghost-button {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.command-header .text-button {
  color: #a8e8f8;
  font-weight: 600;
}

.account-trigger {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
  min-width: 124px;
  text-align: left;
}

.account-trigger-name {
  font-size: 0.73rem;
  line-height: 1.1;
  color: var(--text-utility);
}

.account-dropdown {
  display: grid;
  gap: 18px;
  padding-right: 2px;
}

.account-summary {
  display: grid;
  gap: 6px;
}

.account-summary strong {
  font-size: 1rem;
  color: var(--text);
}

.build-label {
  margin: 0;
  color: var(--text-utility);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-build-label {
  margin-top: 6px;
  text-align: right;
}

.account-build-label {
  margin-top: 4px;
}

.account-role-field {
  gap: 8px;
}

.dropdown-section {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.account-notification-list {
  gap: 10px;
}

.dropdown-section-title {
  margin: 0;
  color: var(--text-utility);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dropdown-note {
  cursor: default;
}

.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  position: relative;
  z-index: 10;
  overflow: visible;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(145, 177, 232, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-filter-group,
.dashboard-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-filter-group {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.dashboard-toolbar-actions {
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.dashboard-toolbar-solo {
  justify-content: flex-start;
  align-items: flex-start;
}

.toolbar-label {
  color: var(--text-utility);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-shell {
  padding: 24px 2px 40px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.page-header > div:first-child {
  display: grid;
  gap: 0;
  align-content: start;
}

.page-header > div:first-child h1,
.page-header > div:first-child h2 {
  margin-top: 0;
}

.page-header .detail-copy {
  margin-top: 10px;
  max-width: 64ch;
}

.page-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  align-self: flex-end;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.panel-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(88, 214, 244, 0.05), transparent);
  pointer-events: none;
}

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

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.hero-panel {
  min-height: 240px;
  background: linear-gradient(110deg, rgba(9, 18, 39, 0.96), rgba(11, 26, 52, 0.88));
}

.overview-hero {
  display: grid;
  gap: 24px;
  min-height: 100%;
}

.summary-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.partner-network-summary-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-network-helper-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
}

.partner-network-helper-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 28, 53, 0.84), rgba(9, 18, 35, 0.8)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 26px rgba(0, 0, 0, 0.12);
}

.partner-network-guide-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.partner-network-guide-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.operational-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 124px;
  padding: 17px;
  border-radius: 18px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.operational-card.tone-info {
  border-color: rgba(88, 214, 244, 0.2);
}

.operational-card.tone-warning {
  border-color: rgba(239, 190, 97, 0.24);
  background: linear-gradient(180deg, rgba(239, 190, 97, 0.08), rgba(255, 255, 255, 0.04));
}

.operational-card.tone-success {
  border-color: rgba(47, 214, 159, 0.2);
}

.operational-card.tone-danger {
  border-color: rgba(240, 107, 127, 0.24);
  background: linear-gradient(180deg, rgba(240, 107, 127, 0.08), rgba(255, 255, 255, 0.04));
}

.work-status-matrix-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.work-status-matrix {
  display: grid;
  grid-template-columns: minmax(140px, 180px) repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-width: 860px;
}

.matrix-corner {
  min-height: 1px;
}

.work-status-matrix-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.work-status-mobile-stack {
  display: none;
}

.matrix-scroll-note {
  display: none;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.matrix-column-label,
.matrix-row-label {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-column-label {
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.matrix-row-label {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.matrix-row-campaign {
  background: linear-gradient(180deg, rgba(88, 214, 244, 0.045), rgba(255, 255, 255, 0.025));
}

.matrix-row-job {
  background: linear-gradient(180deg, rgba(239, 190, 97, 0.045), rgba(255, 255, 255, 0.025));
}

.mobile-status-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.mobile-status-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.work-status-card {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 116px;
  padding: 14px;
  border-radius: 18px;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.work-status-card .kpi-value {
  margin: 0;
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
}

.matrix-cell .stat-subcopy {
  max-width: 11ch;
  margin: 0 auto;
}

.work-status-card.status-planning {
  border-color: rgba(145, 177, 232, 0.18);
}

.work-status-card.status-active {
  border-color: rgba(88, 214, 244, 0.22);
  background: linear-gradient(180deg, rgba(88, 214, 244, 0.08), rgba(255, 255, 255, 0.04));
}

.work-status-card.status-on_hold {
  border-color: rgba(239, 190, 97, 0.22);
}

.work-status-card.status-completed {
  border-color: rgba(47, 214, 159, 0.22);
}

.work-status-card.status-cancelled {
  border-color: rgba(240, 107, 127, 0.2);
}

.kpi-card {
  padding: 17px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  color: var(--text);
}

.kpi-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.kpi-value,
.stat-value,
.number-lg {
  font-weight: 800;
  line-height: 1;
}

.kpi-value {
  margin: 10px 0 6px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.status-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.status-card {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-bar {
  display: flex;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.status-bar span {
  display: block;
  height: 100%;
}

.status-bar .draft { background: rgba(145, 177, 232, 0.6); }
.status-bar .submitted { background: rgba(88, 214, 244, 0.9); }
.status-bar .pending { background: rgba(239, 190, 97, 0.95); }
.status-bar .changes { background: rgba(240, 107, 127, 0.9); }
.status-bar .approved { background: rgba(47, 214, 159, 0.9); }
.status-bar .rejected { background: rgba(240, 107, 127, 0.6); }

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

.quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-quick-actions-panel {
  border: 1px solid rgba(88, 214, 244, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 31, 57, 0.9), rgba(9, 18, 35, 0.92)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(88, 214, 244, 0.06);
}

.home-quick-actions-panel .eyebrow {
  color: #8edff0;
}

.mission-control-panel {
  position: relative;
}

.mission-control-panel-priority {
  border-color: rgba(239, 190, 97, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(0, 0, 0, 0.14);
}

.mission-control-panel-priority::before,
.mission-control-panel-monitoring::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  opacity: 0.8;
}

.mission-control-panel-priority::before {
  background: linear-gradient(90deg, rgba(239, 190, 97, 0.28), rgba(88, 214, 244, 0.12), transparent);
}

.mission-control-panel-monitoring {
  background:
    linear-gradient(180deg, rgba(13, 24, 46, 0.9), rgba(8, 16, 31, 0.84)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.055);
}

.mission-control-panel-monitoring::before {
  background: linear-gradient(90deg, rgba(143, 151, 255, 0.2), transparent);
}

.mission-control-active-work {
  border-color: rgba(143, 151, 255, 0.12);
}

.mini-action {
  display: grid;
  gap: 6px;
  text-align: left;
  min-height: 82px;
  padding: 15px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(19, 36, 65, 0.92), rgba(10, 19, 37, 0.88)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(88, 214, 244, 0.14);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 26px rgba(0, 0, 0, 0.12);
}

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

.record-card,
.list-row,
.activity-item,
.operational-card,
.attention-action,
.metric-card,
.kpi-card,
.status-card,
.timeline-card {
  border-radius: 18px;
  background: var(--card-record-bg);
  border: 1px solid var(--card-record-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 22px rgba(0, 0, 0, 0.1);
}

.info-block,
.group-card,
.brief-view-summary,
.partner-network-helper-card,
.ai-result-group,
.ai-suggestion-card,
.builder-readiness-panel,
.builder-submit-card {
  border-radius: 18px;
  background: var(--card-review-bg);
  border: 1px solid var(--card-review-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 26px rgba(0, 0, 0, 0.12);
}

.grouped-list > .list-row,
.grouped-list > .record-card,
.grouped-list > .activity-item {
  background:
    linear-gradient(180deg, rgba(17, 30, 58, 0.94), rgba(10, 19, 38, 0.88)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(145, 177, 232, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(0, 0, 0, 0.1);
}

.side-panel-hero {
  display: grid;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(17, 34, 64, 0.96), rgba(11, 22, 42, 0.9)),
    radial-gradient(circle at top right, rgba(88, 214, 244, 0.1), transparent 34%),
    radial-gradient(circle at bottom left, rgba(117, 103, 255, 0.07), transparent 38%);
  border-color: rgba(88, 214, 244, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.side-panel-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.side-panel-hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.side-panel-hero-title {
  display: block;
  margin: 0;
  color: var(--text-heading);
  line-height: 1.2;
}

.side-panel-hero-context {
  margin: 8px 0 0;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.4;
}

.side-panel-hero-note {
  margin-bottom: 0;
  color: var(--text-descriptor);
}

.side-panel-meta {
  margin-top: 16px !important;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-panel-review-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-body);
  line-height: 1.55;
}

.side-panel-action-row,
.side-panel-utility-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.side-panel-action-row {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.side-panel-primary-zone {
  margin-top: 18px !important;
  padding: 14px 0 0;
  border-top: 1px solid rgba(156, 242, 255, 0.12);
}

.side-panel-primary-zone .primary-button {
  box-shadow: 0 10px 24px rgba(88, 214, 244, 0.12);
}

.side-panel-utility-actions .ghost-button,
.handoff-action-zone .ghost-button {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.side-panel-section-stack {
  display: grid;
  gap: 20px;
}

.side-panel-core-stack {
  gap: 18px;
}

.side-panel-section {
  position: relative;
}

.side-panel-section-core {
  background:
    linear-gradient(180deg, rgba(18, 32, 61, 0.88), rgba(11, 20, 39, 0.82)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.side-panel-section-supporting {
  background:
    linear-gradient(180deg, rgba(16, 27, 51, 0.82), rgba(10, 18, 34, 0.78)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.side-panel-section-history,
.side-panel-section-utility {
  background:
    linear-gradient(180deg, rgba(12, 21, 39, 0.72), rgba(8, 15, 29, 0.66)),
    rgba(255, 255, 255, 0.022);
  border-color: rgba(255, 255, 255, 0.048);
  box-shadow: none;
}

.side-panel-section-history strong,
.side-panel-section-utility strong {
  color: var(--text-body);
}

.side-panel-section .inline-between {
  align-items: flex-start;
}

.record-card,
.group-card {
  padding: 18px;
}

.record-card {
  gap: 0;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.entity-name {
  color: var(--text-entity);
}

tbody th[scope="row"] strong {
  color: var(--text-entity);
}

button.dropdown-item strong:not(.entity-name),
button.mini-action strong,
.activity-item strong,
.group-card > strong,
.group-card > .inline-between > strong,
.account-summary strong {
  color: var(--text-heading);
}

.group-card > strong,
.group-card > .inline-between > strong {
  display: block;
  line-height: 1.25;
}

.approval-queue-card.active {
  border-color: rgba(88, 214, 244, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(88, 214, 244, 0.08);
}

.record-card-header,
.inline-between,
.row-actions,
.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.record-card-header > div,
.mini-action,
.partner-network-helper-card,
.group-card,
.info-block {
  min-width: 0;
}

.status-chip,
.mini-chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.15;
}

.badge {
  background: rgba(121, 141, 177, 0.12);
  border: 1px solid rgba(145, 177, 232, 0.12);
  color: var(--text-descriptor);
}

.badge-type {
  background: rgba(143, 151, 255, 0.13);
  border-color: rgba(143, 151, 255, 0.2);
  color: #d8dcff;
}

.badge-due {
  background: rgba(239, 190, 97, 0.14);
  border-color: rgba(239, 190, 97, 0.22);
  color: #f9ddb0;
}

.badge-updated,
.badge-utility {
  background: rgba(110, 127, 164, 0.14);
  border-color: rgba(145, 177, 232, 0.12);
  color: var(--text-utility);
}

.badge-link {
  background: rgba(88, 214, 244, 0.1);
  border-color: rgba(88, 214, 244, 0.18);
  color: #b8f2ff;
}

.badge-success {
  background: rgba(47, 214, 159, 0.14);
  border-color: rgba(47, 214, 159, 0.22);
  color: #b8f0db;
}

.badge-warning {
  background: rgba(239, 190, 97, 0.14);
  border-color: rgba(239, 190, 97, 0.22);
  color: #f9ddb0;
}

.badge-danger {
  background: rgba(240, 107, 127, 0.14);
  border-color: rgba(240, 107, 127, 0.22);
  color: #ffc6d0;
}

.mini-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-descriptor);
  font-weight: 600;
}

.status-planning,
.status-draft {
  background: rgba(145, 177, 232, 0.14);
  color: #d3e4ff;
}

.status-active,
.status-approved {
  background: var(--green-soft);
  color: #b0f0da;
}

.status-submitted {
  background: rgba(88, 214, 244, 0.16);
  color: #b4f3ff;
}

.status-on_hold,
.status-pending_internal_approval,
.status-pending_final_approval,
.status-pending {
  background: var(--amber-soft);
  color: #ffe4af;
}

.status-completed {
  background: rgba(88, 214, 244, 0.16);
  color: #b4f3ff;
}

.status-cancelled,
.status-rejected,
.status-changes_requested {
  background: var(--red-soft);
  color: #ffc0ca;
}

.roster-chip,
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.roster-chip.tone-success,
.score-pill.tone-success,
.mini-chip.tone-success {
  background: var(--green-soft);
  color: #b0f0da;
}

.roster-chip.tone-warning,
.score-pill.tone-warning,
.mini-chip.tone-warning {
  background: var(--amber-soft);
  color: #ffe4af;
}

.roster-chip.tone-danger,
.score-pill.tone-danger {
  background: var(--red-soft);
  color: #ffc0ca;
}

.roster-chip.tone-muted,
.score-pill.tone-muted {
  background: rgba(145, 177, 232, 0.12);
  color: #d3e4ff;
}

.partner-network-card .panel-copy {
  color: var(--text-body);
}

.partner-network-card {
  background:
    linear-gradient(180deg, rgba(13, 24, 47, 0.9), rgba(9, 18, 35, 0.82)),
    rgba(255, 255, 255, 0.02);
}

.partner-network-card .row-descriptor {
  color: var(--text-body);
}

.partner-network-card .record-meta,
.partner-network-card .pill-row {
  row-gap: 8px;
}

.partner-dashboard-overview {
  border-color: rgba(88, 214, 244, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 31, 58, 0.94), rgba(9, 19, 37, 0.9)),
    radial-gradient(circle at top right, rgba(88, 214, 244, 0.08), transparent 34%);
}

.partner-dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.partner-dashboard-panel-blocked {
  border-color: rgba(240, 107, 127, 0.14);
  background:
    linear-gradient(180deg, rgba(38, 19, 31, 0.9), rgba(17, 11, 23, 0.82)),
    rgba(255, 255, 255, 0.02);
}

.partner-handoff-card {
  display: grid;
  gap: 0;
  text-align: left;
  min-height: 100%;
  padding: 18px;
}

.partner-handoff-card .panel-copy {
  color: var(--text-body);
}

.partner-handoff-card .row-descriptor {
  margin-top: 8px;
}

.partner-handoff-card-awaiting {
  border-color: rgba(239, 190, 97, 0.16);
}

.partner-handoff-card-blocked {
  border-color: rgba(240, 107, 127, 0.18);
  background:
    linear-gradient(180deg, rgba(35, 19, 31, 0.92), rgba(15, 11, 23, 0.86)),
    rgba(255, 255, 255, 0.02);
}

.partner-handoff-card-active {
  border-color: rgba(47, 214, 159, 0.16);
}

.partner-handoff-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.partner-handoff-card-action {
  color: #9cf2ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.partner-handoff-page {
  display: grid;
  gap: 18px;
}

.partner-handoff-status-banner {
  display: grid;
  gap: 12px;
  border-color: rgba(88, 214, 244, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 28, 53, 0.94), rgba(9, 18, 35, 0.9)),
    rgba(255, 255, 255, 0.03);
}

.partner-handoff-status-banner.tone-info {
  border-color: rgba(88, 214, 244, 0.2);
}

.partner-handoff-status-banner.tone-warning {
  border-color: rgba(239, 190, 97, 0.18);
  background:
    linear-gradient(180deg, rgba(42, 32, 12, 0.92), rgba(20, 16, 8, 0.86)),
    rgba(255, 255, 255, 0.02);
}

.partner-handoff-status-banner.tone-danger {
  border-color: rgba(240, 107, 127, 0.2);
  background:
    linear-gradient(180deg, rgba(44, 19, 29, 0.92), rgba(19, 10, 17, 0.86)),
    rgba(255, 255, 255, 0.02);
}

.partner-handoff-status-banner.tone-success {
  border-color: rgba(47, 214, 159, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 41, 31, 0.92), rgba(8, 18, 15, 0.86)),
    rgba(255, 255, 255, 0.02);
}

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

.partner-contact-card {
  border-color: rgba(145, 177, 232, 0.12);
}

.partner-contact-card-main {
  border-color: rgba(88, 214, 244, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 31, 59, 0.94), rgba(9, 19, 37, 0.9)),
    rgba(255, 255, 255, 0.03);
}

.partner-acknowledgement-panel {
  display: grid;
  gap: 0;
}

.partner-acknowledgement-actions {
  justify-content: flex-start;
}

.partner-readiness-choice-card {
  border-color: rgba(88, 214, 244, 0.14);
  background:
    linear-gradient(180deg, rgba(14, 28, 52, 0.92), rgba(9, 18, 35, 0.88)),
    rgba(255, 255, 255, 0.02);
}

.partner-handoff-checkbox {
  width: 100%;
  justify-content: flex-start;
  border-color: rgba(145, 177, 232, 0.1);
  background:
    linear-gradient(180deg, rgba(17, 30, 58, 0.92), rgba(10, 18, 36, 0.88)),
    rgba(255, 255, 255, 0.02);
}

.partner-handoff-checkbox:has(input:checked) {
  border-color: rgba(88, 214, 244, 0.2);
  box-shadow: 0 0 0 1px rgba(88, 214, 244, 0.06);
}

.partner-kpi-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.partner-kpi-row strong {
  display: block;
  color: var(--text-heading);
}

.partner-kpi-row .list-subtext {
  margin-top: 4px;
}

.partner-kpi-row .score-pill {
  flex-shrink: 0;
  min-width: 84px;
  justify-content: center;
}

.record-meta,
.filter-bar,
.tab-bar,
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.record-meta,
.pill-row {
  row-gap: 8px;
}

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

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

.metric-card {
  padding: 16px 17px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 32, 60, 0.92), rgba(10, 18, 35, 0.86)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(143, 151, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-value {
  margin-top: 10px;
  font-size: 1.8rem;
}

.timeline-list {
  grid-template-columns: 1fr;
}

.timeline-card {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.timeline-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.timeline-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #9cf2ff);
  box-shadow: 0 0 18px rgba(88, 214, 244, 0.45);
}

.asset-readiness {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.readiness-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.readiness-pill.ready {
  background: rgba(47, 214, 159, 0.12);
  color: #b0f0da;
}

.readiness-pill.progress {
  background: rgba(239, 190, 97, 0.12);
  color: #ffe4af;
}

.readiness-pill.empty {
  background: rgba(145, 177, 232, 0.12);
  color: #d3e4ff;
}

.mini-calendar,
.client-list,
.activity-list,
.split-queue,
.grouped-list,
.attention-list {
  display: grid;
  gap: 12px;
}

.grouped-list {
  gap: 10px;
}

.brief-saved-view-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.briefs-recent-panel .inline-between {
  align-items: flex-start;
  gap: 16px;
}

.briefs-recent-panel .panel-copy {
  max-width: 66ch;
}

.briefs-recent-list {
  gap: 12px;
}

.briefs-recent-list > .list-row,
.briefs-recent-list > .activity-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.group-card > .inline-between + .grouped-list,
.group-card > .inline-between + .group-grid,
.group-card > .inline-between + .activity-list,
.group-card > .inline-between + .pill-row {
  margin-top: 14px !important;
}

.group-card > strong + .grouped-list,
.group-card > strong + .group-grid,
.group-card > strong + .activity-list,
.group-card > strong + .pill-row,
.group-card > strong + .panel-copy {
  margin-top: 12px !important;
}

.briefs-tab-bar {
  align-items: center;
}

.saved-view-chip {
  flex: 1 1 210px;
  min-width: 0;
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
  color: var(--text-body);
  background:
    linear-gradient(180deg, rgba(18, 32, 60, 0.9), rgba(10, 18, 34, 0.84)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(143, 151, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 5px;
}

.saved-view-chip strong,
.brief-view-summary strong {
  color: var(--text-heading);
  line-height: 1.2;
}

.saved-view-chip.active {
  background: linear-gradient(180deg, rgba(88, 214, 244, 0.1), rgba(143, 151, 255, 0.08));
  border-color: rgba(88, 214, 244, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(88, 214, 244, 0.12);
}

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

.saved-view-count {
  min-width: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(110, 127, 164, 0.14);
  border: 1px solid rgba(145, 177, 232, 0.12);
  color: var(--text-descriptor);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
}

.saved-view-chip.active .saved-view-count {
  background: rgba(88, 214, 244, 0.18);
  color: var(--text-body);
}

.brief-view-summary {
  padding: 14px 16px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
}

.list-row,
.activity-item {
  padding: 14px 15px;
  text-align: left;
}

.list-row {
  display: grid;
}

.list-row-main {
  display: grid;
  gap: 8px;
  width: 100%;
  align-items: start;
  justify-items: start;
}

.list-row-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.list-row-title-copy {
  display: grid;
  justify-items: start;
  align-items: start;
  min-width: 0;
  text-align: left;
}

.list-row-title .entity-name,
.activity-item .entity-name,
.list-row .entity-name {
  display: block;
  line-height: 1.22;
}

.list-row-descriptor {
  line-height: 1.38;
  color: var(--text-descriptor);
  width: 100%;
  text-align: left;
  justify-self: start;
}

.row-descriptor {
  font-size: 0.92rem;
  color: var(--text-descriptor);
}

.list-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  row-gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-item {
  display: grid;
  gap: 8px;
}

.activity-item > .list-row-main + .panel-copy {
  margin-top: 2px;
}

.activity-item strong:not(.entity-name) {
  color: var(--text-heading);
}

.activity-item .panel-copy {
  color: var(--text-body);
}

.attention-action {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 18px;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(17, 30, 58, 0.92), rgba(10, 19, 38, 0.86)),
    rgba(255, 255, 255, 0.03);
}

.attention-action.tone-warning {
  border-color: rgba(239, 190, 97, 0.2);
}

.attention-action.tone-warning .attention-action-count {
  background: var(--amber-soft);
  color: #ffe4af;
}

.attention-action.tone-danger {
  border-color: rgba(240, 107, 127, 0.22);
}

.attention-action.tone-danger .attention-action-count {
  background: var(--red-soft);
  color: #ffc0ca;
}

.attention-action.tone-info {
  border-color: rgba(88, 214, 244, 0.18);
}

.attention-action.tone-info .attention-action-count {
  background: var(--cyan-soft);
  color: #b4f3ff;
}

.attention-action-count {
  flex-shrink: 0;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.table-shell {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(15, 26, 49, 0.82), rgba(9, 17, 33, 0.78)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.table-scroll-note {
  display: none;
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

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

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  color: var(--text-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody th[scope="row"] {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.72fr);
  gap: 22px;
}

.builder-progress-panel {
  margin-bottom: 22px;
  display: grid;
  gap: 18px;
  border-color: rgba(88, 214, 244, 0.12);
  background:
    linear-gradient(180deg, rgba(13, 25, 47, 0.94), rgba(9, 17, 34, 0.94)),
    rgba(255, 255, 255, 0.03);
}

.builder-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.builder-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.builder-progress-step,
.builder-stage-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
}

.builder-progress-step {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.builder-progress-step-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.builder-progress-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-progress-step.is-active,
.builder-stage-card.stage-active {
  border-color: rgba(88, 214, 244, 0.24);
  background: linear-gradient(180deg, rgba(88, 214, 244, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(88, 214, 244, 0.08);
}

.builder-progress-step.is-complete,
.builder-stage-card.stage-complete {
  border-color: rgba(47, 214, 159, 0.18);
  background: linear-gradient(180deg, rgba(47, 214, 159, 0.06), rgba(255, 255, 255, 0.03));
}

.builder-progress-step.is-upcoming,
.builder-stage-card.stage-upcoming {
  opacity: 0.92;
}

.builder-stage-panel {
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.brief-type-selector-panel {
  margin-bottom: 22px;
  padding: 0;
  overflow: hidden;
}

.brief-builder-context {
  display: grid;
  gap: 18px;
  margin-bottom: 10px;
}

.builder-step-block {
  display: grid;
  gap: 16px;
}

.builder-stage-card {
  padding: 18px;
}

.builder-step-heading {
  display: grid;
  gap: 8px;
  padding-bottom: 4px;
}

.builder-form-step {
  margin-top: 18px;
}

.brief-builder-parent-grid {
  grid-template-columns: minmax(0, 1fr);
}

.brief-type-selector {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.brief-type-selector-header {
  display: grid;
  gap: 6px;
}

.brief-type-group-stack {
  display: grid;
  gap: 18px;
}

.brief-type-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.brief-type-group:nth-child(1) {
  border-color: rgba(88, 214, 244, 0.12);
}

.brief-type-group:nth-child(2) {
  border-color: rgba(239, 190, 97, 0.12);
}

.brief-type-family-head {
  display: grid;
  gap: 6px;
}

.brief-type-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.brief-type-choice {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 108px;
  padding: 15px 16px;
  text-align: left;
  color: var(--text);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brief-type-choice.active {
  background: linear-gradient(180deg, rgba(88, 214, 244, 0.1), rgba(255, 255, 255, 0.04));
  border-color: rgba(88, 214, 244, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(88, 214, 244, 0.08),
    0 0 22px rgba(88, 214, 244, 0.12);
}

.brief-type-choice-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.brief-type-choice-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.brief-type-confirmation {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(88, 214, 244, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(88, 214, 244, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brief-type-confirmation-label,
.brief-type-confirmation-copy {
  margin: 0;
}

.brief-type-confirmation-label {
  color: var(--cyan-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brief-type-confirmation-copy {
  margin-top: 4px;
  color: var(--text-muted);
  line-height: 1.55;
}

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

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

.form-section {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 14px;
}

.form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.form-section-copy {
  margin: -6px 0 0;
  color: var(--text-descriptor);
  line-height: 1.5;
}

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

.speech-button {
  background: rgba(88, 214, 244, 0.12);
  color: var(--cyan);
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(88, 214, 244, 0.18);
  font-size: 0.82rem;
}

.upload-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(88, 214, 244, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.attachment-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.checkbox-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-body);
  font-size: 0.88rem;
}

.checkbox-chip input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cyan);
}

.ai-assistant-panel {
  display: grid;
  gap: 18px;
  border-color: rgba(88, 214, 244, 0.18);
  background:
    linear-gradient(180deg, rgba(14, 28, 52, 0.94), rgba(9, 18, 35, 0.95)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(88, 214, 244, 0.05);
}

.ai-assistant-head {
  align-items: flex-start;
}

.ai-assistant-field textarea {
  min-height: 132px;
  resize: vertical;
}

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

.ai-assistant-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-assistant-status.tone-danger {
  color: #ffc0ca;
}

.ai-assistant-status.tone-info {
  color: #b8f2ff;
}

.ai-result-stack {
  display: grid;
  gap: 12px;
}

.ai-result-summary {
  padding: 16px 17px;
}

.ai-result-group {
  display: grid;
  gap: 12px;
  padding: 17px;
  border-radius: 16px;
}

.ai-result-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ai-suggestion-card {
  display: grid;
  gap: 9px;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(15, 27, 51, 0.72), rgba(9, 17, 33, 0.68)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 14px;
}

.ai-missing-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-body);
  display: grid;
  gap: 8px;
}

.builder-support-rail {
  align-content: start;
  gap: 16px;
}

.intake-shell {
  align-items: start;
}

.intake-primary-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.intake-source-panel,
.intake-guided-panel,
.intake-results-panel,
.intake-queue-panel {
  border-color: rgba(88, 214, 244, 0.14);
}

.intake-entry-panel-active {
  border-color: rgba(88, 214, 244, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(88, 214, 244, 0.08);
}

.intake-source-panel textarea {
  min-height: 220px;
  resize: vertical;
}

.intake-actions {
  margin-top: 4px;
}

.intake-support-rail {
  align-content: start;
}

.intake-results-panel {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  background:
    linear-gradient(180deg, rgba(13, 25, 47, 0.94), rgba(9, 17, 34, 0.94)),
    rgba(255, 255, 255, 0.03);
}

.intake-results-head {
  align-items: flex-start;
}

.intake-result-stack {
  gap: 14px;
}

.intake-upload-panel {
  display: grid;
  gap: 14px;
}

.intake-queue-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  background:
    linear-gradient(180deg, rgba(11, 24, 45, 0.94), rgba(8, 16, 31, 0.94)),
    rgba(255, 255, 255, 0.03);
}

.intake-queue-card {
  border-color: rgba(145, 177, 232, 0.12);
}

.intake-queue-meta {
  justify-content: flex-start;
}

.intake-raw-preview {
  white-space: pre-wrap;
}

.intake-procos-review-card {
  border-color: rgba(145, 177, 232, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 25, 49, 0.92), rgba(10, 18, 36, 0.92)),
    rgba(255, 255, 255, 0.03);
}

.intake-procos-review-card .group-card {
  border-color: rgba(145, 177, 232, 0.1);
}

.intake-approval-chain-card,
.intake-client-approval-card {
  border-color: rgba(145, 177, 232, 0.14);
}

.builder-readiness-panel {
  display: grid;
  gap: 15px;
  border-color: rgba(145, 177, 232, 0.12);
}

.builder-intake-review-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(145, 177, 232, 0.14);
  background:
    linear-gradient(180deg, rgba(12, 23, 44, 0.94), rgba(9, 17, 33, 0.94)),
    rgba(255, 255, 255, 0.02);
}

.supplier-comparison-preview-grid {
  align-items: start;
}

.builder-readiness-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.builder-readiness-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(88, 214, 244, 0.85), rgba(47, 214, 159, 0.88));
}

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

.builder-readiness-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-descriptor);
}

.mini-action strong {
  color: var(--text-heading);
}

.mini-action .list-subtext,
.saved-view-chip .list-subtext,
.partner-network-helper-card .panel-copy,
.brief-view-summary .panel-copy,
.group-card .panel-copy {
  color: var(--text-descriptor);
}

.record-card .panel-copy,
.timeline-card .panel-copy,
.operational-card .panel-copy {
  color: var(--text-body);
}

.builder-submit-card {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.builder-submit-card .panel-copy {
  margin: 6px 0 0;
}

.builder-submit-card.tone-ready {
  border-color: rgba(47, 214, 159, 0.18);
  background: linear-gradient(180deg, rgba(47, 214, 159, 0.06), rgba(255, 255, 255, 0.03));
}

.builder-submit-card.tone-partial {
  border-color: rgba(239, 190, 97, 0.2);
  background: linear-gradient(180deg, rgba(239, 190, 97, 0.06), rgba(255, 255, 255, 0.03));
}

.builder-submit-card.tone-incomplete {
  border-color: rgba(145, 177, 232, 0.12);
}

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

.handoff-summary-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.handoff-check-row {
  align-items: center;
}

.handoff-check-toggle {
  grid-template-columns: 1fr auto;
  gap: 16px;
  cursor: pointer;
}

.handoff-check-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
}

.handoff-warning-card {
  border-color: rgba(239, 190, 97, 0.22);
  background:
    linear-gradient(180deg, rgba(76, 52, 20, 0.28), rgba(44, 31, 13, 0.18)),
    rgba(239, 190, 97, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.14);
}

.builder-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 18px;
}

.side-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.side-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 17, 0.62);
}

.side-panel-card {
  position: absolute;
  top: 20px;
  right: 20px;
  width: min(540px, calc(100vw - 28px));
  height: calc(100vh - 40px);
  border-radius: 28px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, rgba(13, 25, 48, 0.98), rgba(7, 14, 28, 0.96)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.side-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.side-panel-body {
  overflow: auto;
  padding-top: 20px;
  display: grid;
  gap: 24px;
}

.handoff-action-zone {
  margin-top: 2px;
}

.handoff-action-zone .panel-copy {
  color: var(--text-descriptor);
}

.empty-state {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.subtle-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1280px) {
  .command-grid,
  .record-card-grid,
  .hero-metrics,
  .status-kpis,
  .metric-grid,
  .workflow-snapshot-grid,
  .builder-shell,
  .mini-grid-2,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: span 12;
  }

  .overview-hero,
  .page-header {
    grid-template-columns: 1fr;
  }

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

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

  .partner-network-helper-grid {
    grid-template-columns: 1fr;
  }

  .work-status-matrix {
    min-width: 780px;
  }

  .table-scroll-note,
  .matrix-scroll-note {
    display: block;
  }

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

  .saved-view-chip {
    flex-basis: calc(50% - 6px);
  }

  .header-single-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-operations {
    justify-content: flex-start;
    width: 100%;
  }

  .brand-block,
  .header-operations,
  .dashboard-toolbar {
    width: 100%;
  }

  .header-search {
    width: min(280px, 100%);
  }
}

@media (max-width: 860px) {
  body {
    padding: 12px;
  }

  .command-header {
    padding: 16px;
  }

  .auth-card,
  .panel,
  .side-panel-card {
    padding: 18px;
  }

  .brief-type-selector-panel {
    padding: 0;
  }

  .builder-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .header-operations,
  .dashboard-toolbar,
  .dashboard-toolbar-actions,
  .dashboard-filter-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 180px;
    max-width: 180px;
  }

  .header-search {
    width: min(100%, 240px);
  }

  .matrix-header {
    display: grid;
  }

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

  .partner-network-summary-row {
    grid-template-columns: 1fr;
  }

  .partner-network-guide-row {
    grid-template-columns: 1fr;
  }

  .partner-dashboard-grid,
  .partner-contact-grid {
    grid-template-columns: 1fr;
  }

  .brief-type-choice-grid {
    grid-template-columns: 1fr;
  }

  .brief-saved-view-row {
    flex-direction: column;
  }

  .saved-view-chip {
    flex-basis: 100%;
  }

  .brief-type-selector-header,
  .brief-type-choice-head,
  .brief-type-confirmation {
    display: grid;
  }

  .work-status-matrix-scroll {
    display: none;
  }

  .matrix-scroll-note {
    display: none;
  }

  .work-status-mobile-stack {
    display: grid;
    gap: 14px;
  }

  .app-notice-body {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .background-glow {
    opacity: 0.08;
    filter: blur(36px);
  }

  .tab-button:hover,
  .toggle-chip:hover,
  .nav-link:hover,
  .ghost-button:hover,
  .primary-button:hover,
  .secondary-button:hover,
  .brief-type-choice:hover,
  .work-status-card:hover,
  .kpi-card:hover,
  .mini-action:hover,
  .record-card:hover,
  .list-row:hover,
  .activity-item:hover,
  .saved-view-chip:hover,
  .operational-card:hover,
  .attention-action:hover,
  .group-card:hover,
  .info-block:hover,
  .partner-network-helper-card:hover,
  .builder-readiness-panel:hover,
  .builder-submit-card:hover,
  .ai-result-group:hover,
  .ai-suggestion-card:hover {
    transform: none;
  }
}
