.office-layout,
.office-auth-page {
  --office-gap: clamp(16px, 2.4vw, 28px);
  --office-control-height: 44px;
  --office-focus: var(--lilac);
}

.office-auth-page {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(16px, 6dvh, 52px) 16px 28px;
  background: var(--bg);
  color: var(--ink);
}

.office-layout:not(.authenticated) .login-screen {
  align-items: start;
  overflow: auto;
  padding: clamp(16px, 6dvh, 52px) 16px 28px;
}

.office-auth-page .office-auth-card,
.office-layout .login-card {
  box-sizing: border-box;
  width: min(100%, 440px);
  min-width: 0;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.office-auth-card .login-mark,
.office-layout .login-card .login-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 0 16px;
  object-fit: contain;
}

.office-auth-card .team-join-brand { margin: 0 0 16px; }
.office-auth-page .office-auth-card h1,
.office-layout .login-card h1 {
  margin: 0 0 8px;
  font-size: clamp(23px, 4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.office-auth-page .office-auth-card p,
.office-layout .login-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.office-auth-page .office-auth-card label,
.office-layout .login-card label {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.office-auth-card label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.office-auth-page .office-auth-card input,
.office-layout .login-card input {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--office-control-height);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.office-layout .login-card .login-password-label { margin: 0 0 7px; }

.office-layout .login-password {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.office-layout .login-password button {
  min-height: var(--office-control-height);
  margin: 0;
}

.office-layout .login-card .login-remember:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-layout .login-card .login-remember input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.office-auth-page .office-auth-card .primary,
.office-layout .login-card .primary {
  width: 100%;
  min-height: var(--office-control-height);
  margin: 4px 0 0;
  font-size: 14px;
}

.office-auth-card .office-auth-link,
.office-layout #loginForm > a {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue);
  font-size: 13px;
}

.office-layout .login-iphone-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.office-layout .login-iphone-hint summary {
  cursor: pointer;
  width: fit-content;
  color: var(--blue);
}

.office-layout .login-card .login-iphone-hint p {
  margin: 7px 0 0;
  font-size: 13px;
}

.office-auth-page #message,
.office-auth-page .team-join-status,
.office-layout .login-error {
  min-height: 0;
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
}

.office-auth-page #message[data-state="pending"] { color: var(--muted); }
.office-auth-page #message[data-state="success"] { color: #137749; }
html[data-fh-theme="dark"] .office-auth-page #message[data-state="success"] { color: var(--green); }

.office-auth-page #message:empty,
.office-auth-page .team-join-status:empty,
.office-layout .login-error:empty { display: none; }
.office-auth-page .team-notice {
  padding: 10px 12px;
  background: var(--bg);
  border-color: var(--line);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.office-auth-page .team-join-card details { margin: 14px 0; color: var(--muted); }
.office-auth-page .team-join-card .team-rights-tags { gap: 6px; margin-top: 8px; }

.office-layout .page { padding: var(--office-gap) var(--office-gap) calc(var(--office-gap) * 1.5); }
.office-layout .page-heading { gap: 14px; margin-bottom: var(--office-gap); }
.office-layout .page-heading > div { min-width: 0; }
.office-layout .heading-actions,
.office-layout .form-actions { flex-wrap: wrap; gap: 10px; }
.office-layout .dialog-card { padding: var(--office-gap); }
.office-layout .form-grid { gap: 14px 16px; margin-block: 16px; }
.office-layout .form-row { gap: 14px 16px; }
.office-layout :is(.form-grid, .form-row) label { min-width: 0; gap: 7px; }
.office-layout .team-dialog-actions .team-inline-status:empty { display: none; }

.office-layout #teamInviteDialog,
.office-layout #teamInviteResult { width: min(550px, calc(100vw - 32px)); }
.office-layout #teamInviteDialog .team-dialog-inner,
.office-layout #teamInviteResult .team-dialog-inner {
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: var(--office-gap);
}
.office-layout #teamInviteDialog header,
.office-layout #teamInviteResult header { margin-bottom: 16px; }
.office-layout #teamInviteDialog h2,
.office-layout #teamInviteResult h2 { font-size: clamp(19px, 4vw, 24px); line-height: 1.25; }
.office-layout #teamWizardBody { display: grid; gap: 14px; }
.office-layout #teamWizardBody :is(.team-row-actions, .team-rights-tags) { flex-wrap: wrap; gap: 6px; }
.office-layout #teamWizardBody .team-invite-phone { grid-template-columns: minmax(62px, 84px) minmax(0, 1fr); gap: 10px; }
.office-layout #teamInviteDialog .team-dialog-actions,
.office-layout #teamInviteResult .team-dialog-actions { margin-top: 16px; padding-top: 14px; border-color: var(--line); }
.office-layout #teamInviteDialog .team-dialog-actions button { width: auto; }
.office-layout #teamInviteResult .team-copy-row { margin-top: 12px; }
.office-layout #teamInviteResult .team-result-status { margin-top: 10px; }

.office-layout :is(.search, .team-search):has(> input:focus) {
  outline: 2px solid var(--office-focus);
  outline-offset: 2px;
  box-shadow: none;
}
.office-layout :is(.search, .team-search) > input:focus { outline: none; box-shadow: none; }

.office-layout :where(.page, .dialog-card, .fh-role-dialog) select:not([multiple]) {
  appearance: none;
  box-sizing: border-box;
  min-height: var(--office-control-height);
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--panel);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 16px center, right 12px center;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
}
.office-layout .page .search > input {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.office-layout dialog:focus { outline: none; }

.office-layout [data-page="tasks"] { container: task-page / inline-size; }
.office-layout .task-controls .filter-toolbar {
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.office-layout .task-controls .filter-toolbar :is(.search, select),
.office-layout #taskForm :is(input, select) {
  box-sizing: border-box;
  min-width: 0;
  height: var(--office-control-height);
  min-height: var(--office-control-height);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--panel);
  color: var(--ink);
}
.office-layout .task-controls .filter-toolbar .search { padding: 0; }
.office-layout .task-controls .filter-toolbar .search input {
  height: 100%;
  min-height: 0;
  padding: 0 12px 0 36px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  font-size: 13px;
}
.office-layout .task-controls .filter-toolbar select,
.office-layout #taskForm select {
  appearance: none;
  padding: 0 32px 0 12px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 16px center, right 12px center;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  font-size: 13px;
  text-overflow: ellipsis;
}
.office-layout .task-controls .filter-toolbar select:focus-visible,
.office-layout #taskForm :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--office-focus);
  outline-offset: 2px;
  box-shadow: none;
}
.office-layout .task-controls .task-view-row { flex-wrap: wrap; }
.office-layout .task-controls .task-view-row .segmented { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.office-layout .task-board {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr));
  overflow: visible;
}
.office-layout .task-board.archive-board { grid-template-columns: minmax(0, 720px); }
.office-layout .task-board .task-column { min-width: 0; }
.office-layout .task-board .task-card { min-width: 0; overflow-wrap: anywhere; transform: none; }
.office-layout .task-board .task-card:focus-visible { outline: 2px solid var(--office-focus); outline-offset: 1px; }
.office-layout .task-board .task-column.drag-over {
  border-color: var(--office-focus);
  background: color-mix(in srgb, var(--office-focus) 14%, var(--panel));
  box-shadow: inset 0 0 0 1px var(--office-focus), 0 0 0 3px color-mix(in srgb, var(--office-focus) 20%, transparent);
}
.office-layout .task-drag-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.office-layout #taskForm .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.office-layout #taskForm .task-form-wide { grid-column: 1 / -1; }
.office-layout #taskForm .form-grid label { min-width: 0; }
.office-layout #taskForm input { padding: 0 12px; font-size: 14px; }
.office-layout #taskForm textarea { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.office-layout #taskForm .task-deadline { min-width: 0; margin: 0; padding: 0; border: 0; }
.office-layout #taskForm .task-deadline legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.office-layout #taskForm .task-deadline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

@container task-page (max-width: 740px) {
  .office-layout .task-controls .filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container task-page (max-width: 420px) {
  .office-layout .task-controls .filter-toolbar { grid-template-columns: minmax(0, 1fr); }
  .office-layout .task-controls .task-view-row .segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 500px) {
  .office-layout #taskForm .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (forced-colors: active) {
  .office-layout .task-controls .filter-toolbar select,
  .office-layout #taskForm select { appearance: auto; background-image: none; }
  .office-layout .task-board .task-column.drag-over { outline: 2px solid Highlight; }
}

.office-layout [data-page="intake"] { container: intake-page / inline-size; }
.office-layout #warehouseManagerCard .manager-head { align-items: flex-start; flex-wrap: wrap; }
.office-layout #warehouseManagerCard .manager-head strong { font-size: 16px; }
.office-layout #warehouseManagerCard .manager-head small { font-size: 12px; line-height: 1.45; }
.office-layout #warehouseManager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.office-layout #warehouseManager:empty { display: none; }
.office-layout #warehouseManager .warehouse-chip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  background: var(--bg);
}
.office-layout #warehouseManager .warehouse-chip > span { display: grid; gap: 3px; min-width: 0; }
.office-layout #warehouseManager .warehouse-chip b { font-size: 13px; overflow-wrap: anywhere; }
.office-layout #warehouseManager .warehouse-chip small { color: var(--muted); font-size: 12px; }
.office-layout #warehouseManager .warehouse-actions { flex: 0 0 32px; width: 32px; height: 32px; }

.office-layout [data-page="intake"] .upload-card { padding: var(--office-gap); }
.office-layout [data-page="intake"] :is(.form-row, .matrix-controls) label { min-width: 0; }
.office-layout [data-page="intake"] .select-plus { grid-template-columns: minmax(0, 1fr) var(--office-control-height); }
.office-layout [data-page="intake"] .select-plus .plus-button { min-height: var(--office-control-height); }
.office-layout [data-page="intake"] .size-matrix {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 134px), 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}
.office-layout [data-page="intake"] .size-tile {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
  padding: 10px;
}
.office-layout [data-page="intake"] .size-tile small { min-height: 0; font-size: 11px; overflow-wrap: anywhere; }
.office-layout [data-page="intake"] .size-matrix > .empty { grid-column: 1 / -1; }
.office-layout [data-page="intake"] .qty-stepper {
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 4px;
  min-width: 0;
}
.office-layout [data-page="intake"] .qty-stepper :is(button, input) {
  box-sizing: border-box;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}
.office-layout [data-page="intake"] .qty-stepper input { appearance: textfield; font-size: 13px; }
.office-layout [data-page="intake"] .qty-stepper input::-webkit-inner-spin-button { appearance: none; }
.office-layout [data-page="intake"] .qty-stepper button:not(:disabled):hover { background: var(--bg); }
.office-layout [data-page="intake"] .matrix-summary {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.office-layout [data-page="intake"] .section-head { align-items: center; flex-wrap: wrap; gap: 12px; }
.office-layout #receiptStatusFilter { width: min(100%, 200px); }

.office-layout .nomenclature-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.office-layout .nomenclature-actions [hidden],
.office-layout #itemForm .form-actions [hidden] { display: none; }
.office-layout #itemForm .select-plus {
  grid-template-columns: minmax(0, 1fr) var(--office-control-height);
}
.office-layout #itemForm .plus-button { min-height: var(--office-control-height); }
.office-layout #itemForm #itemThresholdHelp { margin: 12px 0 0; }
.office-layout .attribute-catalog-values {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.office-layout .attribute-catalog-values li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.office-layout .attribute-catalog-values li span { overflow-wrap: anywhere; }
.office-layout .attribute-catalog-values .danger-link { flex: 0 0 auto; }

@container intake-page (max-width: 760px) {
  .office-layout #manualReceiptForm .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container intake-page (max-width: 450px) {
  .office-layout #manualReceiptForm .form-row,
  .office-layout #manualReceiptForm .matrix-controls { grid-template-columns: minmax(0, 1fr); }
  .office-layout [data-page="intake"] .section-head { align-items: flex-start; }
}

.office-layout :is(#wbPlanSummaryRoot, [data-page="wb-plan"]).wb-plan {
  --card: var(--panel);
  --surface: var(--bg);
  --border: var(--line);
  --text: var(--ink);
  margin-bottom: var(--office-gap);
}
.office-layout .wb-plan .wbp-compact { margin: 0; padding: var(--office-gap); }
.office-layout .wb-plan .wbp-head { gap: 12px; }
.office-layout .wb-plan .wbp-empty { padding: 12px 14px; margin: 12px 0 0; border-color: var(--line); color: var(--muted); }
.office-layout .wb-plan .wbp-toolbar,
.office-layout .wb-plan .wbp-cards { margin-block: 16px; }
.office-layout .wb-plan .wbp-card { min-width: 0; padding: 16px; overflow-wrap: anywhere; }
.office-layout .wb-plan .wbp-compact .wbp-cards { margin-bottom: 0; }
.office-layout #ownerDashboardRoot:empty,
.office-layout #wbPlanSummaryRoot:empty { display: none; }
.office-layout .owner-dashboard .od-head { flex-wrap: wrap; gap: 12px; }
.office-layout .owner-dashboard .od-toolbar { gap: 10px 14px; margin-top: 18px; }
.office-layout .owner-dashboard .od-panel,
.office-layout .owner-dashboard :is(.od-metric, .od-gap) { padding: clamp(14px, 2vw, 22px); }

.office-layout .fh-role-dialog {
  box-sizing: border-box;
  width: min(550px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: var(--office-gap);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
}
.office-layout .fh-role-dialog[open] { display: flex; flex-direction: column; }
.office-layout .fh-role-dialog .fh-role-body { min-height: 0; overflow: auto; padding: 4px; margin: -4px; }
.office-layout .fh-role-dialog header,
.office-layout .fh-role-dialog footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.office-layout .fh-role-dialog header { justify-content: space-between; margin-bottom: 18px; }
.office-layout .fh-role-dialog footer {
  position: sticky;
  z-index: 1;
  bottom: -4px;
  margin-top: 14px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.office-layout .fh-role-dialog header h2 { margin: 0; font-size: 21px; }
.office-layout .fh-role-dialog label { display: grid; gap: 7px; margin-bottom: 12px; color: var(--ink); font-size: 13px; }
.office-layout .fh-role-dialog :is(input:not([type=checkbox]), select) { width: 100%; min-height: 42px; }
.office-layout .fh-role-dialog .fh-role-explanation { margin: 0 0 14px; color: var(--muted); }
.office-layout .fh-role-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.office-layout .fh-role-blocks fieldset { min-width: 0; margin: 0; padding: 4px 10px 6px; border: 1px solid var(--line); border-radius: 9px; }
.office-layout .fh-role-blocks legend { padding-inline: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.office-layout .fh-role-dialog .fh-role-check { grid-template-columns: 17px minmax(0, 1fr); align-items: center; min-height: 33px; margin: 0; gap: 9px; }
.office-layout .fh-role-check input { width: 17px; height: 17px; margin: 0; }
.office-layout .fh-role-dialog small { color: var(--muted); }
.office-layout .fh-role-check small { margin-left: 4px; font-weight: 400; }
.office-layout .fh-role-check:not(.fh-role-group-check, .fh-role-task-assignment) { padding-left: 6px; }
.office-layout .fh-role-dialog .fh-role-group-check { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.office-layout .fh-role-dialog .fh-role-task-assignment { border-top: 1px solid var(--line); margin-top: 4px; }
.office-layout .fh-role-note { padding: 10px 12px; border-radius: 9px; background: var(--bg); color: var(--muted); }
.office-layout .fh-role-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.office-layout .fh-role-list { display: grid; gap: 10px; margin: 12px 0; }
.office-layout .fh-role-list article,
.office-layout .fh-role-person { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.office-layout .fh-role-list h3 { margin: 0 0 4px; }
.office-layout .fh-role-chip { display: inline-block; margin: 3px 5px 3px 0; padding: 4px 7px; border-radius: 6px; background: var(--bg); }
.office-layout .fh-role-users { display: grid; gap: 10px; margin-top: 12px; }
.office-layout .fh-role-person > small { display: block; margin: 4px 0 10px; }
.office-layout :is(.fh-role-error, .fh-role-status, .fh-assignment-status[data-error]) { color: var(--red); }
.office-layout .fh-assignment-status { margin-bottom: 0; }
.office-layout :is(.fh-role-error, .fh-role-status, .fh-assignment-status):empty { display: none; }
.office-layout .fh-role-dialog [hidden] { display: none; }
.office-layout .fh-role-dialog [data-edit-existing] { scroll-margin-bottom: 64px; }

.office-layout.role-section-access :is([data-dialog="warehouseDialog"], [data-dialog="equipmentDialog"], [data-dialog="stocktakeDialog"], [data-dialog="itemDialog"], .delete-equipment, .delete-item, .delete-warehouse, .reverse-movement, .stocktake-notice, #turnoverExcel, .stocktake-lines :is(th,td):nth-child(4)) { display: none; }
.office-layout.role-section-access .metric-card:disabled { cursor: default; }
.office-layout.role-section-access .metric-card:disabled i { display: none; }
.office-layout .section-back { flex: 0 0 auto; font-size: 18px; line-height: 1; }
.office-layout .section-back[hidden] { display: none; }
.office-layout :is([data-sales-owner], .sale-create-client, .sale-create-channel, .compact-filters label)[hidden] { display: none; }
.office-layout .achievements-card [hidden] { display: none; }
.office-layout .achievements-card .achievement-summary > span strong { color: var(--ink); }
.office-layout .achievements-card .achievement-tile small,
.office-layout .achievements-card .achievement-tile em { font-size: 12px; line-height: 1.4; }
.office-layout .achievements-card .achievement-tile progress { height: 10px; }
.sale-document-downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.sale-document-downloads[hidden] { display: none; }
.sale-document-downloads small { color: var(--muted); }

@media (max-width: 600px) {
  .office-layout:not(.authenticated) .login-screen { padding-top: max(58px, 6dvh); }
  .office-layout #teamInviteDialog .team-dialog-actions button { width: 100%; }
  .office-layout #teamInviteDialog .team-row-actions button { min-height: 38px; }
  .office-layout .owner-dashboard .od-refresh { margin-left: 0; }
  .office-layout .owner-dashboard .od-periods { flex-wrap: wrap; }
}

.office-layout .topbar { justify-content: flex-start; gap: 12px; }
.office-layout .topbar .top-actions { margin-inline-start: auto; }
.office-layout .fh-install-steps {
  display: grid;
  gap: 10px;
  margin-block: 6px 0;
  padding-inline-start: 24px;
  line-height: 1.5;
}
.office-layout .section-back:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  height: 36px;
  min-height: 36px;
  flex: none;
  font-size: 13px;
}
.office-layout .section-back > span:first-child { font-size: 17px; line-height: 1; }

.office-layout [data-page="calendar"] { container: office-calendar / inline-size; }
.office-layout [data-page="calendar"] .calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(235px, 1fr);
  gap: 16px;
  overflow: visible;
}
.office-layout [data-page="calendar"] :is(.calendar-card, .calendar-agenda) {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.office-layout [data-page="calendar"] .calendar-agenda { padding: 16px; }
.office-layout .calendar-toolbar,
.office-layout .calendar-agenda-heading {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}
.office-layout .calendar-toolbar { padding: 14px 16px; }
.office-layout .calendar-agenda-heading { margin-bottom: 14px; }
.office-layout :is(.calendar-toolbar, .calendar-agenda-heading) h2 { margin: 0; font-size: 16px; }
.office-layout #calendarMonth { text-transform: capitalize; }
.office-layout #calendarCaption { color: var(--muted); font-variant-numeric: tabular-nums; }
.office-layout .calendar-navigation { display: inline-flex; gap: 5px; }
.office-layout .calendar-navigation .secondary { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.office-layout [data-page="calendar"] .calendar-weekdays span {
  padding: 8px 0;
  text-transform: none;
  font-size: 11px;
}
.office-layout [data-page="calendar"] .calendar-day {
  display: grid;
  align-content: start;
  grid-template-rows: 25px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 92px;
  padding: 6px;
  gap: 3px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}
.office-layout [data-page="calendar"] .calendar-day:nth-child(7n) { border-right: 0; }
.office-layout [data-page="calendar"] .calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.office-layout [data-page="calendar"] .calendar-day.outside { background: var(--bg); color: var(--muted); }
.office-layout button.calendar-day:hover { background: color-mix(in srgb, var(--lilac) 11%, var(--panel)); }
.office-layout button.calendar-day:focus-visible { outline: 2px solid var(--office-focus); outline-offset: -2px; }
.office-layout .calendar-number { display: grid; place-items: center; width: 25px; height: 25px; font-size: 13px; }
.office-layout .calendar-events { display: grid; align-content: start; gap: 3px; min-width: 0; overflow: hidden; }
.office-layout [data-page="calendar"] .calendar-event {
  margin: 0;
  padding: 3px 5px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--lilac) 16%, var(--panel));
  color: var(--ink);
  font-size: 10px;
}
.office-layout .calendar-event time { font-variant-numeric: tabular-nums; font-weight: 650; }
.office-layout .calendar-more { justify-self: start; }
.office-layout .calendar-agenda-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.office-layout .calendar-agenda-row .meeting-agenda-row { flex: 1 1 180px; min-width: 0; }
.office-layout .calendar-agenda-row .meeting-agenda-row b { overflow-wrap: anywhere; }
.office-layout .meeting-remove { color: var(--red); }

@container office-calendar (max-width: 820px) {
  .office-layout [data-page="calendar"] .calendar-layout { grid-template-columns: minmax(0, 1fr); }
}
@container office-calendar (max-width: 475px) {
  .office-layout [data-page="calendar"] .calendar-toolbar { padding: 10px; }
  .office-layout [data-page="calendar"] .calendar-day { height: 59px; padding: 3px; }
  .office-layout [data-page="calendar"] .calendar-event:not(.calendar-more) {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 50%;
    background: var(--lilac);
    color: transparent;
  }
  .office-layout .calendar-events { display: flex; align-items: center; }
  .office-layout .calendar-more { line-height: 1; }
}
@media (max-width: 520px) {
  .office-layout .topbar { gap: 6px; }
  .office-layout .section-back-label { display: none; }
}

/* Sales overview */
.office-layout [data-page="sales-overview"] .page-heading { align-items: end; }
.office-layout [data-page="sales-overview"] [data-sales-status]:empty { display: none; }
.sales-overview-totals,
.sales-overview-directions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.sales-overview-totals { margin-bottom: 18px; }
.office-layout .sales-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 7px 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.office-layout .sales-overview-card:hover { border-color: var(--muted); }
.sales-overview-card strong {
  grid-column: 1 / -1;
  font-size: clamp(1.25rem, 1rem + .5vw, 1.65rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.sales-overview-card small { grid-column: 1 / -1; color: var(--muted); }
.sales-overview-card i { color: var(--muted); font-style: normal; }
#bankForm .inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#bankPreview:not([hidden]) { margin-top: 12px; }

/* WB plan grid */
.office-layout .wbp-edit-scroll { max-height: min(65vh, 650px); margin-bottom: 10px; }
.office-layout .wbp-edit-scroll table { width: max-content; min-width: 100%; }
.office-layout .wbp-edit-scroll thead th,
.office-layout .wbp-edit-scroll tbody th {
  position: sticky;
  background: var(--panel);
}
.office-layout .wbp-edit-scroll thead th { top: 0; z-index: 2; }
.office-layout .wbp-edit-scroll tr > :first-child { left: 0; }
.office-layout .wbp-edit-scroll thead th:first-child { z-index: 3; }
.office-layout .wbp-edit-scroll tbody th { z-index: 1; max-width: 230px; white-space: normal; }
.office-layout .wbp-edit-scroll :is(td, th) { border: 1px solid var(--line); padding: 8px; }
.office-layout .wbp-edit-scroll td:has(input) { padding: 0; }
.office-layout .wbp-edit-scroll input {
  box-sizing: border-box;
  width: 126px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding: 8px;
}
.office-layout .wbp-edit-scroll input:focus {
  outline: none;
  border-color: var(--lilac);
}
.office-layout .wbp-edit-scroll input.wbp-edited { background: color-mix(in srgb, var(--lilac) 16%, transparent); }
.office-layout .wbp-edit-scroll input[aria-invalid="true"] { border-color: var(--red, #c04743); }
.office-layout .wbp-edit-scroll .wbp-calculated { text-align: right; color: var(--muted); }
.wbp-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wbp-edit-actions [data-draft-total] { flex: 1 1 200px; font-weight: 600; }

/* Avito fulfillment desk */
[data-page="avito-orders"] .avito-workbench-heading {
  align-items: center;
}

[data-page="avito-orders"] .avito-workbench-tabs {
  margin-bottom: 12px;
}

[data-page="avito-orders"] .avito-queue-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 1px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

[data-page="avito-orders"] .avito-queue-summary[hidden],
[data-page="avito-orders"] .avito-print-panel[hidden] {
  display: none;
}

[data-page="avito-orders"] .avito-queue-summary > div {
  padding: 14px 16px;
  background: var(--panel);
}

[data-page="avito-orders"] .avito-queue-summary dt {
  color: var(--dim, var(--ink));
  font-size: 13px;
}

[data-page="avito-orders"] .avito-queue-summary dd {
  margin: 6px 0 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

[data-page="avito-orders"] .avito-workbench-status {
  margin: 0 0 12px;
  color: var(--dim, var(--ink));
  line-height: 1.5;
}

[data-page="avito-orders"] .avito-workbench-status:empty {
  display: none;
}

[data-page="avito-orders"] .avito-queue-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

[data-page="avito-orders"] .avito-queue-tools[hidden] {
  display: none;
}

[data-page="avito-orders"] .avito-queue-tools input {
  min-width: 0;
  flex: 1 1 240px;
}

[data-page="avito-orders"] .avito-queue-tools [aria-pressed="true"] {
  border-color: var(--lilac);
  background: color-mix(in srgb, var(--lilac) 14%, var(--panel));
}

[data-page="avito-orders"] .avito-order-list td {
  vertical-align: middle;
}

[data-page="avito-orders"] .avito-order-list td:nth-child(2) {
  min-width: 194px;
  white-space: normal;
}

[data-page="avito-orders"] .avito-order-product {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}

[data-page="avito-orders"] .avito-photo-trigger {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  cursor: zoom-in;
}

[data-page="avito-orders"] .avito-photo-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-page="avito-orders"] .avito-edit-field {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

[data-page="avito-orders"] .avito-order-list td input {
  width: min(10rem, 100%);
}

[data-page="avito-orders"] .avito-item-note {
  display: block;
  margin-top: 4px;
  max-width: 12rem;
  white-space: normal;
  color: var(--dim, var(--ink));
}

[data-page="avito-orders"] .avito-photo-preview {
  width: min(760px, 94vw);
  max-height: 88vh;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--ink);
}

[data-page="avito-orders"] .avito-photo-preview::backdrop {
  background: rgba(15, 19, 31, .66);
}

[data-page="avito-orders"] .avito-photo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

[data-page="avito-orders"] .avito-photo-heading h2 {
  margin: 0;
}

[data-page="avito-orders"] .avito-photo-frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

[data-page="avito-orders"] .avito-photo-frames figure {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 130px;
}

[data-page="avito-orders"] .avito-photo-frames img {
  max-width: 100%;
  max-height: 48vh;
  object-fit: contain;
}

[data-page="avito-orders"] .avito-selection-bar {
  position: sticky;
  top: 8px;
  z-index: 3;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

[data-page="avito-orders"] .avito-selection-bar [data-avito-selection-note] {
  flex: 1 0 100%;
  color: var(--muted);
}

[data-page="avito-orders"] .avito-order-heading {
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
}

[data-page="avito-orders"] .avito-order-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
}

[data-page="avito-orders"] .avito-order-description {
  display: grid;
  min-width: 0;
  flex: 1 1 220px;
  gap: 3px;
  overflow-wrap: anywhere;
}

[data-page="avito-orders"] .avito-order-description small,
[data-page="avito-orders"] .avito-batches-panel li span,
[data-page="avito-orders"] .avito-print-panel p {
  color: var(--dim, var(--ink));
  font-weight: 400;
}

[data-page="avito-orders"] .avito-order-badge {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 650;
}

[data-page="avito-orders"] .avito-order-badge[data-state="ready"] {
  border-color: color-mix(in srgb, #228754 34%, var(--line));
  background: color-mix(in srgb, #228754 12%, var(--panel));
}

[data-page="avito-orders"] .avito-order-badge[data-state="check"] {
  border-color: color-mix(in srgb, #c18420 35%, var(--line));
  background: color-mix(in srgb, #c18420 12%, var(--panel));
}

[data-page="avito-orders"] .avito-print-panel {
  display: grid;
  gap: 14px;
  border-inline-start: 3px solid var(--lilac);
}

[data-page="avito-orders"] .avito-print-panel h2,
[data-page="avito-orders"] .avito-print-panel p {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

[data-page="avito-orders"] .avito-print-actions,
[data-page="avito-orders"] .avito-batches-panel li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

[data-page="avito-orders"] .avito-batches-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-page="avito-orders"] [data-avito-settings] {
  margin-top: 14px;
}

.avito-report-metrics { margin: 16px 0; }
.avito-report-metrics > div { display: grid; gap: 6px; }
.avito-report-metrics strong { font-size: 1.4rem; }
.avito-report-metrics small { opacity: .78; }
.avito-trend { display: flex; align-items: end; gap: 4px; overflow-x: auto; margin: 14px 0; }
.avito-trend:empty { display: none; }
.avito-chart-column { min-width: 38px; flex: 1 0 38px; height: 160px; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; }
.avito-chart-column span { width: 66%; max-height: 130px; min-height: 0; background: #7062d4; border-radius: 5px 5px 0 0; }
.avito-chart-column small { line-height: 1; white-space: nowrap; font-size: .66rem; }

.avito-desk [hidden] { display: none !important; }
.avito-desk-tabs button[aria-pressed="true"] {
  border-color: currentColor;
  font-weight: 700;
}
.avito-desk-list { display: grid; gap: 10px; }
.avito-desk-row {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line, #dbe2ea);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.avito-desk-row p { margin: 0; white-space: pre-wrap; }
.avito-desk [data-avd-pagination] { margin-top: 12px; }

.avito-reply-form {
  display: grid;
  gap: 8px;
  width: min(100%, 640px);
}
.avito-reply-form textarea {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 8px;
  font: inherit;
  resize: vertical;
}

.avito-listing-funnel {
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}
.avito-listing-funnel h3 {
  margin: 0 0 .95rem;
  font-size: 1.24rem;
  letter-spacing: -.02em;
}
.avito-funnel-controls {
  margin-bottom: .45rem;
}
.avito-funnel-period {
  margin: .55rem 0 1rem;
  color: var(--muted);
  font-size: .79rem;
}
.avito-funnel-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}
.avito-listing-funnel [data-tone="traffic"] { --funnel-tone: var(--blue); }
.avito-listing-funnel [data-tone="sales"] { --funnel-tone: var(--green); }
.avito-listing-funnel [data-tone="cost"] { --funnel-tone: var(--lilac); }
.avito-funnel-kpi {
  display: grid;
  align-content: start;
  gap: .32rem;
  padding: .8rem .85rem;
  border: 1px solid color-mix(in srgb, var(--funnel-tone) 37%, var(--line));
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--funnel-tone) 15%, var(--panel)), var(--panel) 82%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--funnel-tone) 30%, transparent),
    0 6px 20px color-mix(in srgb, var(--funnel-tone) 8%, transparent);
}
.avito-funnel-kpi > span,
.avito-funnel-kpi small {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.25;
}
.avito-funnel-kpi strong {
  color: color-mix(in srgb, var(--funnel-tone) 42%, var(--ink));
  font-size: clamp(1.1rem, 2.1vw, 1.65rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}
.avito-funnel-efficiency {
  margin-top: .7rem;
  padding: .85rem .9rem;
  border: 1px solid color-mix(in srgb, var(--lilac) 24%, var(--line));
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--lilac) 8%, var(--panel)), var(--panel) 75%);
}
.avito-funnel-efficiency h4 {
  margin: 0 0 .55rem;
  font-size: .88rem;
}
.avito-funnel-averages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.avito-funnel-average {
  display: grid;
  align-content: start;
  gap: .18rem;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.avito-funnel-average > span,
.avito-funnel-average small,
.avito-funnel-filter-status {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.3;
}
.avito-funnel-average strong {
  color: color-mix(in srgb, var(--lilac) 45%, var(--ink));
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.avito-funnel-efficiency .avito-funnel-rate-controls {
  flex-wrap: wrap;
  align-items: end;
  gap: .5rem;
  margin: .65rem 0 0;
}
.avito-funnel-rate-controls label {
  flex: 0 0 auto;
}
.avito-funnel-rate-controls [data-avm-listing-basis] {
  min-width: 11rem;
}
.avito-funnel-rate-controls [data-avm-listing-limit] {
  width: 8rem;
}
.avito-funnel-rate-controls button.secondary {
  min-height: 2.25rem;
  padding: .5rem .65rem;
  font-size: .79rem;
}
.avito-funnel-rate-controls button[aria-pressed="true"] {
  border-color: var(--lilac);
  background: color-mix(in srgb, var(--lilac) 16%, var(--panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lilac) 40%, transparent);
}
.avito-funnel-filter-status {
  margin: .5rem 0 0;
}
.avito-listing-table [data-avm-listing-traffic-head][hidden],
.avito-listing-table [data-avm-listing-finance-head][hidden] {
  display: none;
}
.avito-listing-table a {
  color: inherit;
  text-decoration-color: var(--lilac);
  text-underline-offset: .16em;
}
.avito-funnel-over-limit .avito-funnel-cell-value {
  color: color-mix(in srgb, var(--orange) 68%, var(--ink));
}
.avito-funnel-chart {
  margin-top: .7rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 80%, var(--bg));
}
.avito-funnel-chart h4 {
  margin: 0 0 .55rem;
  font-size: .85rem;
}
.avito-funnel-chart p {
  margin: 0;
  color: var(--muted);
  font-size: .79rem;
}
.avito-funnel-rank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(3.4rem, auto);
  align-items: center;
  gap: .7rem;
  min-height: 1.5rem;
  font-size: .76rem;
}
.avito-funnel-rank > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avito-funnel-rank strong {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}
.avito-funnel-bar {
  display: block;
  height: .28rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--funnel-tone) 15%, var(--bg));
}
.avito-funnel-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--funnel-tone) 65%, var(--bg)), var(--funnel-tone));
  box-shadow: 0 0 9px color-mix(in srgb, var(--funnel-tone) 55%, transparent);
}
.avito-funnel-progress:not([hidden]) {
  display: grid;
  grid-template-columns: auto minmax(3rem, 1fr);
  gap: .18rem .75rem;
  align-items: center;
  margin: .7rem 0;
  color: var(--muted);
  font-size: .76rem;
}
.avito-funnel-progress p,
.avito-funnel-table-head p { margin: 0; }
.avito-funnel-progress progress {
  width: 100%;
  height: .45rem;
  accent-color: var(--lilac);
}
.avito-funnel-progress [data-avm-listing-note] {
  grid-column: 1 / -1;
}
.avito-funnel-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .3rem .75rem;
  margin: .9rem 0 .45rem;
  font-size: .79rem;
  color: var(--muted);
}
.avito-funnel-table-head > p {
  color: var(--ink);
  font-weight: 650;
}
.avito-funnel-table-head summary { cursor: pointer; }
.office-layout .avito-listing-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.office-layout .avito-listing-table table {
  min-width: 75rem;
  table-layout: fixed;
}
.office-layout .avito-listing-table th,
.office-layout .avito-listing-table td {
  padding-inline: .6rem;
}
.office-layout .avito-listing-table th {
  font-size: .7rem;
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  color: color-mix(in srgb, var(--funnel-tone, var(--muted)) 42%, var(--ink));
}
.office-layout .avito-listing-table tbody tr {
  --funnel-row: var(--panel);
  background: var(--funnel-row);
}
.office-layout .avito-listing-table tbody tr:nth-child(even) {
  --funnel-row: color-mix(in srgb, var(--panel) 88%, var(--bg));
}
.office-layout .avito-listing-table tbody tr:hover {
  --funnel-row: color-mix(in srgb, var(--lilac) 8%, var(--panel));
}
.avito-funnel-cell-value {
  display: block;
  color: color-mix(in srgb, var(--funnel-tone, var(--ink)) 47%, var(--ink));
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.avito-funnel-cell-value.is-missing {
  color: var(--muted);
  font-weight: 400;
}
.avito-listing-table .avito-funnel-bar { margin-top: .32rem; }
.avito-funnel-listing-meta {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .73rem;
}
.office-layout .avito-listing-table th:first-child,
.office-layout .avito-listing-table td:first-child {
  position: sticky;
  left: 0;
  width: 11rem;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.office-layout .avito-listing-table th:first-child {
  z-index: 2;
}
.office-layout .avito-listing-table td:first-child {
  z-index: 1;
  background: var(--funnel-row);
  overflow-wrap: anywhere;
}
@media (max-width: 950px) {
  .avito-funnel-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.avito-funnel-manage { display: block; margin-top: .45rem; }
.avito-funnel-review { display: block; margin-top: .3rem; }
.avito-listing-controls { max-height: 85vh; overflow-y: auto; }
.avito-listing-control-group { padding: .8rem 0; border-top: 1px solid var(--line, #b8c4db); }
.avito-listing-control-group h3 { margin: 0 0 .5rem; }
.avito-listing-control-group .toolbar { margin: .65rem 0; }
