:root {
  color-scheme: dark;
  --ink: #faf6ef;
  --muted: #d3c7b5;
  --forest: #efdbb7;
  --forest-dark: #22201b;
  --mint: #423a2e;
  --surface: #332f29;
  --page: #282520;
  --rule: #62594a;
  --focus: #edd4a7;
  --danger: #ffc0ad;
  --arena: #e5d1ad;
  --tinta-arena: #30291f;
  --cabecera: #383026;
  --control: color-mix(in srgb, var(--muted) 55%, var(--surface));
  --activo: color-mix(in srgb, var(--arena) 18%, var(--surface));
  --suelo: color-mix(in srgb, var(--mint) 68%, var(--surface));
  --borde-plano: color-mix(in srgb, var(--forest) 64%, var(--suelo));
  --shadow: 0 2px 7px rgb(0 0 0 / 4%);
  font: 100%/1.45 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}
:root[data-tema="lino"] {
  color-scheme: light;
  --ink: #342c25;
  --muted: #68594c;
  --forest: #854633;
  --forest-dark: #382e28;
  --mint: #f3e7d9;
  --surface: #fffdf9;
  --page: #f7f3eb;
  --rule: #d7c8b7;
  --focus: #99452b;
  --danger: #933c31;
  --arena: #894a36;
  --tinta-arena: #fffaf4;
  --cabecera: #eee2d3;
}
:root[data-tema="salvia"] {
  color-scheme: light;
  --ink: #223b35;
  --muted: #50665d;
  --forest: #2a6456;
  --forest-dark: #203d35;
  --mint: #e0eee4;
  --surface: #fbfdf8;
  --page: #f0f5ef;
  --rule: #c5d5c9;
  --focus: #196b58;
  --danger: #963f37;
  --arena: #316958;
  --tinta-arena: #f6fff8;
  --cabecera: #ddebe0;
}
:root[data-tema="tinta"] {
  --ink: #eaf3fa;
  --muted: #b0c1d0;
  --forest: #abd8f0;
  --forest-dark: #101a28;
  --mint: #2a4053;
  --surface: #1e2d3e;
  --page: #162231;
  --rule: #485e72;
  --focus: #b4e6ff;
  --danger: #ffb6ad;
  --arena: #9dcfe7;
  --tinta-arena: #112633;
  --cabecera: #243648;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: var(--forest); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
.icon { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.shell { display: grid; grid-template-columns: 196px minmax(0,1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; z-index: 2;
  display: flex; flex-direction: column; gap: 36px; padding: 28px 14px 18px;
  color: #fff; background: var(--forest-dark);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; padding: 2px 8px; color: #fbf3e8; text-decoration: none; font: 500 1.9rem/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.06em; }
.brand-marca { position:relative; flex:none; }
.brand-marca img { display:block; }
#pendientes-marca:not([hidden]) { position:absolute; top:0; left:50%; transform:translate(-50%,-45%); display:grid; place-items:center; min-width:1.35rem; padding:.12rem .35rem; border:1px solid var(--forest-dark); border-radius:1rem; background:var(--arena); color:var(--tinta-arena); font:700 .75rem/1.1 system-ui,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:normal; text-decoration:none; }
.monogram {
  display: inline-grid; place-items: center; flex: none; width: 33px; height: 35px;
  background: #eee; color: var(--forest-dark); border-radius: 10px 10px 3px 3px;
  font: italic 600 1.65rem/1 Georgia,serif; letter-spacing: -.07em;
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: .75rem; min-height: 43px; padding: 8px 13px;
  color: #ddd; border: 0; border-radius: 7px; background: transparent;
  text-decoration: none; text-align: left; font-weight: 550; font-size: .94rem;
}
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { background: color-mix(in srgb, var(--forest-dark) 78%, white); color: white; }
.nav-item.active, .nav-item[aria-current="page"], .nav-item[aria-selected="true"] { background: var(--arena); color: var(--tinta-arena); }
.sidebar :focus-visible { outline-color: #fff; }
#sidebar-toggle { display:inline-flex; gap:.55rem; align-items:center; justify-content:center; min-height:44px; padding:.35rem; color:#ddd; border:1px solid #555; border-radius:7px; background:transparent; font-size:.85rem; }
#sidebar-toggle:hover { background:color-mix(in srgb, var(--forest-dark) 78%, white); color:white; }
.menu-plegado #sidebar-toggle svg { transform:scaleX(-1); }
@media(min-width:761px){
  .shell.menu-plegado { grid-template-columns:64px minmax(0,1fr); }
  .menu-plegado .sidebar { align-items:center; padding-inline:7px; }
  .menu-plegado .brand { padding-inline:0; }
  .menu-plegado :is(.brand span,.nav-item span,.side-foot,#sidebar-toggle span) { display:none; }
  .menu-plegado .nav-item { width:46px; justify-content:center; padding-inline:0; }
  .menu-plegado #sidebar-toggle { width:44px; margin-top:auto; }
  .ipad .menu-plegado #sidebar-toggle::before { content:""; position:absolute; inset:0; z-index:1; }
}
.side-foot { margin-top: auto; border-top: 1px solid #ffffff40; padding: .9rem .5rem 0; color: #bbb; font-size: .83rem; }
.workspace { min-width: 0; }
.topbar, .board-head, .panel-head, .top-actions, .zone-control, .row-actions, .dialog-head, .dialog-actions {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.topbar, .board-head, .panel-head, .dialog-head { justify-content: space-between; }
.topbar { padding: .3rem clamp(16px,2.7vw,44px); border-bottom: 1px solid var(--rule); background: var(--cabecera); }
.page-heading { display:flex; align-items:center; gap:clamp(.45rem,1vw,.85rem); min-width:0; max-width:100%; }
.page-heading .eyebrow { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar h1 { flex:none; padding-inline-start:clamp(.45rem,1vw,.85rem); border-inline-start:1px solid var(--control); font:500 clamp(1.12rem,1.8vw,1.5rem)/1.1 Georgia,serif; letter-spacing:-.03em; }
.topbar .top-actions { max-width:100%; gap:.35rem; margin-inline-start:auto; }
.topbar :is(.primary,.secondary,.ghost) { min-height:32px; padding:.3rem .6rem; font-size:.84rem; }
#themes { display:inline-flex; align-items:center; }
#themes button { display:grid; place-items:center; width:28px; height:32px; padding:0; border:0; border-radius:6px; background:transparent; }
#themes button::before { content:""; width:16px; height:16px; border:1px solid var(--control); border-radius:50%; background:var(--muestra); }
#themes [data-tema="lino"] { --muestra:#ecd2b2; }
#themes [data-tema="salvia"] { --muestra:#a8c9af; }
#themes [data-tema="bronce"] { --muestra:#544335; }
#themes [data-tema="tinta"] { --muestra:#294663; }
#themes button[aria-pressed="true"]::before { outline:2px solid var(--ink); outline-offset:2px; }
#themes button:hover { background:var(--activo); }
.eyebrow, .kicker { font-size: .75rem; color: var(--muted); font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.subline, .muted, .row-meta { color: var(--muted); }
.subline, .row-meta { margin: .18rem 0 0; font-size: .875rem; }
#content { max-width: 1800px; margin: 0 auto; padding: 1.25rem clamp(16px,2.7vw,44px) 2rem; }
.board-head + * { margin-top: 1rem; }
.top-actions, .zone-control, .row-actions { gap: .45rem; }
.segments { display: inline-flex; align-items: stretch; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 9px; background: var(--page); }
.segment {
  min-height: 34px; border: 0; border-radius: 6px; padding: .33rem .75rem;
  background: transparent; color: var(--muted); font-size: .9rem; font-weight: 550;
}
.segment:hover { background: var(--mint); }
.segment.active, .segment[aria-pressed="true"], .segment[aria-selected="true"] { color: var(--tinta-arena); background: var(--arena); box-shadow: 0 1px 4px rgb(0 0 0 / 14%); }
.primary, .secondary, .ghost, .danger, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px;
  border: 1px solid transparent; border-radius: 8px; padding: .48rem .85rem;
  font-size: .925rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
}
.primary { background: var(--arena); border-color: var(--arena); color:var(--tinta-arena); }
.primary:hover { background:color-mix(in srgb, var(--arena) 90%, var(--ink)); }
.secondary, .icon-btn { background: var(--surface); border-color: var(--control); color: var(--forest); }
.secondary:hover, .icon-btn:hover { background: var(--mint); }
.ghost { background: transparent; color: var(--forest); }
.ghost:hover { background: var(--mint); }
.danger { color: var(--danger); border-color: var(--control); background: var(--surface); }
.danger:hover { background: var(--mint); }
.icon-btn { min-width: 40px; padding: .46rem; }
.stats { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-bottom: .4rem; border: 1px solid var(--rule); border-radius: 11px; background: var(--surface); }
.stat { position: relative; display: flex; align-items: baseline; gap: .3rem; padding: .35rem .7rem; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--rule); }
.stat strong { font-size: 1.35rem; font-weight: 630; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(min(55%,25rem),1fr) minmax(0,1.35fr); gap: clamp(12px,1.2vw,22px); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); border-radius: 12px; min-width: 0; padding: 1rem; }
.panel-head { gap: .5rem; margin: 0 0 .9rem; }
.board-head { margin-bottom: .7rem; }
.panel h2, .board-head h2, .dialog-head h2, .details h2 { font-weight: 620; font-size: 1.16rem; letter-spacing: -.025em; line-height: 1.24; }
.list { display: grid; min-width: 0; }
.row {
  display: flex; gap: .65rem; align-items: center; width: 100%; padding: .75rem .55rem;
  border: 0; border-bottom: 1px solid var(--rule); color: inherit; background: transparent; text-align: left;
}
.row:last-child { border-bottom-color: transparent; }
button.row:hover, a.row:hover { background: var(--mint); }
.row.active, .row[aria-pressed="true"], .row[aria-selected="true"] { background: var(--activo); box-shadow: inset 3px 0 var(--muted); }
.row-main { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.row-main strong { font-size: .96rem; font-weight: 620; }
.row-main > .row-meta { display: block; }
.time { font-weight: 610; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .92rem; }
:root { --tinta-estado:#10212c; }
[data-status="confirmed"] { --color-estado:#72cb86; }
[data-status="arrived"] { --color-estado:#a6ceff; }
[data-status="seated"] { --color-estado:#23cbd9; }
:is([data-status="free"],[data-status="finished"],[data-status="cancelled"]) { --color-estado:#c5c8cd; }
[data-status="noshow"] { --color-estado:#ff8080; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 6px; padding: .18rem .46rem; background: var(--mint); color: var(--ink);
  font-size: .78rem; font-weight: 600; line-height: 1.35;
}
.pill:is([data-status="confirmed"],[data-status="arrived"],[data-status="seated"],[data-status="finished"],[data-status="cancelled"],[data-status="noshow"]) { background:var(--color-estado); color:var(--tinta-estado); }
.pill[data-status="waiting"] { background: var(--activo); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem; font-size: .83rem; color: var(--muted); }
.details { padding: .9rem 0; }
.details p + p { margin-top: .3rem; }
.details .row-actions { margin-top: .8rem; }
.empty { padding: 1.75rem .7rem; text-align: center; color: var(--muted); }
.cards { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill,minmax(min(100%,225px),1fr)); }
.customer-card {
  min-width: 0; border: 1px solid var(--rule); border-radius: 10px; padding: .9rem 1rem;
  text-align: left; color: var(--ink); background: var(--surface);
}
button.customer-card:hover { border-color: var(--control); background: var(--mint); }
.customer-card strong, .customer-card h3 { font-size: 1.02rem; }
.customer-card .muted { font-size: .88rem; }
.notice { padding: .65rem .85rem; border-radius: 7px; background: var(--mint); color: var(--ink); font-size: .91rem; }
label { display: grid; gap: .32rem; color: var(--ink); font-size: .9rem; font-weight: 550; }
:where(input,select,textarea):not([type=radio],[type=checkbox]) {
  min-width: 0; max-width: 100%; min-height: 40px; padding: .45rem .7rem; border: 1px solid var(--control); border-radius: 7px;
  background-color: var(--page); color: var(--ink); font-weight: 400;
}
select { padding-right: 1.65rem; }
textarea { min-height: 72px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--forest); }
.searchbox { display: flex; align-items: center; gap: .5rem; padding: 0 .6rem; min-width: 0; max-width: 100%; border-radius: 7px; border: 1px solid var(--control); background: var(--surface); color: var(--muted); }
.searchbox input { width: 100%; border: 0; background: transparent; padding: .45rem 0; }
.searchbox:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.searchbox input:focus { outline: 0; }
input.searchbox { display: inline-block; padding: .45rem .7rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem 1rem; }
.span-all { grid-column: 1 / -1; }
.form-grid label > :is(input,select,textarea):not([type=radio],[type=checkbox]) { width: 100%; }
dialog {
  width: min(590px,calc(100vw - 32px)); max-width: none; max-height: min(88vh,800px); max-height: min(88dvh,800px); padding: 0;
  border: 1px solid var(--rule); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 18px 80px rgb(0 0 0 / 25%);
}
dialog::backdrop { background: rgb(0 0 0 / 70%); }
.dialog-head, .dialog-actions { padding: .85rem 1.1rem; background: var(--surface); }
.dialog-head { border-bottom: 1px solid var(--rule); }
.dialog-head h2 { font-size: 1.3rem; }
.dialog-body { padding: 1.1rem; }
.dialog-actions { justify-content: flex-end; border-top: 1px solid var(--rule); }
.dialog-actions .danger { margin-right: auto; }
#toast {
  position: fixed; bottom: max(1rem,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 10;
  padding: .68rem 1rem; border-radius: 9px; max-width: calc(100vw - 24px); background: var(--forest-dark); color: #fff; box-shadow: 0 4px 14px rgb(0 0 0 / 20%);
  font-size: .92rem;
}
#toast:empty { display: none; }
.mobile-only { display: none !important; }
@media (min-width: 761px) and (max-width: 1080px) {
  .shell { grid-template-columns: 150px minmax(0,1fr); }
  .sidebar { padding-inline: 8px; }
  .brand { font-size: 1.65rem; }
  .nav-item { gap: .5rem; padding-inline: .6rem; }
  .split { gap: 10px; }
  .panel { padding: .72rem; }
  .row { gap: .4rem; flex-wrap: wrap; padding-inline: .35rem; }
  .row-main { min-width: 80px; }
  #content { padding-inline: 14px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px; height:auto; padding:10px 12px 7px; overflow:visible; }
  .sidebar .brand { grid-area:1/1; }
  #sidebar-toggle { grid-area:1/2; padding-inline:.65rem; }
  .sidebar .nav { grid-area:2/1/3/-1; }
  .menu-plegado .sidebar .nav { display:none; }
  .brand { gap: .45rem; padding: 0 .15rem 7px; font-size: 1.45rem; }
  .monogram { width: 25px; height: 26px; border-radius: 6px 6px 2px 2px; font-size: 1.25rem; }
  .nav { flex-direction: row; gap: .15rem; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--control) transparent; padding: 2px 1px; }
  .nav-item { justify-content: center; flex: none; min-height: 40px; padding: .42rem .65rem; gap: .35rem; font-size: .88rem; }
  .nav-item .icon { width: 16px; height: 16px; }
  .side-foot { display: none; }
  .topbar { padding: .25rem 12px; gap: .12rem .6rem; }
  .top-actions { flex-wrap: wrap; }
  #content { padding: .8rem 12px 1.5rem; }
  .stat { padding: .3rem .5rem; }
  .stat strong { font-size: 1.15rem; }
  .stat span { font-size: .78rem; }
  .split { display: block; }
  .split .table-pane, .split.show-plan .list-pane { display: none; }
  .split.show-plan .table-pane { display: block; }
  .mobile-only { display: inline-flex !important; }
  .panel { padding: .8rem; }
  dialog { width: min(590px,calc(100vw - 18px)); max-height: 92vh; max-height: 92dvh; }
  .dialog-head, .dialog-body, .dialog-actions { padding: .85rem; }
  input, select, textarea { font-size: 1rem; }
}
@media (max-width: 455px) {
  .form-grid { grid-template-columns: minmax(0,1fr); gap: .65rem; }
  .form-grid .span-all { grid-column: 1; }
  .panel-head, .row-actions { gap: .4rem; }
}
@media (pointer: coarse) {
  .primary, .secondary, .ghost, .danger, .icon-btn, .nav-item, .segment { min-height: 44px; }
  .icon-btn { min-width: 44px; }
}

#account { display:flex; gap:.3rem; align-items:center; font-size:.9rem; }
#session-name { max-width:12rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.password-field { display:grid; gap:.3rem; }
.restaurant-week,.restaurant-choice { display:grid; gap:.7rem; }
.restaurant-week fieldset,.dialog-body fieldset { min-width:0; margin:0; padding:.65rem; border:1px solid var(--rule); border-radius:8px; }
.restaurant-week legend { font-weight:650; }
.restaurant-service { display:grid; grid-template-columns:minmax(5.5rem,1fr) 2fr; gap:.5rem; align-items:end; margin-bottom:.35rem; }
.restaurant-times { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
.restaurant-service select { width:100%; min-width:0; }
.restaurant-choice button { justify-self:start; }
.language-field { display:grid; gap:.35rem; min-width:0; }
.language-field select { min-width:0; }
.language-field small:empty { display:none; }
label.account-check { display:flex; align-items:center; gap:.45rem; align-self:center; }
.account-check input { width:1.1rem; height:1.1rem; min-height:0; margin:0; }
.access-panel { max-width:35rem; margin:2rem auto; }
.access-panel form { display:grid; gap:1rem; margin-top:1rem; }
.access-panel code { overflow-wrap:anywhere; }
.sms-panel { min-height:12rem; }
.nav-item[data-page="buzon"] { position:relative; }
.correo-contador { margin-left:auto; border-radius:1rem; padding:.04rem .42rem; min-width:1.4rem; text-align:center; font-size:.77rem; color:var(--tinta-arena); background:var(--arena); font-variant-numeric:tabular-nums; }
.nav-item.active .correo-contador { color:white; background:var(--forest-dark); }
@media(min-width:761px){.menu-plegado .correo-contador { position:absolute; top:-2px; right:-3px; }}
.correo-panel [data-direccion],.correo-panel [data-aviso],.correo-detalle small { color:var(--muted); font-size:.9rem; }
.correo-panel [data-aviso]:not(:empty) { margin:1.25rem 0; }
.correo-fila { display:grid; grid-template-columns:10px minmax(0,1fr) auto; align-items:center; gap:.75rem; width:100%; min-height:65px; padding:.65rem; border:0; border-top:1px solid var(--rule); background:transparent; color:inherit; text-align:left; }
.correo-fila:hover { background:var(--mint); }
.correo-fila>span { display:grid; min-width:0; }
.correo-fila>span>* { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.correo-fila small,.correo-fila[data-leido="true"] { color:var(--muted); }
.correo-fila[data-leido="true"] strong { font-weight:500; }
.correo-fila[data-leido="false"] .correo-punto { width:8px; height:8px; border-radius:50%; background:var(--arena); }
.correo-panel [data-paginador] { justify-content:flex-end; margin-top:.8rem; }
.correo-config,.correo-config fieldset,.correo-detalle,.correo-detalle form { display:grid; gap:.85rem; }
.correo-detalle,.correo-config { overflow-wrap:anywhere; }
.correo-texto { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; }
.correo-detalle article,.correo-detalle form { border-top:1px solid var(--rule); padding-top:1rem; }
.correo-detalle small { display:block; }
@media(max-width:550px){.correo-fila { grid-template-columns:8px minmax(0,1fr); gap:.2rem .55rem; }.correo-fila small { grid-column:2; }}
.csv-download { display:inline-flex; align-items:center; text-decoration:none; }
#csv-result:not(:empty) { display:block; margin-top:.5rem; }
.visit-frequency { display:grid; gap:.2rem; padding:.75rem 1rem; border-radius:.5rem; background:var(--mint); }
.visit-frequency span { color:var(--muted); font-size:.85rem; }
.history-scroll { overflow-x:auto; }
.visit-history { width:100%; border-collapse:collapse; text-align:left; font-size:.9rem; }
.visit-history td,.visit-history th { padding:.55rem .4rem; border-bottom:1px solid var(--rule); }
.visit-history small { display:block; color:var(--muted); }
.history-link { color:var(--forest); text-decoration:underline; background:none; border:0; padding:0; text-align:left; }
@media(max-width:600px){
    .page-heading .eyebrow { font-size:.68rem; letter-spacing:.055em; }
    #account { display:contents; }
    #session-name { max-width:7rem; }
    .panel-head:has(#add-client){align-items:flex-start;flex-direction:column;gap:.65rem}
}
dialog:has(.schedule-table) { width:min(940px,calc(100vw - 20px)); }
.schedule-scroll { min-width:0; overflow-x:auto; }
.schedule-table { width:100%; border-collapse:collapse; text-align:left; }
.schedule-table th,.schedule-table td { padding:.55rem .35rem; border-bottom:1px solid var(--rule); vertical-align:middle; }
.schedule-table th { color:var(--arena); font-size:.86rem; }
.schedule-days,.schedule-times { display:flex; align-items:center; gap:.2rem; }
.schedule-days { flex-wrap:wrap; max-width:13rem; }
.schedule-days button { min-width:1.9rem; padding:.25rem; border:1px solid var(--rule); color:var(--ink); }
.schedule-table button[aria-pressed=true] { background:var(--arena); color:var(--tinta-arena); opacity:1; }
.schedule-times { margin-top:.3rem; }
.schedule-times select { padding-inline:.25rem; min-width:4.7rem; }
.add-schedule { justify-self:start; }
@media(max-width:720px){
  .schedule-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .schedule-table tbody { display:grid; gap:.6rem; }
  .schedule-table tr { display:grid; grid-template-columns:1fr auto; gap:.4rem; border:1px solid var(--rule); border-radius:8px; padding:.5rem; }
  .schedule-table td { border:0; padding:0; }
  .schedule-days { max-width:none; }
  .schedule-table [data-turn] { grid-column:1; }
  .schedule-table td:last-child { grid-column:2; grid-row:3; align-self:end; }
}
.templates-panel { max-width:55rem; }
.templates-panel .list { margin-bottom:.9rem; }
.templates-panel .row-meta { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.template-form { display:grid; gap:1rem; }
.template-form :is(label,input,select,textarea) { min-width:0; width:100%; }
.template-form legend { padding-inline:.25rem; }
.template-preview { padding:.85rem 1rem; border-inline-start:3px solid var(--arena); background:var(--mint); border-radius:5px; }
.template-preview h3 { margin:0 0 .4rem; font-size:.86rem; color:var(--muted); }
.template-preview p,.template-preview strong { white-space:pre-wrap; overflow-wrap:anywhere; }
.template-preview:has([data-mensaje]:empty):not(:has([data-asunto]:not(:empty))) { display:none; }

.login-logo { display:none; }
html.acceso-ios .shell { display:block; }
html.acceso-ios .sidebar { display:none; }
html.acceso-ios body { font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif; }
html.acceso-ios .workspace { min-height:100svh; display:flex; flex-direction:column; justify-content:center; padding:clamp(18px,5vh,52px) 20px; background:var(--page); }
html.acceso-ios .topbar { display:flex; flex-direction:column; justify-content:center; gap:12px; padding:0; border:0; background:transparent; }
html.acceso-ios .top-actions { display:contents; }
html.acceso-ios .page-heading { display:grid; justify-items:center; max-width:100%; gap:10px; }
html.acceso-ios .login-logo { display:block; border-radius:18px; box-shadow:var(--shadow); }
html.acceso-ios .page-heading h1 { margin:0; padding:0; border:0; font:600 36px/1.05 Georgia,serif; letter-spacing:-.055em; }
html.acceso-ios :is(#business-caption,.iphone-header-actions) { display:none; }
html.acceso-ios #themes { display:flex; align-self:center; padding:0 6px; border:1px solid var(--rule); border-radius:24px; background:var(--surface); }
html.acceso-ios #themes button { width:38px; height:36px; }
html.acceso-ios #content { flex:none; width:min(100%,390px); margin:clamp(16px,4vh,36px) auto 0; padding:0; }
html.acceso-ios .access-panel { margin:0; padding:clamp(16px,5vw,26px); border-radius:24px; }
html.acceso-ios .access-panel form { margin:0; gap:16px; }
html.acceso-ios .access-panel:has(input[autocomplete=current-password]) h2 { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
html.acceso-ios .access-panel input:not([type=checkbox]) { min-height:46px; border-radius:12px; font-size:16px; }
html.acceso-ios .dialog-actions { justify-content:center; }
html.acceso-ios .dialog-actions .primary { min-height:46px; min-width:min(100%,168px); border-radius:15px; }
