/* Kasa Â· identidad visual base
   Paleta: verde azulado (confianza, estabilidad) + Ã¡mbar (calidez de "hogar").
   Sin fuentes ni recursos externos: carga rÃ¡pida y sin enviar datos a terceros. */

:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #1d2b2a;
  --muted: #5b6a68;
  --line: #e3dfd6;
  --primary: #0e6b63;
  --primary-dark: #0a524c;
  --primary-soft: #e3f1ef;
  --accent: #e4893a;
  --accent-soft: #fdf0e1;
  --side: #0b3f3b;
  --side-ink: #d7ebe8;
  --danger: #b3392f;
  --danger-soft: #fbe9e7;
  --ok: #2b7a4b;
  --ok-soft: #e6f4ec;
  --warn: #9a5b00;
  --warn-soft: #fff3d6;
  --radius: 12px;
  --side-w: 248px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* â”€â”€ Estructura â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side-w);
  background: var(--side);
  color: var(--side-ink);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transition: transform .25s ease;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 22px 22px 18px; color: #fff; text-decoration: none; }
.brand svg { flex: none; }
.brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-tag { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8fc2bb; margin-top: -2px; }
.nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #78a9a2; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--side-ink); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { margin-top: auto; padding: 16px 18px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.side-foot .who { font-weight: 600; color: #fff; }
.side-foot .role { color: #8fc2bb; font-size: .78rem; }
.side-foot a, .side-foot button.linklike { color: var(--side-ink); }
.side-foot .row { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

.main { margin-left: var(--side-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; align-items: center; gap: 12px; padding: 12px 16px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 30; }
.menu-btn { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }
.content { padding: 28px 32px 48px; max-width: 1100px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.scrim { display: none; }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }
  .main { margin-left: 0; }
  .topbar { display: flex; }
  .content { padding: 20px 16px 40px; }
}

/* â”€â”€ Componentes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.card h2 { margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; border-top: 3px solid var(--primary); }
.stat .label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-size: 1.9rem; font-weight: 750; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--primary); color: #fff; min-height: 42px;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: #e7b9b4; }
.btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: .85rem; }
.btn.block { width: 100%; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; color: inherit; }

.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #c9c4b8; border-radius: 9px; min-height: 44px;
}
input:focus, select:focus { border-color: var(--primary); outline: 3px solid var(--primary-soft); }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 5px; font-weight: 500; }
input.has-error { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr 230px auto; gap: 12px; align-items: end; }
@media (max-width: 1250px) and (min-width: 1025px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1024px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; }
.alert.ok { background: var(--ok-soft); border-color: #b9dcc7; color: #1f5c38; }
.alert.error { background: var(--danger-soft); border-color: #efc2bd; color: #8a2a22; }
.alert.warn { background: var(--warn-soft); border-color: #f1d99a; color: var(--warn); }
.credentials { background: var(--accent-soft); border: 1px solid #f0cda0; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.credentials code { display: inline-block; font-size: 1.15rem; font-weight: 700; background: #fff; border: 1px dashed var(--accent); padding: 6px 12px; border-radius: 8px; letter-spacing: .04em; user-select: all; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: #eceae4; color: var(--muted); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--primary-soft); color: var(--primary-dark); }
.badge.demo { background: var(--accent-soft); color: var(--warn); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: #faf8f4; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.actions { text-align: right; min-width: 170px; }
td.actions form { display: inline-block; margin: 2px 0 2px 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; margin: 8px 0 24px; }

/* Tabla â†’ tarjetas en celular */
@media (max-width: 1024px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.stack td { border: 0; padding: 3px 0; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
  table.stack td.actions { text-align: left; padding-top: 10px; }
  table.stack td.actions .btn { margin: 2px 4px 2px 0; }
}

/* â”€â”€ Ingreso â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 10% -10%, #d6ece8 0, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; box-shadow: 0 10px 30px rgba(11,63,59,.08); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--primary-dark); }
.auth-brand .brand-name { color: var(--primary-dark); }
.auth-card p.lead { color: var(--muted); margin-bottom: 22px; }


/* ── Cartera: filtros, fichas y avance ─────────── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.toolbar label { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .n { font-size: .75rem; opacity: .75; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; }
.kv dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.kv dd { margin: 0; font-weight: 500; }
.kv .big { font-size: 1.35rem; font-weight: 700; }
.progress { height: 10px; border-radius: 999px; background: #e9e5db; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #3aa89c); border-radius: 999px; }
.progress-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.sub { display: block; color: var(--muted); font-size: .82rem; }
.th-sort { color: inherit; text-decoration: none; }
.th-sort:hover { color: var(--primary); }
.th-sort .arrow { opacity: .6; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 12px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 18px; background: var(--surface); }
.fieldset legend { padding: 0 8px; font-weight: 650; font-size: .95rem; color: var(--primary-dark); }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .cols, .cols.three { grid-template-columns: 1fr; } }
textarea { width: 100%; padding: 11px 13px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9c4b8; border-radius: 9px; min-height: 90px; resize: vertical; }
input[type=date], input[type=number], input[type=file] { width: 100%; padding: 10px 13px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9c4b8; border-radius: 9px; min-height: 44px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; min-height: 0; margin-top: 4px; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
details.inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
details.inline summary { cursor: pointer; font-weight: 600; }
.doc-list { list-style: none; margin: 0 0 14px; padding: 0; }
.doc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.doc-list li:last-child { border-bottom: 0; }
.history { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.history li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.stat .sub { margin-top: 4px; }
.stat.warn { border-top-color: var(--accent); }
.stat.money .value { font-size: 1.5rem; }
/* Importes: nunca se parten en dos renglones */
td.num, .num { white-space: nowrap; }


/* ── Guía rápida (ayuda) ── */
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.help-toc a { padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; font-size: .88rem; text-decoration: none; }
.help-toc a:hover { background: var(--primary); color: #fff; }
section.help { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; scroll-margin-top: 16px; }
section.help h2 { font-size: 1.3rem; margin-bottom: 12px; color: var(--primary-dark); }
section.help h3 { font-size: 1.02rem; margin: 18px 0 6px; }
section.help p { margin: 0 0 10px; }
section.help ul, section.help ol { margin: 0 0 10px; padding-left: 1.25rem; }
section.help li { margin-bottom: 6px; }
ol.steps { list-style: none; counter-reset: step; padding-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 10px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.help-box { background: var(--primary-soft); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.help-box.warn { background: var(--warn-soft); color: var(--warn); }
.help-box ul, .help-box ol { margin-bottom: 0; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 8px; color: var(--primary-dark); }
.faq details p { margin: 0; }
th.center, td.center { text-align: center; }
.help-foot { text-align: center; margin: 22px 0 6px; }
@media print {
  .sidebar, .topbar, .scrim, .no-print { display: none !important; }
  .shell { display: block; }
  .main { margin: 0; padding: 0; }
  body { background: #fff; font-size: 12px; }
  section.help { border: 0; padding: 0 0 8px; break-inside: avoid-page; }
  .faq details { break-inside: avoid; }
  .faq details > p { display: block; }
}

/* ── Íconos del menú y logo de la inmobiliaria ───────────────── */
.icon { flex: none; opacity: .85; }
.nav a:hover .icon, .nav a[aria-current="page"] .icon { opacity: 1; }
.nav a[aria-current="page"] .icon { color: var(--accent); }
.brand-agency { padding: 18px 22px 8px; }
.agency-logo { display: block; max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; }
.brand-sign { display: flex; align-items: center; gap: 8px; padding: 0 22px 10px; font-size: .74rem; color: #8fc2bb; }
.brand-sign strong { color: #fff; letter-spacing: -.01em; }
.logo-preview { display: flex; align-items: center; justify-content: center; min-height: 96px; margin-bottom: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg); }
.logo-preview img { max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; }

/* ── Pantalla de ingreso con presentación del producto ───────── */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); place-items: stretch; padding: 0; background: var(--bg); }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-aside {
  background: radial-gradient(900px 420px at 0% 0%, rgba(228,137,58,.22) 0, transparent 60%), linear-gradient(160deg, #0b3f3b 0%, #082f2c 100%);
  color: var(--side-ink); padding: 56px clamp(28px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center;
}
.aside-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; color: #fff; }
.aside-brand .brand-name { font-size: 1.8rem; }
.aside-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.aside-eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.aside-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #fff; margin-bottom: 16px; }
.aside-title em { font-style: normal; color: var(--accent); }
.aside-lead { max-width: 34rem; font-size: 1.05rem; color: #b9d9d4; margin-bottom: 30px; }
.aside-features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; max-width: 44rem; }
.aside-features li { display: flex; gap: 12px; align-items: flex-start; }
.aside-features .icon { margin-top: 2px; color: var(--accent); opacity: 1; }
.aside-features strong { display: block; color: #fff; margin-bottom: 2px; }
.aside-features div { font-size: .88rem; color: #9fc7c1; }
.aside-note { font-size: .82rem; color: #8fc2bb; line-height: 1.9; margin: 0; }
.aside-note .icon { vertical-align: -3px; margin-right: 4px; color: var(--accent); opacity: 1; }
.auth-h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-powered { margin: 18px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { padding: 28px 20px; }
  .aside-brand { margin-bottom: 22px; }
  .aside-features, .aside-note { display: none; }
  .aside-lead { margin-bottom: 0; }
  .aside-title { font-size: 1.8rem; }
}

/* ── Ingreso: contenido centrado y patrón de fondo inmobiliario ── */
.auth-aside { position: relative; overflow: hidden; align-items: center; text-align: center; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 40l20-17 20 17M18 36v22h28V36M28 58V46h8v12'/%3E%3Ccircle cx='100' cy='30' r='7'/%3E%3Cpath d='M94 36L78 52M84 46l6 6M79 51l5 5'/%3E%3Cpath d='M88 130v-28h20v28M84 130h28M94 108h3M101 108h3M94 116h3M101 116h3'/%3E%3Cpath d='M30 100h12M36 94v12M122 78h10M127 73v10'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse at center, #000 35%, transparent 100%);
}
.aside-brand, .aside-eyebrow { justify-content: center; }
.aside-lead { margin-left: auto; margin-right: auto; }
.aside-features { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: auto; margin-right: auto; }
.aside-features li { flex-direction: column; align-items: center; gap: 8px; }
.aside-features .icon { margin-top: 0; }
.aside-note { text-align: center; }
.auth-main { justify-items: center; align-items: center; }
.auth-card { margin: 0 auto; }
.auth-h1, .auth-card p.lead, .auth-powered { text-align: center; }
.auth-card .hint { text-align: center; }
@media (max-width: 900px) { .auth-aside::before { opacity: .07; } }
@media (max-width: 900px) { .aside-eyebrow span { display: none; } }

/* ── Guía: buscador, tareas frecuentes y botón de ayuda ──────── */
.help-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0 4px; margin: 0 0 14px; }
.help-bar input[type=search] { width: 100%; padding: 11px 14px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9c4b8; border-radius: 9px; min-height: 44px; margin-bottom: 10px; }
.help-bar input[type=search]:focus { border-color: var(--primary); outline: 3px solid var(--primary-soft); }
.help-bar .help-toc { margin: 0; }
.help-empty { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 16px; }
.help-tasks { margin-bottom: 20px; }
.help-tasks h2 { font-size: 1.15rem; margin-bottom: 10px; color: var(--primary-dark); }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.task { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.task > span { color: var(--muted); font-size: .88rem; }
.task-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.task-links a:not(.btn) { font-weight: 600; font-size: .88rem; }
section.help h3[id] { scroll-margin-top: 110px; }
section.help { scroll-margin-top: 110px; }
.help-link { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: 0 6px 18px rgba(11, 63, 59, .28); }
.help-link:hover { background: var(--primary-dark); color: #fff; }
.help-link .icon { opacity: 1; }
@media (max-width: 900px) {
  .help-bar { position: static; }
  .help-link { right: 12px; bottom: 12px; padding: 9px 14px; }
}
