/* Don Galeon Workspace - estilos */
:root {
  --bg: #f8f7fc; --surface: #fff; --line: #ebe8f3; --line-strong: #dcd8ea;
  --text: #1d1b2a; --muted: #6f6c80; --faint: #9a97ab;
  --accent: #6d4bd8; --accent-dark: #5a3bc0; --accent-soft: #efeaff; --side: #f4f0fd;
  --green: #2fa67a; --yellow: #d99a0b; --red: #d94a4a; --gray: #a3a1b3;
  --r: 14px; --r-sm: 9px;
  --shadow: 0 1px 2px rgba(30, 20, 60, .04), 0 10px 26px -14px rgba(30, 20, 60, .14);
  --shadow-lg: 0 24px 60px -20px rgba(30, 20, 60, .28);
  --side-w: 228px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font: 14px/1.45 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text);
  background: radial-gradient(1100px 480px at 88% -8%, #efe9ff 0, transparent 62%), radial-gradient(900px 420px at -5% 105%, #e6f2ff 0, transparent 58%), var(--bg);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { margin-left: auto; } .nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* Estructura */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.app.collapsed { --side-w: 68px; }
.side { position: sticky; top: 0; height: 100vh; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--side); border-right: 1px solid var(--line); z-index: 30; overflow: hidden auto; }
.brand { padding: 8px 10px 14px; line-height: 1.15; }
.brand b { display: block; font-size: 17px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; white-space: nowrap; }
.brand span { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #3a3750; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: rgba(109, 75, 216, .07); text-decoration: none; }
.nav a.on { background: #e5dcff; color: var(--accent-dark); font-weight: 600; }
.nav .badge { margin-left: auto; }
.side .collapse { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); width: 100%; white-space: nowrap; }
.side .collapse:hover { background: rgba(109, 75, 216, .07); }
.app.collapsed .nav span, .app.collapsed .brand span, .app.collapsed .collapse span, .app.collapsed .nav .badge { display: none; }
.app.collapsed .brand b { font-size: 0; } .app.collapsed .brand b::first-letter { font-size: 17px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: rgba(248, 247, 252, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.searchbtn { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--faint); text-align: left; }
.searchbtn kbd { margin-left: auto; font: 11px inherit; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); }
.iconbtn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #3a3750; }
.iconbtn:hover { background: rgba(109, 75, 216, .08); }
.iconbtn .badge { position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
#view { padding: 22px 24px 60px; max-width: 1480px; width: 100%; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head p { color: var(--muted); margin-top: 2px; }

/* Controles */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; font-weight: 600; background: var(--accent); color: #fff; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:hover { background: var(--accent-dark); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: #faf9fe; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f0c9c9; } .btn.danger:hover { background: #fdf3f3; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link { color: var(--accent); font-weight: 600; font-size: 12.5px; } .link:hover { text-decoration: underline; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; min-height: 36px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 78px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 75, 216, .14); }
input[type=color] { width: 40px; height: 36px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; }
.f { display: block; margin-bottom: 12px; }
.f > span { display: block; font-size: 12px; font-weight: 600; color: #4b4860; margin-bottom: 5px; }
.f .err, .formerr { display: block; color: var(--red); font-size: 12px; margin-top: 4px; min-height: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { position: relative; } .pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 12.5px; background: #fff; }
.pick input:checked + span { background: var(--accent-soft); border-color: #c9b9fb; color: var(--accent-dark); font-weight: 600; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg { display: inline-flex; padding: 3px; background: #efecf7; border-radius: 10px; gap: 2px; }
.seg button, .seg a { padding: 5px 12px; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.seg .on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(30, 20, 60, .1); } .seg a:hover { text-decoration: none; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar select, .toolbar input { width: auto; min-width: 130px; max-width: 200px; }

/* Superficies */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.card > h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card > h2 .right { font-weight: 500; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.kpi:hover { border-color: #c9b9fb; text-decoration: none; transform: translateY(-1px); }
.kpi span { color: var(--muted); font-size: 12.5px; } .kpi b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.kpi.warn b { color: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--gray); }
.dot.green { background: var(--green); } .dot.yellow { background: var(--yellow); } .dot.red { background: var(--red); } .dot.gray { background: var(--gray); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: color-mix(in srgb, var(--c, #8b8fa3) 13%, #fff); color: color-mix(in srgb, var(--c, #8b8fa3) 78%, #111); }
.chip.plain { background: #f1eff7; color: #55526a; font-weight: 500; }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10.5px; font-weight: 700; color: #fff; flex: none; background: var(--c, #6d4bd8); border: 2px solid #fff; }
.av.lg { width: 36px; height: 36px; font-size: 13px; } .avs { display: inline-flex; } .avs .av + .av { margin-left: -8px; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; background: var(--c); object-fit: cover; }
.logo.lg { width: 48px; height: 48px; font-size: 18px; border-radius: 13px; }

/* Listas y tareas */
.list > * + * { border-top: 1px solid var(--line); }
.trow { display: flex; align-items: center; gap: 10px; padding: 9px 2px; min-height: 42px; }
.trow .ttitle { flex: 1; min-width: 0; text-align: left; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .ttitle:hover { color: var(--accent); }
.trow.done .ttitle { text-decoration: line-through; color: var(--faint); }
.trow .meta { display: flex; align-items: center; gap: 8px; flex: none; color: var(--muted); font-size: 12px; }
.chk { width: 19px; height: 19px; border-radius: 6px; border: 1.8px solid #bdb8d1; flex: none; display: grid; place-items: center; background: #fff; transition: all .15s; }
.chk:hover { border-color: var(--accent); }
.chk.on { background: var(--green); border-color: var(--green); } .chk.on::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.chk[disabled] { opacity: .5; cursor: default; }
.due.late { color: var(--red); font-weight: 600; } .due.today { color: var(--accent-dark); font-weight: 600; }
.item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; }
.item .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c, var(--gray)); flex: none; min-height: 28px; }
.item .grow { flex: 1; min-width: 0; } .item .grow b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fbfaff; } .tblwrap { overflow-x: auto; }
.bars .row { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .bars .track { flex: 1; height: 8px; border-radius: 9px; background: #f0edf8; overflow: hidden; display: flex; }
.bars .track i { display: block; height: 100%; background: var(--accent); } .bars .track i.late { background: var(--red); }

/* Kanban */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.col { flex: 0 0 286px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 120px; }
.col.over { background: var(--accent-soft); border-color: #c9b9fb; }
.col > header { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 700; font-size: 13px; }
.col > header .n { color: var(--muted); font-weight: 600; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(30, 20, 60, .05); border-left: 4px solid var(--c, var(--line)); cursor: grab; }
.kcard:hover { border-color: #cfc6ee; border-left-color: var(--c); } .kcard.dragging { opacity: .45; }
.kcard .t { display: flex; align-items: center; gap: 8px; font-weight: 600; } .kcard .t a { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard p { color: var(--muted); font-size: 12.5px; margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; font-size: 12px; color: var(--muted); }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; } .cardgrid .kcard { cursor: default; margin: 0; }

/* Status de cliente */
.chead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; } .tabs a.on { color: var(--accent-dark); border-color: var(--accent); }
.upd { display: flex; gap: 10px; padding: 13px 0; } .upd + .upd { border-top: 1px solid var(--line); }
.upd .b { flex: 1; min-width: 0; } .upd .who { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .upd .who b { color: var(--text); font-size: 13.5px; }
.upd .txt { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; } .upd.resolved .txt { color: var(--faint); text-decoration: line-through; }
.upd ul { list-style: none; margin: 6px 0 0; padding: 0; } .upd li { display: flex; align-items: center; gap: 8px; padding: 3px 0; } .upd li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); flex: none; }
.upd li.linked span { color: var(--muted); } .upd li.linked.done span { text-decoration: line-through; }
.upd .acts { display: flex; gap: 12px; margin-top: 6px; }
.mention { color: var(--accent-dark); font-weight: 600; background: var(--accent-soft); padding: 0 4px; border-radius: 5px; }
.group { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 0 4px; }
.addline { display: flex; gap: 8px; margin-top: 10px; } .addline input { flex: 1; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; } .dl dt { color: var(--muted); } .dl dd { margin: 0; overflow-wrap: anywhere; }

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(var(--days, 7), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.cal .dow { padding: 8px 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: #fbfaff; text-transform: uppercase; letter-spacing: .05em; }
.cal .day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.cal .day:nth-child(7n), .cal.nowe .day:nth-child(5n) { border-right: 0; }
.cal.nowe .day:nth-child(7n) { border-right: 1px solid var(--line); }
.cal .day.out { background: #fbfafd; } .cal .day.out .num { color: var(--faint); } .cal .day.over { background: var(--accent-soft); }
.cal .num { font-size: 12px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 3px; }
.cal .day.today .num { background: var(--accent); color: #fff; }
.ev { display: flex; align-items: center; gap: 5px; width: 100%; text-align: left; padding: 2px 6px; margin-bottom: 3px; border-radius: 6px; font-size: 11.5px; font-weight: 600; overflow: hidden; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 75%, #111); border-left: 3px solid var(--k, var(--c)); cursor: pointer; }
.ev span { overflow: hidden; text-overflow: ellipsis; } .ev time { font-weight: 500; opacity: .8; flex: none; }
.ev.task { background: #fff; border: 1px dashed #cfc9e2; border-left: 3px solid var(--k, #cfc9e2); color: #4b4860; font-weight: 500; }
.ev.task.done span { text-decoration: line-through; color: var(--faint); } .ev.conflict { box-shadow: inset 0 0 0 1px var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 5px; }
.agenda .dayh { font-weight: 700; padding: 12px 0 4px; font-size: 13px; } .agenda .dayh.today { color: var(--accent-dark); }

/* Modales, panel lateral y avisos */
.overlay { position: fixed; inset: 0; background: rgba(29, 27, 42, .36); z-index: 60; display: grid; place-items: start center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .15s; }
.modal { width: 100%; max-width: 560px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .18s; }
.modal.wide { max-width: 760px; } .modal.narrow { max-width: 420px; }
.modal > header { display: flex; align-items: center; padding: 16px 20px 0; } .modal > header h2 { font-size: 17px; }
.modal .body { padding: 14px 20px 6px; } .modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; flex-wrap: wrap; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 50; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s; border-left: 1px solid var(--line); }
.drawer > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer .body { padding: 16px 18px 30px; overflow-y: auto; flex: 1; }
.drawer .titlein { font-size: 17px; font-weight: 700; border: 1px solid transparent; padding: 6px 8px; margin: -6px -8px 10px; width: calc(100% + 16px); border-radius: 8px; }
.drawer .titlein:hover { border-color: var(--line); } .drawer h3 { margin: 18px 0 8px; color: #4b4860; }
.cmt { display: flex; gap: 9px; padding: 8px 0; } .cmt .b { flex: 1; min-width: 0; } .cmt p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.suggest { border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; box-shadow: var(--shadow); margin-top: 4px; overflow: hidden; }
.suggest button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; text-align: left; } .suggest button:hover { background: var(--accent-soft); }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1d1b2a; color: #fff; padding: 10px 16px; border-radius: 11px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .18s; max-width: 90vw; } .toast.err { background: #b93434; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.menu button, .menu a { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; color: var(--text); font-weight: 500; }
.menu button:hover, .menu a:hover { background: var(--accent-soft); text-decoration: none; } .menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.rel { position: relative; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 16px 20px; font-size: 15px; box-shadow: none !important; }
.palette .res { max-height: 56vh; overflow-y: auto; padding: 6px 8px 10px; } .palette h3 { padding: 10px 12px 4px; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.palette a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; color: var(--text); } .palette a:hover, .palette a.sel { background: var(--accent-soft); text-decoration: none; }
.palette a small { color: var(--muted); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.notif { display: flex; gap: 12px; padding: 12px 4px; align-items: flex-start; width: 100%; text-align: left; } .notif:hover { background: #fbfaff; }
.notif.unread b { font-weight: 700; } .notif b { font-weight: 500; display: block; } .notif .dot { margin-top: 6px; background: transparent; } .notif.unread .dot { background: var(--accent); }

/* Acceso */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 400px; padding: 28px; } .auth .brand { padding: 0 0 18px; } .auth .btn { width: 100%; justify-content: center; padding: 10px; }
.notice { background: var(--accent-soft); border: 1px solid #d9cdfc; color: #45338f; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; overflow-wrap: anywhere; }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, #f1eff7, #f8f7fc, #f1eff7); background-size: 200% 100%; animation: sk 1.2s infinite; }

@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } } @keyframes slide { from { transform: translateX(30px); opacity: 0; } } @keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.menubtn { display: none; }
@media (max-width: 1100px) { .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; } .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .app, .app.collapsed { grid-template-columns: 1fr; --side-w: 240px; }
  .side { position: fixed; left: 0; top: 0; width: 240px; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .app.navopen .side { transform: none; } .app.navopen::after { content: ""; position: fixed; inset: 0; background: rgba(29, 27, 42, .3); z-index: 25; }
  .app.collapsed .nav span, .app.collapsed .brand span { display: inline; } .side .collapse { display: none; }
  .menubtn { display: grid; } .top { padding: 10px 14px; } .searchbtn kbd, .searchbtn span { display: none; } .searchbtn { flex: 0 0 auto; border: 0; background: none; padding: 8px; }
  .top .spacer { flex: 1; } #view { padding: 16px 14px 70px; }
  .grid2, .grid3 { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; }
  .trow .meta .opt { display: none; } .col { flex-basis: 262px; } .overlay { padding-top: 12px; }
  .cal .day { min-height: 74px; padding: 3px; } .ev time { display: none; } .ev { padding: 1px 4px; font-size: 10.5px; } .cal .dow { padding: 6px 4px; font-size: 10px; text-align: center; }
  h1 { font-size: 19px; } .toolbar select, .toolbar input { flex: 1 1 130px; max-width: none; }
}
