:root {
    color-scheme: light;
    font: 16px/1.5 system-ui, sans-serif;
    --background: #faf6f2;
    --surface-subtle: #faf6f2;
    --foreground: #291d16;
    --card: #fff;
    --muted: #f6eee7;
    --muted-foreground: #6b584c;
    --border: #ebe2da;
    --control-border: #927b6d;
    --primary: #c2410c;
    --primary-foreground: #fff;
    --radius-control: .75rem;
    --radius: 1rem;
    --radius-panel: 1rem;
    --radius-pill: 999px;
    --panel-padding: clamp(1rem, 4vw, 2rem);
    --accent: #c2410c;
    --accent-hover: #9a3412;
    --accent-soft: #fff7ed;
    --accent-border: #fed7aa;
    color: var(--foreground);
    background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; }
header, nav, .heading, .meeting, .actions, .button-group {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
header, .heading, .meeting { justify-content: space-between; }
header {
    min-height: 4rem;
    padding: .75rem max(1rem, calc((100% - 60rem) / 2));
    border-bottom: 1px solid var(--border);
    background: var(--card);
}
header nav > a {
    padding: .4rem .65rem;
    border-radius: .4rem;
    color: var(--muted-foreground);
    font-size: .875rem;
    text-decoration: none;
}
header nav > a:hover, header nav > a[aria-current="page"] { color: var(--foreground); background: var(--muted); }
.brand { color: inherit; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
main { max-width: 62rem; margin: 2.5rem auto; padding: 0 1rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 5vw, 2rem); font-weight: 650; letter-spacing: -.04em; }
h2, .card-title { font-size: 1rem; font-weight: 650; letter-spacing: -.015em; }
.card-title { font-size: 1.25rem; }
p { color: var(--muted-foreground); font-size: .9rem; }
.card {
    padding: 1.25rem;
    margin: 1rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 1px 2px #0000000d;
}
.card h2 + p, .card-title + p { margin-top: .3rem; }
.card p + form, .card h2 + form, .card summary + p { margin-top: .9rem; }
.button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: .4rem .85rem;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    color: var(--primary-foreground);
    background: var(--primary);
    text-decoration: none;
    font: 550 .875rem/1.25 system-ui, sans-serif;
    cursor: pointer;
}
.button:hover { background: #303030; }
.button { transition: background-color .15s ease, box-shadow .15s ease; }
.button-outline { border-color: var(--border); background: var(--card); color: var(--foreground); }
.button-outline:hover { background: var(--muted); }
.button-group { gap: .3rem; margin: 1.25rem 0; }
.stack { display: grid; gap: 1rem; }
.stack > button { justify-self: start; }
label { display: grid; gap: .35rem; font-size: .875rem; font-weight: 550; }
small { color: var(--muted-foreground); font-weight: 400; }
input, textarea, select {
    width: 100%;
    min-height: 2.25rem;
    padding: .45rem .65rem;
    border: 1px solid var(--control-border);
    border-radius: var(--radius-control);
    color: inherit;
    background: var(--card);
    font: inherit;
    font-weight: 400;
}
textarea { resize: vertical; }
.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.alert {
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
}
.alert-error { border-left: 3px solid var(--foreground); }
.account-list { margin: 1rem 0 0; padding: 0; list-style: none; font-size: .875rem; }
.account-list li { overflow-wrap: anywhere; padding: .55rem 0; border-top: 1px solid var(--border); }
summary { cursor: pointer; font-size: .875rem; font-weight: 600; }
:focus-visible { outline: 2px solid #737373; outline-offset: 3px; }
[hidden] { display: none; }
.meeting-form { max-width: 37rem; margin-inline: auto; }
.meeting-form > p + p, .meeting-form > h1 + p { margin-top: .7rem; }
.account-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.stack details > label { margin-top: .5rem; }
.link-result label, .link-result .actions, .link-result > p:last-child { margin-top: 1rem; }
.link-result input { font-family: ui-monospace, monospace; }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.1rem; }
.brand-mark {
    display: grid; place-items: center;
    width: 2rem; height: 2rem; border-radius: .55rem;
    background: #151515; color: #fff; font-size: 1rem;
}
.schedule-panel { max-width: 32rem; margin-inline: auto; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.4rem; }
.schedule-panel > p { margin-top: .75rem; }
.schedule-panel > form { margin-top: 1rem; }
.schedule-panel .actions { align-items: flex-start; flex-direction: column; }
@media (max-width: 46rem) {
    main { margin-block: 1.25rem; }
}

.event-editor { background: var(--card); }
.editor-header { display: grid; gap: 1rem; padding: clamp(1rem, 4vw, 1.75rem); }
.editor-topline h1 { color: var(--foreground); font-size: .85rem; line-height: normal; letter-spacing: normal; }
.editor-title-row { display: flex; align-items: end; gap: 1rem; }
.editor-title { flex: 1; min-width: 0; }
.editor-title input {
    padding: .4rem .1rem; border-width: 0 0 1px; border-radius: 0;
    font-size: clamp(1.25rem, 4vw, 1.65rem); font-weight: 550; letter-spacing: -.04em;
}
.editor-save { border-radius: var(--radius-pill); padding-inline: 1.4rem; }
.editor-times { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; }
.editor-times input { background: var(--muted); border-color: var(--control-border); }
.time-zone { color: var(--muted-foreground); font-size: .8rem; padding-block: .5rem; }
.editor-columns {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start;
    gap: 1rem; padding: clamp(1rem, 4vw, 1.75rem); border-top: 1px solid var(--border); background: var(--muted);
}
.editor-card {
    display: grid; gap: 1rem; min-width: 0; padding: 1.15rem;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
}
.editor-section-heading { margin: 0; padding-bottom: .7rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.provider-card { background: var(--muted); border-radius: .7rem; padding: .75rem; font-size: .9rem; }
.guest-entry { display: flex; gap: .5rem; margin-top: .35rem; }
.guest-entry input { min-width: 0; }
.guest-list { display: grid; gap: .4rem; list-style: none; margin: .6rem 0 0; padding: 0; }
.guest-list li { display: flex; gap: .5rem; justify-content: space-between; align-items: center; overflow-wrap: anywhere; font-size: .875rem; }
.guest-list .button { min-height: 1.8rem; padding: .2rem .45rem; }
[data-guest-status]:not(:empty), .editor-disconnected p + p { margin-top: .65rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 46rem) {
    .editor-columns { grid-template-columns: 1fr; }
}

body { background: var(--background); }
.site-header {
    min-height: 5.2rem;
    padding-inline: max(1rem, calc((100% - 69rem) / 2));
}
main { max-width: 71rem; }
.brand small { display: block; color: var(--muted-foreground); font-size: .7rem; letter-spacing: normal; }
.brand-mark { width: 2.25rem; height: 2.25rem; border-radius: .8rem; }
.camera-icon { position: relative; width: .65rem; height: .65rem; border: 1.5px solid #fff; border-radius: .15rem; margin-right: .3rem; }
.camera-icon::after { content: ""; position: absolute; width: .32rem; height: .42rem; left: 100%; top: 0; border: 1px solid #fff; border-radius: .08rem; }
.site-header .schedule-action { background: #050505; color: #fff; padding: .55rem 1.2rem; border-radius: var(--radius-pill); }
.site-header .schedule-action:hover { background: #252525; color: #fff; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
.instant-panel, .summary-panel { border-radius: var(--radius-panel); padding: clamp(1.25rem, 3vw, 2rem); }
.instant-panel { min-height: 16rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; background: #050505; color: #fff; }
.instant-panel h1 { max-width: 25ch; font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.15; }
.instant-panel p { color: #b9b9b9; margin-top: .6rem; }
.instant-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.instant-placeholder {
    flex: 1 1 11rem;
    padding: .75rem .9rem;
    border: 1px solid #424242;
    border-radius: var(--radius-control);
    background: #1b1b1b;
    color: #ddd;
    font: .875rem/1.3 ui-monospace, monospace;
}
.instant-actions .button { background: #fff; color: #111; min-height: 2.7rem; border-radius: .9rem; }
.instant-actions .button:hover { background: #ddd; color: #111; }
.summary-panel { background: var(--surface-subtle); border: 1px solid var(--border); }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.summary-grid > div, .next-session { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: .85rem 1rem; }
.summary-grid dt, .next-session small { color: var(--muted-foreground); font-size: .75rem; }
.summary-grid dd { margin: .25rem 0 0; font-size: 1.55rem; font-weight: 700; line-height: 1.15; }
.next-session strong { display: block; font-size: .85rem; }
.dashboard-agenda { margin-top: 2rem; }
.agenda-toolbar, .agenda-filters, .week-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.agenda-toolbar { justify-content: space-between; gap: .75rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.agenda-filters button { border: 0; border-radius: var(--radius-pill); padding: .5rem .85rem; background: var(--muted); color: var(--foreground); font: 600 .75rem system-ui; cursor: pointer; }
.agenda-filters button[aria-pressed="true"] { background: #111; color: #fff; }
.agenda-search { flex: 0 1 18rem; }
.agenda-search input { border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: var(--muted); padding-inline: 1rem; }
.week-navigation { justify-content: space-between; margin: .8rem 0; font-size: .75rem; color: var(--muted-foreground); }
.week-navigation a { color: inherit; }
.agenda-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); margin: .75rem 0; }
.agenda-date { display: grid; justify-items: center; min-width: 5rem; padding: .55rem .7rem; background: var(--muted); border-radius: .85rem; }
.agenda-date small { text-transform: uppercase; }
.agenda-info { flex: 1 1 15rem; min-width: 0; overflow-wrap: anywhere; }
.agenda-info h3 { margin: 0; font-size: 1rem; }
.agenda-info a { color: inherit; font: .75rem ui-monospace, monospace; }
.dashboard-agenda [hidden] { display: none; }
@media (max-width: 46rem) {
    .dashboard-grid { grid-template-columns: 1fr; gap: 1rem; }
    .instant-panel { min-height: 14rem; }
    .agenda-search { flex-basis: 100%; }
}

.editor-close {
    display: grid; place-items: center; flex: 0 0 2rem;
    width: 2rem; height: 2rem; border: 0; border-radius: 50%;
    color: var(--foreground); background: transparent; font: 1.45rem system-ui; text-decoration: none; cursor: pointer;
}
.editor-close:hover { background: var(--muted); }
.editor-agenda {
    inset: 0 0 0 auto; margin: 0;
    width: min(100%, 28rem); max-width: 100%; height: 100dvh; max-height: 100%;
    border: 0; border-left: 1px solid var(--border); padding: 1.5rem; color: var(--foreground);
}
.editor-agenda::backdrop { background: #0007; }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-events { padding: 0; list-style: none; }
.drawer-events li { padding: .85rem 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.editor-agenda a { color: var(--foreground); font-size: .85rem; }

.editor-stacked { max-width: 52rem; margin-inline: auto; }
.editor-stacked .editor-header { padding: 0 var(--panel-padding) 1.5rem; gap: 1rem; }
.editor-topline { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.editor-reunions { border-radius: var(--radius-pill); min-height: 1.85rem; font-size: .75rem; }
.editor-reunions span { padding-inline: .4rem; margin-left: .35rem; border-radius: var(--radius); background: #111; color: #fff; }
.editor-stacked .editor-save { min-height: 2.5rem; padding-inline: 1.75rem; }
.editor-stacked .editor-times { margin-top: .5rem; }
.editor-stacked .editor-times input { min-height: 2.65rem; border-radius: var(--radius-control); padding-inline: .8rem; }
.time-zone strong { font-weight: 600; color: var(--foreground); }
.time-zone strong:not(:empty)::before { content: " · "; color: var(--muted-foreground); }
[data-duration-options] .button { min-height: 1.9rem; border-radius: var(--radius-control); font-size: .75rem; }
[data-duration-options] [aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.editor-stacked .editor-columns { grid-template-columns: minmax(0, 1fr); padding: var(--panel-padding); border: 0; border-radius: var(--radius-panel); background: var(--surface-subtle); gap: 1.25rem; }
.editor-stacked .editor-card { padding: clamp(.85rem, 3vw, 1.5rem); border-radius: var(--radius); }
.editor-stacked .provider-card { display: flex; align-items: center; gap: .75rem; background: #f4f4f5; border: 1px solid var(--border); }
.provider-icon { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border: 1px solid var(--border); border-radius: .5rem; background: #fff; flex-shrink: 0; }
.provider-icon .camera-icon, .provider-icon .camera-icon::after { border-color: #111; }
.provider-tag { margin-left: .35rem; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; padding: .12rem .4rem; font-size: .67rem; }
.meet-switch { margin-left: auto; cursor: pointer; }
.meet-switch input {
    appearance: none; width: 2.5rem; height: 1.45rem; min-height: 0; padding: 0; margin: 0;
    border-radius: var(--radius-pill); border: 1px solid #777; background: #949494; cursor: pointer;
}
.meet-switch input::before { content: ""; display: block; width: 1.15rem; height: 1.15rem; margin: .1rem; border-radius: 50%; background: #fff; }
.meet-switch input:checked { background: #111; border-color: #111; }
.meet-switch input:checked::before { transform: translateX(1rem); }
.description-heading { display: flex; gap: .5rem; align-items: baseline; }
[data-description-count] { margin-left: auto; color: var(--muted-foreground); font: .75rem system-ui, sans-serif; }
.editor-stacked textarea { min-height: 7.5rem; border-radius: var(--radius-control); padding: .9rem; }
.guest-empty { margin-top: .9rem; padding: 1.4rem; text-align: center; background: #fafafa; border: 1px dashed var(--border); border-radius: var(--radius-control); }
.guest-empty strong { font-size: .85rem; font-weight: 550; }
.guest-empty p { margin-top: .3rem; font-size: .75rem; }

.editor-fields { display: grid; align-items: end; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .8rem; }
.guest-permissions { min-width: 0; margin: .2rem 0 0; padding: .75rem 0 0; border: 0; border-top: 1px solid var(--border); }
.guest-permissions legend { padding: 0 .5rem 0 0; font-size: .8rem; font-weight: 600; }
.guest-permissions label { display: flex; align-items: center; gap: .6rem; margin: .35rem 0; font-weight: 400; }
.guest-permissions input { width: 1rem; height: 1rem; min-height: 0; margin: 0; accent-color: var(--primary); }
@media (max-width: 35rem) {
    .editor-fields { grid-template-columns: 1fr; }
}

.admin-main { max-width: 86rem; margin-block: 1.5rem; }
.admin-content { min-width: 0; padding: var(--panel-padding); background: var(--surface-subtle); }
.admin-heading, .admin-week { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.admin-week { font-size: .78rem; margin-block: 1.25rem .75rem; color: var(--muted-foreground); }
.admin-week a, .admin-content .card a { color: inherit; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.admin-metrics .card { margin: 0; }
.admin-metrics dt { font-size: .8rem; color: var(--muted-foreground); }
.admin-metrics dd { margin: .45rem 0 0; font-weight: 700; font-size: 1.75rem; }
.admin-table-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.admin-filters { display: grid; grid-template-columns: minmax(10rem, 2fr) minmax(8rem, 1fr) minmax(8rem, 1fr); padding: 1rem; gap: .65rem; }
.admin-filters input, .admin-filters select { background: var(--muted); }
.admin-table-scroll { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: .82rem; }
.admin-table th { text-align: left; background: var(--surface-subtle); color: var(--muted-foreground); text-transform: uppercase; font-size: .7rem; }
.admin-table th, .admin-table td { padding: .85rem .75rem; border-top: 1px solid var(--border); }
.admin-table td small, .session-link { display: block; color: var(--muted-foreground); overflow-wrap: anywhere; }
.session-link { font: .75rem ui-monospace, monospace; }
.session-state { display: inline-block; border-radius: var(--radius-pill); padding: .25rem .6rem; background: var(--muted); font-size: .72rem; }
.session-state-current { background: var(--primary); color: var(--primary-foreground); }
.admin-table .actions { gap: .35rem; flex-wrap: nowrap; }
.admin-table .button { font-size: .75rem; min-height: 1.8rem; padding: .25rem .45rem; }
.admin-table-status { padding: .85rem 1rem; border-top: 1px solid var(--border); font-size: .8rem; }
.admin-breakdown div { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.admin-breakdown dd { margin: 0; }
.admin-content [hidden] { display: none; }
@media (max-width: 58rem) {
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
    .admin-filters { grid-template-columns: 1fr; }
}
.admin-audit { margin-top: 1rem; }

.admin-content { border: 1px solid var(--border); border-radius: var(--radius-panel); }
.admin-management { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.admin-management .card { margin: 0; }
@media (max-width: 58rem) {
    .admin-management { grid-template-columns: 1fr; }
}

.confirmation-status { display: grid; gap: .75rem; margin-block: 1rem; }
.confirmation-status .actions { margin-top: .65rem; }
.confirmation-status > a { justify-self: start; }
.editor-save[aria-disabled="true"] { opacity: .7; cursor: wait; }
@media (max-width: 46rem) {
    .sessions-table { display: block; min-width: 0; }
    .sessions-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .sessions-table tbody { display: block; }
    .sessions-table tr:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .85rem; border-top: 1px solid var(--border); }
    .sessions-table td { border: 0; padding: 0; }
    .sessions-table .session-primary, .sessions-table .session-actions { flex-basis: 100%; }
    .sessions-table .session-secondary { display: none; }
    .sessions-table .button { min-height: 2.75rem; padding-inline: .8rem; }
}

.editor-return { margin: 1rem auto; max-width: 52rem; }

.field-error { font-size: .8rem; color: var(--foreground); }
input[aria-invalid="true"] { outline: 2px solid var(--foreground); outline-offset: 1px; }
.instant-actions .button[aria-disabled="true"] { opacity: .75; cursor: wait; }
.admin-filter-empty { padding: 1rem; }
.admin-filter-empty .button, [data-drawer-retry] { margin-top: .5rem; }

.meet-switch { display: grid; place-items: center; min-width: 44px; min-height: 44px; flex-shrink: 0; }
@media (max-width: 480px) {
    .editor-title-row { flex-direction: column; }
    .editor-title { align-self: stretch; }
    .editor-times { display: grid; grid-template-columns: minmax(0, 1fr); }
    .editor-times input { min-width: 0; width: 100%; }
    [data-duration-options] .button { min-height: 44px; }
}

.editor-options-fields { display: grid; gap: 1rem; margin-top: 1rem; }
[data-agenda-empty] .button { margin-top: .75rem; }
.admin-statistics { margin-top: 1rem; }
.audit-table { min-width: 0; }
.audit-mobile-label { display: none; }
@media (max-width: 46rem) {
    .audit-table, .audit-table tbody { display: block; }
    .audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .audit-table tr { display: grid; gap: .3rem; padding: .85rem; overflow-wrap: anywhere; }
    .audit-table tr + tr { border-top: 1px solid var(--border); }
    .audit-table td { padding: 0; border: 0; }
    .audit-action { font-weight: 650; }
    .audit-meta { color: var(--muted-foreground); }
    .audit-mobile-label { display: inline; font-weight: 650; margin-right: .4rem; }
}

/* Keep actions and data distinct without nested decorative cards. */
.instant-actions { align-items: center; flex-wrap: wrap; }
.instant-actions [hidden] { display: none; }
.instant-actions .instant-placeholder { flex-basis: 100%; padding: 0; border: 0; background: transparent; font: .85rem system-ui, sans-serif; color: #b9b9b9; }
.summary-period { margin-top: .35rem; font-size: .8rem; }
.summary-grid { gap: 1rem 1.5rem; }
.summary-grid > div { padding: 0; border: 0; background: transparent; }
.next-session { padding: 1rem 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.admin-management { align-items: start; }
.editor-stacked .editor-columns { background: transparent; padding-top: 0; }
.editor-stacked .editor-card:has(.provider-card) { padding: 0; border: 0; }
.guest-empty { padding: 1rem; border: 0; background: transparent; text-align: left; }
.agenda-info a + a { margin-left: 1rem; }
@media (max-width: 46rem) {
    .instant-panel { min-height: 13rem; }
    .site-header nav { row-gap: .75rem; }
}
@media (max-width: 46rem) {
    .admin-week, .week-navigation { display: grid; grid-template-columns: 1fr 1fr; }
    .admin-week span, .week-navigation span { grid-column: 1 / -1; grid-row: 1; }
    .admin-week a:last-child, .week-navigation a:last-child { justify-self: end; }
    .admin-metrics .card { padding: .85rem; }
    .admin-metrics dd { margin-top: .3rem; font-size: 1.4rem; }
    .admin-heading .actions .button:not(.button-outline) { order: -1; }
}

/* Shared hierarchy for navigation, results and working screens. */
.site-header { background: var(--card); }
.site-header .brand small { margin-top: .1rem; }
.page-agenda .dashboard-grid { align-items: stretch; }
.instant-panel { padding: clamp(1.5rem, 3vw, 2.25rem); }
.instant-panel h1 { max-width: 18ch; font-weight: 600; letter-spacing: -.045em; }
.instant-panel .button { min-width: 9rem; }
.summary-panel { background: var(--card); }
.summary-period { margin-bottom: 1.25rem; }
.summary-grid dd { font-weight: 600; }
.summary-grid { margin-bottom: 1.5rem; }
.week-navigation, .admin-week { padding-block: .25rem; }
.week-navigation .button, .admin-week .button { min-height: 2.25rem; padding: .35rem .8rem; font-size: .8rem; }
.week-navigation > span, .admin-week > span { text-align: center; }
.agenda-info a { font-family: inherit; font-size: .8rem; text-underline-offset: .2em; }
.agenda-row { background: var(--card); padding: 1.25rem; }
.agenda-date { border-radius: .65rem; }
.result-panel { max-width: 38rem; margin: 4rem auto; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1.5rem; box-shadow: 0 12px 40px #00000006; }
.result-mark { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--foreground); color: #fff; font-size: 1.4rem; margin-bottom: 1.25rem; }
.result-panel h1 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.2; margin-bottom: .75rem; }
.result-description { margin-bottom: 1.75rem; }
.result-panel label { margin-top: 1.25rem; }
.result-panel [data-meet-url] { min-height: 3.25rem; font-family: ui-monospace, monospace; font-size: .85rem; background: var(--surface-subtle); }
.result-panel label + .actions, .result-panel [data-confirmation-actions] .actions { margin-top: 1rem; }
.result-panel [data-copy-status]:not(:empty) { margin-top: .75rem; }
.result-footer { display: flex; flex-wrap: wrap; gap: .75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 1.5rem; }
.editor-header { background: var(--card); }
.event-editor { border-radius: var(--radius-panel); }
.editor-stacked .editor-header { padding-top: 1.5rem; border-radius: var(--radius-panel); margin-bottom: 1.5rem; }
.editor-title input { min-height: 3rem; }
.admin-content { background: var(--background); }
.schedule-panel { margin-top: 4rem; box-shadow: 0 12px 40px #00000006; }
.schedule-panel .actions { align-items: stretch; }
.schedule-panel .button { width: 100%; }
@media (max-width: 46rem) {
    .result-panel, .schedule-panel { margin-block: 1.5rem; }
    .result-panel .actions, .result-footer { display: grid; grid-template-columns: minmax(0, 1fr); }
    .result-panel .button { width: 100%; }
    .instant-panel { min-height: 14rem; }
    .week-navigation > span, .admin-week > span { padding-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .button { transition: none; }
}

/* Date controls share a stable baseline, including validation errors. */
.editor-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.editor-times > label { min-width: 0; }
.editor-times .time-zone { grid-column: 1 / -1; padding: 0; }
.editor-times input { min-width: 0; height: 3rem; }
.editor-times .flatpickr-input { cursor: pointer; }
.editor-header > .field-error { margin-top: -.5rem; }
:focus-visible { outline-color: var(--accent); }
.editor-times input:focus-visible { border-color: var(--accent); }
[data-duration-options] [aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.flatpickr-calendar { border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 12px 40px #00000018; font: .875rem/1.5 system-ui, sans-serif; }
.flatpickr-months { padding-block: .5rem; }
.flatpickr-current-month { font-size: 1rem; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { height: 44px; width: 44px; padding: 8px; text-align: center; font-size: 1.4rem; }
.flatpickr-day { border-radius: .65rem; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--accent); border-color: var(--accent); }
.flatpickr-day.today { border-color: var(--accent); }
.flatpickr-day:focus { background: var(--accent-soft); border-color: var(--accent); }
.flatpickr-time input { min-height: 0; border: 0; border-radius: 0; width: 100%; background: transparent; }
.flatpickr-time .numInputWrapper { min-width: 0; }
.flatpickr-time input:focus { background: var(--accent-soft); }
@media (max-width: 480px) {
    .editor-times { grid-template-columns: minmax(0, 1fr); }
    .flatpickr-calendar { max-width: calc(100vw - 2rem); }
}

/* Terracota Editorial, adapted from the supplied Zentra prototype. */
body { -webkit-font-smoothing: antialiased; }
input, select, .summary-grid dd, .time-zone, .week-navigation { font-variant-numeric: tabular-nums; }
.site-header { min-height: 4rem; padding-block: .65rem; }
.brand-mark { background: var(--accent); border-radius: .75rem; }
.brand small { display: none; }
.button:hover { background: var(--accent-hover); }
.button-outline { background: var(--card); color: var(--foreground); border-color: var(--control-border); }
.button-outline:hover { background: var(--accent-soft); color: var(--accent-hover); }
header nav > a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.site-header .schedule-action { background: var(--accent); }
.site-header .schedule-action:hover { background: var(--accent-hover); }
main { max-width: 68rem; margin-block: 2rem; }
.dashboard-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem; }
.instant-panel { background: linear-gradient(135deg, #431407 0%, #9a3412 100%); min-height: 15rem; padding: 1.75rem; border-radius: 1rem; }
.instant-panel h1 { font-size: clamp(1.5rem, 3vw, 1.85rem); }
.instant-panel p, .instant-actions .instant-placeholder { color: #ffedd5; }
.instant-actions .button { color: #431407; }
.instant-actions .button:hover { background: #ffedd5; color: #431407; }
.summary-panel { padding: 1.5rem; border-radius: 1rem; }
.summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-block: 1rem; }
.summary-grid > div { padding: .75rem; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: .75rem; }
.summary-grid > div:nth-child(2) { background: var(--accent-soft); border-color: var(--accent-border); }
.summary-grid > div:nth-child(2) dt, .summary-grid > div:nth-child(2) dd { color: var(--accent); }
.summary-period { margin-bottom: 0; }
.summary-grid dd { font-size: 1.6rem; }
.next-session { margin-top: 1rem; padding-top: .75rem; }
.dashboard-agenda { margin-top: 1.25rem; }
.week-navigation { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: .75rem 1rem; margin-block: 0 1rem; }
.agenda-toolbar { border-bottom: 0; padding-block: 0 .5rem; }
.agenda-search { flex: 1 1 18rem; order: -1; }
.agenda-search input { border-radius: .75rem; background: var(--card); }
.agenda-filters button { border: 1px solid var(--border); background: var(--card); border-radius: .65rem; min-height: 2.5rem; }
.agenda-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.agenda-date { background: var(--accent-soft); }
.agenda-date small { color: var(--accent); font-weight: 600; }
.agenda-info a { color: var(--accent-hover); }
.event-editor { border: 1px solid var(--border); border-radius: 1rem; max-width: 44rem; margin-inline: auto; box-shadow: 0 2px 8px #43140704; }
.editor-stacked .editor-header { padding: 1.5rem 1.5rem 0; margin-bottom: 1rem; background: transparent; }
.editor-topline h1 { font-size: 1.25rem; font-weight: 650; }
.editor-title-row { display: block; }
.editor-title input { border: 1px solid var(--control-border); border-radius: .75rem; font-size: 1rem; font-weight: 400; letter-spacing: normal; padding: .65rem .8rem; }
.editor-stacked .editor-times input { background: var(--card); }
.editor-stacked .editor-columns { padding: 0 1.5rem; gap: 1rem; }
.editor-stacked .provider-card { background: var(--accent-soft); border-color: var(--accent-border); }
.provider-icon { background: var(--accent); border-color: var(--accent); }
.meet-switch input { accent-color: var(--accent); }
.meet-switch input:checked { background: var(--accent); }
.editor-card { border-radius: .75rem; padding: 1rem; }
.editor-options { background: var(--surface-subtle); }
.editor-form-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.editor-form-actions .editor-save { border-radius: var(--radius-pill); }
.result-mark { background: var(--accent); }
.result-panel { border-radius: 1rem; box-shadow: 0 12px 40px #43140706; }
.alert { background: var(--accent-soft); border-color: var(--accent-border); }
.alert-error { background: #fff; border-left-color: #b91c1c; }
.field-error { color: #b91c1c; }
input[aria-invalid="true"] { outline-color: #b91c1c; }
.session-state-current { background: var(--accent); }
.admin-content { background: transparent; }
.admin-metrics dd { color: var(--foreground); }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--accent); border-color: var(--accent); }
.schedule-panel { border-radius: 1rem; }
@media (max-width: 46rem) {
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .instant-panel { min-height: 14rem; }
    .editor-stacked .editor-header { padding-inline: 1rem; }
    .editor-stacked .editor-columns { padding-inline: 1rem; }
    .editor-form-actions { margin-inline: 1rem; }
}
@media (max-width: 480px) {
    .editor-topline { align-items: flex-start; flex-direction: column; gap: .75rem; }
    .editor-form-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .editor-form-actions .editor-save { grid-row: 1; }
}

.access-group { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.access-group h3 { margin: 0 0 .75rem; font-size: .8rem; font-weight: 650; color: var(--muted-foreground); }
.access-group .account-list { margin-top: 0; }
.access-group .account-list li:first-child { border-top: 0; padding-top: 0; }
.access-group .account-list small { display: block; margin-top: .25rem; }

#hosts { scroll-margin-top: 1.5rem; }
#hosts:target { outline: 2px solid var(--accent); outline-offset: 4px; }

.admin-management { grid-template-columns: minmax(0, 1fr); }
.google-integration-trigger { gap: .5rem; border-color: var(--border); background: var(--card); color: var(--foreground); flex-wrap: wrap; }
.google-integration-trigger small { color: inherit; font-size: .75rem; font-weight: 550; }
.google-integration-trigger .integration-dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.google-integration-trigger.google-state-connected { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.google-integration-trigger.google-state-reauthorize { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.google-integration-trigger.google-state-unavailable,
.google-integration-trigger.google-state-saved,
.google-integration-trigger.google-state-disconnected { color: #854d0e; background: #fffbeb; border-color: #fde68a; }
.google-integration-trigger:hover { filter: brightness(.97); }
.integration-dialog { width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); overflow-y: auto; padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); color: var(--foreground); box-shadow: 0 20px 80px #291d1626; }
.integration-dialog::backdrop { background: #291d1666; }
.integration-dialog:not([open]) { display: none; }
.integration-dialog[open]:not(:modal) { position: relative; margin: 1rem auto; }
.integration-close { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.integration-close[hidden] { display: none; }
.integration-dialog #integration { margin: 0; padding: 0; border: 0; box-shadow: none; }
.integration-dialog #integration p { margin-top: .65rem; }
.integration-dialog #integration form { margin-top: 1.25rem; }

.saved-links { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.saved-links > p { margin-top: .5rem; }
.saved-links-list { padding: 0; list-style: none; }
.saved-link-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.saved-link-row strong { font-size: .9rem; }
.saved-link-row p { font-size: .8rem; margin-top: .3rem; }
.saved-link-row [hidden] { display: none; }

.account-menu { position: relative; margin-left: .15rem; }
.account-menu > summary { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .3rem .75rem .3rem .35rem; border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: var(--card); list-style: none; font-weight: 550; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; flex-shrink: 0; border: 1px solid var(--accent-border); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 650; }
.account-name { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { color: var(--muted-foreground); transition: transform .15s; }
.account-menu[open] .account-chevron { transform: rotate(180deg); }
.account-popover { position: absolute; z-index: 30; top: calc(100% + .6rem); right: 0; width: min(19rem, calc(100vw - 2rem)); padding: .5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); box-shadow: 0 12px 40px #291d161a; }
.account-identity { border: 1px solid var(--border); border-radius: .75rem; padding: .85rem; background: var(--surface-subtle); }
.account-role { margin: 0 0 .4rem; color: var(--accent-hover); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.account-identity strong { display: block; font-size: .85rem; font-weight: 400; overflow-wrap: anywhere; }
.account-popover form { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .35rem; }
.account-logout { display: block; width: 100%; min-height: 2.75rem; padding: .65rem .85rem; border: 0; border-radius: .6rem; text-align: left; background: transparent; color: #991b1b; font: 550 .85rem system-ui, sans-serif; cursor: pointer; }
.account-logout:hover { background: #fef2f2; }
@media (max-width: 480px) {
    .account-name { max-width: 7rem; }
}


/* Acceso dividido: presentación terracota y acciones OAuth existentes. */
.login-page { background: #f4ebe5; }
.login-page > .site-header { display: none; }
.login-page > main { max-width: 1240px; margin: 0 auto; padding: clamp(1rem, 5vh, 3.5rem) clamp(1rem, 4vw, 3rem); }
.login-shell { display: grid; grid-template-columns: .95fr 1.05fr; min-height: min(760px, calc(100svh - 7rem)); background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; overflow: hidden; box-shadow: 0 24px 80px #67280e0b; }
.login-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(1.75rem, 4vw, 3rem); background: linear-gradient(155deg, #431b10, #7c2d12 65%, #9a3412); color: #fff7ed; }
.login-brand { display: inline-flex; align-items: center; gap: .7rem; align-self: flex-start; color: #fff7ed; font-size: 1.35rem; }
.login-brand .brand-mark { background: #ffffff18; border: 1px solid #ffffff35; }
.login-story-copy { margin-top: clamp(3rem, 7vh, 5.5rem); position: relative; z-index: 1; }
.login-eyebrow { font-size: .65rem; font-weight: 650; letter-spacing: .16em; }
.login-story .login-eyebrow { color: #fed7aa; }
.login-story h2 { margin-top: 1.2rem; font-size: clamp(2rem, 3.7vw, 3rem); line-height: 1.12; font-weight: 550; letter-spacing: -.055em; }
.login-story-copy > p:last-child { margin-top: 1.25rem; color: #ffdec9; line-height: 1.7; }
.login-art { position: relative; height: 205px; margin: 1.75rem -1rem 1rem; }
.login-art-orbit { position: absolute; width: 230px; height: 230px; border: 1px solid #ffffff1f; border-radius: 50%; top: -15px; left: 20%; }
.login-art-orbit::after { content: ''; position: absolute; inset: 25px; border: 1px solid #ffffff14; border-radius: 50%; }
.login-art-card { position: absolute; display: flex; align-items: center; gap: .8rem; width: 92%; padding: 1.2rem; border-radius: 1rem; font-size: .82rem; font-weight: 600; box-shadow: 0 12px 30px #29100b24; }
.login-art-card small { display: block; font-size: .68rem; margin-top: .25rem; font-weight: 400; }
.login-art-back { top: 25px; left: 0; transform: rotate(-7deg); background: #b75936; color: #fff7ed; border: 1px solid #f7b08e44; }
.login-art-back small { color: #ffe0cc; }
.login-art-front { top: 110px; right: 0; transform: rotate(5deg); background: #fff7ed; color: #431b10; }
.login-art-front small { color: #7c4b36; }
.login-art-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.4rem; height: 2.4rem; border: 1px solid currentColor; border-radius: .75rem; font-size: 1.5rem; }
.login-art-check { margin-left: auto; color: #9a3412; }
.login-story-footer { margin-top: auto; padding-top: 1.5rem; color: #fed7aa; font-size: .75rem; }
.login-access { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); }
.login-access-content { width: 100%; max-width: 350px; margin: auto; padding: 3rem 0; }
.login-access .login-eyebrow { color: var(--accent); }
.login-access h1 { margin-top: 1rem; font-size: clamp(2.2rem, 3.8vw, 3rem); line-height: 1.12; font-weight: 550; letter-spacing: -.055em; }
.login-intro { margin-top: 1.25rem; line-height: 1.7; }
.login-form { margin-top: 2rem; }
.login-form .button { width: 100%; min-height: 3.2rem; border-radius: .8rem; }
.login-primary { justify-content: space-between; padding-inline: 1.2rem; }
.login-primary > span:last-child { font-size: 1.2rem; }
.login-account-hint { text-align: center; font-size: .7rem; margin-top: .75rem; }
.login-divider { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1.25rem; color: var(--muted-foreground); font-size: .7rem; }
.login-divider::before, .login-divider::after { content: ''; height: 1px; background: var(--border); flex: 1; }
.login-admin { font-size: .8rem; padding-inline: .6rem; }
.login-access-footer { text-align: center; font-size: .68rem; line-height: 1.6; }
@media (min-width: 900px) { .login-page { min-height: 100svh; display: grid; align-items: center; } .login-page > main { width: 100%; } }
@media (max-width: 700px) {
    .login-page > main { padding: 1rem; }
    .login-shell { grid-template-columns: 1fr; min-height: auto; }
    .login-story { padding: 1.5rem; }
    .login-story-copy { margin-top: 2rem; }
    .login-story h2 { font-size: 2rem; }
    .login-story-copy > p:last-child { margin-top: .75rem; font-size: .8rem; }
    .login-art, .login-story-footer { display: none; }
    .login-access { padding: 2rem 1.5rem; }
    .login-access-content { padding: .5rem 0 2rem; max-width: 380px; }
    .login-access h1 { font-size: 2.2rem; }
}


/* Identidad Zentra y selector accesible de acceso. */
.zentra-logo { display: inline-flex; width: 2.4rem; height: 2.4rem; flex-shrink: 0; }
.zentra-logo svg { width: 100%; height: 100%; display: block; }
.login-brand .zentra-logo { width: 2.75rem; height: 2.75rem; }
.login-tabs { display: flex; margin-bottom: 2.25rem; border-bottom: 1px solid var(--border); }
.login-tabs[hidden], [data-login-panel][hidden] { display: none; }
.login-tabs button { flex: 1; min-height: 2.8rem; padding: .7rem .4rem; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted-foreground); font: 500 .8rem system-ui, sans-serif; cursor: pointer; border-radius: 0; }
.login-tabs button:hover { background: var(--accent-soft); color: var(--accent-hover); }
.login-tabs button[aria-selected="true"] { color: var(--accent-hover); border-bottom-color: var(--accent); font-weight: 650; }
.login-access h1 { font-size: clamp(1.65rem, 2.6vw, 2.2rem); text-align: center; }
.login-intro { text-align: center; font-size: .85rem; }
[data-login-panel] { min-height: 205px; }
.login-art-front .camera-icon, .login-art-front .camera-icon::after { border-color: #7c2d12; }


/* Tarjeta de acceso: selector segmentado y jerarquía específica por perfil. */
.login-access { padding: clamp(1.5rem, 3vw, 3rem); }
.login-access-content { max-width: 420px; padding: 2rem; border: 1px solid var(--border); border-radius: 1.5rem; box-shadow: 0 8px 24px #431b1006; }
.login-tabs { padding: .25rem; gap: .25rem; margin: 0 0 1.8rem; background: #f4ede7; border: 1px solid var(--border); border-radius: 1rem; }
.login-tabs button { margin: 0; border: 0; border-radius: .75rem; min-height: 2.5rem; }
.login-tabs button[aria-selected="true"] { background: #fff; color: var(--foreground); box-shadow: 0 2px 5px #431b1010; }
.login-tabs button:hover:not([aria-selected="true"]) { background: #ede2d9; }
.login-access h1 { margin-top: 0; font-size: clamp(1.4rem, 2.2vw, 1.65rem); letter-spacing: -.04em; line-height: 1.2; }
.login-intro { margin-top: .8rem; line-height: 1.6; }
.login-form { margin-top: 1.6rem; }
.login-form .button { min-height: 3rem; gap: .75rem; justify-content: center; padding-inline: .75rem; }
.login-primary { box-shadow: 0 4px 10px #c2410c26; }
.login-form .login-gmail { color: var(--foreground); background: #fff; border-color: var(--control-border); box-shadow: 0 2px 5px #431b1008; }
.login-form .login-gmail:hover { background: var(--accent-soft); }
.login-google-mark { font-size: 1.1rem; font-weight: 750; color: #c2410c; }
.login-provider-camera { display: inline-flex; }
.login-account-hint { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; font-size: .7rem; line-height: 1.5; }
.login-lock { position: relative; display: inline-block; flex-shrink: 0; width: .55rem; height: .45rem; border: 1px solid currentColor; border-radius: .1rem; margin-top: .2rem; }
.login-lock::before { content: ''; position: absolute; width: .3rem; height: .3rem; border: 1px solid currentColor; border-bottom: 0; border-radius: .25rem .25rem 0 0; left: 50%; bottom: 100%; transform: translateX(-50%); }
[data-login-panel] { min-height: 0; }
@media (max-width: 700px) { .login-access-content { padding: 1.5rem; } }
@media (max-width: 380px) { .login-access { padding: 1rem; } .login-access-content { padding: 1.25rem 1rem; } }


/* Agenda vertical y formulario compacto según referencias funcionales. */
.page-agenda .dashboard-grid { grid-template-columns: 1fr; }
.page-agenda .instant-panel { min-height: 0; gap: 1.25rem; padding: 1.5rem; }
.page-agenda .instant-panel h1 { font-size: clamp(1.4rem, 3vw, 1.65rem); }
.instant-actions { margin-top: 0; }
.instant-link-bar { display: flex; gap: .75rem; align-items: center; border: 1px solid #fed7aa66; background: #43140744; border-radius: .75rem; padding: .45rem .75rem; }
.instant-link-bar input { min-width: 0; flex: 1; border: 0; background: transparent; color: #fff7ed; font: .8rem ui-monospace, monospace; box-shadow: none; padding: .4rem 0; }
.instant-link-bar .button { min-height: 2rem; background: #fff; color: #431407; padding: .3rem .7rem; font-size: .75rem; }
.summary-panel { position: relative; }
.next-session-badge { display: inline-block; float: right; margin-top: -1.5rem; padding: .2rem .65rem; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent); border-radius: .5rem; font-size: .75rem; }
.page-agenda .summary-grid { margin-bottom: 0; }
.page-agenda .next-session { display: none; }
.agenda-row { padding: 1.25rem; }
.agenda-date { min-width: 4rem; border: 1px solid var(--accent-border); border-radius: .75rem; }
.account-menu > summary { border-color: transparent; background: var(--surface-subtle); }
.account-identity { position: relative; padding-right: 2rem; }
.account-online { position: absolute; width: .5rem; height: .5rem; right: .9rem; top: 1rem; border-radius: 50%; background: #059669; }
.editor-stacked .editor-header { padding: 1.75rem 1.75rem 0; }
.editor-topline { padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.editor-stacked .editor-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.editor-times > .time-zone { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.editor-times .time-zone strong { color: var(--accent); }
.editor-stacked .editor-columns { padding: 0 1.75rem; }
.editor-stacked .editor-save { border-radius: .75rem; }
.meeting-cancellation { max-width: 44rem; margin-inline: auto; }
.meeting-cancellation summary { color: #9a3412; }
@media (max-width: 600px) {
    .editor-stacked .editor-header { padding: 1.25rem 1.25rem 0; }
    .editor-stacked .editor-columns { padding: 0 1.25rem; }
    .next-session-badge { float: none; margin: .5rem 0 0; }
    .agenda-actions { width: 100%; }
    .editor-stacked .editor-times { gap: .75rem; }
}

.page-agenda .instant-panel h1 { max-width: none; }
.instant-link-bar .button { min-width: 0; }
.provider-card .provider-icon .camera-icon, .provider-card .provider-icon .camera-icon::after { border-color: #fff7ed; }

.page-agenda > .notice-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #2d2019; color: #fff7ed; border-color: #2d2019; border-radius: .75rem; }
.notice-banner[hidden] { display: none; }
.notice-dismiss { min-height: 2.75rem; border: 0; background: transparent; color: inherit; cursor: pointer; padding: .5rem; }
.notice-dismiss[hidden] { display: none; }

.instant-link-bar input::placeholder { color: #ffdec9; opacity: 1; }


/* Profile: fondo limpio, avatar crema y acento terracota. */
.account-menu { margin-left: .5rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.account-menu > summary { background: transparent; border-color: transparent; border-radius: .6rem; padding: .25rem .5rem; font-weight: 500; }
.account-menu > summary:hover, .account-menu[open] > summary { background: var(--surface-subtle); }
.account-avatar { width: 1.8rem; height: 1.8rem; border: 0; border-radius: .5rem; background: var(--accent-soft); color: var(--accent); }
.account-name { font-size: .875rem; }
@media (max-width: 480px) { .account-menu { margin-left: 0; padding-left: .5rem; } }

/* Mantener completa la etiqueta del menú de información personal. */
.account-menu .account-name { max-width: none; overflow: visible; text-overflow: clip; }

.site-header nav > .header-back { display: inline-flex; gap: .5rem; min-height: 2.4rem; padding: .4rem .85rem; border-radius: .75rem; color: var(--foreground); }
.header-back > span { font-size: 1.25rem; line-height: 1; }


/* Confirmación compacta: información real y controles de Meet existentes. */
.created-receipt { max-width: 29rem; padding: 2rem; margin-block: 3.5rem; border-radius: 1.5rem; }
.created-heading { display: flex; align-items: flex-start; gap: 1rem; }
.created-check { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); border-radius: 1rem; font-size: 1.25rem; }
.created-receipt h1 { margin: .1rem 0 .25rem; font-size: 1.55rem; }
.created-title { color: var(--foreground); font-size: .875rem; overflow-wrap: anywhere; }
.created-time { margin-top: .2rem; font-size: .75rem; }
.created-receipt .confirmation-status { margin: 1.5rem 0 0; }
.created-receipt .created-link-label { margin: 0 0 .5rem; font-size: .75rem; font-weight: 400; color: var(--muted-foreground); }
.created-link-bar { display: flex; align-items: center; gap: .5rem; padding: .4rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface-subtle); }
.created-camera { display: flex; padding-left: .5rem; }
.created-camera .camera-icon, .created-camera .camera-icon::after { border-color: var(--accent); }
.created-receipt .created-link-bar [data-meet-url] { width: 0; flex: 1; min-width: 0; min-height: 2.3rem; padding: .3rem; border: 0; border-radius: .4rem; font: .8rem system-ui, sans-serif; color: var(--foreground); }
.created-link-bar .button { min-height: 2.3rem; padding: .4rem .9rem; border-radius: .75rem; flex-shrink: 0; }
.created-receipt .created-open { display: flex; width: 100%; gap: .6rem; margin-top: 1.5rem; border-radius: .75rem; }
.created-receipt .created-footer { display: flex; justify-content: space-between; gap: .5rem; margin-top: .75rem; padding-top: .75rem; }
.created-footer a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: var(--muted-foreground); text-decoration: none; font-size: .85rem; }
.created-footer a:hover { text-decoration: underline; }
.created-footer .created-another { color: var(--accent); }
@media (max-width: 480px) {
    .created-receipt { padding: 1.25rem; margin-block: 1.5rem; }
    .created-receipt .created-link-bar .button { width: auto; }
    .created-receipt h1 { font-size: 1.4rem; }
}


/* Formato del editor conforme a referencia compacta (624 px). */
.page-form { margin-block: 1.5rem; }
.event-editor.editor-stacked { max-width: 39rem; border-radius: 1rem; }
.editor-stacked .editor-header { padding: 1.75rem 1.75rem 0; margin-bottom: 1.5rem; }
.editor-stacked .editor-topline { margin-bottom: 1.5rem; padding-bottom: 1rem; }
.editor-topline h1 { font-size: 1.25rem; }
.editor-stacked .editor-reunions { display: none; }
.editor-stacked label { font-size: .875rem; font-weight: 400; }
.editor-title-row { margin-bottom: 1.5rem; }
.editor-stacked .editor-title { gap: .4rem; }
.editor-stacked input:not([type="checkbox"]):not([type="hidden"]), .editor-stacked select { min-height: 2.5rem; height: 2.5rem; padding: .5rem .8rem; font-size: .875rem; border-radius: .75rem; border-color: var(--control-border); }
.editor-stacked .editor-title input { font-weight: 400; }
.editor-stacked input::placeholder, .editor-stacked textarea::placeholder { color: #6b7280; opacity: 1; }
.editor-stacked .editor-times { column-gap: 1rem; row-gap: .65rem; }
.editor-stacked .time-zone { font-size: .75rem; }
.editor-stacked .time-zone strong::before { content: none; }
.editor-stacked [data-duration-options] { gap: .35rem; margin-top: .5rem; flex-wrap: wrap; }
.editor-stacked [data-duration-options] .button { min-height: 2rem; padding: .35rem .6rem; border-radius: .45rem; font-size: .75rem; font-weight: 400; border-color: var(--border); }
.editor-stacked [data-duration-options] [aria-pressed="true"] { font-weight: 600; }
.editor-stacked .editor-columns { gap: 1.5rem; padding-inline: 1.75rem; }
.editor-stacked .provider-card { min-height: 4.1rem; padding: .85rem; gap: .65rem; }
.editor-stacked .provider-card strong { font-size: .875rem; font-weight: 600; }
.editor-stacked .provider-card p { font-size: .75rem; }
.editor-stacked .provider-icon { width: 2.25rem; height: 2.25rem; border-radius: .5rem; }
.editor-stacked .editor-card:not(:has(.provider-card)):not(.editor-options) { padding: 1rem; }
.editor-stacked .editor-section-heading { font-size: .875rem; font-weight: 500; border: 0; margin: 0 0 .75rem; padding: 0; }
.editor-stacked .guest-entry { gap: .5rem; }
.editor-stacked .guest-entry input { background: var(--surface-subtle); }
.editor-stacked .guest-entry .button { min-height: 2.25rem; border-radius: .75rem; font-size: .75rem; padding: .4rem .9rem; }
.editor-stacked .guest-empty { padding: 0; margin-top: 1rem; }
.editor-stacked .guest-empty p { margin: 0; font-size: .75rem; }
.editor-stacked .guest-list:empty { margin: 0; }
.editor-stacked .editor-options { padding: 0; border-radius: .75rem; }
.editor-options > summary { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; padding: .75rem 1rem; font-size: .875rem; font-weight: 400; list-style: none; }
.editor-options > summary::-webkit-details-marker { display: none; }
.editor-options > summary::after { content: '⌄'; color: var(--muted-foreground); }
.editor-options[open] > summary::after { content: '⌃'; }
.editor-options[open] > summary { border-bottom: 1px solid var(--border); }
.editor-stacked .editor-options-fields { padding: 1rem; }
.editor-stacked .editor-form-actions { margin: 1.5rem 1.75rem 1.75rem; padding-top: .75rem; gap: .65rem; }
.editor-stacked .editor-form-actions .button { min-height: 2.5rem; border-radius: .75rem; padding: .45rem .9rem; font-weight: 500; }
@media (max-width: 480px) {
    .editor-stacked .editor-header { padding: 1.25rem 1rem 0; }
    .editor-stacked .editor-columns { padding-inline: 1rem; }
    .editor-stacked .editor-form-actions { margin-inline: 1rem; }
    .editor-stacked .editor-times { column-gap: .65rem; }
    .editor-stacked .editor-times input { padding-inline: .4rem; font-size: .8rem; }
}


/* Encabezado contextual del editor, con Información Personal conservado. */
.header-identity { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.header-divider { color: #bfae9f; font-size: .9rem; }
.header-context { font-size: .875rem; color: var(--foreground); }
.form-site-header { min-height: 3.75rem; padding: .5rem 1rem; border-bottom: 1px solid #eadfd6; }
.form-site-header .zentra-logo { width: 2.25rem; height: 2.25rem; }
.form-site-header .brand { font-size: 1rem; }
.form-site-header nav > .header-back { min-height: 2.3rem; border: 1px solid #d8bfb0; border-radius: .75rem; background: #fff; padding: .4rem .85rem; font-weight: 400; }
.form-site-header nav > .header-back:hover { background: var(--accent-soft); }
@media (max-width: 640px) {
    .form-site-header { gap: .5rem; }
    .form-site-header .header-identity { gap: .5rem; flex-wrap: wrap; }
    .header-context { font-size: .8rem; }
    .form-site-header nav { margin-left: auto; }
}
/* Evitar sumar márgenes históricos al espaciado compacto del formulario. */
.editor-stacked .editor-header { gap: 0; }
.editor-stacked .editor-title-row { margin-bottom: 1.5rem; }
.editor-stacked .editor-times { margin-top: 0; }
.editor-stacked [data-duration-options] { margin-top: .5rem; }
.editor-stacked .guest-entry { margin-top: 0; }
.editor-stacked .editor-options > summary { height: 2.75rem; }

/* Agenda de reuniones vigentes: resumen de 3 contadores, agrupación por fecha y jerarquía de botones. */
.page-agenda .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agenda-day-group { margin-top: 1.25rem; }
.agenda-day-group[hidden] { display: none; }
.agenda-day-heading { margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; color: var(--muted-foreground); }
.agenda-actions .button { min-height: 2.4rem; font-size: .8rem; border-radius: .75rem; }
.agenda-actions .button-outline { background: #fff; border-color: #d8bfb0; color: var(--foreground); border-radius: .75rem; }
.agenda-actions .button-outline:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
@media (max-width: 46rem) {
    .page-agenda .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tarjeta unificada de Tus Enlaces. */
.saved-links { margin-top: 2rem; padding-top: 0; border-top: 0; }
.saved-links [hidden] { display: none; }
.saved-links-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; overflow: visible; box-shadow: 0 1px 2px #00000008; }
.saved-links-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.saved-links-title { display: flex; align-items: center; gap: .55rem; }
.saved-links-title h2 { font-size: 1rem; font-weight: 650; }
.saved-links-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.55rem; height: 1.4rem; padding: 0 .45rem; border-radius: .45rem; background: var(--muted); color: var(--muted-foreground); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.saved-links-tools { display: flex; align-items: center; gap: .9rem; flex-wrap: nowrap; }
.saved-links-search-form { margin: 0; flex: 0 1 13.5rem; min-width: 8.5rem; }
.saved-links-search { position: relative; display: flex; align-items: center; width: 100%; font-weight: 400; }
.saved-links-search svg { position: absolute; left: .7rem; width: .95rem; height: .95rem; color: var(--muted-foreground); pointer-events: none; }
.saved-links-search input { min-height: 2.2rem; padding: .35rem .7rem .35rem 2.1rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface-subtle); font-size: .82rem; }
.saved-links-clear { position: relative; flex-shrink: 0; }
.saved-links-clear > summary { list-style: none; font-size: .84rem; font-weight: 400; color: var(--muted-foreground); cursor: pointer; padding: .25rem 0; white-space: nowrap; }
.saved-links-clear > summary::-webkit-details-marker { display: none; }
.saved-links-clear > summary:hover { color: var(--foreground); }
.saved-links-clear-popover { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 25; width: 16.5rem; padding: .9rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--card); box-shadow: 0 12px 32px #291d161f; }
.saved-links-clear-popover p { font-size: .8rem; margin: 0 0 .75rem; line-height: 1.45; }
.saved-links-clear-popover .button { width: 100%; min-height: 2.25rem; font-size: .8rem; border-radius: .75rem; border-color: #d8bfb0; }
.saved-links-list { margin: 0; padding: 0; list-style: none; }
.saved-link-item { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.25rem; border-bottom: 1px solid var(--border); }
.saved-link-item:last-child { border-bottom: 0; }
.saved-link-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: var(--muted); color: var(--muted-foreground); }
.saved-link-icon.is-recent { background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); }
.saved-link-icon svg { width: 1.15rem; height: 1.15rem; }
.saved-link-meta { flex: 1 1 12rem; min-width: 0; }
.saved-link-primary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.saved-link-url { font-size: .92rem; font-weight: 400; color: var(--foreground); overflow-wrap: anywhere; }
.saved-link-badge { display: inline-flex; align-items: center; padding: .12rem .5rem; border: 1px solid var(--accent-border); border-radius: .45rem; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 500; }
.saved-link-meta p { margin: .15rem 0 0; font-size: .8rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.saved-link-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.saved-link-copy { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.3rem; padding: .35rem .9rem; border-radius: .75rem; font-size: .82rem; font-weight: 500; }
.saved-link-copy.button-outline { background: #fff; border-color: #d8bfb0; color: var(--foreground); }
.saved-link-copy.button-outline:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.saved-link-copy svg, .saved-link-open svg { width: .95rem; height: .95rem; flex-shrink: 0; }
.saved-link-open { width: 2.3rem; min-width: 2.3rem; min-height: 2.3rem; padding: 0; border-radius: .75rem; background: #fff; border-color: #d8bfb0; color: var(--muted-foreground); }
.saved-link-open:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.saved-link-remove-form { margin: 0; display: inline-flex; }
.saved-link-remove { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: .5rem; background: transparent; color: var(--muted-foreground); font: 400 1.2rem/1 system-ui, sans-serif; cursor: pointer; }
.saved-link-remove:hover { background: var(--muted); color: var(--foreground); }
.saved-links-empty { padding: 1.25rem; font-size: .85rem; color: var(--muted-foreground); }
.saved-links-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-subtle); border-radius: 0 0 1rem 1rem; font-size: .82rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.saved-links-pager { display: inline-flex; align-items: center; gap: .35rem; }
.pager-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.15rem; height: 2.15rem; padding: 0 .45rem; border: 1px solid #d8bfb0; border-radius: .6rem; background: #fff; color: var(--foreground); text-decoration: none; font-size: .84rem; font-weight: 500; line-height: 1; }
a.pager-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.pager-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-btn.is-disabled { opacity: .45; border-color: var(--border); color: var(--muted-foreground); cursor: default; }
.pager-ellipsis { padding: 0 .2rem; color: var(--muted-foreground); }
@media (max-width: 600px) {
    .saved-links-header { padding: .9rem 1rem; }
    .saved-links-tools { width: 100%; }
    .saved-links-search-form { flex: 1 1 auto; }
    .saved-link-item { flex-wrap: wrap; padding: .9rem 1rem; }
    .saved-link-actions { width: 100%; justify-content: flex-end; }
    .saved-links-footer { padding: .8rem 1rem; }
}

/* Tarjeta Reunión creada (confirmación compacta con bloque interno crema/blanco). */
.created-receipt { max-width: 34rem; padding: 2rem; margin-block: 3rem; border-radius: 1.5rem; }
.created-heading { display: flex; align-items: center; gap: 1rem; }
.created-check { display: grid; place-items: center; flex-shrink: 0; width: 3rem; height: 3rem; background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; border-radius: .95rem; }
.created-check svg { width: 1.4rem; height: 1.4rem; }
.created-receipt h1 { margin: 0; font-size: 1.65rem; font-weight: 650; line-height: 1.15; letter-spacing: -.03em; }
.created-subtitle { margin: .25rem 0 0; font-size: .88rem; color: var(--muted-foreground); }
.created-summary-card { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; background: var(--card); }
.created-event-box { padding: 1.1rem 1.25rem; background: var(--surface-subtle); }
.created-title { margin: 0; color: var(--foreground); font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.created-time { display: flex; align-items: center; gap: .45rem; margin: .4rem 0 0; font-size: .86rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.created-time svg { width: .95rem; height: .95rem; flex-shrink: 0; }
.created-meet-row { display: flex; align-items: center; gap: .55rem; padding: .85rem 1.1rem; border-top: 1px solid var(--border); background: #fff; }
.created-meet-row[hidden] { display: none; }
.created-meet-icon { display: inline-flex; color: var(--accent); flex-shrink: 0; }
.created-meet-icon svg { width: 1.15rem; height: 1.15rem; }
.created-meet-row [data-meet-url] { width: 0; flex: 1; min-width: 0; min-height: 2.2rem; padding: 0; border: 0; background: transparent; color: var(--foreground); font: 400 .9rem/1.3 system-ui, sans-serif; text-overflow: ellipsis; }
.created-copy-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.35rem; padding: .4rem .95rem; border-radius: .75rem; font-size: .84rem; font-weight: 550; flex-shrink: 0; }
.created-copy-btn svg, .created-open-btn svg { width: .95rem; height: .95rem; flex-shrink: 0; }
.created-open-btn { width: 2.35rem; min-width: 2.35rem; min-height: 2.35rem; padding: 0; border-radius: .75rem; background: #fff; border-color: #d8bfb0; color: var(--muted-foreground); flex-shrink: 0; }
.created-open-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.created-refresh-wrap { margin-top: 1rem; }
.created-receipt .created-footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@media (max-width: 480px) {
    .created-receipt { padding: 1.25rem; margin-block: 1.5rem; }
    .created-meet-row { flex-wrap: wrap; }
    .created-meet-row [data-meet-url] { flex: 1 1 100%; }
}

/* Tarjeta unificada de Tus reuniones (cabecera, selector segmentado, franjas de día y paginación). */
.dashboard-agenda { margin-top: 1.5rem; }
.meetings-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; overflow: visible; box-shadow: 0 1px 2px #00000008; }
.meetings-card-header { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--border); border-radius: 1rem 1rem 0 0; display: flex; flex-direction: column; gap: .95rem; }
.meetings-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; }
.meetings-card-title { display: flex; align-items: center; gap: .55rem; }
.meetings-card-title h2 { font-size: 1.05rem; font-weight: 650; }
.meetings-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.65rem; height: 1.45rem; padding: 0 .45rem; border-radius: .45rem; background: var(--muted); color: var(--muted-foreground); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.next-meeting-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border: 1px solid var(--accent-border); border-radius: .65rem; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.next-meeting-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.meetings-card-controls { display: flex; align-items: center; justify-content: space-between; gap: .85rem; width: 100%; flex-wrap: nowrap; }
.meetings-search { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; gap: 0; font-weight: 400; }
.meetings-search svg { position: absolute; left: .85rem; width: 1rem; height: 1rem; color: var(--muted-foreground); pointer-events: none; }
.meetings-search input { width: 100%; height: 2.7rem; min-height: 2.7rem; padding: 0 .9rem 0 2.4rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--surface-subtle); font-size: .88rem; color: var(--foreground); }
.meetings-segmented { display: inline-flex; align-items: center; gap: .15rem; height: 2.7rem; padding: .22rem; border: 1px solid var(--border); border-radius: .85rem; background: #f5efe9; flex-shrink: 0; }
.meetings-segmented button { display: inline-flex; align-items: center; gap: .45rem; height: 100%; padding: 0 .8rem; border: 0; border-radius: .65rem; background: transparent; color: var(--muted-foreground); font: 500 .84rem system-ui, sans-serif; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meetings-segmented button span { display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; color: var(--muted-foreground); }
.meetings-segmented button:hover { color: var(--foreground); }
.meetings-segmented button[aria-pressed="true"] { background: #fff; color: var(--foreground); box-shadow: 0 1px 2px #291d1612; }
.meetings-segmented button[aria-pressed="true"] span { min-width: 1.35rem; padding: .12rem .4rem; border-radius: .4rem; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.meetings-empty { padding: 1.5rem 1.25rem; font-size: .86rem; color: var(--muted-foreground); }
.meetings-empty .button { margin-top: .75rem; }
.meetings-card .agenda-day-group { margin: 0; }
.agenda-day-bar { margin: 0; padding: .55rem 1.25rem; background: var(--surface-subtle); border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.agenda-day-bar.is-today { color: var(--accent); }
.meetings-card .agenda-row { margin: 0; padding: 1rem 1.25rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--card); display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; }
.agenda-time-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 7.4rem; padding: .42rem .75rem; border: 1px solid transparent; border-radius: .65rem; background: var(--muted); color: var(--foreground); font-size: .82rem; font-weight: 500; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.agenda-time-pill.is-next { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.meetings-card .agenda-info { flex: 1 1 13rem; min-width: 0; }
.meetings-card .agenda-info h4 { margin: 0; font-size: .95rem; font-weight: 600; color: var(--foreground); }
.meetings-card .agenda-info p { margin: .2rem 0 0; font-size: .8rem; color: var(--muted-foreground); }
.meetings-card .agenda-actions { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.agenda-meet-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.3rem; padding: .35rem .9rem; border-radius: .75rem; font-size: .82rem; font-weight: 550; }
.agenda-meet-btn svg, .agenda-icon-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.agenda-icon-btn { width: 2.3rem; min-width: 2.3rem; min-height: 2.3rem; padding: 0; border-radius: .75rem; background: #fff; border-color: #d8bfb0; color: var(--muted-foreground); }
.agenda-icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.agenda-icon-btn.is-copied { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.meetings-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.25rem; background: var(--surface-subtle); border-radius: 0 0 1rem 1rem; font-size: .82rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .meetings-card-header { padding: 1rem; }
    .meetings-card-controls { flex-wrap: wrap; }
    .meetings-segmented { width: 100%; justify-content: space-between; }
    .meetings-segmented button { flex: 1; justify-content: center; }
    .meetings-card .agenda-row { padding: .95rem 1rem; }
    .meetings-card .agenda-actions { width: 100%; justify-content: flex-end; }
    .meetings-footer { padding: .8rem 1rem; }
}

/* Cabecera refinada: marca zentra., botón Programar reunión y menú de usuario dinámico. */
.site-header { padding-inline: max(1rem, calc((100% - 66rem) / 2)); }
.site-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--foreground); }
.site-brand-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .75rem; background: var(--accent); color: #fff; flex-shrink: 0; }
.site-brand-icon svg { width: 1.25rem; height: 1.25rem; }
.site-brand-wordmark { font-size: 1.4rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--foreground); }
.site-brand-wordmark .brand-dot { color: var(--accent); }
.form-site-header .site-brand-icon { width: 2.1rem; height: 2.1rem; border-radius: .65rem; }
.form-site-header .site-brand-wordmark { font-size: 1.2rem; }
.site-header .schedule-action { min-height: 2.6rem; padding: .45rem 1.15rem; border-radius: .85rem; font-weight: 600; font-size: .9rem; }
.account-menu { margin-left: .25rem; padding-left: .9rem; border-left: 1px solid var(--border); }
.account-menu:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
.admin-site-header { padding-inline: max(1rem, calc((100% - 56rem) / 2)); }
.account-menu > summary { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.65rem; padding: .28rem .75rem .28rem .35rem; border: 0; border-radius: .85rem; background: transparent; color: var(--foreground); font-weight: 500; transition: background-color .15s ease; }
.account-menu > summary:hover, .account-menu[open] > summary { background: var(--muted); }
.account-avatar { width: 2.05rem; height: 2.05rem; border: 1px solid var(--accent-border); border-radius: .6rem; background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 650; }
.account-name { font-size: .92rem; font-weight: 500; color: var(--foreground); }
.account-chevron { display: inline-flex; color: var(--muted-foreground); transition: transform .15s ease; }
.account-chevron svg { width: .95rem; height: .95rem; }
.account-popover { width: min(19.5rem, calc(100vw - 2rem)); padding: .65rem; border-radius: 1.1rem; box-shadow: 0 14px 40px #291d161c; }
.account-identity { padding: .85rem 1rem; border-radius: .85rem; background: var(--surface-subtle); }
.account-identity-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.account-identity-top .account-role { margin: 0; font-size: .72rem; font-weight: 650; letter-spacing: .06em; color: var(--accent); }
.account-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 500; color: #059669; }
.account-online-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #059669; flex-shrink: 0; }
.account-display-name { margin: 0; font-size: .95rem; font-weight: 600; color: var(--foreground); line-height: 1.3; }
.account-identity strong { margin-top: .15rem; font-size: .84rem; font-weight: 400; color: var(--muted-foreground); }
.account-identity.is-admin-identity strong { margin-top: .2rem; font-size: .92rem; color: var(--foreground); }
.account-logout-form { position: relative; border-top: 1px solid var(--border); margin-top: .65rem; padding-top: .45rem; }
.account-logout-icon { position: absolute; left: .85rem; top: calc(50% + .22rem); transform: translateY(-50%); display: inline-flex; color: #b91c1c; pointer-events: none; }
.account-logout-icon svg { width: 1rem; height: 1rem; }
.account-logout { min-height: 2.55rem; padding: .55rem .85rem .55rem 2.35rem; color: #b91c1c; font-size: .88rem; font-weight: 500; }
.account-logout:hover { background: #fef2f2; }
@media (max-width: 480px) {
    .account-menu { margin-left: 0; padding-left: .5rem; }
    .account-name { max-width: 7.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Refinamiento de la tarjeta derecha del login (Usuarios / Administración). */
.login-access-content { max-width: 440px; padding: 2rem 2.25rem; border: 1px solid var(--border); border-radius: 1.5rem; box-shadow: 0 10px 30px #431b1008; }
.login-tabs { padding: .28rem; gap: .28rem; margin: 0 0 2rem; background: #f2ece6; border: 1px solid #e7ddd4; border-radius: 1rem; }
.login-tabs button { min-height: 2.75rem; border-radius: .78rem; font-size: .92rem; font-weight: 500; color: var(--muted-foreground); }
.login-tabs button[aria-selected="true"] { background: #fff; color: var(--foreground); font-weight: 600; box-shadow: 0 2px 6px #431b1012; }
.login-access h1 { font-size: clamp(1.65rem, 2.5vw, 1.95rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; color: var(--foreground); }
.login-intro { margin-top: .75rem; font-size: .95rem; line-height: 1.55; color: var(--muted-foreground); }
.login-form { margin-top: 1.75rem; }
.login-form .login-primary { width: 100%; min-height: 3.15rem; padding: .6rem 1.25rem; border-radius: .85rem; gap: .65rem; justify-content: center; font-size: .95rem; font-weight: 600; background: var(--accent); color: #fff; box-shadow: 0 4px 12px #c2410c24; }
.login-form .login-primary:hover { background: var(--accent-hover); }
.login-btn-icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.login-btn-arrow { width: 1rem; height: 1rem; flex-shrink: 0; }
.login-account-hint { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 1.05rem; font-size: .82rem; color: var(--muted-foreground); }
.login-lock-svg { width: .92rem; height: .92rem; flex-shrink: 0; }
@media (max-width: 700px) { .login-access-content { padding: 1.5rem; } }

/* Administración editorial: plantilla terracota, datos reales y pestañas progresivas. */
.page-admin.admin-main { max-width: 58rem; margin: 1.75rem auto; }
.admin-editorial { display: block; }
.admin-editorial [hidden] { display: none !important; }
.editorial-heading { display: flex; align-items: center; justify-content: space-between; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-title-tabs { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-title-tabs h1 { font-size: 1.5rem; font-weight: 650; }
.admin-section-tabs, .editorial-segments { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem; background: #f5efe9; border: 1px solid #ebe2da; border-radius: .75rem; }
.admin-section-tabs a, .editorial-segments button { border: 0; min-height: 2rem; padding: .4rem .75rem; color: var(--muted-foreground); background: transparent; font: 500 .75rem system-ui, sans-serif; text-decoration: none; border-radius: .5rem; cursor: pointer; }
.admin-section-tabs a[aria-selected="true"], .editorial-segments button[aria-pressed="true"] { background: #fff; color: var(--foreground); box-shadow: 0 1px 3px #291d1614; }
.editorial-top-actions .button { min-height: 2rem; border-radius: .5rem; font-size: .7rem; padding: .35rem .6rem; }
.editorial-top-actions .google-integration-trigger { gap: .4rem; }
.editorial-top-actions .google-integration-trigger small { font-size: .65rem; color: inherit; }
.admin-session-card, .admin-access-card, .admin-audit-card { overflow: visible; border: 1px solid #ebe2da; border-radius: 1rem; background: #fff; box-shadow: 0 10px 28px -16px #291d1614; margin: 0 0 1rem; }
.admin-session-toolbar { padding: .85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; border-bottom: 1px solid #ebe2da; }
.editorial-segments { padding: .2rem; }
.editorial-segments button { padding: .35rem .55rem; min-height: 1.8rem; font-size: .7rem; }
.editorial-segments span, .editorial-count { padding: .1rem .4rem; background: #f5efe9; border-radius: .3rem; color: var(--muted-foreground); font-size: .7rem; font-weight: 500; }
.editorial-segments [aria-pressed="true"] span { background: var(--accent-soft); color: var(--accent); }
.editorial-week { display: inline-flex; gap: .25rem; align-items: center; background: #faf6f2; border: 1px solid #ebe2da; border-radius: .7rem; padding: .15rem; font-size: .7rem; font-weight: 500; }
.editorial-week a { display: grid; place-items: center; width: 1.8rem; min-height: 1.8rem; color: var(--muted-foreground); text-decoration: none; border-radius: .45rem; font-size: 1.2rem; }
.editorial-week a:hover { background: #fff; }
.admin-editorial .admin-filters, .editorial-list-controls { display: flex; align-items: center; gap: .6rem; padding: .75rem 1.25rem; border-bottom: 1px solid #ebe2da; }
.admin-editorial .admin-filters label:first-child, .editorial-list-controls label:first-child { flex: 1; min-width: 0; }
.admin-editorial input:not([type="hidden"]), .admin-editorial select { height: 2.25rem; min-height: 2.25rem; padding: .4rem .75rem; border: 1px solid #d6c5b8; border-radius: .75rem; background: #faf6f2; font-size: .8rem; }
.admin-editorial .admin-filters label:last-child { max-width: 15rem; }
.editorial-day-bar { padding: .55rem 1.25rem; border-bottom: 1px solid #ebe2da; background: #faf6f2; color: var(--muted-foreground); font-size: .65rem; letter-spacing: .05em; font-weight: 550; }
.editorial-session-row { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f2ebe5; }
.editorial-time { display: flex; flex-direction: column; gap: .25rem; min-width: 3rem; color: var(--muted-foreground); font-size: .7rem; }
.editorial-time strong { color: var(--foreground); font-weight: 550; font-size: .85rem; }
.editorial-session-info { flex: 1; min-width: 0; }
.editorial-session-info h3 { margin: 0; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.editorial-session-info p { font-size: .75rem; margin-top: .25rem; overflow-wrap: anywhere; }
.editorial-session-info small { display: block; margin-top: .25rem; font-size: .65rem; }
.editorial-state { border: 1px solid #ebe2da; border-radius: .5rem; padding: .25rem .45rem; background: #faf6f2; color: var(--muted-foreground); font-size: .65rem; white-space: nowrap; }
.editorial-state.is-live { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.editorial-row-actions { gap: .35rem; flex-wrap: nowrap; }
.editorial-row-actions .button { width: 2rem; height: 2rem; min-height: 2rem; padding: 0; border: 1px solid #d6c5b8; border-radius: .5rem; font-size: 1rem; color: var(--muted-foreground); }
.editorial-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .75rem 1.25rem; background: #faf6f2; border-radius: 0 0 1rem 1rem; border-top: 1px solid #ebe2da; }
.editorial-footer p { font-size: .7rem; }
.editorial-pager { display: flex; gap: .25rem; }
.editorial-pager button { width: 2rem; min-height: 2rem; padding: .3rem; border: 1px solid #d6c5b8; background: #fff; border-radius: .5rem; color: var(--muted-foreground); cursor: pointer; }
.editorial-pager button[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.editorial-pager button:disabled { opacity: .4; cursor: default; }
.editorial-empty, .admin-editorial .admin-filter-empty { padding: 2rem 1.25rem; text-align: center; font-size: .85rem; }
.editorial-card-heading { padding: 1.25rem; border-bottom: 1px solid #ebe2da; }
.editorial-card-heading h2 { font-size: 1rem; }
.editorial-card-heading p { font-size: .75rem; margin-top: .4rem; }
.editorial-authorize { display: flex; gap: .5rem; align-items: center; padding: 1rem 1.25rem; }
.editorial-authorize > label { flex: 1; min-width: 0; }
.editorial-authorize .button { min-height: 2.25rem; border-radius: .75rem; font-size: .75rem; }
.editorial-admin-identity { padding: .85rem 1.25rem; background: #faf6f2; border-bottom: 1px solid #ebe2da; }
.editorial-admin-identity h3 { margin: 0 0 .3rem; color: var(--muted-foreground); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.editorial-admin-identity p { font-size: .8rem; color: var(--foreground); }
.editorial-account-list { padding: 0; margin: 0; }
.editorial-account-list > li { display: flex; gap: .75rem; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid #ebe2da; }
.editorial-avatar, .editorial-audit-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--accent-soft); color: var(--accent); font-size: .75rem; flex-shrink: 0; }
.editorial-account-info { flex: 1; min-width: 0; }
.editorial-account-info strong { font-size: .8rem; font-weight: 400; overflow-wrap: anywhere; }
.editorial-account-info small { display: block; font-size: .7rem; margin-top: .2rem; }
.admin-editorial .revoke-access { position: relative; font-size: .75rem; }
.admin-editorial .revoke-access > summary { color: #b91c1c; cursor: pointer; }
.admin-editorial .revoke-access[open] { flex-basis: 100%; }
.admin-editorial .revoke-access p { margin: .6rem 0; font-size: .8rem; }
.editorial-account-list > li:has(.revoke-access[open]) { flex-wrap: wrap; }
.editorial-audit-row { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid #ebe2da; }
.editorial-audit-row > div { flex: 1; min-width: 0; }
.editorial-audit-row strong { font-size: .8rem; font-weight: 550; }
.editorial-audit-row p { font-size: .8rem; margin-top: .3rem; overflow-wrap: anywhere; }
.editorial-audit-row small { font-size: .7rem; overflow-wrap: anywhere; }
.editorial-audit-row time { color: var(--muted-foreground); font-size: .7rem; }
.admin-editorial .admin-statistics { padding: .85rem 1.25rem; box-shadow: none; }
@media (max-width: 700px) {
    .editorial-session-row { flex-wrap: wrap; padding: .9rem 1rem; gap: .6rem; }
    .editorial-session-info { flex-basis: calc(100% - 4rem); }
    .editorial-state { margin-left: 3.6rem; }
    .editorial-row-actions { margin-left: auto; }
    .admin-editorial .admin-filters, .editorial-list-controls { flex-wrap: wrap; }
    .admin-editorial .admin-filters label:first-child { flex-basis: 100%; }
    .admin-editorial .admin-filters label:last-child { max-width: none; width: 100%; }
    .editorial-audit-row { flex-wrap: wrap; }
    .editorial-audit-row time { margin-left: 2.75rem; }
    .editorial-authorize { flex-wrap: wrap; }
    .editorial-authorize > label { flex-basis: 100%; }
}

.admin-content.admin-editorial { padding: 0; border: 0; border-radius: 0; background: transparent; }
.editorial-row-actions svg { display: block; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.admin-editorial input:focus-visible, .admin-editorial select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Botones cuadrados de eliminar/cancelar con confirmación nativa en filas del dashboard. */
.row-confirm-menu { position: relative; display: inline-flex; }
.row-confirm-trigger { list-style: none; }
.row-confirm-trigger::-webkit-details-marker { display: none; }
.row-confirm-trigger:hover, .row-confirm-menu[open] > .row-confirm-trigger { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.row-confirm-popover { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 30; width: 16.5rem; padding: .9rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--card); box-shadow: 0 12px 32px #291d161f; text-align: left; }
.row-confirm-popover p { margin: 0 0 .75rem; font-size: .8rem; line-height: 1.45; color: var(--muted-foreground); }
.row-confirm-popover p strong { color: var(--foreground); font-weight: 600; }
.row-confirm-popover .row-confirm-danger { width: 100%; height: auto; min-height: 2.25rem; padding: .4rem .85rem; border-radius: .75rem; border-color: #fca5a5; background: #fef2f2; color: #b91c1c; font-size: .8rem; font-weight: 550; }
.editorial-row-actions .row-confirm-popover .row-confirm-danger { width: 100%; height: auto; min-height: 2.25rem; padding: .4rem .85rem; }
.row-confirm-popover .row-confirm-danger:hover { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.row-confirm-popover .row-confirm-danger[aria-disabled="true"] { opacity: .7; cursor: wait; }

/* Pestaña Accesos: tarjeta Administrador fijo + tarjeta Cuentas autorizadas compacta. */
#hosts:target { outline: none; }
.admin-access-panel { display: grid; gap: 1rem; }
.editorial-admin-banner { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.25rem; border: 1px solid var(--border); border-radius: 1rem; background: #f6f1eb; }
.admin-shield-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: #291d16; color: #fff; }
.admin-shield-icon svg { width: 1.25rem; height: 1.25rem; }
.admin-banner-info { flex: 1 1 auto; min-width: 0; }
.admin-banner-info h3 { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.admin-banner-info p { margin: .15rem 0 0; font-size: .92rem; font-weight: 400; color: var(--foreground); overflow-wrap: anywhere; }
.admin-fixed-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: .65rem; background: #fff; color: var(--muted-foreground); font-size: .78rem; font-weight: 500; flex-shrink: 0; }
.admin-fixed-badge svg { width: .85rem; height: .85rem; }
.editorial-access-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.editorial-access-header h2 { display: inline-flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 650; }
.editorial-access-search { flex: 0 1 15.5rem; min-width: 10rem; }
.editorial-access-search[hidden] { display: none; }
.access-search-field { position: relative; display: flex; align-items: center; width: 100%; font-weight: 400; }
.access-search-field svg { position: absolute; left: .75rem; width: .95rem; height: .95rem; color: var(--muted-foreground); pointer-events: none; }
.admin-editorial .access-search-field input { height: 2.3rem; min-height: 2.3rem; padding: .35rem .75rem .35rem 2.2rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface-subtle); font-size: .84rem; }
.admin-access-card .editorial-authorize { display: flex; align-items: center; gap: .65rem; padding: .95rem 1.25rem; border-bottom: 1px solid var(--border); margin: 0; }
.admin-access-card .editorial-authorize label { flex: 1 1 auto; min-width: 0; margin: 0; }
.admin-editorial .editorial-authorize input { height: 2.6rem; min-height: 2.6rem; padding: .45rem .9rem; border: 1px solid #d6c5b8; border-radius: .75rem; background: #fff; font-size: .88rem; }
.admin-access-card .editorial-authorize .button { min-height: 2.6rem; padding: .45rem 1.15rem; border-radius: .75rem; font-size: .88rem; font-weight: 600; flex-shrink: 0; }
.admin-access-card .editorial-account-list { margin: 0; }
.admin-access-card .editorial-account-list li { display: flex; align-items: center; gap: .85rem; padding: .85rem 1.25rem; border-top: 0; border-bottom: 1px solid var(--border); }
.admin-access-card .editorial-account-list li:last-child { border-bottom: 0; }
.admin-access-card .editorial-avatar { display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border: 1px solid var(--accent-border); border-radius: .65rem; background: var(--accent-soft); color: var(--accent); font-size: .84rem; font-weight: 650; }
.admin-access-card .editorial-account-info { flex: 1 1 auto; min-width: 0; }
.admin-access-card .editorial-account-info strong { display: block; font-size: .92rem; font-weight: 400; color: var(--foreground); overflow-wrap: anywhere; }
.admin-access-card .editorial-account-info small { display: block; margin-top: .15rem; font-size: .78rem; color: var(--muted-foreground); }
.admin-editorial .revoke-access { position: relative; display: inline-flex; flex-shrink: 0; }
.admin-editorial .revoke-access[open] { flex-basis: auto; }
.admin-editorial .revoke-access > summary.revoke-icon-trigger { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; min-width: 2.2rem; height: 2.2rem; min-height: 2.2rem; padding: 0; border: 1px solid #d8bfb0; border-radius: .65rem; background: #fff; color: var(--muted-foreground); }
.admin-editorial .revoke-access > summary.revoke-icon-trigger svg { width: 1rem; height: 1rem; }
.admin-editorial .revoke-access > summary.revoke-icon-trigger:hover,
.admin-editorial .revoke-access[open] > summary.revoke-icon-trigger { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
@media (max-width: 600px) {
    .editorial-admin-banner { padding: .85rem 1rem; }
    .editorial-access-header { padding: .9rem 1rem; }
    .editorial-access-search { flex: 1 1 100%; }
    .admin-access-card .editorial-authorize { flex-wrap: wrap; padding: .9rem 1rem; }
    .admin-access-card .editorial-authorize .button { width: 100%; }
    .admin-access-card .editorial-account-list li { padding: .85rem 1rem; }
}

/* Pestaña Auditoría: barra segmentada por categoría, agrupación por día y detalle desplegable. */
.audit-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.audit-toolbar[hidden] { display: none; }
.audit-segments { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem; padding: .22rem; border: 1px solid var(--border); border-radius: .8rem; background: #f5efe9; }
.audit-segments button { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.15rem; padding: .28rem .75rem; border: 0; border-radius: .6rem; background: transparent; color: var(--muted-foreground); font: 500 .82rem system-ui, sans-serif; cursor: pointer; font-variant-numeric: tabular-nums; }
.audit-segments button span { display: inline-flex; align-items: center; justify-content: center; font-size: .76rem; color: var(--muted-foreground); }
.audit-segments button:hover { color: var(--foreground); }
.audit-segments button[aria-pressed="true"] { background: #fff; color: var(--foreground); box-shadow: 0 1px 2px #291d1612; }
.audit-segments button[aria-pressed="true"] span { min-width: 1.3rem; padding: .1rem .38rem; border-radius: .38rem; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.audit-search-field { position: relative; display: flex; align-items: center; flex: 0 1 16.5rem; min-width: 11rem; font-weight: 400; }
.audit-search-field svg { position: absolute; left: .75rem; width: .95rem; height: .95rem; color: var(--muted-foreground); pointer-events: none; }
.admin-editorial .audit-search-field input { height: 2.35rem; min-height: 2.35rem; padding: .35rem .75rem .35rem 2.2rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface-subtle); font-size: .84rem; }
.audit-day-group[hidden] { display: none; }
.audit-row-wrap { border-bottom: 1px solid var(--border); padding: .9rem 1.25rem; }
.audit-row-wrap:last-child { border-bottom: 0; }
.audit-row-main { display: flex; align-items: center; gap: .9rem; }
.audit-icon-box { display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: .65rem; font-size: 1rem; font-weight: 600; line-height: 1; }
.audit-icon-box.is-add { background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); }
.audit-icon-box.is-remove { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.audit-row-body { flex: 1 1 auto; min-width: 0; }
.audit-row-headline { margin: 0; font-size: .92rem; line-height: 1.35; color: var(--foreground); overflow-wrap: anywhere; }
.audit-row-headline strong { font-weight: 600; color: var(--foreground); }
.audit-sep { margin: 0 .4rem; color: var(--muted-foreground); }
.audit-resource { font-weight: 400; color: var(--muted-foreground); }
.audit-row-actor { margin: .15rem 0 0; font-size: .8rem; color: var(--muted-foreground); overflow-wrap: anywhere; }
.audit-row-right { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.audit-row-right time { font-size: .82rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.audit-chevron-btn { width: 2.15rem; min-width: 2.15rem; height: 2.15rem; min-height: 2.15rem; padding: 0; border-radius: .6rem; border-color: #d8bfb0; background: #fff; color: var(--muted-foreground); }
.audit-chevron-btn svg { width: .95rem; height: .95rem; transition: transform .15s ease; }
.audit-chevron-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.audit-chevron-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.audit-detail-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin: .8rem 0 .15rem 3.15rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-subtle); }
.audit-detail-panel[hidden] { display: none; }
.audit-detail-fields { display: grid; gap: .3rem; min-width: 0; flex: 1 1 16rem; }
.audit-detail-fields p { margin: 0; font-size: .8rem; color: var(--muted-foreground); overflow-wrap: anywhere; }
.audit-detail-fields strong { font-weight: 600; color: var(--foreground); }
.audit-detail-fields code { font-family: ui-monospace, monospace; font-size: .78rem; color: var(--muted-foreground); }
.audit-copy-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.2rem; padding: .35rem .8rem; border-radius: .65rem; border-color: #d8bfb0; background: #fff; color: var(--foreground); font-size: .8rem; font-weight: 500; flex-shrink: 0; }
.audit-copy-btn svg { width: .9rem; height: .9rem; }
.audit-copy-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
@media (max-width: 640px) {
    .audit-toolbar { padding: .9rem 1rem; }
    .audit-search-field { flex: 1 1 100%; }
    .audit-row-wrap { padding: .85rem 1rem; }
    .audit-detail-panel { margin-left: 0; }
}


/* Panel compacto sin título redundante ni estadísticas. */
.editorial-heading { margin-bottom: 1.25rem; }
.editorial-session-row { padding: .85rem 1.25rem; gap: 1rem; }
.editorial-time { position: relative; flex-direction: row; align-items: center; flex-wrap: wrap; gap: .15rem .3rem; width: 6.75rem; min-width: 6.75rem; padding: .6rem .6rem .6rem 1.35rem; border: 1px solid transparent; border-radius: .75rem; background: #f5efe9; }
.editorial-time strong, .editorial-time > span:not(.editorial-time-dot) { font-size: .75rem; font-weight: 500; color: inherit; }
.editorial-time strong::after { content: ' –'; }
.editorial-time-dot { position: absolute; width: .35rem; height: .35rem; left: .6rem; top: calc(50% - .175rem); background: #a79384; border-radius: 50%; }
.editorial-time.is-active { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.editorial-time.is-active .editorial-time-dot { background: #c2410c; }
.editorial-row-actions .session-link:not(.button-outline) { color: #fff; border-color: var(--accent); background: var(--accent); }
.editorial-session-info p { font-size: .75rem; }
.editorial-day-bar.is-today { color: var(--accent); }
.editorial-calendar-menu { position: relative; }
.editorial-calendar-menu summary { list-style: none; cursor: pointer; color: var(--muted-foreground); padding: .2rem; }
.editorial-calendar-menu summary::-webkit-details-marker { display: none; }
.editorial-calendar-menu[open] > a { position: absolute; right: 0; top: 2rem; z-index: 5; width: 9rem; background: #fff; border: 1px solid var(--border); padding: .6rem; border-radius: .5rem; color: var(--foreground); font-size: .75rem; box-shadow: 0 5px 20px #291d1614; }
.audit-outcome { font-size: .75rem !important; color: #9a3412; }
.audit-detail { margin-top: .4rem; font-size: .7rem; }
.audit-detail summary { cursor: pointer; color: var(--muted-foreground); }
.audit-detail p { font-size: .7rem; overflow-wrap: anywhere; margin-top: .4rem; }
@media (max-width: 700px) {
    .editorial-session-info { flex-basis: calc(100% - 8rem); }
    .editorial-row-actions { margin-left: auto; }
}

.editorial-row-actions .session-link { display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.editorial-time { height: 2.75rem; padding-block: .4rem; gap: 0 .3rem; line-height: 1.15; }
.editor-calendar-link { display: inline-block; color: var(--accent-hover); font-size: .75rem; margin-top: .35rem; }


/* Superficie única de notificación: posición estable y sin franja en el contenido. */
.zentra-toast { position: fixed; z-index: 1000; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; width: max-content; max-width: min(27rem, calc(100vw - 2rem)); padding: .85rem .9rem .85rem 1rem; border: 1px solid #e7ddd4; border-radius: 1rem; background: #fff; color: #291d16; box-shadow: 0 8px 32px #291d161a; }
.zentra-toast[hidden] { display: none; }
.toast-icon { display: grid; place-items: center; flex-shrink: 0; width: 1.5rem; height: 1.5rem; background: #ecfdf5; color: #047857; border-radius: 50%; font-size: .85rem; font-weight: 650; }
[data-toast-type="error"] .toast-icon { color: #b91c1c; background: #fef2f2; }
[data-toast-type="warning"] .toast-icon { color: #92400e; background: #fffbeb; }
[data-toast-type="info"] .toast-icon { color: #6b584c; background: #f5efe9; }
.toast-message { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: .85rem; line-height: 1.5; }
.toast-close { display: grid; place-items: center; flex-shrink: 0; min-width: 2.75rem; min-height: 2.75rem; padding: .4rem; border: 0; border-radius: .6rem; background: transparent; color: #6b584c; font-size: 1.35rem; cursor: pointer; }
.toast-close[hidden] { display: none; }
.toast-close:hover { background: #f5efe9; color: #291d16; }
.toast-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body:has(.zentra-toast:not([hidden])) { padding-bottom: 5rem; }
@media (max-width: 600px) {
    .zentra-toast { left: max(.75rem, env(safe-area-inset-left)); right: max(.75rem, env(safe-area-inset-right)); width: auto; max-width: none; bottom: max(.75rem, env(safe-area-inset-bottom)); }
}


/* Pie único de edición: abandonar cambios, cancelar el evento y guardar. */
.editor-stacked .editor-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.editor-stacked .editor-cancel-trigger { color: #b91c1c; border-color: #f0b8b8; background: #fff; font-weight: 500; }
.editor-stacked .editor-cancel-trigger:hover, .editor-cancel-menu[open] > .editor-cancel-trigger { color: #991b1b; background: #fef2f2; border-color: #dc2626; }
.editor-cancel-menu .row-confirm-popover { top: auto; bottom: calc(100% + .5rem); width: min(19rem, calc(100vw - 3rem)); }
.editor-stacked .editor-cancel-menu .row-confirm-danger { width: 100%; min-height: 2.5rem; border-color: #b91c1c; background: #b91c1c; color: #fff; }
.editor-stacked .editor-cancel-menu .row-confirm-danger:hover { background: #991b1b; }
#cancel-meeting-form { margin: 0; padding: 0; }
@media (max-width: 520px) {
    .editor-stacked .editor-form-actions { gap: .65rem; }
    .editor-stacked .editor-form-actions > a, .editor-stacked .editor-form-actions > details { flex: 1 1 auto; }
    .editor-stacked .editor-form-actions > details > summary { width: 100%; }
    .editor-stacked .editor-form-actions > .editor-save { flex: 1 1 100%; }
}

/* Server-paginated Agenda keeps native GET navigation and keyboard focus. */
.meetings-segmented a { min-height: 2.5rem; border: 0; background: transparent; color: var(--muted-foreground); }
.meetings-segmented a[aria-current="page"] { background: #fff; color: var(--foreground); box-shadow: 0 1px 2px #291d1612; }
.meetings-count { white-space: nowrap; }
@media (max-width: 640px) { .meetings-segmented a { flex: 1; } }
