/* Integrated flagship workspace. Load after the existing feature styles. */
:root {
  --bg: #f5f5f2;
  --paper: #ffffff;
  --panel: #ffffff;
  --ink: #202823;
  --muted: #657067;
  --line: #dfe4df;
  --green: #244b3b;
  --sage: #edf2ee;
  --orange: #a14938;
  --peach: #fbf0eb;
  --radius: 14px;
  --shell-sidebar: 208px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

#app, .workspace, .main, .main > section, .content-grid > *, .report-grid > *,
.integrated-growth, #growth-content {
  min-width: 0;
}

.sidebar {
  width: var(--shell-sidebar);
  padding: 28px 18px 18px;
  background: #fcfcfa;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar .brand {
  gap: 10px;
  margin-bottom: 32px;
}

.brand-icon {
  width: 34px;
  height: 38px;
  border-radius: 9px;
  background: var(--green);
}

.brand-name {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.55px;
  white-space: nowrap;
}

.brand-name span {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #68736b;
}

.store-name {
  padding: 0 10px 23px;
}

.store-name .eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
}

.store-name strong {
  font-size: 13px;
}

.sidebar-section-label {
  margin: 23px 12px 8px;
  color: #778077;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;
}

.sidebar-section-label:first-of-type {
  margin-top: 0;
}

.nav {
  gap: 5px;
}

.nav button {
  min-height: 46px;
  padding: 11px 13px;
  gap: 12px;
  border-radius: 10px;
  color: #4e5b51;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
}

.nav button svg {
  width: 19px;
  height: 19px;
}

.nav button.active {
  color: #1f4534;
  background: #e7eee8;
  font-weight: 750;
}

.nav button:hover {
  background: #eff3ef;
}

.nav button.active:hover {
  background: #e7eee8;
}

.nav .count {
  font-size: 11px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}

.sidebar-bottom {
  padding-top: 20px;
}

.sidebar .profile {
  padding: 16px 8px;
  border-top: 1px solid var(--line);
  gap: 9px;
}

.profile strong {
  font-size: 12px;
}

.profile small, .sidebar-note {
  font-size: 11px;
  color: #6f786f;
}

.sidebar-note {
  padding: 14px 8px 0;
  line-height: 1.8;
}

.workspace {
  margin-left: var(--shell-sidebar);
}

.topbar {
  min-height: 78px;
  height: auto;
  padding: 16px 30px;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.breadcrumb {
  min-width: 0;
  gap: 9px;
  font-size: 12px;
  color: #657067;
  flex-wrap: wrap;
}

.breadcrumb strong {
  color: #263b2e;
  font-weight: 700;
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

.top-utility-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}

.top-utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #58645b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.top-utility-button svg {
  width: 16px;
  height: 16px;
}

.top-utility-button:hover {
  background: #f1f4f1;
}

.top-utility-button.active, .top-utility-button[aria-current="page"] {
  background: #eaf0eb;
  color: #234a39;
  border-color: #d8e2da;
  font-weight: 750;
}

.top-utility-button .count, .top-utility-button .utility-count {
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f3e8df;
  color: #8e4d2d;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.header-actions {
  gap: 9px;
  flex-shrink: 0;
}

.header-actions .preview-label {
  display: none;
}

.header-actions .avatar {
  width: 36px;
  height: 36px;
  min-height: 36px;
  background: #eeeee8;
  color: #49534a;
  font-size: 11px;
  font-weight: 700;
}

.icon-btn {
  width: 40px;
  min-height: 40px;
  color: #4c5d50;
}

.main {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 30px 38px;
}

.page-heading, .integrated-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.page-heading h1, .integrated-page-heading h1 {
  font-size: 29px;
  line-height: 1.35;
  letter-spacing: -1px;
  font-weight: 750;
}

.page-heading p, .integrated-page-heading p {
  color: #626f64;
  font-size: 13px;
  line-height: 1.75;
  margin: 8px 0 0;
  max-width: 680px;
}

.page-heading .eyebrow, .integrated-page-heading .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
  color: #798078;
  letter-spacing: 1.6px;
}

.page-heading > .btn, .integrated-page-heading > .btn {
  flex-shrink: 0;
  margin-top: 4px;
}

.summary {
  padding: 21px 23px;
  margin-bottom: 21px;
  gap: 22px;
  border: 1px solid #dbe4dc;
  border-radius: 14px;
  background: #edf2ee;
  align-items: center;
}

.summary-intro h2 {
  color: #2c4835;
  font-size: 17px;
  font-weight: 750;
}

.summary-intro p {
  color: #5f7062;
  font-size: 12px;
}

.summary-stat {
  border-left-color: #d3ded4;
  padding-left: 22px;
  min-width: 0;
}

.summary-stat span {
  color: #5d6c5f;
  font-size: 12px;
  line-height: 1.65;
}

.summary-stat strong {
  color: #253a2c;
  font-size: 29px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.8px;
  font-variant-numeric: tabular-nums;
}

.summary-stat strong small {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0;
}

.summary-stat em {
  color: #647267;
  font-size: 11px;
  line-height: 1.65;
}

.summary-stat.priority strong {
  color: #a24c3b;
}

.daily-focus-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 20px 22px;
  margin: 0 0 20px;
  background: #eaf0eb;
  border: 1px solid #d8e2da;
  border-radius: 14px;
}

.daily-focus-strip > div {
  min-width: 0;
}

.daily-focus-strip strong {
  display: block;
  color: #284b36;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.daily-focus-strip small, .daily-focus-strip p {
  display: block;
  color: #5e7062;
  font-size: 12px;
  line-height: 1.75;
}

.daily-focus-strip .btn {
  background: #fff;
  border-color: #cad8cc;
}

.daily-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 27px;
}

.daily-launch-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-width: 0;
  min-height: 115px;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #263b2d;
}

.daily-launch-card > svg:first-child {
  width: 23px;
  height: 23px;
  color: #355a41;
}

.daily-launch-card > svg:last-child:not(:first-child) {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #718176;
}

.daily-launch-card > span, .daily-launch-card > div {
  min-width: 0;
}

.daily-launch-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 750;
}

.daily-launch-card small {
  display: block;
  margin-top: 5px;
  color: #637165;
  font-size: 12px;
  line-height: 1.65;
}

.daily-launch-card:hover {
  border-color: #bdcdbf;
  background: #fafcf9;
}

.panel {
  padding: 21px;
  border-radius: 14px;
  border-color: var(--line);
  background: #fff;
  margin-bottom: 18px;
}

.panel h2, .section-title h2 {
  font-size: 16px;
  font-weight: 750;
  color: #2b3d2f;
  line-height: 1.6;
}

.panel .panel-head {
  gap: 10px;
  margin-bottom: 16px;
}

.panel .panel-head h2 svg {
  color: #5d7862;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
}

.filters {
  gap: 9px;
  align-items: stretch;
}

.filters > select, .search, .field input, .field select, .field textarea,
.growth-field input, .growth-field select, .growth-field textarea,
.growth-filters input, .growth-filters select {
  font-size: 16px;
  line-height: 1.5;
  border-color: #cfd8cf;
  background: #fff;
  min-height: 44px;
}

.field input, .field select, .field textarea {
  padding: 11px 12px;
}

.field > label, .field > span {
  color: #2c3e30;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
}

.field > small, .modal-footer small {
  font-size: 12px;
  line-height: 1.75;
  color: #69766a;
}

.field textarea, .growth-field textarea {
  line-height: 1.8;
}

.main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.main select, .main textarea,
dialog input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
dialog select, dialog textarea {
  font-size: 16px;
  min-width: 0;
}

.search {
  max-width: none;
}

.search input {
  min-width: 0;
  font-size: 14px;
}

.tabs {
  gap: 5px;
}

.tab {
  min-height: 40px;
  padding: 8px 12px;
  color: #55675b;
  font-size: 12px;
  line-height: 1.5;
}

.tab.active {
  color: #224e36;
  font-weight: 750;
  background: #e5eee6;
}

.btn {
  font-size: 13px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 650;
  line-height: 1.5;
}

.btn.primary {
  background: #244b3b;
  border-color: #244b3b;
  color: #fff;
}

.btn.primary:hover {
  background: #1b3e2f;
}

.btn:disabled, button:disabled {
  cursor: default;
}

.task-meta, .task-end, .bottom-note, .timeline-content small {
  font-size: 11px;
  color: #637065;
  line-height: 1.7;
}

.task-main strong, .timeline-content strong {
  color: #26382c;
  line-height: 1.6;
}

.priority-guide {
  margin-bottom: 19px;
}

.staff-presence {
  padding: 12px 14px;
  background: #fafbf9;
  border-color: var(--line);
  border-radius: 11px;
}

.notice-card {
  background: #f6f5ef;
  border-color: #e3e1d7;
}

.notice-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.notice-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #5c685e;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice-footer {
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #667064;
}

.notice-filter {
  padding: 0 0 18px;
  margin-bottom: 0;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  margin: 0 0 15px;
}

.notice.read {
  opacity: 1;
  background: #fbfcfa;
}

.notice h3 {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 750;
  margin: 15px 0 10px;
  color: #273b2b;
}

.notice p {
  font-size: 14px;
  line-height: 1.9;
  color: #4f5e53;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice-top, .notice-bottom {
  flex-wrap: wrap;
  gap: 10px;
}

.notice-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #edf0eb;
  font-size: 12px;
  color: #667064;
}

.notice.read .read-btn {
  background: #f0f5ef;
  color: #355640;
  border-color: #dbe5d9;
}

.integrated-notice-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.integrated-notice-summary > div, .integrated-notice-summary > span {
  padding: 17px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  color: #626f65;
  font-size: 12px;
  line-height: 1.7;
}

.integrated-notice-summary span, .integrated-notice-summary small {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: #626f65;
}

.integrated-notice-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #2c4835;
}

.handover-item {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.handover-item small {
  color: #657468;
  font-size: 11px;
  line-height: 1.7;
}

.subtle-box {
  font-size: 12px;
  line-height: 1.8;
  color: #627366;
  background: #edf2ed;
  border-color: #dce6dc;
  border-radius: 11px;
}

.integrated-growth {
  width: 100%;
  padding: 0;
  margin: 0;
}

.integrated-growth #growth-app {
  width: 100%;
  padding: 0;
  margin: 0;
  max-height: none;
  overflow: visible;
}

.integrated-growth .growth-tabs {
  display: none;
}

.integrated-growth .growth-filters {
  padding: 16px 18px;
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: end;
  gap: 14px;
}

.integrated-growth .growth-filters label {
  font-size: 12px;
  font-weight: 650;
  color: #4e6355;
  gap: 7px;
}

.integrated-growth .growth-filters .btn {
  align-self: end;
}

.integrated-growth #growth-content {
  padding: 0;
}

.report-mode-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 7px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.report-mode-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #617064;
  border-radius: 8px;
}

.report-mode-nav button.active, .report-mode-nav button[aria-pressed="true"] {
  color: #264c38;
  background: #eaf0e9;
  font-weight: 750;
}

.report-mode-nav button:hover {
  background: #f1f4f0;
}

.report-mode-nav svg {
  width: 16px;
  height: 16px;
}

.report-grid {
  gap: 22px;
}

.records-scroll {
  max-width: 100%;
  overscroll-behavior-x: contain;
}

.records-scroll th, .records-scroll td {
  font-variant-numeric: tabular-nums;
}

.empty {
  color: #67776a;
  font-size: 13px;
  line-height: 1.8;
  padding: 32px 20px;
}

.empty strong {
  color: #3f5846;
  font-size: 15px;
}

.preview-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #69776b;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.footer-actions button {
  color: #67756a;
  font-size: 11px;
  min-height: 36px;
}

dialog {
  background: #fff;
  border: 1px solid #d8e1d8;
  border-radius: 16px;
  max-height: 90dvh;
}

dialog::backdrop {
  background: #23372b77;
  backdrop-filter: none;
}

.modal-head {
  padding: 24px 25px 12px;
}

.modal-head h2 {
  font-size: 20px;
  color: #2b4231;
  font-weight: 750;
  line-height: 1.5;
}

.modal-content {
  padding: 12px 25px 25px;
}

.modal-content > p {
  color: #657267;
  font-size: 13px;
  line-height: 1.8;
}

.mobile-nav {
  display: none;
}

.workspace *, .sidebar *, .mobile-nav *, .top-utility-nav * {
  animation: none !important;
}

.workspace button, .sidebar button, .mobile-nav button {
  transition: none;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid #557e5a;
  outline-offset: 3px;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #557e5a;
  outline-offset: 1px;
}

@media (max-width: 1150px) and (min-width: 901px) {
  :root { --shell-sidebar: 190px; }
  .sidebar { padding: 24px 14px 16px; }
  .main { padding: 27px 23px 35px; }
  .topbar { padding: 14px 23px; gap: 12px; }
  .breadcrumb { font-size: 11px; }
  .top-utility-nav { gap: 1px; }
  .top-utility-button { padding: 9px; font-size: 12px; gap: 5px; }
  .header-actions { gap: 5px; }
  .header-actions .desktop-only { display: none; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 254px; gap: 20px; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
  .summary-intro { grid-column: 1 / -1; padding: 0 0 12px; border-bottom: 1px solid #d5dfd6; }
  .summary-stat:nth-child(2) { border-left: 0; padding-left: 0; }
  .daily-launch-card { padding: 17px 15px; gap: 10px; }
  .daily-launch-card strong { font-size: 15px; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .workspace { margin: 0; }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 110px;
    padding: 15px 20px 12px;
    gap: 12px;
  }
  .topbar .breadcrumb, .topbar .preview-label, .topbar .desktop-only { display: none; }
  .mobile-title {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 750;
    letter-spacing: -.6px;
  }
  .mobile-title span {
    display: block;
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: 1.3px;
    color: #7b8278;
  }
  .topbar > .brand { margin: 0; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 8px; }
  .top-utility-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    gap: 6px;
  }
  .top-utility-button {
    min-width: 0;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 12px;
    border: 1px solid #e3e8e0;
    background: #fafbf8;
    gap: 6px;
  }
  .top-utility-button svg { width: 15px; height: 15px; }
  .main { padding: 27px 20px 110px; max-width: 800px; }
  .mobile-nav, .mobile-nav:has([data-collab]) {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    z-index: 35;
    gap: 0;
    padding: 9px 7px calc(9px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #dce3dc;
    box-shadow: 0 -3px 14px #25352a05;
    overflow: visible;
    backdrop-filter: none;
  }
  .mobile-nav > button {
    min-width: 0;
    width: 100%;
    min-height: 45px;
    flex: none;
    flex-basis: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 2px 0;
    font-size: 11px;
    font-weight: 550;
    color: #687469;
    line-height: 1.3;
    border-radius: 8px;
    white-space: nowrap;
  }
  .mobile-nav > button.active {
    color: #214d35;
    font-weight: 750;
    background: #f0f5ef;
  }
  .mobile-nav svg { width: 21px; height: 21px; }
  .mobile-nav .count { display: none; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-intro { grid-column: 1 / -1; padding: 0 0 14px; border-bottom: 1px solid #d5dfd6; }
  .summary-stat:nth-child(2) { border-left: 0; padding-left: 0; }
}

@media (max-width: 650px) {
  .main { padding: 23px 16px 110px; }
  .topbar { padding: 13px 16px 11px; gap: 11px; min-height: 107px; }
  .page-heading, .integrated-page-heading { margin-bottom: 21px; gap: 12px; flex-wrap: wrap; }
  .page-heading h1, .integrated-page-heading h1 { font-size: 25px; letter-spacing: -.9px; }
  .page-heading p, .integrated-page-heading p { font-size: 12px; margin-top: 7px; }
  .page-heading .eyebrow, .integrated-page-heading .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .page-heading > .btn, .integrated-page-heading > .btn { margin-top: 0; padding: 9px 12px; font-size: 12px; }
  .summary { padding: 18px 17px; gap: 13px; margin-bottom: 20px; }
  .summary-intro h2 { font-size: 16px; }
  .summary-intro p { font-size: 11px; }
  .summary-stat { padding-left: 12px; }
  .summary-stat span { font-size: 11px; }
  .summary-stat span svg { display: none; }
  .summary-stat strong { font-size: 24px; margin: 6px 0 4px; }
  .summary-stat strong small { font-size: 11px; }
  .summary-stat em { font-size: 10px; min-height: 0; }
  .content-grid, .report-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .aside { display: grid; gap: 17px; }
  .aside .panel { margin: 0; }
  .panel { padding: 18px; }
  .panel h2, .section-title h2 { font-size: 15px; }
  .daily-launch-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 23px; }
  .daily-launch-card { min-height: 86px; padding: 16px 18px; gap: 14px; }
  .daily-launch-card strong { font-size: 15px; }
  .daily-launch-card small { font-size: 12px; margin-top: 3px; }
  .daily-focus-strip { padding: 17px 18px; gap: 12px; }
  .daily-focus-strip strong { font-size: 18px; }
  .daily-focus-strip small { font-size: 11px; }
  .filters > .tabs { width: 100%; }
  .filters > select { flex: 1 1 40%; min-width: 0; font-size: 16px; }
  .filters .search { flex: 1 1 100%; width: 100%; }
  .search input { font-size: 16px; width: 100%; }
  .tab { font-size: 12px; padding: 7px 10px; min-height: 38px; }
  .notice { padding: 19px 17px; }
  .notice h3 { font-size: 16px; margin: 13px 0 9px; }
  .notice p { font-size: 13px; }
  .notice-bottom { font-size: 11px; margin-top: 17px; padding-top: 14px; }
  .notice-bottom .btn { font-size: 12px; padding: 9px 12px; }
  .integrated-notice-summary { gap: 9px; margin-bottom: 20px; }
  .integrated-notice-summary > div, .integrated-notice-summary > span { padding: 14px 12px; }
  .integrated-notice-summary span, .integrated-notice-summary small { font-size: 11px; }
  .integrated-notice-summary strong { font-size: 21px; }
  .integrated-growth .growth-filters { padding: 15px; margin-bottom: 21px; gap: 12px; }
  .integrated-growth .growth-filters label { font-size: 12px; }
  .report-mode-nav { gap: 5px; padding: 6px; margin-bottom: 21px; }
  .report-mode-nav button { flex: 1 1 auto; min-height: 40px; font-size: 12px; padding: 8px 10px; }
  .report-mode-nav svg { width: 15px; height: 15px; }
  .preview-footer { margin-top: 25px; font-size: 10px; padding-top: 17px; }
  .footer-actions { gap: 8px; }
  .footer-actions button { font-size: 10px; }
  dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: 91dvh; border-radius: 14px; }
  .modal-head { padding: 20px 18px 10px; }
  .modal-head h2 { font-size: 18px; }
  .modal-content { padding: 11px 18px 22px; }
  .modal-footer { flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .main { padding-left: 12px; padding-right: 12px; }
  .mobile-title { font-size: 13px; }
  .header-actions { gap: 4px; }
  .top-utility-nav { gap: 4px; }
  .top-utility-button { font-size: 11px; gap: 4px; padding-left: 3px; padding-right: 3px; }
  .top-utility-button svg { width: 13px; height: 13px; }
  .top-utility-button .count, .top-utility-button .utility-count { font-size: 9px; min-width: 14px; padding: 1px 3px; }
  .summary { padding: 17px 14px; gap: 10px; }
  .summary-stat { padding-left: 9px; }
  .summary-stat span { font-size: 10px; }
  .summary-stat strong { font-size: 22px; }
  .summary-stat em { font-size: 9px; }
  .integrated-notice-summary > div, .integrated-notice-summary > span { padding: 12px 10px; }
  .report-mode-nav button { padding: 8px; font-size: 11px; }
}

/* The app's built-in phone preview follows the same fixed five-item layout. */
.narrow-preview { width: 100%; max-width: 420px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.narrow-preview .sidebar { display: none; }
.narrow-preview .workspace { margin: 0; }
.narrow-preview .main { max-width: 420px; padding: 23px 16px 110px; }
.narrow-preview .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px; height: auto; padding: 13px 16px 11px; }
.narrow-preview .breadcrumb, .narrow-preview .topbar .desktop-only { display: none; }
.narrow-preview .mobile-title { display: block; font-size: 14px; font-weight: 750; }
.narrow-preview .mobile-title span { display: block; font-size: 8px; color: #7b8278; letter-spacing: 1.3px; }
.narrow-preview .header-actions { grid-column: 2; grid-row: 1; }
.narrow-preview .top-utility-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin: 0; gap: 6px; }
.narrow-preview .top-utility-button { border: 1px solid #e3e8e0; background: #fafbf8; padding: 8px 6px; font-size: 12px; }
.narrow-preview .mobile-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; bottom: 0; z-index: 35; max-width: 420px; left: 50%; right: auto; width: 100%; transform: translateX(-50%); gap: 0; padding: 9px 7px calc(9px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #dce3dc; overflow: visible; backdrop-filter: none; }
.narrow-preview .mobile-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; width: 100%; flex: none; padding: 2px 0; font-size: 11px; font-weight: 550; color: #687469; line-height: 1.3; min-height: 45px; gap: 5px; border-radius: 8px; white-space: nowrap; }
.narrow-preview .mobile-nav > button.active { color: #214d35; background: #f0f5ef; }
.narrow-preview .mobile-nav svg { width: 21px; height: 21px; }
.narrow-preview .content-grid, .narrow-preview .report-grid { grid-template-columns: minmax(0, 1fr); }
.narrow-preview .daily-launch-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.narrow-preview .daily-launch-card { min-height: 86px; padding: 16px 18px; }
.narrow-preview .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px 17px; gap: 13px; }
.narrow-preview .summary-intro { grid-column: 1 / -1; padding: 0 0 14px; border-bottom: 1px solid #d5dfd6; }
.narrow-preview .summary-stat:nth-child(2) { padding-left: 0; border-left: 0; }
.narrow-preview .summary-stat span { font-size: 11px; }
.narrow-preview .summary-stat strong { font-size: 24px; }
.narrow-preview .summary-stat em { font-size: 10px; min-height: 0; }
.narrow-preview .page-heading, .narrow-preview .integrated-page-heading { flex-wrap: wrap; margin-bottom: 21px; gap: 12px; }
.narrow-preview .page-heading h1, .narrow-preview .integrated-page-heading h1 { font-size: 25px; letter-spacing: -.9px; }
.narrow-preview .page-heading p, .narrow-preview .integrated-page-heading p { font-size: 12px; }
.narrow-preview .aside { display: grid; gap: 17px; }
.narrow-preview .aside .panel { margin: 0; }
.narrow-preview .panel { padding: 18px; }
.narrow-preview .filters > .tabs { width: 100%; }
.narrow-preview .filters > select { flex: 1 1 40%; min-width: 0; font-size: 16px; }
.narrow-preview .filters .search { flex: 1 1 100%; width: 100%; }
.narrow-preview .search input { width: 100%; font-size: 16px; }
.narrow-preview .growth-grid, .narrow-preview .growth-charts, .narrow-preview .journal-team-grid, .narrow-preview .store-quantity-editor { grid-template-columns: minmax(0, 1fr); }
.narrow-preview .growth-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px; gap: 12px; }
.narrow-preview .growth-month-hero, .narrow-preview .growth-report-hero { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 20px; }
.narrow-preview .growth-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.narrow-preview .growth-week-edit { grid-template-columns: 40px minmax(0, 1fr); }
.narrow-preview .crm-big-goal { padding: 20px; }
.narrow-preview .crm-big-goal dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
.narrow-preview .team-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.narrow-preview .team-filter-row > .btn { grid-column: 1 / -1; }
.narrow-preview .integrated-notice-summary { gap: 9px; }
.narrow-preview .integrated-notice-summary > div, .narrow-preview .integrated-notice-summary > span { padding: 14px 12px; font-size: 11px; }
.narrow-preview .integrated-notice-summary strong { font-size: 21px; }
.narrow-preview .report-mode-nav { gap: 5px; padding: 6px; }
.narrow-preview .report-mode-nav button { flex: 1 1 auto; min-height: 40px; font-size: 12px; padding: 8px 10px; }
.narrow-preview dialog { width: calc(100% - 24px); max-width: 396px; max-height: 91dvh; border-radius: 14px; }
.narrow-preview .modal-head { padding: 20px 18px 10px; }
.narrow-preview .modal-head h2 { font-size: 18px; }
.narrow-preview .modal-content { padding: 11px 18px 22px; }
.narrow-preview .modal-footer { flex-wrap: wrap; }

@media print {
  body:has(.integrated-growth) #app, body:has(.integrated-growth) #app * { visibility: visible; }
  .sidebar, .topbar, .mobile-nav, .preview-footer, .report-mode-nav { display: none !important; }
  .workspace { margin: 0; }
  .main { max-width: none; padding: 0; }
  .integrated-growth, .integrated-growth #growth-app { display: block; max-height: none; overflow: visible; }
  .integrated-growth .growth-filters { display: none; }
  .panel, .summary, .integrated-notice-summary > div, .integrated-notice-summary > span { break-inside: avoid; }
}
