:root{
  --bg:#f7f3ef;
  --card:#fffdfb;
  --text:#292522;
  --muted:#817a74;
  --accent:#9b6f62;
  --accent-dark:#765147;
  --border:#e7ddd5;
  --error:#a33d3d;
  --shadow:0 20px 60px rgba(60,45,35,.12);
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family:Georgia,"Times New Roman",serif;
  color:var(--text);
  background:radial-gradient(circle at top,#fffdfb 0,#f7f3ef 55%,#eee7e1 100%);
}
.page{width:min(960px,92%);margin:0 auto;padding:48px 0}
.center{min-height:100vh;display:grid;place-items:center}
.card{
  width:100%;
  background:rgba(255,253,251,.94);
  border:1px solid var(--border);
  border-radius:28px;
  padding:42px;
  box-shadow:var(--shadow);
}
.hero{text-align:center;max-width:680px}
.rings{font-size:58px;margin-bottom:8px}
.eyebrow{font-family:Arial,sans-serif;letter-spacing:3px;font-size:12px;color:var(--accent);font-weight:700}
h1{font-size:clamp(34px,6vw,58px);line-height:1.05;margin:14px 0 18px;font-weight:500}
h2{font-size:30px;font-weight:500}
.sub{font-family:Arial,sans-serif;color:var(--muted);line-height:1.6;max-width:520px;margin:0 auto 32px}
label{display:block;text-align:left;font-family:Arial,sans-serif;font-size:14px;font-weight:700;margin:18px 0 8px}
input{
  width:100%;padding:15px 16px;border:1px solid var(--border);
  border-radius:12px;background:#fff;font-size:16px;outline:none;
}
input:focus{border-color:var(--accent)}

.password-field{position:relative;width:100%}
.password-field input{padding-right:54px}
.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:38px;height:38px;margin:0;padding:0;border:0;border-radius:9px;background:transparent;color:var(--muted);line-height:1;display:grid;place-items:center;z-index:2}
.password-toggle[hidden]{display:none}
.password-toggle:hover{background:#f0e9e3;color:var(--accent-dark)}
.password-toggle:focus{outline:2px solid rgba(155,111,98,.28);outline-offset:1px}
.password-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:opacity .15s ease}
.password-field input::-ms-reveal,.password-field input::-ms-clear{display:none!important}
.password-toggle.is-visible svg{opacity:.72}
button{
  width:100%;border:0;border-radius:12px;padding:15px 18px;margin-top:14px;
  background:var(--accent);color:white;font-size:16px;font-weight:700;cursor:pointer;
}
button:hover{background:var(--accent-dark)}
button:disabled{opacity:.55;cursor:not-allowed}
button.secondary{background:#eee7e1;color:var(--text)}
button.secondary:hover{background:#e2d8d0}
.admin-link{display:inline-block;margin-top:24px;color:var(--muted);font:13px Arial,sans-serif}
.error{color:var(--error);font:14px Arial,sans-serif;min-height:18px}
.hidden{display:none!important}
.guest-card{max-width:820px;margin:auto}
.camera-wrap{position:relative;background:#111;border-radius:18px;overflow:hidden;margin-top:25px}
#preview{display:block;width:100%;max-height:65vh;aspect-ratio:16/9;object-fit:cover}
#preview.mirrored{transform:scaleX(-1)}
.timer{
  position:absolute;top:15px;right:15px;background:rgba(0,0,0,.65);
  color:#fff;border-radius:20px;padding:8px 13px;font:700 15px Arial,sans-serif
}
.controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.controls button:only-child{grid-column:1/-1}
.recorded{width:100%;max-height:65vh;border-radius:18px;background:#111}
.success{text-align:center;padding:40px}
.big-check{
  width:76px;height:76px;border-radius:50%;display:grid;place-items:center;
  margin:auto;background:#e8dfd9;color:var(--accent);font:50px Georgia
}
.admin-header{display:flex;justify-content:space-between;gap:20px;align-items:center}
.admin-header button{width:auto;margin:0}
.guest-list{display:grid;gap:16px;margin-top:25px}
.guest-item{
  border:1px solid var(--border);border-radius:16px;padding:18px;
  display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center
}
.guest-name{font-size:21px}
.guest-date{font:12px Arial,sans-serif;color:var(--muted);margin-top:5px}
.guest-actions{display:flex;gap:8px}
.guest-actions button{width:auto;margin:0;padding:10px 14px}
video{background:#111}
.camera-options{display:flex;justify-content:center;margin-top:12px}
.camera-switch{width:auto;margin:0;padding:11px 18px}
.text-button{background:transparent;color:var(--muted);font:14px Arial,sans-serif;font-weight:700;margin-top:8px}
.text-button:hover{background:transparent;color:var(--accent-dark)}
@media(max-width:650px){
  .page{padding:20px 0}
  .card{padding:25px 18px;border-radius:20px}
  .controls{grid-template-columns:1fr}
  .guest-item{grid-template-columns:1fr}
  .admin-header{align-items:flex-start}
  .admin-header button{margin-top:8px}
}


/* Admin video player */
body.modal-open { overflow: hidden; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 16, 13, 0.78);
  backdrop-filter: blur(5px);
}
.video-modal.hidden { display: none; }
.video-modal-card {
  width: min(100%, 1000px);
  max-height: 94vh;
  overflow: auto;
  border-radius: 22px;
  padding: 18px;
  background: #fffaf4;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.video-modal-header h2 { margin: 0; }
.video-modal-header p { margin: 4px 0 0; opacity: .65; }
.modal-close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.video-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #151515;
}
.video-stage video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}
.player-error {
  padding: 35px 20px;
  color: #fff;
  text-align: center;
}
.player-error.hidden { display: none; }
.missing-file {
  margin-top: 5px;
  font-size: .88rem;
  opacity: .75;
}
.guest-actions button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) {
  .video-modal { padding: 8px; }
  .video-modal-card { padding: 12px; border-radius: 16px; }
  .video-modal-header h2 { font-size: 1.25rem; }
  .video-stage video { max-height: 70vh; }
}

/* Admin navigation */
.admin-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.admin-back-link{display:inline-block;margin-top:18px;color:var(--muted);font:600 14px Arial,sans-serif;text-decoration:none}
.admin-back-link:hover{color:var(--accent-dark)}
.admin-back-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;background:#eee7e1;color:var(--text);font:700 14px Arial,sans-serif;text-decoration:none}
.admin-back-button:hover{background:#e2d8d0}

/* Modern admin video player v2.9 */
body.modal-open{overflow:hidden}
.video-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(18,14,12,.82);backdrop-filter:blur(10px)}
.video-modal.hidden{display:none}
.video-modal-card{width:min(100%,1080px);max-height:94vh;overflow:auto;border-radius:24px;padding:16px;background:#fffaf4;box-shadow:0 28px 100px rgba(0,0,0,.42)}
.video-modal-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}
.video-modal-header h2{margin:0;font-size:24px}.video-modal-header p{margin:4px 0 0;color:var(--muted);font:13px Arial,sans-serif}
.modal-close{width:42px;height:42px;padding:0;border:1px solid var(--border);border-radius:50%;font-size:28px;line-height:1;background:#eee7e1;color:var(--text);cursor:pointer}
.video-player-shell{position:relative;width:100%;background:#050505;border-radius:18px;overflow:hidden;user-select:none;touch-action:manipulation;box-shadow:0 18px 60px rgba(0,0,0,.35);isolation:isolate}
.video-player-shell video{display:block;width:100%;height:auto;max-height:76vh;aspect-ratio:16/9;object-fit:contain;background:#050505;cursor:pointer}
.big-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:88px;height:88px;border-radius:50%;border:1px solid rgba(255,255,255,.48);background:rgba(22,18,15,.52);backdrop-filter:blur(18px);color:#fff;font-size:30px;display:grid;place-items:center;cursor:pointer;transition:.2s ease;z-index:7;box-shadow:0 12px 40px rgba(0,0,0,.34)}
.big-play:hover{transform:translate(-50%,-50%) scale(1.06);background:rgba(22,18,15,.7)}
.big-play.hidden{opacity:0;pointer-events:none}
.player-controls{position:absolute;left:0;right:0;bottom:0;padding:62px 18px 14px;background:linear-gradient(to top,rgba(0,0,0,.96),rgba(0,0,0,.78) 36%,rgba(0,0,0,.18) 82%,transparent);transition:opacity .22s ease,transform .22s ease;z-index:8}
.player-controls.controls-hidden{opacity:0;transform:translateY(18px);pointer-events:none}
.player-progress-wrap{position:relative;width:100%;height:18px;display:flex;align-items:center}
.player-progress-track{position:absolute;left:0;right:0;height:4px;border-radius:99px;background:rgba(255,255,255,.22);overflow:hidden}
.player-buffered{height:100%;width:0;background:rgba(255,255,255,.30);border-radius:99px}
.player-progress{position:relative;z-index:2;appearance:none;-webkit-appearance:none;display:block;width:100%;height:18px;margin:0;border:0;background:transparent;outline:none;cursor:pointer}
.player-progress::-webkit-slider-runnable-track{height:4px;background:transparent;border-radius:99px}.player-progress::-moz-range-track{height:4px;background:transparent;border-radius:99px}
.player-progress::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;background:#fff;border:0;box-shadow:0 1px 10px rgba(0,0,0,.55);cursor:pointer}
.player-progress::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:0;cursor:pointer}
.player-controls-row{display:flex;align-items:center;gap:8px;color:#fff;font-family:Arial,sans-serif}
.player-control-btn{width:38px;height:38px;padding:0;margin:0;border:1px solid rgba(255,255,255,.14);border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.09);backdrop-filter:blur(14px);color:#fff;font-size:15px;line-height:1;cursor:pointer;transition:background .18s ease,transform .18s ease,border-color .18s ease}
.player-control-btn:hover{background:rgba(255,255,255,.19);border-color:rgba(255,255,255,.28);transform:translateY(-1px)}
.player-main-control{border-radius:50%;background:rgba(255,255,255,.16);font-size:14px}.player-speed{width:46px;font:700 12px Arial,sans-serif}
.player-control-btn small{font-size:8px;font-weight:700;margin-top:-1px}.skip-icon{font-size:18px;line-height:11px}
.player-time{font:600 12px Arial,sans-serif;white-space:nowrap;color:rgba(255,255,255,.92);min-width:78px;margin-left:2px}.player-spacer{flex:1}
.player-volume{appearance:none;-webkit-appearance:none;width:82px;height:4px;margin:0;border-radius:99px;background:rgba(255,255,255,.28);accent-color:#fff;cursor:pointer}.player-volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:11px;height:11px;border-radius:50%;background:#fff}.player-volume::-moz-range-thumb{width:11px;height:11px;border-radius:50%;background:#fff;border:0}
.video-player-shell:fullscreen{width:100vw;height:100vh;border-radius:0;display:flex;align-items:center;justify-content:center;background:#000}.video-player-shell:fullscreen video{width:100%;height:100%;max-height:none;aspect-ratio:auto}.video-player-shell:fullscreen .player-controls{padding:70px 30px 20px}
.player-error{position:absolute;inset:0;display:grid;place-items:center;padding:30px;color:#fff;text-align:center;background:rgba(0,0,0,.7);z-index:9}.player-error.hidden{display:none}
@media(max-width:700px){.video-modal{padding:7px}.video-modal-card{padding:10px;border-radius:18px}.video-modal-header h2{font-size:20px}.video-player-shell{border-radius:14px}.video-player-shell video{max-height:70vh}.big-play{width:68px;height:68px;font-size:24px}.player-controls{padding:48px 9px 9px}.player-control-btn{width:34px;height:34px;border-radius:10px}.player-main-control{border-radius:50%}.player-time{font-size:10px;min-width:66px}.player-volume{display:none}}
@media(max-width:430px){.player-controls{padding:44px 7px 7px}.player-controls-row{gap:5px}.player-control-btn{width:32px;height:32px}.player-time{min-width:auto;font-size:9px}.player-speed{width:38px}.video-modal-header{margin-bottom:8px}}
@media(pointer:coarse){.player-controls{transition:opacity .28s ease,transform .28s ease}}

/* Admin refresh */
.admin-header-actions > button,.admin-header-actions > a{height:48px;box-sizing:border-box;margin:0;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.admin-icon-button{width:48px;height:48px;margin:0;padding:0;border:1px solid var(--border);border-radius:12px;background:#eee7e1;color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:none}
.admin-icon-button:hover{background:#e2d8d0}.refresh-symbol,.settings-symbol{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s ease}.admin-icon-button:hover .refresh-symbol,.admin-icon-button:hover .settings-symbol{transform:rotate(25deg)}.admin-icon-button.is-refreshing .refresh-symbol{animation:refreshSpin .7s linear infinite}@keyframes refreshSpin{to{transform:rotate(360deg)}}
/* Delete confirmation */
.confirm-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:rgba(35,27,22,.48);backdrop-filter:blur(5px)}
.confirm-modal.hidden{display:none}
.confirm-card{width:min(100%,460px);background:rgba(255,253,251,.98);border:1px solid var(--border);border-radius:24px;padding:30px;box-shadow:0 24px 80px rgba(60,45,35,.25);text-align:center}
.confirm-icon{width:54px;height:54px;margin:0 auto 14px;display:grid;place-items:center;border-radius:50%;background:#eee7e1;color:var(--accent);font:700 28px Georgia,serif}
.confirm-card h2{margin:8px 0 10px;font-size:26px}
.confirm-card p{margin:0 auto 20px;max-width:380px;color:var(--muted);font:14px/1.6 Arial,sans-serif}
.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.confirm-actions button{margin-top:0}
@media(max-width:520px){.confirm-card{padding:24px 18px;border-radius:20px}.confirm-actions{grid-template-columns:1fr}}

/* v2.9.2 review controls safety */
#stepReview .controls { position: relative; z-index: 5; }
#stepReview #sendBtn { position: relative; z-index: 6; pointer-events: auto; }
#recordedVideo { position: relative; z-index: 1; }

/* v2.10 admin settings */

.settings-card{width:min(520px,100%);text-align:left}.settings-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}.settings-heading .confirm-icon{flex:0 0 auto}.settings-heading h2{margin:2px 0 5px}.settings-heading p{margin:0}.settings-card label{display:block;margin:14px 0 7px;font-weight:700}.settings-card input{width:100%;box-sizing:border-box}.settings-input-row{display:flex;align-items:center;gap:10px}.settings-input-row input{flex:1}.settings-input-row span{white-space:nowrap;color:var(--muted)}.settings-note{font-size:13px;color:var(--muted);margin:10px 0 0}.settings-saved{color:#2e6b4a;font-weight:700;margin:10px 0}.settings-card .confirm-actions{margin-top:18px}

/* v2.11.4 guest-list settings */
#guestSelectWrap select{width:100%;box-sizing:border-box;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:#fff;font-size:16px;color:var(--text);outline:none}
.mode-options{display:grid;gap:10px;margin-top:8px}
.mode-option{display:flex!important;align-items:flex-start;gap:10px;padding:13px 14px;border:1px solid var(--border);border-radius:14px;background:#fff;cursor:pointer;margin:0!important}
.mode-option input{width:auto;margin-top:4px}
.mode-option span{display:flex;flex-direction:column;gap:3px;text-align:left}
.mode-option small{font:13px/1.45 Arial,sans-serif;color:var(--muted);font-weight:400}
.guest-list-settings{margin-top:12px;padding:14px;border:1px solid var(--border);border-radius:16px;background:#faf7f4}
.guest-list-settings textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:150px;border:1px solid var(--border);border-radius:12px;padding:12px 14px;font:14px/1.5 Arial,sans-serif;background:#fff;outline:none}
.import-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.file-import{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;padding:10px 14px;border-radius:12px;background:#eee7e1;color:var(--text);font:700 14px Arial,sans-serif;cursor:pointer}
.file-import input{display:none}
.settings-note{font:13px/1.5 Arial,sans-serif;color:var(--muted)}
@media(max-width:520px){.import-row>*{width:100%;box-sizing:border-box}.file-import{width:100%}}

/* v2.11.27: mobile scrolling optimized across all pages */
html{
  min-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-text-size-adjust:100%;
}
body{
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:auto;
}

/* v2.11.16: stable settings scrolling on mobile */
#settingsModal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  width:100%;
  height:100%;
  min-height:100%;
  box-sizing:border-box;
  overflow:hidden;
  padding:16px;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
}
#settingsModal.hidden{display:none}
#settingsModal .settings-card{
  width:min(520px,100%);
  margin:0 auto;
  box-sizing:border-box;
  max-height:calc(100dvh - 32px);
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  scrollbar-gutter:stable;
}
@media(max-width:650px){
  html,body{
    width:100%;
    min-height:100%;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .page{
    min-height:100dvh;
    padding:20px 0 28px;
  }
  .center{
    min-height:100dvh;
    height:auto;
    align-content:center;
    overflow:visible;
  }
  .card{
    max-height:none;
  }
  .guest-card,.admin-card{
    overflow:visible;
  }
  #settingsModal{
    padding:8px 8px 12px;
    align-items:flex-start;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }
  #settingsModal .settings-card{
    width:100%;
    max-height:calc(100dvh - 20px);
    margin:0;
    border-radius:20px;
    padding-bottom:18px;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }
  #settingsModal .settings-card .confirm-actions{position:static;padding-top:0;background:none;}
}

/* v2.11.7: settings modal uses the same gear icon as the admin header */
.settings-modal-icon .settings-symbol{width:28px;height:28px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}


.export-button{white-space:nowrap}
.export-button:disabled{opacity:.65;cursor:wait}


.guest-status-sent{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(74,160,96,.14);color:#3d8b53;vertical-align:middle}
.guest-status-pending{color:#8d8782}

/* v2.11.14: compact mobile menu with the same SVG icons as the desktop toolbar */
.admin-more-wrap{position:relative;display:none}
.admin-more-button{font-size:25px;font-weight:700;line-height:1;letter-spacing:1px}
.admin-more-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;padding:7px;background:rgba(255,253,251,.98);border:1px solid var(--border);border-radius:14px;box-shadow:0 16px 40px rgba(60,45,35,.18);z-index:300}
.admin-more-menu.hidden{display:none}
.admin-more-menu button{display:flex;align-items:center;gap:11px;width:100%;margin:0;padding:11px 13px;border:0;border-radius:10px;background:transparent;color:var(--text);font:700 14px Arial,sans-serif;text-align:left;cursor:pointer}
.admin-more-menu button:hover{background:#eee7e1}
.admin-more-menu .menu-symbol{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.admin-more-menu .menu-symbol.refresh-symbol,.admin-more-menu .menu-symbol.settings-symbol{transition:transform .35s ease}
.admin-more-menu button:hover .refresh-symbol,.admin-more-menu button:hover .settings-symbol{transform:rotate(25deg)}
@media (max-width:700px){.desktop-admin-action{display:none!important}.admin-more-wrap{display:block}.admin-header-actions{flex-wrap:nowrap;gap:8px}}

/* v2.11.15 */
.export-button{gap:8px}
.export-button .export-symbol{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.admin-more-button{width:54px;height:54px;font-size:30px}
@media(max-width:700px){.admin-more-button{width:64px;height:64px;font-size:34px;border-radius:16px;min-width:64px;min-height:64px}.admin-more-menu{min-width:235px}.admin-more-menu .menu-symbol{width:21px;height:21px}}


/* === Esküvői vendégkönyv – egységes éjszakai üvegdesign === */
:root{
  color-scheme:dark;
  --bg:#10131d;
  --card:rgba(23,27,41,.91);
  --text:#f8fafc;
  --muted:#a5adbf;
  --accent:#d8b4fe;
  --accent-dark:#c084fc;
  --border:rgba(255,255,255,.13);
  --error:#fca5a5;
  --shadow:0 24px 90px rgba(0,0,0,.38);
}
html{min-height:100%;background:#10131d}
body{
  min-height:100vh;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(ellipse at 12% 8%,rgba(109,63,137,.52),transparent 38%),
    radial-gradient(ellipse at 92% 88%,rgba(36,91,101,.42),transparent 36%),
    radial-gradient(ellipse at 55% 48%,rgba(49,42,75,.22),transparent 52%),
    #10131d;
  background-attachment:fixed;
}
.page{width:min(1040px,92%);padding:clamp(22px,5vw,56px) 0}
.center{min-height:100svh}
.card{
  color:var(--text);
  background:rgba(23,27,41,.88);
  border:1px solid rgba(255,255,255,.13);
  border-radius:28px;
  padding:clamp(24px,5.5vw,52px);
  box-shadow:0 24px 90px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.035);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.hero{max-width:700px}
.rings{
  width:82px;height:82px;margin:0 auto 24px;
  display:grid;place-items:center;border-radius:26px;
  color:#34223f;font:54px/1 Georgia,serif;
  background:linear-gradient(135deg,#d8b4fe,#fbcfe8);
  box-shadow:0 12px 35px rgba(216,180,254,.18);
}
.eyebrow{
  font-family:inherit;letter-spacing:.16em;font-size:.76rem;
  color:#d8b4fe;font-weight:800;text-transform:uppercase;
}
h1{color:#fff;font-weight:650;letter-spacing:-.045em;line-height:1.08;font-size:clamp(2rem,5.5vw,3.35rem);margin:14px 0 18px}
h2{color:#fff;font-weight:650;letter-spacing:-.025em}
.sub{font-family:inherit;color:#c7ccda;line-height:1.75;max-width:520px}
p{line-height:1.7}
label{font-family:inherit;color:#e5e7eb;font-size:.9rem;font-weight:700}
input,select,textarea{
  color:#f8fafc!important;background:rgba(9,12,22,.68)!important;
  border:1px solid rgba(255,255,255,.17)!important;border-radius:13px!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.12);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
input::placeholder,textarea::placeholder{color:#81899d}
input:focus,select:focus,textarea:focus{
  border-color:#d8b4fe!important;outline:none;
  box-shadow:0 0 0 3px rgba(216,180,254,.15)!important;
}
select option{background:#171b29;color:#f8fafc}
button{
  font-family:inherit;border-radius:13px;
  background:linear-gradient(135deg,#f5d0fe,#d8b4fe);
  color:#392441;font-weight:800;
  box-shadow:0 8px 24px rgba(216,180,254,.12);
  transition:transform .16s ease,filter .16s ease,background .16s ease;
}
button:hover{background:linear-gradient(135deg,#fae8ff,#e9d5ff);filter:brightness(1.04);transform:translateY(-1px)}
button:active{transform:translateY(0)}
button:disabled{transform:none;box-shadow:none}
button.secondary,.admin-back-button{
  color:#e5e7eb;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.13);box-shadow:none;
}
button.secondary:hover,.admin-back-button:hover{background:rgba(255,255,255,.12);color:#fff}
.text-button{color:#a5adbf;background:transparent;box-shadow:none}
.text-button:hover{color:#e9d5ff;background:rgba(255,255,255,.04)}
.admin-link,.admin-back-link{color:#a5adbf}
.admin-link:hover,.admin-back-link:hover{color:#e9d5ff}
.error{color:#fca5a5}
.settings-note,.guest-date,.hint{color:#a5adbf}
.guest-item{
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.12);border-radius:17px;
}
.guest-name{color:#f8fafc}
.admin-header{border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:20px;margin-bottom:20px}
.admin-icon-button,.admin-more-button{
  color:#f8fafc!important;background:rgba(255,255,255,.07)!important;
  border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;
}
.admin-icon-button:hover,.admin-more-button:hover{background:rgba(255,255,255,.14)!important}
.admin-more-menu{
  background:#1b2030!important;border:1px solid rgba(255,255,255,.14)!important;
  border-radius:15px!important;box-shadow:0 20px 50px rgba(0,0,0,.38)!important;
}
.admin-more-menu button{color:#e5e7eb!important;background:transparent!important;box-shadow:none!important}
.admin-more-menu button:hover{background:rgba(255,255,255,.08)!important}
.camera-wrap,.recorded,.video-stage{border:1px solid rgba(255,255,255,.12);box-shadow:0 14px 38px rgba(0,0,0,.25)}
.timer{background:rgba(12,14,23,.8);border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(10px)}
.big-check{background:linear-gradient(135deg,#d8b4fe,#fbcfe8);color:#34223f}
.confirm-modal,.video-modal{
  background:rgba(6,8,15,.76)!important;backdrop-filter:blur(12px);
}
.confirm-card,.settings-card,.video-modal-card{
  color:#f8fafc!important;background:rgba(23,27,41,.97)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:24px!important;box-shadow:0 28px 100px rgba(0,0,0,.48)!important;
}
.confirm-card p,.video-modal-header p{color:#c7ccda}
.confirm-icon{background:linear-gradient(135deg,#d8b4fe,#fbcfe8)!important;color:#34223f!important}
.modal-close{color:#f8fafc!important;background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.12)!important}
.mode-option{background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.12)!important}
.mode-option:has(input:checked){border-color:#d8b4fe!important;background:rgba(216,180,254,.09)!important}
.settings-saved{color:#86efac}
.file-import{background:rgba(255,255,255,.07)!important;color:#f8fafc!important;border:1px solid rgba(255,255,255,.13)!important}
.player-controls{background:linear-gradient(to top,rgba(0,0,0,.96),rgba(0,0,0,.76) 36%,rgba(0,0,0,.12) 82%,transparent)}
@media(prefers-reduced-motion:no-preference){
  .hero .rings{animation:guestbookFloat 4s ease-in-out infinite}
  @keyframes guestbookFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
}
@media(max-width:650px){
  .page{padding:20px 0}
  .card{border-radius:22px;padding:25px 18px}
  .rings{width:72px;height:72px;border-radius:23px;font-size:48px}
}

/* Wedding luxury liquid-glass refresh — v2.11.35 */
:root{
  color-scheme:dark;
  --bg:#0d101b;
  --card:rgba(24,27,43,.66);
  --text:#fffaf5;
  --muted:#c0bac9;
  --accent:#e8c6d5;
  --accent-dark:#d4a9c0;
  --border:rgba(255,244,250,.18);
  --error:#ffb4b4;
  --shadow:0 28px 90px rgba(0,0,0,.34);
  --glass:rgba(255,255,255,.065);
}
html{background:#0d101b}
body{
  position:relative;isolation:isolate;overflow-x:hidden;color:var(--text);
  background:
    radial-gradient(ellipse at 12% 8%,rgba(155,112,164,.27),transparent 37%),
    radial-gradient(ellipse at 90% 83%,rgba(83,133,139,.2),transparent 34%),
    radial-gradient(ellipse at 50% 110%,rgba(190,142,161,.16),transparent 42%),
    linear-gradient(145deg,#0d101b 0%,#171727 48%,#101b25 100%);
  background-attachment:fixed;
}
/* Slow liquid colour fields and floating points of light */
body::before,body::after{
  content:"";position:fixed;z-index:0;pointer-events:none;border-radius:50%;
  filter:blur(2px);will-change:transform;
}
body::before{
  width:min(58vw,680px);height:min(58vw,680px);min-width:310px;min-height:310px;
  left:-17vw;top:-19vh;
  background:radial-gradient(circle at 40% 40%,rgba(218,171,204,.18),rgba(143,109,180,.08) 36%,transparent 70%);
  animation:liquidDriftA 25s ease-in-out infinite alternate;
}
body::after{
  width:min(64vw,760px);height:min(64vw,760px);min-width:340px;min-height:340px;
  right:-22vw;bottom:-25vh;
  background:radial-gradient(circle at 42% 38%,rgba(126,190,190,.16),rgba(122,118,184,.07) 42%,transparent 70%);
  animation:liquidDriftB 31s ease-in-out infinite alternate;
}
.page{position:relative;z-index:1}
.page::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.43;
  background-image:
    radial-gradient(circle at 12% 24%,rgba(255,239,248,.75) 0 1px,transparent 1.8px),
    radial-gradient(circle at 77% 19%,rgba(229,208,255,.7) 0 1px,transparent 1.8px),
    radial-gradient(circle at 62% 72%,rgba(255,238,222,.6) 0 1px,transparent 1.8px),
    radial-gradient(circle at 26% 82%,rgba(208,235,255,.65) 0 1px,transparent 1.8px),
    radial-gradient(circle at 88% 56%,rgba(255,232,246,.7) 0 1px,transparent 1.8px);
  background-size:330px 370px,410px 460px,500px 420px,430px 520px,370px 440px;
  animation:starlightDrift 38s linear infinite;
}
.card,.confirm-card,.settings-card,.video-modal-card{
  background:linear-gradient(135deg,rgba(255,255,255,.105),rgba(255,255,255,.035) 45%,rgba(255,255,255,.065))!important;
  border:1px solid rgba(255,245,250,.19)!important;
  box-shadow:0 28px 85px rgba(0,0,0,.31),inset 0 1px 0 rgba(255,255,255,.13),inset 0 -1px 0 rgba(255,255,255,.035)!important;
  -webkit-backdrop-filter:blur(14px) saturate(125%);
  backdrop-filter:blur(14px) saturate(125%);
}
.card{position:relative;overflow:hidden}
.card::before{
  content:"";position:absolute;inset:0 0 auto;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),rgba(245,210,226,.55),transparent);
}
.hero{animation:cardArrival .9s cubic-bezier(.2,.75,.25,1) both}
.rings{
  width:86px;height:86px;margin:0 auto 24px;display:grid;place-items:center;
  border-radius:28px;font-size:54px;color:#f6dce8;
  border:1px solid rgba(255,242,250,.3);
  background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.045));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 12px 38px rgba(0,0,0,.18),0 0 45px rgba(218,171,204,.1);
  text-shadow:0 0 28px rgba(255,214,235,.25);
}
.eyebrow{color:#e8c5dc;letter-spacing:.2em;text-shadow:0 0 22px rgba(224,183,212,.13)}
h1,h2{color:#fffaf7;text-wrap:balance;text-shadow:0 2px 26px rgba(255,231,242,.055)}
.sub,.confirm-card p,.video-modal-header p{color:#d0cbd7}
label{color:#f1e8ee}
input,select,textarea{
  color:#fffaf7!important;background:rgba(8,11,21,.31)!important;
  border:1px solid rgba(255,245,250,.17)!important;border-radius:15px!important;
  box-shadow:inset 0 1px 5px rgba(0,0,0,.12);transition:border-color .22s,background .22s,box-shadow .22s,transform .22s;
}
input::placeholder,textarea::placeholder{color:#a8a2b3}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:rgba(235,194,218,.75)!important;background:rgba(18,18,32,.58)!important;
  box-shadow:0 0 0 4px rgba(222,176,208,.1),0 0 28px rgba(222,176,208,.07);transform:translateY(-1px)
}
button{
  position:relative;overflow:hidden;color:#302536;
  background:linear-gradient(115deg,#f4dce8 0%,#e8c4dc 45%,#d6d5f3 100%);
  border:1px solid rgba(255,255,255,.35);border-radius:14px;
  box-shadow:0 8px 25px rgba(205,157,194,.13),inset 0 1px 0 rgba(255,255,255,.65);
  transition:transform .22s ease,filter .22s ease,box-shadow .22s ease;
}
button::after{
  content:"";position:absolute;top:-80%;left:-60%;width:35%;height:260%;transform:rotate(24deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);opacity:0;pointer-events:none;
}
button:hover{background:linear-gradient(115deg,#ffebf3,#f0d1e7 45%,#e3e0ff);filter:brightness(1.035);transform:translateY(-2px);box-shadow:0 12px 30px rgba(205,157,194,.2),inset 0 1px 0 rgba(255,255,255,.7)}
button:hover::after{opacity:1;animation:buttonShimmer .85s ease}
button:active{transform:translateY(0) scale(.99)}
button:disabled{filter:saturate(.4);box-shadow:none}
button.secondary,.text-button,.admin-link,.admin-back-link{
  color:#e5dce8;background:rgba(255,255,255,.065);border:1px solid rgba(255,245,250,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)
}
button.secondary:hover{color:#fff;background:rgba(255,255,255,.12)}
.text-button{background:transparent;border-color:transparent;box-shadow:none}
.text-button:hover{background:rgba(255,255,255,.055);color:#f5d8e8}
.password-toggle{color:#d9cad9!important;background:transparent!important;border:0!important;box-shadow:none!important}
.password-toggle:hover{background:rgba(255,255,255,.08)!important;transform:translateY(-50%)!important}
.error{color:#ffb4bd}
.admin-link,.admin-back-link{border:0;background:transparent;box-shadow:none}
.guest-item,.mode-option{
  background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,245,250,.13)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);backdrop-filter:blur(12px)
}
.guest-item{transition:transform .2s,border-color .2s,background .2s}
.guest-item:hover{transform:translateY(-2px);border-color:rgba(235,194,218,.32)!important;background:rgba(255,255,255,.065)!important}
.guest-name{color:#fff7f8}
.admin-header{border-color:rgba(255,245,250,.12)}
.admin-icon-button,.admin-more-button{
  color:#fff!important;background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,245,250,.17)!important;backdrop-filter:blur(12px);
}
.admin-icon-button:hover,.admin-more-button:hover{background:rgba(255,255,255,.14)!important}
.admin-more-menu{background:rgba(26,25,42,.94)!important;backdrop-filter:blur(22px)!important}
.camera-wrap,.recorded,.video-stage{border:1px solid rgba(255,245,250,.16);box-shadow:0 20px 55px rgba(0,0,0,.28)}
.timer{border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(16px)}
.big-check{background:linear-gradient(135deg,#f4dce8,#d6d5f3);color:#302536;box-shadow:0 0 45px rgba(225,187,217,.16)}
.confirm-modal,.video-modal{background:rgba(6,8,15,.72)!important;backdrop-filter:blur(18px) saturate(120%)}
.confirm-card,.settings-card,.video-modal-card{background:rgba(24,25,42,.79)!important}
.file-import{background:rgba(255,255,255,.075)!important;color:#fff!important;border:1px solid rgba(255,245,250,.15)!important}
.video-player-shell{border:1px solid rgba(255,255,255,.14)}
.success{animation:cardArrival .6s ease both}
@keyframes liquidDriftA{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(12vw,9vh,0) scale(1.12)}}
@keyframes liquidDriftB{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(-11vw,-8vh,0) scale(1.13)}}
@keyframes starlightDrift{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(30px,-38px,0)}}
@keyframes cardArrival{from{opacity:0;transform:translateY(13px) scale(.992)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes buttonShimmer{0%{left:-60%}100%{left:140%}}
@media(prefers-reduced-motion:reduce){
  /* Keep the slow ambient background motion; reduce only interface transitions. */
  button,input,select,textarea,.guest-item{transition-duration:.01ms!important;scroll-behavior:auto!important}
  .hero{animation:none!important}
}
@media(max-width:650px){
  body::before{left:-35vw;top:-10vh}body::after{right:-40vw;bottom:-15vh}
  .card{background:rgba(24,27,43,.74)!important;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
  .rings{width:74px;height:74px;border-radius:24px;font-size:47px}
}


/* Wedding GuestBook — editorial wedding redesign, lightweight CSS only */
:root{
 --bg:#f5f0e7;--card:#fffdf8;--text:#39352d;--muted:#82796b;
 --accent:#a17b4d;--accent-dark:#80603b;--border:#e5d9c6;--error:#a83f3f;
 --shadow:0 22px 65px rgba(77,60,37,.11);
}
html{color-scheme:light;scroll-behavior:smooth}
body{color:var(--text);font-family: "Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;background:#f5f0e7;background-image:radial-gradient(ellipse at 50% 0%,#fffdf8 0,transparent 58%),linear-gradient(135deg,rgba(193,170,130,.07),transparent 45%,rgba(126,145,119,.07));background-attachment:fixed}
body:before{content:"";position:fixed;inset:12px;pointer-events:none;border:1px solid rgba(161,123,77,.18);border-radius:3px;z-index:0}
.page{position:relative;z-index:1;width:min(1040px,92%);padding:clamp(24px,5vw,58px) 0}
.card{position:relative;overflow:hidden;background:rgba(255,253,248,.96);border:1px solid #e5d9c6;border-radius:5px;box-shadow:var(--shadow);backdrop-filter:none;-webkit-backdrop-filter:none;animation:wedding-arrive .42s ease-out both}
.card:before{content:"";position:absolute;top:0;left:clamp(18px,4vw,38px);right:clamp(18px,4vw,38px);height:3px;background:linear-gradient(90deg,transparent,#b69a6b 22%,#d9c7a5 50%,#b69a6b 78%,transparent)}
.hero{max-width:720px;padding:clamp(32px,6vw,64px);text-align:center}
.rings{width:76px;height:76px;margin:0 auto 22px;display:grid;place-items:center;border:1px solid #d8c5a5;border-radius:50%;color:#a17b4d;font-size:43px;line-height:1;animation:ornament-in .7s ease-out both}
.eyebrow{font-family:Arial,sans-serif;font-size:10px;letter-spacing:.28em;color:#9a794c;font-weight:600}
h1,h2{color:#40372d;font-weight:400;letter-spacing:-.025em}
h1{font-size:clamp(2.15rem,5.2vw,3.75rem);line-height:1.09;margin:17px 0 20px}
h2{font-size:clamp(1.55rem,3vw,2rem)}
.sub{font-family:Arial,sans-serif;color:#82796b;line-height:1.8;font-size:14px;max-width:470px;margin:0 auto 30px}
label{font-family:Arial,sans-serif;color:#5e5548;font-size:13px;font-weight:600;letter-spacing:.015em}
input,select,textarea{font-family:Arial,sans-serif;color:#39352d;background:#fffefa;border:1px solid #dfd2bd;border-radius:3px;transition:border-color .18s ease,box-shadow .18s ease}
input::placeholder,textarea::placeholder{color:#aaa091}
input:focus,select:focus,textarea:focus{border-color:#ad8a59;box-shadow:0 0 0 3px rgba(173,138,89,.12);outline:none}
button{font-family:Arial,sans-serif;font-size:13px;font-weight:600;letter-spacing:.025em;background:#9b794d;color:#fffdf8;border:1px solid #9b794d;border-radius:3px;box-shadow:none;transition:background .18s ease,border-color .18s ease,transform .18s ease}
button:hover{background:#80603b;border-color:#80603b;box-shadow:none;transform:translateY(-1px)}
button:active{transform:translateY(0)}
button:focus-visible,a:focus-visible{outline:2px solid #a17b4d;outline-offset:3px}
button.secondary{background:#f3eee4;color:#615443;border:1px solid #e0d3bf;box-shadow:none}
button.secondary:hover{background:#eae0cf}
.text-button{background:transparent;color:#8b7b65;border-color:transparent;box-shadow:none}
.text-button:hover{background:transparent;color:#5f4c34;box-shadow:none}
.password-toggle{background:transparent;color:#8b7b65;box-shadow:none;border:0}
.password-toggle:hover{background:#f3eee4;color:#5f4c34;box-shadow:none}
.admin-link,.admin-back-link{font-family:Arial,sans-serif;color:#8a7c68;transition:color .18s ease}
.admin-link:hover,.admin-back-link:hover{color:#8b663b}
.guest-card{max-width:850px;padding:clamp(26px,4vw,46px)}
.guest-item,.video-modal-card,.confirm-card,.admin-more-menu{background:#fffdf8;border:1px solid #e5d9c6;color:#39352d;box-shadow:0 18px 48px rgba(77,60,37,.16)}
.guest-item{border-radius:4px;transition:border-color .18s ease,box-shadow .18s ease}
.guest-item:hover{border-color:#c6ae87;box-shadow:0 8px 24px rgba(77,60,37,.08);transform:none}
.guest-name{color:#40372d}.guest-date{font-family:Arial,sans-serif;color:#8b806f}
.camera-wrap,.recorded,video{background:#25231f;border:1px solid #d7cbb8}
.timer{background:rgba(35,31,26,.82);border:1px solid rgba(255,255,255,.25);backdrop-filter:none}
.big-check{background:#e8ecdf;color:#657758;border:1px solid #d0d9c5}
.error{color:#a83f3f}
.confirm-modal,.video-modal{background:rgba(42,35,27,.58);backdrop-filter:blur(3px)}
.confirm-card{border-radius:5px}.confirm-icon{background:#f1e8d8;color:#987345}
.admin-header{border-bottom:1px solid #e8dece;padding-bottom:20px}
.admin-icon-button{background:#f3eee4;color:#6b5b46;border:1px solid #e0d3bf;box-shadow:none}
.admin-icon-button:hover{background:#eae0cf;box-shadow:none}
.admin-more-menu button{color:#554937;background:transparent;box-shadow:none}
.admin-more-menu button:hover{background:#f3eee4}
#count{font-family:Arial,sans-serif;color:#82796b;font-size:13px}
@keyframes wedding-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes ornament-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@media(max-width:650px){body:before{inset:5px}.card{border-radius:4px;padding:25px 19px}.hero{padding:32px 22px}.guest-card{padding:25px 18px}.guest-item:hover{transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* v2.12.1 — rounded champagne glass wedding UI; lightweight, no JS animation */
:root{
 --glass-bg:rgba(255,252,245,.68);
 --glass-border:rgba(255,255,255,.82);
 --glass-shadow:0 18px 48px rgba(102,78,45,.12),inset 0 1px 0 rgba(255,255,255,.88);
}
body{background-color:#f4eee3;background-image:radial-gradient(ellipse at 16% 8%,rgba(255,255,255,.96),transparent 42%),radial-gradient(ellipse at 85% 78%,rgba(211,220,202,.38),transparent 38%),linear-gradient(135deg,#f7f1e7,#eee5d6);}
body:before{border-radius:28px;border-color:rgba(161,123,77,.24)}
.card,.guest-item,.confirm-card,.settings-card,.video-modal-card,.admin-more-menu,.camera-wrap,.recorded,.video-player-shell{border-radius:26px!important;border:1px solid var(--glass-border)!important;box-shadow:var(--glass-shadow)!important;}
.card,.guest-item,.confirm-card,.settings-card,.video-modal-card,.admin-more-menu{background:var(--glass-bg)!important;-webkit-backdrop-filter:blur(14px) saturate(125%);backdrop-filter:blur(14px) saturate(125%)}
.card:before{border-radius:999px;height:2px;opacity:.78}
.hero,.guest-card{border-radius:32px!important}
.rings{border-radius:50%!important;box-shadow:0 6px 24px rgba(161,123,77,.10);background:rgba(255,255,255,.24)}
input,select,textarea,button,.admin-icon-button,.file-import,.timer,.big-check{border-radius:16px!important}
button{box-shadow:0 5px 14px rgba(128,96,59,.12);transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}
button:hover{box-shadow:0 8px 20px rgba(128,96,59,.17);transform:translateY(-1px)}
button:active{transform:scale(.985)}
input,select,textarea{background:rgba(255,255,255,.64)!important;border-color:rgba(190,166,129,.48)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px rgba(173,138,89,.14)!important}
.guest-item{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.guest-item:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(77,60,37,.12)!important}
.confirm-modal,.video-modal{background:rgba(65,52,38,.28)!important;-webkit-backdrop-filter:blur(10px) saturate(110%);backdrop-filter:blur(10px) saturate(110%)}
.camera-wrap,.recorded,video,.video-player-shell{overflow:hidden;border-radius:22px!important}
.admin-header{border-radius:0 0 18px 18px}
@media(max-width:650px){body:before{inset:5px;border-radius:18px}.card,.guest-item,.confirm-card,.settings-card,.video-modal-card,.admin-more-menu{border-radius:22px!important}.card{padding:25px 19px}.hero{padding:32px 22px}.guest-card{padding:25px 18px}}
@media(prefers-reduced-motion:reduce){button,.guest-item{transition:none!important}}


/* v2.12.2 — wedding editorial layout, readable glass and visible admin actions */
:root{--wedding-ink:#393126;--wedding-muted:#665b4d;--wedding-gold:#9b7546;--wedding-glass:rgba(255,251,242,.78);--wedding-line:rgba(164,128,78,.28)}
body{color:var(--wedding-ink);background-image:radial-gradient(ellipse at 12% 5%,rgba(255,255,255,.95),transparent 36%),radial-gradient(ellipse at 88% 86%,rgba(211,220,202,.38),transparent 34%),linear-gradient(135deg,#f7f2e9,#eae0d1);background-attachment:fixed}
body:before{border:1px solid rgba(161,123,77,.22);border-radius:30px}
.card,.guest-item,.confirm-card,.settings-card,.video-modal-card,.admin-more-menu{background:var(--wedding-glass)!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:0 18px 48px rgba(83,63,37,.12),inset 0 1px 0 rgba(255,255,255,.92)!important;color:var(--wedding-ink)!important;-webkit-backdrop-filter:blur(16px) saturate(125%);backdrop-filter:blur(16px) saturate(125%)}
h1,h2,h3,h4,p,span,label,small,strong,.eyebrow,.sub,.guest-name,.guest-date,#count,.settings-note,.admin-header p{color:var(--wedding-ink)}
.sub,.guest-date,#count,.settings-note{color:var(--wedding-muted)!important}
input,select,textarea{color:#332c23!important;background:rgba(255,255,255,.84)!important;border:1px solid rgba(153,119,73,.4)!important}
input::placeholder,textarea::placeholder{color:#71685c!important;opacity:1}
button.secondary,.admin-icon-button{color:#453727!important;background:rgba(255,255,255,.82)!important;border:1px solid rgba(151,117,72,.42)!important}
button.secondary:hover,.admin-icon-button:hover{color:#302417!important;background:#fffaf0!important;border-color:#b18a54!important}
.admin-card{width:100%;max-width:1080px;margin-inline:auto;padding:clamp(24px,4vw,44px)}
.admin-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid var(--wedding-line)}
.admin-header h1{margin:5px 0 0;font-size:clamp(2rem,4vw,3rem)}
.admin-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.admin-header-actions .admin-labeled-button{width:auto;min-width:48px;height:46px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}
.admin-labeled-button span{color:inherit;font-size:12px;font-weight:700}
.admin-labeled-button svg{width:19px;height:19px;flex:0 0 19px}
.admin-header-actions .export-button{min-height:46px}
.admin-more-menu{background:rgba(255,251,242,.97)!important;border-radius:20px!important;padding:8px!important}
.admin-more-menu button{color:#403326!important;border-radius:13px!important;padding:12px 14px!important}
.admin-more-menu button span{color:inherit!important}
.admin-more-menu button:hover{background:rgba(178,145,99,.16)!important}
.admin-icon-button svg,.admin-more-menu svg{stroke:currentColor!important}
.guest-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:18px;margin-top:20px}
.guest-item{padding:20px!important;border-radius:22px!important;transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease,border-color .22s ease!important}
.guest-item:hover{transform:translateY(-3px)!important;box-shadow:0 20px 40px rgba(83,63,37,.15),inset 0 1px 0 #fff!important}
.card,.confirm-card,.settings-card,.video-modal-card,.admin-more-menu,.guest-item{border-radius:26px!important}
button,input,select,textarea{border-radius:15px!important}
button{transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,background-color .2s ease!important}
button:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(113,82,43,.15)!important}
button:active{transform:scale(.97)!important}
.card{animation:wedding-fade-up .48s cubic-bezier(.2,.75,.25,1) both}
.guest-item{animation:wedding-fade-up .4s cubic-bezier(.2,.75,.25,1) both}
@keyframes wedding-fade-up{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
.rings{animation:wedding-ring-arrive .8s cubic-bezier(.16,1,.3,1) both}
@keyframes wedding-ring-arrive{0%{opacity:0;transform:rotate(-18deg) scale(.82)}70%{transform:rotate(4deg) scale(1.04)}100%{opacity:1;transform:rotate(0) scale(1)}}
@media(max-width:700px){.admin-card{padding:24px 17px}.admin-header{align-items:flex-start;flex-direction:column;gap:14px}.admin-header-actions{width:100%;justify-content:flex-start}.admin-header-actions .desktop-admin-action{display:none!important}.admin-more-wrap{display:block}.admin-more-button{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}.admin-more-menu{right:0;max-width:min(280px,calc(100vw - 48px))}.guest-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.card,.guest-item,.rings{animation:none!important}button,.guest-item{transition:none!important}}

/* v2.12.3 fixes: visible TXT/CSV import and calm field focus */
.file-import{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 16px!important;background:linear-gradient(135deg,#fffaf0,#eee1cb)!important;color:#403326!important;border:1px solid #b99a6b!important;border-radius:15px!important;box-shadow:0 4px 12px rgba(100,75,42,.10)!important;font-weight:700!important;line-height:1.3;visibility:visible!important;opacity:1!important;position:relative;z-index:2}
.file-import:hover{background:#fffdf7!important;border-color:#96713e!important;box-shadow:0 6px 16px rgba(100,75,42,.15)!important}
.file-import input{display:none!important}
.import-row{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;position:relative;z-index:2}
.import-row .file-import{flex:0 0 auto}
input:not([type=radio]):not([type=checkbox]):focus,select:focus,textarea:focus{color:#332c23!important;background:rgba(255,255,255,.94)!important;outline:none!important;box-shadow:0 0 0 2px rgba(173,138,89,.12)!important}
input,textarea{ -webkit-tap-highlight-color:transparent }


/* v2.12.4: refined controls for the wedding glass theme */
/* Hide browser spinner arrows on numeric settings such as video length. */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input[type="number"]{-moz-appearance:textfield;appearance:textfield}
/* Elegant custom dropdown arrow; native option list remains accessible. */
select{appearance:none!important;-webkit-appearance:none!important;padding-right:44px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ad8a59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 15px center!important;background-size:18px 18px!important}
/* Mode switch: turn tiny radio dots into clear, wedding-themed selection controls. */
.mode-option{border:1px solid rgba(173,138,89,.28);border-radius:18px;padding:14px 16px;background:rgba(255,255,255,.58);transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
.mode-option:has(input[type="radio"]:checked){border-color:rgba(173,138,89,.78);background:rgba(245,232,209,.72);box-shadow:0 5px 18px rgba(120,89,49,.09)}
.mode-option input[type="radio"]{appearance:none!important;-webkit-appearance:none!important;width:19px!important;height:19px!important;min-width:19px;border:1.5px solid #ad8a59!important;border-radius:50%!important;background:rgba(255,255,255,.8)!important;box-shadow:none!important;display:inline-grid;place-content:center;cursor:pointer}
.mode-option input[type="radio"]::before{content:"";width:9px;height:9px;border-radius:50%;transform:scale(0);transition:transform .16s ease;background:#9a7445}
.mode-option input[type="radio"]:checked::before{transform:scale(1)}
.mode-option input[type="radio"]:focus-visible{outline:3px solid rgba(173,138,89,.25);outline-offset:3px}

/* v2.12.5 — wedding petals + warm native dropdown palette */
select{color:#332c23!important;background-color:rgba(255,253,247,.9)!important;border-color:rgba(173,138,89,.48)!important;border-radius:16px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 3px 10px rgba(103,78,45,.05)!important;cursor:pointer}
select:hover{border-color:#b18a54!important;background-color:rgba(255,250,239,.98)!important}
select option,select optgroup{color:#332c23!important;background:#fffaf0!important;font-family:Arial,sans-serif}
select option:checked{color:#332c23!important;background:#ead9bb!important}
select:focus{border-color:#b18a54!important;box-shadow:0 0 0 3px rgba(177,138,84,.16),inset 0 1px 0 rgba(255,255,255,.8)!important}
/* Lightweight decorative petal drift; does not block controls or trigger layout work. */
body:before{content:"";position:fixed;inset:-110vh 0 0;z-index:0;pointer-events:none;opacity:.42;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='130' viewBox='0 0 90 130'%3E%3Cpath d='M18 8 C3 19 7 34 22 39 C36 30 31 15 18 8Z' fill='%23dba7b5' fill-opacity='.72'/%3E%3Cpath d='M69 54 C54 61 56 78 72 83 C84 72 81 60 69 54Z' fill='%23e8bdc7' fill-opacity='.65'/%3E%3Cpath d='M38 101 C25 110 29 123 41 126 C53 118 49 106 38 101Z' fill='%23c98e9f' fill-opacity='.58'/%3E%3C/svg%3E");background-size:180px 260px;background-repeat:repeat;animation:rose-petal-drift 24s linear infinite}
body>.page,body>main,body>.container{position:relative;z-index:1}
@keyframes rose-petal-drift{0%{transform:translate3d(0,-8vh,0)}50%{transform:translate3d(18px,45vh,0)}100%{transform:translate3d(-12px,105vh,0)}}
@media(prefers-reduced-motion:reduce){body:before{animation:none!important;display:none!important}}

/* v2.12.6 — fully custom wedding guest picker (no native Windows dropdown popup) */
.wedding-select-wrap{position:relative;width:100%;z-index:1001}
.wedding-select-wrap>select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;left:0!important;bottom:0!important;padding:0!important}
.wedding-select-trigger{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;padding:12px 17px!important;color:#403326!important;background:rgba(255,255,255,.78)!important;border:1px solid rgba(173,138,89,.42)!important;border-radius:17px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 5px 16px rgba(103,78,45,.06)!important;font-weight:500!important;letter-spacing:0!important}
.wedding-select-trigger:hover,.wedding-select-trigger[aria-expanded="true"]{background:rgba(255,251,242,.97)!important;border-color:#b18a54!important;transform:none!important}
.wedding-select-trigger:focus-visible,.wedding-select-option:focus-visible{outline:3px solid rgba(177,138,84,.28);outline-offset:2px}
.wedding-select-chevron{width:10px;height:10px;flex:0 0 10px;border-right:2px solid #a17b4d;border-bottom:2px solid #a17b4d;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}
.wedding-select-trigger[aria-expanded="true"] .wedding-select-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.wedding-select-menu{position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:min(300px,45vh);overflow-y:auto;overscroll-behavior:contain;padding:7px;background:rgba(255,249,242,.72);border:1px solid rgba(255,255,255,.78);border-radius:20px;box-shadow:0 18px 42px rgba(72,52,29,.16),inset 0 1px 0 rgba(255,255,255,.92),inset 0 -1px 0 rgba(173,138,89,.12);-webkit-backdrop-filter:blur(24px) saturate(155%);backdrop-filter:blur(24px) saturate(155%);z-index:1000;isolation:isolate;animation:guest-menu-in .16s ease-out both}
.wedding-select-menu.hidden{display:none!important}
.wedding-select-option{display:block;width:100%;text-align:left;min-height:42px;padding:10px 12px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:#403326!important;box-shadow:none!important;font-weight:500!important;letter-spacing:0!important;transform:none!important}
.wedding-select-option:hover:not(:disabled),.wedding-select-option[aria-selected="true"]{background:rgba(224,201,164,.42)!important;color:#332417!important}
.wedding-select-option:disabled,.wedding-select-option.is-used{opacity:.48;cursor:not-allowed}
@keyframes guest-menu-in{from{opacity:0;transform:translateY(-4px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
/* Shared, larger rose petals on every page; pointer-events never block the UI. */
.petal-layer{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:1;contain:layout paint;isolation:isolate}
.petal-layer .rose-petal{position:absolute;left:var(--x);top:-8vh;width:var(--size,20px);height:var(--height,29px);display:block;opacity:0;background:linear-gradient(145deg,rgba(255,226,232,.98) 0%,rgba(246,166,184,.94) 48%,rgba(205,104,132,.82) 100%);border-radius:82% 12% 76% 20%;box-shadow:inset 2px 1px 3px rgba(255,255,255,.7),0 3px 8px rgba(128,54,76,.12);transform:rotate(0deg) scale(var(--scale));animation:rose-petal-fall var(--duration) var(--delay) linear infinite;will-change:transform,top,opacity}
.petal-layer .rose-petal:nth-child(3n){border-radius:75% 18% 82% 16%;background:linear-gradient(135deg,rgba(255,239,241,.98),rgba(229,145,164,.9))}
.petal-layer .rose-petal:nth-child(4n){border-radius:88% 14% 74% 24%;background:linear-gradient(150deg,rgba(255,215,226,.98),rgba(198,94,125,.86))}
@keyframes rose-petal-fall{0%{top:-8vh;opacity:0;transform:translate3d(0,0,0) rotate(0deg) scale(var(--scale))}7%{opacity:.88}48%{transform:translate3d(var(--sway),48vh,0) rotate(250deg) scale(var(--scale))}84%{opacity:.78}100%{top:108vh;opacity:0;transform:translate3d(calc(var(--sway) * -1),108vh,0) rotate(610deg) scale(var(--scale))}}
/* Remove the old repeated SVG animation that looked like random shapes. */
body:before{animation:none!important;background-image:none!important;inset:12px!important;border:1px solid rgba(161,123,77,.18)!important;border-radius:20px!important;z-index:0!important}
.page,.card,main,.container{position:relative;z-index:2}
/* v2.12.8: stronger frosted-glass dropdown; petals stay behind every interactive surface. */
.wedding-select-menu{background:rgba(255,249,242,.68)!important;border:1px solid rgba(255,255,255,.82)!important;box-shadow:0 20px 48px rgba(72,52,29,.16),inset 0 1px 0 rgba(255,255,255,.92)!important;-webkit-backdrop-filter:blur(28px) saturate(165%)!important;backdrop-filter:blur(28px) saturate(165%)!important;z-index:1000!important}
.wedding-select-wrap{position:relative}
.wedding-select-wrap .wedding-select-menu{position:absolute!important}
.wedding-select-trigger{background:rgba(255,255,255,.56)!important;-webkit-backdrop-filter:blur(18px) saturate(150%)!important;backdrop-filter:blur(18px) saturate(150%)!important}
.wedding-select-option:hover:not(:disabled),.wedding-select-option[aria-selected="true"]{background:rgba(222,190,143,.46)!important}
@media(prefers-reduced-motion:reduce){.petal-layer{display:none!important}.wedding-select-menu{animation:none!important}.wedding-select-chevron{transition:none!important}}
body:after{content:none!important;animation:none!important;background:none!important}


/* v2.12.9 — true frosted glass, petals strictly behind content, responsive admin menu */
/* Put the decorative layer below every page surface and all interactive controls. */
.petal-layer{z-index:0!important;pointer-events:none!important;isolation:isolate;}
body{isolation:isolate;}
body:before{z-index:0!important;pointer-events:none!important;}
body>*:not(#petalLayer){position:relative;z-index:2;}
#petalLayer{position:fixed!important;inset:0!important;z-index:0!important;overflow:hidden!important;pointer-events:none!important;}
.card,.admin-card,.guest-card,.hero,.settings-card,.confirm-card,.video-modal-card,.guest-item,.wedding-select-menu,.admin-more-menu,.modal-content,.panel,.auth-card{
 background:rgba(255,249,241,.48)!important;
 border:1px solid rgba(255,255,255,.82)!important;
 box-shadow:0 18px 52px rgba(91,64,39,.14),inset 0 1px 0 rgba(255,255,255,.88),inset 0 -1px 0 rgba(194,153,112,.12)!important;
 -webkit-backdrop-filter:blur(30px) saturate(165%)!important;
 backdrop-filter:blur(30px) saturate(165%)!important;
}
.wedding-select-menu{background:rgba(255,248,240,.54)!important;backdrop-filter:blur(32px) saturate(175%)!important;-webkit-backdrop-filter:blur(32px) saturate(175%)!important;z-index:20!important;}
.wedding-select-wrap{z-index:10!important;}
.wedding-select-wrap:has(.wedding-select-menu:not(.hidden)){z-index:30!important;}
.admin-more-wrap{position:relative!important;flex:0 0 auto;}
.admin-more-menu{position:absolute!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;width:max-content!important;min-width:190px!important;max-width:calc(100vw - 24px)!important;z-index:100!important;transform-origin:top right;}
@media(max-width:700px){
 .admin-card{width:calc(100% - 20px)!important;max-width:none!important;padding:20px 14px!important;}
 .admin-header{width:100%;min-width:0;}
 .admin-header-actions{position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important;width:100%!important;}
 .admin-more-wrap{margin-left:auto!important;position:relative!important;}
 .admin-more-menu{right:0!important;left:auto!important;max-width:calc(100vw - 28px)!important;min-width:min(190px,calc(100vw - 28px))!important;}
 .petal-layer .rose-petal{opacity:.72!important;}
}
@media(max-width:420px){
 .admin-card{padding:17px 11px!important;}
 .admin-header-actions .admin-more-menu{right:0!important;}
 .petal-layer .rose-petal{width:calc(var(--size,20px)*.72)!important;height:calc(var(--height,29px)*.72)!important;}
}
@media(prefers-reduced-transparency:reduce){.card,.admin-card,.guest-card,.hero,.settings-card,.confirm-card,.video-modal-card,.guest-item,.wedding-select-menu,.admin-more-menu{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(255,249,241,.94)!important}}


/* v2.13.1 — mobile admin menu lifted beside title + reliable bidirectional scrolling */
html{min-height:100%;height:auto;overflow-x:hidden;overflow-y:auto!important;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;}
body{min-height:100%;height:auto;overflow-x:hidden;overflow-y:auto!important;overscroll-behavior-y:auto;touch-action:pan-y;}
.page{min-height:100dvh;height:auto;overflow:visible!important;}
@media(max-width:700px){
 .admin-header{position:relative!important;display:block!important;padding-top:0!important;padding-right:62px!important;min-height:112px!important;overflow:visible!important;}
 .admin-header h1{max-width:100%;overflow-wrap:anywhere;}
 .admin-header-actions{position:absolute!important;top:0!important;right:0!important;width:auto!important;display:block!important;overflow:visible!important;}
 .admin-more-wrap{position:relative!important;margin:0!important;}
 .admin-more-button{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;}
 .admin-more-menu{position:absolute!important;top:calc(100% + 6px)!important;right:0!important;left:auto!important;transform:none!important;width:max-content!important;min-width:190px!important;max-width:calc(100vw - 32px)!important;max-height:min(65dvh,420px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;z-index:9999!important;}
 .admin-card{overflow:visible!important;}
}
@media(max-width:420px){.admin-header{padding-right:56px!important;min-height:106px!important}.admin-more-menu{max-width:calc(100vw - 24px)!important;}}

/* v2.13.3 — iOS touch scroll fix: one scroll container per dialog, scroll in both directions */
.confirm-modal{
  position:fixed!important; inset:0!important; z-index:12000!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  box-sizing:border-box!important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom))!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  touch-action:none!important;
}
.confirm-modal.hidden{display:none!important}
.confirm-modal > .confirm-card,
.confirm-modal > .settings-card,
.confirm-modal .settings-card{
  position:relative!important; inset:auto!important; margin:0 auto!important;
  box-sizing:border-box!important;
  width:min(100%, 560px)!important; max-width:100%!important;
  max-height:calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  min-height:0!important;
  overflow-x:hidden!important; overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain!important;
  touch-action:pan-y!important;
  scrollbar-gutter:stable;
  overscroll-behavior:contain!important;
}
body.modal-open{overflow:hidden!important;}
.admin-more-menu{
  overscroll-behavior-y:contain!important; overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important; touch-action:pan-y!important; scrollbar-gutter:stable;
}
.admin-more-menu button{touch-action:manipulation!important;}
@media(max-width:700px){
 .confirm-modal{align-items:flex-start!important;justify-content:center!important;padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom))!important;}
 .confirm-modal > .confirm-card,
 .confirm-modal > .settings-card,
 .confirm-modal .settings-card{
   width:100%!important;max-width:560px!important;
   max-height:calc(100vh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
   max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
   margin:0 auto!important; flex:0 1 auto!important;
   overscroll-behavior-y:contain!important; overscroll-behavior:contain!important; touch-action:pan-y!important;
   -webkit-overflow-scrolling:touch!important;
 }
 .admin-more-menu{max-height:min(60dvh,420px)!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;overscroll-behavior:contain!important;touch-action:pan-y!important;}
}


/* v2.13.4 — wedding champagne scrollbar, visible end cap and consistent scrolling */
:root{
  scrollbar-color: rgba(174,132,77,.82) rgba(239,224,204,.58);
  scrollbar-width: thin;
}
/* Firefox + Chromium/WebKit: style all scrollable areas consistently */
*{scrollbar-color:rgba(174,132,77,.82) rgba(239,224,204,.58);scrollbar-width:thin;}
*::-webkit-scrollbar{width:12px;height:12px;}
*::-webkit-scrollbar-track{background:rgba(239,224,204,.58);border:1px solid rgba(255,255,255,.72);border-radius:999px;margin:5px;}
*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#d8b989 0%,#ad8049 100%);border:3px solid rgba(255,249,240,.82);border-radius:999px;min-height:34px;}
*::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#caa16a 0%,#94683a 100%);}
*::-webkit-scrollbar-corner{background:rgba(239,224,204,.58);border-radius:8px;}
/* Make the scrollbar's lower end and the final content reachable; avoid black native textarea bars. */
textarea{scrollbar-color:#ad8049 #f0e4d3;scrollbar-width:thin;resize:vertical;}
textarea::-webkit-scrollbar{width:12px;}
textarea::-webkit-scrollbar-track{background:#f0e4d3;border-radius:999px;margin:3px;}
textarea::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#d8b989,#ad8049);border:3px solid #f0e4d3;border-radius:999px;}
.confirm-card,.settings-card,.confirm-modal,.admin-more-menu,.wedding-select-menu{scrollbar-color:#ad8049 #f0e4d3;scrollbar-width:thin;}
.confirm-card::-webkit-scrollbar-track,.settings-card::-webkit-scrollbar-track,.admin-more-menu::-webkit-scrollbar-track,.wedding-select-menu::-webkit-scrollbar-track{margin:10px 2px 10px 0;}
@media(max-width:700px){
  *::-webkit-scrollbar{width:8px;height:8px;}
  *::-webkit-scrollbar-thumb{border-width:2px;min-height:28px;}
  .confirm-card,.settings-card,.admin-more-menu,.wedding-select-menu{scrollbar-gutter:auto!important;}
}


/* v2.13.5 — prevent iOS scroll chaining when a settings panel reaches either end */
.confirm-modal{overscroll-behavior:contain!important;touch-action:none!important;}
.confirm-modal .confirm-card,
.confirm-modal .settings-card{overscroll-behavior:contain!important;overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overflow-y:auto!important;}
.confirm-modal .confirm-card *,
.confirm-modal .settings-card *{touch-action:pan-y!important;}
.admin-more-menu{overscroll-behavior:contain!important;overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;}
@media(max-width:700px){
  .confirm-modal{position:fixed!important;inset:0!important;overflow:hidden!important;}
  .confirm-modal .settings-card{max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;}
}


/* v2.13.6 — complete wedding-glass scrollbar treatment and visible end caps */
:root {
  --wedding-scroll-track: rgba(232, 211, 183, .42);
  --wedding-scroll-thumb-top: #ead4ad;
  --wedding-scroll-thumb-bottom: #b88a53;
  --wedding-scroll-border: rgba(255, 252, 246, .96);
}
/* Apply the custom scrollbar only to actual scroll containers and textareas. */
html, body, .confirm-modal, .confirm-card, .settings-card, .admin-more-menu,
.wedding-select-menu, .guest-list-settings, .guest-list-settings textarea,
.video-modal-card, .video-modal-body {
  scrollbar-color: var(--wedding-scroll-thumb-bottom) var(--wedding-scroll-track);
  scrollbar-width: thin;
}
html::-webkit-scrollbar, body::-webkit-scrollbar,
.confirm-modal::-webkit-scrollbar, .confirm-card::-webkit-scrollbar,
.settings-card::-webkit-scrollbar, .admin-more-menu::-webkit-scrollbar,
.wedding-select-menu::-webkit-scrollbar, .guest-list-settings::-webkit-scrollbar,
.guest-list-settings textarea::-webkit-scrollbar,
.video-modal-card::-webkit-scrollbar, .video-modal-body::-webkit-scrollbar {
  width: 10px; height: 10px;
}
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track,
.confirm-modal::-webkit-scrollbar-track, .confirm-card::-webkit-scrollbar-track,
.settings-card::-webkit-scrollbar-track, .admin-more-menu::-webkit-scrollbar-track,
.wedding-select-menu::-webkit-scrollbar-track, .guest-list-settings::-webkit-scrollbar-track,
.guest-list-settings textarea::-webkit-scrollbar-track,
.video-modal-card::-webkit-scrollbar-track, .video-modal-body::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(250,242,230,.82), rgba(231,211,184,.6));
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  margin: 4px 2px;
}
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb,
.confirm-modal::-webkit-scrollbar-thumb, .confirm-card::-webkit-scrollbar-thumb,
.settings-card::-webkit-scrollbar-thumb, .admin-more-menu::-webkit-scrollbar-thumb,
.wedding-select-menu::-webkit-scrollbar-thumb, .guest-list-settings::-webkit-scrollbar-thumb,
.guest-list-settings textarea::-webkit-scrollbar-thumb,
.video-modal-card::-webkit-scrollbar-thumb, .video-modal-body::-webkit-scrollbar-thumb {
  min-height: 44px;
  background: linear-gradient(180deg, var(--wedding-scroll-thumb-top), var(--wedding-scroll-thumb-bottom));
  border: 2px solid var(--wedding-scroll-border);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.82), 0 1px 3px rgba(117,78,38,.18);
}
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover,
.confirm-modal::-webkit-scrollbar-thumb:hover, .confirm-card::-webkit-scrollbar-thumb:hover,
.settings-card::-webkit-scrollbar-thumb:hover, .admin-more-menu::-webkit-scrollbar-thumb:hover,
.wedding-select-menu::-webkit-scrollbar-thumb:hover, .guest-list-settings textarea::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f0d9b0, #a97840);
}
html::-webkit-scrollbar-corner, body::-webkit-scrollbar-corner,
.confirm-card::-webkit-scrollbar-corner, .settings-card::-webkit-scrollbar-corner,
.guest-list-settings textarea::-webkit-scrollbar-corner {
  background: rgba(246,235,219,.9); border-radius: 8px;
}
/* Give the final line and scrollbar end cap breathing room; avoid the clipped black native resize grip. */
.guest-list-settings textarea {
  display: block;
  padding: 12px 16px 20px;
  margin-bottom: 4px;
  resize: vertical;
  border-radius: 14px;
  background: rgba(255,252,247,.82);
  color: #40362c;
  border: 1px solid rgba(190,151,99,.42);
  box-shadow: inset 0 1px 3px rgba(120,86,48,.06);
  outline-offset: 2px;
}
.guest-list-settings textarea:focus {
  border-color: rgba(174,132,77,.8);
  box-shadow: 0 0 0 3px rgba(205,169,118,.16), inset 0 1px 3px rgba(120,86,48,.06);
}
.guest-list-settings textarea::-webkit-resizer { background: transparent; }
@media (max-width: 700px) {
  html::-webkit-scrollbar, body::-webkit-scrollbar,
  .confirm-modal::-webkit-scrollbar, .confirm-card::-webkit-scrollbar,
  .settings-card::-webkit-scrollbar, .admin-more-menu::-webkit-scrollbar,
  .wedding-select-menu::-webkit-scrollbar, .guest-list-settings textarea::-webkit-scrollbar { width: 7px; }
  html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb,
  .confirm-modal::-webkit-scrollbar-thumb, .confirm-card::-webkit-scrollbar-thumb,
  .settings-card::-webkit-scrollbar-thumb, .admin-more-menu::-webkit-scrollbar-thumb,
  .wedding-select-menu::-webkit-scrollbar-thumb, .guest-list-settings textarea::-webkit-scrollbar-thumb { border-width: 1px; min-height: 38px; }
}


/* v2.13.7 — fix clipped textarea scrollbar end and iOS modal scroll chaining */
#settingsModal.confirm-modal:not(.hidden) {
  display:flex !important; align-items:center !important; justify-content:center !important;
  overflow:hidden !important; overscroll-behavior:none !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
}
#settingsModal .settings-card {
  display:block !important; flex:0 1 auto !important;
  width:min(560px, 100%) !important; max-width:100% !important;
  max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px) !important;
  overflow-x:hidden !important; overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
  overscroll-behavior-y:contain !important;
  touch-action:pan-y !important;
  padding-bottom:max(22px, env(safe-area-inset-bottom)) !important;
  scrollbar-gutter:auto !important;
}
#guestListSettings { min-width:0 !important; padding-bottom:12px !important; }
#guestListSettings textarea {
  box-sizing:border-box !important; width:100% !important;
  height:clamp(150px, 26vh, 230px) !important; min-height:150px !important;
  max-height:32vh !important; resize:none !important;
  overflow-y:auto !important; overflow-x:hidden !important;
  padding:12px 14px 18px !important; margin:0 0 10px !important;
  border:1px solid rgba(190,151,99,.5) !important;
  border-radius:16px !important;
  background:linear-gradient(145deg,rgba(255,252,247,.82),rgba(246,232,211,.55)) !important;
  box-shadow:inset 0 1px 3px rgba(120,86,48,.06),0 0 0 1px rgba(255,255,255,.35) !important;
  scrollbar-width:thin !important; scrollbar-color:#b88a53 rgba(232,211,183,.35) !important;
}
#guestListSettings textarea::-webkit-scrollbar { width:8px !important; }
#guestListSettings textarea::-webkit-scrollbar-track {
  margin:4px 2px 8px !important; border-radius:999px !important;
  background:rgba(232,211,183,.42) !important; border:1px solid rgba(255,255,255,.8) !important;
}
#guestListSettings textarea::-webkit-scrollbar-thumb {
  min-height:44px !important; border-radius:999px !important;
  background:linear-gradient(180deg,#ead4ad,#b88a53) !important;
  border:2px solid rgba(255,250,242,.94) !important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.9),0 1px 3px rgba(117,78,38,.18) !important;
}
@media(max-width:700px) {
  #settingsModal.confirm-modal { align-items:flex-start !important; padding:calc(8px + env(safe-area-inset-top)) 9px calc(8px + env(safe-area-inset-bottom)) !important; }
  #settingsModal .settings-card {
    width:100% !important; max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px) !important;
    padding-bottom:max(24px,env(safe-area-inset-bottom)) !important;
    -webkit-overflow-scrolling:touch !important; overscroll-behavior:contain !important;
  }
  #guestListSettings textarea { height:clamp(130px, 22vh, 190px) !important; min-height:130px !important; max-height:25vh !important; }
}


/* v2.13.8 — smoother petals, single-shot refresh, modal hidden-state safety */
body:before { animation:none !important; background-image:none !important; }
.petal-layer .rose-petal {
  animation-name: rose-petal-fall-smooth !important;
  animation-timing-function: cubic-bezier(.38,.02,.62,.98) !important;
  will-change: transform, opacity;
  backface-visibility:hidden;
}
@keyframes rose-petal-fall-smooth {
  0% { opacity:0; transform:translate3d(0,-12vh,0) rotate(0deg) scale(var(--scale)); }
  8% { opacity:.82; }
  48% { transform:translate3d(var(--sway),45vh,0) rotate(210deg) scale(var(--scale)); }
  88% { opacity:.78; }
  100% { opacity:0; transform:translate3d(calc(var(--sway) * -1),112vh,0) rotate(430deg) scale(var(--scale)); }
}
.refresh-symbol.is-spinning { animation: refreshSpinOnce .68s cubic-bezier(.2,.7,.25,1) 1 !important; transform-origin:50% 50%; }
@keyframes refreshSpinOnce { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@media (max-width:700px) {
}
@media (prefers-reduced-motion:reduce) { .petal-layer .rose-petal { animation:none !important; } .refresh-symbol.is-spinning { animation:none !important; } }


/* v2.13.9 — fix clipped guest list and nested iOS scrolling */
#settingsModal.confirm-modal:not(.hidden) {
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
#settingsModal .settings-card {
  box-sizing: border-box !important;
  min-height: 0 !important;
  max-height: calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
  padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
}
#guestListSettings { min-width: 0 !important; overflow: visible !important; padding: 0 0 14px !important; }
#guestListSettings textarea {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: clamp(170px, 30vh, 260px) !important;
  min-height: 150px !important;
  max-height: 38vh !important;
  margin: 0 0 12px !important;
  padding: 12px 16px 22px !important;
  resize: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  scrollbar-gutter: auto !important;
}
#guestListSettings textarea::-webkit-scrollbar { width: 9px !important; }
#guestListSettings textarea::-webkit-scrollbar-track {
  margin: 5px 2px 5px !important;
  border-radius: 999px !important;
  background: rgba(232,211,183,.38) !important;
  border: 1px solid rgba(255,255,255,.85) !important;
}
#guestListSettings textarea::-webkit-scrollbar-thumb {
  min-height: 42px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(234,212,173,.96), rgba(172,125,68,.96)) !important;
  border: 2px solid rgba(255,249,240,.9) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 1px 3px rgba(117,78,38,.15) !important;
}
@media (max-width: 700px) {
  #settingsModal.confirm-modal:not(.hidden) {
    align-items: flex-start !important;
    padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)) !important;
  }
  #settingsModal .settings-card {
    width: 100% !important;
    max-height: calc(100vh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    padding: 18px 14px max(24px, env(safe-area-inset-bottom)) !important;
    margin: 0 auto !important;
  }
  #guestListSettings textarea {
    height: clamp(150px, 24vh, 210px) !important;
    min-height: 130px !important;
    max-height: 28vh !important;
    padding-bottom: 22px !important;
  }
}


/* v2.13.10 — keep the custom guest dropdown above card clipping and inside the viewport */
.wedding-select-wrap .wedding-select-menu {
  position: fixed !important;
  left: 12px; right: auto;
  max-height: min(320px, calc(100dvh - 24px));
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  z-index: 10000 !important;
  padding-bottom: 10px !important;
}
.wedding-select-menu .wedding-select-option:last-child { margin-bottom: 3px !important; }

/* v2.13.11: body-portaled guest list, no card clipping */
body > .wedding-select-menu {
  position: fixed !important;
  z-index: 20000 !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  padding: 7px 7px 12px !important;
  scrollbar-gutter: stable;
}

/* v2.13.12 — settings spacing and stronger text contrast */
#settingsModal .settings-card {
  padding: 30px 30px 28px !important;
  gap: 18px !important;
}
#settingsModal .settings-heading { gap: 15px !important; margin-bottom: 8px !important; }
#settingsModal #settingsForm { gap: 12px !important; }
#settingsModal .confirm-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: 18px !important;
  padding: 14px 2px 2px !important;
}
#settingsModal .confirm-actions button {
  min-height: 44px !important;
  padding: 11px 20px !important;
  border-radius: 15px !important;
}
#settingsModal .settings-input-row { gap: 12px !important; }
#settingsModal .mode-options { gap: 12px !important; margin: 5px 0 10px !important; }
#settingsModal .mode-option { padding: 15px 16px !important; border-radius: 16px !important; }
#settingsModal .settings-note,
#settingsModal .settings-heading p,
#settingsModal .mode-option small,
#settingsModal .settings-input-row span,
#settingsModal .guest-list-settings p {
  color: #554738 !important;
  opacity: 1 !important;
}
#settingsModal label,
#settingsModal .mode-option strong { color: #382d21 !important; }
#settingsModal input::placeholder,
#settingsModal textarea::placeholder { color: #6a5b4a !important; opacity: 1 !important; }
#settingsModal .confirm-icon { color: #684a27 !important; }
#settingsModal .file-import,
#settingsModal button.secondary,
#settingsModal .primary-button { font-weight: 700 !important; }
/* Darken subdued copy across the site while preserving the wedding palette. */
.sub, .guest-date, #count, .settings-note, .admin-header p,
.admin-back-link, .admin-link, .password-hint, .field-hint,
.helper-text, .muted, small, .guest-status, .video-meta,
#playerMeta, .confirm-card > p:not(.error), .video-modal-header p {
  color: #5c4e3f !important;
  opacity: 1;
}
input::placeholder, textarea::placeholder { color: #6a5b4a !important; opacity: 1 !important; }
@media (max-width: 700px) {
  #settingsModal .settings-card { padding: 22px 18px max(26px, env(safe-area-inset-bottom)) !important; }
  #settingsModal .confirm-actions { gap: 10px !important; margin-top: 16px !important; padding: 12px 2px 3px !important; }
  #settingsModal .confirm-actions button { flex: 1 1 120px !important; padding: 11px 14px !important; }
  #settingsModal .mode-option { padding: 13px 14px !important; }
}


/* v2.13.13 — keep the video player as a viewport-level modal.
   The decorative-layer rule above positions direct body children relatively;
   explicitly restore fixed positioning for overlays so the player cannot render
   at the bottom of the document. */
.video-modal:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  box-sizing: border-box !important;
}
.video-modal.hidden { display: none !important; }
.video-modal .video-modal-card {
  position: relative !important;
  flex: 0 1 1080px !important;
  width: min(100%, 1080px) !important;
  max-width: 1080px !important;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  margin: auto !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}
.video-modal .video-player-shell {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}
@media (max-width: 700px) {
  .video-modal:not(.hidden) { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important; }
  .video-modal .video-modal-card {
    width: 100% !important;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    padding: 12px !important;
  }
  .video-modal .video-player-shell video { max-height: min(66dvh, 720px) !important; }
}

/* v2.13.15 — wedding Liquid Glass video player polish */
.video-modal:not(.hidden){
  background:rgba(65,48,31,.42)!important;
  -webkit-backdrop-filter:blur(18px) saturate(125%)!important;
  backdrop-filter:blur(18px) saturate(125%)!important;
}
.video-modal .video-modal-card{
  padding:clamp(16px,2.2vw,28px)!important;
  border:1px solid rgba(255,255,255,.9)!important;
  border-radius:28px!important;
  background:linear-gradient(145deg,rgba(255,251,244,.96),rgba(246,232,211,.92))!important;
  color:#403326!important;
  box-shadow:0 28px 90px rgba(76,52,28,.28),inset 0 1px 0 rgba(255,255,255,.95)!important;
  -webkit-backdrop-filter:blur(24px) saturate(135%)!important;
  backdrop-filter:blur(24px) saturate(135%)!important;
}
.video-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px!important}
.video-modal-header h2{margin:0;color:#403326!important;font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.025em}
.video-modal-header p,#playerMeta{margin:5px 0 0;color:#6c5844!important;font-size:12px;opacity:1}
.video-modal .modal-close{flex:0 0 auto;background:rgba(255,255,255,.68)!important;border:1px solid rgba(160,119,68,.3)!important;color:#634a30!important;box-shadow:0 4px 12px rgba(100,72,40,.08);transition:transform .2s ease,background .2s ease}
.video-modal .modal-close:hover{transform:rotate(90deg);background:#fff7eb!important}
.video-player-shell{background:#211a14!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:22px!important;box-shadow:0 12px 32px rgba(82,55,28,.2)!important}
.video-player-shell video{background:#211a14!important}
.big-play{width:76px;height:76px;border:1px solid rgba(255,255,255,.82)!important;background:linear-gradient(145deg,rgba(255,250,240,.92),rgba(209,164,101,.9))!important;color:#533a21!important;box-shadow:0 8px 32px rgba(26,17,9,.3),inset 0 1px 0 rgba(255,255,255,.9)!important;backdrop-filter:blur(18px)!important;transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s ease!important}
.big-play:hover{transform:translate(-50%,-50%) scale(1.06)!important;box-shadow:0 12px 38px rgba(26,17,9,.36),inset 0 1px 0 rgba(255,255,255,.95)!important}
.player-controls{padding:54px 18px 16px!important;background:linear-gradient(to top,rgba(39,29,20,.94),rgba(51,38,25,.72) 45%,rgba(51,38,25,.14) 82%,transparent)!important}
.player-progress-track{height:4px!important;background:rgba(255,246,230,.32)!important}
.player-buffered{background:rgba(255,230,187,.62)!important}
.player-progress::-webkit-slider-thumb{width:13px!important;height:13px!important;background:#f4d29b!important;border:2px solid #fff8ed!important;box-shadow:0 1px 8px rgba(0,0,0,.4)!important}
.player-progress::-moz-range-thumb{width:13px!important;height:13px!important;background:#f4d29b!important;border:2px solid #fff8ed!important;box-shadow:0 1px 8px rgba(0,0,0,.4)!important}
.player-control-btn{border:1px solid rgba(255,244,225,.28)!important;border-radius:13px!important;background:rgba(255,247,233,.12)!important;color:#fff8ed!important;backdrop-filter:blur(16px)!important;transition:background .2s ease,border-color .2s ease,transform .2s ease!important}
.player-control-btn:hover{background:rgba(255,235,204,.25)!important;border-color:rgba(255,244,225,.55)!important;transform:translateY(-1px)!important}
.player-main-control{border-radius:50%!important;background:linear-gradient(145deg,rgba(255,247,231,.3),rgba(206,158,94,.25))!important;border-color:rgba(255,244,225,.5)!important}
.player-time{color:#fff6e8!important;font-variant-numeric:tabular-nums;font-family:system-ui,sans-serif!important}
.player-speed{color:#fff3df!important}
.player-volume{accent-color:#e5bd7e!important;background:rgba(255,245,226,.35)!important}
.player-error{border-radius:20px;color:#4a3322!important;background:rgba(255,247,235,.96)!important}
@media(max-width:700px){
 .video-modal .video-modal-card{padding:12px!important;border-radius:23px!important}
 .video-modal-header{margin-bottom:11px!important}
 .video-player-shell{border-radius:17px!important}
 .video-modal .video-player-shell video{max-height:min(66dvh,720px)!important}
 .player-controls{padding:42px 9px 10px!important}
 .player-controls-row{gap:5px!important}
 .player-control-btn{width:33px;height:33px;border-radius:11px!important}
 .player-main-control{border-radius:50%!important}
 .big-play{width:64px;height:64px;font-size:23px}
}
@media(prefers-reduced-motion:reduce){.big-play,.player-control-btn,.video-modal .modal-close{transition:none!important}}


/* v2.13.15 — compact, modern wedding-glass player controls */
.player-controls{padding:24px 16px 12px!important;background:linear-gradient(to top,rgba(39,29,20,.91),rgba(51,38,25,.58) 55%,rgba(51,38,25,.08) 100%,transparent)!important}
.player-progress-wrap{position:relative;margin:0 0 8px!important;min-height:8px}
.player-progress-track{height:3px!important;border-radius:999px!important;overflow:hidden;background:rgba(255,246,230,.27)!important}
.player-progress{height:16px!important;top:50%!important;transform:translateY(-50%)!important;cursor:pointer}
.player-progress::-webkit-slider-thumb{width:10px!important;height:10px!important;box-shadow:0 0 0 3px rgba(244,210,155,.16),0 1px 5px rgba(0,0,0,.3)!important}
.player-progress::-moz-range-thumb{width:10px!important;height:10px!important;box-shadow:0 0 0 3px rgba(244,210,155,.16),0 1px 5px rgba(0,0,0,.3)!important}
.player-control-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;width:36px;height:36px;padding:0!important;border-radius:12px!important;background:rgba(255,248,236,.10)!important;border-color:rgba(255,248,236,.22)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}
.player-control-btn svg,.big-play svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.player-main-control svg,.big-play svg{fill:currentColor;stroke:none}
.player-main-control{width:38px;height:38px!important}
.player-control-btn .skip-svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.player-control-btn small{font-size:8px;line-height:1;margin-left:-2px;color:inherit}
.player-time{font-size:11px!important;letter-spacing:.01em;white-space:nowrap}
.player-speed{font-size:12px!important;font-weight:600}
.player-volume{width:62px!important;height:4px!important;border-radius:99px!important}
.player-control-btn:hover{transform:translateY(-1px)!important;box-shadow:0 4px 12px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.1)!important}
.big-play{display:grid;place-items:center}
.big-play svg{width:25px;height:25px}
@media(max-width:700px){
 .player-controls{padding:18px 9px 9px!important}
 .player-progress-wrap{margin-bottom:6px!important}
 .player-controls-row{gap:4px!important;flex-wrap:nowrap!important}
 .player-control-btn{width:30px;height:30px;border-radius:10px!important;flex:0 0 auto}
 .player-control-btn svg{width:16px;height:16px}
 .player-main-control{width:32px;height:32px!important}
 .player-time{font-size:9px!important;letter-spacing:0}
 .player-volume{width:38px!important}
 .player-control-btn small{font-size:7px}
}


/* v2.13.17 — Wedding Glass video player redesign */
.video-modal{
  padding:clamp(10px,2.5vw,28px);
  background:rgba(65,48,36,.42);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
  backdrop-filter:blur(18px) saturate(125%);
}
.video-modal-card{
  width:min(100%,1120px);
  max-height:92dvh;
  overflow:auto;
  padding:clamp(10px,1.6vw,20px);
  border:1px solid rgba(255,255,255,.76);
  border-radius:clamp(18px,2vw,30px);
  background:linear-gradient(135deg,rgba(255,250,241,.82),rgba(227,204,180,.64));
  -webkit-backdrop-filter:blur(28px) saturate(135%);
  backdrop-filter:blur(28px) saturate(135%);
  box-shadow:0 24px 80px rgba(77,52,33,.28),inset 0 1px 0 rgba(255,255,255,.75);
}
.video-modal-header{padding:4px 4px 12px;margin-bottom:10px}
.video-modal-header h2{color:#453629;font-size:clamp(19px,2.2vw,27px);letter-spacing:-.025em}
.video-modal-header p{color:#6c5846;font-size:13px}
.modal-close{
  width:40px;height:40px;border-radius:50%;font-size:25px;
  border:1px solid rgba(255,255,255,.85);
  background:rgba(255,255,255,.42);color:#5b4430;
  box-shadow:0 4px 14px rgba(93,66,43,.10);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
.video-player-shell{
  background:#2d2119;border:1px solid rgba(255,255,255,.78);
  border-radius:clamp(14px,1.8vw,24px);overflow:hidden;
  box-shadow:0 16px 42px rgba(67,43,26,.23),inset 0 1px 0 rgba(255,255,255,.3);
}
.video-player-shell video{max-height:72dvh;background:#241b15}
.big-play{
  width:clamp(60px,7vw,82px);height:clamp(60px,7vw,82px);
  border:1px solid rgba(255,255,255,.85);
  background:linear-gradient(135deg,rgba(255,245,224,.86),rgba(198,145,77,.82));
  color:#fffaf1;box-shadow:0 5px 28px rgba(100,63,29,.35),inset 0 1px 0 rgba(255,255,255,.7);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
}
.player-controls{
  left:0;right:0;bottom:0;padding:36px 16px 12px;
  background:linear-gradient(to top,rgba(64,43,29,.84),rgba(80,55,38,.48) 54%,rgba(70,48,32,0));
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  transition:opacity .32s ease,transform .32s cubic-bezier(.2,.75,.25,1);
}
.player-progress-wrap{height:15px;margin-bottom:4px}
.player-progress-track{height:4px;background:rgba(255,245,229,.40);box-shadow:0 1px 3px rgba(52,34,21,.18)}
.player-buffered{background:rgba(255,255,255,.48)}
.player-progress::-webkit-slider-thumb{
  width:13px;height:13px;margin-top:-4.5px;border:2px solid #fff7e9;
  background:#d8a15c;box-shadow:0 0 0 3px rgba(242,203,149,.20),0 2px 8px rgba(50,30,15,.25);
}
.player-progress::-moz-range-thumb{
  width:10px;height:10px;border:2px solid #fff7e9;background:#d8a15c;
  box-shadow:0 0 0 3px rgba(242,203,149,.20);
}
.player-controls-row{gap:9px;color:#fff8ed}
.player-control-btn{
  width:36px;height:36px;border-radius:12px;
  border:1px solid rgba(255,255,255,.34);
  background:rgba(255,248,236,.14);color:#fff8ed;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  transition:background .22s ease,transform .22s ease,border-color .22s ease;
}
.player-control-btn:hover{background:rgba(255,248,236,.27);border-color:rgba(255,255,255,.65);transform:translateY(-1px)}
.player-control-btn:active{transform:scale(.96)}
.player-main-control{
  width:54px;height:54px;border-radius:50%;
  border:1.5px solid rgba(255,239,209,.95);
  background:linear-gradient(145deg,rgba(255,247,230,.26),rgba(194,135,65,.38));
  box-shadow:0 0 0 3px rgba(255,238,211,.09),0 4px 18px rgba(38,24,14,.20),inset 0 1px 0 rgba(255,255,255,.45);
}
.player-main-control svg{width:22px;height:22px}
.player-speed{width:42px;border-radius:11px;font-weight:700}
.player-control-btn svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.player-control-btn svg path:not([stroke]){vector-effect:non-scaling-stroke}
.player-time{font:600 12px/1.2 system-ui,-apple-system,sans-serif;color:#fff7ea;min-width:auto;font-variant-numeric:tabular-nums}
.player-volume{background:rgba(255,244,224,.32);accent-color:#e6b36e}
.player-volume::-webkit-slider-thumb{background:#f8e5c8;border:1px solid #fff}
.player-volume::-moz-range-thumb{background:#f8e5c8;border:1px solid #fff}
@media(max-width:640px){
  .video-modal{padding:8px;align-items:center}
  .video-modal-card{width:100%;max-height:90dvh;padding:8px;border-radius:20px}
  .video-modal-header{padding:3px 3px 8px;gap:10px}
  .video-modal-header h2{font-size:19px}
  .video-modal-header p{font-size:12px}
  .video-player-shell{border-radius:15px}
  .video-player-shell video{max-height:66dvh}
  .player-controls{padding:26px 9px 8px}
  .player-controls-row{gap:5px}
  .player-control-btn{width:30px;height:30px;border-radius:10px}
  .player-control-btn svg{width:16px;height:16px}
  .player-main-control{width:42px;height:42px}
  .player-main-control svg{width:19px;height:19px}
  .player-time{font-size:10px}
  .player-volume{width:48px}
  .player-speed{width:34px;font-size:11px}
  .player-progress-wrap{height:14px}
}
@media(prefers-reduced-motion:reduce){
  .player-controls,.player-control-btn{transition:none!important}
}


/* v2.13.18 — closer match to the supplied glass-player reference */
.video-modal-card{width:min(100%,1240px)!important;max-height:94dvh!important;padding:0!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.video-player-shell{position:relative!important;isolation:isolate!important;width:100%!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.82)!important;border-radius:30px!important;background:#4c3528!important;box-shadow:0 24px 70px rgba(91,61,39,.30),inset 0 1px 0 rgba(255,255,255,.7)!important}
.video-player-shell video{display:block!important;width:100%!important;height:auto!important;max-height:78dvh!important;object-fit:contain!important}
.video-modal-header{position:absolute!important;z-index:4!important;top:18px!important;left:18px!important;right:18px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin:0!important;padding:0!important;pointer-events:none!important}
.video-modal-header>*{pointer-events:auto!important}
.player-title-glass{max-width:min(75%,420px);padding:12px 18px;border:1px solid rgba(255,255,255,.28);border-radius:22px;background:rgba(83,59,43,.34);color:#fff8ef;box-shadow:0 8px 26px rgba(54,34,22,.13),inset 0 1px 0 rgba(255,255,255,.2);-webkit-backdrop-filter:blur(22px) saturate(135%);backdrop-filter:blur(22px) saturate(135%)}
.video-modal-header h2{margin:0!important;color:#fff8ef!important;font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(20px,2.7vw,34px)!important;font-weight:500!important;letter-spacing:-.02em!important}
.video-modal-header p,#playerMeta{margin:5px 0 0!important;color:rgba(255,248,239,.92)!important;font-size:clamp(12px,1.3vw,16px)!important}
.video-modal .modal-close{width:48px!important;height:48px!important;border-radius:50%!important;font-size:28px!important;color:#fff9ef!important;background:rgba(83,59,43,.34)!important;border:1px solid rgba(255,255,255,.48)!important;box-shadow:0 6px 20px rgba(45,28,18,.15),inset 0 1px 0 rgba(255,255,255,.3)!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important}
.player-controls{z-index:3!important;left:10px!important;right:10px!important;bottom:10px!important;padding:20px 22px 14px!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:25px!important;background:linear-gradient(120deg,rgba(92,65,47,.67),rgba(157,117,83,.42))!important;box-shadow:0 10px 30px rgba(52,32,20,.16),inset 0 1px 0 rgba(255,255,255,.34)!important;-webkit-backdrop-filter:blur(24px) saturate(135%)!important;backdrop-filter:blur(24px) saturate(135%)!important}
.player-progress-wrap{height:13px!important;margin:0 0 10px!important}
.player-progress-track{height:5px!important;border-radius:999px!important;background:rgba(255,247,234,.48)!important;box-shadow:none!important}
.player-progress::-webkit-slider-thumb{width:15px!important;height:15px!important;margin-top:-5px!important;background:#f4c77d!important;border:2px solid #fff8ed!important;box-shadow:0 0 0 3px rgba(255,224,171,.2)!important}
.player-controls-row{display:flex!important;align-items:center!important;gap:clamp(7px,1.5vw,18px)!important;min-height:44px!important;color:#fff8ef!important}
.player-control-btn{flex:0 0 auto!important;width:42px!important;height:42px!important;border-radius:15px!important;border:1px solid rgba(255,255,255,.36)!important;background:rgba(255,249,238,.13)!important;color:#fff9ef!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)!important}
.player-control-btn svg{width:21px!important;height:21px!important}
.player-main-control{width:64px!important;height:64px!important;border-radius:50%!important;border:2px solid rgba(255,229,190,.95)!important;background:rgba(255,240,215,.18)!important;box-shadow:0 0 0 4px rgba(255,239,212,.08),0 4px 20px rgba(44,26,15,.18),inset 0 1px 0 rgba(255,255,255,.38)!important}
.player-main-control svg{width:26px!important;height:26px!important}
.player-time{color:#fff5e7!important;font-size:clamp(10px,1.1vw,14px)!important;font-weight:500!important;white-space:nowrap!important}
.player-volume{width:clamp(44px,9vw,100px)!important;accent-color:#f0c27b!important}
.player-speed{width:42px!important}
@media(max-width:640px){.video-modal-card{width:100%!important;max-height:92dvh!important}.video-player-shell{border-radius:20px!important}.video-player-shell video{max-height:80dvh!important}.video-modal-header{top:9px!important;left:9px!important;right:9px!important}.player-title-glass{padding:8px 11px;border-radius:15px;max-width:78%}.video-modal-header h2{font-size:18px!important}.video-modal-header p,#playerMeta{font-size:11px!important}.video-modal .modal-close{width:36px!important;height:36px!important;font-size:22px!important}.player-controls{left:6px!important;right:6px!important;bottom:6px!important;padding:13px 9px 8px!important;border-radius:17px!important}.player-controls-row{gap:4px!important;min-height:34px!important}.player-control-btn{width:30px!important;height:30px!important;border-radius:10px!important}.player-control-btn svg{width:16px!important;height:16px!important}.player-main-control{width:42px!important;height:42px!important}.player-main-control svg{width:19px!important;height:19px!important}.player-volume{width:34px!important}.player-time{font-size:9px!important}.player-progress-wrap{height:11px!important;margin-bottom:5px!important}.player-progress-track{height:4px!important}}


/* v2.13.19 — compact controls + smoother camera-video encoding */
.video-player-shell .big-play{width:54px!important;height:54px!important;font-size:0!important;border-radius:50%!important;box-shadow:0 5px 18px rgba(54,34,20,.22),inset 0 1px 0 rgba(255,255,255,.8)!important}
.video-player-shell .big-play svg{width:20px!important;height:20px!important}
.video-player-shell .player-controls{padding:12px 18px 10px!important;border-radius:22px!important}
.video-player-shell .player-progress-wrap{height:9px!important;min-height:9px!important;margin:0 0 8px!important}
.video-player-shell .player-progress-track{height:3px!important;border-radius:999px!important}
.video-player-shell .player-progress::-webkit-slider-thumb{width:11px!important;height:11px!important;margin-top:-4px!important;box-shadow:0 0 0 2px rgba(255,224,171,.18)!important}
.video-player-shell .player-progress::-moz-range-thumb{width:9px!important;height:9px!important}
.video-player-shell .player-controls-row{min-height:34px!important;gap:clamp(5px,1vw,12px)!important}
.video-player-shell .player-main-control{width:46px!important;height:46px!important;border-width:1.5px!important}
.video-player-shell .player-main-control svg{width:19px!important;height:19px!important}
.video-player-shell .player-control-btn{width:34px!important;height:34px!important;border-radius:12px!important}
.video-player-shell .player-control-btn svg{width:17px!important;height:17px!important}
.video-player-shell .player-volume{width:clamp(42px,7vw,76px)!important}
@media(max-width:640px){
 .video-player-shell .big-play{width:44px!important;height:44px!important}
 .video-player-shell .big-play svg{width:17px!important;height:17px!important}
 .video-player-shell .player-controls{left:5px!important;right:5px!important;bottom:5px!important;padding:9px 7px 7px!important;border-radius:15px!important}
 .video-player-shell .player-progress-wrap{height:8px!important;min-height:8px!important;margin-bottom:5px!important}
 .video-player-shell .player-progress-track{height:3px!important}
 .video-player-shell .player-controls-row{gap:4px!important;min-height:30px!important}
 .video-player-shell .player-main-control{width:38px!important;height:38px!important}
 .video-player-shell .player-main-control svg{width:16px!important;height:16px!important}
 .video-player-shell .player-control-btn{width:28px!important;height:28px!important;border-radius:9px!important}
 .video-player-shell .player-control-btn svg{width:14px!important;height:14px!important}
 .video-player-shell .player-time{font-size:9px!important}
 .video-player-shell .player-volume{width:30px!important}
}


/* v2.13.21 — remove duplicate white range track; keep only the designed glass timeline */
.video-player-shell .player-progress{
  -webkit-appearance:none!important;appearance:none!important;
  background:transparent!important;border:0!important;
  box-shadow:none!important;outline:none!important;
  height:8px!important;margin:0!important;padding:0!important;
  accent-color:#e8b86f!important;
}
.video-player-shell .player-progress::-webkit-slider-runnable-track{
  height:3px!important;background:transparent!important;border:0!important;
  box-shadow:none!important;border-radius:999px!important;
}
.video-player-shell .player-progress::-moz-range-track{
  height:3px!important;background:transparent!important;border:0!important;
  box-shadow:none!important;border-radius:999px!important;
}
.video-player-shell .player-progress::-moz-range-progress{
  height:3px!important;background:transparent!important;border:0!important;
}
.video-player-shell .player-progress-wrap{overflow:visible!important;background:transparent!important}
.video-player-shell .player-progress-track{pointer-events:none!important}
.video-player-shell .player-buffered{background:rgba(255,248,235,.28)!important}

/* v2.13.26 — playback performance: suspend decorative animation and glass blur while video is playing */
body.modal-open #petalLayer,
body.modal-open .petal-layer{display:none!important;animation:none!important}
body.modal-open .video-modal,
body.modal-open .video-modal-card,
body.modal-open .video-player-shell,
body.modal-open .player-title-glass,
body.modal-open .player-controls,
body.modal-open .video-modal .modal-close,
body.modal-open .big-play,
body.modal-open .player-control-btn{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.modal-open .player-controls{
  background:rgba(55,39,28,.88)!important;
  box-shadow:0 5px 18px rgba(0,0,0,.18)!important;
}
body.modal-open .player-title-glass,
body.modal-open .video-modal .modal-close,
body.modal-open .player-control-btn{
  background:rgba(55,39,28,.84)!important;
}
body.modal-open .big-play{background:rgba(245,220,184,.96)!important}
/* Keep video decoding/compositing independent from decorative transitions. */
#playerVideo{transform:none!important;filter:none!important;will-change:auto;}
