/* CRM demo. Direção 11 do kit frontend-expert: painel escuro, Inter na UI, JetBrains Mono em
   todo número, um azul de ação, superfícies separadas por linha de 7%. Namespaces em
   docs/css-namespaces.md. */
:root {
  --bg: #0b0d10; --surface: #12151a; --surface-2: #181c22; --ink: #e6e8ec; --ink-strong: #fff; --muted: #8b93a1;
  --line: rgba(255, 255, 255, .07); --line-strong: rgba(255, 255, 255, .14);
  --accent: #4f8cff; --accent-hover: #6ea1ff; --accent-ink: #06101f; --accent-soft: rgba(79, 140, 255, .14);
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --font-ui: 'Inter', 'Inter Fallback', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, monospace;
  --r-card: 14px; --r-control: 8px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 13.5px/1.45 var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { flex: none; }

.app-root__boot { padding: 40px; color: var(--muted); }

/* ------------------------------------------------ utilitários ui- */
.ui-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ui-muted { color: var(--muted); }
.ui-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-strong); }

.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 550; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ui-btn svg { width: 16px; height: 16px; }
.ui-btn:hover { border-color: rgba(255, 255, 255, .24); }
.ui-btn:disabled { opacity: .55; cursor: progress; }
.ui-btn.is-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ui-btn.is-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ui-btn.is-ghost { background: transparent; }
.ui-btn.is-ghost:hover { background: var(--surface-2); }
.ui-btn.is-danger { color: var(--bad); }
.ui-btn.is-small { height: 30px; padding: 0 10px; font-size: 12.5px; }
.ui-btn.is-icon { width: 34px; height: 34px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); }
.ui-btn.is-icon:hover { color: var(--ink-strong); background: var(--surface-2); }
.ui-btn.is-wide { width: 100%; height: 42px; }

.ui-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.ui-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.ui-chip.is-bad { color: var(--bad); background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .22); }
.ui-chip.is-warn { color: var(--warn); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .22); }
.ui-chip.is-ok { color: var(--ok); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .22); }

.ui-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hover); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.ui-avatar.is-empty { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong); }

.ui-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ui-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 550; cursor: pointer; white-space: nowrap; }
.ui-seg button span { margin-left: 4px; font-family: var(--font-mono); font-size: 11px; opacity: .75; }
.ui-seg button:hover { color: var(--ink-strong); }
.ui-seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ------------------------------------------------ casca */
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.app-shell__side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 20px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--surface); }
.app-shell__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--ink-strong); font-weight: 700; font-size: 15px; letter-spacing: -.01em; text-decoration: none; }
.app-shell__brand small { margin-left: 2px; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-hover); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.app-shell__logo { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--accent) url("favicon.svg") center / cover; }
.app-shell__nav { display: grid; gap: 2px; }
.app-shell__nav a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: var(--r-control); color: var(--muted); font-weight: 550; text-decoration: none; }
.app-shell__nav a svg { width: 18px; height: 18px; }
.app-shell__nav a:hover { color: var(--ink-strong); background: var(--surface-2); }
.app-shell__nav a.is-active { color: var(--ink-strong); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.app-shell__nav a.is-active svg { color: var(--accent-hover); }
.app-shell__count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(248, 113, 113, .16); color: var(--bad); font: 600 11px/1.5 var(--font-mono); text-align: center; }
.app-shell__user { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.app-shell__who { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
.app-shell__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); font-weight: 600; font-size: 12.5px; }
.app-shell__who span { color: var(--muted); font-size: 11.5px; }
.app-shell__main { min-width: 0; padding: 26px clamp(16px, 3vw, 36px) 48px; }

/* ------------------------------------------------ cabeçalho de página */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.page-head h1 { margin: 0; color: var(--ink-strong); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head p::first-letter { text-transform: uppercase; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------ KPIs */
.kpi-row { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi-tile { position: relative; min-width: 0; padding: 16px 18px 15px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.kpi-tile span { color: var(--muted); font-size: 12px; font-weight: 550; }
.kpi-tile strong { display: block; margin: 6px 0 4px; color: var(--ink-strong); font: 600 clamp(20px, 2.1vw, 27px)/1.1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-tile p { margin: 0; color: var(--muted); font-size: 12px; }
.kpi-tile.is-hero { background: linear-gradient(160deg, rgba(79, 140, 255, .16), rgba(79, 140, 255, .02) 60%), var(--surface); border-color: rgba(79, 140, 255, .28); }
.kpi-tile.is-hero strong { font-size: clamp(28px, 3vw, 38px); }
.kpi-tile.is-alert { background: linear-gradient(160deg, rgba(248, 113, 113, .16), rgba(248, 113, 113, .02) 60%), var(--surface); border-color: rgba(248, 113, 113, .3); }
.kpi-tile.is-alert strong { color: var(--bad); }

/* ------------------------------------------------ grade do painel e cards */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dash-grid__side { display: grid; gap: 14px; min-width: 0; }
.panel-card { min-width: 0; padding: 16px 18px 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.panel-card.is-flush { padding: 0; overflow: hidden; }
.panel-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.panel-card__head h2 { margin: 0; color: var(--ink-strong); font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.panel-card__head a { font-size: 12px; text-decoration: none; }
.panel-card__head a:hover { text-decoration: underline; }

.empty-state { display: grid; justify-items: center; gap: 12px; padding: 36px 16px; text-align: center; color: var(--muted); }
.empty-state p { margin: 0; }

/* ------------------------------------------------ lista de tarefas */
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list__group { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.task-list__group:first-of-type { margin-top: 6px; }
.task-list__group span { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.task-list__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.task-list__group + .task-list .task-list__row:first-child { border-top: 0; }
.task-list__check { display: grid; place-items: center; width: 20px; height: 20px; flex: none; padding: 0; border-radius: 6px; border: 1.5px solid var(--line-strong); background: transparent; color: transparent; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.task-list__check svg { width: 13px; height: 13px; stroke-width: 2.6; }
.task-list__check:hover { border-color: var(--ok); color: rgba(52, 211, 153, .6); }
.task-list__body { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 2px 4px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.task-list__body:hover strong { color: var(--accent-hover); }
.task-list__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); font-weight: 550; }
.task-list__body span { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.task-list__body span svg { width: 13px; height: 13px; }
.task-list__meta { display: flex; align-items: center; gap: 8px; flex: none; }
.task-list__row.is-done .task-list__check { background: var(--ok); border-color: var(--ok); color: #05281c; }
.task-list__row.is-done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* ------------------------------------------------ barras (funil e carga) */
.stage-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stage-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label count" "track track" "value value"; gap: 5px 10px; }
.stage-bars span { grid-area: label; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-weight: 550; }
.stage-bars b { grid-area: count; font: 500 12px var(--font-mono); color: var(--ink-strong); }
.stage-bars em { grid-area: value; font: normal 11.5px var(--font-mono); color: var(--muted); }
.stage-bars__track { grid-area: track; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.stage-bars__track i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.stage-bars__track i.is-bad { background: linear-gradient(90deg, var(--accent), var(--bad)); }
.stage-bars.is-team .ui-avatar { width: 22px; height: 22px; font-size: 9.5px; }

/* ------------------------------------------------ filtros */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.filter-bar__field select, .filter-bar__search input { height: 38px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface); }
.filter-bar__field select { padding: 0 10px; }
.filter-bar__search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.filter-bar__search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.filter-bar__search input { width: 100%; padding: 0 12px 0 34px; }

/* ------------------------------------------------ funil (kanban) */
.deal-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.deal-board__col { display: flex; flex-direction: column; min-height: 420px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); scroll-snap-align: start; transition: border-color .15s, background .15s; }
.deal-board__col.is-over { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); }
.deal-board__head { display: flex; align-items: center; gap: 8px; padding: 13px 14px 11px; border-bottom: 1px solid var(--line); }
.deal-board__head::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--stage, var(--muted)); }
.deal-board__head h2 { margin: 0; color: var(--ink-strong); font-size: 13px; font-weight: 650; }
.deal-board__head span { font: 500 11.5px var(--font-mono); color: var(--muted); }
.deal-board__head em { margin-left: auto; font: normal 11.5px var(--font-mono); color: var(--muted); }
.deal-board__col.is-qualificado { --stage: #a78bfa; }
.deal-board__col.is-proposta { --stage: var(--accent); }
.deal-board__col.is-negociacao { --stage: var(--warn); }
.deal-board__col.is-ganho { --stage: var(--ok); }
.deal-board__col.is-perdido { --stage: var(--bad); }
.deal-board__list { flex: 1; display: grid; align-content: start; gap: 8px; padding: 10px; }
.deal-board__empty { margin: 0; padding: 22px 8px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 12px; text-align: center; }

.deal-card { border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: grab; transition: border-color .15s, transform .15s, opacity .15s; }
.deal-card:hover { border-color: var(--line-strong); }
.deal-card.is-dragging { opacity: .45; transform: scale(.98); }
.deal-card__open { display: grid; gap: 3px; width: 100%; padding: 11px 12px 8px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.deal-card__open strong { color: var(--ink-strong); font-weight: 600; line-height: 1.3; }
.deal-card__open span { color: var(--muted); font-size: 12px; }
.deal-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 12px 11px; }
.deal-card__foot b { margin-right: auto; font: 600 12.5px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.deal-card__foot .ui-avatar { width: 22px; height: 22px; font-size: 9.5px; }

/* ------------------------------------------------ tabela */
.data-table { overflow-x: auto; }
.data-table table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { position: sticky; top: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.data-table td > strong, .data-table__who strong { display: block; color: var(--ink-strong); font-weight: 600; }
.data-table td > span:not(.ui-chip):not(.ui-muted):not(.data-table__who), .data-table__who span span { display: block; color: var(--muted); font-size: 12px; }
.data-table td.is-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; }
.data-table td.is-action { text-align: right; width: 1%; white-space: nowrap; }
.data-table__who { display: flex; align-items: center; gap: 9px; }

/* ------------------------------------------------ diálogo e formulários */
.form-dialog { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.form-dialog::backdrop { background: rgba(4, 6, 9, .66); backdrop-filter: blur(3px); }
.form-dialog[open] { animation: dialogIn .18s ease-out; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.form-dialog__form { display: grid; gap: 0; }
.form-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.form-dialog__head h2 { margin: 0; color: var(--ink-strong); font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.form-dialog__body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 16px 18px; }
.form-dialog__field { display: grid; gap: 6px; min-width: 0; }
.form-dialog__field.is-wide { grid-column: 1 / -1; }
.form-dialog__field > span { color: var(--muted); font-size: 12px; font-weight: 550; }
.form-dialog__field input, .form-dialog__field select, .form-dialog__field textarea { width: 100%; min-height: 38px; padding: 8px 11px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--bg); }
.form-dialog__field textarea { resize: vertical; }
.form-dialog__field input:focus, .form-dialog__field select:focus, .form-dialog__field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form-dialog__check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-weight: 550; cursor: pointer; }
.form-dialog__check input { width: 16px; height: 16px; accent-color: var(--ok); }
.form-dialog__hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.form-dialog__error { margin: 0 18px 12px; padding: 9px 12px; border-radius: var(--r-control); background: rgba(248, 113, 113, .1); color: var(--bad); font-size: 12.5px; }
.form-dialog__foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.form-dialog__foot span { flex: 1; }
.form-dialog__related { margin: 0 18px 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.form-dialog__related header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.form-dialog__related h3 { margin: 0; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.form-dialog__related .task-list__row:first-child { border-top: 0; }
.form-dialog__related > p { margin: 6px 0 2px; font-size: 12.5px; }

/* ------------------------------------------------ login */
.login-screen { display: grid; grid-template-columns: 1.1fr minmax(340px, .9fr); min-height: 100dvh; }
.login-screen__pitch { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(28px, 6vw, 80px); overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(900px 500px at 10% 0%, rgba(79, 140, 255, .18), transparent 60%), var(--surface); }
.login-screen__pitch h2 { max-width: 16ch; margin: 0; color: var(--ink-strong); font-size: clamp(30px, 3.6vw, 48px); font-weight: 750; letter-spacing: -.035em; line-height: 1.05; }
.login-screen__preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.login-screen__col { display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11, 13, 16, .55); }
.login-screen__col span { color: var(--muted); font-size: 11px; font-weight: 600; }
.login-screen__col i { display: block; height: 34px; width: var(--w, 80%); border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }
.login-screen__col i.is-won { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .3); }
.login-screen__form { align-self: center; justify-self: center; display: grid; gap: 14px; width: min(380px, 100%); padding: 32px 24px; }
.login-screen__form h1 { margin: 0; color: var(--ink-strong); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.login-screen__form > p { margin: -8px 0 6px; color: var(--muted); }
.login-screen__form .form-dialog__error { margin: 0; }

/* ------------------------------------------------ aviso */
.toast-msg { position: fixed; left: 50%; bottom: 22px; z-index: 50; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(52, 211, 153, .3); background: #0f1f19; color: var(--ok); font-weight: 550; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.toast-msg.is-bad { border-color: rgba(248, 113, 113, .35); background: #2a1414; color: var(--bad); }

/* ------------------------------------------------ responsivo */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .app-shell__side { position: sticky; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-shell__nav { order: 3; width: 100%; display: flex; gap: 4px; overflow-x: auto; margin: 0 -4px; padding: 0 4px 2px; scrollbar-width: none; }
  .app-shell__nav a { flex: none; height: 34px; }
  .app-shell__nav a.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
  .app-shell__user { margin: 0 0 0 auto; padding: 0; border: 0; }
  .app-shell__who { display: none; }
  .app-shell__main { padding-top: 20px; }
  .login-screen { grid-template-columns: minmax(0, 1fr); }
  .login-screen__pitch { gap: 18px; padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-screen__preview { display: none; }
  .deal-board { grid-auto-columns: minmax(240px, 82vw); }
}
@media (max-width: 560px) {
  .form-dialog__body { grid-template-columns: minmax(0, 1fr); }
  .task-list__row { flex-wrap: wrap; }
  .task-list__body { flex-basis: calc(100% - 30px); }
  .task-list__meta { width: 100%; padding-left: 30px; }
  .page-head__actions { width: 100%; }
  .page-head__actions .ui-btn { flex: 1; }
  .filter-bar .ui-seg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
