/* Cursus — styles. Phone-first: the public form and kiosk run on phones and
 * tablets; staff screens get a sidebar on a desktop and a tab bar on a phone.
 * Redesign approved by Rafael 2026-10-11 (mockups: "Cursus Redesign"):
 * deep lagoon teal, one warm ember accent, Bricolage Grotesque headings,
 * Figtree text, JetBrains Mono for links, phone numbers and times. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../vendor/fonts/bricolage-grotesque-latin.woff2") format("woff2");
             font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../vendor/fonts/figtree-latin.woff2") format("woff2");
             font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../vendor/fonts/jetbrains-mono-latin.woff2") format("woff2");
             font-weight: 400 500; font-display: swap; }
:root {
  --lagoon: #0d5c5f; --lagoon-2: #0a4649; --lagoon-soft: #e3f0ef;
  --ember: #e0663a; --ember-soft: #fbe9e1; --ember-ink: #a63e17;
  --bg: #f7f5f1; --card: #fff; --line: #e4e6e1; --line-2: #d5d9d4; --hover: #f2f4f1;
  --fg: #1b2524; --muted: #66716e; --faint: #9aa29f;
  --ok: #1d7a4e; --ok-soft: #e2f3ea; --err: #b4322a; --warn: #b54708; --warn-soft: #fff4e5;
  --accent: var(--lagoon); --accent-fg: #fff;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px; --radius-lg: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--body); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: 1.65rem; font-weight: 700; margin: 0 0 .4rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
a { color: var(--lagoon); }
code, .mono { font-family: var(--mono); font-size: .85em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--lagoon) 35%, transparent); outline-offset: 2px; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Form controls */
.field { display: block; margin: .7rem 0; }
.field > span, .field > label > span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; }
input, select, textarea { font: inherit; width: 100%; padding: .65rem .8rem; border: 1px solid var(--line-2); border-radius: var(--radius);
                          background: #fff; color: var(--fg); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px var(--lagoon-soft); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--lagoon); }
.iconed { position: relative; display: block; }
.iconed .ico { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.iconed input { padding-left: 2.5rem; }
button { font: inherit; cursor: pointer; }
button:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
/* One button family: primary (filled teal), secondary (white), link, ghost. */
button.primary, .btn.pri, a.button, .row button, .inline button, button.primary-inline, .invite p > button,
form button:not([type]):not([class]) {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1rem; border: 1px solid var(--lagoon);
  border-radius: var(--radius); background: var(--lagoon); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
button.primary { width: 100%; margin-top: .7rem; padding: .75rem; }
button.primary:hover, .btn.pri:hover, a.button:hover, .row button:hover, form button:not([type]):not([class]):hover { background: var(--lagoon-2); border-color: var(--lagoon-2); }
button.secondary, .btn.sec, a.btn.sec { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .9rem;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--fg); font-weight: 600; text-decoration: none; white-space: nowrap; }
button.secondary:hover, .btn.sec:hover { border-color: var(--lagoon); color: var(--lagoon); }
button.link { background: none; border: 0; color: var(--lagoon); padding: 0; font-weight: 600; }
button.link.small { margin-left: .5rem; }
.btn.ghost { display: inline-grid; place-items: center; background: none; border: 0; border-radius: 8px; padding: .4rem; color: var(--muted); }
.btn.ghost:hover, details[open] > summary.btn.ghost { background: var(--lagoon-soft); color: var(--lagoon); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.lang button { border: 0; background: #fff; padding: .3rem .6rem; font-size: .72rem; font-weight: 600; color: var(--muted); }
.lang button.on { background: var(--lagoon); color: #fff; }
.msg { color: var(--err); min-height: 1.5em; margin: .3rem 0; }
.msg:empty { min-height: 0; margin: 0; }
.ok { color: var(--ok); }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.danger { color: var(--err) !important; }
.hint { font-size: .82rem; margin: .2rem 0; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; align-items: center; }
.row input, .row select { flex: 1 1 10rem; width: auto; }
.row button.link, .row button.secondary { background: none; }
.row button.secondary { background: #fff; color: var(--fg); border-color: var(--line-2); }
.row button.link { border: 0; color: var(--lagoon); padding: 0; }
.row button.link.danger { color: var(--err); }
form.inline { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
form.inline input { width: auto; }
form.inline button.link { background: none; border: 0; color: var(--lagoon); padding: 0; }
code.break { word-break: break-all; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: .35rem; font: 600 .7rem/1 var(--body); padding: .32rem .55rem; border-radius: 99px;
        background: #eceeec; color: var(--muted); vertical-align: middle; white-space: nowrap; }
.pill.ok { background: var(--ember-soft); color: var(--ember-ink); }
.pill.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.pill.off { background: #eceeec; color: var(--muted); }
.pill.fixed { background: var(--lagoon-soft); color: var(--lagoon); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: #eceeea; border-radius: var(--radius); padding: 3px; }
.seg button { border: 0; background: none; border-radius: 8px; padding: .38rem .8rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Cards and tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; max-width: 28rem; margin: 6vh auto 0; }
.card h2 { margin-top: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel > header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.panel > header h3 { margin: 0; font-size: 1rem; }
.panel > header a { font-weight: 600; font-size: .82rem; text-decoration: none; }
table.list, table.contacts { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .9rem; background: var(--card); }
table.list th, table.list td, table.contacts th, table.contacts td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid #eef0ec; vertical-align: middle; }
table.list th, table.contacts th { font: 600 .68rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
@media (max-width: 34rem) {
  table.list thead { display: none; }
  table.list td { display: block; border: 0; padding: .15rem .9rem; }
  table.list tr { display: block; border-bottom: 1px solid var(--line); padding: .6rem 0; }
}
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .7rem var(--body); flex: none;
      background: var(--lagoon-soft); color: var(--lagoon); }
.av.c1 { background: var(--ember-soft); color: var(--ember-ink); } .av.c2 { background: #e7e3f2; color: #4c3f86; } .av.c3 { background: #f3e9cf; color: #7a5a12; }

/* Sign-in, forgot and reset: a split screen with the brand panel */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; background: var(--lagoon-2); color: #e9f4f3; padding: 2.4rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand .qrart { position: absolute; right: -50px; top: 60px; width: 320px; height: 320px; opacity: .16; transform: rotate(-8deg); }
.auth-brand blockquote { margin: 0; font: 700 clamp(2rem, 3.6vw, 2.9rem)/1.06 var(--display); letter-spacing: -.02em; max-width: 13ch; position: relative; }
.auth-brand blockquote em { font-style: normal; color: #ffb48f; }
.auth-brand p { margin: .9rem 0 0; color: #a9cbc9; max-width: 34ch; position: relative; }
.auth-brand .foot { font: 500 .72rem var(--mono); color: #7fb0ad; position: relative; }
.mark { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.3rem var(--display); letter-spacing: -.02em; color: inherit; text-decoration: none; }
.mark b { width: 30px; height: 30px; display: block; flex: none; }
.iso { display: block; width: 100%; height: 100%; }
.iso rect { fill: var(--iso-bg, var(--lagoon)); }
.iso path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.iso .c { stroke: var(--iso-c, #f7f5f1); } .iso .u { stroke: var(--iso-u, var(--ember)); }
.auth-brand .mark { --iso-bg: #f7f5f1; --iso-c: var(--lagoon); }
.auth-side { display: flex; flex-direction: column; padding: 1.4rem 2rem 1rem; }
.auth-side > .lang { align-self: flex-end; }
.auth-side main { flex: 1; display: grid; align-items: center; }
.auth-side footer { font-size: .72rem; color: var(--faint); }
.auth .card { border: 0; background: none; padding: 0; margin: 0 auto; width: 100%; max-width: 24rem; }
.auth .card h2 { font-size: 1.9rem; }
.auth .card .sub { color: var(--muted); margin: -.1rem 0 1.2rem; }
.google { display: flex; align-items: center; justify-content: center; gap: .6rem; height: 2.9rem; border: 1px solid var(--line-2);
          border-radius: var(--radius); background: #fff; color: var(--fg); font-weight: 600; text-decoration: none; }
.google:hover { border-color: var(--lagoon); }
.or { display: flex; align-items: center; gap: .7rem; margin: 1rem 0 .3rem; color: var(--faint); font: 600 .66rem var(--body); letter-spacing: .12em; text-transform: uppercase; }
.or span { flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; justify-content: flex-end; margin-top: .4rem; font-size: .85rem; }
.auth-links a { font-weight: 600; text-decoration: none; }
@media (max-width: 52rem) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 1.6rem 1.3rem 2.6rem; min-height: 0; gap: 1.4rem; }
  .auth-brand blockquote { font-size: 1.6rem; }
  .auth-brand p, .auth-brand .foot { display: none; }
  .auth-brand .qrart { width: 170px; height: 170px; right: -30px; top: 16px; }
  .auth-side { margin-top: -18px; background: var(--bg); border-radius: 18px 18px 0 0; position: relative; padding: 1rem 1.2rem; }
  .auth-side > .lang { position: absolute; right: 1.2rem; top: -4.6rem; }
}

/* The signed-in shell: sidebar on a desktop, top bar + tab bar on a phone */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); padding: 1rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.side > .mark { font-size: 1.15rem; padding: .2rem .5rem .9rem; color: var(--fg); }
.side > .mark b { width: 28px; height: 28px; }
.orgcard { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 11px; margin-bottom: .7rem; }
.orgcard .logo { width: 30px; height: 30px; border-radius: 8px; background: #f3e3c7; color: #7a4a12; display: grid; place-items: center; font: 800 .72rem var(--display); flex: none; overflow: hidden; }
.orgcard .logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.orgcard > div { min-width: 0; line-height: 1.2; }
.orgcard strong { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgcard small { color: var(--muted); font-size: .72rem; }
.orgswitch { margin-top: .3rem; padding: .3rem .4rem; font-size: .78rem; border-radius: 8px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .52rem .6rem; border-radius: 9px; color: #3e4a47; text-decoration: none; font-weight: 500; font-size: .9rem; }
.nav a:hover { background: var(--hover); }
.nav a.on { background: var(--lagoon-soft); color: var(--lagoon); font-weight: 600; }
.nav a .n { margin-left: auto; font: 600 .7rem var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.nav .grp { font: 600 .64rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 1rem .6rem .3rem; }
.side .me { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.side .me .who { display: flex; align-items: center; gap: .55rem; font-size: .84rem; line-height: 1.2; min-width: 0; }
.side .me .who small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.side .me .row { margin: 0; justify-content: space-between; }
.app-main { min-width: 0; padding: 1.8rem 2rem 2.5rem; display: flex; flex-direction: column; }
.app-main > main { flex: 1; }
.app-main > footer { margin-top: 2rem; font-size: .72rem; color: var(--faint); }
.app-main .card { margin: 0; }
.app-main .card.wide { background: none; border: 0; padding: 0; max-width: 68rem; }
.topbar, .tabbar, .more-sheet { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head h2 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.page-head .acts { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 52rem) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; background: var(--bg);
            position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
  .topbar .mark { font-size: 1.05rem; } .topbar .mark b { width: 26px; height: 26px; }
  .app-main { padding: 1rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff;
            border-top: 1px solid var(--line); padding: .45rem 0 calc(.6rem + env(safe-area-inset-bottom, 0px)); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: .15rem; font: 600 .62rem var(--body); color: #8b9592; text-decoration: none; background: none; border: 0; padding: 0; }
  .tabbar .on { color: var(--lagoon); }
  .tabbar .plus { width: 44px; height: 44px; border-radius: 14px; background: var(--ember); color: #fff; display: grid; place-items: center; margin-top: -16px;
                  box-shadow: 0 8px 16px -8px rgba(224,102,58,.7); }
  .more-sheet.open { display: block; position: fixed; inset: 0; z-index: 7; background: rgba(15,30,30,.35); }
  .more-sheet .sheet-in { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; padding: 1rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: .3rem; }
  .app-main > footer { display: none; }
  h2 { font-size: 1.4rem; }
}

/* Home */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; margin-bottom: .9rem; }
.qcard { display: grid; gap: .45rem; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem;
         color: var(--fg); text-decoration: none; }
.qcard:hover { border-color: var(--lagoon); }
.qcard .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--lagoon-soft); color: var(--lagoon); }
.qcard .ic.warm { background: var(--ember-soft); color: var(--ember-ink); }
.qcard strong { font: 700 1rem var(--display); }
.qcard span:last-child { color: var(--muted); font-size: .84rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
@media (max-width: 62rem) { .home-grid { grid-template-columns: 1fr; } }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: .7rem; padding: .65rem 1rem; border-bottom: 1px solid #f0f1ee; font-size: .88rem; }
.feed li:last-child { border-bottom: 0; }
.feed .who { flex: 1; min-width: 0; } .feed .who a { color: var(--fg); font-weight: 600; text-decoration: none; }
.feed .who small { display: block; color: var(--muted); }
.feed time { color: var(--muted); font: 500 .75rem var(--mono); white-space: nowrap; }
.feed .empty { color: var(--muted); justify-content: center; padding: 1.4rem 1rem; }
.feed.links a { display: flex; align-items: center; gap: .65rem; width: 100%; color: var(--fg); text-decoration: none; }
.feed.links small { margin-left: auto; color: var(--muted); }

/* Events (client lists) */
.lists { list-style: none; padding: 0; margin: 0 0 1rem; }
.lists.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .8rem; }
/* minmax(0, 1fr): the card's one column is the card's width. Left implicit
 * (auto) it grew to the link's nowrap width and pushed the link, the copy
 * button, the pill and the ⋯ menu past the card edge (Rafael, 2026-10-12). */
.list-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; display: grid;
             grid-template-columns: minmax(0, 1fr); gap: .7rem; align-content: start; min-width: 0; }
.list-item .head { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.list-item .head > div { display: flex; gap: .65rem; min-width: 0; }
.list-item .head > .pill { flex: none; }
.list-item h4 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.list-item .meta { color: var(--muted); font-size: .78rem; }
.date-chip { display: grid; place-items: center; width: 44px; border: 1px solid var(--line); border-radius: 10px; padding: .25rem 0; line-height: 1.05; flex: none; }
.date-chip b { font: 800 1.1rem var(--display); } .date-chip small { font: 600 .6rem var(--body); text-transform: uppercase; color: var(--ember); letter-spacing: .08em; }
.stats { display: flex; gap: 1.1rem; font-size: .76rem; color: var(--muted); }
.stats b { display: block; color: var(--fg); font: 700 1.05rem var(--display); font-variant-numeric: tabular-nums; }
.linkrow { display: flex; align-items: center; gap: .3rem; background: #f4f6f3; border-radius: 9px; padding: .3rem .3rem .3rem .65rem; min-width: 0; }
.linkrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; color: #4d5a57; }
.tools { display: flex; gap: .4rem; align-items: center; border-top: 1px solid #f0f1ee; padding-top: .65rem; container-type: inline-size; }
.tools > a, .tools > button { flex: 1 1 auto; min-width: 0; font-size: .78rem; padding: .45rem .4rem; white-space: nowrap; }
.tools .lbl { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* A narrow card keeps its three controls on one row inside the card: the
 * icons go first, then the words shorten — nothing spills past the edge. */
@container (max-width: 19.5rem) { .tools > a .ico, .tools > button .ico { display: none; } }
.menu { position: relative; flex: none; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 4; width: 11rem; background: #fff; border: 1px solid var(--line); border-radius: 12px;
             box-shadow: 0 16px 32px -16px rgba(10,40,40,.4); padding: .3rem; display: grid; }
.menu-list button { text-align: left; background: none; border: 0; border-radius: 7px; padding: .5rem .6rem; font-size: .85rem; color: var(--fg); font-weight: 500; }
.menu-list button:hover { background: var(--hover); }
.menu-list button.danger { border-top: 1px solid #f0f1ee; border-radius: 0 0 7px 7px; margin-top: .2rem; }
.list-item .note { font-size: .78rem; }
.list-edit { border-top: 1px solid #f0f1ee; padding-top: .6rem; }
.list-edit label { display: block; margin: .45rem 0; font-size: .8rem; font-weight: 600; }
.list-edit input, .list-edit textarea, .invite textarea { display: block; width: 100%; margin-top: .25rem; }
.list-edit p button:not(.link) { padding: .5rem .9rem; border: 1px solid var(--lagoon); border-radius: var(--radius); background: var(--lagoon); color: #fff; font-weight: 600; }
.group-head { display: flex; align-items: center; gap: .5rem; margin: 1.6rem 0 .7rem; }
.group-head h3 { margin: 0; }
.group-head { flex-wrap: wrap; }
.group-head .add-source { margin-left: auto; }
/* Who on the team sees a fixed source (018). */
.pill.vis .ico { width: 12px; height: 12px; }
.pill.vis-org { background: var(--lagoon-soft); color: var(--lagoon); }
.pill.vis-admin { background: #eee8f7; color: #5b3f8c; }
.pill.vis-personal { background: var(--ember-soft); color: var(--ember-ink); }
.vis-pick { border: 0; padding: 0; margin: .7rem 0; display: grid; gap: .45rem; min-width: 0; }
.vis-pick legend { font-size: .8rem; font-weight: 600; margin-bottom: .35rem; padding: 0; }
.vis-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: start; padding: .6rem .75rem;
           border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; background: var(--card); }
.vis-opt input { margin-top: .2rem; }
.vis-opt > span { display: grid; gap: .25rem; justify-items: start; min-width: 0; }
.vis-opt small { color: var(--muted); font-size: .82rem; }
.vis-opt.on { border-color: var(--lagoon); box-shadow: 0 0 0 3px var(--lagoon-soft); }
.vis-opt.off { opacity: .55; cursor: not-allowed; }
details.sources { background: #fff; border: 1px dashed #cdd3cf; border-radius: var(--radius-lg); padding: .7rem 1rem; margin-bottom: .6rem; }
details.sources summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .45rem; }
details.sources summary .ico { color: var(--lagoon); }
details.sources[open] summary { margin-bottom: .7rem; }
details.sources .lists.cards { margin: 0; }
details.sources .list-item { border-color: #eceee9; }
.drawer { position: fixed; inset: 0; z-index: 8; background: rgba(15,30,30,.35); display: flex; justify-content: flex-end; }
.drawer > .in { width: min(30rem, 100%); height: 100%; overflow-y: auto; background: var(--bg); padding: 1.4rem; box-shadow: -20px 0 40px -20px rgba(10,40,40,.4); }
.drawer .close { float: right; }
.invite { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .5rem; }
.drawer .invite { border: 0; margin: 0; padding: 0; }
.drawer .invite h3 { margin-top: 0; }
.drawer .invite .row > * { flex: 1 1 100%; }
.invite .seg { margin-bottom: .6rem; }

/* Organization and team */
.company { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1.1rem; margin: .8rem 0; }
.company h3 { margin: .1rem 0 .4rem; }
.outlets { padding-left: 1.1rem; margin: .4rem 0; }
.outlets li { margin: .3rem 0; }
.logo-block, .ai-block, .mail-block, .wa-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1.1rem; margin: .8rem 0; }
.logo-block h3, .ai-block h3, .mail-block h3, .wa-block h3 { margin-top: 0; }
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.tiles a { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--fg); }

/* A6 — the printed sheet, at real paper size: letter, A4, two half-letter
 * stands on a landscape letter sheet, or ten 3.5 x 2 in cards. */
.sheet-wrap { overflow-x: auto; padding: .5rem 0 1rem; }
.sheet { position: relative; background: #fff; color: #000; margin: 0 auto; box-shadow: 0 2px 14px rgba(20,30,40,.15);
         -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.full-sheet.letter, .cards-sheet { width: 8.5in; height: 11in; }
.full-sheet.a4 { width: 210mm; height: 297mm; }
.half-sheet { width: 11in; height: 8.5in; display: flex; }
.cut-v { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #999; }
.face { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
        text-align: center; box-sizing: border-box; }
.face.full { width: 100%; height: 100%; padding: .7in .6in; }
.face.half { width: 5.5in; height: 8.5in; padding: .45in .4in; }
.face > *:not(.face-bg) { position: relative; z-index: 1; }
.face-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.face-top { display: flex; flex-direction: column; align-items: center; }
.face-logo { max-height: .9in; max-width: 2.4in; object-fit: contain; margin-bottom: .12in; }
.face h1 { font-size: 34pt; line-height: 1.1; margin: .05in 0 .1in; }
.face.half h1 { font-size: 24pt; }
.poster-company { text-transform: uppercase; letter-spacing: .1em; font-size: 11pt; margin: 0; }
.poster-call { font-size: 18pt; margin: 0; }
.face.half .poster-call { font-size: 13pt; }
.plate { background: #fff; color: #111; border-radius: 10px; padding: .16in; box-sizing: border-box; }
.face.full .plate { width: 4.6in; }
.face.half .plate { width: 3.3in; }
.plate .qr { width: 100%; height: auto; display: block; }
.poster-list { font-weight: 600; margin: .08in 0 0; }
.poster-url { font-family: ui-monospace, monospace; font-size: 9pt; word-break: break-all; margin: .04in 0 0; }
.poster-foot { margin: 0; font-size: 11pt; }
.face.designed { color: #fff; }
.face.designed .face-top, .face.designed .poster-foot { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.cards-sheet { padding: .5in .75in; box-sizing: border-box; }
.cards-grid { display: grid; grid-template-columns: 3.5in 3.5in; grid-template-rows: repeat(5, 2in); }
.bcard { position: relative; overflow: hidden; width: 3.5in; height: 2in; box-sizing: border-box; outline: .5px dashed #aaa;
         display: flex; align-items: center; gap: .12in; padding: .14in; font-size: 8pt; line-height: 1.25; }
.bcard > *:not(.face-bg) { position: relative; z-index: 1; }
.bcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .02in; }
.bcard-text strong { font-size: 10pt; }
.bcard .face-logo { max-height: .4in; max-width: 1.2in; margin: 0 0 .04in; align-self: flex-start; }
.bcard .plate { width: 1.5in; padding: .06in; border-radius: 6px; flex: none; }
.bcard.designed { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.poster-bar { flex-wrap: wrap; gap: .5rem; }
.invite .seg { margin-bottom: .4rem; }
button.primary-inline { border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-fg); padding: .45rem .9rem; font-weight: 600; }
.design-panel h3 { margin: 1.1rem 0 .4rem; }
.design-panel h3:first-child { margin-top: 0; }
.texts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .4rem .8rem; }
.texts-grid label, .gen label { display: block; font-size: .85rem; color: var(--muted); }
.design-panel button:not(.link) { padding: .45rem .85rem; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.design-panel button.secondary { background: #fff; color: var(--accent); }
.design-panel .row { gap: .6rem; align-items: center; flex-wrap: wrap; margin: .4rem 0; }
.logo-thumb { max-height: 3.5rem; max-width: 10rem; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: .25rem; background: #fff; }
@media print {
  body.printing-poster { background: #fff; }
  body.printing-poster .shell { max-width: none; padding: 0; }
  body.printing-poster .app { display: block; }
  body.printing-poster .app-main { padding: 0; }
  body.printing-poster .side, body.printing-poster .topbar, body.printing-poster .tabbar, body.printing-poster .app-main > footer,
  body.printing-poster .shell > header, body.printing-poster .shell > footer, .no-print { display: none !important; }
  body.printing-poster .sheet-wrap { overflow: visible; padding: 0; }
  body.printing-poster .sheet { box-shadow: none; margin: 0; page-break-after: always; }
}
.row .actions button.link, .actions button.link { border: 0; padding: 0; background: none; font-weight: 400; color: var(--accent); }
.actions button.link.danger { color: var(--err); }
.invite p > button { padding: .55rem .9rem; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.no-print.row { align-items: center; }
.no-print.row select { flex: 0 0 auto; }
.no-print.row a { margin-right: auto; }

/* M3 — the customer form */
.shell.narrow { max-width: 34rem; }
.public-card { max-width: 32rem; }
.public-form fieldset { border: 0; padding: 0; margin: .9rem 0; }
.public-form legend { font-size: .85rem; color: var(--muted); margin-bottom: .3rem; padding: 0; }
.public-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 30rem) { .public-form .two { grid-template-columns: 1fr; } }
.phone-row { display: flex; gap: .4rem; }
.phone-row select { flex: 0 0 7.2rem; width: 7.2rem; }
.phone-row input { flex: 1; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.choice input, .check input { width: auto; margin: 0; }
.choice.unavailable { opacity: .55; }
.check { display: inline-flex; align-items: flex-start; gap: .45rem; margin-right: .9rem; cursor: pointer; }
.consent { display: flex; margin-top: 1rem; font-size: .92rem; }
.field-err { display: block; color: var(--err); font-size: .85rem; margin-top: .25rem; }
input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: center; padding: 1rem 0; }

/* M4 — kiosk mode: the form and nothing else, sized for a tablet */
.kiosk { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; font-size: 1.08rem; }
.kiosk-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: .5rem; }
.kiosk-head h1 { margin: 0; font-size: 1.8rem; }
.kiosk-head p { margin: 0; }
.kiosk-list { font-weight: 600; }
.kiosk-phone { display: grid; justify-items: center; gap: .25rem; max-width: 8.5rem; text-align: center; color: var(--muted); }
.kiosk-phone .qr { width: 7rem; height: 7rem; }
.kiosk .public-form input, .kiosk .public-form select { padding: .8rem .85rem; }
.kiosk-exit { display: block; margin: 2rem auto 0; color: var(--muted); font-size: .85rem; }
.kiosk-exit-form { max-width: 20rem; margin: 2rem auto 0; }

/* M5 — contacts */
.table-wrap { overflow-x: auto; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .5rem 0 1rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }
.review-box { border: 1px solid #f5c26b; background: #fffaeb; border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0; }
.review-box h3 { margin-top: 0; }
.dup { border-top: 1px solid #f5c26b; padding-top: .5rem; margin-top: .5rem; }
.contact-edit .two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choices.stacked { flex-direction: column; gap: .5rem; }
.marketing-of select { max-width: 18rem; }
.report-part { margin-top: 1.2rem; }
.report-part table.list td.num, .report-part table.list th.num { text-align: right; width: 7rem; }
@media screen and (max-width: 75rem) { .half-sheet { zoom: .85; } }
@media screen and (max-width: 40rem) { .sheet { zoom: .45; } }


/* Redesign: the customer form (phone first) and the public page */
.shell { max-width: 60rem; margin: 0 auto; padding: 0 1rem; min-height: 100vh; display: flex; flex-direction: column; }
.shell > header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.shell > main { flex: 1; }
.shell > footer { padding: 1.5rem 0; font-size: .75rem; text-align: center; }
.brand { font: 800 1.15rem var(--display); color: var(--fg); text-decoration: none; letter-spacing: -.02em; }
.public-card { max-width: 32rem; margin-top: 1rem; }
.public-hd { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; margin-bottom: 1rem; }
.public-hd .logo { width: 60px; height: 60px; border-radius: 16px; background: #f3e3c7; color: #7a4a12; display: grid; place-items: center;
                   font: 800 1.2rem var(--display); overflow: hidden; }
.public-hd .logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.public-hd h1 { font-size: 1.5rem; margin: .2rem 0 0; }
.public-hd h2 { font: 600 .95rem var(--body); color: var(--muted); margin: 0; letter-spacing: 0; }
.public-hd p { margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.choice { flex: 1 1 6rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 1px solid var(--line-2); border-radius: var(--radius);
          padding: .65rem .6rem; cursor: pointer; background: #fff; font-weight: 600; font-size: .88rem; text-align: center; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { border-color: var(--lagoon); background: var(--lagoon-soft); color: var(--lagoon); }
.choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--lagoon) 35%, transparent); }
.choices.stacked .check { display: flex; width: 100%; margin: 0; padding: .65rem .75rem; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); }
.choices.stacked .check:has(input:checked) { border-color: var(--lagoon); }
.check input { width: 18px; height: 18px; margin: .1rem 0 0; flex: none; }
.thanks .done { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto .8rem; }
.thanks .done .ico { width: 30px; height: 30px; stroke-width: 2.4; }

/* Redesign: contacts toolbar */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0 .8rem; }
.filters .search { flex: 1 1 16rem; position: relative; }
.filters .search .ico { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.filters .search input { padding-left: 2.4rem; }
.filters select { flex: 0 1 auto; width: auto; max-width: 14rem; padding: .55rem .7rem; font-size: .84rem; font-weight: 600; }
.filters select.set { border-color: var(--lagoon); background: var(--lagoon-soft); color: var(--lagoon); }
.filters > details { position: relative; }
.filters > details > summary { list-style: none; cursor: pointer; }
.filters > details > summary::-webkit-details-marker { display: none; }
.filters .more-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 4; width: 16rem; background: #fff; border: 1px solid var(--line);
                       border-radius: 12px; box-shadow: 0 16px 32px -16px rgba(10,40,40,.4); padding: .7rem; display: grid; gap: .5rem; }
.filters .more-panel select { max-width: none; width: 100%; }
.contact-name { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.contact-name a { color: var(--fg); text-decoration: none; }
.contact-name a:hover { color: var(--lagoon); text-decoration: underline; }
td.mono, td .mono { font-family: var(--mono); font-size: .78rem; color: #4d5a57; white-space: nowrap; }
.via { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; white-space: nowrap; }
.via .ico { width: 15px; height: 15px; color: var(--lagoon); }
.chip { display: inline-flex; align-items: center; font: 500 .74rem var(--body); padding: .25rem .6rem; border-radius: 99px; background: var(--lagoon-soft);
        color: var(--lagoon); white-space: nowrap; margin: .1rem .2rem .1rem 0; }
.chip.plain { background: #eef0ec; color: #4d5a57; }

/* Helpers. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.loading-page { padding: 2rem; }
.side .me .nm { min-width: 0; }
.orgcard.mini { margin: 0; padding: .3rem .45rem; border: 0; }
.filters > details > summary.btn.ghost { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem; font: 600 .84rem var(--body);
  color: var(--fg); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); }
.filters > details > summary.btn.ghost.on { border-color: var(--lagoon); background: var(--lagoon-soft); color: var(--lagoon); }
.filters > details > summary .ico { width: 16px; height: 16px; }
.row.spread { justify-content: space-between; margin: 0 0 1rem; }
.row.spread h2 { margin: 0; }
.filters label.small { display: grid; gap: .2rem; font-weight: 600; }
@media (max-width: 52rem) {
  .feed time { font-size: .68rem; white-space: normal; max-width: 6rem; text-align: right; }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.list-item > .row.spread { margin: 0; }
ul.lists:not(.cards) { display: grid; gap: .6rem; }

/* Documents (Slice 2, SPEC amendment A7). The flags: Vigente green, Por vencer
 * amber, Vencido red, Falta grey — the same everywhere a document shows. */
.pill.st-valid { background: var(--ok-soft); color: var(--ok); }
.pill.st-expiring { background: var(--warn-soft); color: var(--warn); }
.pill.st-expired { background: #fbe4e2; color: var(--err); }
.pill.st-missing, .pill.st-none { background: #eceeec; color: var(--muted); }
.home-side { display: grid; gap: .9rem; }
.docs .crumbs { margin: 0 0 .3rem; font-size: .85rem; }
.docs .crumbs a { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; font-weight: 600; }
.docs .crumbs .ico { width: 15px; height: 15px; }
.doc-bar { justify-content: space-between; }
.doc-bar select { flex: 0 1 16rem; }
.doc-bar .one-company { font-family: var(--display); }
.iconed.grow { flex: 1 1 14rem; }
.doc-list li > a:not(.btn) { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; color: var(--fg); text-decoration: none; }
.doc-list li:hover { background: var(--hover); }
.doc-list .who b { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.doc-list .size { color: var(--muted); font: 500 .75rem var(--mono); white-space: nowrap; min-width: 4.5rem; text-align: right; }
.ftype { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #eceeec; color: var(--muted);
         font: 600 .62rem var(--mono); letter-spacing: .02em; overflow: hidden; }
.ftype.pdf { background: #fbe4e2; color: var(--err); }
.ftype.img { background: var(--lagoon-soft); color: var(--lagoon); }
.ftype.vid { background: #ece6f7; color: #5b3f9a; }
.ftype.zip { background: var(--warn-soft); color: var(--warn); }
.ftype.none { background: transparent; border: 1px dashed var(--line-2); }
.folder { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--lagoon-soft); color: var(--lagoon); }
.folder.smart { background: var(--ember-soft); color: var(--ember-ink); }
.legal-row { background: color-mix(in srgb, var(--ember-soft) 35%, #fff); }
.doc-upload, .doc-renew { margin: .8rem 0; }
.doc-upload-in { padding: 1rem; }
.doc-owner { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.opt { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; margin: .5rem 0; }
.opt.on { border-color: var(--lagoon); background: var(--lagoon-soft); }
.opt input { margin-top: .2rem; }
.opt b { display: block; } .opt small { display: block; color: var(--muted); }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius-lg); padding: 1.3rem 1rem; text-align: center; }
.drop.over { border-color: var(--lagoon); background: var(--lagoon-soft); }
.drop p { margin: .3rem 0; }
.up-list { margin-top: .8rem; border: 1px solid var(--line); border-radius: var(--radius); }
.bar { display: block; height: 6px; border-radius: 99px; background: #eceeec; overflow: hidden; margin: .35rem 0 .2rem; }
.bar > span { display: block; height: 100%; background: var(--lagoon); transition: width .2s; }
.bar.wide { flex: 1 1 12rem; }
.doc-newfolder { max-width: 34rem; }
.doc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: start; margin-top: .8rem; }
@media (max-width: 62rem) { .doc-cols { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 30rem) { .two { grid-template-columns: 1fr; } }
.doc-page h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.docs .page-head .acts .btn, .docs .page-head .acts a.btn { display: inline-flex; align-items: center; gap: .4rem; }
.doc-list li > a.btn { flex: none; }
.stale { background: var(--lagoon-soft); color: var(--lagoon); border-radius: var(--radius); padding: .6rem .9rem; margin: 0 0 1rem; font-weight: 600; }

/* Protected sends (Slice 2 step 3, SPEC A7; mockups v3 screens 2, 4, 6, 8, 9, 10). */
.doc-list li > input.sel { flex: none; width: 18px; height: 18px; margin: 0 .1rem 0 0; }
.doc-list li > input.sel:disabled { opacity: .35; }
.selbar { position: sticky; bottom: .8rem; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap;
          margin-top: .8rem; background: var(--lagoon); color: #fff; border-radius: var(--radius-lg); padding: .6rem .9rem; box-shadow: 0 6px 18px rgba(13, 92, 95, .25); }
.selbar .row { margin: 0; }
.selbar a.btn { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--lagoon); border-radius: var(--radius); padding: .5rem .9rem;
                font-weight: 700; text-decoration: none; }
.selbar button.link.light, .row button.link.light { color: #fff; opacity: .85; font-weight: 500; }
.chips-in { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
            padding: .4rem .5rem; min-height: 2.6rem; }
.chips-in input { flex: 1 1 10rem; border: 0; padding: .25rem; min-width: 8rem; outline: none; }
.chips-in.files { border-style: dashed; }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--lagoon-soft); color: var(--lagoon-2); border-radius: 8px; padding: .2rem .25rem .2rem .55rem;
        font-size: .84rem; max-width: 100%; overflow-wrap: anywhere; }
.chip i { font-style: normal; color: var(--muted); }
.chip button { border: 0; background: none; color: var(--muted); padding: 0 .3rem; font-size: 1rem; line-height: 1; }
.to-field { position: relative; margin-bottom: .6rem; }
.suggest { position: absolute; z-index: 6; left: 0; right: 0; top: 100%; list-style: none; margin: .2rem 0 0; padding: .25rem; background: #fff;
           border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .45rem .6rem; border-radius: 8px; }
.suggest button:hover { background: var(--lagoon-soft); }
.suggest small { color: var(--muted); }
.field > small, .field small.muted { display: block; margin-top: .25rem; font-size: .78rem; }
.send-new .field { display: block; margin: .7rem 0; }
.send-new .field > span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; }
.send-new textarea { width: 100%; }
.send-new .check { display: flex; margin: .45rem 0; }
.row.end { justify-content: flex-end; }
.send-picker { margin: .6rem 0; }
.pick-list { max-height: 22rem; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: .5rem 0; }
.pick-list label.pick { display: flex; align-items: center; gap: .6rem; flex: 1; cursor: pointer; }
.send-preview iframe { display: block; width: 100%; height: 34rem; border: 0; border-top: 1px solid var(--line); background: #f3f2ee; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.mail-hdr { padding: .7rem 1rem; font-size: .8rem; color: var(--muted); }
.mail-hdr b { color: var(--fg); }
.send-list li > a { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.send-detail h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.btn.sec.danger { color: var(--err); border-color: #e6c3bf; }
.stat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: .4rem 0 .2rem; }
.stat div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; }
.stat b { display: block; font: 700 1.4rem/1.1 var(--display); }
.stat small { color: var(--muted); font-size: .75rem; }
@media (max-width: 40rem) { .stat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.send-detail .feed li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.send-detail .feed .who { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.send-detail .feed .row { margin: 0; gap: .8rem; }
.panel > header button.link { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; }
.send-log { margin: 0; font-size: .82rem; }
.send-detail .doc-cols { grid-template-columns: 1fr; }
.nowrap { white-space: nowrap; }

/* List sends (Slice 2 step 4); the list picker is Campañas' since A8. */
.list-send .page-head .acts a.link, .send-new .page-head .acts a.link { font-weight: 600; }
.chips-in select.add-list { border: 0; background: none; color: var(--lagoon); font-weight: 600; padding: .2rem; max-width: 12rem; }
.list-count { margin: .35rem 0 0; }
.list-count b { color: var(--lagoon); }
.drawer.confirm { align-items: center; justify-content: center; padding: 1rem; }
.drawer.confirm > .in { height: auto; width: min(30rem, 100%); border-radius: var(--radius-lg); }
.drawer.confirm h3 { margin-top: 0; }
.send-detail .panel > header .iconed { flex: 0 1 14rem; }
.pager { justify-content: center; gap: 1rem; padding: .5rem; }

/* The recipient's page */
.send-view .public-card { max-width: 40rem; }
.send-view .public-card h1 { font-size: 1.45rem; margin: .2rem 0 .4rem; overflow-wrap: anywhere; }
.code-in { font: 700 1.6rem var(--mono); letter-spacing: .5em; text-align: center; max-width: 16rem; }
.send-msg { white-space: pre-line; background: var(--bg); border-radius: var(--radius); padding: .7rem .9rem; }
.send-items li { display: flex; align-items: center; gap: .7rem; }
.send-items .who { flex: 1; min-width: 0; }
.send-items .acts { display: flex; gap: .4rem; flex: none; }
.btn.sec.wide { width: 100%; }
.receipt { padding: .9rem 1rem; margin-top: .8rem; }
.receipt p { margin: 0 0 .4rem; }
.receipt .ok { display: flex; align-items: center; gap: .4rem; font-weight: 600; margin: 0; }
.viewer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #2a3130; color: #fff;
          -webkit-user-select: none; user-select: none; }
.viewer > header { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; background: #1b2524; flex-wrap: wrap; }
.viewer > header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50vw; }
.viewer > header .grow { flex: 1; }
.viewer > header .row { margin: 0; }
.viewer > header .btn.ghost { color: #fff; font-size: 1.1rem; min-width: 2rem; }
.viewer > header .btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.viewer > header .muted { color: #b8c4c1; }
.viewer-body { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.viewer-body .pages { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.viewer-body canvas.page { max-width: 100%; height: auto; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.viewer-body .media { position: relative; max-width: 100%; overflow: hidden; border-radius: 8px; }
.viewer-body video { display: block; max-width: 100%; max-height: 80vh; background: #000; }
.viewer-body .textdoc { margin: 0; background: #fff; color: var(--fg); padding: 1.2rem; white-space: pre-wrap; max-width: 60rem; min-height: 20rem; font: .85rem/1.5 var(--mono); }
.wm { position: absolute; inset: -50%; display: grid; align-content: space-around; justify-items: center; transform: rotate(-28deg); pointer-events: none;
      color: rgba(13, 92, 95, .2); font: 600 .9rem/1 var(--mono); white-space: pre; overflow: hidden; }
.viewer-body .media video + .wm { color: rgba(255, 255, 255, .28); }

/* Saved poster backgrounds (019): every generated or uploaded one stays. */
.saved-bgs { display: grid; gap: .5rem; margin-top: 1rem; min-width: 0; }
.saved-bgs h4 { margin: 0; font-size: 1rem; }
.saved-bgs h5 { margin: .4rem 0 0; font-size: .85rem; font-weight: 700; }
.bg-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); }
.bg-tile { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); min-width: 0; }
.bg-tile.on { border-color: var(--lagoon); box-shadow: 0 0 0 3px var(--lagoon-soft); }
.bg-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--hover); }
.bg-tile .b { display: grid; gap: .35rem; padding: .45rem; justify-items: start; }
.bg-tile p { margin: 0; font-size: .75rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bg-tile .tag { font: 700 .68rem/1 var(--body); border-radius: 99px; padding: .25rem .5rem; }
.bg-tile .tag.ai { background: var(--lagoon-soft); color: var(--lagoon); }
.bg-tile .tag.up { background: var(--ember-soft); color: var(--ember-ink); }
.bg-tile .use { font: 600 .8rem var(--body); border: 1px solid var(--line-2); background: var(--card); color: var(--fg); border-radius: 8px; padding: .3rem .6rem; }
.bg-tile .use.on { background: var(--lagoon); border-color: var(--lagoon); color: #fff; opacity: 1; cursor: default; }

/* Campañas (SPEC A8, 021): the list, the editor with its live preview, review and send, saved designs. */
.grow { flex: 1 1 auto; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.block { display: block; }
.camp-stats { margin-bottom: .9rem; }
.camp-filters { margin: 0 0 .8rem; }
.camp-table td.num, .camp-table th.num { text-align: right; font-variant-numeric: tabular-nums; width: 5.5rem; }
.camp-table td.act { text-align: right; white-space: nowrap; }
.camp-table td.act .row { margin: 0; justify-content: flex-end; flex-wrap: nowrap; }
.camp-name { display: flex; align-items: center; gap: .7rem; color: var(--fg); text-decoration: none; min-width: 0; }
.camp-name > span { display: grid; min-width: 0; }
.camp-name b { overflow-wrap: anywhere; }
.camp-name small { color: var(--muted); font-size: .76rem; }
.camp-thumb { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 8px; object-fit: cover; background: var(--hover); }
.camp-thumb.ph { display: grid; place-items: center; font: 700 .8rem var(--display); }
.camp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: .9rem; align-items: start; }
.camp-cols > .camp-preview, .camp-cols > .camp-side { position: sticky; top: 1rem; }
.camp-side { display: grid; gap: .9rem; min-width: 0; }
@media (max-width: 62rem) { .camp-cols { grid-template-columns: 1fr; } .camp-cols > .camp-preview, .camp-cols > .camp-side { position: static; } }
.camp-form { display: grid; gap: .9rem; min-width: 0; }
.camp-form .panel { min-width: 0; }
.title-in { font: 700 1.35rem var(--display); border: 1px solid transparent; background: none; padding: .2rem .35rem; margin-left: -.35rem; width: 100%; max-width: 40rem; }
.title-in:hover, .title-in:focus { border-color: var(--line-2); background: #fff; }
.ro { margin: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--hover); overflow-wrap: anywhere; }
.note.warn { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: .6rem .8rem; margin: 0 0 .8rem; }
.ai-box textarea { width: 100%; }
.row .chip-btn, .chip-btn { font: 600 .78rem var(--body); border: 1px solid var(--line-2); background: #fff; color: var(--fg); border-radius: 99px; padding: .3rem .7rem; }
.row .chip-btn:hover, .chip-btn:hover { border-color: var(--lagoon); color: var(--lagoon); background: #fff; }
.dropzone { display: grid; gap: .25rem; justify-items: center; text-align: center; border: 2px dashed var(--line-2); border-radius: var(--radius-lg);
            padding: 1rem; color: var(--muted); margin-bottom: .8rem; }
.dropzone b { color: var(--fg); }
.dropzone.on, .dropzone:focus { border-color: var(--lagoon); background: var(--lagoon-soft); outline: none; }
.file-link { cursor: pointer; color: var(--lagoon); font-weight: 600; }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.blk { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: .5rem .6rem .6rem; }
.blk.dragging { opacity: .5; }
.blk-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; font-size: .82rem; }
.blk-head .btn.ghost { padding: .2rem .4rem; min-width: 1.8rem; }
.grip { cursor: grab; color: var(--faint); letter-spacing: -.15em; user-select: none; padding: 0 .2rem; }
.blk textarea, .blk input { width: 100%; }
.img-blk { display: flex; gap: .7rem; align-items: flex-start; }
.img-blk > img { width: 6rem; max-height: 6rem; object-fit: cover; border-radius: 8px; flex: none; }
.img-blk .row { margin: .3rem 0 0; }
.img-picker { margin-top: .5rem; display: grid; gap: .4rem; }
.img-picker .bg-tile { padding: 0; cursor: pointer; }
.add-blocks { margin-top: .7rem; }
.camp-preview header { flex-wrap: wrap; }
.envelope { padding: .7rem 1rem; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; font-size: .85rem; min-width: 0; }
.envelope .from, .envelope .subj, .envelope .pre { overflow-wrap: anywhere; }
.envelope .subj { font-weight: 700; font-size: .95rem; }
.frame-wrap { background: #eef0ec; padding: .7rem; display: flex; justify-content: center; }
.frame-wrap iframe { display: block; width: 100%; height: 34rem; border: 0; background: #fff; border-radius: 6px; }
.frame-wrap.mobile iframe { width: 375px; max-width: 100%; height: 40rem; border: 8px solid #1b2524; border-radius: 22px; }
.checklist { list-style: none; margin: 0; display: grid; gap: .45rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; overflow-wrap: anywhere; }
.checklist .mark { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font: 700 .75rem var(--body); }
.checklist .good .mark { background: var(--ok-soft); color: var(--ok); }
.checklist .warn .mark { background: var(--warn-soft); color: var(--warn); }
.checklist .bad .mark { background: #fbe4e2; color: var(--err); }
.return-form { margin-top: .6rem; }
.return-form textarea { width: 100%; }
.timeline { list-style: none; margin: 0; display: grid; gap: .55rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.timeline li { display: grid; gap: .1rem; position: relative; overflow-wrap: anywhere; }
.timeline li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--lagoon); }
.timeline li.pending::before { background: var(--warn); }
.timeline b { font-weight: 600; font-size: .88rem; }
.timeline small { font-size: .75rem; }
.art-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.art-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; display: grid; min-width: 0; }
.art-card > img, .art-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; background: var(--hover); }
.art-ph .camp-thumb { width: 4rem; height: 4rem; font-size: 1.2rem; }
.art-card .b { padding: .7rem; display: grid; gap: .3rem; }
.art-card .b b { overflow-wrap: anywhere; }
.art-card .row { margin: .3rem 0 0; }
.drawer > .in.art-view { width: min(44rem, 100%); }
.art-view .envelope { background: #fff; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }


/* Campañas por WhatsApp (SPEC A9, 022; mockup tabs 2 and 5) */
.wa-block .field { display: grid; gap: .2rem; margin: 0 0 .5rem; }
.wa-block .field input { width: 100%; }
.wa-block .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.wa-block details { margin-top: .6rem; font-size: .86rem; }
.wa-block details ol { padding-left: 1.2rem; display: grid; gap: .35rem; }
.wa-hook { display: grid; gap: .1rem; margin-top: .4rem; }
.wa-rate .field { margin: 0; max-width: 16rem; }
@media (max-width: 40rem) { .wa-block .two { grid-template-columns: 1fr; } }
.channel-pick { display: grid; gap: .3rem; margin-bottom: .6rem; }
.channel-pick .seg { justify-self: start; flex-wrap: wrap; }
.wa-chat { background: #e7ddd3; padding: .8rem; display: grid; gap: .5rem; justify-items: start; }
.wa-from { font-size: .82rem; color: #1d2523; overflow-wrap: anywhere; }
.wa-from .muted { color: #55605d; }
.wa-bubble { background: #fff; color: #1d2523; border-radius: 12px; width: 100%; max-width: 18rem; box-shadow: 0 1px 1px rgba(0,0,0,.12); overflow: hidden; }
.wa-bubble img { display: block; width: 100%; max-height: 12rem; object-fit: cover; }
.wa-img-ph { height: 6rem; display: grid; place-items: center; background: #f1efe9; color: #8a948f; font-size: .8rem; }
.wa-body { padding: .55rem .7rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.4; }
.wa-foot { padding: 0 .7rem .5rem; color: #8a948f; font-size: .75rem; }
.wa-btn { border-top: 1px solid #e4e6e1; padding: .5rem; text-align: center; color: #0d7c66; font-weight: 600; font-size: .88rem; }
.wa-cost { margin-top: .4rem; }
.wa-count { margin: .3rem 0 0; }
.wa-others { margin: .4rem 0 0; padding-left: 1rem; }
.wa-new .field { display: grid; gap: .2rem; }
.wa-new textarea, .wa-new input:not([type=checkbox]) { width: 100%; }
.wa-promos { margin-top: .6rem; }

/* Crear campañas desde Claude o ChatGPT (SPEC A10, 023; mockup tab 6) */
.conn-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1.1rem; margin: .8rem 0; }
.conn-block h3 { margin-top: 0; }
.conn-block h4 { margin: .8rem 0 .3rem; font-size: .9rem; }
.conn-block .field { display: grid; gap: .2rem; margin: 0; }
.conn-block .field input { width: 100%; }
.conn-block .row { align-items: flex-end; }
.conn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: .86rem; }
.conn-steps ol, .conn-how ol { padding-left: 1.2rem; display: grid; gap: .3rem; margin: 0; }
.conn-how { margin-top: .6rem; font-size: .86rem; }
.conn-list li { overflow-wrap: anywhere; }
@media (max-width: 40rem) { .conn-steps { grid-template-columns: 1fr; } }
.connect { max-width: 40rem; }
.connect .connect-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .8rem 0; }
.connect .connect-scope h3 { font-size: .95rem; margin: 0 0 .4rem; }
.connect .field { display: grid; gap: .2rem; margin: .6rem 0; }
@media (max-width: 40rem) { .connect .connect-scope { grid-template-columns: 1fr; } }
.pill.via { background: #eee8f7; color: #5b3f8c; }
.connect .checklist { padding: 0; }

/* Asistente (SPEC A11; mockups "Cursus Asistente", approved 2026-11-15). */
.spark { width: 18px; height: 18px; border-radius: 6px; background: var(--lagoon); display: inline-grid; place-items: center; flex: none; }
.spark .ico { width: 12px; height: 12px; fill: var(--ember); stroke: none; }
.ai-pill { position: fixed; top: 14px; right: 22px; z-index: 30; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem .45rem .65rem;
           border: 1px solid var(--line-2); border-radius: 99px; background: #fff; color: var(--lagoon); font: 600 .85rem var(--body);
           box-shadow: 0 1px 3px rgba(0, 0, 0, .06); cursor: pointer; }
.ai-pill:hover { border-color: var(--lagoon); }
.ai-pill.in-bar { display: none; }
.ai-pill kbd { font: 500 .66rem var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .3rem; margin-left: .15rem; }
.ai-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--lagoon); flex: none; }
.ai-mark .spark { background: none; }
.ai-pane { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; z-index: 40; background: #fff; border-left: 1px solid var(--line);
           box-shadow: -12px 0 30px rgba(13, 40, 40, .08); display: flex; flex-direction: column; }
.ai-pane > header { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.ai-pane > header h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.ai-pane > header small { display: block; font: 500 .72rem var(--body); color: var(--muted); letter-spacing: 0; }
.ai-body { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; background: #fbfaf7; }
.ai-body > * { flex-shrink: 0; margin: 0; }
.b-user { align-self: flex-end; max-width: 85%; background: var(--lagoon); color: #fff; padding: .6rem .8rem; border-radius: 14px 14px 4px 14px; font-size: .9rem;
          white-space: pre-wrap; overflow-wrap: anywhere; }
.b-ai { align-self: flex-start; max-width: 92%; background: #fff; border: 1px solid var(--line); padding: .65rem .85rem; border-radius: 14px 14px 14px 4px;
        font-size: .9rem; overflow-wrap: anywhere; }
.b-ai p { margin: .2rem 0; } .b-ai ul { margin: .3rem 0; padding-left: 1.1rem; }
.b-ai.thinking { color: var(--muted); font-style: italic; }
.ai-tools { align-self: stretch; font: 500 .74rem var(--body); color: var(--muted); display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.ai-tools span { background: var(--lagoon-soft); color: var(--lagoon); border-radius: 99px; padding: .15rem .5rem; }
.ai-prop { align-self: stretch; border: 1px solid var(--ember); border-radius: 12px; background: #fff; overflow: hidden; }
.ai-prop .ph { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: var(--ember-soft); color: var(--ember-ink);
               font: 700 .78rem var(--body); text-transform: uppercase; letter-spacing: .06em; }
.ai-prop .ph .ico { width: 14px; height: 14px; }
.ai-prop dl { margin: 0; padding: .6rem .8rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; font-size: .86rem; }
.ai-prop dt { color: var(--muted); } .ai-prop dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ai-prop .msg { margin: 0 .8rem .6rem; }
.ai-prop .pa, .ai-drafts .pa { display: flex; gap: .5rem; padding: .6rem .8rem; border-top: 1px solid var(--line); }
.ai-prop .pa .btn { flex: 1; }
.ai-prop.done { border-color: var(--ok); } .ai-prop.done .ph { background: var(--ok-soft); color: var(--ok); }
.ai-prop.declined, .ai-prop.expired, .ai-prop.failed { border-color: var(--line-2); }
.ai-prop.declined .ph, .ai-prop.expired .ph, .ai-prop.failed .ph { background: #eceeec; color: var(--muted); }
.ai-foot { border-top: 1px solid var(--line); padding: .75rem 1rem; background: #fff; margin: 0; }
.ai-in { display: flex; gap: .5rem; align-items: flex-end; }
.ai-in textarea { flex: 1; min-height: 2.7rem; height: 2.7rem; resize: none; font: inherit; }
.ai-in .send { width: 2.7rem; height: 2.7rem; border-radius: var(--radius); background: var(--lagoon); border: 0; display: grid; place-items: center; color: #fff; flex: none; padding: 0; }
.ai-in .send:disabled { opacity: .5; }
.ai-in .send .ico { stroke: #fff; }
.ai-meta { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--muted); margin-top: .45rem; }
.ai-meta .link { font-weight: 600; font-size: .74rem; }
.ai-drafts-note { font-size: .82rem; font-weight: 600; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; }
.ai-chips button { border: 1px solid var(--line-2); border-radius: 99px; padding: .3rem .7rem; font: 500 .8rem var(--body); background: #fff; color: var(--fg); cursor: pointer; }
.ai-chips button:hover { border-color: var(--lagoon); color: var(--lagoon); }
.app.with-pane .app-main { padding-right: 460px; }
.ai-card { margin: 0 0 1.2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
           background: linear-gradient(135deg, #fff 0%, #fff 60%, var(--lagoon-soft) 100%); }
.ai-card h3 { margin: 0 0 .2rem; display: flex; align-items: center; gap: .5rem; }
.ai-card > p { margin: 0; color: var(--muted); font-size: .88rem; }
.ai-card .ai-in { margin-top: .7rem; }
.ai-tabs { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin: .4rem 0 1.2rem; overflow-x: auto; }
.ai-tabs a { padding: .55rem 0; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.ai-tabs a.on { color: var(--lagoon); border-bottom-color: var(--lagoon); }
.ai-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ai-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem; }
.ai-box h4, .conn-block h4 { margin: 1rem 0 .5rem; font-size: 1rem; }
.ai-box h4:first-child, .conn-block h4:first-child { margin-top: .2rem; }
.ai-box h4 + * { margin-top: 0; }
.ai-stat { font: 700 1.7rem var(--display); margin: .1rem 0; }
.ai-stat small { font: 500 1rem var(--body); color: var(--muted); }
.ai-bar { height: 8px; background: #eceeea; border-radius: 99px; overflow: hidden; margin: .4rem 0; }
.ai-bar i { display: block; height: 100%; background: var(--lagoon); border-radius: 99px; }
.ai-can, .ai-cant { padding-left: 1.1rem; margin: .2rem 0 .8rem; } .ai-can li, .ai-cant li { margin: .25rem 0; font-size: .88rem; }
.ai-cant { color: var(--muted); }
.ai-limits .row { align-items: flex-end; gap: 1.2rem; }
.ai-limits .field { margin: 0; } .ai-limits input { width: 9rem; }
.ai-settings .note { font-size: .8rem; color: var(--muted); }
.ai-month { width: auto; margin-left: .5rem; padding: .3rem .5rem; font-size: .85rem; }
.table-wrap.flat { border: 0; margin-top: .6rem; }
.ai-levels select { width: auto; padding: .35rem .5rem; font-size: .85rem; }
.ai-drafts .d { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.ai-drafts .d:last-child { border-bottom: 0; }
.ai-drafts .d .what { flex: 1; min-width: 0; } .ai-drafts .d .what b { display: block; } .ai-drafts .d .what small { display: block; color: var(--muted); }
.ai-drafts .pa { border-top: 0; padding: 0; }
@media (max-width: 52rem) {
  .ai-pill { display: none; }
  .ai-pill.in-bar { display: inline-flex; position: static; margin-left: auto; padding: .35rem .65rem .35rem .5rem; font-size: .8rem; box-shadow: none; }
  .ai-pill kbd { display: none; }
  .ai-pane { width: 100%; border-left: 0; }
  .app.with-pane .app-main { padding-right: 0; }
  .ai-grid2 { grid-template-columns: 1fr; }
  .ai-drafts .d { flex-wrap: wrap; }
}
@media print { .ai-pill, .ai-pane { display: none; } }
