/*
 * Sindis team composition, 2026-11-20.
 * Presentation provenance: approved .impeccable/mocks/decision/team.html and
 * outputs/sindis-prototype/{app,workday,tasks}.css. The established Vice palette,
 * local Oswald face, mark and animal sprite are inherited from app.css/vice.css.
 * This layer changes presentation only; the authenticated application owns data,
 * permissions, source coverage, task actions and all operational state.
 */

.team-edition {
  --line: #3a3048;
  --bar: 74px;
  --space: 28px;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.team-edition .topbar {
  min-height: var(--bar);
  padding: 0 28px;
  justify-content: flex-start;
  gap: 28px;
  background: var(--rail);
  border-bottom: 1px solid #30283d;
  z-index: 8;
}
.team-edition .topbar::after { content: none; }
.team-edition .brand { gap: 11px; flex: 0 0 auto; min-height: 48px; }
.team-edition .brand > span { font-size: 28px; font-weight: 600; letter-spacing: -.015em; text-transform: none; }
.team-edition .brand small { display: none; }
.team-edition .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.team-edition #desktop-nav { align-self: stretch; display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.team-edition #desktop-nav .nav-item {
  position: relative;
  justify-content: center;
  min-height: 73px;
  padding: 0 13px;
  border-radius: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.team-edition #desktop-nav .nav-item > .icon { display: none; }
.team-edition #desktop-nav .nav-item[aria-current="page"] { color: var(--accent); background: transparent; }
.team-edition #desktop-nav .nav-item[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 13px 0;
  height: 3px;
  background: var(--accent);
}
.team-edition .top-actions { margin-left: auto; flex: 0 0 auto; gap: 12px; }
.team-edition .top-actions .icon-button { min-height: 44px; width: 44px; border-color: transparent; background: transparent; }
.team-edition .avatar-top { width: 34px; height: 34px; outline: none; }
.team-edition .mode-tag { font-size: 11px; }
.team-edition .demo-role select { min-height: 44px; }
.team-edition .layout, .team-edition .layout.leads-only { display: block; }
.team-edition .sidebar { display: none !important; }
.team-edition .content { max-width: 1600px; padding: 22px 28px 40px; }
.team-edition .page-head { min-height: 43px; align-items: center; gap: 20px; margin-bottom: 20px; }
.team-edition .page-head h1 { font-size: 34px; font-weight: 550; line-height: 1.18; letter-spacing: -.015em; }
.team-edition .page-head p { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.team-edition .page-side { gap: 20px; }
.team-edition .heading-inline { display: flex; align-items: baseline; gap: 14px; }
.team-edition .heading-inline .muted { font-size: 13px; }
.team-edition .view-actions { display: flex; align-items: center; gap: 22px; }
.team-edition .freshness { text-align: right; color: var(--muted); font-size: 12px; line-height: 1.6; }
.team-edition .freshness small { display: block; font-size: 12px; }
.team-edition .overview-header-actions { display: flex; align-items: center; gap: 22px; }
.team-edition .team-size { margin-left: 14px; font: 400 13px/1.5 var(--system-font); letter-spacing: 0; white-space: nowrap; }
.team-edition .overview-day-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px 18px; margin: -3px 0 16px; }
.team-edition .overview-day-toolbar .finance-field { min-width: 190px; }
.team-edition .overview-day-toolbar .source-note { margin: 0 0 10px; }
.team-edition .mobile-finance-context { display: none; }
.team-edition .overview-period { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: -5px 0 14px; }
.team-edition .overview-period .finance-field { min-width: 190px; }

.team-edition .button { min-height: 44px; padding: 9px 15px; font-weight: 600; line-height: 1.35; }
.team-edition .button.secondary { background: #31273f; border-color: transparent; color: var(--ink); }
.team-edition .button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.team-edition .button.primary { border-color: var(--accent); color: var(--vice-action-ink); }
.team-edition .button .icon { width: 18px; height: 18px; }
.team-edition .icon-button { min-height: 44px; min-width: 44px; }
.team-edition .button, .team-edition .nav-item { transition: background-color 140ms ease-out, color 140ms ease-out; }
.team-edition .button:not(:disabled):active, .team-edition .nav-item:active { transform: none; }
.team-edition .filter { min-height: 44px; border-color: #54465f; background-color: var(--rail); }
.team-edition textarea { border-color: #54465f; caret-color: var(--accent); }
.team-edition .pill { min-height: 24px; padding: 3px 8px; font-size: 12px; font-weight: 550; }
.team-edition .panel { padding: 22px; margin: 16px 0; border: 0; border-radius: 14px; }
.team-edition .panel h2, .team-edition .finance-panel h2 { font-size: 18px; font-weight: 650; }
.team-edition .panel h3 { font-size: 16px; font-weight: 600; }
.team-edition .panel .panel { padding: 0; background: transparent; border-radius: 0; }
.team-edition .panel .button-row { gap: 9px; }
.team-edition .notice, .team-edition .source-note { font-size: 13px; line-height: 1.6; }
.team-edition .source-note { color: var(--muted); }

/* The owner compares one real financial day in a single table. */
.team-edition .team-table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.team-edition .team-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.team-edition .team-table th, .team-edition .team-table td { padding: 0 18px; height: 49px; text-align: right; font-weight: 450; vertical-align: middle; overflow-wrap: anywhere; }
.team-edition .team-table th:first-child, .team-edition .team-table td:first-child { width: 28%; text-align: left; }
.team-edition .team-table thead th { height: 38px; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 550; }
.team-edition .team-table thead th:not(:first-child) { width: 12%; }
.team-edition .team-table tbody tr { border-bottom: 1px solid #30283d; transition: background-color 140ms ease-out; }
.team-edition .team-table tbody tr.selected { background: var(--accent); color: var(--vice-action-ink); border-color: transparent; }
.team-edition .buyer-select { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 49px; padding: 7px 0; border: 0; background: transparent; color: inherit; text-align: left; }
.team-edition .buyer-select > span { min-width: 0; }
.team-edition .buyer-select b { font-size: 14px; font-weight: 600; }
.team-edition .buyer-select small { display: none; }
.team-edition .buyer-select .avatar { width: 34px; height: 34px; }
.team-edition .selection-tag { padding: 2px 6px; border: 1px solid #a35e7d; border-radius: 4px; font-size: 11px; margin-left: 7px; white-space: nowrap; }
.team-edition .buyer-select > .icon { width: 14px; height: 14px; margin-left: auto; transform: rotate(90deg); }
.team-edition .team-table td button:not(.buyer-select) { min-height: 44px; min-width: 44px; padding: 6px 0; border: 0; background: transparent; color: inherit; font-variant-numeric: tabular-nums; display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; }
.team-edition .team-table td .icon { width: 13px; height: 13px; }
.team-edition .team-table td .overview-cpl-detail-button { color: inherit; text-decoration: none; }
.team-edition .team-table td .overview-cpl-detail-button .icon { opacity: 0; }
.team-edition .team-table td .overview-cpl-detail-button:hover .icon, .team-edition .team-table td .overview-cpl-detail-button:focus-visible .icon { opacity: 1; }
.team-edition .team-table .cpl-value { font-weight: 650; }
.team-edition .overview-cpl-estimate { display: block; margin: -2px 0 7px; font-size: 11px; font-weight: 400; color: var(--muted); }
.team-edition .team-table .review-count { color: var(--green); }
.team-edition .team-table .blocked-count { color: var(--warn); }
.team-edition .team-table tr.selected td, .team-edition .team-table tr.selected th { color: var(--vice-action-ink); }
.team-edition .team-table tr.selected :focus-visible { outline-color: var(--vice-action-ink); }
.team-edition .team-table tfoot { background: var(--rail); }
.team-edition .team-table tfoot th, .team-edition .team-table tfoot td { min-height: 47px; height: 47px; font-weight: 650; }
.team-edition .team-table tfoot small { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.team-edition .overview-work-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px 0 5px; }
.team-edition .overview-work-head h2 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 650; }
.team-edition .overview-work-head .button { padding-inline: 0; font-size: 13px; background: transparent; border-color: transparent; color: var(--muted); }
.team-edition .selected-work { scroll-margin-top: 86px; overflow: hidden; background: var(--paper); border-radius: 12px; }
.team-edition .selected-summary { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 211px; }
.team-edition .selected-task-context { min-width: 0; padding: 20px 22px; background: var(--rail); }
.team-edition .selected-task-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; font-size: 12px; }
.team-edition .selected-task-meta .pill { min-height: 24px; font-size: 11px; }
.team-edition .selected-task-context h3 { max-width: 29ch; margin: 0 0 9px; font-size: 17px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.team-edition .selected-task-context p { margin: 6px 0; }
.team-edition .selected-task-context > .button { min-height: 44px; padding: 8px 0; margin-top: 4px; border-color: transparent; background: transparent; font-size: 12px; color: var(--muted); }
.team-edition .selected-task-context .source-note { font-size: 12px; }
.team-edition .selected-result { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 20px 24px; }
.team-edition .selected-result-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 16px; width: 100%; margin-bottom: 14px; }
.team-edition .selected-result-heading h2 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: 0; }
.team-edition .selected-result-heading > span { font-size: 12px; color: var(--muted); }
.team-edition .selected-result > p { max-width: 80ch; margin: 0; color: var(--ink); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-edition .selected-result-link { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 4px 0; margin-top: 3px; color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.team-edition .selected-result-link .icon { width: 14px; height: 14px; }
.team-edition .selected-result-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px; width: 100%; margin-top: auto; padding-top: 17px; }
.team-edition .selected-result-bottom > .button { padding: 8px 0; border-color: transparent; background: transparent; color: var(--muted); font-size: 12px; }
.team-edition .selected-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-left: auto; }
.team-edition .selected-result-actions .button { font-size: 13px; }
.team-edition .selected-result-actions .button.primary { min-width: 155px; }
.team-edition .overview-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; margin-top: 10px; }
.team-edition .overview-footer .button { padding-inline: 0; border-color: transparent; background: transparent; font-size: 12px; color: var(--muted); }
.team-edition .overview-details { margin-top: 20px; border-top: 1px solid var(--line); }
.team-edition .overview-details > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-size: 14px; font-weight: 600; }
.team-edition .overview-details > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); color: var(--muted); }
.team-edition .overview-details[open] > summary::after { transform: rotate(225deg); }
.team-edition .overview-details > summary::-webkit-details-marker { display: none; }
.team-edition .overview-details .today-grid { gap: 20px; }
.team-edition .empty-state { padding: 30px 22px; color: var(--muted); text-align: center; }
.team-edition .empty-state h2 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.team-edition .empty-state p { max-width: 65ch; margin: 8px auto; }
.team-edition .empty-state .button { margin-top: 14px; }

/* Buyer home uses only the viewer's scoped work and financial context. */
.team-edition .buyer-day { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
.team-edition .buyer-work { min-width: 0; }
.team-edition .next-task { padding: 24px; background: var(--paper); border-radius: 14px; }
.team-edition .next-task h2 { margin: 14px 0 9px; font-size: 23px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.team-edition .next-task p { max-width: 64ch; margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.team-edition .inline-meta { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.team-edition .task-lines { margin-top: 13px; }
.team-edition .task-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 83px; padding: 15px 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.team-edition .task-line > span { min-width: 0; }
.team-edition .task-line b { display: block; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.team-edition .task-line small { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.team-edition .buyer-aside { min-width: 0; padding: 5px 0; }
.team-edition .buyer-aside h2 { font-size: 18px; margin: 0 0 12px; }
.team-edition .buyer-aside > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.team-edition .buyer-metrics { margin: 17px 0 2px; }
.team-edition .buyer-metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team-edition .buyer-metrics dt { color: var(--muted); }
.team-edition .buyer-metrics dd { margin: 0; font-size: 20px; font-weight: 550; }
.team-edition .buyer-metrics small { font-size: 12px; color: var(--muted); font-weight: 400; }
.team-edition .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.team-edition .section-heading h2 { margin: 0; font-size: 18px; }
.team-edition .section-heading .button { font-size: 13px; }
.team-edition .section-divider { margin: 24px 0; border-top: 1px solid var(--line); }

/* The board retains real stage selection, filters, drag and move controls. */
.team-edition .board-summary { min-height: 0; margin: -8px 0 16px; padding: 0; border: 0; font-size: 13px; gap: 8px 24px; }
.team-edition .board-summary strong { font: 600 14px/1.5 var(--system-font); letter-spacing: 0; }
.team-edition .board-toolbar { gap: 10px; margin-bottom: 18px; }
.team-edition .board-toolbar .search { max-width: 430px; background: var(--paper); min-height: 44px; border-color: #54465f; }
.team-edition .board-filter-disclosure { min-width: 0; }
.team-edition .board-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; list-style: none; cursor: pointer; border: 1px solid #54465f; border-radius: 8px; color: var(--muted); background: var(--paper); }
.team-edition .board-filter-toggle::-webkit-details-marker { display: none; }
.team-edition .board-filter-count { min-width: 18px; padding: 0 5px; background: var(--accent-bg); color: var(--accent); border-radius: 4px; font-size: 12px; text-align: center; }
.team-edition .board-filter-count:empty { display: none; }
.team-edition .board-filter-fields { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.team-edition .board-filter-fields .filter { max-width: 240px; }
.team-edition .board { gap: 14px; }
.team-edition .lane { padding: 2px; min-height: 156px; border: 0; border-radius: 14px; background: transparent; }
.team-edition .lane-head { background: transparent; color: var(--ink); border-radius: 0; padding: 0 5px 13px; min-height: 38px; margin-bottom: 0; }
.team-edition .lane-head h2 { font-size: 14px; font-weight: 600; }
.team-edition .lane-head .dot { width: 7px; height: 7px; }
.team-edition .lane-count { background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; }
.team-edition .lane-list { gap: 12px; }
.team-edition .lane-empty { min-height: 90px; padding: 20px 12px; border: 1px dashed #493b58; border-radius: 12px; font-size: 13px; }
.team-edition .task-card { min-height: 134px; padding: 15px 15px 13px; background: var(--paper); border: 1px solid #44344f; border-radius: 14px; box-shadow: none; }
.team-edition .task-card strong { margin: 8px 0 14px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.team-edition .task-id { font-size: 12px; font-weight: 500; }
.team-edition .task-meta { min-height: 20px; }
.team-edition .task-meta .pill { min-height: 21px; padding: 2px 6px; font-size: 11px; }
.team-edition .task-footer { gap: 7px 10px; font-size: 12px; }
.team-edition .task-footer .avatar { width: 24px; height: 24px; }
.team-edition .task-footer .overdue { color: var(--warn); }
.team-edition .task-item .task-meta { padding-inline-end: 34px; }
.team-edition .task-move { min-width: 44px; min-height: 44px; top: 3px; right: 3px; border-radius: 8px; }
.team-edition .stage-switch { gap: 4px; }
.team-edition .stage-tab { min-height: 44px; }
.team-edition .task-drag-preview { background: var(--paper); }
.team-edition .lane.drop-allowed { outline: 1px dashed var(--accent); outline-offset: 3px; }
.team-edition .lane.drop-hover { background: var(--accent-bg); outline: 2px solid var(--accent); outline-offset: 2px; }

/* Existing operational pages share the same readable controls and surfaces. */
.team-edition .lead-filters { gap: 12px; margin-bottom: 16px; }
.team-edition .lead-filter { gap: 5px; }
.team-edition .data-head { min-height: 40px; font-size: 12px; font-weight: 550; background: var(--rail); }
.team-edition .data-row { padding: 13px 16px; }
.team-edition .data-row .sub, .team-edition .lead-geo { font-size: 12px; }
.team-edition .data-row:not(.data-head):nth-child(odd) { background: var(--paper); }
.team-edition .data-row.lead-deposit { background: var(--green-bg); }
.team-edition .plain-row, .team-edition .action-row, .team-edition .overview-line { min-height: 48px; }
.team-edition .finance-panel { margin: 0; }
.team-edition .finance-page { gap: 20px; }
.team-edition .finance-review { gap: 20px; }
.team-edition .finance-daily-table th, .team-edition .finance-daily-table td { padding-block: 13px; }
.team-edition .finance-daily-label, .team-edition .finance-daily-detail { font-size: 12px; }
.team-edition .finance-daily-target { background: var(--accent-bg); outline-color: var(--accent); }
.team-edition .finance-full-cost { color: var(--accent); }
.team-edition .finance-tab[aria-pressed="true"], .team-edition .finance-period[aria-pressed="true"] { border-color: #9b719c; }
.team-edition .assistant-layout { gap: 22px; }
.team-edition .assistant-compose textarea { min-height: 120px; }
.team-edition .assistant-compose, .team-edition .assistant-sources { margin: 0; }
.team-edition .assistant-exchange { border-radius: 14px; }
.team-edition .task-dialog { width: min(560px, 100vw); border-left: 0; border-radius: 16px 0 0 16px; }
.team-edition .task-detail { padding: 28px; }
.team-edition .task-detail h2 { font-size: 30px; font-weight: 600; line-height: 1.25; }
.team-edition .task-detail h3 { font-size: 16px; font-weight: 600; }
.team-edition .task-detail .detail-text { font-size: 14px; line-height: 1.7; }
.team-edition .detail-section { margin-top: 24px; }
.team-edition .detail-meta .pill { font-size: 12px; }
.team-edition .task-detail textarea { padding: 12px 13px; line-height: 1.65; }
.team-edition .task-form { gap: 12px; }
.team-edition .owner-task-form { gap: 20px; }
.team-edition .owner-task-form fieldset { gap: 15px; }
.team-edition .owner-field { gap: 7px; font-weight: 550; }
.team-edition .owner-task-actions { gap: 12px; margin-top: 26px; }
.team-edition .cpl-detail-dialog { width: min(560px, 100vw); }
.team-edition .cpl-detail-header h2 { font-size: 26px; }
.team-edition .report-form { gap: 14px; }
.team-edition .report-feedback { margin-top: 20px; padding-top: 18px; }
.team-edition .report-send-actions, .team-edition .report-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.team-edition .report-draft-status { color: var(--muted); font-size: 12px; }
.team-edition .toast { z-index: 12; }

@media (min-width: 1250px) {
  .team-edition .team-table th:first-child, .team-edition .team-table td:first-child { width: 30%; }
  .team-edition .team-table thead th:not(:first-child) { width: 11.666%; }
}
@media (min-width: 800px) {
  .team-edition .board-filter-disclosure { display: flex; align-items: flex-start; gap: 10px; }
  .team-edition .board-filter-disclosure[open] > summary { display: none; }
  .team-edition .board-filter-disclosure:not([open]) > summary { display: flex; }
  .team-edition .board-filter-disclosure > .board-filter-fields { display: flex; }
}
@media (min-width: 800px) and (max-width: 1100px) {
  .team-edition .topbar { gap: 15px; padding-inline: 22px; }
  .team-edition #desktop-nav { gap: 1px; }
  .team-edition #desktop-nav .nav-item { font-size: 13px; padding-inline: 9px; }
  .team-edition #desktop-nav .nav-item[aria-current="page"]::after { inset-inline: 9px; }
  .team-edition .top-actions { gap: 5px; }
  .team-edition .brand { gap: 8px; }
  .team-edition .brand > span { font-size: 25px; }
  .team-edition .brand-mark { width: 34px; height: 34px; }
  .team-edition .selection-tag { display: none; }
  .team-edition .team-table th, .team-edition .team-table td { padding-inline: 12px; }
  .team-edition .selected-summary { grid-template-columns: 260px minmax(0, 1fr); }
  .team-edition .selected-task-context, .team-edition .selected-result { padding: 18px; }
  .team-edition .selected-result-actions .button.primary { min-width: 0; }
  .team-edition .view-actions, .team-edition .page-side { gap: 12px; }
  .team-edition .freshness { max-width: 185px; }
  .team-edition .overview-header-actions { gap: 12px; }
  .team-edition .board-filter-fields { gap: 8px; }
  .team-edition .board-filter-fields .filter { max-width: 195px; }
}
@media (max-width: 799px) {
  .team-edition { --bar: 60px; --space: 18px; }
  .team-edition .topbar { min-height: var(--bar); padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); gap: 12px; }
  .team-edition .brand { gap: 8px; }
  .team-edition .brand > span { font-size: 24px; }
  .team-edition .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .team-edition #desktop-nav { display: none; }
  .team-edition .top-actions { gap: 5px; }
  .team-edition .avatar-top { width: 29px; height: 29px; }
  .team-edition .top-actions .icon-button { width: 44px; min-width: 44px; }
  .team-edition .demo-role select { font-size: 12px; max-width: 130px; }
  .team-edition .content { padding: 20px 18px calc(94px + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px))); }
  .team-edition .leads-only .content { padding-bottom: calc(28px + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px))); }
  .team-edition .page-head { min-height: 44px; align-items: center; flex-wrap: nowrap; gap: 12px; margin-bottom: 17px; }
  .team-edition .page-head > div:first-child { min-width: 0; }
  .team-edition .page-head h1 { font-size: 29px; }
  .team-edition .page-head p { font-size: 13px; margin-top: 5px; }
  .team-edition .page-side { min-width: 0; flex: 0 0 auto; gap: 8px; }
  .team-edition .heading-inline { display: block; }
  .team-edition .heading-inline .muted { display: block; margin-top: 4px; font-size: 12px; }
  .team-edition .view-actions { gap: 8px; }
  .team-edition .page-side .task-create { width: 44px; min-width: 44px; height: 44px; padding: 10px; font-size: 0; }
  .team-edition .page-side .task-create .icon { width: 20px; height: 20px; }
  .team-edition .page-side .task-create span { display: none; }
  .team-edition .view-actions .freshness { display: none; }
  .team-edition .overview-page-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 12px; }
  .team-edition .overview-page-head > div:first-child { grid-column: 1; grid-row: 1; }
  .team-edition .overview-page-head .page-side, .team-edition .overview-header-actions { display: contents; }
  .team-edition .overview-header-actions .freshness { grid-column: 1 / -1; grid-row: 2; text-align: left; max-width: none; }
  .team-edition .overview-header-actions .task-create { grid-column: 2; grid-row: 1; }
  .team-edition .team-size { display: block; margin: 4px 0 0; font-size: 12px; }
  .team-edition .overview-day-toolbar { gap: 8px 14px; margin-bottom: 12px; }
  .team-edition .overview-day-toolbar .finance-field { flex: 0 1 190px; min-width: 0; }
  .team-edition .overview-day-toolbar .source-note { flex: 1 1 130px; margin-bottom: 0; font-size: 12px; }
  .team-edition .mobile-finance-context { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin: -3px 0 12px; }
  .team-edition .overview-period { gap: 8px; margin-top: -3px; }
  .team-edition .overview-period .finance-field { min-width: 0; flex: 1 1 175px; }
  .team-edition .overview-period .freshness { flex: 1 1 150px; text-align: left; max-width: none; }
  .team-edition .panel { padding: 18px; }
  .team-edition .notice, .team-edition .source-note { font-size: 12px; }
  .team-edition .team-table { min-width: 0; }
  .team-edition .team-table th:first-child, .team-edition .team-table td:first-child { width: auto; text-align: left; }
  .team-edition .team-table .desktop-value, .team-edition .team-table .task-count, .team-edition .team-table .review-count, .team-edition .team-table .blocked-count { display: none; }
  .team-edition .team-table th, .team-edition .team-table td { padding-inline: 9px; }
  .team-edition .team-table thead th { height: 34px; font-size: 12px; }
  .team-edition .team-table thead th.cpl-value { width: 100px; }
  .team-edition .buyer-select { min-height: 68px; padding: 9px 0; gap: 9px; }
  .team-edition .buyer-select b { font-size: 14px; }
  .team-edition .buyer-select small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
  .team-edition .selected .buyer-select small { color: #603b52; }
  .team-edition .buyer-select > .icon { display: none; }
  .team-edition .buyer-select .avatar { width: 29px; height: 29px; }
  .team-edition .selection-tag { display: none; }
  .team-edition .team-table td.cpl-value button { font-size: 16px; font-weight: 600; }
  .team-edition .team-table td .overview-cpl-detail-button .icon { display: none; }
  .team-edition .team-table tfoot small { display: none; }
  .team-edition .team-table tfoot th, .team-edition .team-table tfoot td { height: 44px; }
  .team-edition .overview-work-head { margin-top: 15px; }
  .team-edition .overview-work-head h2 { font-size: 15px; }
  .team-edition .overview-work-head .button { font-size: 12px; }
  .team-edition .selected-work { scroll-margin-top: 75px; }
  .team-edition .selected-summary { display: block; }
  .team-edition .selected-task-context { padding: 17px 17px 12px; }
  .team-edition .selected-task-meta { margin-bottom: 9px; }
  .team-edition .selected-task-context h3 { max-width: none; font-size: 17px; }
  .team-edition .selected-task-context > .button { display: none; }
  .team-edition .selected-result { padding: 17px; }
  .team-edition .selected-result-heading { margin-bottom: 11px; }
  .team-edition .selected-result > p { font-size: 14px; }
  .team-edition .selected-result-bottom { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 8px; padding-top: 17px; }
  .team-edition .selected-result-actions { margin-left: 0; flex-wrap: nowrap; }
  .team-edition .selected-result-actions .button { flex: 1; min-width: 0; padding: 10px; font-size: 12px; }
  .team-edition .selected-result-actions .button.primary { min-width: 0; }
  .team-edition .selected-result-bottom > .button { align-self: flex-start; font-size: 12px; }
  .team-edition .selected-result-link { font-size: 13px; }
  .team-edition .overview-footer { display: block; font-size: 12px; margin-top: 16px; }
  .team-edition .overview-footer > .button { padding-left: 0; }
  .team-edition .overview-details .today-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .team-edition .buyer-day { display: flex; flex-direction: column; gap: 27px; }
  .team-edition .buyer-work, .team-edition .buyer-aside { width: 100%; }
  .team-edition .next-task { padding: 18px; }
  .team-edition .next-task h2 { font-size: 20px; }
  .team-edition .next-task .inline-meta { font-size: 12px; gap: 8px; }
  .team-edition .next-task .button { width: 100%; }
  .team-edition .buyer-day .section-heading { margin-bottom: 9px; }
  .team-edition .buyer-day .section-heading .button { font-size: 12px; padding-right: 0; }
  .team-edition .buyer-metrics { display: flex; flex-wrap: wrap; gap: 15px; }
  .team-edition .buyer-metrics > div { display: block; flex: 1 1 40%; padding: 0; border: 0; }
  .team-edition .buyer-metrics dt { font-size: 12px; }
  .team-edition .buyer-metrics dd { font-size: 19px; margin-top: 5px; }
  .team-edition .buyer-metrics small { font-size: 12px; }

  .team-edition .content:has(#board-grid) > .page-head { margin-bottom: 14px; }
  .team-edition .content:has(#board-grid) > .page-head p { display: none; }
  .team-edition .board-summary { margin-bottom: 12px; font-size: 12px; gap: 8px 14px; }
  .team-edition .board-summary strong { font-size: 13px; }
  .team-edition .board-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; margin-bottom: 12px; align-items: start; }
  .team-edition .board-toolbar .search { min-width: 0; width: 100%; max-width: none; min-height: 44px; padding-inline: 11px; }
  .team-edition .board-toolbar .search input { font-size: 16px; }
  .team-edition .board-filter-disclosure { display: contents; }
  .team-edition .board-filter-disclosure::details-content { display: contents; }
  .team-edition .board-filter-toggle { position: relative; width: 44px; height: 44px; padding: 10px; font-size: 0; border-color: transparent; background: #31273f; }
  .team-edition .board-filter-toggle .icon { width: 20px; height: 20px; }
  .team-edition .board-filter-toggle > span:not(.board-filter-count) { display: none; }
  .team-edition .board-filter-count { position: absolute; right: 0; top: 0; min-width: 16px; padding-inline: 4px; font-size: 11px; background: var(--accent); color: var(--vice-action-ink); }
  .team-edition .board-filter-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 0 3px; }
  .team-edition .board-filter-disclosure:not([open]) > .board-filter-fields { display: none; }
  .team-edition .board-filter-fields .filter { min-width: 0; width: 100%; max-width: none; font-size: 16px; }
  .team-edition .board-filter-fields .button { grid-column: 1 / -1; justify-self: end; }
  .team-edition .board-page-hint { margin: -1px 0 10px; font-size: 12px; }
  .team-edition .board-geo-link { margin-bottom: 10px; }
  .team-edition .stage-switch { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 5px; margin-bottom: 12px; scrollbar-width: thin; }
  .team-edition .stage-tab { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 44px; padding: 8px 10px; border-color: transparent; border-radius: 9px; background: transparent; font-size: 13px; white-space: nowrap; }
  .team-edition .stage-tab > .dot { display: none; }
  .team-edition .stage-tab .lane-count { background: transparent; font-size: 12px; }
  .team-edition .stage-tab[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--vice-action-ink); }
  .team-edition .stage-tab[aria-pressed="true"] .lane-count { background: transparent; color: inherit; }
  .team-edition .board { display: block; }
  .team-edition .lane { min-height: 0; padding: 2px; }
  .team-edition .lane[data-mobile-active="false"] { display: none; }
  .team-edition .lane-head { display: none; }
  .team-edition .board[data-all-stages="true"] .lane { margin-bottom: 20px; }
  .team-edition .board[data-all-stages="true"] .lane:has(.lane-empty) { display: none; }
  .team-edition .board[data-all-stages="true"] .lane-head { display: flex; min-height: 30px; padding: 0 3px 8px; }
  .team-edition .lane-list { gap: 10px; }
  .team-edition .task-card { min-height: 126px; padding: 11px 13px 12px; }
  .team-edition .task-card strong { font-size: 16px; margin: 7px 0 14px; }
  .team-edition .task-item .task-meta { padding-inline-end: 34px; }
  .team-edition .task-footer { font-size: 12px; gap: 6px 9px; }
  .team-edition .task-footer .avatar { width: 22px; height: 22px; }
  .team-edition .task-move { top: 1px; right: 1px; min-width: 44px; min-height: 44px; }

  .team-edition .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; z-index: 9; inset: auto 0 0; min-height: calc(64px + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px))); padding: 3px 6px max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--rail); box-shadow: none; }
  .team-edition .bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 58px; padding: 5px 2px; border-radius: 0; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.2; text-align: center; }
  .team-edition .bottom-nav .nav-item[aria-current="page"] { background: #251e31; color: var(--accent); }
  .team-edition .bottom-nav .nav-item .icon { width: 19px; height: 19px; }
  .team-edition .bottom-nav .nav-item:focus-visible { outline-color: var(--green); outline-offset: -3px; }
  .team-edition .data-row { padding: 11px 9px; }
  .team-edition .data-row .sub, .team-edition .lead-geo { font-size: 12px; }
  .team-edition .lead-filters { gap: 8px; }
  .team-edition .lead-filter .filter { font-size: 16px; }
  .team-edition .lead-view-tabs .button { padding-inline: 10px; font-size: 13px; }
  .team-edition .assistant-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .team-edition .assistant-compose, .team-edition .assistant-exchange, .team-edition .assistant-sources { padding: 18px; }
  .team-edition .finance-page, .team-edition .finance-review { gap: 14px; }
  .team-edition .finance-panel { padding: 18px; }
  .team-edition .finance-filters { display: grid; justify-content: stretch; }
  .team-edition .finance-daily-table th, .team-edition .finance-daily-table td { padding-block: 0; }
  .team-edition .finance-field .filter, .team-edition .owner-field .filter, .team-edition .task-form textarea, .team-edition .report-form textarea, .team-edition .assistant-compose textarea, .team-edition .toolbar input, .team-edition .toolbar select { font-size: 16px; }
  .team-edition .task-dialog { inset: auto 0 0; margin: 0; width: 100%; max-width: 100%; height: auto; max-height: calc(100dvh - 14px); border-radius: 16px 16px 0 0; }
  .team-edition .task-detail { padding: 25px 20px max(30px, env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)); }
  .team-edition .task-detail h2 { font-size: 29px; }
  .team-edition .task-detail > .button-row, .team-edition .owner-task-actions > .button-row { align-items: stretch; }
  .team-edition .task-detail > .button-row .button { flex: 1 1 auto; }
  .team-edition .report-send-actions, .team-edition .report-form-actions { align-items: stretch; }
  .team-edition .report-send-actions .button, .team-edition .report-form-actions .button { flex: 1 1 100%; }
  .team-edition .toast { inset-inline: 12px; bottom: calc(76px + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px))); max-width: none; }
}
@media (max-width: 359px) {
  .team-edition .content { padding-inline: 14px; }
  .team-edition .topbar { padding-inline: 14px; }
  .team-edition .brand > span { font-size: 23px; }
  .team-edition .page-head { display: flex; gap: 8px; }
  .team-edition .page-head h1 { font-size: 27px; }
  .team-edition .page-side { margin-top: 0; }
  .team-edition .top-actions { gap: 2px; }
  .team-edition .demo-role select { max-width: 105px; }
  .team-edition .team-table thead th.cpl-value { width: 85px; }
  .team-edition .buyer-select { gap: 7px; }
  .team-edition .buyer-select small { font-size: 11px; }
  .team-edition .bottom-nav { padding-inline: 3px; }
  .team-edition .bottom-nav .nav-item { padding-inline: 1px; font-size: 11px; }
  .team-edition .selected-result-actions .button { font-size: 12px; padding-inline: 8px; }
  .team-edition .board-filter-fields { grid-template-columns: minmax(0, 1fr); }
  .team-edition .finance-panel { padding: 15px; }
}
@media (hover: hover) and (pointer: fine) {
  .team-edition #desktop-nav .nav-item:hover { color: var(--ink); background: #251e31; }
  .team-edition .top-actions .icon-button:hover { color: var(--accent); background: #31273f; }
  .team-edition .button:hover { border-color: #786386; background: #3e314c; }
  .team-edition .button.primary:hover { border-color: #ffc8dc; background: #ffc8dc; color: var(--vice-action-ink); }
  .team-edition .button.secondary:hover { background: #40334f; }
  .team-edition .button.quiet:hover { background: #251e31; color: var(--ink); }
  .team-edition .team-table tbody tr:not(.selected):hover { background: #1d1828; }
  .team-edition .task-line:hover { background: #1a1524; }
  .team-edition .task-card:hover { border-color: #8b637f; background: #261f35; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .team-edition *, .team-edition *::before, .team-edition *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
