﻿@media (min-width: 1800px) {
  main {
    padding: 42px 44px 28px;
  }
  .dashboard-primary {
    grid-template-columns: 1.15fr 1fr;
  }
  .task-summary-body {
    gap: 55px;
  }
}
@media (max-width: 1350px) {
  :root {
    --sidebar-width: 228px;
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand {
    padding: 0 3px;
    gap: 8px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand small {
    font-size: 8px;
  }
  .topbar {
    padding: 0 25px;
  }
  .prototype-ribbon {
    padding: 10px 26px;
  }
  main {
    padding: 29px 26px 24px;
  }
  h1 {
    font-size: 27px;
  }
  .page-header {
    align-items: flex-start;
  }
  .task-summary-body {
    gap: 25px;
    padding: 16px 0 10px;
  }
  .status-ring {
    width: 130px;
    height: 130px;
    border-width: 11px;
  }
  .status-ring:after {
    inset: -11px;
  }
  .dashboard-primary {
    gap: 18px;
  }
  .panel {
    padding: 20px;
  }
  .dashboard-secondary {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .coordinator-card {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    padding: 23px;
  }
  .coordinator-top {
    grid-column: 1/-1;
    margin-bottom: 13px;
  }
  .coordinator-card h2 {
    grid-column: 1;
    max-width: 380px;
  }
  .coordinator-card > p {
    grid-column: 1;
    margin: 8px 0 0;
  }
  .coordinator-input {
    grid-column: 2;
    grid-row: 2/4;
    align-self: center;
  }
  .coordinator-card > small {
    grid-column: 2;
    margin-top: 5px;
  }
  .department-shortcut {
    padding: 16px 12px;
  }
  .department-shortcut strong {
    font-size: 11px;
  }
  .department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-summary {
    padding: 17px;
  }
  .team-summary > div.team-summary-primary {
    padding-right: 14px;
    margin-right: 10px;
  }
  .team-summary span {
    font-size: 10px;
  }
  .team-summary-primary .icon {
    display: none;
  }
  .kanban {
    gap: 11px;
  }
  .kanban-column {
    padding: 14px;
  }
  .column-name {
    font-size: 11px;
    gap: 6px;
  }
  .investment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .conversation-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .conversation-body {
    padding: 45px 25px 35px;
  }
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .global-search kbd {
    margin-left: 4px;
  }
}
@media (max-width: 1100px) {
  .topbar-breadcrumb > span,
  .topbar-breadcrumb > .icon {
    display: none;
  }
  .global-search span {
    display: none;
  }
  .global-search kbd {
    margin-left: 10px;
  }
  .dashboard-primary {
    grid-template-columns: 1fr;
  }
  .task-summary-body {
    justify-content: center;
    gap: 50px;
  }
  .status-breakdown {
    max-width: 340px;
  }
  .task-summary-body .status-ring {
    width: 145px;
    height: 145px;
  }
  .department-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-header {
    flex-direction: column;
    gap: 20px;
  }
  .department-hero {
    flex-wrap: wrap;
  }
  .department-hero > .tag-row {
    margin-left: 0;
    width: 100%;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    flex-direction: column;
    gap: 12px;
  }
  .search-field {
    width: 100%;
    max-width: none;
  }
  .kanban {
    grid-template-columns: repeat(4, 230px);
    overflow: auto;
    padding-bottom: 12px;
  }
  .activity-layout,
  .conversation-layout {
    grid-template-columns: 1fr;
  }
  .coordinator-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .office-principles {
    grid-template-columns: 1fr;
  }
  .team-summary {
    flex-wrap: wrap;
    row-gap: 20px;
  }
  .team-summary > div.team-summary-primary {
    flex-basis: 100%;
    justify-content: flex-start;
    border: 0;
    padding: 0;
    margin: 0;
  }
  .team-summary-primary span {
    max-width: none;
  }
  .team-summary-primary .icon {
    display: block;
  }
  .file-type-filters > span {
    margin-left: 0;
    flex-basis: 100%;
    margin-top: 6px;
  }
  .approval-principle {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .approval-principle > div {
    flex: 1;
  }
  .approval-principle > .badge {
    margin-left: 47px;
  }
  .department-card > p {
    min-height: 66px;
  }
  .pipeline-summary {
    gap: 22px;
  }
  .prototype-ribbon {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .prototype-ribbon > span:last-child {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  :root {
    --sidebar-width: 0px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 63px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 15;
    background: var(--bg);
  }
  .mobile-nav-toggle {
    display: inline-grid !important;
  }
  .topbar-breadcrumb {
    gap: 8px;
  }
  .topbar-tools {
    gap: 5px;
  }
  .topbar-divider {
    margin: 0 6px;
  }
  .topbar-profile {
    display: none;
  }
  .prototype-ribbon {
    padding: 10px 22px;
  }
  .prototype-ribbon > span:last-child {
    display: none;
  }
  main {
    padding: 27px 22px 22px;
  }
  .page-header {
    margin-bottom: 24px;
  }
  .department-shortcuts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .department-shortcut {
    padding: 15px 11px;
  }
  .department-shortcut strong {
    font-size: 11px;
    line-height: 1.5;
  }
  .task-summary-body {
    gap: 55px;
  }
  .department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kanban {
    grid-template-columns: repeat(4, 240px);
  }
  .team-summary > div.team-summary-primary {
    flex-basis: auto;
    flex: 1.4;
    border-right: 1px solid var(--line);
    padding-right: 14px;
    margin-right: 10px;
  }
  .team-summary-primary .icon {
    display: none;
  }
  .team-summary-primary span {
    max-width: 65px;
  }
  .tabs {
    gap: 20px;
  }
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-footer {
    font-size: 10px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 26px;
    letter-spacing: -0.8px;
  }
  .topbar {
    padding: 0 13px;
  }
  .topbar-breadcrumb strong {
    font-size: 11px;
  }
  .global-search kbd {
    display: none;
  }
  .global-search {
    padding: 7px 4px;
  }
  .topbar-divider {
    margin: 0 2px;
  }
  .topbar-tools .icon-button {
    width: 30px;
  }
  .prototype-ribbon {
    padding: 9px 18px;
  }
  main {
    padding: 25px 17px 20px;
  }
  .page-header {
    gap: 18px;
  }
  .page-description {
    font-size: 12px;
  }
  .page-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .button {
    min-height: 40px;
    font-size: 12px;
  }
  .welcome-strip {
    padding: 17px;
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .welcome-strip h2 {
    font-size: 16px;
  }
  .welcome-strip p {
    font-size: 11px;
  }
  .date-label {
    padding-left: 54px;
    font-size: 10px;
  }
  .kpi-grid {
    gap: 11px;
    margin-bottom: 18px;
  }
  .kpi {
    padding: 15px;
  }
  .kpi-top {
    align-items: flex-start;
  }
  .kpi-top > span:first-child {
    font-size: 11px;
    line-height: 1.6;
    max-width: 100px;
  }
  .kpi-top .icon-tile {
    width: 27px;
    height: 27px;
    border-radius: 7px;
  }
  .kpi-top .icon {
    width: 15px;
    height: 15px;
  }
  .kpi-value {
    font-size: 30px;
    margin: 10px 0 8px;
  }
  .kpi-foot {
    font-size: 10px;
    line-height: 1.7;
  }
  .panel {
    padding: 19px;
  }
  .panel-heading {
    gap: 12px;
    margin-bottom: 17px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-heading p {
    font-size: 11px;
    line-height: 1.65;
  }
  .panel-heading .text-link {
    font-size: 10px;
  }
  .text-link .icon {
    width: 12px;
  }
  .task-summary-body {
    gap: 22px;
    padding: 18px 0 9px;
  }
  .task-summary-body .status-ring {
    width: 108px;
    height: 108px;
    border-width: 9px;
  }
  .status-ring:after {
    inset: -9px;
  }
  .status-ring strong {
    font-size: 25px;
  }
  .status-ring span {
    font-size: 8px;
    max-width: 75px;
    line-height: 1.6;
  }
  .status-breakdown > div {
    font-size: 10px;
    gap: 12px;
    padding: 8px 0;
  }
  .status-breakdown > div span {
    gap: 7px;
  }
  .status-breakdown p {
    font-size: 9px;
    line-height: 1.7;
  }
  .department-section {
    margin-top: 26px;
  }
  .department-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .department-shortcut {
    padding: 17px;
  }
  .department-shortcut strong {
    font-size: 12px;
  }
  .department-shortcut:last-child {
    grid-column: 1/-1;
  }
  .department-shortcut:last-child {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0 13px;
    align-items: center;
  }
  .department-shortcut:last-child strong {
    margin: 0;
  }
  .department-shortcut:last-child > .icon-tile {
    grid-row: 1/3;
  }
  .department-shortcut:last-child > span:last-child {
    grid-column: 2;
    margin-top: 6px;
  }
  .dashboard-secondary {
    grid-template-columns: 1fr;
  }
  .coordinator-card {
    display: block;
    padding: 21px;
  }
  .coordinator-top {
    margin-bottom: 20px;
  }
  .coordinator-card h2 {
    font-size: 22px;
  }
  .coordinator-card > p {
    margin: 12px 0 22px;
  }
  .coordinator-card > small {
    margin-top: 12px;
  }
  .dashboard-footer-note {
    align-items: flex-start;
    line-height: 1.8;
    font-size: 10px;
  }
  .dashboard-footer-note .icon {
    margin-top: 2px;
  }
  .main-footer {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    line-height: 1.6;
  }
  .department-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .department-card {
    padding: 23px;
  }
  .department-card > p {
    min-height: 0;
  }
  .department-card h2 {
    font-size: 20px;
  }
  .department-hero {
    gap: 15px;
    padding: 20px;
  }
  .department-hero > div:not(.tag-row) > strong {
    font-size: 15px;
  }
  .department-hero p {
    font-size: 11px;
  }
  .icon-tile-xl {
    width: 49px;
    height: 49px;
    border-radius: 13px;
  }
  .department-hero > .tag-row {
    margin-top: 5px;
  }
  .investment-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 17px;
  }
  .agent-grid {
    grid-template-columns: 1fr;
  }
  .team-summary {
    padding: 18px 15px;
    row-gap: 17px;
    column-gap: 0;
  }
  .team-summary > div.team-summary-primary {
    flex-basis: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    gap: 11px;
  }
  .team-summary-primary .icon {
    display: block;
  }
  .team-summary-primary span {
    max-width: none;
    font-size: 12px;
  }
  .team-summary > div:not(.team-summary-primary) {
    flex-basis: 33.333%;
    align-items: flex-start;
    margin-bottom: 3px;
  }
  .team-summary > div:not(.team-summary-primary) strong {
    font-size: 20px;
  }
  .team-summary > div:not(.team-summary-primary) span {
    font-size: 10px;
  }
  .filter-controls {
    gap: 8px;
  }
  .filter-controls label {
    flex: 1;
    min-width: 140px;
  }
  .filter-controls select {
    font-size: 11px;
    width: 100%;
  }
  .view-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .segmented {
    width: 100%;
  }
  .segmented a {
    flex: 1;
    justify-content: center;
    padding: 8px;
    font-size: 11px;
  }
  .kanban {
    grid-template-columns: repeat(4, 260px);
    gap: 14px;
  }
  .kanban-column {
    min-height: 390px;
    padding: 18px;
  }
  .column-name {
    font-size: 12px;
  }
  .calendar-panel {
    padding: 14px;
  }
  .calendar-day {
    height: 57px;
    padding: 5px;
    font-size: 10px;
  }
  .calendar-weekday {
    font-size: 10px;
  }
  .calendar-toolbar h2 {
    font-size: 14px;
  }
  .calendar-toolbar .button {
    padding: 5px 8px;
    min-height: 32px;
    font-size: 11px;
  }
  .calendar-toolbar .icon-button {
    width: 26px;
  }
  .calendar-note {
    font-size: 11px;
    line-height: 1.75;
    margin-bottom: 16px;
  }
  .pipeline-summary {
    gap: 16px;
    flex-direction: column;
  }
  .pipeline-brand-filter {
    gap: 8px;
  }
  .chip {
    font-size: 11px;
    padding: 8px 10px;
  }
  .approval-principle {
    padding: 19px;
    gap: 13px;
  }
  .approval-principle > .icon {
    width: 24px;
    height: 24px;
  }
  .approval-principle > div {
    flex-basis: calc(100% - 40px);
  }
  .approval-principle strong {
    font-size: 13px;
  }
  .approval-principle p {
    font-size: 11px;
  }
  .approval-principle > .badge {
    margin-left: 37px;
  }
  .activity-filters {
    flex-direction: column;
    gap: 12px;
  }
  .coordinator-context {
    grid-template-columns: 1fr;
  }
  .conversation > header {
    padding: 18px 15px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .conversation > header .badge {
    margin-left: 45px;
  }
  .conversation > header h2 {
    font-size: 13px;
  }
  .conversation-body {
    padding: 38px 20px 28px;
  }
  .conversation-body h2 {
    font-size: 22px;
  }
  .conversation-body > p {
    font-size: 12px;
  }
  .conversation-compose {
    margin: 0 15px 17px;
    padding: 12px;
  }
  .conversation-compose > div {
    align-items: flex-start;
  }
  .conversation-compose > div > span {
    max-width: 150px;
    font-size: 9px;
    line-height: 1.7;
  }
  .conversation-compose textarea {
    font-size: 12px;
  }
  .office-prototype-bar {
    flex-wrap: wrap;
    padding: 15px;
  }
  .office-prototype-bar > span:first-child {
    font-size: 10px;
  }
  .office-prototype-overlay {
    inset: 100px 20px 0;
  }
  .office-prototype-overlay h2 {
    font-size: 23px;
  }
  .office-prototype-overlay p {
    font-size: 12px;
  }
  .office-prototype-overlay small {
    font-size: 10px;
  }
  .office-prototype-stage > img {
    height: 510px;
    object-position: 35% 15%;
  }
  .office-prototype-overlay .button {
    white-space: normal;
    font-size: 11px;
  }
  .settings-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .theme-options {
    gap: 12px;
  }
  .theme-option {
    padding: 10px;
    min-width: 0;
    flex: 1;
  }
  .theme-option small {
    font-size: 10px;
  }
  .theme-mini {
    height: 75px;
  }
  .permission-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .integration-card p {
    min-height: 0;
  }
  .swatch {
    width: 74px;
    padding: 12px 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-heading {
    padding: 24px 21px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
  .dialog-content {
    padding: 24px 21px;
  }
  .detail-dialog {
    max-width: 100vw;
    width: 100vw;
  }
  .dialog-content .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-list > div {
    font-size: 11px;
  }
  .agent-detail-summary {
    gap: 14px;
  }
  .dialog-content .inline-actions .button {
    white-space: normal;
  }
  .command-dialog {
    margin-top: 7vh;
  }
  .command-result {
    font-size: 12px;
  }
  .command-result small {
    display: none;
  }
  .command-caption {
    font-size: 10px;
  }
  .mobile-menu .nav-link {
    min-height: 42px;
  }
  .mobile-menu .nav-section-second {
    margin-top: 17px;
  }
}
/* Readability floor for operational labels. Compact uppercase captions are decorative only. */
.kpi-foot,
.panel-heading p,
.status-breakdown > div,
.text-link,
.department-shortcut > span:last-child,
.department-card-bottom > span,
.agent-card-status,
.agent-card-focus > p,
.agent-list-item small,
.supporting-note,
.file-type-filters > span,
.calendar-note,
.pipeline-summary > span,
.context-item small,
.settings-row p {
  font-size: 12px;
}
.badge {
  font-size: 11px;
}
.agent-card-focus > span,
.eyebrow,
.nav-section {
  font-size: 11px;
}
.sidebar-coordinator strong {
  font-size: 12px;
}
.sidebar-coordinator small {
  font-size: 11px;
}
.status-breakdown p,
.dashboard-footer-note,
.coordinator-card > small,
.panel-note {
  font-size: 11px;
}
.icon-button {
  min-width: 36px;
  min-height: 36px;
}
.mobile-nav-toggle {
  min-width: 40px;
  min-height: 40px;
}
@media (max-width: 560px) {
  .kpi-top > span:first-child,
  .kpi-foot,
  .status-breakdown > div,
  .status-breakdown p,
  .panel-heading p,
  .department-shortcut > span:last-child,
  .coordinator-card > small,
  .team-summary > div:not(.team-summary-primary) span {
    font-size: 12px;
  }
  .task-summary-body {
    gap: 18px;
  }
  .status-ring span {
    font-size: 10px;
  }
  .status-breakdown > div span {
    gap: 5px;
  }
  .status-breakdown .dot {
    width: 5px;
    height: 5px;
  }
  .badge {
    font-size: 10px;
  }
  .topbar-breadcrumb strong {
    font-size: 12px;
  }
  .filter-controls label {
    min-width: 100%;
  }
  .filter-controls select {
    font-size: 12px;
  }
  .sidebar-prototype {
    font-size: 11px;
  }
}
.executive-details {
  margin-top: 24px;
}
.executive-details > summary {
  display: flex;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.executive-details > summary::-webkit-details-marker {
  display: none;
}
.executive-details > summary > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 550;
}
.executive-details > summary > span > .icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
}
.executive-details > summary > small {
  margin-left: auto;
  color: var(--faint);
  font-size: 12px;
}
.executive-details > summary > .icon {
  color: var(--faint);
  width: 16px;
  height: 16px;
}
.executive-details[open] > summary > .icon {
  transform: rotate(90deg);
}
.executive-detailed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 24px;
}
.executive-detailed-grid > section {
  min-width: 0;
}
.executive-detailed-grid .panel-heading {
  min-height: 52px;
}
.executive-detailed-grid > section:not(:first-child) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.operating-states > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 9px 0;
  gap: 15px;
}
.operating-states span {
  color: var(--muted);
}
.operating-states strong {
  font-size: 11px;
  color: var(--faint);
  font-weight: 400;
}
.executive-consumption {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 25px;
}
.consumption-list {
  display: grid;
  grid-template-columns: 1fr;
}
.consumption-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 90px;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.consumption-list > div > span:not(:first-child) {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
}
.consumption-list strong {
  color: var(--text);
  font-weight: 400;
}
@media (max-width: 1100px) {
  .executive-detailed-grid {
    grid-template-columns: 1fr;
  }
  .executive-detailed-grid > section:not(:first-child) {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .executive-details > summary {
    flex-wrap: wrap;
    gap: 10px;
  }
  .executive-details > summary > small {
    flex-basis: 100%;
    order: 3;
    margin-left: 28px;
    font-size: 11px;
  }
  .executive-details > summary > .icon {
    margin-left: auto;
  }
  .consumption-list > div {
    grid-template-columns: 1fr 67px 56px;
    gap: 10px;
  }
  .consumption-list > div .department-label {
    font-size: 11px;
  }
  .consumption-list > div > span:not(:first-child) {
    font-size: 10px;
    gap: 5px;
  }
}
