/*
 * Baipu operations workspace — shared readability and interaction styles
 * Keeps the existing Baipu visual language while making working pages easier
 * to scan on desktop and substantially shorter on mobile.
 */

:root {
  --work-bg: #f0f4fb;
  --surface: #ffffff;
  --surface-soft: #f6f9fd;
  --text-strong: #0f1927;
  --text: #384457;
  --text-soft: #657b9c;
  --border: #dae4f4;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-work: 0 8px 28px rgba(18,29,45,0.055);
}

html {
  background: var(--work-bg);
}

body {
  min-width: 320px;
  background: var(--work-bg);
  color: var(--text-strong);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37,99,235,0.16);
  outline-offset: 2px;
}

.main {
  max-width: none;
  padding: 0 28px 52px;
  background:
    radial-gradient(circle at 88% 0, rgba(37,99,235,0.035), transparent 23%),
    var(--work-bg);
}

.main > header {
  position: sticky;
  top: 0;
  z-index: 16;
  min-height: 92px;
  margin: 0 -28px 22px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(209,222,242,0.86);
  background: rgba(240,244,251,0.92);
  backdrop-filter: blur(16px);
}

.main > header p {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 12px;
}

.main > header h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.main > header .red,
.main > header .actions button,
.main > header .month-actions button {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 12px;
  font-weight: 700;
}

.main > header input,
.main > header select,
.dashboard-filters select {
  min-height: 42px;
  font-size: 12px;
}

.panel,
.filter-panel,
.dashboard-view-nav,
.customer-view-toolbar {
  border-color: var(--border);
  box-shadow: var(--shadow-work);
}

.panel-title {
  min-height: 70px;
  padding: 17px 20px;
}

.panel-title h2,
.section-head h2 {
  font-size: 16px !important;
  line-height: 1.25;
}

.panel-title p,
.section-head p {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 11px !important;
  line-height: 1.55;
}

.panel-title > span,
.legend {
  font-size: 10px;
}

.view-tabs,
.scope-tabs {
  gap: 8px;
  padding-bottom: 2px;
}

.view-tabs button,
.scope-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.view-tabs button.on,
.scope-tabs button.on {
  border-color: #c7d8f1;
  background: #fff;
  box-shadow: 0 5px 16px rgba(21,34,53,0.055);
}

.filter-panel {
  padding: 12px;
  border-radius: var(--radius-lg);
}

.filter-panel .search,
.filter-panel select,
.filter-panel button {
  min-height: 42px;
  font-size: 12px;
}

.filter-panel input {
  font-size: 13px;
}

table th {
  height: 44px;
  padding: 11px 14px;
  color: #627899;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

table td {
  padding: 13px 14px;
  color: var(--text);
  font-size: 12px;
}

table td > b {
  font-size: 12px;
}

table td small {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
}

.status,
.stage,
.health,
.lifecycle,
.client-state,
.group,
.payment,
.ad-status,
.funding,
.account-role,
.account-state {
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.2;
}

.cell-add,
.account-actions button {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 10px;
}

.cockpit,
.people-hero,
.project-hero,
.publish-hero,
.ad-hero {
  margin-bottom: 16px;
  padding: 20px 22px !important;
}

.cockpit-head h2,
.people-hero h2,
.project-hero h2,
.publish-hero h2,
.ad-hero h2 {
  font-size: 23px !important;
}

.cockpit-head p,
.people-hero p,
.project-hero p,
.publish-hero p,
.ad-hero p {
  font-size: 11px !important;
}

.cockpit-kpi,
.people-kpis article,
.project-kpis article,
.publish-kpis article,
.ad-kpis article {
  min-height: 94px !important;
  padding: 15px 16px !important;
}

.cockpit-kpi small,
.people-kpis small,
.project-kpis small,
.publish-kpis small,
.ad-kpis small {
  font-size: 10px !important;
}

.cockpit-kpi b,
.people-kpis b,
.project-kpis b,
.publish-kpis b,
.ad-kpis b {
  font-size: 23px !important;
}

.cockpit-kpi span,
.project-kpis em,
.publish-kpis em,
.ad-kpis em {
  font-size: 9px !important;
}

.split-card p,
.split-card > p {
  font-size: 12px;
}

.split-card small {
  font-size: 9px;
}

.split-card b {
  font-size: 19px;
}

.dashboard-view-nav {
  min-height: 50px;
  padding: 6px;
}

.dashboard-view-nav button {
  height: 38px;
  padding-inline: 16px;
  font-size: 11px;
}

.dashboard-view-nav > span {
  font-size: 10px;
}

.owner-hero {
  padding: 22px;
}

.owner-intro h2 {
  font-size: 25px;
}

.owner-intro > p,
.owner-main-number small,
.owner-main-number em,
.owner-kpis small,
.owner-kpis span {
  font-size: 10px;
}

.owner-main-number b {
  font-size: 40px;
}

.owner-kpis b {
  font-size: 25px;
}

.capacity-grid > article {
  padding: 20px !important;
}

.capacity-head b {
  font-size: 15px !important;
}

.capacity-head small,
.capacity-value small,
.capacity-stats small,
.capacity-note span {
  font-size: 10px !important;
}

.capacity-value b {
  font-size: 27px !important;
}

.capacity-stats b,
.capacity-note b {
  font-size: 12px !important;
}

.quick-actions b {
  font-size: 12px;
}

.quick-actions small {
  font-size: 10px;
}

.customer-card-grid > article {
  min-height: 250px;
}

.customer-card-grid header b {
  font-size: 16px;
}

.customer-card-grid header small,
.customer-card-progress span,
.customer-card-progress small,
.customer-card-grid dt,
.customer-card-grid footer p,
.customer-card-grid footer em {
  font-size: 10px;
}

.customer-card-grid dd,
.customer-card-progress b {
  font-size: 13px;
}

.delivery-mode-switch {
  border-color: var(--border);
  box-shadow: var(--shadow-work);
}

.delivery-mode-switch button b {
  font-size: 12px;
}

.delivery-mode-switch button span {
  font-size: 9px;
}

.publish-ad-strip article {
  min-height: 80px;
  padding: 13px 15px;
}

.publish-ad-strip small,
.publish-ad-strip span {
  font-size: 9px;
}

.publish-ad-strip b {
  font-size: 18px;
}

.ai-suggestion b {
  font-size: 11px;
}

.ai-suggestion span,
.ai-suggestion p {
  font-size: 10px;
  line-height: 1.55;
}

.release-grid th,
.release-grid td {
  font-size: 10px;
}

.release-grid td b,
.release-grid td small {
  font-size: 10px;
}

.release-cell {
  min-width: 36px;
  min-height: 42px;
}

.analysis-hero h2 {
  font-size: 24px !important;
}

.analysis-hero p,
.analysis-total small,
.analysis-total > div,
.analysis-kpis small,
.analysis-kpis span,
.rank-head span,
.rank-value small,
.rank-stats small,
.rank-board label,
.insight-panel li > span,
.owner-ai li > span {
  font-size: 10px;
}

.analysis-kpis b {
  font-size: 25px;
}

.rank-head b {
  font-size: 15px;
}

.rank-value b {
  font-size: 27px;
}

.permission-hero h2 {
  font-size: 24px;
}

.permission-hero p,
.permission-hero article span {
  font-size: 10px;
}

.permission-hero article b {
  font-size: 12px;
}

.table-empty-row td {
  height: 220px;
  padding: 36px 24px;
  color: var(--text-soft);
  text-align: center;
}

.table-empty-row b,
.table-empty-row span {
  display: block;
}

.table-empty-row b {
  color: var(--text-strong);
  font-size: 16px;
}

.table-empty-row span {
  margin-top: 9px;
  font-size: 12px;
}

/* Desktop information architecture: summary, controls, then the work surface. */
@media (min-width: 701px) {
  .main {
    width: calc(100% - 236px);
    padding: 0 clamp(26px, 2.4vw, 42px) 56px;
  }

  .main > header {
    min-height: 88px;
    margin: 0 calc(clamp(26px, 2.4vw, 42px) * -1) 20px;
    padding: 19px clamp(26px, 2.4vw, 42px);
  }

  .main > header > div:first-child {
    min-width: 230px;
  }

  .main > header .actions,
  .main > header .month-actions,
  .main > header .header-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .cockpit,
  .people-hero,
  .project-hero,
  .publish-hero,
  .ad-hero,
  .analysis-hero,
  .permission-hero,
  .role-hero {
    min-height: 0;
    border-radius: 16px !important;
    box-shadow: 0 7px 24px rgba(12,26,48,0.045) !important;
  }

  .people-hero,
  .project-hero,
  .publish-hero,
  .ad-hero {
    display: grid !important;
    grid-template-columns: minmax(250px, 0.78fr) minmax(560px, 1.5fr) !important;
    align-items: stretch;
    gap: 24px;
  }

  .people-hero > div:first-child,
  .project-hero > div:first-child,
  .publish-hero > div:first-child,
  .ad-hero > div:first-child {
    align-self: center;
  }

  .people-kpis,
  .project-kpis,
  .publish-kpis,
  .ad-kpis {
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-self: stretch;
    gap: 8px;
  }

  .people-kpis article,
  .project-kpis article,
  .publish-kpis article,
  .ad-kpis article {
    min-width: 0;
    min-height: 86px !important;
  }

  .panel {
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(12,26,48,0.045);
  }

  .table-scroll {
    max-height: calc(100vh - 300px);
    overflow: auto;
  }

  .table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 3;
  }

  /* Customer archive: turn three floating rows into one command surface. */
  .module-customers .cockpit {
    margin-bottom: 14px;
  }

  .module-customers .cockpit-kpis {
    margin-bottom: 8px;
  }

  .module-customers .cockpit-meters {
    gap: 8px;
  }

  .module-customers .cockpit-meters .split-card {
    min-height: 88px;
    padding: 12px 14px;
  }

  .module-customers > .view-tabs,
  .module-staff > .view-tabs,
  .module-projects > .view-tabs,
  .module-publishing > .scope-switch,
  .module-publishing-day > .scope-switch,
  .module-ads > .scope-switch {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px 14px 0 0;
    background: #fff;
    box-shadow: none;
  }

  .module-customers > .view-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
  }

  .module-customers > .view-tabs button {
    flex: 0 0 auto;
    padding-inline: 10px;
    font-size: 11px;
  }

  .module-customers > .filter-panel,
  .module-staff > .filter-panel {
    margin: -1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .module-customers > .customer-view-toolbar {
    margin: -1px 0 16px;
    border: 1px solid var(--border);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 22px rgba(12,26,48,0.045);
  }

  .module-customers .customer-card-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 12px;
  }

  .module-customers .customer-card-grid > article {
    min-height: 228px;
    padding: 17px;
    border-radius: 14px;
  }

  .module-customers .panel.view-hidden + .foot,
  .module-customers .customer-card-grid + .panel.view-hidden {
    margin-top: 0;
  }

  /* Staff and project controls visually belong to the table beneath them. */
  .module-staff > .filter-panel {
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 22px rgba(12,26,48,0.045);
    margin-bottom: 14px;
  }

  .module-projects > .view-tabs {
    margin-bottom: -1px;
  }

  .module-projects > .panel {
    border-radius: 0 0 14px 14px;
  }

  .module-staff .team-board {
    gap: 10px;
    margin-bottom: 14px;
  }

  .module-staff .team-board > article {
    min-height: 0;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(12,26,48,0.04);
  }

  /* Publishing and ads: the mode switch is navigation, not another hero. */
  .module-publishing .delivery-mode-switch,
  .module-publishing-day .delivery-mode-switch,
  .module-ads .delivery-mode-switch {
    width: fit-content;
    min-width: 520px;
    margin: 0 0 12px;
    padding: 5px;
    border-radius: 12px;
    box-shadow: none;
  }

  .module-publishing .delivery-mode-switch button,
  .module-publishing-day .delivery-mode-switch button,
  .module-ads .delivery-mode-switch button {
    min-height: 44px;
    padding: 8px 20px;
  }

  .module-publishing .publish-ad-strip {
    gap: 8px;
    margin-bottom: 10px;
  }

  .module-publishing .publish-ad-strip article {
    min-height: 72px;
  }

  .module-publishing .ai-suggestion {
    min-height: 52px;
    margin-bottom: 12px;
    padding: 10px 14px;
  }

  .module-publishing > .scope-switch,
  .module-publishing-day > .scope-switch,
  .module-ads > .scope-switch {
    margin-bottom: -1px;
  }

  .module-publishing > .calendar-panel,
  .module-publishing-day > .daily-delivery-panel,
  .module-ads > .panel {
    border-radius: 0 0 14px 14px;
  }

  .module-publishing .release-grid-wrap {
    max-height: calc(100vh - 300px);
  }

  /* Analysis and permissions should read as a dashboard, not loose cards. */
  .module-analysis .analysis-kpis,
  .module-analysis .rank-board {
    gap: 10px;
  }

  .module-analysis .analysis-kpis article,
  .module-analysis .rank-board > article {
    min-width: 0;
    border-radius: 14px;
  }

  .module-accounts .permission-hero {
    gap: 18px;
    padding: 20px 22px !important;
  }

  .module-accounts .permission-hero > div:last-child {
    gap: 8px;
  }
}

@media (max-width: 1100px) {
  .main {
    padding-inline: 22px;
  }

  .main > header {
    margin-inline: -22px;
    padding-inline: 22px;
  }
}

@media (max-width: 700px) {
  :root {
    --mobile-nav-h: 76px;
  }

  body {
    font-size: 14px;
  }

  .main {
    margin-left: 0;
    padding: 0 14px calc(98px + env(safe-area-inset-bottom));
  }

  .main > header {
    position: relative;
    min-height: 76px;
    margin: 0 -14px 16px;
    padding: 16px 14px;
    background: rgba(240,244,251,0.96);
  }

  .main > header p {
    font-size: 10px;
  }

  .main > header h1 {
    font-size: 25px;
  }

  .main > header .red,
  .main > header .month-actions button {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 13px;
  }

  .side {
    height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    gap: 3px;
    overscroll-behavior-x: contain;
  }

  .side > button {
    flex-basis: 72px;
    height: 63px;
    font-size: 10px;
  }

  .side > button em {
    font-size: 18px;
  }

  .panel-title {
    min-height: 64px;
    padding: 14px 15px;
  }

  .panel-title h2,
  .section-head h2 {
    font-size: 15px !important;
  }

  .panel-title p,
  .section-head p {
    font-size: 10px !important;
  }

  .dashboard-view-nav {
    top: 0;
    margin-inline: -14px;
  }

  .dashboard-view-nav button {
    height: 36px;
    font-size: 10px;
  }

  .dashboard-view-nav > span {
    display: none;
  }

  .owner-hero {
    padding: 16px;
  }

  .owner-intro > span,
  .owner-intro > p,
  .owner-kpis span {
    display: none;
  }

  .owner-intro h2 {
    margin-top: 0;
    font-size: 22px;
  }

  .owner-main-number {
    margin: 14px 0 12px;
  }

  .owner-main-number b {
    font-size: 32px;
  }

  .owner-kpis {
    gap: 7px;
  }

  .owner-kpis article {
    min-height: 76px;
    padding: 11px 12px;
  }

  .owner-kpis b {
    font-size: 19px;
  }

  .capacity-grid > article {
    padding: 16px !important;
  }

  .capacity-grid .capacity-stats > span:nth-child(n + 5) {
    display: none;
  }

  .quick-actions {
    margin-inline: -14px;
  }

  .cockpit,
  .people-hero,
  .project-hero,
  .publish-hero,
  .ad-hero,
  .analysis-hero,
  .permission-hero,
  .role-hero {
    margin-bottom: 12px;
    padding: 15px !important;
  }

  .cockpit-head h2,
  .people-hero h2,
  .project-hero h2,
  .publish-hero h2,
  .ad-hero h2,
  .analysis-hero h2,
  .permission-hero h2,
  .role-hero h2 {
    font-size: 20px !important;
  }

  .cockpit-head p,
  .cockpit-head time,
  .cockpit-meters,
  .people-hero > div:first-child p,
  .project-hero > div:first-child p,
  .publish-hero > div:first-child p,
  .ad-hero > div:first-child p {
    display: none;
  }

  .cockpit-kpis,
  .people-kpis,
  .project-kpis,
  .publish-kpis,
  .ad-kpis {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .cockpit-kpi,
  .people-kpis article,
  .project-kpis article,
  .publish-kpis article,
  .ad-kpis article {
    min-height: 72px !important;
    padding: 11px 12px !important;
  }

  .cockpit-kpi b,
  .people-kpis b,
  .project-kpis b,
  .publish-kpis b,
  .ad-kpis b {
    font-size: 18px !important;
  }

  .cockpit-kpi span,
  .project-kpis em,
  .publish-kpis em,
  .ad-kpis em {
    display: none;
  }

  .view-tabs,
  .scope-tabs {
    margin-inline: -14px;
    padding: 2px 14px 7px;
    overflow-x: auto;
    scroll-padding-inline: 14px;
    scrollbar-width: none;
  }

  .view-tabs::-webkit-scrollbar,
  .scope-tabs::-webkit-scrollbar {
    display: none;
  }

  .view-tabs button,
  .scope-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
  }

  .filter-panel .search {
    grid-column: 1 / -1;
    min-width: 0;
  }

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

  .customer-view-toolbar {
    top: 0;
    margin-inline: -14px;
  }

  .customer-view-toolbar button {
    min-height: 38px;
    font-size: 10px;
  }

  .customer-card-grid > article {
    min-height: 0;
    padding: 15px;
  }

  .customer-card-grid header b {
    font-size: 15px;
  }

  .customer-card-grid dl {
    gap: 6px;
  }

  .delivery-mode-switch {
    position: sticky;
    top: 0;
    z-index: 24;
    margin: 0 -14px 12px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .delivery-mode-switch button {
    min-height: 54px;
  }

  .delivery-mode-switch button b {
    font-size: 11px;
  }

  .delivery-mode-switch button span {
    font-size: 8px;
  }

  .publish-ad-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px;
  }

  .publish-ad-strip article {
    min-height: 70px;
    padding: 11px 12px;
  }

  .publish-ad-strip span {
    display: none;
  }

  .publish-ad-strip b {
    font-size: 17px;
  }

  .ai-suggestion {
    align-items: flex-start;
    gap: 7px;
  }

  .ai-suggestion p {
    text-align: left;
  }

  .release-grid-wrap {
    max-height: 58vh;
  }

  .release-grid th,
  .release-grid td,
  .release-grid td b,
  .release-grid td small {
    font-size: 9px;
  }

  .analysis-hero {
    gap: 14px;
  }

  .analysis-total {
    padding: 13px;
  }

  .analysis-kpis,
  .rank-board {
    grid-template-columns: 1fr 1fr !important;
  }

  .analysis-kpis article,
  .rank-board > article {
    padding: 14px;
  }

  .analysis-kpis b,
  .rank-value b {
    font-size: 21px;
  }

  .permission-hero {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .permission-hero > div:last-child {
    grid-template-columns: 1fr;
  }

  .permission-hero article {
    padding: 11px 12px;
  }

  .table-empty-row td {
    height: 180px;
  }
}

@media (max-width: 380px) {
  .cockpit-kpis,
  .people-kpis,
  .project-kpis,
  .publish-kpis,
  .ad-kpis,
  .analysis-kpis,
  .rank-board {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact working surface: one vertical document scroll, readable data. */
:root { --text-soft: #556986; --muted: #556986; }
body { font-variant-numeric: tabular-nums; }
.main > header { min-height: 72px; padding-block: 12px; margin-bottom: 14px; }
.main > header h1 { font-size: 25px; }
.main .panel { box-shadow: 0 2px 10px #0f203a05; }
.main .panel-title { min-height: 56px; padding: 12px 16px; }
.main .panel-title p { font-size: 12px !important; }
.main .table-scroll { max-height: none !important; overflow-x: auto; }
.main table th { font-size: 13px !important; color: #556884; padding: 11px 12px !important; }
.main table td { font-size: 14px; padding: 12px !important; }
.main table td > b { font-size: 14px !important; }
.main table td small { font-size: 12px !important; color: #5c7190; }
.main table tbody tr:focus-within { background: #f3f7fc; }
.main .cell-add { font-size: 12px; min-height: 34px; }
.main .view-tabs button, .main .scope-tabs button { font-size: 13px; }
.main .client-state, .main .group { font-size: 12px; }
.main .cockpit, .main .people-hero, .main .ad-hero { padding: 16px !important; }
.main .cockpit-kpi, .main .people-kpis article, .main .ad-kpis article { min-height: 76px !important; padding: 12px !important; }
.main .cockpit-kpi small, .main .people-kpis small, .main .ad-kpis small { font-size: 12px !important; }
.main .project-hero-compact { padding: 12px 16px !important; margin-bottom: 12px; }
.project-hero-compact > div > span { display: none; }
.project-hero-compact h2 { font-size: 18px !important; margin: 0 0 5px; }
.project-hero-compact .project-kpis { display: none; }
.project-controls { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.calendar-range { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.calendar-range button { border: 1px solid var(--border); border-radius: 7px; background: #fff; min-height: 34px; padding: 4px 14px; cursor: pointer; font-size: 13px; }
.calendar-range button.on { background: #152236; color: #fff; border-color: #152236; }
.calendar-range span { color: var(--text-soft); font-size: 12px; margin-left: 8px; }
.project-controls input, .project-controls select { min-height: 42px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-size: 14px; }
.project-controls input[type="search"] { flex: 1; min-width: 200px; }
.project-type-summaries { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-bottom: 16px; }
.project-type-summaries article { border: 1px solid var(--border); border-top: 3px solid #285caa; border-radius: 12px; background: #fff; padding: 16px; }
.project-type-summaries article:last-child { border-top-color: #3069bf; }
.project-type-summaries h3 { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.project-type-summaries h3 span { font-size: 12px; color: var(--text-soft); font-weight: 400; }
.project-type-summaries dl { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }
.project-type-summaries dl > div { flex: 1; min-width: 92px; }
.project-type-summaries dt { font-size: 12px; color: var(--text-soft); }
.project-type-summaries dd { margin: 8px 0 0; font-size: 22px; font-weight: 750; white-space: nowrap; }
.main .delivery-month-heading { padding: 10px 16px; }
.main .delivery-month-heading > span, .main .delivery-month-heading p { display: none; }
.main .delivery-month-metrics article { padding: 12px 16px; }
.main .delivery-month-metrics strong { display: block; margin-top: 6px; font-size: 19px; color: #163057; }
.main .delivery-month-metrics b { font-size: 28px; }
.main .delivery-calendar-panel .release-grid-wrap { max-height: none !important; }
.main .delivery-calendar-panel .release-grid th, .main .delivery-calendar-panel .release-grid td { padding: 7px 2px !important; }
.main .delivery-calendar-panel .release-grid .sticky-client { padding-inline: 10px !important; }
.main .delivery-calendar-panel .release-grid .sticky-target { left: 170px; }
.main .delivery-calendar-panel .release-cell b { font-size: 13px !important; }
.main .delivery-calendar-panel .release-grid td small { font-size: 12px !important; }
.main .delivery-calendar-panel .release-ad-amount { font-size: 12px !important; }
.main .delivery-calendar-panel .release-grid tfoot small { color: #dbe6f6 !important; }
.modal-back, .drawer-back { overscroll-behavior: contain; }
.modal.archive-modal { max-height: 90dvh !important; overflow-y: auto; padding: 24px; }
.modal .form-grid label { font-size: 14px; }
.modal .form-grid input, .modal .form-grid select { min-height: 44px; font-size: 14px; }
.modal .form-section > p { font-size: 12px; color: #5c7190; }
.modal .modal-actions { position: sticky; bottom: -24px; padding: 14px 0; background: #fff; border-top: 1px solid var(--border); z-index: 2; }
.modal .close, .drawer .close { min-width: 36px; min-height: 36px; cursor: pointer; }
.drawer .detail span, .drawer .detail b { font-size: 14px; }
.drawer .detail h3 { font-size: 16px; }
@media (max-width: 1100px) {
  .project-type-summaries { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .main > header { min-height: 68px; }
  .main > header h1 { font-size: 22px; }
  .project-controls input, .project-controls select { min-width: 0; max-width: 100%; }
  .project-controls input[type="search"] { flex-basis: 100%; }
  .project-type-summaries dd { font-size: 21px; }
  .modal.archive-modal .form-grid { grid-template-columns: 1fr !important; }
}
