/* GRUPO ISET — Prototipos navegables por giro */
:root {
  --p-good: #1B8A58; --p-good-bg: #E3F5EC;
  --p-warn: #9A6A00; --p-warn-bg: #FFF3D6;
  --p-bad: #C0392F; --p-bad-bg: #FDE8E6;
  --p-info: #0157E0; --p-info-bg: #E0ECFE;
  --p-neu: #52627A; --p-neu-bg: #EDF1F6;
  --win-side: #0A1B33; --win-side-fg: #C9D6E8;
}
.proto-sec { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 96px); }

/* Selector de giros */
.giro-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.giro-btn { --gc: var(--brand); display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 6px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; font: 600 .95rem/1.2 var(--f-body); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.giro-btn:hover { border-color: var(--gc); transform: translateY(-1px); }
.giro-btn[aria-selected="true"] { border-color: var(--gc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc) 22%, transparent); }
.giro-ico { width: 40px; height: 40px; flex: none; border-radius: 3px; display: grid; place-items: center; color: var(--gc); background: color-mix(in srgb, var(--gc) 13%, transparent); }
.giro-btn[aria-selected="true"] .giro-ico { background: var(--gc); color: #fff; }
.giro-btn span { min-width: 0; }
@media (max-width: 1000px) { .giro-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .giro-picker { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .giro-btn { flex: 0 0 auto; scroll-snap-align: start; padding: 10px 14px; }
  .giro-ico { width: 34px; height: 34px; }
}

.proto-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 28px; margin-bottom: 18px; }
.proto-head > div { display: grid; gap: 6px; min-width: 0; flex: 1 1 420px; }
.proto-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.proto-head p { color: var(--muted); max-width: 70ch; }
.proto-head ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.proto-head li { font-size: .82rem; padding: 5px 11px; border-radius: 3px; background: var(--surface-2); color: var(--ink); font-weight: 600; }
.proto-head .hint { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }

/* ---------- Ventana de aplicación ---------- */
.app-win { --gc: var(--brand); position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -30px rgba(13, 27, 46, .45); font-size: 14px; line-height: 1.45; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; }
.win-bar i:nth-child(1) { background: #FF5F57; } .win-bar i:nth-child(2) { background: #FEBC2E; } .win-bar i:nth-child(3) { background: #28C840; }
.win-title { margin-left: 10px; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.win-demo { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .12em; padding: 3px 8px; border-radius: 5px; background: var(--gc); color: #fff; flex: none; }
.win-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 600px; }
.win-side { background: var(--win-side); color: var(--win-side-fg); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.win-app { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(159,179,206,.16); color: #fff; }
.win-app .giro-ico { width: 34px; height: 34px; background: var(--gc); color: #fff; }
.win-app b { display: block; font-size: .92rem; line-height: 1.15; }
.win-app small { font-size: .7rem; color: var(--win-side-fg); opacity: .8; }
.win-mod { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 4px; border: 0; background: none; color: inherit; font: 600 .86rem/1.2 var(--f-body); text-align: left; cursor: pointer; }
.win-mod:hover { background: rgba(255,255,255,.06); color: #fff; }
.win-mod[aria-current="true"] { background: color-mix(in srgb, var(--gc) 32%, transparent); color: #fff; }
.win-mod svg { flex: none; opacity: .9; }
.win-side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(159,179,206,.16); font-size: .74rem; opacity: .8; }
.win-main { min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.win-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.win-top h3 { font-size: 1.2rem; font-weight: 700; }
.win-user { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.win-user i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .74rem; background: var(--gc); color: #fff; }
.win-content { padding: 18px 20px 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }

@media (max-width: 820px) {
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .win-side { flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; }
  .win-app, .win-side-foot { display: none; }
  .win-mod { width: auto; flex: none; white-space: nowrap; padding: 8px 12px; }
  .win-content { padding: 14px 12px 20px; }
  .win-top { padding: 12px; }
}

/* Piezas comunes */
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; min-width: 0; }
.p-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; font-family: var(--f-body); }
.p-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-grow { flex: 1 1 200px; }
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .84rem/1 var(--f-body); padding: 9px 13px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.p-btn:hover { border-color: var(--gc); color: var(--gc); }
.p-btn.pri { background: var(--gc); border-color: var(--gc); color: #fff; }
.p-btn.pri:hover { filter: brightness(1.08); color: #fff; }
.p-btn.sm { padding: 6px 9px; font-size: .76rem; }
.p-btn[disabled] { opacity: .45; cursor: not-allowed; }
.p-in { font: inherit; font-size: .88rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; width: 100%; min-width: 0; }
.p-in:focus { outline: none; border-color: var(--gc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc) 20%, transparent); }
.p-lbl { display: grid; gap: 4px; font-size: .76rem; font-weight: 700; color: var(--muted); min-width: 0; }
.pchip { font-family: var(--f-body); text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; white-space: nowrap; color: var(--p-neu); background: var(--p-neu-bg); }
.pchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-good { color: var(--p-good); background: var(--p-good-bg); } .t-warn { color: var(--p-warn); background: var(--p-warn-bg); }
.t-bad { color: var(--p-bad); background: var(--p-bad-bg); } .t-info { color: var(--p-info); background: var(--p-info-bg); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* Tablero */
.p-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.p-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; display: grid; gap: 2px; position: relative; overflow: hidden; }
.p-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gc); }
.p-kpi span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.p-kpi strong { font-family: var(--f-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.p-kpi small { font-size: .74rem; color: var(--muted); }
.p-dash { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.p-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 180px; align-items: end; padding-top: 18px; border-bottom: 1px solid var(--line); }
.p-bar { display: grid; justify-items: center; align-items: end; height: 100%; position: relative; }
.p-bar i { width: 100%; max-width: 34px; height: var(--h); background: var(--gc); border-radius: 4px 4px 0 0; opacity: .85; transition: opacity .15s; }
.p-bar:last-child i { opacity: 1; }
.p-bar b { position: absolute; top: calc(100% - var(--h) - 18px); font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.p-bar-l { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; font-size: .72rem; color: var(--muted); text-align: center; margin-top: 6px; }
@media (max-width: 900px) { .p-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-dash { grid-template-columns: 1fr; } }

/* Tablas */
.p-tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.p-tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
.p-tbl th { text-align: left; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.p-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.p-tbl tr:last-child td { border-bottom: 0; }
.p-tbl tbody tr.click { cursor: pointer; }
.p-tbl tbody tr.click:hover td { background: color-mix(in srgb, var(--gc) 6%, transparent); }
.p-tbl td.r, .p-tbl th.r { text-align: right; }
.p-tbl .low { color: var(--p-bad); font-weight: 700; }
.p-tbl-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); padding: 2px 4px; }
.p-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.p-filter button { font: 600 .76rem/1 var(--f-body); padding: 7px 11px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.p-filter button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.p-filter b { font-weight: 600; opacity: .6; margin-left: 3px; }

/* Punto de venta */
.p-pos { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.p-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.p-prod { display: grid; gap: 4px; text-align: left; padding: 11px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-height: 82px; align-content: space-between; }
.p-prod:hover { border-color: var(--gc); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--gc) 60%, transparent); }
.p-prod span { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.p-prod b { font-size: .92rem; color: var(--gc); font-variant-numeric: tabular-nums; }
.p-prod small { font-size: .68rem; color: var(--muted); }
.p-cart { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: grid; }
.p-cart-h { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.p-cart-h b { font-size: .95rem; }
.p-cart ul { list-style: none; margin: 0; padding: 6px 14px; max-height: 300px; overflow: auto; }
.p-cart li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .82rem; }
.p-cart li:last-child { border-bottom: 0; }
.p-qty { display: inline-flex; align-items: center; gap: 6px; }
.p-qty button { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700; line-height: 1; }
.p-cart .empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: .84rem; }
.p-tot { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .84rem; }
.p-tot div { display: flex; justify-content: space-between; }
.p-tot .big { font-size: 1.2rem; font-weight: 800; font-family: var(--f-display); margin-top: 4px; }
.p-cart .p-btn.pri { margin: 0 14px 14px; padding: 13px; font-size: .95rem; }
@media (max-width: 980px) { .p-pos { grid-template-columns: 1fr; } .p-cart { position: static; order: -1; } .p-cart ul { max-height: 180px; } }

/* Agenda */
.p-ag-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.p-ag { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(150px, 1fr)); grid-template-rows: 40px repeat(var(--rows), 34px); position: relative; min-width: calc(58px + var(--cols) * 150px); }
.p-ag-h { grid-row: 1; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.p-ag-t { grid-column: 1; font-size: .7rem; color: var(--muted); padding: 2px 6px 0 0; text-align: right; font-variant-numeric: tabular-nums; }
.p-ag-c { border: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.p-ag-c.half { border-top-style: dashed; border-top-color: color-mix(in srgb, var(--line) 60%, transparent); }
.p-ag-c:hover { background: color-mix(in srgb, var(--gc) 8%, transparent); }
.p-ag-c:hover::after { content: "+ Agendar"; font-size: .68rem; color: var(--gc); font-weight: 700; }
.p-cita { margin: 2px 4px; border-radius: 4px; padding: 5px 8px; border: 0; border-left: 4px solid var(--gc); background: color-mix(in srgb, var(--gc) 14%, var(--surface)); color: var(--ink); text-align: left; font: inherit; cursor: pointer; overflow: hidden; z-index: 1; display: grid; align-content: start; gap: 1px; }
.p-cita.short { display: flex; align-items: center; gap: 8px; padding-block: 2px; }
.p-cita.short span { flex: none; }
.p-cita b { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-cita span { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-cita.e-Atendida, .p-cita.e-Concluida, .p-cita.e-Concluido { border-left-color: var(--p-good); background: var(--p-good-bg); }
.p-cita.e-Cancelada, .p-cita.e-No-asistió { border-left-color: var(--p-bad); background: var(--p-bad-bg); opacity: .75; }
.p-cita.e-En-sala, .p-cita.e-En-servicio, .p-cita.e-En-curso { border-left-color: var(--p-warn); background: var(--p-warn-bg); }
.p-ag-legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* Kanban */
.p-kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.p-col { background: var(--surface-2); border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.p-col-h { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 2px 4px; }
.p-col-h b { background: var(--surface); color: var(--ink); border-radius: 3px; padding: 1px 8px; font-size: .74rem; }
.p-kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px; display: grid; gap: 6px; box-shadow: 0 2px 6px -4px rgba(13,27,46,.3); }
.p-kcard.new { animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.94); box-shadow: 0 0 0 3px var(--gc); } }
.p-kcard b { font-size: .86rem; line-height: 1.25; }
.p-kcard p { font-size: .76rem; color: var(--muted); }
.p-kcard .meta { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: .74rem; font-weight: 700; }
.p-kcard .acts { display: flex; gap: 6px; justify-content: flex-end; }

/* Ficha / expediente */
.p-ficha-h { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.p-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; background: var(--gc); color: #fff; flex: none; }
.p-ficha-h h4 { font-size: 1.15rem; margin: 0; font-family: var(--f-display); }
.p-ficha-h .p-row { gap: 6px; margin-top: 4px; }
.p-sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-sec-grid .full { grid-column: 1 / -1; }
.p-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.p-fields .w2 { grid-column: span 2; }
textarea.p-in { min-height: 70px; resize: vertical; }
.p-grad input { text-align: center; }
.p-grad td:first-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .p-sec-grid { grid-template-columns: 1fr; } }

/* Odontograma */
.p-odo { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.p-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tool { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem/1 var(--f-body); padding: 7px 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.p-tool[aria-pressed="true"] { border-color: var(--gc); box-shadow: inset 0 0 0 1px var(--gc); background: color-mix(in srgb, var(--gc) 10%, var(--surface)); }
.p-tool i { width: 12px; height: 12px; border-radius: 3px; }
.p-arch { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.p-arch + .p-arch { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); }
.p-tooth { display: grid; justify-items: center; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; min-width: 0; }
.p-tooth svg { width: 100%; max-width: 38px; height: auto; }
.p-tooth span { font-size: .64rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-tooth:hover svg { transform: translateY(-2px); }
.p-arch .mid { border-right: 2px solid var(--line); }
.p-budget ul { list-style: none; margin: 0; padding: 0; display: grid; }
.p-budget li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .82rem; }
.p-budget .tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; padding-top: 10px; font-family: var(--f-display); }
@media (max-width: 980px) { .p-odo { grid-template-columns: 1fr; } .p-arch { grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 10px; } .p-arch .mid { border-right: 0; } }

/* Mesas */
.p-mesas { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.p-plano { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; background: var(--surface-2); border-radius: 4px; padding: 14px; }
.p-mesa { aspect-ratio: 1; max-width: 100%; border-radius: 6px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-content: center; justify-items: center; gap: 2px; cursor: pointer; font: inherit; }
.p-mesa b { font-family: var(--f-display); font-size: 1.4rem; }
.p-mesa span { font-size: .7rem; color: var(--muted); }
.p-mesa.ocupada { border-color: var(--p-warn); background: var(--p-warn-bg); }
.p-mesa.cuenta { border-color: var(--p-bad); background: var(--p-bad-bg); }
.p-mesa.libre { border-color: var(--p-good); }
.p-mesa[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gc); }
.p-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 220px; overflow: auto; }
.p-menu button { text-align: left; font: 600 .76rem/1.2 var(--f-body); padding: 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; gap: 2px; }
.p-menu button:hover { border-color: var(--gc); }
.p-menu small { color: var(--gc); font-weight: 700; }
@media (max-width: 980px) { .p-mesas { grid-template-columns: 1fr; } }

/* Ventanas modales dentro del sistema */
.p-layer { position: absolute; inset: 0; z-index: 30; background: rgba(8, 18, 32, .5); padding: 0 16px; overflow: hidden; backdrop-filter: blur(2px); }
.p-modal { width: 100%; max-width: 480px; margin-inline: auto; max-height: min(82vh, calc(100% - 24px)); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); display: grid; animation: pop .25s ease; }
.p-modal-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.p-modal-h b { font-size: 1rem; }
.p-modal-h button { border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 2px 6px; }
.p-modal-b { padding: 16px; display: grid; gap: 12px; }
.p-modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.p-doc { font-family: var(--f-mono); font-size: .78rem; background: var(--surface-2); border-radius: 4px; padding: 14px; display: grid; gap: 4px; }
.p-doc .c { text-align: center; }
.p-doc .sep { border-top: 1px dashed var(--muted); margin: 6px 0; opacity: .6; }
.p-doc .ln { display: flex; justify-content: space-between; gap: 10px; }
.p-doc .tot { font-weight: 700; font-size: .9rem; }
.p-toast { position: absolute; right: 16px; bottom: 16px; z-index: 40; background: var(--ink); color: var(--surface); padding: 11px 14px; border-radius: 4px; font-size: .84rem; font-weight: 600; box-shadow: 0 12px 24px -12px rgba(0,0,0,.6); animation: pop .25s ease; max-width: calc(100% - 32px); }
.p-err { color: var(--p-bad); font-size: .78rem; font-weight: 600; }

.proto-cta { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 20px 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.proto-cta > div { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.proto-cta p { color: var(--muted); font-size: .95rem; }
