/* Noriu Equipo: the team dashboard (site/admin/). Same language as the site's v5 look (assets/css/v5.css), with the
   brand's own white #FFFFFF (the lightest colour anywhere) and black #000000: light grey surfaces, black type in a light weight with tight tracking, greys, and ONE sparky accent, the lime #DAF24C used
   only as a fill (primary buttons, the active marker, highlights). Panels hang inset 10px with large rounded corners
   like the site's header bar and hero panels; Inicio and the sign-in screen show one of the site's paintings as it is
   (the Costa Blanca bay). Light and dark themes; motion off for prefers-reduced-motion.
   Chart colours were checked with the dataviz validator on the #FFFFFF and #161616 chart surfaces: series 1 forest
   green, series 2 terracotta orange (light #006B4A / #C8641E, dark #2A9C74 / #D9692A).
   Refresh (Oct 31 2026, after the user's references): neutral grey canvas with #FFFFFF cards on soft shadows, a black
   pill for the current section that glides between items, big light titles and figures, pill filters, status pills
   with a dot, a stage strip in the CRM, hatched past bars in charts and a bottom dock on phones. Motion: sections
   cross-fade (View Transitions), cards rise in once on arrival, overlays slide and fade both ways, the site's hover
   language (a touch bigger + a soft glow, mouse only), everything off for prefers-reduced-motion. */

@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;
  src:url(/assets/fonts/inter-var.woff2) format('woff2'),url(/assets/fonts/inter-var.woff) format('woff')}

:root{
  color-scheme:light;
  --white:#FFFFFF;--white-2:#F2F4F7;--black:#000000;   /* the brand: full white, a cool clean grey for the menu and the
                                                          secondary surfaces, and black */
  --ink:#000000;--ink-2:#1E1F22;--muted:#535963;--muted-2:#79808A;--tile-ink:#1C1C1E;
  --bg:#F2F4F7;--canvas:#FFFFFF;--surface:#FFFFFF;--surface-2:#F7F8FA;--surface-3:#EDF0F4;
  --hairline:#E4E7EC;--hairline-2:#D0D5DD;
  --pill:#000000;--on-pill:#FFFFFF;
  --lime:#DAF24C;--lime-hover:#CBE638;--lime-soft:#F1FAC6;--lime-line:#C4DC3A;--on-lime:#000000;
  --ok:#0B6A33;--ok-bg:#E3F5E9;--warn:#8A5700;--warn-bg:#FCF0D8;--bad:#B53A3A;--bad-bg:#FCEBEB;--info:#1D4FB8;--info-bg:#E8EFFC;
  --s1:#006B4A;--s2:#C8641E;--s1-wash:rgba(0,107,74,.1);--s2-wash:rgba(200,100,30,.1);
  --grid:#EEF0F3;
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --card-shadow:0 0 0 1px var(--hairline),0 1px 2px rgba(0,0,0,.04),0 8px 24px -16px rgba(0,0,0,.14);
  --glow:0 0 0 1px var(--hairline-2),0 18px 40px -20px rgba(0,0,0,.28),0 2px 6px rgba(0,0,0,.05);
  --shadow:0 10px 30px -18px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:0 24px 60px -20px rgba(0,0,0,.35),0 4px 14px rgba(0,0,0,.06);
  --art-1x:url(/assets/img/art/full-coast-med-1200.webp?v=20261004m);--art-2x:url(/assets/img/art/full-coast-med-2400.webp?v=20261004m);--art-crop:76% 50%;
  --r:10px;--r-card:20px;--r-panel:26px;
  --ease:cubic-bezier(.22,1,.36,1);--ease-in:cubic-bezier(.4,0,1,1);
  --side:244px;
}
@media (prefers-color-scheme:dark){
  :root:where(:not([data-theme="light"])){
    color-scheme:dark;
    --ink:#FFFFFF;--ink-2:#E6E6E6;--muted:#A2A2A2;--muted-2:#7C7C7C;--tile-ink:#48484A;
    --bg:#000000;--canvas:#0B0B0B;--surface:#161616;--surface-2:#1C1C1C;--surface-3:#252525;
    --hairline:#2A2A2A;--hairline-2:#373737;--pill:#FFFFFF;--on-pill:#000000;
    --card-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 8px 24px -16px rgba(0,0,0,.7);--glow:0 18px 40px -20px rgba(0,0,0,.8);
    --lime-soft:rgba(218,242,76,.13);--lime-line:rgba(218,242,76,.45);
    --ok:#5BC98A;--ok-bg:rgba(91,201,138,.13);--warn:#E8B85A;--warn-bg:rgba(232,184,90,.13);--bad:#F08A8A;--bad-bg:rgba(240,138,138,.12);--info:#8FB2F5;--info-bg:rgba(143,178,245,.12);
    --s1:#2A9C74;--s2:#D9692A;--s1-wash:rgba(42,156,116,.14);--s2-wash:rgba(217,105,42,.14);
    --grid:#252525;
    --shadow:0 10px 30px -18px rgba(0,0,0,.7),0 2px 6px rgba(0,0,0,.3);
    --shadow-lg:0 24px 60px -20px rgba(0,0,0,.8),0 4px 14px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --ink:#FFFFFF;--ink-2:#E6E6E6;--muted:#A2A2A2;--muted-2:#7C7C7C;--tile-ink:#48484A;
  --bg:#000000;--canvas:#0B0B0B;--surface:#161616;--surface-2:#1C1C1C;--surface-3:#252525;
  --hairline:#2A2A2A;--hairline-2:#373737;--pill:#FFFFFF;--on-pill:#000000;
  --card-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 8px 24px -16px rgba(0,0,0,.7);--glow:0 18px 40px -20px rgba(0,0,0,.8);
  --lime-soft:rgba(218,242,76,.13);--lime-line:rgba(218,242,76,.45);
  --ok:#5BC98A;--ok-bg:rgba(91,201,138,.13);--warn:#E8B85A;--warn-bg:rgba(232,184,90,.13);--bad:#F08A8A;--bad-bg:rgba(240,138,138,.12);--info:#8FB2F5;--info-bg:rgba(143,178,245,.12);
  --s1:#2A9C74;--s2:#D9692A;--s1-wash:rgba(42,156,116,.14);--s2-wash:rgba(217,105,42,.14);
  --grid:#252525;
  --shadow:0 10px 30px -18px rgba(0,0,0,.7),0 2px 6px rgba(0,0,0,.3);
  --shadow-lg:0 24px 60px -20px rgba(0,0,0,.8),0 4px 14px rgba(0,0,0,.4);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14.5px;line-height:1.5;color:var(--ink);background:var(--bg);
  -webkit-font-smoothing:antialiased;font-feature-settings:"cv11","ss01";min-height:100vh;min-height:100dvh}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
a{color:inherit;text-decoration:none}
img,svg{display:block}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px}
::selection{background:var(--lime);color:#000000}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[hidden]{display:none!important}
.ic{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ic--sm{width:15px;height:15px}
.ic--fill{fill:currentColor;stroke:none}
.ic--fill .cut{fill:none;stroke:var(--cut,#FFFFFF);stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.ic--fill circle.cut{fill:var(--cut,#FFFFFF);stroke:none}
.ic--fill .ring{stroke:var(--cut,#FFFFFF);stroke-width:3;paint-order:stroke}
.ic--lg{width:22px;height:22px}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.small{font-size:13px}
.tiny{font-size:12px}
.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.grow{flex:1;min-width:0}
.row{display:flex;align-items:center;gap:10px}
.row--wrap{flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:12px}
.spacer{flex:1}

/* ------------------------------------------------------------------ type */
.h1{font-size:clamp(30px,3vw,42px);font-weight:400;letter-spacing:-.04em;line-height:1.06}
.h2{font-size:21px;font-weight:500;letter-spacing:-.025em;line-height:1.2}
.h3{font-size:16px;font-weight:600;letter-spacing:-.012em;line-height:1.3}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--muted)}
.eyebrow::before{content:'';width:8px;height:8px;background:var(--lime);flex:none}

/* ------------------------------------------------------------------ buttons and inputs */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 16px;border-radius:12px;font-weight:500;font-size:14px;
  white-space:nowrap;border:1px solid var(--hairline);background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:background .16s,border-color .16s,box-shadow .2s,transform .2s var(--ease),filter .16s}
.btn:hover{border-color:var(--hairline-2);background:var(--surface-2)}
.btn:active{transform:scale(.98)}
.btn[disabled]{opacity:.5;pointer-events:none}
.btn--primary{background:var(--lime);border-color:transparent;color:var(--on-lime);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 1px 2px rgba(0,0,0,.1)}
.btn--primary:hover{background:var(--lime-hover);border-color:transparent}
.btn--dark{background:#000000;border-color:transparent;color:#FFFFFF}
.btn--dark:hover{background:#000;border-color:transparent}
:root[data-theme="dark"] .btn--dark{background:#FFFFFF;color:#000000}
@media (prefers-color-scheme:dark){:root:where(:not([data-theme="light"])) .btn--dark{background:#FFFFFF;color:#000000}}
.btn--ghost{border-color:transparent;background:transparent;box-shadow:none}
.btn--ghost:hover{background:var(--surface-3);border-color:transparent}
.btn--danger{color:var(--bad)}
.btn--danger:hover{background:var(--bad-bg);border-color:transparent}
.btn--sm{height:30px;padding:0 10px;font-size:13px;gap:6px}
.btn--lg{height:44px;padding:0 20px;font-size:15px}
.btn--block{width:100%}
.btn--google{height:48px;gap:12px;background:var(--surface);border-color:var(--hairline-2);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.btn--google:hover{background:var(--surface-2);box-shadow:var(--card-shadow)}
.btn--google.is-busy{opacity:.7;pointer-events:none}
.btn--google.is-busy .gmark{animation:gspin .9s linear infinite}
.gmark{width:20px;height:20px;flex:none}
@keyframes gspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.btn--google.is-busy .gmark{animation:none}}
.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:12px;color:var(--muted);position:relative;transition:background .16s,color .16s,transform .2s var(--ease)}
.icon-btn:hover{background:var(--surface-3);color:var(--ink)}
.icon-btn--sm{width:28px;height:28px;border-radius:7px}
.icon-btn .dot{position:absolute;top:2px;right:1px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--lime);color:#000000;font-size:10.5px;font-weight:600;line-height:16px;text-align:center;box-shadow:0 0 0 2px var(--surface)}

.input,.select,.textarea{width:100%;height:40px;padding:0 14px;border:1px solid var(--hairline-2);border-radius:12px;background:var(--surface);
  transition:border-color .15s,box-shadow .15s;outline:none}
.textarea{height:auto;min-height:92px;padding:10px 12px;resize:vertical;line-height:1.5}
.input,.select,.textarea{min-width:0;max-width:100%}
.select--sm{width:auto;height:28px;font-size:12.5px}
/* iPhone Safari gives date and time fields a minimum width of their own (wider than the sheet on a phone, which then
   slid sideways); drawn as plain fields they keep to their column like the rest, and tapping still opens the picker */
.input:is([type=date],[type=time],[type=datetime-local],[type=month]){display:block}
@supports (-webkit-touch-callout:none){
  .input:is([type=date],[type=time],[type=datetime-local],[type=month]){-webkit-appearance:none;appearance:none;min-width:0;line-height:38px}
  .input::-webkit-date-and-time-value{text-align:left;margin:0}
}
.select{appearance:none;padding-right:32px;background:var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E9197' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") right 12px center no-repeat}
.input:focus,.select:focus,.textarea:focus{border-color:var(--ink);box-shadow:0 0 0 3px var(--lime-soft)}
.input::placeholder,.textarea::placeholder{color:var(--muted-2)}
.input--search{border-radius:999px;border-color:transparent;box-shadow:var(--card-shadow);padding-left:38px;background:var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E9197' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") 12px center no-repeat}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field > span{font-size:12.5px;font-weight:500;color:var(--muted)}
.field--full{grid-column:1/-1}
.check{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none}
.check input{width:16px;height:16px;accent-color:var(--ink)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:560px){.form-grid{grid-template-columns:1fr}}
.form-error{color:var(--bad);font-size:13px;min-height:1px}

/* segmented control (tabs, ranges, views) */
.seg{display:inline-flex;padding:4px;gap:2px;border-radius:999px;background:var(--surface-3)}
.seg button,.seg a{height:30px;padding:0 14px;border-radius:999px;font-size:13px;font-weight:500;color:var(--muted);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
  transition:background .2s,color .2s,box-shadow .2s}
.seg button:hover,.seg a:hover{color:var(--ink)}
.seg .on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}

/* ------------------------------------------------------------------ chips, badges, avatars */
.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;font-size:12.5px;font-weight:500;background:var(--surface-3);color:var(--ink-2);white-space:nowrap}
.chip--lime{background:var(--lime-soft);color:var(--ink)}
.chip--ok{background:var(--ok-bg);color:var(--ok)}
.chip--warn{background:var(--warn-bg);color:var(--warn)}
.chip--bad{background:var(--bad-bg);color:var(--bad)}
.chip--info{background:var(--info-bg);color:var(--info)}
.chip--line{background:transparent;border:1px solid var(--hairline-2)}
.chip .ic{width:13px;height:13px}
.tag{font-size:12px;color:var(--muted);font-weight:500}
.tag::before{content:'#';opacity:.6}
.dotc{width:8px;height:8px;border-radius:50%;flex:none;background:currentColor}
.stage{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:500;color:var(--ink-2);
  background:color-mix(in srgb,var(--st,#ccc) 24%,var(--surface));white-space:nowrap}
.stage::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--st,#ccc);box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.st-new{--st:#8FB8F2}.st-contacted{--st:#C9A6F2}.st-call{--st:#F2D06B}.st-proposal{--st:#F2A88F}.st-won{--st:#5FBF8A}.st-lost{--st:#B9BBBF}
.prio{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500}
.prio--high{color:var(--bad)}.prio--med{color:var(--warn)}.prio--low{color:var(--muted)}

.av{--c:#DAF24C;width:30px;height:30px;border-radius:50%;flex:none;display:inline-grid;place-items:center;font-size:12px;font-weight:600;letter-spacing:-.01em;
  background:var(--c);color:#000000;position:relative;text-transform:uppercase}
.av--sm{width:22px;height:22px;font-size:10px}
.av--lg{width:44px;height:44px;font-size:16px}
.av--xl{width:64px;height:64px;font-size:22px}
.av.online::after{content:'';position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border-radius:50%;background:#2FB36B;box-shadow:0 0 0 2px var(--surface)}
.av--sm.online::after{width:7px;height:7px}
.avs{display:inline-flex}
.avs .av{box-shadow:0 0 0 2px var(--surface)}
.avs .av + .av{margin-left:-7px}

/* ------------------------------------------------------------------ app layout */
.app{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:100vh;min-height:100dvh}
.side{position:sticky;top:0;height:100vh;height:100dvh;display:flex;flex-direction:column;gap:6px;padding:16px 12px 14px 14px;overflow-y:auto}
.nav-pill{position:absolute;left:0;top:0;width:0;height:38px;border-radius:12px;background:var(--pill);box-shadow:0 6px 16px -8px rgba(0,0,0,.45);pointer-events:none;
  opacity:0;transition:transform .42s var(--ease),width .42s var(--ease),height .42s var(--ease),opacity .2s}
.nav-pill.on{opacity:1}
.side__brand{display:flex;align-items:center;gap:10px;padding:6px 8px 16px}
.side__brand img{height:18px;width:auto}
:root[data-theme="dark"] .side__brand img,:root[data-theme="dark"] .auth__logo{filter:invert(1) brightness(.902)}   /* #E6E6E6 */
@media (prefers-color-scheme:dark){:root:where(:not([data-theme="light"])) :is(.side__brand img,.auth__logo){filter:invert(1) brightness(.902)}}
.side__group{display:flex;flex-direction:column;gap:2px}
.nav-ic{display:contents}
.side__x{display:none}
.tab-ic{display:contents}
.side__label{font-size:12.5px;font-weight:500;color:var(--muted);padding:14px 10px 6px}
.nav-item{position:relative;z-index:1;display:flex;align-items:center;gap:11px;height:38px;padding:0 12px;border-radius:12px;color:var(--ink-2);font-weight:500;
  transition:background .2s,color .25s}
.nav-item:hover{background:rgba(0,0,0,.05);color:var(--ink)}
.nav-item.on,.nav-item.on:hover{background:transparent;color:var(--on-pill)}
.side:not(.pill-ready) .nav-item.on{background:var(--pill)}
.nav-item .ic{color:var(--muted);transition:color .25s}
.nav-item.on .ic{color:var(--on-pill)}
.nav-item .count{margin-left:auto;min-width:22px;height:20px;padding:0 6px;border-radius:10px;font-size:11.5px;font-weight:600;line-height:20px;text-align:center;background:var(--lime);color:#000000}
.nav-item .count--soft{background:transparent;color:var(--muted)}
.nav-item.on .count--soft{color:var(--on-pill);opacity:.75}
.side__foot{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding-top:12px}
.me{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;text-align:left;width:100%}
.me:hover{background:rgba(0,0,0,.05)}
.me b{display:block;font-weight:500;font-size:13.5px}
.me small{display:block;font-size:12px;color:var(--muted)}

.main{min-width:0;padding:10px 10px 10px 0}
.sheet{background:var(--canvas);border-radius:var(--r-panel);min-height:calc(100vh - 20px);min-height:calc(100dvh - 20px);display:flex;flex-direction:column}
.top{position:sticky;top:10px;z-index:20;display:flex;align-items:center;gap:10px;height:64px;padding:0 18px 0 30px;background:color-mix(in srgb,var(--canvas) 86%,transparent);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:var(--r-panel) var(--r-panel) 0 0;transition:box-shadow .25s}
.top.scrolled{box-shadow:0 1px 0 var(--hairline)}
.top__title{display:flex;align-items:center;gap:10px;min-width:0;font-size:16px;font-weight:600;letter-spacing:-.015em}
.top__title .ic{color:var(--muted)}
.top__crumb{color:var(--muted);font-weight:500}
.top__search{display:flex;align-items:center;gap:10px;height:38px;min-width:240px;padding:0 8px 0 14px;border-radius:999px;color:var(--muted);font-size:13.5px;background:var(--surface);
  box-shadow:var(--card-shadow);transition:box-shadow .2s,color .2s}
.top__search:hover{color:var(--ink);box-shadow:var(--glow)}
.top__search kbd{margin-left:auto}
kbd{font-family:inherit;font-size:11px;font-weight:600;padding:2px 6px;border-radius:5px;background:var(--surface);border:1px solid var(--hairline);color:var(--muted)}
.burger{display:none}
.scrim{display:none}
.view{flex:1;padding:22px 30px 56px;min-width:0;view-transition-name:view}
.view--flush{padding:0;display:flex;flex-direction:column}
.view-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.view-head p{color:var(--muted);margin-top:6px}
.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}

@media (max-width:980px){
  .app{grid-template-columns:1fr}
  .side{position:fixed;inset:0 auto 0 0;width:280px;z-index:80;background:var(--bg);transform:translateX(-102%);transition:transform .3s var(--ease);box-shadow:var(--shadow-lg)}
  .side{box-shadow:none;visibility:hidden;transition:transform .3s var(--ease),box-shadow .3s,visibility 0s .3s}
  .app.nav-open .side{transform:none;box-shadow:var(--shadow-lg);visibility:visible;transition:transform .3s var(--ease),box-shadow .3s}
  .scrim{display:block;position:fixed;inset:0;z-index:70;background:rgba(10,11,12,.35);opacity:0;pointer-events:none;transition:opacity .25s}
  .app.nav-open .scrim{opacity:1;pointer-events:auto}
  .main{padding:8px}
  .sheet{min-height:calc(100vh - 16px);min-height:calc(100dvh - 16px)}
  .top{top:8px;padding:0 10px 0 8px}
  .burger{display:inline-grid}
  .top__search{min-width:0;width:36px;padding:0;justify-content:center}
  .top__search span,.top__search kbd{display:none}
  .view{padding:20px 16px 40px}
}

/* ------------------------------------------------------------------ cards and grids */
.card{background:var(--surface);border-radius:var(--r-card);padding:20px 22px;min-width:0;box-shadow:var(--card-shadow)}
.card--flat{background:var(--surface-2);box-shadow:none}
.card__head{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-height:28px}
.card__head .h3{flex:1;min-width:0}
.card__head a.more{font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:4px}
.card__head a.more:hover{color:var(--ink)}
.grid{display:grid;gap:14px}
.grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid--main{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
@media (max-width:1180px){.grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid--main{grid-template-columns:1fr}}
@media (max-width:760px){.grid--2,.grid--3{grid-template-columns:1fr}.grid--4{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kpi{padding:14px}.kpi__value{font-size:26px}.kpi__spark{display:none}.kpi__foot{flex-wrap:wrap;gap:2px 8px}}
@media (max-width:380px){.grid--4{grid-template-columns:1fr}}

/* stat tile: label · value · delta · sparkline */
.kpi{position:relative;display:flex;flex-direction:column;gap:4px;padding:18px 20px;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--card-shadow);min-width:0;overflow:hidden;
  transition:transform .25s var(--ease),box-shadow .25s}
.kpi__label{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);font-weight:500}
.kpi__label .ic{width:15px;height:15px}
.kpi__value{font-size:clamp(28px,2.6vw,38px);font-weight:400;letter-spacing:-.045em;line-height:1.1;margin-top:6px}
.kpi__foot{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);min-height:20px}
.kpi__spark{position:absolute;right:14px;bottom:14px;width:96px;height:34px;color:var(--s1)}
.delta{display:inline-flex;align-items:center;gap:2px;height:22px;padding:0 8px 0 6px;border-radius:999px;font-weight:600;font-size:12px;white-space:nowrap;background:var(--surface-3)}
.delta .ic{width:13px;height:13px;stroke-width:2.2}
.delta--up{color:var(--ok);background:var(--ok-bg)}.delta--down{color:var(--bad);background:var(--bad-bg)}.delta--flat{color:var(--muted)}
.meter{height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden}
.meter > i{display:block;height:100%;border-radius:3px;background:var(--ink);transition:width .6s var(--ease)}
.meter--lime > i{background:var(--lime-line)}
.meter--s1 > i{background:var(--s1)}

/* ------------------------------------------------------------------ the painting (Inicio and sign-in) and the notifications
   One of the site's paintings, shown as it is (no tint, no grain): white sky behind the text, the Costa Blanca bay
   along the bottom. The painting is light in both themes, so its text stays near-black. */
.art-hero{position:relative;overflow:hidden;border-radius:var(--r-panel);min-height:clamp(280px,42vh,440px);padding:34px 36px;color:#000000;box-shadow:0 0 0 1px var(--hairline);
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
  background:#F4F6F8 image-set(var(--art-1x) 1x,var(--art-2x) 2x) center 88%/cover no-repeat}
.art-hero .eyebrow{color:#4D5157}
.art-hero .h1{color:#000000;font-size:clamp(30px,3.6vw,46px);letter-spacing:-.042em;line-height:1.04;max-width:640px}
.art-hero p{color:#333333;font-size:16px}
:root[data-theme="dark"] .art-hero{filter:brightness(.94)}
@media (prefers-color-scheme:dark){:root:where(:not([data-theme="light"])) .art-hero{filter:brightness(.94)}}
@media (max-width:640px){.art-hero{padding:24px 22px;min-height:240px;background-position:72% 100%}}
.notifs{max-width:880px;margin-top:28px}
.notifs__head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.notifs__list{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--card-shadow);padding:6px 10px 10px}
/* Inicio bento: notifications (the list scrolls inside, so the box takes the height of its neighbours), the web's
   last 7 days and the CRM at a glance */
.home-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:20px;align-items:stretch}
.hbox{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px 20px 16px;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--card-shadow)}
.hbox__head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:26px}
.hbox__title{display:inline-flex;align-items:center;gap:8px;font-weight:500;font-size:15px}
.hbox__title .ic{width:17px;height:17px;color:var(--muted)}
.hbox__big{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;margin-top:4px}
.hbox__num{font-size:clamp(34px,3vw,44px);font-weight:400;letter-spacing:-.045em;line-height:1}
.hbox__unit{color:var(--muted);font-size:13.5px}
.hbox__big .delta{align-self:center}
.hbox__spark{color:var(--s1);margin:2px -2px 0}
.hbox__spark svg{display:block;width:100%;height:auto}
.hbox__stages{display:flex;flex-direction:column;gap:9px;margin-top:2px}
.hbox__legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--muted)}
.hbox__legend span{display:inline-flex;align-items:center;gap:5px}
.hbox__legend i{width:8px;height:8px;border-radius:50%;background:var(--st)}
.hbox__legend b{color:var(--ink);font-weight:500}
.hbox__rows{display:flex;flex-direction:column;margin-top:2px}
.hbox__rows > div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--hairline);font-size:13.5px}
.hbox__rows dt{display:inline-flex;align-items:center;gap:8px;color:var(--muted)}
.hbox__rows dt .ic{width:15px;height:15px}
.hbox__rows dd{font-weight:500;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.hbox__late{color:var(--bad);font-weight:500}
.hbox__go{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:6px;font-size:13.5px;font-weight:500;color:var(--ink);align-self:flex-start}
.hbox__go .ic{transition:transform .2s var(--ease)}
.hbox__go:hover .ic{transform:translateX(3px)}
.hbox .spin{margin:24px auto}
.hbox--notifs{padding:18px 10px 10px;min-height:340px}
.hbox--notifs .hbox__head{padding:0 10px}
.hbox--notifs .hbox__head .h3{font-size:15px;font-weight:500;margin:0}
.hbox--notifs .hbox__scroll{position:absolute;top:56px;left:10px;right:10px;bottom:10px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.hbox .notifs__list{background:none;box-shadow:none;padding:0}
.hbox .notifs__day:first-child{padding-top:4px}
.hbox .empty{padding:28px 12px}
@media (max-width:1180px){
  .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hbox--notifs{grid-column:1 / -1;min-height:0}
  .hbox--notifs .hbox__scroll{position:static;max-height:420px}
}
@media (max-width:700px){
  .home-grid{grid-template-columns:minmax(0,1fr)}
}
.notifs__day{font-size:12.5px;font-weight:500;color:var(--muted);padding:14px 12px 4px}
.nrow{display:flex;align-items:center;gap:14px;padding:12px;border-radius:14px;position:relative;transition:background .18s}
.nrow:hover{background:var(--surface-2)}
.nrow__ic{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--surface-3);color:var(--ink-2)}
.nrow__ic .ic{width:17px;height:17px}
.nt-web{background:var(--lime-soft);color:var(--ink)}
.nt-mention{background:#E6EEFC;color:#1D4FB8}.nt-dm{background:#EFE8FB;color:#5B3FB0}.nt-task{background:#FCF0D8;color:#8A5700}.nt-lead{background:#E3F5E9;color:#0B6A33}
:root[data-theme="dark"] :is(.nt-mention,.nt-dm,.nt-task,.nt-lead){background:var(--surface-3);color:var(--ink)}
@media (prefers-color-scheme:dark){:root:where(:not([data-theme="light"])) :is(.nt-mention,.nt-dm,.nt-task,.nt-lead){background:var(--surface-3);color:var(--ink)}}
.nrow__go{color:var(--muted-2);flex:none;transition:transform .2s var(--ease),color .2s}
.nrow:hover .nrow__go{transform:translateX(2px);color:var(--ink)}
.nrow__main{flex:1;min-width:0;display:flex;flex-direction:column}
.nrow__main b{font-weight:500}
.nrow__main span{color:var(--muted);font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nrow time{font-size:12.5px;color:var(--muted);flex:none;font-variant-numeric:tabular-nums}
.nrow.unread b{font-weight:600}
.nrow.unread .nrow__ic{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--lime-line)}
.nrow.unread time{color:var(--ink);font-weight:500}

/* ------------------------------------------------------------------ lists and tables */
.list{display:flex;flex-direction:column}
.li{display:flex;align-items:center;gap:12px;padding:10px 4px;border-top:1px solid var(--hairline);min-width:0}
.li:first-child{border-top:0}
a.li,button.li{border-radius:10px;width:100%;text-align:left;transition:background .15s}
a.li:hover,button.li:hover{background:var(--surface-2)}
.li__main{flex:1;min-width:0}
.li__title{display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li__sub{display:block;font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li__meta{font-size:12.5px;color:var(--muted);white-space:nowrap}
.table-wrap{overflow-x:auto;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--card-shadow);padding:6px}
.table{width:100%;border-collapse:collapse;font-size:13.5px}
.table th{text-align:left;font-size:12.5px;font-weight:500;color:var(--muted);padding:11px 14px;background:var(--surface-2);white-space:nowrap}
.table th:first-child{border-radius:12px 0 0 12px}.table th:last-child{border-radius:0 12px 12px 0}
.table td{padding:12px 14px;border-bottom:1px solid var(--hairline);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tbody tr{transition:background .12s}
.table tbody tr.click{cursor:pointer}
.table tbody tr.click:hover td{background:var(--surface-2)}
.table .r{text-align:right}
.table td.r{font-variant-numeric:tabular-nums;white-space:nowrap}

.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:36px 20px;color:var(--muted)}
.empty__mark{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--lime-soft);color:var(--ink)}
.empty b{color:var(--ink);font-weight:600;font-size:15px}
.empty p{max-width:360px;font-size:13.5px}

/* ranked bars (top pages, referrers…) */
.rank{display:flex;flex-direction:column;gap:2px}
.rank__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:7px 0}
.rank__label{display:flex;align-items:center;gap:8px;min-width:0;font-size:13.5px}
.rank__label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank__val{font-size:13px;font-weight:500;font-variant-numeric:tabular-nums;text-align:right}
.rank__val small{color:var(--muted);font-weight:400;margin-left:6px}
.rank__bar{grid-column:1/-1;height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden}
.rank__bar i{display:block;height:100%;border-radius:3px;background:var(--s1);transition:width .6s var(--ease)}
.flag{font-size:16px;line-height:1}

/* segmented whole (devices, vitals, pipeline) */
.segbar{display:flex;gap:2px;height:28px;border-radius:6px;overflow:hidden}
.segbar > div{display:flex;align-items:center;padding:0 8px;font-size:12px;font-weight:600;color:#000000;min-width:0;white-space:nowrap;border-radius:4px}
.segbar--thin{height:8px;border-radius:4px}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:3px;flex:none}
.legend i.line{height:2px;width:14px;border-radius:1px}

/* ------------------------------------------------------------------ charts */
.chart{position:relative;width:100%;user-select:none}
.chart svg{width:100%;height:auto;overflow:visible}
.chart .grid-line{stroke:var(--grid);stroke-width:1}
.chart .axis-label{fill:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.chart .cross{stroke:var(--hairline-2);stroke-width:1}
.tip{position:absolute;z-index:5;pointer-events:none;background:var(--surface);color:var(--ink);border:1px solid var(--hairline);border-radius:10px;box-shadow:var(--shadow);
  padding:9px 11px;font-size:12.5px;min-width:130px;transform:translate(-50%,calc(-100% - 12px));opacity:0;transition:opacity .12s;white-space:nowrap}
.tip.on{opacity:1}
.tip__title{color:var(--muted);font-size:11.5px;margin-bottom:5px}
.tip__row{display:flex;align-items:center;gap:8px}
.tip__row i{width:12px;height:2px;border-radius:1px;flex:none}
.tip__row b{font-weight:600;font-variant-numeric:tabular-nums}
.tip__row span{color:var(--muted)}
.heat{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px}
.heat i{aspect-ratio:1;border-radius:4px;background:var(--surface-3);position:relative}
.heat-axis{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;margin-top:6px;font-size:10.5px;color:var(--muted)}
.heat-axis span:nth-child(3n+2),.heat-axis span:nth-child(3n){visibility:hidden}

/* ------------------------------------------------------------------ overlays: modal, drawer, menu, toast, palette */
.overlay{position:fixed;inset:0;z-index:100;background:rgba(10,11,12,.32);display:flex;align-items:flex-start;justify-content:center;padding:9vh 16px 16px;
  opacity:0;transition:opacity .24s var(--ease);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.overlay.on{opacity:1}
.modal{width:min(560px,100%);max-height:84vh;display:flex;flex-direction:column;background:var(--surface);border-radius:24px;box-shadow:var(--shadow-lg);
  transform:translateY(14px) scale(.97);opacity:0;transition:transform .34s var(--ease),opacity .22s}
.overlay.on .modal{transform:none;opacity:1}
.modal--wide{width:min(760px,100%)}
.modal__head{display:flex;align-items:center;gap:10px;padding:18px 20px 0}
.modal__head .h2{flex:1;font-size:19px}
.modal__body{padding:18px 20px;overflow-y:auto}
.modal__body,.drawer__body{overflow-x:hidden}
.modal__foot{display:flex;align-items:center;gap:8px;justify-content:flex-end;padding:14px 20px 18px;border-top:1px solid var(--hairline)}
.drawer-wrap{position:fixed;inset:0;z-index:90;background:rgba(10,11,12,.22);opacity:0;transition:opacity .26s var(--ease)}
.drawer-wrap.on{opacity:1}
.drawer{position:absolute;top:10px;right:10px;bottom:10px;width:min(560px,calc(100% - 20px));display:flex;flex-direction:column;background:var(--surface);border-radius:var(--r-panel);
  box-shadow:var(--shadow-lg);transform:translateX(28px);opacity:0;transition:transform .38s var(--ease),opacity .24s}
.drawer-wrap.on .drawer{transform:none;opacity:1}
.drawer__head{display:flex;align-items:flex-start;gap:12px;padding:20px 20px 16px;border-bottom:1px solid var(--hairline)}
.drawer__body{flex:1;overflow-y:auto;padding:18px 20px 28px}
.drawer__section{margin-top:22px}
.drawer__section > .h3{margin-bottom:10px}
.props{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px 14px;font-size:13.5px;align-items:center}
.props dt{color:var(--muted)}
.props dd{min-width:0;overflow-wrap:anywhere}
.menu{position:fixed;z-index:120;min-width:200px;max-width:300px;padding:6px;background:var(--surface);border:1px solid var(--hairline);border-radius:16px;box-shadow:var(--shadow-lg);
  opacity:0;transform:translateY(-6px) scale(.98);transform-origin:top;transition:opacity .16s,transform .22s var(--ease)}
.menu.on{opacity:1;transform:none}
.menu.out{opacity:0;transform:translateY(-4px) scale(.99);transition-duration:.12s}
.menu button,.menu a{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:8px;text-align:left;font-size:13.5px}
.menu button:hover,.menu a:hover,.menu .act{background:var(--surface-3)}
.menu hr{border:0;border-top:1px solid var(--hairline);margin:5px 4px}
.menu .ic{color:var(--muted)}
.toasts{position:fixed;left:50%;bottom:20px;z-index:200;display:flex;flex-direction:column;gap:8px;align-items:center;transform:translateX(-50%);pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-radius:999px;background:#000000;color:#FFFFFF;box-shadow:var(--shadow-lg);font-size:13.5px;
  animation:toastIn .38s var(--ease);max-width:calc(100vw - 32px);transition:opacity .2s,transform .22s var(--ease-in)}
.toast.out{opacity:0;transform:translateY(10px) scale(.97)}
.toast .ic{color:var(--lime)}
.toast--bad .ic{color:#F08A8A}
.toast button{color:var(--lime);font-weight:600;padding:2px 6px;border-radius:6px}
@keyframes toastIn{from{opacity:0;transform:translateY(14px) scale(.96)}}
.palette{width:min(620px,100%);background:var(--surface);border-radius:18px;box-shadow:var(--shadow-lg);border:1px solid var(--hairline);overflow:hidden}
.palette input{width:100%;height:56px;padding:0 20px 0 50px;border:0;border-bottom:1px solid var(--hairline);outline:none;font-size:16px;background:transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238E9197' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") 20px center no-repeat}
.palette__list{max-height:min(420px,60vh);overflow-y:auto;padding:6px}
.palette__group{font-size:12.5px;font-weight:500;color:var(--muted);padding:10px 12px 4px}
.palette__item{display:flex;align-items:center;gap:12px;width:100%;padding:9px 12px;border-radius:10px;text-align:left}
.palette__item .ic{color:var(--muted)}
.palette__item small{margin-left:auto;color:var(--muted);font-size:12px}
.palette__item.act{background:var(--surface-3)}
.palette__foot{display:flex;gap:16px;padding:10px 16px;border-top:1px solid var(--hairline);font-size:12px;color:var(--muted)}

/* notifications panel */
.notif{width:min(380px,calc(100vw - 20px));max-height:70vh;overflow-y:auto;padding:6px}
.menu--notif{max-width:none;padding:0}
.notif__item{display:flex;gap:10px;padding:10px;border-radius:10px;font-size:13.5px}
.notif__item:hover{background:var(--surface-3)}
.notif__item small{display:block;color:var(--muted);font-size:12px}
.notif__ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--lime-soft);flex:none}

/* ------------------------------------------------------------------ auth screens */
.auth{min-height:100vh;min-height:100dvh;background:var(--canvas);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:10px;padding:10px}
.auth__panel{display:flex;flex-direction:column;justify-content:center;padding:40px clamp(24px,6vw,84px)}
.auth__logo{height:22px;width:auto;margin-bottom:auto;align-self:flex-start}
.auth__form{width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px;margin:40px 0}
.auth__form .h1{margin-bottom:4px}
.auth__form p.lead{color:var(--muted);margin-bottom:8px}
.auth__foot{margin-top:auto;font-size:12.5px;color:var(--muted)}
/* the painting fills the right half, cropped to the beach and the town; the text sits on the sky at the top */
.art-hero.auth__art{min-height:0;padding:clamp(32px,4vw,52px);background-position:var(--art-crop)}
.auth__art .h1{font-size:clamp(32px,3.4vw,50px);max-width:520px}
.auth__art p{max-width:420px}
@media (max-width:900px){.auth{grid-template-columns:1fr}.auth__art{display:none}}
.notice{display:flex;gap:10px;padding:12px 14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--hairline);font-size:13.5px;color:var(--ink-2)}
.notice .ic{color:var(--muted);margin-top:1px}
.notice--warn{background:var(--warn-bg);border-color:transparent;color:var(--warn)}
.notice--warn .ic{color:var(--warn)}
.notice code{font-size:12.5px;padding:1px 5px;border-radius:5px;background:var(--surface-3)}
.boot{min-height:100vh;min-height:100dvh;display:grid;place-items:center}
.boot img{width:36px;height:36px;animation:pulse 1.2s ease-in-out infinite alternate}
/* the splash while the dashboard loads: the light Noriu mark on black, edge to edge (also the app's launch colour) */
.boot--splash{position:fixed;inset:0;background:#000000}
.boot--splash img{width:56px;height:56px;animation:splashPulse 1.4s ease-in-out infinite alternate}
@keyframes splashPulse{from{opacity:1}to{opacity:.72}}
@keyframes pulse{to{opacity:.35;transform:scale(.94)}}

/* ------------------------------------------------------------------ chat */
.chat{display:grid;grid-template-columns:240px minmax(0,1fr);height:calc(100vh - 20px - 64px);height:calc(100dvh - 20px - 64px);min-height:420px}
.chat__side{border-right:1px solid var(--hairline);padding:14px 10px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.chat__side .side__label{padding-top:10px}
.ch-item{display:flex;align-items:center;gap:9px;height:34px;padding:0 10px;border-radius:9px;color:var(--ink-2);font-weight:500;font-size:14px}
.ch-item:hover{background:var(--surface-3)}
.ch-item.on{background:var(--lime-soft);color:var(--ink)}
.ch-item .hash{color:var(--muted-2);font-weight:400;width:14px;text-align:center}
.ch-item.unread{color:var(--ink);font-weight:600}
.ch-item .count{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:10px;font-size:11px;font-weight:600;line-height:20px;text-align:center;background:var(--ink);color:var(--surface)}
.chat__main{display:flex;flex-direction:column;min-width:0;min-height:0}
.chat__head{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid var(--hairline);min-height:57px}
.chat__head b{font-weight:600}
.chat__head small{color:var(--muted);font-size:12.5px}
.chat__scroll{flex:1;overflow-y:auto;padding:16px 18px 8px;display:flex;flex-direction:column}
.chat__day{display:flex;align-items:center;gap:12px;margin:14px 0 8px;font-size:12.5px;font-weight:500;color:var(--muted)}
.chat__day::before,.chat__day::after{content:'';flex:1;height:1px;background:var(--hairline)}
.msg{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:0 10px;padding:5px 8px;margin:0 -8px;border-radius:10px}
.msg:hover{background:var(--surface-2)}
.msg .av{margin-top:3px}
.msg__who{display:flex;align-items:baseline;gap:8px}
.msg__who b{font-weight:600;font-size:14px}
.msg__who time{font-size:11.5px;color:var(--muted-2)}
.msg__text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.msg__text a{text-decoration:underline;text-underline-offset:2px}
.msg__text code{font-size:13px;padding:1px 5px;border-radius:5px;background:var(--surface-3)}
.msg__text .mention{background:var(--lime-soft);border-radius:4px;padding:0 3px;font-weight:500}
.msg__text .mention--me{background:var(--lime);color:#000000}
.msg--cont{grid-template-columns:34px minmax(0,1fr);padding-top:1px}
.msg--cont .msg__who{display:none}
.msg--cont > .msg__gut{font-size:10.5px;color:transparent;text-align:right;padding-top:3px}
.msg--cont:hover > .msg__gut{color:var(--muted-2)}
.msg__deleted{font-style:italic;color:var(--muted-2)}
.msg__edited{font-size:11.5px;color:var(--muted-2);margin-left:4px}
.msg__re{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.msg__re button{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:12px;font-size:12.5px;border:1px solid var(--hairline);background:var(--surface)}
.msg__re button.mine{border-color:var(--lime-line);background:var(--lime-soft)}
.msg__tools{position:absolute;right:8px;top:-14px;display:none;gap:2px;padding:3px;border-radius:10px;background:var(--surface);border:1px solid var(--hairline);box-shadow:var(--shadow)}
.msg:hover .msg__tools,.msg:focus-within .msg__tools,.msg.tools-on .msg__tools{display:flex}
.msg__tools button{height:26px;min-width:26px;padding:0 5px;border-radius:7px;font-size:14px;display:grid;place-items:center;color:var(--muted)}
.msg__tools button:hover{background:var(--surface-3);color:var(--ink)}
.chat__typing{height:22px;padding:0 18px;font-size:12.5px;color:var(--muted)}
.composer{margin:0 14px 14px;border:1px solid var(--hairline-2);border-radius:14px;background:var(--surface);transition:border-color .15s,box-shadow .15s}
.composer:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px var(--lime-soft)}
.composer textarea{display:block;width:100%;border:0;outline:0;resize:none;background:transparent;padding:12px 14px 4px;max-height:200px;min-height:44px;line-height:1.5}
.composer__bar{display:flex;align-items:center;gap:6px;padding:4px 6px 6px 10px;font-size:12px;color:var(--muted-2)}
.composer__bar .btn{margin-left:auto}
.chat__more{align-self:center;margin-bottom:10px}
.chat__empty{margin:auto;text-align:center;color:var(--muted);max-width:340px;display:flex;flex-direction:column;align-items:center;gap:10px}
@media (max-width:760px){
  .chat{grid-template-columns:1fr;height:calc(100vh - 16px - 64px);height:calc(100dvh - 16px - 64px)}
  .chat__side{display:none}
  .chat.list-open .chat__side{display:flex;border-right:0}
  .chat.list-open .chat__main{display:none}
}

/* ------------------------------------------------------------------ CRM board */
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,1fr);gap:12px;overflow-x:auto;padding-bottom:10px;align-items:start}
.col{background:rgba(0,0,0,.03);border-radius:var(--r-card);padding:10px;min-height:200px;display:flex;flex-direction:column;gap:8px;transition:background .2s,box-shadow .2s}
.col.drop{background:var(--lime-soft);box-shadow:inset 0 0 0 1.5px var(--lime-line)}
.col__head{display:flex;align-items:center;gap:8px;padding:4px 6px 6px}
.col__head b{font-weight:600;font-size:13.5px}
.col__head small{color:var(--muted);font-size:12px;margin-left:auto;font-variant-numeric:tabular-nums}
.lead-card{background:var(--surface);border-radius:16px;padding:14px;cursor:grab;display:flex;flex-direction:column;gap:6px;text-align:left;width:100%;box-shadow:var(--card-shadow);
  transition:box-shadow .25s,transform .25s var(--ease),opacity .2s}
.lead-card.dragging{opacity:.55;transform:rotate(1.5deg) scale(1.02)}
.lead-card b{font-weight:600;font-size:14px;line-height:1.3}
.lead-card .sub{font-size:12.5px;color:var(--muted)}
.lead-card .foot{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--muted)}
.lead-card .val{margin-left:auto;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.due{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:500}
.due--late{color:var(--bad)}.due--today{color:var(--warn)}
.timeline{display:flex;flex-direction:column;gap:2px;position:relative}
.tl{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:8px 0;position:relative}
.tl::before{content:'';position:absolute;left:13.5px;top:36px;bottom:-8px;width:1px;background:var(--hairline)}
.tl:last-child::before{display:none}
.tl__ic{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--surface-3);color:var(--muted)}
.tl__ic .ic{width:15px;height:15px}
.tl--web .tl__ic{background:var(--lime-soft);color:var(--ink)}
.tl__meta{font-size:12px;color:var(--muted)}
.tl__text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2px;font-size:13.5px}
.quick{display:flex;gap:6px;flex-wrap:wrap}

/* ------------------------------------------------------------------ tasks */
.tasks{display:flex;flex-direction:column}
.task{display:flex;align-items:center;gap:12px;padding:11px 10px;border-top:1px solid var(--hairline);border-radius:12px;max-height:120px;overflow:hidden;
  transition:background .15s,opacity .25s,transform .3s var(--ease),max-height .32s var(--ease) .08s,padding .32s var(--ease) .08s}
.task.leaving{opacity:0;transform:translateX(14px);max-height:0;padding-top:0;padding-bottom:0}
.task:first-child{border-top:0}
.task:hover{background:var(--surface-2)}
.task__check{width:20px;height:20px;border-radius:7px;border:1.6px solid var(--hairline-2);display:grid;place-items:center;flex:none;transition:background .15s,border-color .15s}
.task__check:hover{border-color:var(--ink)}
.task__check .ic{width:13px;height:13px;stroke-width:3;opacity:0;color:#000000}
.task.done .task__check{background:var(--lime);border-color:var(--lime);animation:pop .38s var(--ease)}
@keyframes pop{0%{transform:scale(.7)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
.task.done .task__check .ic{opacity:1}
.task.done .task__title{text-decoration:line-through;color:var(--muted)}
.task__title{flex:1;min-width:0;font-weight:500;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task__meta{display:flex;align-items:center;gap:10px;flex:none}
.task.doing .task__check{border-color:var(--warn);background:var(--warn-bg)}
.quickadd{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 16px;border:1px solid transparent;border-radius:999px;margin-bottom:16px;background:var(--surface);box-shadow:var(--card-shadow)}
.quickadd:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px var(--lime-soft)}
.quickadd input{flex:1;border:0;outline:0;background:transparent;height:34px;min-width:0}
.quickadd .ic{color:var(--muted)}
.hint{font-size:12px;color:var(--muted);margin:-8px 0 16px 4px}
.hint code{font-size:11.5px;padding:1px 5px;border-radius:5px;background:var(--surface-3)}
.group-title{display:flex;align-items:center;gap:8px;margin:22px 0 4px;font-size:12.5px;font-weight:600;color:var(--muted)}
.group-title:first-child{margin-top:0}
.group-title.late{color:var(--bad)}
.kanban{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:640px){
  .task{flex-wrap:wrap;row-gap:4px}
  .task__title{white-space:normal;flex-basis:calc(100% - 44px)}
  .task__meta{margin-left:32px;flex-wrap:wrap;gap:6px 10px;flex:1 1 calc(100% - 44px);min-width:0}
  .task{max-height:280px}
}
@media (max-width:860px){.kanban{grid-template-columns:1fr}}

/* ------------------------------------------------------------------ notes */
.notes-layout{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100vh - 20px - 64px);height:calc(100dvh - 20px - 64px)}
.notes-list{border-right:1px solid var(--hairline);display:flex;flex-direction:column;min-height:0}
.notes-list__head{padding:14px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--hairline)}
.notes-list__items{overflow-y:auto;padding:6px}
.note-item{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:10px}
.note-item:hover{background:var(--surface-2)}
.note-item.on{background:var(--lime-soft)}
.note-item b{display:flex;align-items:center;gap:6px;font-weight:600;font-size:14px}
.note-item p{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.note-editor{display:flex;flex-direction:column;min-width:0;min-height:0}
.note-editor__bar{display:flex;align-items:center;gap:8px;padding:10px 18px;border-bottom:1px solid var(--hairline);min-height:57px}
.note-editor__title{font-size:26px;font-weight:500;letter-spacing:-.03em;border:0;outline:0;background:transparent;width:100%;padding:24px 28px 6px}
.note-editor__body{flex:1;border:0;outline:0;resize:none;background:transparent;padding:8px 28px 28px;line-height:1.7;font-size:15px;min-height:300px}
.note-view{padding:8px 28px 28px;line-height:1.7;font-size:15px;overflow-y:auto;flex:1}
.note-view h1,.note-view h2,.note-view h3{font-weight:600;letter-spacing:-.02em;margin:18px 0 6px;line-height:1.3}
.note-view h1{font-size:22px}.note-view h2{font-size:18px}.note-view h3{font-size:16px}
.note-view ul,.note-view ol{padding-left:22px;margin:6px 0}
.note-view p{margin:6px 0}
.note-view code{font-size:13.5px;padding:1px 5px;border-radius:5px;background:var(--surface-3)}
.note-view a{text-decoration:underline}
.note-view .todo{list-style:none;margin-left:-20px}
@media (max-width:860px){.notes-layout{grid-template-columns:minmax(0,1fr);height:auto}.notes-list{border-right:0;max-height:none}.notes-layout.editing .notes-list{display:none}.notes-layout:not(.editing) .note-editor{display:none}}
.ideas{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.idea{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:var(--r-card);border:1px solid var(--hairline);background:var(--surface);min-height:150px;text-align:left}
.idea:hover{box-shadow:var(--shadow)}
.idea b{font-weight:600;font-size:15px;line-height:1.3}
.idea p{color:var(--muted);font-size:13.5px;flex:1}
.vote{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:9px;border:1px solid var(--hairline);font-weight:600;font-size:13px}
.vote.on{background:var(--lime);border-color:var(--lime);color:#000000}

/* ------------------------------------------------------------------ calendar */
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-radius:var(--r-card);overflow:hidden;background:var(--surface);box-shadow:var(--card-shadow)}
.cal__dow{padding:8px 10px;font-size:12px;font-weight:600;color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--hairline)}
.cal__day{min-height:112px;padding:6px;border-right:1px solid var(--hairline);border-bottom:1px solid var(--hairline);display:flex;flex-direction:column;gap:3px;min-width:0;cursor:pointer;transition:background .12s}
.cal__day:hover{background:var(--surface-2)}
.cal__day:nth-child(7n){border-right:0}
.cal__day.out{background:var(--surface-2)}
.cal__day.out .cal__n{color:var(--muted-2)}
.cal__n{font-size:12.5px;font-weight:600;width:24px;height:24px;display:grid;place-items:center;border-radius:50%}
.cal__day.today .cal__n{background:var(--lime);color:#000000}
.ev{display:flex;align-items:center;gap:5px;padding:2px 6px;border-radius:6px;font-size:12px;font-weight:500;min-width:0;background:var(--surface-3);color:var(--ink-2);text-align:left;width:100%}
.ev span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev--meeting{background:var(--info-bg);color:var(--info)}
.ev--call{background:var(--lime-soft);color:var(--ink)}
.ev--deadline{background:var(--bad-bg);color:var(--bad)}
.ev--task{background:transparent;border:1px solid var(--hairline-2)}
.ev--task.done span{text-decoration:line-through;opacity:.6}
.ev--follow{background:var(--warn-bg);color:var(--warn)}
.ev--money{background:var(--ok-bg);color:var(--ok)}
.cal__more{font-size:11.5px;color:var(--muted);padding-left:6px}
.cal-dayc{display:none}
@media (max-width:760px){
  /* as in the iPhone's Calendar: tap a day, its plans are listed under the month */
  .cal__day .ev{pointer-events:none}
  .cal__day.sel{background:var(--surface-2)}
  .cal__day.sel:not(.today) .cal__n{background:var(--ink);color:var(--canvas)}
  .cal-dayc{display:block;margin-top:14px}
  .cal-dayc .card__head .h3{flex:1 1 auto}
  .cal-dayc__it{width:100%;min-height:48px;display:flex;align-items:center;gap:12px;text-align:left}
  .cal-dayc__it .ic{color:var(--muted-2)}
  .cal-dayc__dot{width:10px;height:10px;padding:0;border-radius:50%;flex:none}
}
@media (max-width:760px){.cal__day{min-height:64px}.ev span{display:none}.ev{width:8px;height:8px;padding:0;border-radius:50%}.cal__dow{padding:6px 4px;text-align:center}}
.agenda .li{align-items:flex-start}
.agenda__time{width:62px;flex:none;font-size:12.5px;font-weight:600;color:var(--muted);padding-top:2px;font-variant-numeric:tabular-nums}

/* ------------------------------------------------------------------ finance */
.money-in{color:var(--ok)}
.money-out{color:var(--ink)}
.vat-box{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;border-radius:var(--r-card);overflow:hidden;border:1px solid var(--hairline)}
.vat-box > div{padding:14px 16px;background:var(--surface-2)}
.vat-box small{display:block;color:var(--muted);font-size:12px}
.vat-box b{display:block;font-size:20px;font-weight:500;letter-spacing:-.02em;margin-top:2px;font-variant-numeric:tabular-nums}
@media (max-width:560px){.vat-box{grid-template-columns:1fr}}

/* ------------------------------------------------------------------ settings */
.settings{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start}
.settings__nav{position:sticky;top:90px;display:flex;flex-direction:column;gap:2px}
.settings__nav a{padding:8px 10px;border-radius:8px;color:var(--muted);font-weight:500}
.settings__nav a:hover{background:var(--surface-3);color:var(--ink)}
.settings__nav a.on{background:var(--surface-3);color:var(--ink)}
.set-section{padding-bottom:28px;margin-bottom:28px;border-bottom:1px solid var(--hairline)}
.set-section:last-child{border-bottom:0}
.set-section > .h2{margin-bottom:4px}
.set-section > p{color:var(--muted);margin-bottom:18px}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatch{width:30px;height:30px;border-radius:50%;border:2px solid transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.swatch.on{border-color:var(--ink)}
.linkbox{display:flex;gap:6px}
.linkbox input{font-size:12.5px;color:var(--muted)}
@media (max-width:860px){.settings{grid-template-columns:1fr}.settings__nav{position:static;flex-direction:row;overflow-x:auto}}

/* ------------------------------------------------------------------ loading */
.loading{opacity:.55;transition:opacity .2s;pointer-events:none}
.spin{width:18px;height:18px;border-radius:50%;border:2px solid var(--hairline-2);border-top-color:var(--ink);animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.fade-in{animation:fadeIn .35s var(--ease)}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ------------------------------------------------------------------ refresh components (Oct 31 2026)
   Filter pills ("Responsable  Todos ⌄") wrap a native select, invisible on top, so they keep keyboard and screen-reader
   behaviour; the label shows the current value. */
.fpill{position:relative;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 36px 0 16px;border-radius:999px;background:var(--surface);
  box-shadow:var(--card-shadow);font-size:13.5px;color:var(--muted);white-space:nowrap;transition:box-shadow .2s}
.fpill b{color:var(--ink);font-weight:500}
.fpill::after{content:'';position:absolute;right:14px;top:50%;width:12px;height:12px;margin-top:-6px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E9197' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center/12px no-repeat}
.fpill select{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer;font-size:16px}
.fpill:focus-within{box-shadow:0 0 0 2px var(--ink)}
.stat-line{display:flex;flex-wrap:wrap;gap:4px 18px;color:var(--muted);font-size:14px;margin-top:8px}
.stat-line b{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}

/* the CRM's stage strip (LeaseFlow): one tile per stage, chevrons between, the selected one outlined */
.stages{display:flex;align-items:stretch;gap:4px;padding:8px;border-radius:24px;background:var(--surface);box-shadow:var(--card-shadow);margin-bottom:16px;overflow-x:auto;scrollbar-width:none}
.stages::-webkit-scrollbar{display:none}
.stage-tile{flex:1 0 150px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px 16px 16px;border-radius:18px;background:var(--surface-2);text-align:left;
  transition:box-shadow .25s,background .25s,transform .25s var(--ease)}
.stage-tile b{font-size:clamp(30px,2.8vw,42px);font-weight:400;letter-spacing:-.045em;line-height:1}
.stage-tile small{color:var(--muted);font-size:12.5px;white-space:nowrap}
.stage-tile.on{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--ink)}
.stages__chev{display:grid;place-items:center;color:var(--muted-2);flex:none;width:12px}
.stages__chev .ic{width:14px;height:14px}

/* a feature card in the site's grainy forest-green gradient (Metrics insights) */
.feature{position:relative;overflow:hidden;isolation:isolate;border-radius:var(--r-card);padding:22px 24px;color:#FFFFFF;display:flex;flex-direction:column;gap:10px;min-height:280px;
  background:radial-gradient(58% 70% at 84% 10%,rgba(218,242,76,.42),transparent 75%),radial-gradient(70% 80% at 6% 100%,rgba(32,164,138,.55),transparent 78%),
    radial-gradient(50% 60% at 60% 64%,rgba(112,192,84,.25),transparent 80%),linear-gradient(160deg,#0B2F24,#0C3528 50%,#071E18)}
.feature::after{content:'';position:absolute;inset:0;z-index:-1;opacity:.28;mix-blend-mode:overlay;pointer-events:none;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
.feature__top{display:flex;align-items:center;gap:8px}
.feature__tag{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);font-size:12.5px;font-weight:500}
.feature__count{margin-left:auto;font-size:12.5px;color:rgba(255,255,255,.7)}
.feature__big{font-size:clamp(38px,3.4vw,52px);font-weight:400;letter-spacing:-.045em;line-height:1;margin-top:10px}
.feature h3{font-size:19px;font-weight:500;letter-spacing:-.02em;line-height:1.25}
.feature p{color:rgba(255,255,255,.78);font-size:13.5px;line-height:1.5}
.feature__nav{margin-top:auto;display:flex;gap:6px}
.feature__nav button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:#FFFFFF;color:#000000;font-weight:500;font-size:13.5px;transition:transform .2s var(--ease)}
.feature__nav button.ghost{background:rgba(255,255,255,.12);color:#FFFFFF;border:1px solid rgba(255,255,255,.25)}
.feature__body{display:flex;flex-direction:column;gap:8px;animation:featureIn .45s var(--ease)}
@keyframes featureIn{from{opacity:0;transform:translateY(8px)}}

/* the calendar's month counts (coloured top line per kind) and the "add an event" pill */
.ctiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.4fr);gap:10px;margin-bottom:16px}
.ctile{background:var(--surface);border-radius:18px;padding:14px 16px 16px;box-shadow:var(--card-shadow);position:relative;overflow:hidden}
.ctile::before{content:'';position:absolute;left:14px;right:14px;top:0;height:3px;border-radius:0 0 3px 3px;background:var(--tc,var(--hairline-2))}
.ctile span{display:block;font-size:12.5px;color:var(--muted);font-weight:500}
.ctile b{display:block;font-size:clamp(28px,2.4vw,36px);font-weight:400;letter-spacing:-.045em;line-height:1.1;margin-top:10px}
.add-pill{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 10px 20px;border-radius:18px;font-weight:500;font-size:14.5px;color:#000000;
  background:linear-gradient(100deg,#F4F0A0 0%,#F1F6C9 35%,#ECE6F7 70%,#F5EFF4 100%);box-shadow:var(--card-shadow);transition:transform .25s var(--ease),box-shadow .25s}
.add-pill i{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#FFFFFF;box-shadow:0 1px 3px rgba(0,0,0,.12)}
@media (max-width:1100px){.ctiles{grid-template-columns:repeat(2,minmax(0,1fr))}.add-pill{grid-column:1/-1}}

/* phones: a bottom dock with the four main places and "+ Nuevo" (Img 1) */
.dock{display:none}
@media (max-width:760px){
  .dock{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));z-index:60;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:6px;
    border-radius:22px;background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--shadow-lg)}
  .dock a,.dock button{position:relative;display:grid;place-items:center;width:48px;height:44px;border-radius:14px;color:var(--muted);transition:background .2s,color .2s}
  .dock a.on{background:var(--surface-3);color:var(--ink)}
  .dock .dock__new{width:54px;background:var(--lime);color:#000000;margin-left:4px}
  .dock .dot{position:absolute;top:6px;right:8px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--lime);color:#000000;font-size:10px;font-weight:600;line-height:16px}
  .view{padding-bottom:110px}
  .top [data-new]{display:none}
}

@keyframes tabPop{0%{transform:scale(.78)}55%{transform:scale(1.1)}100%{transform:scale(1)}}

/* charts: hatched past bars, the current one solid (margin) */
.chart .bar-anim{transform-box:fill-box;transform-origin:50% 100%;animation:barUp .7s var(--ease) both}
@keyframes barUp{from{transform:scaleY(0)}}
.chart .line-anim{animation:lineDraw 1s var(--ease) both}
@keyframes lineDraw{from{stroke-dashoffset:var(--len)}}
.chart .area-anim{animation:areaIn .9s ease both .15s}
.chart .dot-anim{transform-box:fill-box;transform-origin:center;animation:dotIn .4s var(--ease) both .85s}
@keyframes dotIn{from{opacity:0;transform:scale(.3)}}
@keyframes areaIn{from{opacity:0}}
.rank__bar i{transform-origin:left;animation:grow .8s var(--ease) both}
@keyframes grow{from{transform:scaleX(0)}}

/* ------------------------------------------------------------------ motion
   Sections cross-fade with View Transitions (the sidebar and top bar stay still); on arrival the cards in a
   [data-stagger] container rise in one after another, once. Hovers follow the site: a touch bigger and a soft glow,
   only with a mouse. */
::view-transition-old(root),::view-transition-new(root){animation:none}
::view-transition-old(view){animation:vtOut .16s var(--ease-in) both}
::view-transition-new(view){animation:vtIn .42s var(--ease) both}
@keyframes vtOut{to{opacity:0;transform:translateY(-6px)}}
@keyframes vtIn{from{opacity:0;transform:translateY(10px)}}
html.vt-theme .view{view-transition-name:none}
html.vt-theme::view-transition-old(root){animation:vtFade .32s ease both reverse}
html.vt-theme::view-transition-new(root){animation:vtFade .32s ease both}
@keyframes vtFade{from{opacity:0}}
.view.enter [data-stagger] > *{animation:rise .6s var(--ease) both}
.view.enter [data-stagger] > :nth-child(2){animation-delay:45ms}.view.enter [data-stagger] > :nth-child(3){animation-delay:90ms}
.view.enter [data-stagger] > :nth-child(4){animation-delay:135ms}.view.enter [data-stagger] > :nth-child(5){animation-delay:180ms}
.view.enter [data-stagger] > :nth-child(6){animation-delay:225ms}.view.enter [data-stagger] > :nth-child(7){animation-delay:270ms}
.view.enter [data-stagger] > :nth-child(8){animation-delay:315ms}.view.enter [data-stagger] > :nth-child(9){animation-delay:360ms}
.view.enter [data-stagger] > :nth-child(n+10){animation-delay:400ms}
.loading-view{min-height:40vh;display:grid;place-items:center;animation:fadeIn .2s .3s both}
@keyframes fadeIn{from{opacity:0}}
@keyframes rise{from{opacity:0;transform:translateY(12px)}}
.msg--new{animation:msgIn .34s var(--ease)}
@keyframes msgIn{from{opacity:0;transform:translateY(10px)}}
@media (hover:hover) and (pointer:fine){
  .btn:hover,.icon-btn:hover{transform:scale(1.02)}
  .btn:active,.icon-btn:active{transform:scale(.97)}
  :is(a.kpi,.lead-card,.idea,.stage-tile,.add-pill,.ctile):hover{transform:scale(1.01);box-shadow:var(--glow)}
  .stage-tile.on:hover{box-shadow:inset 0 0 0 1.5px var(--ink),var(--glow)}
  .feature__nav button:hover{transform:scale(1.03)}
  .fpill:hover{box-shadow:var(--glow)}
}
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
  .nav-pill{transition:none}
}

/* table cells: a person with initials and a second line (LeaseFlow), a date over its relative day */
.cell-person{display:flex;align-items:center;gap:12px;min-width:0}
.cell-person b{display:block;font-weight:500}
.cell-person small{display:block;color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.cell-person .av{width:36px;height:36px;font-size:12px;color:#333333}
.cell-person--sm{gap:8px}
.cell-person--sm .av{width:24px;height:24px;font-size:10px;color:#000000}
.cell-two{display:flex;flex-direction:column;gap:1px}
.cell-two b{font-weight:500;font-size:13.5px}
.task--new{animation:rise .5s var(--ease)}

/* ------------------------------------------------------------------ tablets and touch screens (iPad)
   Hover reveals nothing a finger can't reach (chat actions show on tap, see chat.js), targets are at least 36px,
   form fields use 16px so iOS doesn't zoom into them, taps don't wait for a double-tap zoom, and board cards are
   dragged with press-and-hold (touchDrag in ui.js). */
html{-webkit-tap-highlight-color:transparent}
.table-wrap{container-type:inline-size}
@container (max-width:960px){.table .c-src{display:none}}
@container (max-width:760px){.table .c-prod{display:none}}
@media (max-width:1280px){:root{--side:216px}}
@media (min-width:561px) and (max-width:1280px){
  .stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
  .stages__chev{display:none}
}
.drag-ghost{position:fixed;z-index:300;pointer-events:none;margin:0;transform:rotate(2deg) scale(1.03);box-shadow:var(--shadow-lg);opacity:.96}
.lead-card,.task[data-card]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
@media (hover:none),(pointer:coarse){
  a,button,input,select,textarea,label,summary,[data-card],[data-row],.msg{touch-action:manipulation}
  .input,.select,input,select,textarea,.composer textarea{font-size:16px}
  .btn--sm{height:36px;padding:0 12px}
  .icon-btn--sm{width:36px;height:36px}
  .seg button,.seg a{height:36px}
  .swatch{width:34px;height:34px}
  .task__check{position:relative}
  .task__check::after{content:"";position:absolute;inset:-10px}
  .select--sm{height:36px;font-size:16px}
  .note-editor__body{font-size:16px}
  button.chip,a.chip{position:relative}
  button.chip::after,a.chip::after{content:"";position:absolute;inset:-7px -3px}
  .msg:hover{background:none}
  .msg:hover .msg__tools{display:none}
  .msg.tools-on{background:var(--surface-2)}
  .msg.tools-on .msg__tools{display:flex;top:-20px}
  .msg__tools button{height:36px;min-width:36px;font-size:17px}
  .hbox__go{padding:8px 0}
  .ev{padding:6px 7px;font-size:12.5px}
  .cal__day{gap:4px}
  .board{scroll-snap-type:x proximity}
  .board .col{scroll-snap-align:start}
}

/* ------------------------------------------------------------------ phones: an app, not a page
   A full-bleed white screen; an app bar pinned to the top (under the notch when installed on the home screen) where the
   page's large title folds in as you scroll (app.js adds .has-title / .title-in); a tab bar with labels at the bottom
   (Inicio, Chat, Tareas, CRM, and Más for the full menu); dialogs and record panels slide up as sheets; nothing can be
   dragged sideways. */
html,body{overflow-x:clip;overscroll-behavior-x:none}
@media (max-width:760px){
  :root{--bar:54px;--tabs:54px}
  body{background:var(--canvas)}
  .main{padding:0}
  .sheet{border-radius:0;min-height:100vh;min-height:100dvh}
  .top{top:0;height:calc(var(--bar) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 10px 0 16px;gap:6px;border-radius:0;
    background:color-mix(in srgb,var(--canvas) 86%,transparent);box-shadow:0 1px 0 transparent;transition:box-shadow .2s}
  .app.scrolled .top{box-shadow:0 1px 0 var(--hairline)}
  .burger{display:none}
  .top__title{font-size:17px;transition:opacity .2s var(--ease),transform .2s var(--ease)}
  .top__title > .ic{display:none}
  .app.has-title:not(.title-in) .top__title{opacity:0;transform:translateY(5px)}
  .top__search,.top .icon-btn{width:40px;height:40px;border-radius:50%}
  .top [data-new]{display:inline-flex;width:40px;height:40px;padding:0;border-radius:50%;justify-content:center}
  .top [data-new] span{display:none}
  .view{padding:14px 16px calc(var(--tabs) + 32px + env(safe-area-inset-bottom))}
  .view--flush{padding:0}
  .view-head{margin-bottom:18px;gap:12px}
  .view-head .h1{font-size:32px;line-height:1.08}
  .chat{height:calc(100dvh - var(--bar) - env(safe-area-inset-top) - var(--tabs) - env(safe-area-inset-bottom));min-height:0}
  /* app bar: plain glyphs, as in iPhone navigation bars; the + stays a round button */
  .top__search,.top [data-bell]{width:40px;height:40px;border-radius:50%;background:none;box-shadow:none;color:var(--ink)}
  .top__search .ic,.top [data-bell] .ic{width:23px;height:23px;stroke-width:1.7}
  .top__search:active,.top [data-bell]:active{background:var(--surface-3)}
  .top .icon-btn .dot{top:3px;right:2px;background:#FF3B30;color:#FFFFFF;box-shadow:0 0 0 2px var(--canvas)}
  /* tab bar: outline icons, the selected tab's filled (as iPhone tab bars) */
  .dock{left:0;right:0;bottom:0;transform:translateY(var(--vv-gap,0px));justify-content:space-around;gap:0;padding:4px 4px env(safe-area-inset-bottom);border-radius:0;--cut:var(--canvas);
    background:color-mix(in srgb,var(--canvas) 88%,transparent);box-shadow:none;-webkit-user-select:none;user-select:none;transition:opacity .2s,visibility 0s}
  .app.kb-open .dock{opacity:0;visibility:hidden;transition:opacity .15s,visibility 0s .15s}
  .dock a,.dock button{flex:1;width:auto;height:var(--tabs);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border-radius:14px;
    color:var(--muted-2);-webkit-tap-highlight-color:transparent}
  .dock a > span:not(.tab-ic):not(.dot),.dock button > span:not(.tab-ic){display:none}   /* icons only */
  .dock a.on,.dock button.on{background:none;color:var(--ink)}
  .tab-ic{position:relative;display:grid;place-items:center;width:30px;height:28px;transition:transform .2s var(--ease)}
  .tab-ic .ic{grid-area:1/1;width:28px;height:28px;stroke-width:1.55}
  .tab-ic .ic--fill,.on .tab-ic .ic:not(.ic--fill){display:none}
  .on .tab-ic .ic--fill{display:block;animation:tabPop .45s var(--ease) both}
  .dock a:active .tab-ic,.dock button:active .tab-ic{transform:scale(.88)}
  .dock .dot{top:6px;left:calc(50% + 6px);right:auto;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#FF3B30;color:#FFFFFF;
    font-size:11px;font-weight:600;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--canvas)}
  /* "Más": the whole menu as a sheet from the bottom, laid out like an iPhone settings list (white groups, a
     coloured tile per section, chevrons, red counters) */
  .side{inset:calc(10px + env(safe-area-inset-top)) 0 0 0;width:auto;height:auto;padding:0 16px calc(28px + env(safe-area-inset-bottom));gap:0;
    border-radius:24px 24px 0 0;background:var(--bg);overscroll-behavior:contain;transform:translateY(104%);transition:transform .38s var(--ease),visibility 0s .38s}
  .app.nav-open .side{transform:none;box-shadow:0 -10px 40px -12px rgba(0,0,0,.3);transition:transform .38s var(--ease)}
  .side::before{content:"";flex:none;width:38px;height:5px;margin:8px auto 0;border-radius:3px;background:var(--hairline-2)}
  .nav-pill{display:none}
  .side__brand{padding:12px 4px 2px}
  .side__x{display:grid;place-items:center;position:absolute;top:18px;right:16px;width:30px;height:30px;border-radius:50%;background:var(--surface-3);color:var(--muted)}
  .side__x .ic{width:14px;height:14px;stroke-width:2.4}
  .side__label{padding:22px 16px 7px;font-size:12.5px;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
  .side__group,.side__foot{gap:0;border-radius:14px;background:var(--surface);overflow:hidden}
  .side > *{flex-shrink:0}   /* when the menu is taller than the screen it scrolls; the groups never shrink and cut rows */
  .side__foot{margin-top:28px;padding:0}
  .side .nav-item,.side .me{position:relative;min-height:50px;height:auto;padding:0 14px 0 12px;gap:14px;border-radius:0;font-size:16px;font-weight:400;color:var(--ink);transition:background .15s}
  .side .me{padding-top:9px;padding-bottom:9px}
  .side .nav-item:not(:first-child)::before,.side .me::before{content:"";position:absolute;left:56px;right:0;top:0;height:1px;background:var(--hairline)}
  .side .nav-item:hover{background:none}
  .side .nav-item:active,.side .me:active{background:var(--surface-3)}
  .side .nav-item.on,.side .nav-item.on:hover,.side:not(.pill-ready) .nav-item.on{background:var(--surface-2);color:var(--ink)}
  .side .nav-item > span:not([class]){flex:1;min-width:0}
  .side .nav-item::after{content:"";flex:none;width:8px;height:13px;background:var(--muted-2);opacity:.75;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='m1.5 1.5 5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='m1.5 1.5 5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
  .nav-ic{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;background:var(--tint)}
  .side .nav-ic .ic,.side .nav-item.on .nav-ic .ic{width:19px;height:19px;color:#FFFFFF;stroke-width:1.9}
  .side .nav-item .count{margin-left:0;min-width:22px;height:22px;padding:0 7px;border-radius:11px;font-size:13px;line-height:22px;background:#FF3B30;color:#FFFFFF}
  .side .nav-item .count--soft,.side .nav-item.on .count--soft{background:none;color:var(--muted);opacity:1;padding:0 2px}
  /* Ajustes: its sections as a row of pills that scrolls sideways under the app bar */
  .settings__nav{position:sticky;top:calc(var(--bar) + env(safe-area-inset-top));z-index:5;margin:0 -16px;padding:8px 16px 10px;gap:6px;
    background:var(--canvas);scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding-inline:16px}
  .settings__nav::-webkit-scrollbar{display:none}
  .settings__nav a{flex:none;white-space:nowrap;padding:8px 14px;border-radius:999px;background:var(--surface-2);scroll-snap-align:start}
  .settings__nav a.on{background:var(--pill);color:var(--on-pill)}
  /* card titles keep their width; a legend or button beside them wraps below */
  .card__head{flex-wrap:wrap;row-gap:8px}
  .card__head .h3{flex:1 1 200px}
  /* dialogs and record panels: sheets from the bottom */
  .overlay{align-items:flex-end;padding:0}
  .modal{width:100%;max-height:calc(100dvh - 24px - env(safe-area-inset-top));border-radius:24px 24px 0 0;transform:translateY(48px);padding-bottom:env(safe-area-inset-bottom)}
  .modal__foot .btn{flex:1;justify-content:center}
  .modal::before,.drawer::before{content:"";flex:none;width:38px;height:5px;margin:8px auto 0;border-radius:3px;background:var(--hairline-2)}
  .drawer{top:calc(12px + env(safe-area-inset-top));left:0;right:0;bottom:0;width:100%;border-radius:24px 24px 0 0;transform:translateY(48px)}
  .drawer__body{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
  .toasts{bottom:calc(var(--tabs) + 14px + env(safe-area-inset-bottom))}
  /* Calendario: the month comes first; the counts shrink to one row, and adding goes through the + (app bar or the
     picked day) */
  .ctiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
  .ctile{padding:10px 10px 11px;border-radius:14px}
  .ctile::before{left:10px;right:10px}
  .ctile span{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ctile b{font-size:24px;margin-top:4px}
  .add-pill{display:none}
  /* the month's plans as small solid dots in each kind's colour (tasks as rings), and the same in the day's list */
  .cal__day .ev{width:8px;height:8px;padding:0;border-radius:50%}
  .cal__day .ev:not(.ev--task),.cal-dayc__dot:not(.ev--task){background:var(--dot,var(--muted-2))}
  .cal__day .ev--task,.cal-dayc__dot.ev--task{border:1.5px solid var(--muted-2)}
  .ev--meeting{--dot:var(--info)} .ev--call{--dot:var(--lime-line)} .ev--deadline{--dot:var(--bad)} .ev--follow{--dot:var(--warn)} .ev--money{--dot:var(--ok)}
  .cal-dayc .cal-dayc__it{border-radius:0}
}
