/* 7IRIS_DENSITY_V1
   Shared compact layout for the operational UI. Readability stays at 13px+;
   space is recovered from padding, gaps and artificial minimum heights. */

:root {
  --density-page-x: clamp(12px, 1.55vw, 24px);
  --density-page-y: 11px;
  --density-gap: 9px;
  --density-card-pad: 11px;
}

/* Sales + shipments */
.sales-shell .sales-sidebar { padding: 11px 10px; }
.sales-shell .sidebar-header { padding-bottom: 7px; }
.sales-shell .brand-mark,
.sales-shell .collapse-button { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
.sales-shell .nav { gap: 2px; }
.sales-shell .nav-item { padding: 7px 9px; }
.sales-shell .sales-content { padding: var(--density-page-y) var(--density-page-x) 16px; gap: var(--density-gap); }
.sales-shell .sales-topbar { padding: 7px 10px; border-radius: 10px; }
.sales-shell .sales-topbar a { padding: 6px 9px; }
.sales-shell h1 { margin: 0 0 2px; font-size: clamp(25px, 2.3vw, 31px); }
.sales-shell .sales-filter-panel,
.sales-shell .sales-classification-alert { padding: 8px 10px; }
.sales-shell .sales-business-filters { gap: 5px; }
.sales-shell .sales-business-filter { padding: 6px 9px; }
.sales-shell .sales-grid,
.sales-shell .sales-kpis,
.sales-shell .sales-channels,
.sales-shell .sales-charts { gap: 8px; }
.sales-shell .sales-kpi { min-height: 88px; padding: 11px; }
.sales-shell .sales-kpi strong { font-size: clamp(22px, 2vw, 26px); }
.sales-shell .sales-panel { padding: 11px; }
.sales-shell .sales-panel h2 { margin-bottom: 7px; }
.sales-shell .sales-table-wrap { max-width: 100%; overflow-x: auto; }
.sales-shell .sales-channel { padding: 10px; gap: 6px; }
.sales-shell .sales-chart { min-height: 220px; }
.sales-shell .sales-chart canvas { max-height: 205px; }
.sales-shell .sales-bar-row { margin: 5px 0; }
.sales-shell th,
.sales-shell td { padding-top: 7px; padding-bottom: 7px; }

/* Finance */
.finance-shell .finance-sidebar { padding: 11px 10px; }
.finance-shell .sidebar-header { padding-bottom: 7px; }
.finance-shell .brand-mark,
.finance-shell .collapse-button { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
.finance-shell .nav { gap: 2px; }
.finance-shell .nav-item { padding: 7px 9px; }
.finance-shell .finance-content { padding: var(--density-page-y) var(--density-page-x) 16px; gap: var(--density-gap); }
.finance-shell .finance-topbar { padding: 7px 10px; border-radius: 10px; }
.finance-shell .finance-topbar a { padding: 6px 9px; }
.finance-shell h1 { margin: 0 0 2px; font-size: clamp(25px, 2.3vw, 31px); }
.finance-shell .finance-grid,
.finance-shell .finance-kpis,
.finance-shell .finance-charts { gap: 8px; }
.finance-shell .finance-kpi { min-height: 88px; padding: 11px; }
.finance-shell .finance-kpi strong { font-size: clamp(22px, 2vw, 26px); }
.finance-shell .finance-panel { padding: 11px; }
.finance-shell .finance-panel h2 { margin-bottom: 7px; }
.finance-shell th,
.finance-shell td { padding-top: 7px; padding-bottom: 7px; }

/* AI Council */
.council-shell .council-sidebar { padding: 11px 10px; }
.council-shell .sidebar-header { padding-bottom: 7px; }
.council-shell .brand-mark,
.council-shell .collapse-button { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
.council-shell .nav { gap: 2px; }
.council-shell .nav-item { padding: 7px 9px; }
.council-shell .council-content { padding: var(--density-page-y) var(--density-page-x) 16px; gap: var(--density-gap); }
.council-shell .council-topbar { padding: 7px 10px; border-radius: 10px; }
.council-shell h1 { margin: 0 0 2px; font-size: clamp(25px, 2.3vw, 31px); }
.council-shell .council-card,
.council-shell .council-panel,
.council-shell .council-chat { padding: 11px; }
.council-shell .council-grid,
.council-shell .council-cards { gap: 8px; }
.council-shell .response,
.council-shell .council-response { min-height: 190px; }
.council-shell .arena { min-height: 440px; }

/* Main dashboard */
.app .sidebar { padding: 11px 10px; }
.app .sidebar-header { padding-bottom: 7px; }
.app .brand-mark,
.app .collapse-button { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
.app .nav { gap: 2px; }
.app .nav-item { padding: 7px 9px; }
.app .content { padding: var(--density-page-y) var(--density-page-x) 16px; gap: var(--density-gap); }
.app .topbar { padding: 7px 10px; border-radius: 10px; }
.app .hero { padding: 13px 15px; min-height: 0; }
.app .hero h1,
.app h1 { margin-top: 0; margin-bottom: 3px; font-size: clamp(25px, 2.4vw, 33px); }
.app .cards,
.app .kpi-grid,
.app .layout-grid,
.app .quick-actions,
.app .latest-events { gap: 8px; }
.app .card,
.app .kpi-card,
.app .panel { padding: 11px; min-height: 0; }
.app .kpi-card strong,
.app .kpi-value { font-size: clamp(22px, 2vw, 27px); }
.app .panel h2,
.app .card h2 { margin-bottom: 7px; }
.app .chart,
.app .chart-wrap { min-height: 205px; height: 205px; }
.app button,
.app .button,
.app .action-button { min-height: 36px; }
.app th,
.app td { padding-top: 7px; padding-bottom: 7px; }

/* Marketplace */
body > .shell { padding: 13px; gap: 9px; }
body > .shell .top { gap: 9px; }
body > .shell h1 { margin-bottom: 2px; font-size: clamp(25px, 3vw, 34px); }
body > .shell .actions a { padding: 7px 10px; }
body > .shell .kpis,
body > .shell .types { gap: 7px; }
body > .shell .market-kpi { padding: 10px; gap: 2px; }
body > .shell .market-kpi strong { font-size: 24px; line-height: 1.05; }
body > .shell .type-card { padding: 9px 10px; }
body > .shell .panel { padding: 11px; }
body > .shell .meta,
body > .shell .filters { margin-bottom: 8px; gap: 7px; }
body > .shell input,
body > .shell select { min-height: 36px; }
body > .shell th,
body > .shell td { padding: 7px 9px; }

/* Settings */
.settings-shell { place-items: start center; min-height: 0; padding: 13px; }
.settings-shell .settings-panel { width: min(980px, 100%); gap: 9px; padding: 13px; border-radius: 13px; }
.settings-shell h1 { font-size: clamp(25px, 3vw, 31px); }
.settings-shell .settings-grid,
.settings-shell .world-state-summary,
.settings-shell .diagnostic-grid { gap: 6px; }
.settings-shell .setting-card,
.settings-shell .world-stat,
.settings-shell .diagnostic-grid > div { padding: 8px 9px; }
.settings-shell .setting-card span { margin-bottom: 2px; }
.settings-shell .setting-card strong,
.settings-shell .world-stat strong,
.settings-shell .diagnostic-grid strong { font-size: 16px; }
.settings-shell .world-state-panel,
.settings-shell .assistant-diagnostics { gap: 7px; padding: 10px; border-radius: 10px; }
.settings-shell .world-state-head h2,
.settings-shell .assistant-diagnostics h2 { font-size: 17px; }
.settings-shell .world-stale-list { gap: 4px; }
.settings-shell .world-stale-list li,
.settings-shell .diagnostic-providers li { padding: 6px 8px; }
.settings-shell .settings-actions { gap: 7px; }
.settings-shell .settings-actions a { min-height: 36px; padding: 0 11px; }

@media (max-width: 760px) {
  :root { --density-page-x: 8px; --density-page-y: 7px; --density-gap: 6px; }

  .sales-shell .sales-sidebar,
  .finance-shell .finance-sidebar,
  .council-shell .council-sidebar,
  .app .sidebar { padding: 7px 8px; }

  .sales-shell .sales-content,
  .finance-shell .finance-content,
  .council-shell .council-content,
  .app .content { padding: 7px 8px 12px; gap: 6px; }

  .sales-shell .sales-topbar,
  .finance-shell .finance-topbar,
  .council-shell .council-topbar,
  .app .topbar { padding: 6px 8px; gap: 6px; }

  .sales-shell h1,
  .finance-shell h1,
  .council-shell h1,
  .app h1 { font-size: 23px; line-height: 1.08; }

  .sales-shell .subtitle,
  .finance-shell .subtitle,
  .council-shell .subtitle,
  .app .subtitle { font-size: 13px; line-height: 1.35; }

  .sales-shell .sales-kpis,
  .finance-shell .finance-kpis,
  .app .cards,
  .app .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

  .sales-shell .sales-kpi,
  .finance-shell .finance-kpi,
  .app .card,
  .app .kpi-card { min-height: 72px; padding: 8px; }

  .sales-shell .sales-kpi strong,
  .finance-shell .finance-kpi strong,
  .app .kpi-card strong,
  .app .kpi-value { font-size: 20px; overflow-wrap: anywhere; }

  .sales-shell .sales-panel,
  .finance-shell .finance-panel,
  .council-shell .council-card,
  .council-shell .council-panel,
  .council-shell .council-chat,
  .app .panel { padding: 8px; }

  .sales-shell .sales-business-filters { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sales-shell .sales-business-filter { width: auto; padding: 6px; }
  .sales-shell .sales-chart { min-height: 180px; }
  .sales-shell .sales-chart canvas { max-height: 170px; }
  .council-shell .response,
  .council-shell .council-response { min-height: 150px; }
  .council-shell .arena { min-height: 360px; }

  .app .hero { padding: 9px 10px; }
  .app .decision-card { padding: 8px; gap: 4px; }
  .app .decision-foot { min-height: 30px; }
  .app .decision-snooze { display: none; }
  .app .decision-action { min-height: 30px; padding: 5px 8px; }
  .app .chart,
  .app .chart-wrap { min-height: 175px; height: 175px; }
  .app .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app .quick-actions a,
  .app .quick-actions button,
  .app .action-button { width: auto; min-height: 36px; padding: 7px 8px; }

  body > .shell { padding: 8px; gap: 6px; }
  body > .shell .top { gap: 6px; }
  body > .shell .actions { display: grid; grid-template-columns: repeat(2, 1fr); }
  body > .shell .actions a { padding: 7px 8px; }
  body > .shell .kpis,
  body > .shell .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  body > .shell .market-kpi { padding: 8px; }
  body > .shell .market-kpi strong { font-size: 21px; }
  body > .shell .panel { padding: 8px; }

  .settings-shell { padding: 8px; }
  .settings-shell .settings-panel { padding: 9px; gap: 7px; }
  .settings-shell .settings-grid,
  .settings-shell .world-state-summary,
  .settings-shell .diagnostic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-shell .world-state-head,
  .settings-shell .world-stale-list li,
  .settings-shell .diagnostic-providers li { flex-direction: row; align-items: center; }
  .settings-shell .settings-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-shell .settings-actions a,
  .settings-shell .world-state-head button { width: auto; }
}

@media (max-width: 420px) {
  .sales-shell .sales-kpis,
  .finance-shell .finance-kpis,
  .app .cards,
  .app .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-shell .world-state-head,
  .settings-shell .world-stale-list li,
  .settings-shell .diagnostic-providers li { align-items: flex-start; flex-direction: column; }
}

/* Shared mobile navigation for pages that do not render the dashboard shell. */
.global-mobile-header,
.global-mobile-bottom,
.global-mobile-menu-backdrop { display: none; }

@media (max-width: 760px) {
  body.has-global-mobile-nav {
    padding-top: calc(44px + env(safe-area-inset-top)) !important;
    padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important;
  }
  body.has-global-mobile-nav.global-mobile-menu-open { overflow: hidden; }
  body.has-global-mobile-nav .sales-sidebar,
  body.has-global-mobile-nav .finance-sidebar,
  body.has-global-mobile-nav .council-sidebar,
  body.has-global-mobile-nav .shell > .sidebar,
  body.has-global-mobile-nav .shell > .side { display: none !important; }
  .global-mobile-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: calc(44px + env(safe-area-inset-top));
    display: flex; align-items: end;
    padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 5px max(8px, env(safe-area-inset-left));
    border-bottom: 1px solid #e6bd63; background: rgba(255,253,247,.97);
    box-shadow: 0 8px 20px rgba(15,23,42,.10); backdrop-filter: blur(16px);
  }
  .global-mobile-menu-toggle {
    width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
    border: 1px solid #e6bd63; border-radius: 9px; background: #fff3cf;
    color: #7a4b00; font: 800 18px/1 system-ui,sans-serif; cursor: pointer;
  }
  .global-mobile-brand {
    position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    color: #334155; font: 850 14px/1 system-ui,sans-serif; letter-spacing: .02em;
  }
  .global-mobile-bottom {
    position: fixed; inset: auto 0 0; z-index: 100;
    height: calc(58px + env(safe-area-inset-bottom)); display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    padding: 4px max(5px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    border-top: 1px solid #e6bd63; background: rgba(255,253,247,.97);
    box-shadow: 0 -8px 24px rgba(15,23,42,.12); backdrop-filter: blur(16px);
  }
  .global-mobile-bottom a,
  .global-mobile-bottom button {
    min-width: 0; display: grid; place-items: center; align-content: center; gap: 1px;
    padding: 0; border: 0; background: transparent; color: #64748b;
    text-decoration: none; font: 750 10px/1.2 system-ui,sans-serif; cursor: pointer;
  }
  .global-mobile-bottom b { font-size: 17px; line-height: 1; }
  .global-mobile-bottom .active { color: #1d4ed8; }
  .global-mobile-menu-backdrop {
    position: fixed;
    inset: calc(44px + env(safe-area-inset-top)) 0 calc(58px + env(safe-area-inset-bottom));
    z-index: 110; display: block; background: rgba(15,23,42,.38); backdrop-filter: blur(2px);
  }
  .global-mobile-menu-backdrop[hidden] { display: none; }
  .global-mobile-menu {
    position: absolute; top: 7px; left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right));
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px;
    max-height: calc(100dvh - 128px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 9px; overflow-y: auto; border: 1px solid #e6bd63; border-radius: 12px;
    background: #fffdf7; box-shadow: 0 18px 48px rgba(15,23,42,.24);
  }
  .global-mobile-menu a {
    min-height: 40px; display: flex; align-items: center; padding: 0 10px;
    border: 1px solid #ead9b4; border-radius: 9px; background: #fff;
    color: #5f4b20; text-decoration: none; font: 750 12px/1.25 system-ui,sans-serif;
  }
}

/* Founder Workspace shared by Startup 1 and Startup 2. */
.founder-workspace {
  min-width: 0; max-width: 100%; display: grid; gap: 10px; margin: 10px 0 0; padding: 14px !important;
  border: 1px solid #f3d28a !important; border-radius: 14px;
  background: linear-gradient(135deg,#fffdf7,#fff4d8);
  box-shadow: 0 14px 34px rgba(184,120,24,.10);
}
.founder-workspace-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.founder-workspace-head span { color: #c78300; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.founder-workspace-head h2 { margin: 3px 0; font-size: 24px; }
.founder-workspace-head p { margin: 0; color: #6b5a37; }
.founder-workspace-head label { min-width: 170px; color: #6b5a37; font-size: 11px; }
.founder-workspace-head select { width: 100%; min-height: 36px; margin-top: 4px; padding: 0 9px; border: 1px solid #e6bd63; border-radius: 8px; background: #fff; color: #1f2937; }
.workspace-tabs { display: flex !important; gap: 5px; overflow-x: auto; }
.workspace-tabs a { flex: 0 0 auto; padding: 6px 9px !important; border: 1px solid #ead9b4 !important; border-radius: 8px !important; background: #fff !important; color: #5f4b20 !important; font-size: 12px; }
.workspace-readiness { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.workspace-readiness article { min-width: 0; padding: 10px; border: 1px solid #ead9b4; border-radius: 10px; background: #fff; }
.workspace-readiness span,.workspace-readiness small { display: block; color: #6b5a37; font-size: 11px; }
.workspace-readiness strong { display: block; margin: 2px 0; color: #1f2937; font-size: 22px; }
.workspace-readiness i { display: block; width: 100%; height: 5px; border-radius: 99px; background: linear-gradient(90deg,#d99a1c var(--value),#f5e7c5 var(--value)); }
.workspace-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.workspace-actions button { min-height: 36px; padding: 6px 8px; border: 1px solid #d99a1c; border-radius: 8px; background: #FFCC66; color: #3b2a05; font-weight: 800; cursor: pointer; }
.workspace-decision-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.workspace-decision-board div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #fff8e8; color: #6b5a37; }
.workspace-decision-board strong { color: #1f2937; }
.workspace-status { min-height: 18px; margin: 0; color: #166534; font-size: 12px; }
.module-work-control { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px 9px; padding: 6px 8px; border: 1px solid #ead9b4; border-radius: 8px; background: #fff8e8; }
.module-work-control span { color: #6b5a37; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.module-work-control select { min-height: 30px; max-width: 145px; padding: 0 7px; border: 1px solid #e6bd63; border-radius: 7px; background: #fff; color: #1f2937; font-size: 11px; }
[data-work-state="approved"] .module-work-control { border-color: #86d39b; background: #ecfdf3; }
[data-work-state="active"] .module-work-control { border-color: #93c5fd; background: #eff6ff; }
[data-work-state="decision"] .module-work-control { border-color: #f0c66a; background: #fff7e1; }
.workspace-journal { border: 1px solid #ead9b4; border-radius: 9px; background: #fff; }
.workspace-journal summary { padding: 8px 10px; color: #5f4b20; font-size: 12px; font-weight: 850; cursor: pointer; }
.workspace-journal ol { display: grid; gap: 5px; margin: 0; padding: 0 10px 9px; list-style: none; }
.workspace-journal li { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 8px; color: #334155; font-size: 11px; }
.workspace-journal time { color: #6b5a37; }
.workspace-footer { display: flex; align-items: center; gap: 10px; }
.workspace-footer button { min-height: 34px; padding: 0 10px; border: 1px solid #e6bd63; border-radius: 8px; background: #fff; color: #7a4b00; font-weight: 800; cursor: pointer; }
.workspace-labs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.workspace-labs > details { min-width: 0; border: 1px solid #ead9b4; border-radius: 10px; background: #fff; }
.workspace-labs > details > summary { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; color: #3b2a05; font-size: 12px; font-weight: 850; cursor: pointer; }
.workspace-labs > details > summary span { color: #6b5a37; font-size: 10px; font-weight: 600; }
.workspace-compare { padding: 0 9px 9px; overflow-x: auto; }
.workspace-compare-head,.workspace-compare-row { min-width: 430px; display: grid; grid-template-columns: minmax(130px,1fr) repeat(3,65px) 55px; gap: 5px; align-items: center; }
.workspace-compare-head { padding: 4px 0; color: #6b5a37; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.workspace-compare-row { padding: 4px 0; border-top: 1px solid #f5e7c5; }
.workspace-compare-row input,.workspace-compare-row select { width: 100%; min-height: 30px; padding: 0 6px; border: 1px solid #ead9b4; border-radius: 7px; background: #fffdf7; color: #1f2937; font-size: 11px; }
.workspace-compare-row strong { text-align: center; font-size: 11px; }
.workspace-compare > small { display: block; margin-top: 5px; color: #6b5a37; font-size: 10px; }
.workspace-budget { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 0 9px 8px; }
.workspace-budget label { min-width: 0; color: #6b5a37; font-size: 10px; }
.workspace-budget input { width: 100%; min-height: 31px; margin-top: 3px; padding: 0 7px; border: 1px solid #ead9b4; border-radius: 7px; background: #fffdf7; color: #1f2937; }
.workspace-budget-total { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin: 0 9px 9px; padding: 9px; border-radius: 8px; background: #fff3cf; }
.workspace-budget-total span { color: #6b5a37; font-size: 11px; }
.workspace-budget-total strong { color: #7a4b00; font-size: 18px; }
.workspace-budget-total small { grid-column: 1/-1; color: #6b5a37; font-size: 10px; }
.workspace-execution { min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid #ead9b4; border-radius: 10px; background: #fff; }
.workspace-execution > summary { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; color: #3b2a05; font-size: 12px; font-weight: 850; cursor: pointer; }
.workspace-execution > summary span { color: #6b5a37; font-size: 10px; }
.workspace-kanban { width: 100%; max-width: 100%; display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); gap: 6px; padding: 0 9px 9px; overflow-x: auto; }
.workspace-kanban > section { min-width: 150px; border: 1px solid #ead9b4; border-radius: 8px; background: #fffdf7; overflow: hidden; }
.workspace-kanban > section > header { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px; background: #fff3cf; color: #5f4b20; font-size: 10px; font-weight: 850; }
.workspace-kanban > section > div { display: grid; gap: 4px; padding: 5px; }
.workspace-kanban article { display: grid; gap: 2px; padding: 6px; border: 1px solid #f5e7c5; border-radius: 6px; background: #fff; }
.workspace-kanban article span { color: #c78300; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.workspace-kanban article strong { color: #1f2937; font-size: 10px; line-height: 1.25; }
.workspace-kanban small { padding: 5px; color: #94a3b8; font-size: 10px; }
.workspace-deferred { grid-column: 1/-1; margin: 0; color: #6b5a37; font-size: 10px; }
.workspace-milestones { padding: 0 9px 9px; }
.workspace-milestones h3 { margin: 0 0 6px; color: #3b2a05; font-size: 12px; }
.workspace-milestones > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.workspace-milestones label { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid #ead9b4; border-radius: 7px; background: #fffdf7; color: #334155; font-size: 10px; }
.workspace-milestones input { width: 16px; height: 16px; flex: 0 0 16px; accent-color: #d99a1c; }
.workspace-milestones input:checked + span { color: #64748b; text-decoration: line-through; }
.workspace-risk-center { min-width: 0; border: 1px solid #ead9b4; border-radius: 10px; background: #fff; overflow: hidden; }
.workspace-risk-center > summary { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; color: #3b2a05; font-size: 12px; font-weight: 850; cursor: pointer; }
.workspace-risk-center > summary span { color: #6b5a37; font-size: 10px; }
.workspace-risk-head { display: flex; justify-content: space-between; gap: 10px; margin: 0 9px 7px; padding: 8px 9px; border-radius: 8px; background: #fff3cf; }
.workspace-risk-head span { color: #6b5a37; font-size: 10px; }
.workspace-risk-head strong { color: #7a4b00; font-size: 11px; text-align: right; }
.workspace-risk-list { display: grid; gap: 5px; max-height: 430px; padding: 0 9px 9px; overflow-y: auto; }
.workspace-risk-list article { display: grid; grid-template-columns: minmax(180px,1.7fr) minmax(110px,1fr) 85px 105px 70px; gap: 6px; align-items: end; padding: 7px; border: 1px solid #ead9b4; border-radius: 8px; background: #fffdf7; }
.workspace-risk-list article > div:first-child { display: grid; gap: 2px; align-self: center; }
.workspace-risk-list span,.workspace-risk-list label { color: #6b5a37; font-size: 9px; }
.workspace-risk-list article > div:first-child strong { color: #1f2937; font-size: 11px; line-height: 1.25; }
.workspace-risk-list input,.workspace-risk-list select { width: 100%; min-height: 30px; margin-top: 2px; padding: 0 6px; border: 1px solid #ead9b4; border-radius: 7px; background: #fff; color: #1f2937; font-size: 10px; }
.workspace-risk-score { display: grid; gap: 2px; align-self: center; text-align: right; }
.workspace-risk-score strong { color: #b45309; font-size: 14px; }
.workspace-action-center { min-width: 0; border: 1px solid #ead9b4; border-radius: 10px; background: #fff; overflow: hidden; }
.workspace-action-center > summary { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; color: #3b2a05; font-size: 12px; font-weight: 850; cursor: pointer; }
.workspace-action-center > summary span { color: #6b5a37; font-size: 10px; }
.workspace-action-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 9px 7px; padding: 8px 9px; border-radius: 8px; background: #fff3cf; }
.workspace-action-toolbar strong { min-width: 0; overflow: hidden; color: #7a4b00; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-action-toolbar button { min-height: 30px; flex: 0 0 auto; padding: 0 8px; border: 1px solid #d99a1c; border-radius: 7px; background: #FFCC66; color: #3b2a05; font-size: 10px; font-weight: 800; cursor: pointer; }
.workspace-action-list { display: grid; gap: 5px; max-height: 470px; padding: 0 9px 9px; overflow-y: auto; }
.workspace-action-list article { display: grid; grid-template-columns: minmax(220px,1.8fr) minmax(110px,1fr) 120px 125px; gap: 6px; align-items: end; padding: 7px; border: 1px solid #ead9b4; border-radius: 8px; background: #fffdf7; }
.workspace-action-list article > div { display: grid; gap: 2px; align-self: center; }
.workspace-action-list span,.workspace-action-list label { color: #6b5a37; font-size: 9px; }
.workspace-action-list article > div strong { color: #1f2937; font-size: 11px; line-height: 1.25; }
.workspace-action-list input,.workspace-action-list select { width: 100%; min-height: 30px; margin-top: 2px; padding: 0 6px; border: 1px solid #ead9b4; border-radius: 7px; background: #fff; color: #1f2937; font-size: 10px; }
.workspace-action-list [data-action-status="done"] { background: #ecfdf3; border-color: #86d39b; }
.workspace-action-list [data-action-status="blocked"] { background: #fff1f1; border-color: #f0b9b9; }
@media (max-width: 620px) {
  .founder-workspace { gap: 7px; margin-top: 7px; padding: 9px !important; }
  .founder-workspace-head { display: grid; gap: 7px; }
  .founder-workspace-head h2 { font-size: 20px; }
  .founder-workspace-head label { min-width: 0; }
  .workspace-readiness { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .workspace-readiness article { padding: 8px; }
  .workspace-readiness strong { font-size: 19px; }
  .workspace-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
  .workspace-actions button { min-height: 34px; font-size: 11px; }
  .workspace-decision-board { grid-template-columns: 1fr; gap: 4px; }
  .module-work-control { margin: 0 8px 7px; padding: 5px 7px; }
  .workspace-journal li { grid-template-columns: 1fr; gap: 1px; }
  .workspace-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .workspace-labs { grid-template-columns: 1fr; gap: 5px; }
  .workspace-budget { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-kanban { grid-template-columns: repeat(4,155px); }
  .workspace-milestones > div { grid-template-columns: 1fr; }
  .workspace-risk-head { align-items: flex-start; flex-direction: column; }
  .workspace-risk-head strong { text-align: left; }
  .workspace-risk-list { max-height: 520px; }
  .workspace-risk-list article { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-risk-list article > div:first-child { grid-column: 1/-1; }
  .workspace-risk-score { text-align: left; }
  .workspace-action-toolbar { align-items: flex-start; flex-direction: column; }
  .workspace-action-toolbar strong { width: 100%; white-space: normal; }
  .workspace-action-list { max-height: 560px; }
  .workspace-action-list article { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-action-list article > div { grid-column: 1/-1; }
}
