/* Sistema Lush — estilo próprio. Tema escuro, roxo da marca e lima como apoio. */
:root {
  --bg: #0c0b10;
  --bg-2: #121019;
  --surface: #17141f;
  --surface-2: #1f1b2a;
  --line: #2b2638;
  --line-2: #3a3350;
  --text: #efecf6;
  --muted: #9c95b0;
  --faint: #6f6885;
  --accent: #9b30ff;
  --accent-2: #b98cff;
  --accent-soft: rgba(155, 48, 255, .16);
  --lime: #b6f03c;
  --ok: #3ecf8e;
  --warn: #f5b942;
  --err: #ff5d6c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
p { margin: 0; }
small { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.late { color: var(--err); }
.right { margin-left: auto; }
.grow { flex: 1 1 auto; min-width: 0; }
.ic { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: baseline; gap: 8px; padding: 4px 10px 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-word { font: 700 26px/1 var(--serif); letter-spacing: -.02em; }
.brand-word i { color: var(--lime); font-style: normal; }
.brand-sub { font: italic 13px var(--serif); color: var(--muted); }
.brand.big { justify-content: center; padding: 0; }
.brand.big .brand-word { font-size: 44px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav a .pill { margin-left: auto; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--text); padding: 6px; border-radius: var(--radius-sm); }
.me:hover { background: var(--surface); text-decoration: none; }
.me span { display: flex; flex-direction: column; min-width: 0; }
.me b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(12, 11, 16, .88); backdrop-filter: blur(10px); z-index: 20; }
.top h1 { font-size: 19px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.page { padding: 24px 28px 64px; display: flex; flex-direction: column; gap: 20px; }
.only-mobile, .btn.only-mobile { display: none; }

/* ---------- botões e marcações ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent-2); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #a94bff; }
.btn.lime { background: var(--lime); border-color: var(--lime); color: #16210a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--err); border-color: rgba(255, 93, 108, .4); background: transparent; }
.btn.danger:hover { background: rgba(255, 93, 108, .12); }
.btn.sm { padding: 5px 9px; font-size: 12px; }
.btn.block { width: 100%; padding: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.bell { position: relative; }
.bell b { position: absolute; top: -2px; right: -2px; background: var(--err); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 12px; }
.chip.coin { color: var(--lime); border-color: rgba(182, 240, 60, .35); }
.chip:hover { text-decoration: none; border-color: var(--accent-2); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); white-space: nowrap; }
.pill.warn { background: rgba(245, 185, 66, .14); color: var(--warn); border-color: rgba(245, 185, 66, .4); }
.pill.ok { background: rgba(62, 207, 142, .14); color: var(--ok); border-color: rgba(62, 207, 142, .4); }
.pill.err { background: rgba(255, 93, 108, .14); color: var(--err); border-color: rgba(255, 93, 108, .4); }
.pill.ai { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(155, 48, 255, .45); }
.pill.lime { background: rgba(182, 240, 60, .12); color: var(--lime); border-color: rgba(182, 240, 60, .35); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--c, #888) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c, #888) 45%, transparent); white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #888); }
.av { --c: var(--accent); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, #15121d); color: #fff; border: 1px solid color-mix(in srgb, var(--c) 70%, transparent); font-size: 11px; font-weight: 700; flex: none; }
.av.sm { width: 22px; height: 22px; font-size: 9.5px; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -7px; }

/* ---------- blocos ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card > h2 { margin-bottom: 12px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cols-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.rowx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rowx.tight { flex-wrap: nowrap; white-space: nowrap; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat small { display: block; text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; font-weight: 600; }
.stat b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat.accent b { color: var(--accent-2); }
.stat.lime b { color: var(--lime); }
.stat.err b { color: var(--err); }
.stat.warn b { color: var(--warn); }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--lime)); border-radius: 4px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty h2 { color: var(--text); }
.flash { margin: 14px 28px 0; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(62, 207, 142, .4); background: rgba(62, 207, 142, .1); color: #b8f3d8; }
.flash.err { border-color: rgba(255, 93, 108, .45); background: rgba(255, 93, 108, .1); color: #ffc2c8; }
.flash.warn { border-color: rgba(245, 185, 66, .45); background: rgba(245, 185, 66, .1); color: #ffe2a6; }
.banner { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner.warn { border-color: rgba(245, 185, 66, .45); background: rgba(245, 185, 66, .08); }
.banner.ai { border-color: rgba(155, 48, 255, .5); background: var(--accent-soft); }
.list .row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--text); }
.list .row:last-child { border-bottom: 0; }
.list .row:hover { text-decoration: none; background: var(--surface-2); }
.list .row .grow { display: flex; flex-direction: column; }
.list .row.unread b::before { content: "● "; color: var(--lime); }

/* ---------- formulários ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: 14px var(--font); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 10px; width: 100%; }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); flex: none; }
input[type="color"] { padding: 2px; height: 34px; width: 46px; }
input:disabled { opacity: .6; }
.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 13px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hint { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 130px; padding: 6px 9px; font-size: 13px; }
.toolbar input[type="search"] { min-width: 220px; }
.toolbar input[type="checkbox"] { min-width: 0; }
.toolbar .check { gap: 6px; color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--lime); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.seg a { padding: 6px 12px; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on { background: var(--accent-soft); color: var(--text); }

/* ---------- tabela ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.t-title { font-weight: 600; color: var(--text); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-align: left; }
.t-title:hover { color: var(--accent-2); }
.t-sub { display: flex; gap: 6px; align-items: center; margin-top: 2px; flex-wrap: wrap; }

/* ---------- cartões de cliente e pack ---------- */
.tile { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); border-top: 3px solid var(--c, var(--accent)); }
a.tile:hover { text-decoration: none; border-color: var(--line-2); border-top-color: var(--c, var(--accent)); background: var(--surface-2); }
.tile h2 { font-size: 15px; }
.tile .nums { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.tile .nums b { color: var(--text); font-size: 15px; display: block; font-variant-numeric: tabular-nums; }

/* ---------- kanban ---------- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kcol { flex: 0 0 262px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.kcol-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.kcol-head small { margin-left: auto; }
.kdrop { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; flex: 1; }
.kdrop.over { background: var(--accent-soft); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line-2)); border-radius: var(--radius-sm); padding: 10px; cursor: grab; display: flex; flex-direction: column; gap: 7px; }
.kcard:hover { border-color: var(--line-2); border-left-color: var(--c, var(--line-2)); }
.kcard.dragging { opacity: .45; }
.kcard b { font-weight: 600; font-size: 13px; line-height: 1.35; }
.kcard .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }

/* ---------- calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-head { background: var(--bg-2); padding: 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; text-align: center; }
.cal-day { background: var(--surface); min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.out { background: var(--bg-2); }
.cal-day.out .cal-num { opacity: .4; }
.cal-day.today .cal-num { background: var(--accent); color: #fff; }
.cal-day.over { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.cal-num { font-size: 11.5px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.cal-item { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; text-align: left; font: 500 11.5px/1.3 var(--font); color: var(--text); background: color-mix(in srgb, var(--c, #888) 16%, var(--surface)); border: 0; border-left: 3px solid var(--c, #888); border-radius: 4px; padding: 3px 6px; cursor: pointer; overflow: hidden; overflow-wrap: anywhere; }
.cal-item:hover { background: color-mix(in srgb, var(--c, #888) 30%, var(--surface)); }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.mini-cal span { padding: 6px 0; border-radius: 6px; color: var(--muted); position: relative; font-variant-numeric: tabular-nums; }
.mini-cal .h { font-size: 10px; text-transform: uppercase; color: var(--faint); }
.mini-cal .has { color: var(--text); background: var(--surface-2); }
.mini-cal .has::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime); }
.mini-cal .today { background: var(--accent); color: #fff; }

/* ---------- gráfico de barras simples ---------- */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 130px; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: var(--accent); min-height: 3px; }
.bars div.today i { background: var(--lime); }
.bars small { font-size: 10.5px; text-transform: uppercase; }
.bars b { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---------- painel da peça ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(5, 4, 8, .6); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--bg-2); border-left: 1px solid var(--line-2); z-index: 50; overflow-y: auto; box-shadow: var(--shadow); }
.drawer-head { position: sticky; top: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 10px; align-items: flex-start; z-index: 2; }
.drawer-head .grow { display: flex; flex-direction: column; gap: 6px; }
.drawer-body { padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.dsec { display: flex; flex-direction: column; gap: 10px; }
.dsec > h3 { display: flex; align-items: center; gap: 8px; }
.title-input { font-size: 17px; font-weight: 650; background: transparent; border-color: transparent; padding: 4px 6px; margin-left: -6px; min-height: 0; resize: none; line-height: 1.3; overflow: hidden; field-sizing: content; }
.title-input:hover, .title-input:focus { border-color: var(--line-2); background: var(--bg); }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.people label { flex-direction: row; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-weight: 500; cursor: pointer; }
.people label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent-2); }
.people input { position: absolute; opacity: 0; pointer-events: none; }
.file-row, .link-row, .comment { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.comment.devolucao { border-color: rgba(255, 93, 108, .4); }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.hist { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }

/* ---------- Google Drive no painel ---------- */
.drive-list { display: flex; flex-direction: column; gap: 4px; }
.drive-file { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 12.5px; }
.drive-file:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-2); }
.drive-file img { flex: none; }
.drive-file .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
code { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }

/* ---------- barra de ações em lote ---------- */
.bulk { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--accent-2); border-radius: var(--radius); padding: 10px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow); z-index: 30; max-width: calc(100vw - 32px); }
.bulk select, .bulk input { width: auto; padding: 5px 8px; font-size: 13px; }

/* ---------- janela ---------- */
dialog.modal { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 0; width: min(640px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(5, 4, 8, .65); }
dialog.modal .card-head h2 { margin: 0; }
dialog.modal .form { padding: 18px; }
dialog.modal .foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }

/* ---------- revisão ---------- */
.review-card { border: 1px solid rgba(155, 48, 255, .45); border-radius: var(--radius); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.review-card.devolvida { border-color: rgba(245, 185, 66, .5); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.podium div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium .p1 { border-color: var(--lime); padding-top: 26px; padding-bottom: 22px; }
.podium b { font-size: 20px; color: var(--lime); font-variant-numeric: tabular-nums; }

/* ---------- entrada ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 50% -10%, rgba(155, 48, 255, .28), transparent 60%), var(--bg); }
.login { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.login .lead { text-align: center; font: italic 15px var(--serif); color: var(--muted); margin-bottom: 6px; }
.login .flash { margin: 0; }

@media (max-width: 1100px) {
  .cols-3, .cols-side { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 240px; transform: translateX(-100%); transition: transform .18s ease; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .only-mobile, .btn.only-mobile { display: inline-flex; }
  .top { padding: 12px 16px; }
  .page { padding: 16px 16px 80px; }
  .flash { margin: 12px 16px 0; }
  .cols-2 { grid-template-columns: 1fr; }
  .cal-day { min-height: 74px; }
  .cal-item { font-size: 10px; padding: 2px 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- vidro líquido (identidade Lush) ---------- */
:root {
  --glass: linear-gradient(135deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025));
  --glass-line: rgba(255, 255, 255, .11);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .03);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  --radius-lg: 22px;
}
body { background: radial-gradient(700px 520px at -6% -10%, rgba(155, 48, 255, .34), transparent 62%) fixed, radial-gradient(640px 480px at 104% 108%, rgba(182, 240, 60, .18), transparent 62%) fixed, var(--bg); }
.glass, .card, .stat, .tile, .kcol, .review-card, dialog.modal, .banner, .bulk, .login {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-lg);
  box-shadow: var(--glass-hi); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.card, .glass { padding: 20px; }
.stat { padding: 16px 18px; }
.tile { border-top: 1px solid var(--glass-line); box-shadow: var(--glass-hi), inset 0 3px 0 var(--c, var(--accent)); }
.tile:hover, a.tile:hover { border-color: rgba(255, 255, 255, .2); background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); }
.card.flush { padding: 0; }
.banner { border-radius: 14px; }
.banner.ai { background: linear-gradient(135deg, rgba(155, 48, 255, .28), rgba(155, 48, 255, .08)); border-color: rgba(185, 140, 255, .45); }
.banner.warn { background: linear-gradient(135deg, rgba(245, 185, 66, .2), rgba(245, 185, 66, .05)); }
.side { background: linear-gradient(180deg, rgba(18, 16, 25, .75), rgba(12, 11, 16, .6)); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border-right-color: var(--glass-line); }
.top { background: rgba(12, 11, 16, .55); border-bottom-color: var(--glass-line); }
.nav a.on { background: linear-gradient(90deg, rgba(155, 48, 255, .32), rgba(155, 48, 255, .08)); box-shadow: inset 2px 0 0 var(--accent), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn { background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border-color: var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.primary { background: linear-gradient(135deg, #ad55ff, #8a1cf2); border-color: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 24px rgba(155, 48, 255, .35); }
.btn.lime { background: linear-gradient(135deg, #c8ff5a, #a6e02a); border-color: rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px rgba(182, 240, 60, .3); }
.btn.ghost, .btn.danger { background: transparent; box-shadow: none; }
input, select, textarea { background: rgba(12, 11, 16, .55); border-color: var(--glass-line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.chip, .pill { backdrop-filter: blur(8px); }
.drawer { background: linear-gradient(180deg, rgba(18, 16, 25, .92), rgba(12, 11, 16, .9)); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border-left-color: var(--glass-line); }
.drawer-head { background: rgba(18, 16, 25, .7); backdrop-filter: blur(14px); }
.kcard, .file-row, .link-row, .comment, .list .row:hover { background: rgba(255, 255, 255, .05); }
.kcard { border-color: var(--glass-line); }
.kcol { border-radius: 18px; }
.stat b { font-size: 28px; }
.progress { background: rgba(255, 255, 255, .08); }
.progress i { box-shadow: 0 0 14px rgba(182, 240, 60, .45); }
.cal { background: var(--glass-line); border-color: var(--glass-line); border-radius: 18px; }
.cal-day { background: rgba(23, 20, 31, .85); }
.cal-day.out { background: rgba(12, 11, 16, .7); }
.cal-head { background: rgba(18, 16, 25, .9); }
.login-body { background: radial-gradient(900px 500px at 50% -10%, rgba(155, 48, 255, .35), transparent 60%), radial-gradient(600px 400px at 90% 100%, rgba(182, 240, 60, .18), transparent 60%), var(--bg); }

/* ---------- início (dashboard) ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.dash > section { min-width: 0; }
.dash > section > h2, .dash .rowx h2 { font-size: 17px; }
.dash .rowx { margin-bottom: 12px; }
.dash-hero { grid-column: span 8; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: center; overflow: hidden; position: relative;
  background: linear-gradient(120deg, rgba(155, 48, 255, .34) 0%, rgba(155, 48, 255, .1) 42%, rgba(182, 240, 60, .16) 100%), var(--glass); }
.dash-hero::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(182, 240, 60, .35), transparent 68%); pointer-events: none; }
.dash-hello h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.dash-hello p { color: var(--muted); margin-top: 8px; }
.dash-hello b { color: var(--text); }
.dash-ring { --p: 0; margin-top: 16px; width: 108px; height: 108px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); position: relative; box-shadow: 0 0 24px rgba(182, 240, 60, .25); }
.dash-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(18, 16, 25, .85); }
.dash-ring b, .dash-ring small { position: relative; display: block; }
.dash-ring b { font-size: 20px; }
.dash-ring small { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow-wrap: normal; max-width: 80px; overflow: hidden; }
.dash-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 1; padding-top: 22px; }
.dash-stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 26px 10px 16px; border-radius: 20px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 30px rgba(0, 0, 0, .25); }
.dash-stat:hover { text-decoration: none; border-color: var(--accent-2); transform: translateY(-2px); transition: transform .15s ease, border-color .15s ease; }
.dash-stat-ic { position: absolute; top: -20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ad55ff, #8a1cf2); color: #fff; box-shadow: 0 8px 20px rgba(155, 48, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.dash-stat.hot .dash-stat-ic { background: linear-gradient(135deg, #ff7a86, #e2344a); box-shadow: 0 8px 20px rgba(255, 93, 108, .4); }
.dash-stat-label { font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.dash-stat small { color: var(--muted); font-size: 11.5px; }
.dash-stat b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dash-delta { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.dash-delta.up { color: var(--lime); background: rgba(182, 240, 60, .14); }
.dash-delta.down { color: var(--err); background: rgba(255, 93, 108, .14); }
.dash-stat.hot .dash-delta.up { color: var(--err); background: rgba(255, 93, 108, .14); }
.dash-stat.hot .dash-delta.down { color: var(--lime); background: rgba(182, 240, 60, .14); }
.dash-stat-cta { min-width: 0; justify-content: space-between; align-items: flex-start; text-align: left; padding: 18px 12px; overflow-wrap: normal; background: linear-gradient(135deg, #ad55ff, #7a12e0); border-color: rgba(255, 255, 255, .3); font-weight: 700; font-size: 17px; line-height: 1.15; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 34px rgba(155, 48, 255, .45); }
.dash-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); margin-top: 10px; }

.dash-week { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.dash-week-total { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.dash-week-total b { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-week-total span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.dash-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; flex: 1; min-height: 190px; padding-top: 34px; }
.dash-bar { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.dash-bar i { display: block; width: 100%; max-width: 46px; border-radius: 14px; background: linear-gradient(180deg, rgba(185, 140, 255, .38), rgba(185, 140, 255, .14)); border: 1px solid rgba(255, 255, 255, .08); min-height: 10px; transition: height .3s ease; }
.dash-bar.today i { background: linear-gradient(180deg, #ad55ff, #7a12e0); box-shadow: 0 10px 26px rgba(155, 48, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.dash-bar.top:not(.today) i { background: linear-gradient(180deg, rgba(182, 240, 60, .55), rgba(182, 240, 60, .18)); }
.dash-bar small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.dash-tip { position: absolute; top: -8px; transform: translateY(-100%); background: #0c0b10; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; white-space: nowrap; border: 1px solid var(--glass-line); }
.dash-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; background: #0c0b10; transform: rotate(45deg); border-right: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); }

.dash-agenda { grid-column: span 8; }
.dash-tl { display: flex; flex-direction: column; }
.dash-tl-row { display: grid; grid-template-columns: 170px repeat(7, minmax(0, 1fr)); align-items: stretch; border-top: 1px solid var(--glass-line); }
.dash-tl-head { border-top: 0; padding-bottom: 6px; }
.dash-tl-client { display: flex; align-items: center; padding: 10px 8px 10px 0; min-width: 0; }
.dash-tl-client .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dash-tl-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; }
.dash-tl-day b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; color: var(--muted); border: 1px solid transparent; }
.dash-tl-day small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.dash-tl-day.today b { color: var(--text); border-color: var(--accent-2); background: var(--accent-soft); }
.dash-tl-cell { display: flex; flex-direction: column; gap: 4px; padding: 6px 3px; border-left: 1px dashed rgba(255, 255, 255, .07); min-height: 44px; }
.dash-tl-cell.today { background: rgba(155, 48, 255, .07); }
.dash-tl-pill { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c, #888) 55%, transparent);
  background: color-mix(in srgb, var(--c, #888) 20%, rgba(255, 255, 255, .04)); color: var(--text); font: 500 11.5px/1.3 var(--font); cursor: pointer; text-align: left; }
.dash-tl-pill:hover { background: color-mix(in srgb, var(--c, #888) 34%, transparent); }
.dash-tl-pill.late { border-color: rgba(255, 93, 108, .6); }
.dash-tl-pill i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c, #888); color: #0c0b10; font: 700 10.5px var(--font); font-style: normal; }
.dash-tl-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-next { grid-column: span 4; background: linear-gradient(160deg, rgba(10, 9, 14, .92), rgba(20, 17, 28, .88)); border-color: rgba(255, 255, 255, .09); }
.dash-next-count { font-size: 22px; color: var(--lime); font-variant-numeric: tabular-nums; }
.dash-next-list { display: flex; flex-direction: column; gap: 6px; }
.dash-next-item { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 6px; border-radius: 16px; color: var(--text); }
.dash-next-item:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.dash-next-item .grow { display: flex; flex-direction: column; min-width: 0; }
.dash-next-item b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-next-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #888) 22%, rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--c, #888) 50%, transparent); color: var(--text); }

.dash-flow { grid-column: span 5; }
.dash-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.dash-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dash-svg { width: 100%; height: 190px; display: block; overflow: visible; }
.dash-grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.dash-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dash-line.a { stroke: var(--accent-2); }
.dash-line.l { stroke: var(--lime); }
.dash-dot { fill: var(--lime); stroke: #0c0b10; stroke-width: 3; vector-effect: non-scaling-stroke; }
.dash-months { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 6px 4px 0; text-transform: uppercase; letter-spacing: .05em; }
.dash-months .on { color: #0c0b10; background: var(--lime); border-radius: 999px; padding: 2px 9px; font-weight: 700; }

.dash-steps { grid-column: span 7; }
.dash-cols { display: flex; gap: 10px; align-items: end; height: 200px; overflow-x: auto; padding-bottom: 4px; }
.dash-col { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.dash-col i { display: block; width: 100%; max-width: 48px; border-radius: 14px 14px 10px 10px; background: color-mix(in srgb, var(--c, #888) 45%, rgba(255, 255, 255, .05)); border: 1px solid color-mix(in srgb, var(--c, #888) 60%, transparent); }
.dash-col.top i { background: linear-gradient(180deg, color-mix(in srgb, var(--c, #888) 95%, #fff), var(--c, #888)); box-shadow: 0 10px 26px color-mix(in srgb, var(--c, #888) 45%, transparent); }
.dash-col b { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-col small { font-size: 10.5px; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-today, .dash-late { grid-column: span 4; }
.dash-cal { grid-column: span 4; }
.dash .mini-cal span { padding: 7px 0; }

@media (max-width: 1560px) {
  .dash-hero { grid-column: span 12; }
  .dash-week { grid-column: span 4; grid-row: auto; }
  .dash-agenda { grid-column: span 8; }
  .dash-next { grid-column: span 4; }
  .dash-flow { grid-column: span 8; }
  .dash-steps { grid-column: span 12; }
}
@media (max-width: 1250px) {
  .dash { grid-auto-flow: dense; }
  .dash-hero { grid-template-columns: 1fr; gap: 14px; }
  .dash-hello { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
  .dash-hello h2 { grid-column: 1; }
  .dash-hello p { grid-column: 1; margin-top: 4px; }
  .dash-ring { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; width: 100px; height: 100px; }
  .dash-week { grid-column: span 6; }
  .dash-agenda { grid-column: span 12; }
  .dash-next { grid-column: span 6; }
  .dash-flow { grid-column: span 12; }
  .dash-today, .dash-late { grid-column: span 6; }
  .dash-cal { grid-column: span 12; }
  .dash-tl-row { grid-template-columns: 150px repeat(7, minmax(0, 1fr)); }
  .dash-agenda { grid-column: span 7; }
  .dash-next { grid-column: span 5; }
  .dash-flow { grid-column: span 7; }
  .dash-steps { grid-column: span 12; }
  .dash-today, .dash-late, .dash-cal { grid-column: span 6; }
}
@media (max-width: 820px) {
  .dash > section { grid-column: span 12 !important; }
  .dash-hero { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-stat-cta { grid-column: span 2; flex-direction: row; align-items: center; }
  .dash-tl-row { grid-template-columns: 110px repeat(7, minmax(0, 1fr)); }
    .dash-tl-pill span { display: none; }
  .dash-tl-pill { padding: 2px; justify-content: center; }
  .dash-tl-pill i { width: 22px; height: 22px; }
}

/* ---------- movimento: rápido e fluido ---------- */
:root { --fast: .14s; --med: .22s; --ease: cubic-bezier(.2, .8, .2, 1); }
.btn, .chip, .pill, .tag, .nav a, .tabs a, .seg a, .tile, .kcard, .cal-item, .list .row, .dash-stat, .dash-tl-pill, .dash-next-item, .drive-file, .me, .t-title, input, select, textarea, .people label {
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.btn:active, .dash-stat:active, .tile:active, .kcard:active { transform: translateY(1px) scale(.99); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px rgba(155, 48, 255, .45); }
.btn.lime:hover { transform: translateY(-1px); }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--glass-hi), inset 0 3px 0 var(--c, var(--accent)), 0 16px 36px rgba(0, 0, 0, .35); }
.kcard:hover { transform: translateY(-1px); }
.dash-stat:hover { transition-duration: var(--fast); }
.side { transition: transform var(--med) var(--ease); }
.kdrop, .cal-day { transition: background-color var(--fast) var(--ease), outline-color var(--fast) var(--ease); }
.progress i { transition: width var(--med) var(--ease); }

@keyframes lush-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lush-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lush-slide { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes lush-pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes lush-grow { from { transform: scaleY(.2); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes lush-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.page > *, .page .dash > section { animation: lush-rise var(--med) var(--ease) both; }
.page .dash > section:nth-child(2) { animation-delay: .03s; }
.page .dash > section:nth-child(3) { animation-delay: .06s; }
.page .dash > section:nth-child(4) { animation-delay: .09s; }
.page .dash > section:nth-child(n+5) { animation-delay: .12s; }
.drawer:not([hidden]) { animation: lush-slide var(--med) var(--ease); }
.drawer-back:not([hidden]) { animation: lush-fade var(--fast) var(--ease); }
dialog.modal[open] { animation: lush-pop var(--med) var(--ease); }
dialog.modal[open]::backdrop { animation: lush-fade var(--fast) var(--ease); }
.flash { animation: lush-rise var(--fast) var(--ease); }
.dash-bar i, .dash-col i { transform-origin: bottom; animation: lush-grow .4s var(--ease) both; }
.dash-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lush-draw .7s var(--ease) .1s forwards; }
.dash-ring { background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- textos sempre dentro das caixas ---------- */
h1, h2, h3, p, small, b, label, .tag, .pill, .chip, td, th, .kcard, .list .row, .comment, .hist, .banner, .flash, .hint, .empty { min-width: 0; overflow-wrap: anywhere; }
.top h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tag, .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; vertical-align: middle; }
.tag::before { flex: none; }
.tile h2, .kcard b, .t-title, .list .row b, .review-card input, .dash-next-item b { overflow-wrap: anywhere; }
.tile h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .nums span { min-width: 0; }
.tile small { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rowx > * { min-width: 0; }
.rowx > .btn, .rowx > .pill, .rowx > .chip, .rowx > form { flex: none; }
.rowx > .pill, .rowx > .tag { max-width: 100%; }
.table td { max-width: 360px; }
.t-title { white-space: normal; text-align: left; }
.kcard b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard .meta .right { flex: none; }
.cal-item { -webkit-line-clamp: 2; }
.list .row .grow b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list .row .grow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .row > small, .list .row > .tag, .list .row > .avs { flex: none; }
.list .row > .tag { max-width: 150px; }
.me b, .me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-head .rowx { gap: 6px; }
.drawer-head .pill { max-width: 240px; }
.title-input { white-space: normal; overflow-wrap: anywhere; }
.people label { max-width: 100%; }
.people label > span:last-child, .people label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .grow, .link-row .grow, .comment .grow, .drive-file .grow { min-width: 0; }
.file-row a, .link-row a { display: block; overflow-wrap: anywhere; }
.comment p, .comment small, .hist span { overflow-wrap: anywhere; }
.hist span { display: block; }
.prose, pre { max-width: 100%; }
.dash-hello h2 { overflow-wrap: anywhere; }
.dash-hello p { overflow-wrap: anywhere; }
.dash-stat-label { white-space: normal; line-height: 1.15; }
.dash-tl-client .tag { max-width: 100%; }
.dash-col small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; }
.dash-months span { white-space: nowrap; }
.dash-week-total span { min-width: 0; }
.stat small { white-space: normal; }
.podium span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium div { min-width: 0; }
.banner > span, .flash { min-width: 0; }
.empty h2, .empty p { max-width: 640px; }
dialog.modal .card-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.seg a, .tabs a, .toolbar .check { white-space: nowrap; }
.toolbar select { max-width: 240px; text-overflow: ellipsis; }
select { text-overflow: ellipsis; }
.review-card .rowx .tag { max-width: 220px; }
.bulk b { white-space: nowrap; }
.kcol-head { min-width: 0; }
.kcol-head > :not(.dot):not(small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-stat-cta > span:first-child { font-size: 15px; min-width: 0; white-space: normal; max-width: 7em; }
@media (max-width: 1100px) { .dash-stat-cta > span:first-child { font-size: 14px; } }
.dash-stats { row-gap: 30px; }
.t-title { display: block; min-width: 200px; }
.dash-tip { font-size: 10.5px; padding: 3px 7px; }
.dash-next-item .grow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
