:root {
  --gold: #E2B457; --gold-2: #F3D58E; --gold-d: #B8893A; --navy: #121C38; --navy-2: #1F2F5C;
  --bg: #F6F4EF; --panel: #FFFFFF; --fg: #1B2033; --muted: #6B7280; --line: #E6E1D6;
  --ok: #2FA67A; --warn: #D99A2B; --bad: #C94F4F; --blue: #4C7DF0;
  --c-felix: #E2B457; --c-miguel: #4C7DF0; --c-contable: #C94F4F; --c-arquitecto: #A0673A;
  --r: 14px; --shadow: 0 1px 2px rgba(18,28,56,.06), 0 6px 20px rgba(18,28,56,.06);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] { --bg: #0E1324; --panel: #161D33; --fg: #ECEAF2; --muted: #9AA3B5; --line: #26304B; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { min-height: 100vh; font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.serif { font-family: 'Fraunces', Georgia, serif; font-weight: 500; }
[hidden] { display: none !important; }

.brand-logo { display: grid; gap: 6px; justify-items: start; padding: 4px 6px; min-width: 0; }
.brand-logo img { width: 100%; max-width: 170px; height: auto; display: block; }
.brand-logo span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding-left: 2px; }
.brand-logo.light { justify-items: center; }
.brand-logo.light img { max-width: 260px; }
.brand-logo.light span { color: var(--gold-d); }
/* Acceso */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 120% at 100% 0%, #2B3F78 0%, var(--navy-2) 40%, var(--navy) 100%); }
.login-card { width: min(400px, 100%); background: var(--panel); border-radius: 20px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: grid; gap: 18px; }
.login-card .brand { justify-content: center; }
.login-card label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.login-card input { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.login-card input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.login-hint { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.error { color: var(--bad); font-size: 13px; min-height: 18px; text-align: center; }

/* Estructura */
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--navy-2), var(--navy)); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--gold); flex: none; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); font-weight: 700; }
.brand b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.1; }
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #EDE8DC; padding: 16px 12px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow: hidden auto; }
.app { transition: grid-template-columns .25s ease; grid-template-columns: 248px 1fr; }
.app.collapsed { grid-template-columns: 76px 1fr; }
.side-top { display: flex; align-items: center; gap: 10px; }
.burger { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255,255,255,.07); color: #EDE8DC; cursor: pointer; display: grid; place-items: center; }
.burger:hover { background: rgba(255,255,255,.14); }
.profile { display: grid; justify-items: center; gap: 8px; padding: 12px 6px 16px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; }
.av.big { width: 64px; height: 64px; font-size: 20px; box-shadow: 0 0 0 3px rgba(226,180,87,.5); }
.profile b { display: block; color: #fff; font-size: 14.5px; }
.profile span { font-size: 12px; color: rgba(237,232,220,.6); }
.logout { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: rgba(237,232,220,.65); cursor: pointer; font-weight: 500; }
.logout:hover { background: rgba(255,255,255,.06); color: #fff; }
.app.collapsed .brand-logo, .app.collapsed .p-txt, .app.collapsed .nav span, .app.collapsed .sep, .app.collapsed .logout span { display: none; }
.app.collapsed .side-top { justify-content: center; }
.app.collapsed .profile { padding: 8px 0 12px; }
.app.collapsed .av.big { width: 42px; height: 42px; font-size: 14px; }
.app.collapsed .nav button, .app.collapsed .logout { justify-content: center; padding: 11px 0; }
.legend { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.week-chart .ch-n { font-size: 12px; font-weight: 700; fill: var(--fg); }
.week-chart .ch-l { font-size: 12px; fill: var(--muted); text-transform: capitalize; }
.week-chart .ch-l.today { fill: var(--gold-d); font-weight: 700; }
#fx-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(120% 120% at 100% 0%, #2B3F78 0%, var(--navy-2) 40%, var(--navy) 100%); transition: opacity .45s ease; }
#fx-loader.out { opacity: 0; pointer-events: none; }
#fx-loader .ld { display: grid; justify-items: center; gap: 22px; }
#fx-loader img { width: min(300px, 70vw); animation: fx-rise .9s cubic-bezier(.2,.8,.2,1) both; }
#fx-loader .track { width: 180px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
#fx-loader .track i { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--gold); animation: fx-slide 1.1s ease-in-out infinite; }
#fx-loader small { color: rgba(237,232,220,.6); letter-spacing: .24em; text-transform: uppercase; font-size: 11px; font-weight: 700; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fx-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { #fx-loader img, #fx-loader .track i { animation: none; } }
.side .brand small { color: var(--gold); }
.nav { display: grid; gap: 4px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: rgba(237,232,220,.75); cursor: pointer; text-align: left; font-weight: 500; }
.nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav button.on { background: rgba(226,180,87,.16); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav .sep { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(237,232,220,.45); padding: 14px 12px 4px; font-weight: 700; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.me .av { width: 34px; height: 34px; }
.me b { display: block; font-size: 13px; color: #fff; }
.me span { font-size: 11.5px; color: rgba(237,232,220,.6); }
.me button { margin-left: auto; border: 0; background: transparent; color: rgba(237,232,220,.6); cursor: pointer; padding: 6px; border-radius: 8px; }
.me button:hover { color: #fff; background: rgba(255,255,255,.08); }
.main { padding: 26px clamp(16px, 3vw, 36px) 40px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); }
.top p { color: var(--muted); margin-top: 4px; }
.viewing { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.viewing select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.mobile-bar { display: none; }

@media (max-width: 860px) {
  .app, .app.collapsed { grid-template-columns: 1fr; }
  .app .side, .app.collapsed .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 84vw); height: 100dvh; z-index: 45; transform: translateX(-104%); transition: transform .25s ease; box-shadow: 12px 0 40px rgba(0,0,0,.25); padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .app.side-open .side { transform: none; }
  .app.collapsed .brand-logo, .app.collapsed .p-txt, .app.collapsed .nav span, .app.collapsed .sep, .app.collapsed .logout span { display: revert; }
  .app.collapsed .nav button, .app.collapsed .logout { justify-content: flex-start; padding: 10px 12px; }
  .scrim { position: fixed; inset: 0; z-index: 44; background: rgba(10,14,28,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .app.side-open .scrim { opacity: 1; pointer-events: auto; }
  .main { padding-bottom: 96px; }
}

/* Piezas */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.count { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 20%, transparent); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--k, var(--gold)) 15%, transparent); color: var(--k, var(--gold-d)); flex: none; }
.kpi b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 500; line-height: 1; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.hero { border-radius: 18px; padding: 20px 22px; color: #F6F1E6; background: radial-gradient(120% 140% at 100% 0%, #2B3F78 0%, var(--navy-2) 38%, var(--navy) 100%); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 22px; color: #fff; }
.hero p { color: rgba(246,241,230,.72); margin-top: 4px; font-size: 13.5px; }
.hero .next { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 14px; min-width: 220px; }
.hero .next span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero .next b { display: block; color: #fff; margin-top: 3px; font-size: 14px; }

.task { display: flex; gap: 12px; align-items: flex-start; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.check { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; margin-top: 1px; transition: .15s; }
.check:hover { border-color: var(--ok); }
.task.done .check { background: var(--ok); border-color: var(--ok); color: #fff; }
.task.done .t-title { text-decoration: line-through; color: var(--muted); }
.t-main { min-width: 0; flex: 1; }
.t-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--t, var(--muted)) 15%, transparent); color: var(--t, var(--muted)); white-space: nowrap; }
.empty { color: var(--muted); font-size: 13px; padding: 10px 0; display: flex; align-items: center; gap: 8px; }
.empty::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-weight: 700; flex: none; }

.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; background: var(--navy); color: #fff; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn.gold { background: linear-gradient(135deg, var(--gold), var(--gold-d)); color: #1B1405; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); }
.btn:disabled { opacity: .6; cursor: default; }
.form { display: grid; gap: 10px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.form input, .form select, .form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.form textarea { min-height: 70px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }

/* Calendario semanal */
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-nav button { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; }
.week-nav span { font-weight: 600; min-width: 170px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-height: 230px; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.day.today { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.day.weekend { background: color-mix(in srgb, var(--panel) 70%, var(--bg)); }
.day-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 4px; }
.day-h span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.day-h b { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 500; }
.ev { border-radius: 8px; padding: 6px 7px; font-size: 12px; line-height: 1.3; background: color-mix(in srgb, var(--e, var(--blue)) 14%, transparent); border-left: 3px solid var(--e, var(--blue)); overflow: hidden; }
.ev b { display: block; font-size: 11px; color: var(--e, var(--blue)); }
.ev.task-ev { background: var(--bg); border-left-color: var(--e, var(--gold)); }
.ev.late { border-left-color: var(--bad); }
@media (max-width: 860px) { .cal { grid-template-columns: 1fr; } .day { min-height: 0; } .day:not(.has) { display: none; } }

/* Documentos */
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 30px 16px; text-align: center; display: grid; gap: 8px; justify-items: center; background: var(--panel); cursor: pointer; transition: .15s; }
.drop.over { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--panel)); }
.drop svg { color: var(--gold-d); }
.drop b { font-size: 15px; }
.drop span { color: var(--muted); font-size: 13px; }
.files { display: grid; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.file:last-child { border-bottom: 0; }
.file .fi { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; flex: none; }
.file a { color: inherit; text-decoration: none; font-weight: 600; }
.file a:hover { color: var(--gold-d); }
.file span { display: block; font-size: 12px; color: var(--muted); }

/* Equipo y panel */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.member { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); position: relative; overflow: hidden; cursor: pointer; }
.member::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--m); }
.member-h { display: flex; align-items: center; gap: 10px; }
.member-h b { font-size: 15px; }
.member-h span { display: block; font-size: 12px; color: var(--muted); }
.mstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mstats div { background: var(--bg); border-radius: 10px; padding: 8px; text-align: center; }
.mstats b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 500; }
.mstats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mnext { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pj { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.pj::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--pc); }
.pj-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pj-h b { font-size: 14.5px; line-height: 1.3; }
.pj-amt { display: flex; justify-content: space-between; align-items: baseline; }
.pj-amt b { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 500; }
.pj-amt span { font-size: 12px; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--pc, var(--gold)); }
.funnel { display: flex; height: 18px; border-radius: 6px; overflow: hidden; gap: 2px; }
.funnel i { display: block; min-width: 3px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 13.5px; z-index: 50; }
.toast.err { background: var(--bad); }
.loading { color: var(--muted); padding: 30px 0; text-align: center; }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--panel); color: var(--fg); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(10,14,28,.55); }
dialog .dlg { padding: 22px; display: grid; gap: 14px; }
dialog h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 21px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Asignar a (selector con avatares) */
.who-pick { display: grid; gap: 8px; }
.who-pick > span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.who-pick > div { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-p { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1.5px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; background: var(--panel); }
.chip-p input { position: absolute; opacity: 0; pointer-events: none; }
.chip-p i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.chip-p:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--panel)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent); }
.chip-p:has(input:focus-visible) { outline: 2px solid var(--gold); }
/* Calendario: conmutador y mes */
.seg { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.toggle button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.toggle button.on { background: var(--navy); color: #fff; }
.cap { text-transform: capitalize; }
.day-h { align-items: center; gap: 6px; }
.day-h span { flex: 1; }
.add { width: 22px; height: 22px; border-radius: 7px; border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; line-height: 1; opacity: .55; }
.add:hover, .day:hover .add, .mcell:hover .add { opacity: 1; border-color: var(--gold); color: var(--gold-d); }
.ev.done { opacity: .55; text-decoration: line-through; }
.month { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mh { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg); border-bottom: 1px solid var(--line); }
.mh span { padding: 8px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mcell { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mcell:nth-child(7n) { border-right: 0; }
.mcell.out { background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
.mcell.out .mtop b { color: var(--muted); opacity: .5; }
.mcell.today .mtop b { background: var(--gold); color: #1B1405; border-radius: 99px; padding: 0 7px; }
.mtop { display: flex; justify-content: space-between; align-items: center; }
.mtop b { font-size: 13px; }
.mcell .ev { font-size: 11px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { font-size: 11px; color: var(--muted); font-weight: 600; padding-left: 4px; }
@media (max-width: 860px) { .mcell { min-height: 70px; } .mcell .ev { display: none; } .mcell:has(.ev) .mtop b::after { content: " •"; color: var(--gold-d); } }
/* Equipo: asignación rápida y tablero */
.quick { display: grid; gap: 12px; }
.quick-row { display: grid; grid-template-columns: 1fr 150px 110px auto; gap: 8px; }
.quick-row input, .quick-row select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
@media (max-width: 700px) { .quick-row { grid-template-columns: 1fr 1fr; } .quick-row input[name=asunto] { grid-column: 1 / -1; } }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); border-top: 4px solid var(--m); }
.col-h { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px; }
.col-t { flex: 1; min-width: 0; }
.col-t b { display: block; font-size: 15px; }
.col-t span { font-size: 12px; color: var(--muted); }
.ring-t { font-size: 12px; font-weight: 700; fill: var(--fg); }
.col-stats { display: flex; gap: 12px; padding: 0 14px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.col-stats b { color: var(--fg); }
.col-stats .bad b, .col-stats .bad { color: var(--bad); }
.col-list { padding: 4px 12px; max-height: 360px; overflow: auto; }
.ctask { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ctask:last-child { border-bottom: 0; }
.ctask.late .t-title { color: var(--bad); }
.col-f { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg); }
.col-f .btn { flex: 1; padding: 8px 10px; font-size: 12.5px; }

.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.ok i { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.live.warn i { background: var(--warn); }
.notice { border-left: 4px solid var(--warn); color: var(--fg); }

/* Correcciones de móvil y piezas del CRM en vivo */
.kpi, .kpi > div { min-width: 0; }
.kpi b { font-size: clamp(20px, 4.2vw, 28px); overflow-wrap: anywhere; }
.kpi span { overflow-wrap: anywhere; }
.top > div:first-child { min-width: 0; }
@media (max-width: 860px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 12px; gap: 10px; }
  .kpi .ico { width: 34px; height: 34px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav button { min-width: 72px; flex: none; }
  .nav button span { white-space: nowrap; }
  .top h1 { font-size: 24px; }
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chipf { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--fg); }
.chipf i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chipf b { color: var(--muted); font-weight: 700; }
.chipf.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chipf.on b { color: var(--gold); }
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 8px; padding: 12px; }
.filters input, .filters select { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-width: 0; width: 100%; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: 1 / -1; } }
.sum { color: var(--fg); }
.tbl-wrap { overflow-x: auto; padding: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .sub { display: block; font-size: 11.5px; color: var(--muted); }
.ok-dot { color: var(--ok); font-weight: 800; }
@media (max-width: 700px) { .hide-s { display: none; } }
.who { display: flex; align-items: center; gap: 10px; }
.av.sm { width: 30px; height: 30px; font-size: 11px; flex: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex: none; }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(460px, 100vw); border-radius: 18px 0 0 18px; display: flex; flex-direction: column; padding: 0; }
dialog.drawer[open] { animation: dr-in .22s ease; }
@keyframes dr-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.dr-h { display: flex; justify-content: space-between; gap: 10px; padding: 20px 20px 12px; border-bottom: 1px solid var(--line); }
.dr-h h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 22px; }
.dr-h p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dr-b { padding: 16px 20px; overflow: auto; flex: 1; }
.dr-f { padding: 12px 20px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.hist { display: grid; gap: 6px; }
.hist-i, .lead { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; color: inherit; text-decoration: none; font: inherit; }
.hist-i:hover, .lead:hover { border-color: var(--gold); }
.hist-i > div, .lead > div { flex: 1; min-width: 0; }
.hist-i span, .lead span { display: block; font-size: 12px; color: var(--muted); }
.lead-list { display: grid; gap: 6px; max-height: 560px; overflow: auto; }
.hbar { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.hbar div { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.hbar b { text-align: right; }

@media (max-width: 480px) { .hide-xs { display: none; } .tbl td, .tbl th { padding: 9px 8px; } .tbl .sub { display: none; } }

/* Acceso rápido */
.btn.big { padding: 14px 18px; font-size: 15px; border-radius: 12px; }
.btn.big svg { flex: none; }
.linkbtn { border: 0; background: transparent; color: var(--gold-d); font-weight: 600; cursor: pointer; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.quick { text-align: center; }
.q-user { display: grid; justify-items: center; gap: 6px; padding: 6px 0 4px; }
.q-user b { font-size: 20px; font-family: 'Fraunces', Georgia, serif; font-weight: 500; }
.q-user span { color: var(--muted); font-size: 13px; }
.login-card input[type=email], .login-card input[type=password] { font-size: 16px; }
.bio-offer { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; width: min(520px, calc(100vw - 24px)); display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 20px 50px rgba(10,14,28,.3); }
.bio-offer .bio-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-d); grid-row: span 2; }
.bio-offer b { display: block; }
.bio-offer span { font-size: 13px; color: var(--muted); }
.bio-offer .btn { grid-column: 2; }
@media (min-width: 560px) { .bio-offer { grid-template-columns: auto 1fr auto auto; } .bio-offer .bio-ico { grid-row: auto; } .bio-offer .btn { grid-column: auto; } }
/* Navegación de móvil: 4 accesos + «Más» */
.mbar, .sheet { display: none; }
@media (max-width: 860px) {
  .mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--navy); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
  .mbar button { display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: rgba(237,232,220,.7); font-size: 11px; font-weight: 600; padding: 7px 2px; border-radius: 10px; cursor: pointer; }
  .mbar button.on { color: #fff; background: rgba(226,180,87,.16); }
  .mbar button.on svg { color: var(--gold); }
  .sheet:not([hidden]) { display: flex; position: fixed; inset: 0; z-index: 40; background: rgba(10,14,28,.5); align-items: flex-end; }
  .sheet-card { width: 100%; background: var(--panel); border-radius: 22px 22px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); animation: sh-up .22s ease; }
  @keyframes sh-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet-h { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
  .sheet-h > div:nth-child(2) { flex: 1; }
  .sheet-h b { display: block; }
  .sheet-h span { font-size: 12.5px; color: var(--muted); }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sheet-grid button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-weight: 600; font-size: 12.5px; cursor: pointer; }
  .sheet-grid button.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--panel)); }
  .sheet-grid svg { color: var(--gold-d); }
  .main { padding-bottom: 96px; }
}

.profile { cursor: pointer; border-radius: 12px; }
.profile:hover { background: rgba(255,255,255,.05); }
.as-banner { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--gold); color: #1B2238; padding: 8px 10px 8px 16px; border-radius: 0 0 14px 14px; display: flex; gap: 12px; align-items: center; font-size: 13.5px; box-shadow: 0 6px 18px rgba(0,0,0,.2); max-width: calc(100vw - 16px); }
.as-banner .btn { background: #1B2238; color: #fff; border: 0; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.acc-grid .span2 { grid-column: 1 / -1; }
.acc-grid form.card { display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fld input { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.fld input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -4px; }
.meter i { height: 5px; border-radius: 3px; background: var(--line); }
.meter i.on.s1 { background: #D9534F; } .meter i.on.s2 { background: #E2B457; } .meter i.on.s3, .meter i.on.s4 { background: #2E9D6B; }
.dev-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dev-row b { display: block; } .dev-row span { font-size: 13px; color: var(--muted); }
.acc-list { display: grid; gap: 10px; margin-top: 12px; }
.acc-i { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
.acc-t { flex: 1; min-width: 180px; display: grid; } .acc-t span { font-size: 12.5px; color: var(--muted); }
.acc-b { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } .acc-b { width: 100%; } .acc-b .btn { flex: 1; } }

.mixbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--line); }
.mixbar i:first-child { background: var(--gold); } .mixbar i:last-child { background: #8B5CF6; }
.mixleg { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; font-size: 13.5px; }
.mixleg .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

@media (max-width: 860px) { .as-banner { left: 0; right: 0; transform: none; max-width: none; border-radius: 0; justify-content: space-between; padding-top: calc(8px + env(safe-area-inset-top, 0px)); } .app:has(.as-banner) .main { padding-top: 64px; } }

.office-hero { padding: 0; overflow: hidden; }
.office-ph { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 28px 18px; background: radial-gradient(120% 120% at 20% 0%, #2A3A66 0%, #121B33 60%); color: #F2EBDD; }
.office-ph b { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 500; } .office-ph span { color: #AEB6C6; max-width: 420px; font-size: 14px; }
.office-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 460px; margin-bottom: 6px; }
.office-grid i { font-style: normal; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: rgba(226,180,87,.14); border: 1px solid rgba(226,180,87,.35); color: var(--gold); }
.dept-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dept { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px; } .dept span { font-size: 12.5px; color: var(--muted); }
.log { display: grid; margin-top: 8px; } .log-i { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; } .log-t { color: var(--muted); min-width: 118px; font-variant-numeric: tabular-nums; }

/* Elementos pulsables */
button.kpi { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; position: relative; }
.kpi.go:hover, .kpi.go:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,28,56,.14); border-color: var(--gold); }
.kpi .chev { margin-left: auto; font-style: normal; font-size: 22px; color: var(--muted); align-self: center; }
.open { cursor: pointer; } .task.open:hover, .t-main.open:hover .t-title, .pj.open:hover { color: var(--gold-d); }
.pj.open:hover { box-shadow: 0 10px 26px rgba(20,28,56,.14); transform: translateY(-2px); } .pj.open { transition: transform .15s, box-shadow .15s; }
.next.open:hover { background: rgba(255,255,255,.14); }
.hit { cursor: pointer; } .hit:hover { fill: rgba(226,180,87,.12); }
.flash { animation: flash 1.4s ease; } @keyframes flash { 0%,100% { box-shadow: var(--shadow); } 25% { box-shadow: 0 0 0 4px rgba(226,180,87,.55); } }
.dr-list { display: grid; margin-bottom: 14px; } .dr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mixb { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 4px 0; text-align: left; } .mixb:hover { color: var(--gold-d); }

dialog:not([open]) { display: none !important; }

/* Tema día / noche */
:root[data-theme="light"] { color-scheme: light; }
.logo-night { display: none !important; }
:root[data-theme="dark"] .logo-day { display: none !important; }
:root[data-theme="dark"] .logo-night { display: block !important; }
.theme-float { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 5; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; backdrop-filter: blur(6px); }
.theme-float:hover { background: rgba(255,255,255,.18); }
.theme-t { margin-top: auto; }
.theme-t + .logout { margin-top: 0; }
/* «Recordarme 30 días»: casilla y texto en una línea */
.login-card label.remember { display: flex; flex-direction: row; align-items: center; gap: 10px; color: var(--fg); font-weight: 500; font-size: 13.5px; cursor: pointer; }
.login-card label.remember input { padding: 0; width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--gold-d); }
.login-card label.remember span { flex: 1; min-width: 0; }

.theme-i span { display: none; }
.side-top .theme-i { margin-left: auto; flex: none; }
.app.collapsed .side-top { flex-direction: column; gap: 8px; }
.app.collapsed .side-top .theme-i { margin-left: 0; }

/* ── Proyectos inmobiliarios ── */
.pf-group { display: grid; gap: 12px; }
.pf-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.pf-gh h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 21px; margin: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pf { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.pf::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--pc); }
.pf.open:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,28,56,.15); }
.pf:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pf-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pf-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf h3 { margin: -4px 0 0; font-size: 17px; line-height: 1.3; }
.pf-loc { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.pf-amt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pf-amt b { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 500; line-height: 1; }
.pf-amt span { font-size: 13px; color: var(--muted); }
.pf-bar { position: relative; height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; display: flex; }
.pf-bar i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 75%, #fff), var(--pc)); border-radius: 99px; }
.pf-bar em { position: absolute; right: 0; top: 0; height: 100%; background: repeating-linear-gradient(45deg, var(--gold) 0 6px, var(--gold-2) 6px 12px); }
.pf-pct { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; margin-top: -4px; }
.pf-pct small { font-weight: 400; color: var(--muted); }
.pf-cycle { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.pf-cycle li { position: relative; display: grid; justify-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); text-align: center; }
.pf-cycle li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.pf-cycle li:first-child::before { display: none; }
.pf-cycle li.done::before, .pf-cycle li.now::before { background: var(--pc); }
.pf-cycle i { width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line); z-index: 1; }
.pf-cycle li.done i { background: var(--pc); border-color: var(--pc); }
.pf-cycle li.now i { background: var(--panel); border-color: var(--pc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 25%, transparent); }
.pf-cycle li.now span { color: var(--text, inherit); font-weight: 700; }
.pf-cycle.cancel { display: block; color: var(--bad); font-weight: 700; font-size: 12.5px; }
.pf-sit { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--pc) 9%, transparent); font-size: 13px; }
.pf-sit small { display: block; color: var(--muted); font-size: 11.5px; }
.pf-sit.run { display: grid; gap: 7px; }
.pf-ic { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #fff; font-size: 13px; font-weight: 700; }
.pf-time { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.pf-time span:last-child { color: var(--muted); }
.pf-time .late { color: var(--bad); }
.bar.thin { height: 6px; }
.pf-warn { margin: 0; font-size: 12px; color: var(--warn); font-weight: 600; }
.pf-audit summary { cursor: pointer; font-weight: 600; color: var(--warn); }
.pf-audit ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; display: grid; gap: 6px; }
@media (max-width: 520px) { .pf-grid { grid-template-columns: 1fr; } .pf-amt b { font-size: 24px; } }
#pf-list { display: grid; gap: 30px; }


/* ── Módulo Obras ── */
.obra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.obra-card { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.obra-card.vacia { cursor: default; }
.obra-card:hover:not(.vacia) { border-color: var(--gold); }
.obra-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.obra-meta b { color: var(--fg); }
.obra-meta b.bad, .bad { color: #C94F4F; }
.obar { position: relative; height: 18px; min-width: 90px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden; }
.obar i { position: absolute; inset: 0 auto 0 0; background: var(--gold); border-radius: 99px; }
.obar b { position: relative; display: block; text-align: center; font-size: 11px; line-height: 18px; color: var(--fg); }
.obra-tabs { margin: 4px 0 14px; }
.obra-form { display: flex; flex-direction: column; gap: 12px; }
.obra-form .fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.obra-form input, .obra-form select, .obra-form textarea { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-weight: 400; }
.obra-form input[type=checkbox] { width: 20px; height: 20px; }
.of-btns { display: flex; gap: 10px; }
