/* Shared workspace additions. Keep legacy property editors on their existing layout. */
.app-body {
  --pro-accent: #886420;
  --pro-sage: #e5ebdf;
  --pro-border: #dadfd5;
  --pro-surface: #fffefa;
  --pro-danger: #873b36;
}
html[data-theme="dark"] .app-body {
  --pro-accent: #dfbc71;
  --pro-sage: #28342b;
  --pro-border: #435145;
  --pro-surface: #202824;
  --pro-danger: #f0a19a;
}
.workspace-sidebar { overflow-y: auto; overscroll-behavior: contain; }
.workspace-nav .workspace-nav-locked {
  display: flex; align-items: center; gap: 10px; min-height: 40px;
  padding: 5px 10px; color: var(--sidebar-muted, var(--muted)); font-size: .84rem;
}
.workspace-nav-locked .ui-icon { width: 18px; height: 18px; }
.workspace-nav-locked .nav-lock { margin-inline-start: auto; color: var(--pro-accent); display: flex; }
.workspace-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 16px; font-size: .82rem; }
.workspace-crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.demo-strip { border: 1px solid var(--pro-border); border-radius: 10px; background: var(--pro-sage); padding: 8px 14px; margin-bottom: 14px; color: var(--ink); font-size: .82rem; }
.dashboard-banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 178px; padding: clamp(22px, 3.1vw, 38px); margin-bottom: 18px; border-radius: 16px;
  background: #244a40; border: 1px solid #31564b; color: #fbfaf3;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 26px;
}
html[data-theme="dark"] .dashboard-banner { background: #213e38; border-color: #456658; }
body.workspace-body .dashboard-banner h1 { color: #fbfaf3 !important; font-size: clamp(1.6rem, 3.1vw, 2.8rem) !important; margin: 0 0 7px; line-height: 1.35 !important; }
body.workspace-body .dashboard-banner p { margin: 0; color: #deebe4 !important; }
body.workspace-body .dashboard-banner p.dashboard-date { margin-top: 11px; font-size: .83rem; color: #f0d5a1 !important; font-weight: 650; }
.dashboard-banner-copy { min-width: 0; }
.dashboard-banner-actions { display: flex; align-items: center; gap: 9px 14px; flex-wrap: wrap; }
.dashboard-banner .dashboard-banner-primary { background: #f0d5a1 !important; border-color: #f0d5a1 !important; color: #242e23 !important; }
.dashboard-banner .dashboard-banner-primary:hover { background: #ffebc1 !important; border-color: #ffebc1 !important; }
.dashboard-banner-link { display: inline-flex; align-items: center; min-height: 42px; background: transparent; border: 0; color: #fbfaf3; text-decoration: underline; text-underline-offset: 4px; padding: 0; cursor: pointer; }
.dashboard-banner-link:hover { color: #f0d5a1; }
.dashboard-banner-actions :focus-visible { outline: 2px solid #ffe2a9; outline-offset: 4px; }
.dashboard-banner-art { position: absolute; z-index: -1; pointer-events: none; inset-inline-end: -22px; bottom: -31px; width: clamp(190px, 27vw, 390px); color: #a8c8ac; opacity: .25; }
.dashboard-next-step { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.dashboard-next-step h2, .dashboard-next-step p { margin: 0; }
.dashboard-next-step p, .setup-workspaces small { color: var(--muted); }
.setup-workspaces small { display: block; }
.dashboard-ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr)); gap: 1px; background: var(--pro-border); border: 1px solid var(--pro-border); border-radius: 13px; overflow: hidden; margin: 0 0 20px; }
.dashboard-ledger > a, .dashboard-ledger > div { min-width: 0; display: grid; gap: 3px; background: var(--pro-surface); color: var(--ink); padding: 14px 16px; }
.dashboard-ledger > a:hover { background: var(--pro-sage); }
.dashboard-ledger span, .dashboard-ledger small { color: var(--muted); font-size: .79rem; }
.dashboard-ledger strong { font-size: 1.75rem; font-weight: 750; line-height: 1.4; }
.metric-sales { --metric-surface: #e3f0e7; --metric-ink: #245944; }
.metric-rentals { --metric-surface: #e8eff8; --metric-ink: #315878; }
.metric-customers { --metric-surface: #f0e8f2; --metric-ink: #633f6a; }
.metric-contracts { --metric-surface: #f8eed7; --metric-ink: #725021; }
.metric-overdue { --metric-surface: #f8e7e0; --metric-ink: #833f34; }
html[data-theme="dark"] .metric-sales { --metric-surface: #273c33; --metric-ink: #c1e6cf; }
html[data-theme="dark"] .metric-rentals { --metric-surface: #29394c; --metric-ink: #c7dff9; }
html[data-theme="dark"] .metric-customers { --metric-surface: #3d2e42; --metric-ink: #e7cde9; }
html[data-theme="dark"] .metric-contracts { --metric-surface: #463b26; --metric-ink: #f0d99e; }
html[data-theme="dark"] .metric-overdue { --metric-surface: #47322e; --metric-ink: #f3c5b7; }
.dashboard-metrics > a, .dashboard-metrics > a:hover { background: var(--metric-surface); color: var(--metric-ink); }
body.workspace-body .dashboard-metrics :is(span, strong, small) { color: var(--metric-ink) !important; }
.dashboard-metrics span { display: flex; align-items: center; gap: 7px; font-weight: 650; }
.dashboard-metrics .ui-icon { width: 17px; height: 17px; flex: none; }
.dashboard-metrics strong { font-variant-numeric: tabular-nums; }
.dashboard-metrics a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-metrics a:focus-visible { outline: 2px solid var(--metric-ink); outline-offset: -4px; }
.dashboard-search { margin-bottom: 18px; }
.dashboard-search label { display: block; margin-bottom: 6px; font-weight: 700; }
.inline-search.pro-search { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.pro-search > .ui-icon { color: var(--pro-accent); position: absolute; inset-inline-start: 12px; z-index: 1; pointer-events: none; width: 18px; height: 18px; }
.pro-search > input[type="search"] { min-width: 0; width: 100%; padding-inline-start: 38px !important; }
.pro-search > button { flex: none; }
.dashboard-columns.pro-dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.dashboard-columns.pro-dashboard-columns > :only-child { grid-column: 1 / -1; }
.dashboard-agenda, .dashboard-shortcuts, .dashboard-contracts, .dashboard-team { min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; font-size: 1.08rem; }
.agenda-scroll { height: 292px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.today-task, .record-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--pro-border);
}
.today-task:last-child, .record-row:last-child { border-bottom: 0; }
.today-task > div { flex: 1; min-width: 0; }
.today-task small, .record-row small, .dashboard-shortcuts small, .team-snapshot-card small { color: var(--muted); display: block; font-size: .78rem; overflow-wrap: anywhere; }
.task-bullet { flex: 0 0 8px; height: 8px; background: var(--pro-accent); border-radius: 50%; }
.is-overdue .task-bullet { background: var(--pro-danger); }
.tag.tag-alert { color: var(--pro-danger) !important; background: transparent !important; border-color: var(--pro-border); }
.dashboard-shortcuts > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--pro-border); color: var(--ink); }
.dashboard-shortcuts > a:last-child { border-bottom: 0; }
.dashboard-shortcuts > a:hover { color: var(--pro-accent); }
.dashboard-shortcuts .ui-icon { width: 18px; height: 18px; color: var(--pro-accent); }
.dashboard-contracts { margin-bottom: 16px; }
.team-snapshot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 9px; }
.team-snapshot-card { display: flex; align-items: center; gap: 9px; padding: 8px; min-width: 0; background: var(--pro-sage); border-radius: 8px; }
.team-snapshot-card > div { flex: 1; min-width: 0; }
.listing-controls { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.listing-controls .pro-search { flex: 1; max-width: 560px; }
.listing-filters summary { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; }
.listing-filters summary::-webkit-details-marker { display: none; }
.listing-filters[open] summary { background: var(--pro-sage) !important; }
.filter-count { border-radius: 100px; background: var(--pro-sage); padding: 0 7px; }
.listing-filter-panel {
  position: absolute; inset-inline: 0 auto; inset-block-start: calc(100% + 8px); z-index: 5;
  width: min(100%, 740px); max-height: min(540px, 64vh); overflow: auto; overscroll-behavior: contain;
  padding: clamp(12px, 3vw, 24px); border-radius: 14px; border: 1px solid var(--pro-border);
  background: var(--pro-surface); box-shadow: 0 16px 36px #18251c29;
}
.listing-filter-panel .filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); gap: 12px; }
.listing-filter-panel .actions { margin-top: 15px; }
.crm-columns, .report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.report-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.report-rows { margin: 0; }
.report-rows > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-block-end: 1px solid var(--pro-border); padding: 8px 0; }
.report-rows dd { margin: 0; font-weight: 700; }
.team-person { display: flex; align-items: center; gap: 10px; }
.member-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; color: var(--ink); font-weight: 700; background: var(--pro-sage); border-radius: 10px; }
.permission-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(176px, 100%), 1fr)); gap: 8px; }
.permission-switch { border: 1px solid var(--pro-border); border-radius: 9px; padding: 9px; }
.permission-switch label, .catalog-options label { display: flex; align-items: center; gap: 8px; min-height: 34px; cursor: pointer; }
.catalog-options { margin-block: 10px; }
.catalog-options input, .permission-switch input { accent-color: #526e54; }
.contact-actions, .finance-filter { flex-wrap: wrap; gap: 8px; }
.brand-upload-current { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 5px 0; color: var(--muted); }
.brand-upload-current img { width: 88px; height: 58px; border: 1px solid var(--pro-border); border-radius: 8px; object-fit: contain; background: var(--pro-sage); }
.agency-module-form { margin-block-start: 26px; scroll-margin-block-start: 90px; }
.agency-module-grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.agency-module-form .actions { margin-block-start: 14px; }
.hero-image-current { display: flex; align-items: center; gap: 9px 14px; flex-wrap: wrap; margin-block: 0 8px; }
.hero-image-current img { max-width: 100%; height: 108px; object-fit: cover; border: 1px solid var(--pro-border); border-radius: 9px; }
.hero-image-current label { display: inline-flex; align-items: center; gap: 7px; }
.storefront-settings-form input[type="file"] { max-width: 100%; }
@media (max-width: 1050px) {
  .dashboard-banner { align-items: start; flex-direction: column; }
}
@media (min-width: 801px) and (max-width: 1030px) {
  .dashboard-ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-ledger > :last-child:nth-child(3n + 2) { grid-column: span 2; }
}
@media (max-width: 740px) {
  .dashboard-columns.pro-dashboard-columns, .crm-columns { grid-template-columns: minmax(0, 1fr); }
  .agenda-scroll { height: 254px; }
  .dashboard-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-ledger > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dashboard-banner-art { opacity: .14; }
}
@media (max-width: 390px) {
  .listing-controls, .pro-search { gap: 5px; }
  .listing-controls .btn { padding-inline: 8px !important; }
  .listing-controls .pro-search > button { font-size: .76rem; }
  .listing-filters summary > .ui-icon { display: none; }
}

/* The workspace palette pairs muted paper with a distinct, darker navigation rail. */
.app-body {
  --pro-surface: var(--surface);
  --pro-border: var(--line);
  --pro-sage: var(--brand-tint);
  --pro-accent: #624164;
  --pro-danger: #782939;
  --rail-accent: #f1c791;
  --chart-files: #67477d;
  --chart-done: #2e685c;
  --chart-grid: #6f536532;
}
html[data-theme="dark"] .app-body {
  --pro-surface: var(--surface);
  --pro-border: var(--line);
  --pro-sage: var(--brand-tint);
  --pro-accent: #bfebdf;
  --pro-danger: #ffc2cf;
  --rail-accent: #a8ebdd;
  --chart-files: #c0a3e8;
  --chart-done: #83d9c7;
  --chart-grid: #c5bbdc2c;
}
body.workspace-body { font-size: 16.5px; }
body.workspace-body :is(.page-head p, .page-title p, .muted, .subtitle, .helptext, .field-help, .text-link, .strong-link) { font-size: 15px !important; }
body.workspace-body :is(.btn, .form-input, .compact-form label, .field > label, .public-management-form label) { font-size: 15px !important; }
body.workspace-body .app-main :is(input.form-input:not([type="checkbox"]):not([type="color"]):not([type="file"]), textarea.form-input, select.form-input) {
  background: var(--surface) !important; color: var(--ink) !important; border-color: var(--control-border) !important;
}
body.workspace-body :is(.btn, .theme-toggle, .tag, .badge, .segmented) { border-radius: 999px !important; }
body.workspace-body :is(.data-table th, .data-table td, .today-task small, .record-row small, .tag) { font-size: 14px !important; }
body.workspace-body :is(.panel, .info-card, .form-section, .part-detail-panel, .property-card) { border-radius: 24px !important; }
body.workspace-body .panel-head h2 { font-size: 21px !important; }
body.workspace-body :is(input[type="checkbox"],input[type="radio"]) { accent-color: var(--action-bg); }
.workspace-sidebar {
  background: linear-gradient(170deg, var(--sidebar-bg), color-mix(in srgb, var(--sidebar-bg) 86%, #603d62)) !important;
  padding-inline: 16px;
}
.workspace-sidebar :is(.workspace-brand, .workspace-brand b, .agency-chip b, .workspace-user b) { color: var(--sidebar-text) !important; }
.workspace-sidebar :is(.workspace-brand small, .agency-chip small, .workspace-user small, .nav-label, .logout-link) { color: var(--sidebar-muted) !important; font-size: 13px; }
.workspace-sidebar .workspace-brand > img { border-radius: 50%; }
.workspace-sidebar .agency-chip { border-radius: 17px; background: var(--sidebar-surface) !important; border-color: var(--sidebar-border) !important; }
.workspace-sidebar .agency-indicator { background: var(--rail-accent); }
.workspace-sidebar .workspace-nav :is(a, .workspace-nav-locked) { min-height: 44px; border-radius: 18px; font-size: 15px; }
.workspace-sidebar .workspace-nav a:hover { color: var(--sidebar-text) !important; }
.workspace-sidebar .workspace-nav a[aria-current="page"] { color: var(--sidebar-text) !important; border-color: var(--sidebar-border) !important; box-shadow: inset -4px 0 0 var(--rail-accent); }
.workspace-sidebar .workspace-nav a[aria-current="page"] .ui-icon, .workspace-sidebar .nav-lock { color: var(--rail-accent) !important; }
.workspace-sidebar .sidebar-footer { border-color: var(--sidebar-border) !important; }
.workspace-sidebar .user-avatar { border-radius: 50%; background: var(--rail-accent) !important; color: #2e2338 !important; }
.workspace-sidebar .logout-link:hover { color: #ffe1e6 !important; }
.workspace-sidebar .nav-count { color: #6b2335 !important; background: #ffd6dc !important; border: 0; font-size: 13px; }
.workspace-topbar .topbar-label { font-size: 16px; }
.workspace-topbar .topbar-status { font-size: 13px; }
.notification-button { position: relative; }
.notice-count {
  position: absolute; inset: -6px auto auto -7px; z-index: 1; min-width: 22px; min-height: 22px;
  display: grid; place-items: center; background: #9c2c48; color: #fff8ee; padding-inline: 3px;
  border-radius: 999px; border: 2px solid var(--surface); font-size: 12px; line-height: 1; font-weight: 800;
}
.notice-count[hidden] { display: none; }
.work-kicker { display: block; color: var(--pro-accent); font-size: 14px; font-weight: 800; line-height: 1.65; }
.dashboard-banner {
  background: radial-gradient(ellipse at left bottom, #63496f, transparent 62%), linear-gradient(104deg, #513c60, var(--sidebar-bg)) !important;
  border: 0; min-height: 198px; margin-bottom: 23px; border-radius: 36px 18px 58px 18px;
}
html[data-theme="dark"] .dashboard-banner {
  background: radial-gradient(ellipse at left bottom, #486379, transparent 65%), linear-gradient(108deg, #2d3857, var(--sidebar-bg)) !important;
}
.dashboard-banner::after {
  content: ""; position: absolute; z-index: -1; inset: auto auto -126px -50px; width: 334px; height: 334px;
  border: 1px solid #f2d5ac65; border-radius: 50%; box-shadow: 0 0 0 23px #f2d5ac12, 0 0 0 53px #f2d5ac10;
}
.dashboard-banner .dashboard-identity { color: #f3d3a8; font-size: 15px; font-weight: 800; }
body.workspace-body .dashboard-banner p.dashboard-date { font-size: 15px; color: #f7e7d3 !important; }
.dashboard-banner-art { color: #eed7b6; opacity: .35; }
body.workspace-body .dashboard-banner a.dashboard-banner-primary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 45px; padding: 7px 17px;
  background: #f4cc95; border-radius: 999px; color: #302139 !important; font-size: 15px; font-weight: 800;
}
body.workspace-body .dashboard-banner a.dashboard-banner-primary:hover { background: #ffe2af; text-decoration: none; }
body.workspace-body .dashboard-banner .dashboard-banner-link { color: #fff3e5 !important; font-weight: 750; font-size: 15px; }
body.workspace-body .dashboard-banner .dashboard-banner-link:hover { color: #f4cc95 !important; }
@media (min-width: 801px) {
  .container.app-main:has(.dashboard-banner) { max-width: none !important; --dashboard-gutter: clamp(24px, 3.2vw, 48px); }
  .dashboard-banner {
    margin-inline-start: calc(-1 * var(--dashboard-gutter));
    padding-inline-start: calc(var(--dashboard-gutter) + 12px);
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-start-end-radius: 42px;
    border-end-end-radius: 72px;
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .container.app-main:has(.dashboard-banner) { --dashboard-gutter: 25px; }
}
.dashboard-ledger.dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 10px; background: transparent; border: 0; border-radius: 0; overflow: visible; margin-bottom: 23px;
}
.dashboard-metrics > a, .dashboard-metrics > a:hover {
  position: relative; isolation: isolate; overflow: hidden; padding: 14px 16px 13px; min-height: 135px;
  border: 1px solid color-mix(in srgb, var(--metric-ink) 28%, var(--metric-surface));
  border-radius: 28px 13px 25px 22px; gap: 5px;
  background: linear-gradient(142deg, var(--metric-surface), color-mix(in srgb, var(--metric-surface) 78%, var(--surface)));
}
.dashboard-metrics > a::after {
  content: ""; position: absolute; z-index: -1; inset: auto auto -34px -32px; width: 98px; height: 98px;
  border: 13px solid color-mix(in srgb, var(--metric-ink) 9%, transparent); border-radius: 50%;
}
.dashboard-metrics span { font-size: 15px; font-weight: 800; }
.dashboard-metrics .ui-icon { width: 19px; height: 19px; }
.dashboard-metrics strong { font-size: 1.88rem; line-height: 1.16; }
.dashboard-metrics small { font-size: 13px; font-weight: 650; }
.metric-sales { --metric-surface: #ccded5; --metric-ink: #204638; }
.metric-rentals { --metric-surface: #cfdcea; --metric-ink: #254365; }
.metric-customers { --metric-surface: #e4d3e4; --metric-ink: #54305d; }
.metric-contracts { --metric-surface: #ecdbba; --metric-ink: #604021; }
.metric-overdue:not(.has-overdue) { --metric-surface: #dbd8e1; --metric-ink: #4e415a; }
.metric-overdue.has-overdue { --metric-surface: #f1c9d0; --metric-ink: #772239; }
html[data-theme="dark"] .metric-overdue:not(.has-overdue) { --metric-surface: #34394d; --metric-ink: #e3dded; }
html[data-theme="dark"] .metric-overdue.has-overdue { --metric-surface: #5a3348; --metric-ink: #ffd2dd; }
.dashboard-columns.pro-dashboard-columns { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
.dashboard-agenda, .weekly-panel { min-width: 0; }
.agenda-scroll { height: 295px; padding: 4px 4px 8px 0; }
.today-task.agenda-task { padding: 0; min-height: 0; border-bottom: 0; margin-bottom: 6px; border-radius: 17px; }
.agenda-link {
  width: 100%; min-height: 62px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px;
  align-items: center; padding: 8px 11px; border-radius: inherit; border: 1px solid var(--line);
  -webkit-touch-callout: none; user-select: none;
}
.agenda-link:hover { text-decoration: none; background: var(--surface-raised); }
.agenda-copy strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.agenda-copy small { line-height: 1.6; }
.agenda-task .task-bullet { height: 10px; width: 10px; background: var(--chart-done); }
.agenda-task.is-overdue .task-bullet, .reminder-row.is-overdue .task-bullet { background: var(--pro-danger); }
.agenda-task.is-overdue .agenda-link, .reminder-row.is-overdue, .task-row.is-overdue, body.workspace-body .followup-detail-panel.is-overdue {
  background: linear-gradient(125deg, var(--danger-bg), color-mix(in srgb, var(--danger-bg) 63%, var(--surface))) !important;
  border-color: var(--danger-border) !important;
}
.agenda-task.is-overdue .tag, .task-row.is-overdue .tag-alert { background: var(--danger-bg) !important; color: var(--danger) !important; border-color: var(--danger-border) !important; }
.agenda-preview {
  position: fixed; z-index: 600; width: min(326px, calc(100vw - 24px)); padding: 14px 17px;
  background: #352940; color: #fff4eb; border: 1px solid #d8a6bc; border-radius: 19px 19px 7px 19px;
  box-shadow: 0 15px 32px #1b132957; pointer-events: none; font-size: 15px; line-height: 1.75;
}
html[data-theme="dark"] .agenda-preview { background: #363d59; border-color: #a7d8d3; }
.agenda-preview strong { color: #ffe2ad; display: block; overflow-wrap: anywhere; }
.agenda-preview p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.weekly-icon, .studio-mark {
  display: grid; place-items: center; width: 49px; height: 49px; flex: 0 0 49px; border-radius: 50%;
  background: var(--brand-tint); color: var(--pro-accent); border: 1px solid var(--line);
}
.weekly-totals { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; }
.weekly-totals span { display: flex; align-items: center; gap: 6px; }
.weekly-totals b { font-size: 19px; }
.chart-dot { width: 10px; height: 10px; border-radius: 50%; }
.files { --series: var(--chart-files); }
.completed { --series: var(--chart-done); }
.chart-dot { background: var(--series); }
.weekly-chart {
  list-style: none; margin: 11px 0 8px; padding: 4px 0 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
}
.weekly-chart > li { min-width: 0; text-align: center; }
.weekly-columns {
  display: flex; justify-content: center; align-items: end; gap: 4px; height: 127px; padding: 0 1px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--chart-grid) calc(25% - 1px), var(--chart-grid) 25%);
}
.weekly-columns > span { width: min(31%, 14px); height: var(--value); border-radius: 999px 999px 2px 2px; background: var(--series); }
.weekly-day { color: var(--muted); font-size: 13px; font-weight: 750; }
.weekly-foot { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 9px; color: var(--muted); font-size: 15px; }
.team-activity-list { display: grid; gap: 9px; max-height: 458px; overflow-y: auto; }
.team-activity-row {
  display: grid; grid-template-columns: minmax(125px, .34fr) minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 23px 10px 23px 10px; border: 1px solid var(--line); background: var(--surface-raised);
}
.team-activity-person { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.team-activity-person small { display: block; color: var(--muted); font-size: 13px; }
.team-activity-person .user-avatar { border-radius: 50%; flex: 0 0 37px; height: 37px; background: var(--brand-tint); color: var(--pro-accent); }
.team-activity-metrics { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; margin: 0; }
.team-activity-metrics > div {
  flex: 1 1 80px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface);
}
.team-activity-metrics .team-income { flex-basis: 125px; }
.team-activity-metrics .team-total { background: var(--brand-tint); }
.team-activity-metrics dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.team-activity-metrics dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 850; overflow-wrap: anywhere; }
.notice-panel .reminder-row { border: 1px solid var(--line); border-radius: 15px; padding: 9px 12px; margin-bottom: 7px; }
.notice-pages { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.followup-detail-meta { display: flex; flex-wrap: wrap; gap: 11px 30px; }
.followup-detail-meta dt { color: var(--muted); font-size: 14px; }
.followup-detail-meta dd { margin: 0; font-weight: 750; }
.task-full-notes { overflow-wrap: anywhere; }
.report-compare, .report-breakdown { margin-block: 28px; }
.report-chart { min-width: 0; margin-bottom: 0; }
.report-chart h3 { margin: 0 0 8px; }
.chart-leader {
  width: fit-content; max-width: 100%; margin: 0 0 12px; padding: 4px 10px; border-radius: 14px;
  background: var(--brand-tint); color: var(--ink); font-size: 14px; overflow-wrap: anywhere;
}
.chart-bars { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; max-height: 270px; overflow-y: auto; }
.chart-bars > li { min-width: 0; }
.chart-bars li > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; overflow-wrap: anywhere; }
.chart-track { display: block; overflow: hidden; width: 100%; height: 10px; background: var(--brand-tint); border-radius: 999px; }
.chart-track > span { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--chart-files); }
:is(.chart-rentals,.chart-rental_contracts,.chart-income,.chart-completed) .chart-track > span { background: var(--chart-done); }
.catalog-options, .feature-picker { min-width: 0; padding: 11px 14px 14px; border: 1px solid var(--line); border-radius: 18px; }
.catalog-options legend, .feature-picker legend { color: var(--ink); padding-inline: 8px; font-weight: 800; font-size: 17px; }
.catalog-picker-tools { display: flex; align-items: center; gap: 10px 13px; flex-wrap: wrap; }
.catalog-picker-tools .form-input { flex: 1 1 220px; }
.catalog-picker-tools output { padding: 4px 11px; border-radius: 999px; background: var(--brand-tint); color: var(--ink); font-weight: 750; }
.catalog-picker { max-height: 348px; overflow-y: auto; scrollbar-gutter: stable; }
.catalog-picker #id_selection > div { color: var(--pro-accent); font-weight: 850; margin-top: 6px; }
.catalog-picker label { min-height: 45px; margin-block: 4px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); overflow-wrap: anywhere; }
.catalog-picker label:has(input:checked) { background: var(--brand-tint); border-color: var(--control-border); }
.catalog-toggle-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(225px,100%),1fr)); gap: 9px; }
.catalog-options .catalog-toggle { min-height: 67px; padding: 10px 14px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 17px; }
.catalog-toggle:has(input:checked) { background: var(--brand-tint); border-color: var(--control-border); }
.catalog-toggle strong, .catalog-toggle small { display: block; }
.catalog-toggle small { color: var(--muted); font-size: 13px; font-weight: 600; }
:where(.catalog-options,.feature-picker,.studio-price-toggle) input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 19px; }
.feature-picker #id_feature_choices > div { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 10px; align-items: center; color: var(--pro-accent); font-weight: 800; }
.feature-picker #id_feature_choices > div > label:not(:has(input)) {
  flex-basis: 100%; background: transparent; border: 0; min-height: 0; padding: 3px 0;
}
.feature-picker label { display: flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); min-height: 40px; cursor: pointer; }
.feature-picker label:has(input:checked) { border-color: var(--control-border); background: var(--brand-tint); }
.brand-color-preview { display: flex; gap: 9px; align-items: center; margin-block: 5px; padding: 7px 9px; border-radius: 14px; background: var(--surface-raised); }
.brand-color-preview > span { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: color-mix(in srgb, var(--brand-preview) 38%, #121221); border: 3px solid var(--brand-preview); }
.brand-color-preview small { display: block; }
body.workspace-body .social-studio { background: linear-gradient(146deg, var(--surface), var(--brand-tint)) !important; border-radius: 34px 19px 45px 22px !important; }
.studio-heading { display: flex; align-items: start; gap: 12px; margin-bottom: 13px; }
.studio-heading h2, .studio-heading p { margin: 0; }
.studio-heading p { color: var(--muted); }
.studio-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; }
.studio-tools .field { flex: 1 1 220px; }
body.workspace-body .studio-tools #studio-title { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--control-border) !important; }
.studio-price-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; cursor: pointer; }
.studio-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.studio-format { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.studio-format-title { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; flex-wrap: wrap; }
.studio-format-title h3 { margin: 0; }
.studio-format-title bdi { color: var(--muted); font-weight: 700; }
.studio-preview { position: relative; height: clamp(240px, 39vw, 510px); border-radius: 16px; background: var(--surface-raised); overflow: hidden; }
.studio-preview canvas { position: absolute; inset: 9px; margin: auto; display: block; max-width: calc(100% - 18px); max-height: calc(100% - 18px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 23px #2b193235; }
.studio-format .btn { width: 100%; }
.studio-caption { margin-top: 15px; }
.studio-caption summary { font-weight: 800; cursor: pointer; margin-bottom: 8px; }
.studio-caption .form-input { width: 100%; margin-bottom: 6px; }
@media (min-width: 801px) and (max-width: 1030px) {
  .dashboard-ledger.dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .dashboard-columns.pro-dashboard-columns { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .team-activity-row { grid-template-columns: minmax(0,1fr); }
  .bottom-nav a, .mobile-sections-button { font-size: 13px !important; }
  .dashboard-ledger.dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-ledger > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 470px) {
  .dashboard-metrics > a { padding-inline: 10px; }
  .dashboard-metrics span { font-size: 14px; }
  .studio-formats { grid-template-columns: minmax(0, 1fr); }
  .studio-preview { height: 348px; }
  .notice-panel .reminder-row { flex-wrap: wrap; }
  .notice-panel .reminder-row > form { margin-inline-start: auto; }
}
@media print {
  body.workspace-body .social-studio { display: none; }
}
