/* Shared interface primitives and responsive fixes, 2026-11-18. */
:root{--ui-primary:#5935c9;--ui-ink:#2c2038;--ui-muted:#62566f;--ui-surface:#fcfaff;--ui-border:#ded5e9;--ui-nav-height:88px;--ui-save:#216142}
[hidden]{display:none!important}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #5935c9!important;outline-offset:3px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #5935c9;outline-offset:2px}
body.swipe-app,body.raus-admin{padding-bottom:calc(var(--ui-nav-height) + env(safe-area-inset-bottom) + 24px);color:var(--ui-ink)}
body.swipe-app>header{height:auto;min-height:96px;padding:8px 16px;gap:8px}body.swipe-app>header .brand{min-width:0;flex:1;max-width:250px}body.swipe-app>header .brand .question-logo,body.swipe-app>header .brand .brand-slogan{width:100%!important;max-width:250px}body.swipe-app>header .visitor-header-actions{gap:6px}body.swipe-app>header .visitor-header-actions button{width:44px;height:44px;border-radius:12px}
.app-navigation{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);height:calc(var(--ui-nav-height) + env(safe-area-inset-bottom));padding:8px 12px calc(16px + env(safe-area-inset-bottom));display:flex;align-items:stretch;gap:6px;border-radius:22px 22px 0 0;border-top:1px solid var(--ui-border);background:#fff;box-shadow:0 -5px 22px #30214e07}
body.swipe-app .app-navigation{max-width:540px}.app-navigation .tab{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;color:var(--ui-muted);padding:6px;border-radius:14px;font:700 13px/1.3 system-ui}.app-navigation .tab.active{background:#eee7ff;color:var(--ui-primary)}.app-navigation .tab svg{flex:none}.app-navigation .tab b{font-size:12px;background:#eee7ff;color:#493378;border-radius:5px;padding:1px 4px}.app-navigation .tab b:empty{display:none}body.raus-admin .app-navigation .tab{flex-direction:column;font-size:12px;gap:4px}.app-navigation::after{content:'';position:absolute;bottom:5px;left:calc(50% - 35px);height:4px;width:70px;background:#b5a8c4;border-radius:5px}
.filter-summary{margin:0 0 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;color:var(--ui-muted);font-size:12px}.filter-summary button{min-height:44px;padding:4px 8px;font:650 12px/1.35 system-ui;color:var(--ui-primary);background:#f1ebfb;border:0;border-radius:9px;text-align:left}.filter-summary span{font-variant-numeric:tabular-nums;white-space:nowrap}
body.swipe-app .swipe-card{height:auto!important;aspect-ratio:3/4;touch-action:pan-y;max-height:none}.swipe-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.swipe-overlay{bottom:18px;left:16px;right:50px}.swipe-overlay h1{font-size:clamp(22px,6.6vw,28px);line-height:1.14;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:8px 0}.swipe-overlay p{font-size:13px;line-height:1.35;margin:4px 0 0}.swipe-venue-name span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.swipe-tags{max-height:29px;overflow:hidden}.swipe-tags span{font-size:11px}.swipe-info{width:44px;height:44px;right:8px;bottom:14px}.swipe-full{min-height:44px;top:26px;right:8px;font-size:12px;padding:8px;background:#19162ab8}.swipe-slides button{height:44px}.swipe-slides{top:0}.swipe-slides button::after{top:9px}
body.swipe-app .deck>.actions{height:108px;gap:0;justify-content:space-between;padding:10px 4px 16px}.swipe-action{min-width:0;flex:1;gap:6px}.swipe-action.small{padding-top:0}.swipe-action>span{font-size:12px;color:var(--ui-muted);white-space:nowrap}body.swipe-app .swipe-action .undo,body.swipe-app .swipe-action .deck-share{width:44px;height:44px}
.swipe-empty{min-height:280px;padding:24px;gap:12px}.swipe-empty h2{font-size:25px}.swipe-empty p{color:var(--ui-muted);font-size:15px}.swipe-empty button{min-height:46px;border-radius:12px}.swipe-loading-mark{width:38px;height:38px;border:4px solid #e5dcf5;border-top-color:var(--ui-primary);border-radius:50%;margin:0 auto;animation:ui-spin 1s linear infinite}@keyframes ui-spin{to{transform:rotate(360deg)}}
.event-filter{height:100dvh;overflow:hidden;background:var(--ui-surface);display:none}.event-filter[open]{display:flex;flex-direction:column}.event-filter .backdrop{height:auto;flex:none;min-height:95px;padding:10px 22px;align-items:center;justify-content:center}.event-filter .filter-logo{width:min(220px,100%)}.event-filter .filter-logo .question-logo{width:100%}.event-filter .filter-logo .brand-slogan{width:100%;font-size:12px}.event-filter .filter-logo .brand-slogan mark{font-size:12px}.event-filter .backdrop-label{display:none}.event-filter .sheet{margin:0;min-height:0;flex:1;overflow:hidden;border-radius:24px 24px 0 0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}.event-filter .sheet-header{margin:8px 20px 12px}.event-filter .filter-title{font-size:26px}.event-filter form{overflow-y:auto;min-height:0;padding:0 20px 24px;display:block;scroll-padding-block:12px 24px}.event-filter form>section{margin-bottom:22px}.event-filter .footer{position:static;margin:0;padding:12px 20px calc(16px + env(safe-area-inset-bottom));flex:none}.event-filter .footer button{min-height:48px}.event-filter .pill span{min-height:44px;display:flex;align-items:center;white-space:normal;font-size:13px;padding:9px 12px}.event-filter .gps{min-height:44px;padding:7px 0;font-size:14px}.event-filter .range-labels{font-size:12px}.event-filter input:not([type=checkbox]):not([type=range]){font-size:16px}.event-filter .date small{font-size:12px}
dialog.visitor-account-dialog,dialog#eventShareMenu,dialog#flyerEditor,dialog#duplicateDialog,dialog#deleteEventDialog{border-radius:24px;border-color:var(--ui-border);background:var(--ui-surface)}.visitor-dialog-head>button,.share-menu-head>button,.swipe-sheet-top>button,.editor-top .close,#flyerEditor .close{width:44px!important;height:44px!important;min-width:44px;border-radius:50%;background:white;border:1px solid var(--ui-border);color:var(--ui-muted)}.visitor-account-dialog p,.visitor-account-dialog .visitor-small,.visitor-login-card .visitor-small,.visitor-continue,.visitor-return{color:var(--ui-muted)}.visitor-account-dialog .visitor-small{font-size:13px}.visitor-save-nudge .visitor-nudge-dismiss{width:44px;height:44px}.visitor-save-nudge{padding-right:48px}.visitor-save-nudge p{font-size:13px;color:var(--ui-muted)}
.swipe-details{overflow:hidden;max-height:92svh}.swipe-sheet{max-height:92svh;display:flex;flex-direction:column;overflow:hidden}.swipe-sheet-drag{flex:none}.swipe-sheet-content{overflow:auto;min-height:0;flex:1;padding-bottom:20px}.swipe-sheet-footer{flex:none;padding:12px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--ui-border);background:var(--ui-surface)}.swipe-sheet .swipe-save-event{background:#e0f2e7!important;color:#216142!important;border:1px solid #b7d5c3;margin:0;min-height:48px}.swipe-sheet .swipe-share{width:44px;min-height:44px;margin-left:auto}.swipe-description,.swipe-schedule{font-size:14px;color:var(--ui-muted)}.swipe-location strong{font-size:15px}.swipe-location span,.swipe-tags.light span{font-size:12px;color:var(--ui-muted)}.swipe-social{gap:8px;flex-wrap:wrap}.swipe-social .swipe-heart,.swipe-social #swipeInterest{font-size:13px;min-height:44px;padding:6px;border-radius:9px}.swipe-action-explainer{font-size:12px;color:var(--ui-muted);line-height:1.5;margin:12px 0}.swipe-sheet-top h2{overflow-wrap:anywhere}
#saved #savedOrder,#saved .saved-place,#saved .saved-stats{color:var(--ui-muted);font-size:12px}#saved .saved-date{font-size:13px}#saved .saved-stats b{font-size:13px}#saved .saved-venue{font-size:13px;font-weight:650;line-height:1.4;margin:0 0 5px;overflow-wrap:anywhere}#saved .saved-event-info h3{font-size:18px;line-height:1.3;overflow-wrap:anywhere}#saved .saved-details,#saved .saved-remove{min-height:44px;font-size:13px}.saved-account-panel p{font-size:12px;color:var(--ui-muted)}.saved-account-panel button{min-height:44px}.saved-account-panel strong{font-size:14px}
body.raus-admin .admin-header-actions{font-size:12px;flex-wrap:wrap}.admin-role{font-size:12px;font-weight:700;color:var(--ui-muted);padding:5px 9px;background:#eee7f5;border-radius:8px}.admin-header-actions button,.admin-header-actions a{min-height:44px;display:inline-flex;align-items:center}body.raus-admin .admin-header-actions button{font-size:12px;min-height:44px}.event-create input:not([type=checkbox]):not([type=radio]),.event-create select,.event-create textarea{font-size:16px!important;min-height:46px}.event-create .create-hint,.event-create .create-flyer small,.event-create .time-row small{font-size:13px;color:var(--ui-muted)}.event-create .category-pill span{min-height:44px;font-size:13px}.event-create .create-checks label{min-height:44px}.event-create .create-upload{min-height:44px;display:flex;align-items:center}.event-step-actions button,.timing-pills button,.timing-weekdays button,.timing-tabs button{min-height:44px}.timing-hint,.timing-summary p{color:var(--ui-muted);font-size:13px}.draft-notice{color:var(--ui-muted);font-size:13px;padding:10px 12px;background:#f1ebf9;border-radius:9px;margin:0 0 14px}.draft-notice button{min-height:44px;margin-left:8px;color:var(--ui-primary)}.password-field{position:relative}.password-toggle{min-height:44px;font-size:13px;border:1px solid var(--ui-border);border-radius:9px;background:white;color:var(--ui-primary);margin-top:7px}.password-hint{font-size:13px;color:var(--ui-muted);font-weight:400}.warning-action{background:#fff0ef!important;color:#9b3040!important;border:1px solid #e8b9c1!important;min-height:44px}
.compact-archive .archive-event p,.compact-archive .archive-group-title small{font-size:12px;color:var(--ui-muted)}.compact-archive .archive-columns,.compact-archive .archive-group-title{font-size:12px}.compact-archive .archive-tabs button{min-height:44px}.compact-archive .archive-action{width:44px;height:44px}.compact-archive .archive-search input{font-size:16px;min-height:28px}.compact-archive .archive-search{min-height:46px}.compact-archive .archive-row{grid-template-columns:42px minmax(0,1fr) 60px 60px 88px 144px}.archive-owner-chip{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #d8caed;border-radius:10px;background:#f1ebfb;font-size:14px;color:#4e3577;margin:0 0 12px}.archive-owner-chip button{min-height:44px;color:var(--ui-primary);margin-left:auto}.invitation-help{font-size:14px;color:var(--ui-muted);line-height:1.5}
@media(max-width:740px){.compact-archive .archive-row{grid-template-columns:36px minmax(0,1fr) 144px;gap:4px 8px}.compact-archive .archive-event h3{font-size:14px}.compact-archive .archive-actions{gap:4px}.compact-archive .archive-action{width:44px;height:44px}.compact-archive .archive-row .archive-stat{font-size:13px}.compact-archive .archive-title-row{flex-wrap:wrap;gap:10px}.compact-archive .archive-new{min-height:44px}.event-create .create-panel{padding:14px}}
@media(max-width:350px){.swipe-overlay{left:13px;right:47px;bottom:14px}.swipe-overlay h1{font-size:22px}.swipe-tags span{font-size:10px;padding:4px 6px}.swipe-overlay p{font-size:12px}.swipe-action>span{font-size:11px}body.swipe-app .swipe-action .skip,body.swipe-app .swipe-action .save{width:52px;height:52px}.saved-account-panel{flex-wrap:wrap}}
@media(max-height:700px){body.swipe-app{padding-bottom:0}.swipe-app .app-navigation{position:relative;left:auto;bottom:auto;transform:none;margin-top:12px;width:100%;max-width:none}.swipe-app .swipe-card{touch-action:pan-y}}
@media(prefers-reduced-motion:reduce){.swipe-loading-mark{animation:none}.swipe-card,.card-like-burst{transition:none!important;animation:none!important}}

/* Consistent editor, timing and saved-action controls. */
#flyerCancel{width:44px;height:44px;min-width:44px;border-radius:50%;background:white;border:1px solid var(--ui-border);color:var(--ui-muted);font-size:22px}.flyer-editor-header p,#flyerEditor>p{color:var(--ui-muted);font-size:13px}#detailSave{background:#e0f2e7;color:#216142;border:1px solid #b7d5c3;min-height:48px}.timing-remove,.remove-date,.remove-time{min-width:44px;min-height:44px}.timing-section .plus-link,.timing-expand,.timing-outline,.flyer-editor-actions button,#duplicateActions button,.delete-event-actions button{min-height:44px}.saved-remove{color:#8b3043}

/* Public legal navigation. */
.app-navigation a.legal-tab{text-decoration:none;min-height:44px}.app-navigation a.legal-tab svg{flex:none}body.raus-admin .legal-tab{display:none!important}

/* Quiet legal link below the primary navigation. */
.app-navigation a.legal-tab{position:absolute;right:16px;bottom:env(safe-area-inset-bottom);display:flex;align-items:center;min-height:24px;padding:2px 3px;color:#74677f;font:400 10px/1.4 system-ui;text-decoration:none;background:transparent;border:0;border-radius:3px}.app-navigation a.legal-tab:hover{text-decoration:underline;color:#5935c9}.app-navigation:has(>.legal-tab){padding-bottom:calc(26px + env(safe-area-inset-bottom))}
