:root {
  --red: #d9272e; --red-dark: #b01e24; --red-soft: #fdecec;
  --ink: #1f2430; --ink-2: #4a5160; --muted: #6f7684; --line: #e8e4de; --bg: #f6f4f1; --card: #fff;
  --green: #17804f; --green-soft: #e6f4ec; --amber: #a86400; --amber-soft: #fff3dc; --late: #b42318;
  --r: 16px; --shadow: 0 1px 2px rgba(31, 36, 48, .05), 0 6px 20px rgba(31, 36, 48, .05);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.45; min-height: 100dvh; }
body.locked { overflow: hidden; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.neg { color: var(--late) !important; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; white-space: nowrap; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.primary:disabled { opacity: .6; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn.ghost.danger { color: var(--late); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.big { width: 100%; min-height: 54px; font-size: 17px; }
.link { color: var(--red); font-weight: 700; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); font-size: 16px; }
.mini { width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 18px; line-height: 1; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink-2); }
.chip.s-arrendado { background: var(--green-soft); color: var(--green); }
.chip.s-disponible { background: var(--amber-soft); color: var(--amber); }
.chip.s-mantenimiento, .chip.s-retirado { background: #eceef2; color: var(--ink-2); }
.chip.due { background: var(--red-soft); color: var(--red); }

/* estructura */
.shell { min-height: 100dvh; }
.side { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.side .brand, .side-foot { display: none; }
.side nav { display: grid; grid-template-columns: repeat(5, 1fr); }
.side nav a { display: grid; justify-items: center; gap: 2px; padding: 9px 2px 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.side nav a svg { width: 25px; height: 25px; }
.side nav a.on { color: var(--red); }
.main { padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
.topbar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.add-desk { display: none; }
.fab { position: fixed; z-index: 21; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; font-size: 34px; font-weight: 500; line-height: 1; box-shadow: 0 8px 22px rgba(217, 39, 46, .4); }
.banner { background: var(--amber-soft); color: var(--amber); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.banner a { text-decoration: underline; }

/* buscador */
.search { position: relative; flex: 1; }
.search input { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7684' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center / 20px no-repeat; padding: 0 14px 0 44px; outline: none; }
.search input:focus { border-color: var(--red); }
.search .results { position: absolute; z-index: 30; left: 0; right: 0; top: 56px; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(31, 36, 48, .18); overflow: hidden; }
.search .results a { display: grid; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.search .results a:hover { background: var(--bg); }
.search .results span { font-size: 13px; color: var(--muted); }
.search .results p { padding: 14px 16px; color: var(--muted); }
.search.local { margin-bottom: 10px; }

/* encabezados y tarjetas */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-head p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.page-head .over { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.back { display: inline-block; color: var(--red); font-weight: 700; margin-bottom: 4px; padding: 6px 0; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.card h2 em { font-style: normal; font-size: 13px; background: var(--bg); color: var(--ink-2); border-radius: 99px; padding: 1px 9px; }
.card h2 .link, .card h2 .mini { margin-left: auto; }
.late-card { border: 1.5px solid #f3c7c3; }
.late-card h2 { color: var(--late); }
.today-card { border: 1.5px solid var(--red); }
.empty { color: var(--muted); padding: 10px 0; font-size: 15px; }
.cols { display: grid; gap: 4px; }
.grid2 { display: grid; gap: 0 14px; }

/* pendientes */
.task { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.card h2 + .task, .day h3 + .task { border-top: 0; }
.check { flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; border: 2.2px solid #c9c4bc; background: #fff; color: #fff; font-weight: 800; font-size: 16px; display: grid; place-content: center; }
.check:not(:disabled):hover { border-color: var(--green); }
.task.done .check { background: var(--green); border-color: var(--green); }
.task.late .check { border-color: var(--late); }
.task-main { flex: 1; text-align: left; display: grid; gap: 1px; min-width: 0; }
.t-title { font-weight: 600; overflow-wrap: anywhere; }
.t-sub { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.task.done .t-title { color: var(--muted); text-decoration: line-through; }
.task.late .t-sub { color: var(--late); }

/* indicadores */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.kpi b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.kpi b small { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.kpi.warn b { color: var(--late); }

/* planeador */
.pl-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg > * { padding: 9px 14px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.seg > * + * { border-left: 1.5px solid var(--line); }
.seg .on { background: var(--ink); color: #fff; }
.week { display: grid; gap: 10px; }
.day { background: #fff; border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.day h3 { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.day h3 b { font-size: 19px; color: var(--ink); }
.day.is-today { border: 2px solid var(--red); }
.day.is-today h3, .day.is-today h3 b { color: var(--red); }
.day.past { opacity: .8; }
.day .none { color: #a8adb7; font-size: 14px; padding: 4px 0; }
.month { background: #fff; border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); margin-bottom: 14px; }
.dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0 8px; }
.month .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cell { aspect-ratio: 1 / 1; border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 2px; position: relative; font-weight: 600; }
.cell.out { color: #b8bcc5; }
.cell.is-today b { color: var(--red); font-weight: 800; }
.cell.sel { background: var(--ink); color: #fff; }
.cell.sel b { color: #fff; }
.cell i { font-style: normal; font-size: 11px; font-weight: 800; min-width: 20px; height: 18px; border-radius: 9px; padding: 0 5px; display: grid; place-content: center; }
.cell i.pend { background: var(--amber-soft); color: var(--amber); }
.cell i.late { background: var(--red); color: #fff; }
.cell i.ok { background: var(--green-soft); color: var(--green); }
.cell .peek { display: none; }

/* inmuebles */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.chips button { flex: none; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.plist { display: grid; gap: 12px; }
.pcard { display: block; background: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); border: 1.5px solid transparent; }
.pcard:hover { border-color: var(--red); }
.pc-top { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.folder { font-size: 12px; font-weight: 800; color: var(--red); background: var(--red-soft); border-radius: 6px; padding: 2px 8px; margin-right: auto; }
.pcard h3 { font-size: 17px; font-weight: 800; }
.pcard > p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.pcard dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14px; }
.pcard dt, .kv dt { color: var(--muted); }
.pcard dd { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* expediente */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stats div { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; }
.stats span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stats b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stats b.sm { font-size: 17px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.quick button { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 4px; font-size: 13px; font-weight: 700; }
.quick button:hover { border-color: var(--red); color: var(--red); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 14px; scrollbar-width: none; }
.tabs button { flex: none; padding: 10px 12px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: var(--red); border-color: var(--red); }
.kv { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 8px 14px; font-size: 15px; }
.kv dd { font-weight: 600; overflow-wrap: anywhere; }
.kv a { color: var(--red); }
.kv code { background: var(--bg); padding: 2px 8px; border-radius: 6px; font-size: 15px; }
.card .btn.sm { margin-top: 12px; }
.pin { background: var(--amber-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.pin b { font-size: 13px; color: var(--amber); }
.act { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.card h2 + .act, .timeline h3 + .act { border-top: 0; }
.act > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-content: center; font-size: 16px; }
.act p { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.act small, .doc small { color: var(--muted); font-size: 13px; }
.timeline h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 2px; }
.timeline h3:first-child { margin-top: 0; }
.bal { display: grid; gap: 10px; margin-bottom: 12px; }
.bal div { background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px; display: grid; gap: 2px; }
.bal div + div { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.bal span { font-size: 13px; opacity: .8; font-weight: 600; }
.bal b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.bal b.neg { color: #ffb4ab !important; }
.bal small { font-size: 13px; opacity: .75; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 6px 8px; }
.tbl td { padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td span, .tbl td small { color: var(--muted); font-size: 13px; }
.tbl .in { color: var(--green); font-weight: 700; }
.tbl .out { color: var(--ink); font-weight: 700; }
.tbl tr.void td { opacity: .5; }
.tbl tr.void b, .tbl tr.void .r { text-decoration: line-through; }
.tbl tr.sum td { font-weight: 700; background: var(--bg); }
.tbl tr.sum.big td { font-size: 17px; background: var(--red-soft); }
.tbl a { color: var(--red); font-weight: 600; }
.card:has(.tbl) { overflow-x: auto; }
.ob.off { opacity: .55; }
.doc { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.card h2 + .doc, .card > .doc:first-child { border-top: 0; }
.doc > span { font-size: 24px; }
.doc > a, .doc > div { flex: 1; display: grid; min-width: 0; }
.doc b { overflow-wrap: anywhere; }
.statement .st-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.statement .st-head img { width: 60px; height: 60px; }
.statement .kv { margin-bottom: 16px; }
.version { text-align: center; color: #a8adb7; font-size: 12px; margin-top: 8px; }

/* menús y hojas */
.menu { display: grid; gap: 8px; }
.menu > * { display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; background: var(--bg); width: 100%; }
.menu.flat > * { background: none; padding: 12px 0; border-radius: 0; border-top: 1px solid var(--line); }
.menu.flat > *:first-child { border-top: 0; }
.menu > * > span { font-size: 24px; width: 36px; text-align: center; }
.menu b { display: block; }
.menu small { color: var(--muted); font-size: 13.5px; }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(31, 36, 48, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .2s; }
.sheet.wide { max-width: 680px; }
.sheet header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.sheet header h2 { font-size: 19px; font-weight: 800; }
.sheet-body { overflow-y: auto; padding: 4px 18px calc(18px + env(safe-area-inset-bottom)); }
.intro { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { grid-column: 1 / -1; display: grid; gap: 5px; min-width: 0; }
.field.half { grid-column: auto; }
.field label, .auth-card label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field label i { color: var(--red); font-style: normal; }
.field small { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea, .auth-card input:not([type=checkbox]) { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .auth-card input:focus { border-color: var(--red); }
.field input[type=file] { padding: 10px; font-size: 14px; }
.f-section { grid-column: 1 / -1; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-top: 6px; }
.f-check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; font-weight: 600; padding: 4px 0; }
.f-check input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.picker-list { display: grid; }
.picker-list button { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; }
.picker-list button:hover { background: var(--bg); }
.picker-list span { font-size: 13px; color: var(--muted); }
.picker-list .none { color: var(--muted); font-size: 14px; }
.err { color: var(--late); font-weight: 700; font-size: 14.5px; margin-top: 12px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.actions .btn.primary { flex: 1; }
.detail .big { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.detail dt { color: var(--muted); }
.detail dd { font-weight: 600; overflow-wrap: anywhere; }
.detail dd a { color: var(--red); }
.detail p + p { margin-top: 12px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; opacity: 0; transition: .25s; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--late); }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@keyframes fade { from { opacity: 0; } }

/* asistente */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 190px - env(safe-area-inset-bottom)); min-height: 380px; }
.chat .page-head { margin-bottom: 8px; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 2px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; }
.msg.user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: #fff; box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.msg.typing { color: var(--muted); font-style: italic; }
.tips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.tips button { flex: none; padding: 8px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 50px; max-height: 120px; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; outline: none; resize: none; background: #fff; }
.composer textarea:focus { border-color: var(--red); }
.composer .btn { width: 50px; min-height: 50px; padding: 0; border-radius: 50%; }

/* entrada */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: linear-gradient(180deg, #fff 0, var(--bg) 60%); }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 14px; background: #fff; padding: 28px 24px; border-radius: 24px; box-shadow: 0 20px 60px rgba(31, 36, 48, .1); }
.auth-card img { width: 84px; height: 84px; justify-self: center; }
.auth-card h1 { text-align: center; font-size: 24px; font-weight: 800; }
.auth-card > p { text-align: center; color: var(--muted); margin-top: -8px; }
.auth-card label { display: grid; gap: 5px; }
.auth-card label.f-check { display: flex; }
.auth-card small { text-align: center; color: var(--muted); font-size: 13px; }

/* tableta y escritorio */
@media (min-width: 720px) {
  .plist { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .grid2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .bal { grid-template-columns: 1fr 1fr; }
  .kpis.wide { grid-template-columns: repeat(4, 1fr); }
  .sheet-wrap { align-items: center; padding: 20px; }
  .sheet { border-radius: 22px; }
  .quick { grid-template-columns: repeat(4, max-content); }
  .quick button { padding: 10px 18px; font-size: 14px; }
  .month-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
  .cell { aspect-ratio: auto; min-height: 92px; place-content: start; justify-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
  .cell i { position: absolute; top: 6px; right: 6px; }
  .cell .peek { display: grid; gap: 2px; width: 100%; margin-top: 2px; }
  .cell .peek em { font-style: normal; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
  .cell .peek em.d { text-decoration: line-through; color: #a8adb7; }
  .cell.sel .peek em { color: #d8dbe2; }
}
@media (min-width: 1000px) {
  .side { top: 0; right: auto; width: 232px; border-top: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; }
  .side .brand { display: flex; gap: 12px; align-items: center; font-weight: 800; font-size: 17px; padding: 0 8px 22px; line-height: 1.2; }
  .side .brand img { width: 46px; height: 46px; }
  .side nav { grid-template-columns: 1fr; gap: 4px; }
  .side nav a { grid-auto-flow: column; justify-content: start; justify-items: start; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15.5px; font-weight: 700; color: var(--ink-2); }
  .side nav a:hover { background: var(--bg); }
  .side nav a.on { background: var(--red-soft); color: var(--red); }
  .side-foot { display: grid; margin-top: auto; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 14px; }
  .side-foot span { color: var(--muted); font-size: 13px; }
  .main { margin-left: 232px; padding: 22px 34px 60px; max-width: 1400px; }
  .fab { display: none; }
  .add-desk { display: inline-flex; }
  .topbar { margin-bottom: 22px; }
  .search.global { max-width: 620px; }
  .page-head h1 { font-size: 30px; }
  .cols { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
  .day { padding: 10px; min-height: 240px; }
  .day h3 { font-size: 13px; }
  .day .task { gap: 8px; padding: 9px 0; }
  .day .check { width: 24px; height: 24px; font-size: 13px; }
  .day .t-title { font-size: 13.5px; }
  .day .t-sub { font-size: 12px; }
  .chat { height: calc(100dvh - 150px); max-width: 820px; }
  .toast { bottom: 40px; }
}
@media print {
  .side, .topbar, .fab, .banner, .no-print { display: none !important; }
  .main { margin: 0; padding: 0; max-width: none; }
  body { background: #fff; }
  .card { box-shadow: none; padding: 0; }
}
