:root {
  --bg: #F4F6F9; --surface: #FFFFFF; --surface-2: #FAFBFC; --muted-bg: #EEF1F5; --col-bg: #E9EDF2;
  --border: #E3E6EB; --border-strong: #D5DAE1;
  --text: #14171C; --text-2: #3F4752; --muted: #5B6472;
  --accent: #1D4ED8; --accent-hover: #1E40AF; --accent-soft: #DBEAFE; --accent-ink: #1E3A8A;
  --nav: #0F172A; --nav-2: #1E293B; --nav-text: #CBD5E1; --nav-muted: #94A3B8;
  --red: #B42318; --red-soft: #FEECEB; --red-border: #F4B4AE;
  --amber: #F59E0B; --amber-soft: #FEF3C7; --amber-ink: #92400E;
  --green: #0F766E; --green-soft: #E6F4F1; --green-ink: #0F5E57;
  --blue: #2563EB; --gray: #94A3B8;
  --shadow: 0 1px 2px rgba(15,23,42,.06);
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1120; --surface: #111827; --surface-2: #0F172A; --muted-bg: #1F2937; --col-bg: #172033;
  --border: #253046; --border-strong: #334155;
  --text: #E5E7EB; --text-2: #CBD5E1; --muted: #9AA4B2;
  --accent: #3B82F6; --accent-hover: #60A5FA; --accent-soft: #1E3A8A; --accent-ink: #DBEAFE;
  --nav: #070B14; --nav-2: #1E293B;
  --red: #F87171; --red-soft: #3B1518; --red-border: #7F1D1D;
  --amber-soft: #3A2A0B; --amber-ink: #FCD34D;
  --green: #2DD4BF; --green-soft: #0D2B28; --green-ink: #5EEAD4;
  --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.4; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.nav { flex: 1 1 220px; max-width: 100%; background: var(--nav); color: #E2E8F0; padding: 22px 14px; display: flex; flex-direction: column; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.logo { width: 36px; height: 36px; border-radius: 8px; background: #1D4ED8; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; color: #fff; font-size: 14px; flex: none; }
.nav-brand b { display: block; font-size: 15px; }
.nav-brand small { display: block; font-size: 12px; color: var(--nav-muted); font-family: var(--mono); }
.nav-links { display: flex; flex-direction: column; gap: 3px; }
.nav a.nl { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--nav-text); text-decoration: none; min-height: 42px; }
.nav a.nl:hover { background: var(--nav-2); color: #fff; }
.nav a.nl.on { background: var(--nav-2); color: #fff; font-weight: 600; }
.nav a.nl svg { flex: none; }
.nav .badge-r { margin-left: auto; font-family: var(--mono); font-size: 12px; background: #7F1D1D; color: #FEE2E2; padding: 1px 8px; border-radius: 99px; }
.nav-sec { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--nav-muted); padding: 0 12px; margin-bottom: 4px; }
.nav-proj a { font-size: 13px; min-height: 34px !important; padding: 6px 12px !important; }
.nav-proj .dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.nav-proj span.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-foot { margin-top: auto; border-top: 1px solid var(--nav-2); padding-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.nav-user { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--nav-text); }
.nav-user .who { min-width: 0; }
.nav-user .who b { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user .who small { color: var(--nav-muted); }
.nav-btns { display: flex; gap: 6px; padding: 0 8px; }
.nav-btns a, .nav-btns button { flex: 1; background: transparent; border: 1px solid var(--nav-2); color: var(--nav-text); border-radius: 8px; height: 36px; cursor: pointer; font-size: 12px; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.nav-btns a:hover, .nav-btns button:hover { background: var(--nav-2); color: #fff; }

.main { flex: 999 1 560px; min-width: 0; padding: 26px 30px 48px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .main { padding: 18px 16px 40px; } .nav-proj { display: none; } }

.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.head .tt { margin-right: auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.head h1 { margin: 0; font-size: 25px; font-weight: 700; }
.head p { margin: 0; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }

/* Controls */
.btn { height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--muted-bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--red); border-color: var(--red-border); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.in, select.in, textarea.in { height: 40px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 400; width: 100%; }
textarea.in { height: auto; padding: 9px 11px; resize: vertical; min-height: 70px; line-height: 1.45; }
.in:focus, .btn:focus-visible, a:focus-visible, .card-t:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chk { display: flex; align-items: center; gap: 9px; font-size: 13px; min-height: 34px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; min-width: 0; }

/* Panels */
.grid-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi .v { font-family: var(--mono); font-size: 30px; font-weight: 700; }
.kpi .s { font-size: 12px; color: var(--muted); }
.flexw { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel.w2 { flex: 2 1 560px; } .panel.w1 { flex: 1 1 320px; } .panel.full { flex: 1 1 100%; }
.panel h2 { margin: 0; font-size: 15px; font-weight: 600; }
.ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.empty { color: var(--muted); font-size: 13px; padding: 14px 0; text-align: center; }

/* Badges */
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; display: inline-block; white-space: nowrap; }
.s-en_tiempo, .s-completo { background: var(--green-soft); color: var(--green-ink); }
.s-riesgo { background: var(--amber-soft); color: var(--amber-ink); }
.s-atrasado { background: var(--red-soft); color: var(--red); }
.s-pausado, .s-cerrado, .s-sin_tareas { background: var(--muted-bg); color: var(--text-2); }
.late { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--red-soft); color: var(--red); white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.avatar.lg { width: 34px; height: 34px; font-size: 12px; }
.avs { display: flex; } .avs .avatar { border: 2px solid var(--bg); margin-left: -8px; } .avs .avatar:first-child { margin-left: 0; }

/* Progress */
.bar { position: relative; height: 10px; background: var(--muted-bg); border-radius: 99px; overflow: hidden; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.bar > b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); }
.prow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr) 56px 104px; align-items: center; gap: 14px; text-decoration: none; color: var(--text); padding: 6px 4px; border-radius: 8px; }
.prow:hover { background: var(--surface-2); }
.prow .n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prow .n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.prow .n small { color: var(--muted); font-size: 12px; }
.prow .pc { font-family: var(--mono); font-weight: 700; text-align: right; }
.prow .pill { justify-self: end; }
@media (max-width: 640px) { .prow { grid-template-columns: minmax(0,1fr) 50px; } .prow .bar, .prow .pill { display: none; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }

/* Donut / bars */
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 99px; display: flex; align-items: center; justify-content: center; flex: none; }
.donut > div { width: 98px; height: 98px; border-radius: 99px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut b { font-family: var(--mono); font-size: 24px; }
.donut small { font-size: 12px; color: var(--muted); }
.dl { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.dl div { display: flex; align-items: center; gap: 8px; }
.dl .lb { min-width: 92px; }
.dl b { font-family: var(--mono); }
.cols { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.cols > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.cols i { width: 100%; background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; display: block; }
.cols small { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--muted-bg); }
.stack i { display: block; height: 100%; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
table.tbl th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--muted-bg); vertical-align: middle; }
table.tbl tr.click { cursor: pointer; } table.tbl tr.click:hover td { background: var(--surface-2); }

/* Tabs */
.tabs { display: flex; gap: 4px; background: var(--col-bg); padding: 4px; border-radius: 10px; flex-wrap: wrap; }
.tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer; font-size: 13px; }
.tabs button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.utabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.utabs button { height: 42px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.utabs button.on { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }

/* Project summary bar */
.sumbar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.sumbar .pg { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sumbar .facts { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.sumbar .facts span { display: flex; flex-direction: column; }
.sumbar .facts b { font-family: var(--mono); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .sp { margin-left: auto; }

/* Kanban */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; min-height: 300px; }
.col { flex: 0 0 272px; background: var(--col-bg); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 9px; max-height: calc(100vh - 150px); }
.col.over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.col-h h3 { margin: 0; font-size: 14px; font-weight: 700; }
.col-h .cnt { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--surface); padding: 1px 8px; border-radius: 99px; }
.col-body { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; min-height: 30px; padding: 2px; }
.card-t { display: flex; flex-direction: column; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; cursor: pointer; box-shadow: var(--shadow); text-align: left; color: var(--text); width: 100%; }
.card-t:hover { border-color: var(--border-strong); }
.card-t.is-late { border-color: var(--red-border); }
.card-t.dragging { opacity: .45; }
.card-t .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: #fff; }
.card-t .ti { font-size: 14px; font-weight: 500; line-height: 1.35; word-break: break-word; }
.card-t .meta { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.due { font-family: var(--mono); font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--muted-bg); color: var(--text-2); font-size: 11.5px; }
.due.late { background: var(--red-soft); color: var(--red); }
.due.done { background: var(--green-soft); color: var(--green-ink); }
.due.soon { background: var(--amber-soft); color: var(--amber-ink); }
.card-t .meta .avatar { margin-left: auto; width: 26px; height: 26px; }
.prio-alta { color: var(--red); font-weight: 700; }
.add-card { height: 38px; border: 1px dashed var(--border-strong); border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; text-align: left; padding: 0 12px; }
.add-card:hover { background: var(--surface); }
.quick { display: flex; flex-direction: column; gap: 6px; }

/* Gantt */
.gantt { overflow-x: auto; }
.gantt-in { min-width: 760px; }
.g-row { display: grid; grid-template-columns: 240px 1fr; align-items: center; border-bottom: 1px solid var(--muted-bg); min-height: 34px; }
.g-row .gn { font-size: 13px; padding: 6px 8px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.g-track { position: relative; height: 34px; }
.g-bar { position: absolute; top: 8px; height: 18px; border-radius: 5px; min-width: 6px; }
.g-head { position: relative; height: 26px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.g-head span { position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); opacity: .7; }
.g-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted-bg); }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal .dh { font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cal .d { min-height: 110px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; background: var(--surface); }
.cal .d.out { background: var(--surface-2); }
.cal .d.out .dn { opacity: .45; }
.cal .d.today .dn { background: var(--accent); color: #fff; border-radius: 99px; }
.cal .dn { font-family: var(--mono); font-size: 12px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.cal .ev { font-size: 11.5px; padding: 3px 6px; border-radius: 5px; border-left: 3px solid; background: var(--muted-bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; color: var(--text); }
.cal .ev.late { background: var(--red-soft); }
@media (max-width: 760px) { .cal .d { min-height: 70px; } .cal .ev { font-size: 10px; } }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; z-index: 50; }
.modal { width: 100%; max-width: 920px; background: var(--surface); border-radius: 14px; box-shadow: 0 20px 50px rgba(15,23,42,.3); display: flex; flex-direction: column; overflow: hidden; }
.modal.sm { max-width: 560px; }
.m-h { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--muted-bg); }
.m-h .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.m-h h2 { margin: 0; font-size: 20px; }
.m-title-in { font-size: 20px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; margin-left: -7px; width: 100%; background: transparent; }
.m-title-in:hover, .m-title-in:focus { border-color: var(--border-strong); background: var(--surface); }
.m-b { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.m-f { padding: 14px 24px; border-top: 1px solid var(--muted-bg); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.m-split { display: flex; flex-wrap: wrap; }
.m-split .ml { flex: 999 1 420px; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.m-split .mr { flex: 1 1 260px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); border-left: 1px solid var(--muted-bg); }
.m-split h3 { margin: 0; font-size: 14px; font-weight: 700; }
.cl-item { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; }
.cl-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cl-item.done span { color: var(--muted); text-decoration: line-through; }
.cl-item .x { margin-left: auto; opacity: .0; }
.cl-item:hover .x { opacity: 1; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed .it { display: flex; gap: 10px; font-size: 13px; }
.feed .it .bd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed .it .tx { color: var(--text-2); white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.att { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.att a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.multi label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 9px; border: 1px solid var(--border-strong); border-radius: 99px; cursor: pointer; background: var(--surface); font-weight: 500; color: var(--text); }
.multi input { accent-color: var(--accent); }

/* Toast */
.toast { position: fixed; right: 18px; bottom: 18px; background: #0F172A; color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 80; max-width: 380px; }
.toast.err { background: #7F1D1D; }

/* Project cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); border-top: 4px solid; }
.pcard:hover { border-color: var(--border-strong); }
.pcard h3 { margin: 0; font-size: 16px; }
.pcard p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .ft { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }

/* Auth pages */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--nav); }
.auth .side { flex: 1 1 420px; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; color: #E2E8F0; }
.auth .side h1 { margin: 0; font-size: 42px; line-height: 1.1; color: #fff; }
.auth .side p { margin: 0; font-size: 17px; line-height: 1.55; color: #CBD5E1; max-width: 520px; }
.auth .box-wrap { flex: 1 1 420px; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth .box { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.auth .box h2 { margin: 0; font-size: 22px; }
.ms-btn { height: 48px; border: 1px solid #8C8C8C; border-radius: 6px; background: #fff; color: #14171C; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; }
.ms-btn:hover { background: #F3F4F6; }
.alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; background: var(--red-soft); color: var(--red); }
.alert.ok { background: var(--green-soft); color: var(--green-ink); }
@media (max-width: 640px) { .auth .side { padding: 32px 20px; } .auth .side h1 { font-size: 32px; } }

/* Selector de personas */
.picker { display: flex; flex-direction: column; gap: 8px; }
.pk-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 4px; background: var(--surface); }
.pk-list label { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; min-height: 34px; }
.pk-list label:hover { background: var(--muted-bg); }
.pk-list input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }

/* Logo de la empresa (Administración → Apariencia) */
.logo-img { background: #FFFFFF; border-radius: 8px; padding: 4px 8px; height: 40px; max-width: 150px; display: flex; align-items: center; justify-content: center; flex: none; }
.logo-img img { max-height: 32px; max-width: 134px; display: block; }
.logo-img.grande { height: 56px; max-width: 220px; padding: 6px 12px; }
.logo-img.grande img { max-height: 44px; max-width: 196px; }
.logo-prev { display: flex; align-items: center; justify-content: center; height: 110px; border-radius: 10px; border: 1px dashed var(--border-strong); padding: 12px; }
.logo-prev img { max-height: 70px; max-width: 100%; }
