/* Sistema común de gestión. El chat conserva su interfaz de mensajería. */
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)){background:#f4f5f6!important;color:#202124!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main{padding:16px 20px!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap{padding:12px 8px 40px!important;max-width:1440px!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap h1{font-size:32px!important;line-height:1.2!important;letter-spacing:-.5px!important;font-weight:650!important;overflow-wrap:anywhere}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap h2{font-size:22px!important;line-height:1.3!important;letter-spacing:-.2px!important;font-weight:600!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap h3{line-height:1.4!important;letter-spacing:normal!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .section-kicker{font-size:10px!important;line-height:1.4!important;letter-spacing:1px!important;background:transparent!important;border:0!important;padding:0!important;color:#6b7076!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.card,.page-hero,.section-admin-hero,.admin-dashboard-hero){border:1px solid #e1e4e7!important;border-radius:14px!important;box-shadow:none!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.page-hero,.section-admin-hero,.admin-dashboard-hero,.ux-tools-hero):not(.mq-file-hero){background:#fff!important;color:#202124!important;padding:24px!important;margin-bottom:20px!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.page-hero,.section-admin-hero,.admin-dashboard-hero,.ux-tools-hero):not(.mq-file-hero) :is(h1,h2,p){color:#202124!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .mq-file-hero .section-kicker{color:#bbb!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.page-hero,.section-admin-hero,.admin-dashboard-hero,.ux-tools-hero) p{font-size:14px!important;line-height:1.6!important;margin:10px 0!important;max-width:850px}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-management-nav{display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px!important;margin:0 0 16px!important;background:#eef0f2!important;border:0!important;border-radius:10px!important;box-shadow:none!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-management-nav>div:first-child p{display:none!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-management-nav>.ux-management-desktop{display:flex!important;gap:6px;flex-wrap:wrap}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-management-nav a{font-size:12px!important;padding:8px 12px!important;border:0!important;border-radius:8px!important;min-height:38px!important;background:#fff!important;color:#444!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-management-nav a[aria-current]{background:#111!important;color:#fff!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.btn,button.btn){font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:normal!important;min-height:44px!important;padding:10px 14px!important;border-radius:9px!important;white-space:normal!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea){font-size:14px!important;line-height:1.5!important;min-height:44px!important;border-radius:9px!important;border-color:#d4d8dd!important;background:#fff!important;box-sizing:border-box;max-width:100%}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.analytics-billing-card,.billing-period-card,.billing-note){background:#fff!important;border-color:#e1e4e7!important;color:#202124!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .billing-bars{max-width:100%;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;padding-top:32px!important;padding-bottom:42px!important;scrollbar-width:thin}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .billing-bar{flex:1 0 46px;min-width:46px}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .billing-bar span{background:#30343a!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .billing-bar.is-future span{background:#ddd!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-tools-grid{gap:14px!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-tools-grid>a{border-radius:12px!important;background:#fff!important;border:1px solid #e1e4e7!important;padding:20px!important;box-shadow:none!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-topbar{padding:10px 12px!important;border-radius:12px!important;border:1px solid #e1e4e7!important}
@media(max-width:760px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main{padding:8px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap{padding:8px 0 28px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap h1{font-size:26px!important;letter-spacing:-.3px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap h2{font-size:20px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.card,.page-hero,.section-admin-hero,.admin-dashboard-hero,.ux-tools-hero):not(.mq-file-hero){padding:18px!important;border-radius:12px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-management-nav{padding:10px!important;gap:8px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-management-nav>div:first-child{width:100%}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-topbar .admin-topbar-actions{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;gap:6px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-topbar .admin-topbar-actions :is(.admin-security-bell,.admin-notification-bell,.ux-portal-links>summary){font-size:11px!important;padding:8px!important;min-height:38px!important;white-space:nowrap!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-topbar .admin-topbar-actions .ux-portal-links{flex:0 1 auto!important;width:auto!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.ux-live-filters,.live-filter-bar){grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
}
/* Portales: títulos legibles y controles coherentes; preserva portadas y chat. */
html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) :is(.premium-card,.card){box-shadow:none!important;border-radius:14px!important}
html body:is(.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) :is(h1,h2){letter-spacing:-.3px!important;line-height:1.25!important;overflow-wrap:anywhere}
html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) :is(.btn,button.btn){min-height:44px!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:normal!important;border-radius:9px!important}
@media(max-width:760px){html body:is(.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) h1{font-size:28px!important}html body:is(.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) h2{font-size:20px!important}}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.page-hero,.section-admin-hero,.admin-dashboard-hero,.ux-tools-hero):not(.mq-file-hero) p{font-weight:400!important;color:#626a73!important}
/* Corrige nombres de perfil oscuros sobre las cabeceras negras del equipo. */
html body:is(.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) :is(.premium-hero,.dj-mobile-pro-hero):not(.has-cover) :is(b,strong){color:#fff!important}
html body:is(.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) :is(.premium-hero,.dj-mobile-pro-hero):not(.has-cover) .meta-chip{border-radius:999px!important;font-size:12px!important;line-height:1.4!important;padding:8px 12px!important}
@media(max-width:760px){html body:is(.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) :is(.premium-hero,.dj-mobile-pro-hero):not(.has-cover){padding:24px 20px!important;border-radius:16px!important}html body:is(.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) :is(.premium-hero,.dj-mobile-pro-hero):not(.has-cover) .premium-subtitle{font-size:14px!important;line-height:1.5!important}}
/* Las ventanas secundarias de novios usan el mismo lenguaje del panel. */
html body.portal-couple-v361:not(:has(.mq-chat)) :is(.premium-hero,.couple-hero-v362):not(.has-couple-cover){background:#fff!important;border:1px solid #e1e4e7!important;border-radius:14px!important;box-shadow:none!important;padding:28px!important}
html body.portal-couple-v361:not(:has(.mq-chat)):not(:has(.ux-studio)) h1{font-size:34px!important;line-height:1.25!important;letter-spacing:-.5px!important;font-weight:600!important;color:#202124!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .ux-couple-shortcuts{background:#fff!important;border:1px solid #e1e4e7!important;border-radius:12px!important;box-shadow:none!important;padding:8px!important;gap:8px!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .ux-couple-shortcuts a{background:#fff!important;color:#444!important;border-radius:8px!important;font-weight:600!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .ux-couple-shortcuts a[aria-current=page]{background:#111!important;color:#fff!important}
html body.portal-couple-v361:not(:has(.mq-chat)) :is(.section-kicker,.meta-chip){background:#f1f2f3!important;color:#626a73!important;border:0!important;border-radius:8px!important;box-shadow:none!important;font-size:11px!important;letter-spacing:.5px!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .countdown-card{background:#f6f7f8!important;color:#202124!important;border:1px solid #e1e4e7!important;border-radius:12px!important}
html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) .btn.primary{background:#111!important;color:#fff!important;border-color:#111!important;box-shadow:none!important}
html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat))>.top{border:1px solid #e1e4e7!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important}
@media(max-width:760px){html body.portal-couple-v361:not(:has(.mq-chat)):not(:has(.ux-studio)) h1{font-size:26px!important}html body.portal-couple-v361:not(:has(.mq-chat)) :is(.premium-hero,.couple-hero-v362):not(.has-couple-cover){padding:20px!important}html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat)) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;max-width:100%}}

/* Acciones de la boda: gastos visibles y herramientas secundarias agrupadas. */
.mq-event-primary-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.mq-event-secondary-tools{border:1px solid #e1e4e7;border-radius:12px;background:#fff;margin:0 0 16px;padding:12px 16px}
.mq-event-secondary-tools>summary{cursor:pointer;font-size:14px;font-weight:600;min-height:32px;align-content:center}
.mq-event-secondary-tools .portal-menu{margin-top:12px}
#nuevo-gasto,#gastos{scroll-margin-top:100px}
@media(max-width:760px){.mq-event-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mq-event-primary-actions .btn{text-align:center;white-space:normal!important}.mq-event-secondary-tools{padding:12px}}

/* Novios: un solo estilo en cada ventana, agenda limpia y cabecera compacta. */
html body.portal-couple-v361:not(:has(.mq-chat)){background:#f5f5f5!important;color:#191919!important}
html body.portal-couple-v361:not(:has(.mq-chat))>.top{border-radius:12px!important;box-shadow:none!important}
html body.portal-couple-v361:not(:has(.mq-chat))>.top nav{display:none!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .portal-premium-couple-v361 :is(h1,h2,h3,p,.premium-subtitle,.countdown-card b,.countdown-card span){color:#191919!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .portal-premium-couple-v361 .muted{color:#646464!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .couple-calls-page .calls-hero{padding:24px!important;border-top:1px solid #ddd!important;min-height:0!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .couple-calls-page .calls-hero .hero-meta{display:none!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .couple-calls-page .calls-hero .countdown-card{box-shadow:none!important;padding:16px!important;min-width:0!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .call-schedule-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .call-schedule-grid>*{border-radius:0!important;box-shadow:none!important;padding:14px 0!important;border:0!important;border-bottom:1px solid #eee!important;background:#fff!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .office-meeting-note{background:#f5f5f5!important;border-color:#ddd!important;color:#333!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .office-meeting-note span{color:#555!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .call-slot-btn{border-radius:8px!important;box-shadow:none!important;min-height:44px!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .call-slot-btn.selected{background:#111!important;color:#fff!important;border-color:#111!important}
html body.portal-couple-v361:not(:has(.mq-chat)) .portal-premium-couple-v361 .has-couple-cover :is(h1,h2,h3,p,.premium-subtitle,.countdown-card b,.countdown-card span){color:#fff!important}
@media(max-width:760px){html body.portal-couple-v361 .couple-hero-v362.has-couple-cover{background-size:contain!important;background-color:#171717!important}html body.portal-couple-v361 .couple-calls-page .calls-hero .countdown-card{display:none!important}}
.cover-auto-status{font-size:13px;color:#555;line-height:1.5;grid-column:1/-1}

html body.portal-couple-v361 .ux-studio .couple-hero-v362.has-couple-cover{background:#fff!important;padding:0!important;overflow:hidden!important;min-height:0!important;border:1px solid #ddd!important;box-shadow:none!important;border-radius:16px!important}
html body.portal-couple-v361 .ux-studio .couple-hero-v362.has-couple-cover:after{display:none!important}
.mq-couple-portrait{display:block;width:100%;aspect-ratio:16/9;background:#171717;max-height:480px}
html body.portal-couple-v361 .ux-studio .couple-hero-v362.has-couple-cover .premium-hero-content{padding:24px!important;box-sizing:border-box!important}
html body.portal-couple-v361 .ux-studio .couple-hero-v362.has-couple-cover :is(h1,p,.countdown-card b,.countdown-card span){color:#191919!important;text-shadow:none!important}
html body.portal-couple-v361 .ux-studio .couple-hero-v362.has-couple-cover :is(.section-kicker,.meta-chip){background:#f2f2f2!important;color:#555!important;backdrop-filter:none!important}
html body.portal-couple-v361 .ux-studio .couple-hero-v362.has-couple-cover .countdown-card{background:#f6f6f6!important;box-shadow:none!important;border:1px solid #ddd!important;color:#191919!important}
@media(max-width:760px){.mq-couple-portrait{aspect-ratio:4/3;object-fit:contain!important;max-height:360px}html body.portal-couple-v361 .ux-studio .couple-hero-v362.has-couple-cover .premium-hero-content{padding:18px!important}}

.mq-couple-photo-frame{width:100%;aspect-ratio:16/9;max-height:480px;overflow:hidden;background:#171717}
.mq-couple-photo-frame .mq-couple-portrait{height:100%;aspect-ratio:auto;max-height:none;transform-origin:center}
@media(max-width:760px){.mq-couple-photo-frame{aspect-ratio:4/3;max-height:360px}.mq-couple-photo-frame .mq-couple-portrait{transform:none!important}}
html body.portal-couple-v361 .ux-studio .premium-hero.couple-hero-v362.has-couple-cover{display:block!important}
html body.portal-couple-v361 .ux-studio .premium-hero.couple-hero-v362.has-couple-cover .premium-hero-content{display:grid!important;grid-template-columns:minmax(0,1fr) 170px!important;align-items:center!important;gap:20px!important}
html body.portal-couple-v361 .ux-studio .premium-hero.couple-hero-v362.has-couple-cover h1{font-size:36px!important;font-weight:600!important;letter-spacing:-.5px!important;line-height:1.2!important;overflow-wrap:anywhere!important;margin:12px 0!important}
@media(max-width:760px){html body.portal-couple-v361 .ux-studio .premium-hero.couple-hero-v362.has-couple-cover .premium-hero-content{grid-template-columns:1fr!important}html body.portal-couple-v361 .ux-studio .premium-hero.couple-hero-v362.has-couple-cover h1{font-size:26px!important}html body.portal-couple-v361 .ux-studio .premium-hero.couple-hero-v362.has-couple-cover .countdown-card{padding:12px!important}}

/* Ficha musical: navegación directa y bloques administrativos compactos. */
.mq-event-section-nav{display:flex;flex-wrap:wrap;gap:6px;padding:10px;background:#fff;border:1px solid #ddd;border-radius:12px;margin:12px 0}
.mq-event-section-nav a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:8px;color:#333;text-decoration:none;font-size:13px;font-weight:600;background:#f5f5f5}
.mq-event-section-nav a:focus-visible,.mq-event-fold>summary:focus-visible{outline:2px solid #111;outline-offset:3px}
.mq-event-fold{margin:12px 0;border:1px solid #ddd;border-radius:12px;background:#fff;min-width:0}
.mq-event-fold>summary{padding:18px;cursor:pointer;font-size:15px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.mq-event-fold[open]>summary{border-bottom:1px solid #eee}
.mq-event-fold>.card,.mq-event-fold>.grid{margin:0!important;border:0!important;box-shadow:none!important}
.mq-event-fold>summary small{display:block;font-weight:400;color:#666;font-size:12px;padding-left:14px}
.mq-event-fold,.mq-event-fold [id]{scroll-margin-top:24px}
@media(max-width:760px){.mq-event-section-nav a{flex:1;justify-content:center;padding:0 10px}.mq-event-fold>summary{padding:16px;font-size:14px}}
.mq-payment-gateway-settings{border:1px solid #ddd;border-radius:12px;margin:20px 0;padding:20px;min-width:0}
.mq-payment-gateway-settings legend{font-weight:600;padding:0 8px}
.mq-payment-toggle{display:flex;align-items:center;gap:10px;font-weight:600;line-height:1.5}
.mq-payment-toggle input{width:20px!important;height:20px;flex:0 0 auto}
.mq-payment-gateway-settings input[type=url]{width:100%;box-sizing:border-box}
.mq-payment-gateway-settings [role=alert]{color:#a32424}

html body.portal-admin-c-v1 [data-work-list] .ux-live-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:760px){html body.portal-admin-c-v1 [data-work-list] .ux-live-filters{grid-template-columns:1fr!important}}

.mq-work-advanced{margin:14px 0;border:1px solid #ddd;border-radius:10px;padding:12px 16px;background:#fafafa}
.mq-work-advanced>summary{cursor:pointer;min-height:30px;align-content:center;font-size:13px;font-weight:600}
.mq-work-advanced[open]>.ux-live-filters{margin-top:14px}

.mq-operational-next h3{margin:0 0 8px;font-size:18px}
.mq-operational-completed,.mq-operational-more{border:1px solid #ddd;border-radius:10px;margin:14px 0;padding:12px 16px;background:#fafafa}
.mq-operational-completed>summary,.mq-operational-more>summary{cursor:pointer;font-size:13px;font-weight:600;min-height:32px;align-content:center}
.mq-operational-completed .op-check-grid{margin-top:14px}
.mq-operational-primary-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
@media(max-width:760px){.mq-operational-primary-actions{display:grid;grid-template-columns:1fr}.mq-operational-primary-actions .btn{justify-content:center;text-align:center}}

html body.portal-admin-c-v1 .operational-event-row .mq-operational-completed>summary,html body.portal-admin-c-v1 .operational-event-row .mq-operational-more>summary{display:block!important;padding:8px 0!important;grid-template-columns:none!important;background:transparent!important}
html body.portal-admin-c-v1 .operational-event-row>summary{grid-template-columns:32px 125px minmax(0,1fr) 150px 90px 24px!important;gap:12px!important}
html body.portal-admin-c-v1 .operational-event-row>summary .op-row-select-control{grid-column:1!important}
html body.portal-admin-c-v1 .operational-event-row>summary .op-row-select-control span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
html body.portal-admin-c-v1 .operational-event-row>summary .op-date-badge{grid-column:2!important}
html body.portal-admin-c-v1 .operational-event-row>summary .op-main-title{grid-column:3!important;min-width:0}
html body.portal-admin-c-v1 .operational-event-row>summary .op-main-title h3{font-size:18px!important;line-height:1.3!important;letter-spacing:normal!important}
html body.portal-admin-c-v1 .operational-event-row>summary .op-badges{grid-column:4!important;grid-row:auto!important}
html body.portal-admin-c-v1 .operational-event-row>summary .op-score-wrap{grid-column:5!important;grid-row:auto!important}
html body.portal-admin-c-v1 .operational-event-row>summary .accordion-chevron{grid-column:6!important;grid-row:auto!important}
@media(max-width:1100px){html body.portal-admin-c-v1 .operational-event-row>summary{grid-template-columns:32px minmax(0,1fr) 80px!important}html body.portal-admin-c-v1 .operational-event-row>summary .op-main-title{grid-column:1/-1!important;grid-row:2!important}html body.portal-admin-c-v1 .operational-event-row>summary .op-badges{grid-column:1/-1!important;grid-row:3!important}html body.portal-admin-c-v1 .operational-event-row>summary .op-score-wrap{grid-column:3!important;grid-row:1!important}html body.portal-admin-c-v1 .operational-event-row>summary .accordion-chevron{display:none!important}}

.ux-expense-shortcuts{grid-column:1/-1;display:grid;gap:8px;padding:14px;background:#f5f5f5;border-radius:12px}.ux-expense-shortcuts>span{font-weight:700}.ux-expense-shortcuts>div{display:flex;flex-wrap:wrap;gap:8px}.ux-expense-shortcuts small{color:#666}

.ux-expense-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:12px}.ux-expense-history{margin-top:24px}.ux-expense-row[hidden]{display:none!important}@media(max-width:900px){.ux-expense-filters{grid-template-columns:1fr 1fr}}@media(max-width:540px){.ux-expense-filters{grid-template-columns:1fr}}

.mq-wedding-row-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.mq-wedding-row-shortcuts a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 10px;border:1px solid #dedede;border-radius:8px;background:white;color:#171717;font-size:12px;font-weight:600;text-decoration:none}.mq-wedding-row-shortcuts a:hover{background:#171717;color:white}.mq-wedding-row-shortcuts a:focus-visible{outline:2px solid #171717;outline-offset:2px}@media(max-width:760px){.mq-wedding-row-shortcuts a{min-height:44px;flex:1 1 auto}}

[data-mq-wedding-list]>.section-event-card:target{outline:2px solid #171717;outline-offset:3px;scroll-margin-block:120px}

.mq-wedding-team-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.mq-wedding-team-filters label{display:grid;gap:6px;font-weight:600}@media(max-width:600px){.mq-wedding-team-filters{grid-template-columns:1fr}}

.mq-profit-review-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.ux-profit-table tr[hidden]{display:none!important}@media(max-width:600px){.mq-profit-review-filters{grid-template-columns:1fr}}

/* Economic review stays readable without horizontal scrolling on phones. */
@media(max-width:600px){
 body.portal-admin-c-v1 .ux-profit-table{overflow:visible}
 body.portal-admin-c-v1 .ux-profit-table table,body.portal-admin-c-v1 .ux-profit-table tbody{display:block}
 body.portal-admin-c-v1 .ux-profit-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.portal-admin-c-v1 .ux-profit-table tr{display:block;margin-bottom:12px;padding:14px;border:1px solid #dedede;border-radius:12px;background:#fff}
 body.portal-admin-c-v1 .ux-profit-table td{display:flex;justify-content:space-between;gap:12px;padding:8px 0;white-space:normal;overflow-wrap:anywhere;text-align:right}
 body.portal-admin-c-v1 .ux-profit-table td:first-child{display:block;text-align:left;padding-top:0}
 body.portal-admin-c-v1 .ux-profit-table td:first-child a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
 body.portal-admin-c-v1 .ux-profit-table td[data-label]::before{content:attr(data-label);font-weight:600;text-align:left;flex-shrink:0}
 body.portal-admin-c-v1 .ux-profit-table td:last-child{border-bottom:0;padding-bottom:0}
}

/* Keep expense details and actions usable on narrow screens. */
@media(max-width:600px){
 body.portal-admin-c-v1 .ux-expense-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 0}
 body.portal-admin-c-v1 .ux-expense-row>strong{font-size:22px}
 body.portal-admin-c-v1 .ux-expense-row form{margin:0}
 body.portal-admin-c-v1 .ux-expense-row .btn{min-height:44px;width:100%;box-sizing:border-box}
 body.portal-admin-c-v1 :is(.ux-expense-form,.ux-expense-filters,.mq-profit-review-filters,.mq-wedding-team-filters) :is(input,select,textarea){font-size:16px;min-height:44px;max-width:100%;box-sizing:border-box}
 body.portal-admin-c-v1 .ux-expenses .ux-wedding-header-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 body.portal-admin-c-v1 .ux-expenses .ux-wedding-header-actions .btn{min-height:44px;white-space:normal;text-align:center}
}

.mq-couple-language{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px 16px;background:#fff;border:1px solid #ddd;border-radius:12px}
.mq-couple-language b{display:block;font-size:13px}.mq-couple-language small{display:block;color:#666;font-size:12px;margin-top:4px}
.mq-couple-language .couple-menu-language-actions{display:flex;gap:6px;margin:0}
.mq-couple-language .couple-menu-language-actions button{min-height:44px;padding:8px 14px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#111;cursor:pointer}
.mq-couple-language .couple-menu-language-actions button.active{background:#111;color:#fff;border-color:#111}
@media(max-width:420px){.mq-couple-language{flex-wrap:wrap}.mq-couple-language .couple-menu-language-actions{width:100%;justify-content:stretch}.mq-couple-language .couple-menu-language-actions button{flex:1;min-width:0}}

/* Override the shared desktop input rule at phone widths. */
@media(max-width:600px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea){font-size:16px!important}
}
html body.portal-couple-v361 .portal-premium-couple-v361 .couple-clean-nav[open] .couple-clean-nav-open{background:#111!important;color:#fff!important;box-shadow:none!important}
html body.portal-couple-v361 .portal-premium-couple-v361 .couple-clean-nav[open] .couple-clean-nav-lang{background:#333!important;color:#fff!important}

.couple-clean-nav .mq-docs-close-label{display:none}
.couple-clean-nav[open] .mq-docs-open-label{display:none}
.couple-clean-nav[open] .mq-docs-close-label{display:inline}

/* The shared premium theme must not recolour the visible language control. */
html body.portal-couple-v361 .portal-premium-couple-v361 .mq-couple-language{background:#fff!important;border:1px solid #ddd!important;border-radius:12px!important;box-shadow:none!important}
html body.portal-couple-v361 .portal-premium-couple-v361 .mq-couple-language b{color:#111!important;font-size:13px!important;font-weight:600!important}
html body.portal-couple-v361 .portal-premium-couple-v361 .mq-couple-language small{color:#666!important;font-weight:400!important}
html body.portal-couple-v361 .portal-premium-couple-v361 .mq-couple-language button{box-shadow:none!important;border-radius:8px!important;min-height:44px!important}

html body.portal-dj-v361 [data-dj-mobile-event][hidden]{display:none!important}
html body.portal-dj-v361 .dj-mobile-list>label{display:grid;gap:8px;margin:12px 0;font-size:14px;font-weight:600}
html body.portal-dj-v361 .dj-mobile-list>label input{width:100%;min-width:0;min-height:44px;box-sizing:border-box}

/* Event names must not compete with three action buttons on a phone. */
@media(max-width:760px){
 html body.portal-dj-v361 .portal-premium-v361 .dj-mobile-mini-event{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;background:#fff!important;border:1px solid #ddd!important;border-radius:12px!important;box-shadow:none!important;backdrop-filter:none!important}
 html body.portal-dj-v361 .dj-mobile-mini-event>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
 html body.portal-dj-v361 .dj-mobile-mini-event .event-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}
 html body.portal-dj-v361 .dj-mobile-mini-event .event-actions .btn{width:100%;min-width:0;box-sizing:border-box;white-space:normal;padding:10px 6px!important;text-align:center;justify-content:center}
}

/* Legacy 320px minimum columns overflow phone screens after page padding. */
@media(max-width:760px){
 html body.portal-wp-v361 .portal-premium-wp-v361 .event-card-grid-v36{grid-template-columns:minmax(0,1fr);gap:14px}
 html body.portal-wp-v361 .wp-card-title{flex-wrap:wrap;gap:10px}
 html body.portal-wp-v361 .wp-card-title h3{flex:1 1 100%;order:-1;overflow-wrap:anywhere}
 html body.portal-wp-v361 .wp-event-card-v36,html body.portal-wp-v361 .wp-event-card-body,html body.portal-wp-v361 .wp-event-metrics>div{min-width:0;overflow-wrap:anywhere}
 html body.portal-wp-v361 .wp-event-card-body .event-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 html body.portal-wp-v361 .wp-event-card-body .event-actions .btn{width:100%;box-sizing:border-box;white-space:normal}
}

/* Workspace hierarchy: a quiet utility bar, a compact menu and readable content. */
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-topbar{min-height:56px!important;height:auto!important;padding:8px 0!important;margin-bottom:8px!important;background:transparent!important;border:0!important;border-bottom:1px solid #dedede!important;border-radius:0!important;box-shadow:none!important;justify-content:space-between!important}
.mq-workspace-context{display:grid;gap:4px;min-width:0;padding:4px 0}
.mq-workspace-context span{font-size:9px;letter-spacing:1.5px;font-weight:600;color:#777}
.mq-workspace-context b{font-size:14px;line-height:1.35;font-weight:600;overflow-wrap:anywhere;color:#191919}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-wedding-header{padding:12px 0 16px!important;gap:20px;align-items:flex-start}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-wedding-header h1{margin:8px 0!important;letter-spacing:-1px!important;line-height:1.15!important}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-stat-updated{margin:0 0 16px;font-size:12px;color:#666}
html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-process-nav{margin:8px 0 16px!important;padding:0 0 12px!important;background:transparent!important;border:0!important;border-bottom:1px solid #dedede!important;border-radius:0!important}
@media(min-width:1181px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell{grid-template-columns:240px minmax(0,1fr)!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell aside.admin-sidebar{margin:8px 0 8px 8px!important;border-radius:14px!important;padding:16px 10px!important;box-shadow:none!important;min-height:0!important;height:calc(100vh - 16px)!important;max-height:calc(100vh - 16px)!important;overflow-y:auto!important}
 html body.portal-admin-c-v1 .admin-sidebar .ux-admin-essential{display:grid;gap:4px}
 html body.portal-admin-c-v1 .admin-sidebar .ux-admin-essential>a{background:transparent!important;color:#ddd!important;padding:12px!important;font-size:13px!important;border-radius:8px!important}
 html body.portal-admin-c-v1 .admin-sidebar .ux-admin-essential>a:is(.active,[aria-current=page]){background:#fff!important;color:#111!important}
 html body.portal-admin-c-v1 .admin-sidebar .ux-admin-essential>a:hover{background:#292929!important;color:#fff!important}
}
@media(max-width:760px){
 .mq-workspace-context{display:none}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-topbar{padding:6px 0!important;min-height:0!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-wedding-header{flex-direction:column;gap:12px}
}

/* Primary destinations remain fully visible at phone widths. */
@media(max-width:600px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-process-nav>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;width:100%;min-width:0}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-process-nav>div>a{width:100%;min-width:0;min-height:44px;white-space:normal!important;box-sizing:border-box;justify-content:center}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-process-nav>div>a:last-of-type,html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-more{grid-column:1/-1}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-more>summary{min-height:44px;box-sizing:border-box;padding:12px;text-align:center}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-more>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;max-width:100%;box-sizing:border-box}
 html body.portal-couple-v361:not(:has(.mq-chat,.mq-messenger)) .ux-couple-shortcuts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.portal-couple-v361:not(:has(.mq-chat,.mq-messenger)) .ux-couple-shortcuts a{min-width:0;min-height:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere}
}
html body:not(:has(.mq-chat,.mq-messenger)) :is(.ux-event-process-nav,.ux-couple-shortcuts) a:focus-visible{outline:2px solid #111;outline-offset:3px}

.mq-expense-entry{margin:20px 0;border:1px solid #ddd;border-radius:12px;background:#fff}
.mq-expense-entry>summary{cursor:pointer;padding:16px;min-height:52px;box-sizing:border-box;line-height:1.5}
.mq-expense-entry>summary b{font-size:14px;color:#111;margin-right:12px}
.mq-expense-entry>summary span{font-size:12px;color:#666}
.mq-expense-entry>summary:focus-visible{outline:2px solid #111;outline-offset:3px}
.mq-expense-entry[open]>summary{border-bottom:1px solid #ddd}
body.portal-admin-c-v1 .mq-expense-entry .ux-expense-form{margin:0;border:0;border-radius:0 0 12px 12px}
@media(max-width:600px){.mq-expense-entry>summary span{display:block;margin-top:4px}}

/* Keep the tool directory inside narrow content areas, including 320px phones. */
@media(max-width:600px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-tools-grid{grid-template-columns:minmax(0,1fr)!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap :is(.ux-tool-card,.ux-management-grid>a){min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-tools-hero input{width:100%;min-width:0;box-sizing:border-box}
}
html body.portal-admin-c-v1 [data-tool-search-clear][hidden],html body.portal-admin-c-v1 [data-tools-empty][hidden],html body.portal-admin-c-v1 #adminSectionNoResults[hidden],html body.portal-dj-v361 #djMobileSearchEmpty[hidden],html body.portal-dj-v361 #djDashboardEmpty[hidden],html body.portal-wp-v361 #wpDashboardEmpty[hidden]{display:none!important}

/* Mobile visual review: reduce repeated introductions before the event list. */
@media(max-width:600px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .section-admin-hero.mq-bodas-hero{padding:14px!important;margin-bottom:12px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .section-admin-hero.mq-bodas-hero>.section-kicker,html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .section-admin-hero.mq-bodas-hero>p{display:none!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .section-admin-hero.mq-bodas-hero h1{margin:0 0 12px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .section-admin-hero.mq-bodas-hero .top-actions{margin-top:0!important;gap:6px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .section-admin-hero.mq-bodas-hero .btn{flex:1 1 auto}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .card.mq-bodas-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:8px!important;margin-bottom:12px!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .card.mq-bodas-tabs>a.portal-menu-item{padding:10px!important;min-height:44px!important;border-radius:8px!important;box-shadow:none!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-wrap .card.mq-bodas-tabs>a.portal-menu-item:last-child{grid-column:1/-1}
 html body.portal-wp-v361 .portal-premium-wp-v361 .wp-hero-v36{padding:20px!important;min-height:0!important;border-radius:14px!important}
 html body.portal-wp-v361 .wp-hero-v36 .hero-meta,html body.portal-wp-v361 .ux-wp-identity>span{display:none!important}
 html body.portal-wp-v361 .wp-hero-v36 h1{margin:8px 0!important}
 html body.portal-wp-v361 .wp-hero-v36 p{font-size:13px!important;line-height:1.5!important;margin:0!important}
 html body.portal-wp-v361 .ux-wp-identity{padding-top:10px!important;margin-top:12px!important}
 html body.portal-wp-v361 .portal-premium-wp-v361 .pro-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important}
 html body.portal-wp-v361 .portal-premium-wp-v361 .pro-kpi-grid .kpi-card{padding:12px!important;min-height:0!important;border-radius:10px!important;gap:4px}
 html body.portal-wp-v361 .portal-premium-wp-v361 .pro-kpi-grid .kpi-card>b{font-size:26px!important;margin:4px 0!important;line-height:1.2!important}
 html body.portal-wp-v361 .portal-premium-wp-v361 .pro-kpi-grid .kpi-card>small{display:none!important}
}

@media(max-width:600px){
 html body.portal-couple-v361:not(:has(.mq-chat)) .couple-calls-page .premium-hero.calls-hero{padding:18px!important}
 html body.portal-couple-v361:not(:has(.mq-chat)) .couple-calls-page .premium-hero.calls-hero h1{margin:8px 0!important;line-height:1.2!important}
 html body.portal-couple-v361:not(:has(.mq-chat)) .couple-calls-page .premium-hero.calls-hero .premium-subtitle{margin:0!important;font-size:14px!important;line-height:1.5!important}
}

/* Appointment controls verified in 320px browser viewports. */
@media(max-width:600px){
 html body.portal-couple-v361 .couple-calls-page #callBookingForm :is(input:not([type=hidden]),select,textarea){width:100%;min-width:0;max-width:100%;min-height:44px!important;box-sizing:border-box;font-size:16px!important;border:1px solid #d5d5d5;border-radius:9px;padding:10px;background:#fff}
 html body.portal-couple-v361 .couple-calls-page .call-slot-head{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline}
 html body.portal-couple-v361 .couple-calls-page .call-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
 html body.portal-couple-v361 .couple-calls-page .call-slots>p{grid-column:1/-1}
 html body.portal-couple-v361 .couple-calls-page .call-slot-btn{width:100%;min-width:0;min-height:44px!important;padding:8px!important;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
 html body.portal-couple-v361 .couple-calls-page #callBookingForm>.top-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
}

@media(max-width:600px){
 html body.portal-couple-v361 .couple-calls-page #callBookingForm select{height:44px!important;appearance:none;-webkit-appearance:none;padding-right:32px;color:#111;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
}

/* Open mobile menus need full labels and comfortable touch targets. */
@media(max-width:1180px){
 html body:is(.portal-admin-c-v1,.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat,.mq-messenger)) .global-back :is(button,a){min-height:44px!important;height:auto!important;box-sizing:border-box;padding:10px 14px!important}
 html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat,.mq-messenger)) .top .ux-access-menu>summary{min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:6px}
 html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat,.mq-messenger)) .top .ux-access-menu>.top-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:min(220px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;min-width:0!important;right:0!important;left:auto!important;padding:8px!important;margin:0!important;gap:6px!important;box-sizing:border-box}
 html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat,.mq-messenger)) .top .ux-access-menu>.top-actions>a{width:100%!important;min-height:44px!important;box-sizing:border-box;display:flex!important;align-items:center;justify-content:flex-start;white-space:normal!important;padding:10px 12px!important;margin:0!important}
}
@media(min-width:761px) and (max-width:1180px) and (max-height:500px){
 html body.portal-admin-c-v1 .admin-app-shell aside.admin-sidebar{display:flex!important;align-items:center!important;flex-wrap:wrap!important;padding:12px 16px!important;gap:8px!important}
 html body.portal-admin-c-v1 .admin-app-shell aside.admin-sidebar a.admin-side-brand{width:120px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;gap:4px!important}
 html body.portal-admin-c-v1 .admin-app-shell aside.admin-sidebar .admin-side-brand img{max-width:110px!important;max-height:28px!important}
 html body.portal-admin-c-v1 .admin-app-shell aside.admin-sidebar .ux-admin-mobile-menu:not([open]){width:auto!important;flex:1 1 auto!important}
 html body.portal-admin-c-v1 .admin-app-shell aside.admin-sidebar .ux-admin-mobile-menu[open]{width:100%!important;margin-left:0!important}
}

@media(max-width:1180px){
 html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat,.mq-messenger)) .top .ux-access-menu>summary{border:1px solid #ddd;border-radius:8px;padding:8px 10px;gap:8px;background:#fff}
 html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat,.mq-messenger)) .top .ux-access-menu>summary::after{content:'⌄';font-size:14px;line-height:1}
 html body:is(.portal-couple-v361,.portal-dj-v361,.portal-wp-v361):not(:has(.mq-chat,.mq-messenger)) .top .ux-access-menu[open]>summary::after{content:'⌃'}
}

/* Safari's native compact select ignores min-height: give administrative
   single-choice fields a real touch target while retaining native options. */
@media(max-width:760px){
 html body.portal-admin-c-v1 .admin-wrap select:not([multiple]):not([size]){height:44px!important;min-height:44px!important;box-sizing:border-box;max-width:100%;font-size:16px!important;appearance:none;-webkit-appearance:none;padding-right:34px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
}

/* Mobile utilities stay in one accessible row above the working area. */
@media(max-width:760px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-topbar .admin-topbar-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-topbar .admin-topbar-actions :is(.admin-security-bell,.admin-notification-bell,.ux-portal-links>summary){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;height:44px!important;min-height:44px!important;padding:0 8px!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;box-sizing:border-box}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-app-main .admin-topbar .admin-topbar-actions .ux-portal-links{flex:0 1 auto!important;width:auto!important;margin:0!important}
}
@media(max-width:760px){
 html body.portal-admin-c-v1 .admin-topbar .ux-portal-links>summary::after{content:'⌄';font-size:14px;line-height:1}
 html body.portal-admin-c-v1 .admin-topbar .ux-portal-links[open]>summary::after{content:'⌃'}
}

/* All six event-preparation actions are visible without horizontal swiping. */
@media(max-width:760px){
 html body .dj-offline-shell .dj-offline-toolbar{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;margin:0 0 16px!important;padding:0!important;backdrop-filter:none!important}
 html body .dj-offline-shell .dj-offline-toolbar>.btn{width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;padding:10px 8px!important;white-space:normal!important;overflow-wrap:anywhere;font-size:12px!important;line-height:1.3!important;text-align:center!important;box-sizing:border-box}
}
@media(max-width:760px){html body .dj-offline-shell .dj-offline-hero{margin-top:0!important}}

.dj-online-more{position:relative}.dj-online-more>summary{cursor:pointer;padding:12px;min-height:44px;box-sizing:border-box;font-weight:600}.dj-online-more-actions{display:flex;flex-wrap:wrap;gap:8px;padding:8px}
@media(max-width:760px){
 html body .dj-mobile-shell .dj-online-toolbar{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important}
 html body .dj-mobile-shell .dj-online-toolbar>.btn,html body .dj-mobile-shell .dj-online-more-actions>.btn{min-width:0!important;width:100%!important;min-height:44px!important;white-space:normal!important;padding:10px 8px!important;font-size:12px!important;line-height:1.3!important;text-align:center}
 html body .dj-mobile-shell .dj-online-more,html body .dj-mobile-shell .dj-copy-status{grid-column:1/-1}
 html body .dj-mobile-shell .dj-online-more-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 html body .dj-mobile-shell .dj-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body .dj-mobile-shell .dj-quick-grid>div{padding:12px!important;min-height:0!important}
 html body .dj-mobile-shell .dj-quick-grid b{font-size:24px!important}
}

/* Separate discovery from saving on narrow music forms. */
@media(max-width:600px){
 html body.portal-couple-v361 form.add-song>div:has(>.search-btn){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 html body.portal-couple-v361 form.add-song>div:has(>.search-btn)>button{width:100%!important;min-height:44px!important;margin:0!important;white-space:normal!important}
}

/* Agenda rows use the available phone width instead of narrow table columns. */
@media(max-width:760px){
 html body.portal-admin-c-v1 .fc .fc-list-event{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:10px 12px;border-bottom:1px solid #ddd}
 html body.portal-admin-c-v1 .fc .fc-list-event>td{display:block!important;width:auto!important;padding:3px 0!important;border:0!important;white-space:normal!important}
 html body.portal-admin-c-v1 .fc .fc-list-event .fc-list-event-graphic{display:none!important}
 html body.portal-admin-c-v1 .fc .fc-list-event .fc-list-event-time{font-size:12px!important;color:#666}
 html body.portal-admin-c-v1 .fc .fc-list-event .fc-list-event-title{font-size:14px!important;line-height:1.4!important;min-width:0!important;overflow-wrap:anywhere}
}

.ux-event-mobile-nav{display:none!important}
@media(max-width:760px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-process-nav>.ux-event-desktop-tabs{display:none!important}
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-process-nav>.ux-event-mobile-nav{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important;gap:8px!important;align-items:end}
 .ux-event-mobile-nav label{display:grid;gap:5px;min-width:0;font-size:11px;color:#666}
 html body.portal-admin-c-v1 .admin-wrap .ux-event-mobile-nav select{width:100%;min-width:0;height:44px!important;border:1px solid #ccc;border-radius:8px;padding-left:10px;background-color:#fff;color:#111}
 html body.portal-admin-c-v1 .admin-wrap .ux-event-mobile-nav>a.btn{min-height:44px!important;height:auto!important;padding:10px 8px!important;margin:0!important;white-space:normal!important;text-align:center;font-size:12px!important}
}

@media(max-width:760px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-event-process-nav>.ux-event-mobile-nav>a.btn{grid-column:auto!important}
 html body.portal-admin-c-v1 .admin-wrap .ux-event-mobile-nav label{width:100%}
}
@media(max-width:760px){html body.portal-admin-c-v1 .admin-app-shell .admin-wrap .ux-event-process-nav .ux-event-mobile-nav select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 9px center!important;padding-right:28px!important}}

.event-contact-tools{margin:0 0 16px;border-bottom:1px solid #ddd}
.event-contact-tools>summary{min-height:44px;box-sizing:border-box;padding:12px 4px;cursor:pointer;font-size:13px;font-weight:600;line-height:1.5}
.event-contact-tools[open]>.contact-form-toolbox{margin:8px 0 16px}

/* Save beside the selected version after reviewing its details/player. */
form.add-song .ux-selected-song-save{display:none!important}
form.add-song .selected-track:has(.chosen-card)+.ux-selected-song-save{display:block!important;grid-column:1/-1;width:100%;min-height:44px;white-space:normal}

form.playlist-form .ux-selected-playlist-save{display:none!important}
form.playlist-form .selected-playlist:has(.chosen-card)+.ux-selected-playlist-save{display:block!important;width:100%;min-height:44px;white-space:normal}

/* Safari otherwise keeps compact native selects in the couple's forms. */
@media(max-width:760px){html body.portal-couple-v361 .wrap select:not([multiple]):not([size]){height:44px!important;min-height:44px!important;box-sizing:border-box;max-width:100%;font-size:16px!important;appearance:none;-webkit-appearance:none;padding-right:32px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 10px center!important}}

.ux-management-mobile{display:none!important}
@media(max-width:760px){
 html body.portal-admin-c-v1:not(:has(.mq-chat,.mq-messenger)) .admin-app-shell .admin-wrap .ux-management-nav>.ux-management-desktop{display:none!important}
 html body.portal-admin-c-v1 .admin-app-shell .admin-wrap .ux-management-nav>.ux-management-mobile{display:grid!important;gap:5px;width:100%;min-width:0;font-size:11px;color:#666}
 html body.portal-admin-c-v1 .admin-wrap .ux-management-mobile select{width:100%;min-width:0;height:44px!important;border:1px solid #ccc;border-radius:8px;background-color:#fff;color:#111;padding-left:10px}
}
@media(max-width:760px){
 .ux-management-mobile,.ux-event-mobile-nav>label{position:relative}
 .ux-management-mobile::after,.ux-event-mobile-nav>label::after{content:'⌄';position:absolute;right:12px;bottom:12px;font-size:16px;line-height:1;color:#555;pointer-events:none}
}

/* Keep client document names readable on narrow screens. */
#preparacion-boda .mq-file-records small{overflow-wrap:anywhere}
#presupuesto-archivo,#infografia-archivo{scroll-margin-top:24px}

.mq-expense-tax-review{grid-column:1/-1;min-width:0;width:100%}
.mq-expense-tax-review>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;gap:8px}
.mq-expense-tax-review>summary::before{content:"▸"}
.mq-expense-tax-review[open]>summary::before{content:"▾"}

/* Daily activity stays readable without sideways scrolling on phones. */
@media(max-width:760px){
 body.portal-admin-c-v1 .daily-user-table,body.portal-admin-c-v1 .daily-user-table tbody{display:block;min-width:0;width:100%}
 body.portal-admin-c-v1 .daily-user-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.portal-admin-c-v1 .daily-user-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;border:1px solid #ddd;border-radius:12px;padding:12px;margin-bottom:12px;background:#fff}
 body.portal-admin-c-v1 .daily-user-table td{display:block;min-width:0;padding:8px 0;white-space:normal!important;overflow-wrap:anywhere;border:0}
 body.portal-admin-c-v1 .daily-user-table td:nth-child(3),body.portal-admin-c-v1 .daily-user-table td:nth-child(6),body.portal-admin-c-v1 .daily-user-table td:nth-child(7),body.portal-admin-c-v1 .daily-user-table td[colspan]{grid-column:1/-1}
 body.portal-admin-c-v1 .daily-user-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:#666;margin-bottom:4px}
 body.portal-admin-c-v1 .daily-user-table .daily-user-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 body.portal-admin-c-v1 .daily-user-table .daily-user-actions :is(button,a){min-height:44px;white-space:normal;padding:8px;display:flex;align-items:center;justify-content:center}
 body.portal-admin-c-v1 .daily-user-table tr.is-active{background:#111}
 body.portal-admin-c-v1 .daily-user-table tr.is-active td{background:#111!important}
 body.portal-admin-c-v1 .daily-user-table tr.is-active :is(small,.muted){color:#ddd!important}
 body.portal-admin-c-v1 .daily-user-table tr.is-active td[data-label]::before{color:#ddd}
}

/* Keep the next-step panel legible over its dark background across legacy layers. */
@media screen {
 html body.portal-couple-v361:not(:has(.mq-chat)) .ux-studio .couple-action-hub .couple-action-main h2{color:#fff!important}
 html body.portal-couple-v361:not(:has(.mq-chat)) .ux-studio .couple-action-hub .couple-action-main p{color:#ddd!important}
 html body.portal-couple-v361:not(:has(.mq-chat)) .ux-studio .couple-action-hub .couple-action-main .section-kicker{color:#ccc!important;background:transparent!important;border:0!important}
 html body.portal-couple-v361:not(:has(.mq-chat)) .ux-studio .couple-action-hub .couple-action-main .btn.primary{color:#111!important;background:#fff!important;border-color:#fff!important}
 html body.portal-couple-v361:not(:has(.mq-chat)) .ux-studio .couple-action-hub .couple-action-main .btn.light{color:#fff!important;background:transparent!important;border-color:#777!important}
 html body.portal-couple-v361:not(:has(.mq-chat)) .ux-studio .couple-action-hub .couple-action-side b{color:#fff!important}
 html body.portal-couple-v361:not(:has(.mq-chat)) .ux-studio .couple-action-hub .couple-action-side span{color:#ccc!important}
}

/* Single-line native selects need space for text, not vertical padding. */
html body.portal-admin-c-v1 select:not([multiple]):not([size]),html body.portal-admin-c-v1 select[size="1"]{height:48px!important;min-height:48px!important;padding-top:0!important;padding-bottom:0!important;line-height:normal!important}
@media(max-width:720px){
body.portal-admin-c-v1:has(.call-calendar-shell) .global-back{margin:4px 0!important}
body.portal-admin-c-v1:has(.call-calendar-shell) .ux-management-nav{padding:8px!important;margin:8px 0!important}
body.portal-admin-c-v1:has(.call-calendar-shell) .ux-management-nav>div:first-child{display:none!important}
body.portal-admin-c-v1 .call-calendar-shell .calendar-pro-head{margin:8px 0!important;padding:0!important}
body.portal-admin-c-v1 .call-calendar-shell .calendar-title-block h1{font-size:24px!important;margin:8px 0!important}
body.portal-admin-c-v1 .call-calendar-shell .calendar-title-block>.section-kicker{display:none!important}
body.portal-admin-c-v1 .call-calendar-shell .calendar-title-block>p{margin:6px 0!important}
}
.call-calendar-tools{margin:10px 0}.call-calendar-tools>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:650}.call-calendar-tools[open]>summary{margin-bottom:12px}

/* Selected couple destinations must style their children as well as the link. */
html body.portal-couple-v361:not(:has(.mq-chat)) .wrap .ux-couple-shortcuts a[aria-current="page"] :is(span,small){color:#fff!important}
html body.portal-admin-c-v1 .mq-document-progress{background:#f3ede2!important;border:1px solid #dbceb8!important;border-radius:12px!important;box-shadow:none!important}
html body.portal-admin-c-v1 .mq-document-progress :is(small,b,span){color:#302c22!important;opacity:1!important}
