/* Paleta "Guayaba y mango": fucsia guayaba + mango + turquesa caribe sobre crema cálida; berenjena para texto.
   Layout: celular = barra inferior de 5 pestañas; escritorio (≥960px) = menú lateral con todo. */
:root {
  --bg: #FFF7F2; --surface: #FFFFFF; --surface2: #FFEDE4; --line: #F3DCD2; --ink: #1E1433; --muted: #7C6A80;
  --pri: #F0306F; --pri-ink: #FFFFFF; --pri-soft: #FFE1EB;
  --sec: #F28C00; --sec-soft: #FFEBCF;
  --ter: #00A396; --ter-soft: #D5F5F1;
  --ok: #138A55; --ok-soft: #DCF4E7; --warn: #B86800; --warn-soft: #FFF0D1; --bad: #C62E3A; --bad-soft: #FDE2E4; --info: #4F46C8; --info-soft: #E7E6FB;
  --hero-a: #F0306F; --hero-b: #FF8A3D;
  --shadow: 0 1px 2px rgba(30,20,51,.06), 0 8px 24px rgba(30,20,51,.06);
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #130D1D; --surface: #1E162C; --surface2: #2A1F3B; --line: #3A2D4E; --ink: #F7EEF8; --muted: #B3A3BC;
  --pri: #FF5C93; --pri-ink: #1A0B14; --pri-soft: #44203A; --sec: #FFAE45; --sec-soft: #45301A; --ter: #2ED3C2; --ter-soft: #173B3A;
  --ok: #5BD69A; --ok-soft: #173527; --warn: #FFC15A; --warn-soft: #3E3016; --bad: #FF7B85; --bad-soft: #43202A; --info: #A9A4FF; --info-soft: #28254D;
  --hero-a: #C2185B; --hero-b: #E2632A; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #130D1D; --surface: #1E162C; --surface2: #2A1F3B; --line: #3A2D4E; --ink: #F7EEF8; --muted: #B3A3BC;
  --pri: #FF5C93; --pri-ink: #1A0B14; --pri-soft: #44203A; --sec: #FFAE45; --sec-soft: #45301A; --ter: #2ED3C2; --ter-soft: #173B3A;
  --ok: #5BD69A; --ok-soft: #173527; --warn: #FFC15A; --warn-soft: #3E3016; --bad: #FF7B85; --bad-soft: #43202A; --info: #A9A4FF; --info-soft: #28254D;
  --hero-a: #C2185B; --hero-b: #E2632A; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 1.55rem; font-weight: 800; } h2 { font-size: 1.18rem; font-weight: 700; } h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pri); }
:focus-visible { outline: 2.5px solid var(--pri); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .82rem; } .num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }

/* ---------- Estructura ---------- */
.app { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.side { display: none; }
main { padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); min-width: 0; }
.view { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.sync { font-size: .78rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.sync.pend i { background: var(--warn); } .sync.off i { background: var(--bad); }

nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: space-around; gap: 2px;
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
nav.tabs a { flex: 1; max-width: 120px; text-decoration: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 700; padding: 7px 2px; border-radius: 14px; position: relative; }
nav.tabs a[aria-current="page"] { color: var(--pri); background: var(--pri-soft); }
nav svg, .side svg { width: 22px; height: 22px; flex: none; }
.badge { position: absolute; top: 2px; right: calc(50% - 22px); background: var(--pri); color: var(--pri-ink); font-size: .62rem; border-radius: 99px; padding: 1px 5px; min-width: 16px; text-align: center; }

@media (min-width: 960px) {
  .app { grid-template-columns: 248px 1fr; }
  nav.tabs { display: none; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; padding: 22px 14px; background: var(--surface); border-right: 1px solid var(--line); }
  .side .logo { display: flex; gap: 10px; align-items: center; padding: 0 8px 18px; }
  .side .logo img { width: 40px; height: 40px; border-radius: 12px; }
  .side a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; position: relative; }
  .side a:hover { background: var(--surface2); }
  .side a[aria-current="page"] { background: var(--pri-soft); color: var(--pri); }
  .side .badge { position: static; margin-left: auto; }
  .side .foot { margin-top: auto; font-size: .8rem; color: var(--muted); padding: 8px 12px; }
  main { padding-bottom: 40px; padding-top: 26px; }
}

/* ---------- Componentes ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.hero { border-radius: 24px; padding: 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, var(--hero-b) 0%, transparent 60%), linear-gradient(135deg, var(--hero-a), color-mix(in srgb, var(--hero-a) 70%, var(--hero-b))); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero h2 { color: #fff; }
.cds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.cd { background: rgba(255,255,255,.16); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; backdrop-filter: blur(2px); }
.cd .k { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.cd .v { font-family: var(--display); font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.cd .d { font-size: .78rem; opacity: .9; }
.hbar { height: 9px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; z-index: 1; }
.hbar > span { display: block; height: 100%; background: #fff; border-radius: 99px; transition: width .4s; }
.hero .btn.glass { background: rgba(255,255,255,.2); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; box-shadow: var(--shadow); }
.kpi .v { font-family: var(--display); font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .s { font-size: .78rem; color: var(--muted); }
.kpi.pri .v { color: var(--pri); } .kpi.sec .v { color: var(--sec); } .kpi.ter .v { color: var(--ter); } .kpi.bad .v { color: var(--bad); }
.bar { height: 7px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--pri); }
.bar.ter > span { background: var(--ter); } .bar.ok > span { background: var(--ok); }

.btn { border: none; border-radius: 12px; padding: 10px 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; min-height: 42px; background: var(--surface2); color: var(--ink); white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn.pri { background: var(--pri); color: var(--pri-ink); }
.btn.ter { background: var(--ter); color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); }
.btn.wa { background: #1FAF5A; color: #fff; }
.btn.bad { background: var(--bad-soft); color: var(--bad); }
.btn.sm { padding: 6px 10px; min-height: 34px; font-size: .83rem; border-radius: 10px; }
.btn.xs { padding: 3px 8px; min-height: 28px; font-size: .78rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.link { background: none; border: none; color: var(--pri); font-weight: 700; padding: 0; font-size: .86rem; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.info { background: var(--info-soft); color: var(--info); }
.chip.pri { background: var(--pri-soft); color: var(--pri); } .chip.mut { background: var(--surface2); color: var(--muted); }
.chip.dark { background: var(--ink); color: var(--bg); }
.chip.tag { background: var(--ter-soft); color: var(--ter); font-weight: 600; }
.brand { font-size: .64rem; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 6px; }
.brand.N { background: var(--sec-soft); color: var(--sec); } .brand.A { background: var(--pri-soft); color: var(--pri); }

.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: .83rem; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 200px; min-width: 0; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.switch { display: inline-flex; background: var(--surface2); border-radius: 12px; padding: 3px; }
.switch button { border: none; background: none; padding: 6px 10px; border-radius: 9px; font-weight: 700; font-size: .82rem; color: var(--muted); }
.switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.empty { text-align: center; padding: 26px 16px; color: var(--muted); background: var(--surface); border: 1.5px dashed var(--line); border-radius: 18px; }

/* Tareas */
.task { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: none; padding-top: 0; }
.ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.ic.pri { background: var(--pri-soft); } .ic.sec { background: var(--sec-soft); } .ic.ter { background: var(--ter-soft); }
.ic.ok { background: var(--ok-soft); } .ic.warn { background: var(--warn-soft); } .ic.bad { background: var(--bad-soft); } .ic.info { background: var(--info-soft); }
.task .tx { flex: 1; min-width: 0; } .task strong { display: block; } .task span { font-size: .82rem; color: var(--muted); }

/* Lista de personas */
.list { display: flex; flex-direction: column; gap: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; box-shadow: var(--shadow); cursor: pointer; }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: .95rem; }
.person .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.person .name { font-weight: 700; overflow-wrap: anywhere; }
.meta { font-size: .8rem; color: var(--muted); display: flex; gap: 4px 8px; flex-wrap: wrap; align-items: center; }
.right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.amt { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Tabla dinámica */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); max-height: 70vh; }
table.dt { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .87rem; }
.dt th, .dt td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
.dt thead th { position: sticky; top: 0; background: var(--surface2); z-index: 2; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; user-select: none; }
.dt thead th.sort { cursor: pointer; }
.dt thead th.sort:hover { color: var(--ink); }
.dt thead th .ar { font-size: .7rem; margin-left: 3px; color: var(--pri); }
.dt td.n, .dt th.n { text-align: right; font-variant-numeric: tabular-nums; }
.dt .stick { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.dt thead .stick { z-index: 3; background: var(--surface2); }
.dt tbody tr:hover td { background: color-mix(in srgb, var(--pri-soft) 40%, var(--surface)); }
.dt tbody tr.sel td { background: var(--pri-soft); }
.dt .nm { font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.dt .nm .avatar { width: 28px; height: 28px; font-size: .7rem; }
.dt input.money { width: 110px; border: 1.5px solid var(--line); background: var(--bg); border-radius: 9px; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.dt input.money:focus { border-color: var(--pri); outline: none; }
.dt input.money.has { border-color: var(--ok); background: var(--ok-soft); }
.dt input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--pri); }
.dt tfoot td { position: sticky; bottom: 0; background: var(--surface2); font-weight: 800; border-bottom: none; }
.minibar { display: inline-block; width: 70px; height: 7px; border-radius: 99px; background: var(--surface2); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.minibar span { display: block; height: 100%; background: var(--ter); }
.selbar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 15; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.selbar .btn { background: rgba(255,255,255,.14); color: var(--bg); }
@media (min-width: 960px) { .selbar { bottom: 16px; } }
.colmenu { position: relative; }
.colmenu .pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.18); z-index: 30; display: grid; gap: 6px; min-width: 200px; }
.colmenu label { display: flex; gap: 8px; align-items: center; font-size: .88rem; }

/* Ranking y gráfica */
.rank { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.rank:first-child { border-top: none; }
.rank .pos { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .82rem; background: var(--surface2); flex: none; }
.rank .pos.g1 { background: var(--sec); color: #fff; } .rank .pos.g2 { background: var(--sec-soft); color: var(--sec); } .rank .pos.g3 { background: var(--pri-soft); color: var(--pri); }
.rank .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.rank .track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; min-width: 40px; }
.rank .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--pri), var(--sec)); border-radius: 99px; }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.award { border-radius: 16px; padding: 12px; background: linear-gradient(135deg, var(--sec-soft), var(--pri-soft)); display: flex; flex-direction: column; gap: 6px; }
.award .t { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.award strong { font-family: var(--display); font-size: 1.05rem; }

/* Captación */
.pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .pipe { grid-template-columns: 1fr; } }
.pipe .col { background: var(--surface2); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }

/* Formularios */
label.f { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 700; min-width: 0; }
label.f input, label.f select, label.f textarea, .in { border: 1.5px solid var(--line); background: var(--bg); border-radius: 11px; padding: 10px; font-weight: 400; width: 100%; min-width: 0; }
label.f input:focus, label.f select:focus, label.f textarea:focus { border-color: var(--pri); outline: none; }
textarea { resize: vertical; min-height: 110px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hint { font-size: .8rem; color: var(--muted); }
.err { color: var(--bad); font-size: .85rem; font-weight: 600; }
.tagsel { display: flex; flex-wrap: wrap; gap: 6px; }
.tagsel label { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: .82rem; cursor: pointer; }
.tagsel input { accent-color: var(--pri); }

/* Diálogos */
dialog { border: none; border-radius: 22px; padding: 0; background: var(--surface); color: var(--ink); width: min(580px, calc(100vw - 20px)); max-height: calc(100dvh - 30px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog.wide { width: min(860px, calc(100vw - 20px)); }
dialog::backdrop { background: rgba(19,13,29,.55); backdrop-filter: blur(2px); }
.dlg { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dlg-head { display: flex; gap: 12px; align-items: center; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.preview { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; white-space: pre-wrap; font-size: .9rem; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact { background: var(--surface2); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.fact .k { font-size: .72rem; color: var(--muted); } .fact .v { font-weight: 700; overflow-wrap: anywhere; }
.qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qa .btn { flex-direction: column; font-size: .74rem; padding: 8px 4px; min-height: 60px; gap: 4px; white-space: normal; }
.timeline { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.tl { display: flex; gap: 10px; font-size: .86rem; }
.tl .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface2); font-size: .8rem; }
.tl .when { color: var(--muted); font-size: .75rem; }
.seglist .it { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.seglist .it:first-child { border-top: none; }
.seglist .it.done span { text-decoration: line-through; color: var(--muted); }
.hist { display: flex; gap: 4px; align-items: flex-end; height: 76px; }
.hist div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.hist b { display: block; width: 70%; border-radius: 6px 6px 3px 3px; }

/* Login */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(80% 60% at 0% 0%, var(--pri-soft), transparent 70%), radial-gradient(70% 60% at 100% 100%, var(--sec-soft), transparent 70%), var(--bg); }
.auth .card { width: min(420px, 100%); background: var(--surface); border-radius: 26px; padding: 26px 22px; box-shadow: 0 30px 80px rgba(30,20,51,.14); display: flex; flex-direction: column; gap: 14px; }
.auth .logo { width: 64px; height: 64px; border-radius: 18px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-size: .9rem; z-index: 100; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.banner { background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 10px 12px; font-size: .86rem; font-weight: 600; }
.banner.info { background: var(--info-soft); color: var(--info); }
.morelist a { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.morelist a .ic { width: 44px; height: 44px; }
.morelist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
details.cfg { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
details.cfg > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-weight: 700; }
details.cfg > summary::-webkit-details-marker { display: none; }
details.cfg > summary::after { content: "›"; margin-left: auto; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
details.cfg[open] > summary::after { transform: rotate(90deg); }
details.cfg > .body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ulist .it { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ulist .it:first-child { border-top: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.ulist .acts { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; padding-left: 52px; }
@media (min-width: 700px) { .ulist .acts { flex-basis: auto; padding-left: 0; } }
img.avatar.foto { object-fit: cover; padding: 0; background: var(--surface2); }
.avatar.lg { width: 50px; height: 50px; font-size: 1.1rem; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--pri-soft); }
.avatar.xl { width: 92px; height: 92px; font-size: 1.8rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--pri-soft); }
.side .foot { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--muted); border-radius: 12px; }
.side .foot:hover { background: var(--surface2); }
.adj { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--bg); }
.adj img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; flex: none; }
