:root {
  --paper: #f8f7f2; --white: #fffefa; --ink: #23372e; --muted: #758078;
  --green: #244b3b; --green-hover: #32644c; --sage: #e8eee4;
  --gold: #b3965e; --line: #e5e8df; --danger: #a14e45;
  --serif: Georgia, "Times New Roman", serif; --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.8px; }
h3 { font-size: 15px; font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b99b62; outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 16px; letter-spacing: -.5px; }
.brand-light { font-weight: 400; }
.logo-mark { width: 39px; height: 42px; border-radius: 13px; display: inline-grid; place-items: center; color: #faf7ea; background: var(--green); }
.logo-mark .icon { width: 23px; height: 25px; stroke-width: 1.5; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #82917b; }
.tiny-line { width: 22px; height: 1px; background: var(--gold); }
.lead { font-size: 14px; color: var(--muted); line-height: 1.8; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 600; transition: background .18s, border-color .18s, box-shadow .18s; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover:not(:disabled) { background: var(--green-hover); box-shadow: 0 4px 12px #244b3b18; }
.button.secondary { background: var(--white); border-color: #dbe1d5; color: var(--green); }
.button.secondary:hover { background: var(--sage); }
.button.cream { background: #f3ebd5; color: var(--green); }
.button.cream:hover { background: #fff7e5; }
.button.text { background: transparent; color: var(--green); padding: 8px 12px; }
.button.text:hover { background: var(--sage); }
.button.danger { background: #f7ece8; color: var(--danger); }
.button.danger:hover { background: #f0dcd5; }
.button.full { width: 100%; }
.button.small { min-height: 33px; font-size: 11px; padding: 7px 10px; }
.button .icon { width: 17px; height: 17px; }
.icon-button { display: inline-grid; place-items: center; border: 0; width: 36px; height: 36px; border-radius: 8px; color: #728171; background: transparent; }
.icon-button:hover { background: var(--sage); color: var(--green); }
.field { display: block; margin-bottom: 19px; }
.field > span:first-child { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: #394c40; }
.field input { width: 100%; height: 47px; background: #fff; border: 1px solid #dfe4d9; border-radius: 8px; padding: 12px 14px; color: var(--ink); font-size: 13px; outline: none; }
.field input::placeholder { color: #a0a69c; font-size: 12px; }
.field input:focus { border-color: #799279; box-shadow: 0 0 0 3px #79927914; }
.field small { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; line-height: 1.6; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 46px; }
.password-toggle { position: absolute; right: 5px; top: 5px; }
.form-error { min-height: 0; font-size: 12px; color: var(--danger); line-height: 1.5; }
.form-error:not(:empty) { margin: 0 0 14px; padding: 10px 12px; background: #f9eeeb; border-radius: 6px; }
.boot { min-height: 100vh; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; color: var(--muted); }
.boot .logo-mark { animation: breathe 2s infinite ease-in-out; }
.login { min-height: 100vh; display: grid; grid-template-columns: 47% 53%; }
.login-content { display: flex; flex-direction: column; padding: 40px 12%; }
.login-content .brand { white-space: nowrap; }
.login-form-wrap { width: 100%; max-width: 385px; margin: auto; padding: 44px 0; }
.login-form-wrap h1 { font-size: clamp(32px, 3.6vw, 47px); line-height: 1.15; margin: 17px 0 20px; }
.login-form-wrap .lead { margin-bottom: 34px; }
.login-form-wrap .button { height: 48px; justify-content: space-between; }
.login-help { display: flex; gap: 7px; align-items: center; font-size: 10px; color: #939b8d; margin-top: 20px; }
.login-help .icon { width: 13px; height: 13px; }
.login-footer { font-size: 10px; color: #919b8e; padding: 10px 0; letter-spacing: .2px; }
.login-art { position: relative; background: #234635; color: #f2efdf; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; padding: 54px 30px 35px; }
.login-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 48% 37%, #56714d48, transparent 65%); pointer-events: none; }
.art-heading { position: relative; z-index: 1; }
.art-tag { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; border: 1px solid #becbae38; padding: 9px 13px; border-radius: 40px; color: #c9d2b8; }
.winter-art { position: relative; width: min(100%, 550px); max-height: 46vh; margin: 18px 0 6px; }
.art-caption { text-align: center; position: relative; }
.art-caption .eyebrow { color: #a3b597; justify-content: center; font-size: 8px; margin-bottom: 12px; }
.art-caption h2 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.2; color: #f3edda; }
.art-caption p { margin-top: 13px; color: #b8c5ab; font-size: 12px; }
.art-date { margin-top: 40px; display: flex; align-items: center; gap: 8px; font-size: 9px; color: #a2b598; }
.art-date .icon { width: 14px; height: 14px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 222px; position: fixed; inset: 0 auto 0 0; background: var(--white); border-right: 1px solid var(--line); padding: 32px 20px; display: flex; flex-direction: column; z-index: 2; }
.sidebar .brand { font-size: 14px; gap: 9px; }
.sidebar .logo-mark { width: 34px; height: 37px; border-radius: 11px; }
.sidebar-section-label { font-size: 9px; color: #939d8d; margin: 48px 12px 13px; letter-spacing: .6px; }
.navigation { display: flex; flex-direction: column; gap: 5px; }
.nav-item { border: 0; background: transparent; color: #758273; width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 8px; font-size: 12px; font-weight: 500; text-align: left; }
.nav-item:hover { background: #f4f5ef; }
.nav-item.active { background: #edf1e9; color: var(--green); font-weight: 600; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-count { margin-left: auto; font-size: 10px; border-radius: 5px; padding: 1px 6px; background: #fff8; }
.admin-label { margin: 27px 12px 8px; font-size: 9px; letter-spacing: .7px; color: #a0a697; }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 0; color: #87947f; }
.sidebar-bottom .icon { width: 19px; height: 19px; color: #a5ac98; margin-bottom: 8px; }
.sidebar-bottom p { font-size: 11px; line-height: 1.7; }
.sidebar-bottom > span { display: block; font-size: 9px; color: #a0a897; margin-top: 18px; }
.main-area { width: calc(100% - 222px); margin-left: 222px; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: 80px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #faf9f5; }
.breadcrumb { font-size: 11px; color: #7c8978; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.date-chip { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #89917f; margin-right: 13px; }
.date-chip .icon { width: 14px; height: 14px; }
.avatar { width: 37px; height: 37px; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; background: #e7edde; color: #4f6846; font-size: 11px; font-weight: 600; letter-spacing: .4px; }
.user-meta strong { display: block; font-size: 11px; font-weight: 600; }
.user-meta span { display: block; font-size: 9px; color: #8f9988; }
.logout { margin-left: 10px; border-left: 1px solid var(--line); border-radius: 0; }
.view { padding: 42px 40px 32px; width: 100%; max-width: 1390px; margin: 0 auto; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.page-heading h1 { font-size: clamp(31px, 3.2vw, 42px); line-height: 1.18; margin-top: 12px; }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #edf1e7; color: #637456; border: 1px solid #e5eadc; border-radius: 40px; padding: 5px 10px; font-size: 9px; font-weight: 500; white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge.light { background: #ffffff10; color: #d2dbc4; border-color: #bacda332; }
.home-grid { display: grid; grid-template-columns: 1.18fr 1fr; gap: 21px; }
.countdown-card { min-height: 351px; color: #f3efdf; background: #264935; padding: 27px 31px 21px; border-radius: 14px; position: relative; overflow: hidden; }
.countdown-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.countdown-top > .icon { color: #c7b888; width: 21px; height: 21px; }
.pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: #c4ceaa; }
.countdown-card h2 { font-size: 29px; margin-top: 27px; line-height: 1.18; color: #f0ead7; position: relative; z-index: 1; }
.countdown { display: flex; align-items: start; justify-content: space-between; max-width: 420px; margin: 25px 0 27px; position: relative; z-index: 1; }
.countdown > div { text-align: center; }
.countdown strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 47px); line-height: 1.1; letter-spacing: -1px; min-width: 43px; }
.countdown span { display: block; font-size: 8px; color: #adbda0; margin-top: 8px; letter-spacing: 1px; text-transform: uppercase; }
.countdown b { font-family: var(--serif); font-size: 23px; font-weight: 400; color: #7f9575; margin-top: 8px; }
.countdown-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid #a7be9228; font-size: 10px; color: #acbe9e; }
.countdown-footer .icon { width: 14px; height: 14px; }
.countdown-decor { position: absolute; right: -18px; top: 60px; color: #abc18a09; font-size: 320px; line-height: 1; transform: rotate(17deg); }
.recipient-card { display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; min-height: 351px; border: 1px solid #e4e6d9; border-radius: 14px; padding: 26px 18px 0; background: #fcfbf6; }
.recipient-card > .eyebrow { font-size: 8px; }
.gift-illustration { position: relative; width: 90px; height: 78px; margin: 15px 0 8px; display: grid; place-items: center; background: radial-gradient(ellipse, #ebead730, transparent); }
.gift-illustration > .icon { width: 48px; height: 48px; stroke: #b49b66; stroke-width: .9; transform: rotate(-8deg); }
.gift-illustration span { position: absolute; left: -8px; top: 7px; font-size: 21px; color: #cfba88; }
.gift-illustration i { position: absolute; right: 3px; bottom: 8px; font-size: 24px; color: #9dad88; font-style: normal; }
.recipient-filled p, .recipient-empty p { font-size: 11px; color: #8a9582; line-height: 1.7; }
.recipient-filled h2 { font-size: 37px; margin: 5px 0 7px; color: #3f5941; overflow-wrap: anywhere; }
.recipient-date { font-size: 9px; color: #a0a791; }
.recipient-empty h2 { font-size: 26px; color: #687d59; line-height: 1.2; margin-bottom: 10px; }
.recipient-footer { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 9px; color: #96a087; border-top: 1px solid #e6e8dc; margin-top: auto; padding: 16px 0; width: 100%; }
.recipient-footer .icon { width: 11px; height: 11px; }
.tradition-card { display: flex; align-items: center; gap: 17px; border: 1px solid #e6e8dc; padding: 22px 25px; border-radius: 12px; margin-top: 21px; background: #f1f2e9; }
.round-icon { display: inline-grid; place-items: center; width: 41px; height: 41px; flex-shrink: 0; border-radius: 12px; background: #e7ecdf; color: #6d855e; }
.round-icon.gold { background: #f3eedb; color: #a38e58; }
.round-icon.large { width: 62px; height: 62px; border-radius: 18px; margin-bottom: 19px; }
.round-icon.large .icon { width: 28px; height: 28px; }
.tradition-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.tradition-card p { font-size: 10px; color: #87947b; margin-top: 5px; }
.tradition-star { margin-left: auto; font-size: 30px; color: #b3be9b; font-weight: 300; }
.admin-invite { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 5px 0; }
.admin-invite .eyebrow { font-size: 8px; margin-bottom: 6px; }
.admin-invite h3 { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.admin-invite p { font-size: 10px; color: var(--muted); margin-top: 5px; }
.app-footer { display: flex; align-items: center; justify-content: space-between; margin: 12px 40px 0; padding: 20px 0; border-top: 1px solid var(--line); font-size: 9px; color: #9aa38f; }
.app-footer > span:last-child { display: flex; align-items: center; gap: 5px; }
.app-footer .icon { width: 12px; height: 12px; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; margin-bottom: 24px; }
.stat { background: #fffdf7; border: 1px solid var(--line); border-radius: 11px; padding: 17px 20px; display: flex; align-items: center; gap: 13px; }
.stat strong { font-size: 25px; font-family: var(--serif); font-weight: 400; line-height: 1.1; display: block; }
.stat span:not(.round-icon) { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.stat-note { background: #f0f2e9; border-color: #e9ebdf; color: #77866c; }
.stat-note p { font-size: 10px; line-height: 1.8; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 24px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 20px; letter-spacing: -.3px; }
.panel-header p { font-size: 10px; color: var(--muted); margin-top: 5px; }
.search { display: flex; align-items: center; gap: 7px; border: 1px solid #e1e6da; border-radius: 8px; padding: 8px 10px; color: #8b9782; width: 230px; background: #fff; }
.search .icon { width: 15px; height: 15px; }
.search input { width: 100%; border: 0; padding: 0; outline: none; font-size: 10px; background: none; color: var(--ink); }
.table-head, .account-row { display: grid; grid-template-columns: 1.6fr 1.2fr .8fr 1fr auto; align-items: center; gap: 15px; padding: 15px 24px; }
.table-head { color: #909a86; font-size: 8px; text-transform: uppercase; letter-spacing: .9px; background: #fbfbf5; padding-top: 11px; padding-bottom: 11px; }
.account-row { border-top: 1px solid #eef0e5; font-size: 11px; min-height: 80px; }
.account-row:first-child { border-top: 0; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person strong { font-weight: 600; font-size: 12px; overflow-wrap: anywhere; }
.person small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.person .avatar { width: 34px; height: 34px; font-size: 10px; }
.account-row .role { justify-self: start; font-size: 8px; }
.account-row .username { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.exclusion-count { font-size: 10px; color: #75806a; }
.exclusions-grid { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.people-panel .panel-header { padding: 22px 19px; }
.people-panel .panel-header h2 { font-size: 17px; }
.rule-person { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 11px; text-align: left; padding: 15px 18px; border-bottom: 1px solid #f0f1e7; color: var(--ink); }
.rule-person:last-child { border-bottom: 0; }
.rule-person:hover { background: #f8f9f1; }
.rule-person.active { background: #edf2e6; box-shadow: inset 3px 0 #6d8458; }
.rule-person strong { font-size: 11px; display: block; }
.rule-person small { display: block; font-size: 9px; color: #8b977c; margin-top: 3px; }
.rule-person > .icon { margin-left: auto; width: 14px; height: 14px; color: #92a080; }
.rules-panel .panel-header { align-items: start; }
.self-rule { display: flex; align-items: center; gap: 8px; margin: 19px 24px 5px; padding: 10px 12px; border-radius: 6px; font-size: 9px; color: #89957c; background: #f4f6ec; }
.self-rule .icon { width: 12px; height: 12px; }
.rule-option { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; padding: 14px 24px; border-bottom: 1px solid #edf0e4; }
.rule-option:hover { background: #fbfcf6; }
.rule-option.excluded .rule-detail { color: #a38960; }
.check-label { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #8d9684; position: relative; }
.check-label input { position: absolute; opacity: 0; width: 21px; height: 21px; right: 0; margin: 0; cursor: pointer; }
.custom-check { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #d5ddc8; border-radius: 5px; background: white; }
.custom-check .icon { width: 13px; height: 13px; opacity: 0; }
.check-label input:checked + .custom-check { background: var(--green); border-color: var(--green); color: white; }
.check-label input:checked + .custom-check .icon { opacity: 1; }
.check-label input:focus-visible + .custom-check { outline: 2px solid var(--gold); outline-offset: 3px; }
.rules-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 24px; background: #fcfcf7; }
.rule-status { font-size: 9px; color: #9aa18d; }
.draw-launch { padding: 30px 35px; background: #264935; color: #eae8d5; position: relative; overflow: hidden; border-radius: 14px; margin-bottom: 29px; }
.draw-launch > div:first-child { position: relative; z-index: 1; width: 64%; }
.draw-launch h2 { font-size: 36px; margin: 18px 0 11px; }
.draw-launch p { font-size: 11px; line-height: 1.8; color: #b6c6a4; }
.draw-meta { display: flex; gap: 17px; margin-top: 17px; font-size: 9px; color: #c5d1b5; }
.draw-meta span:before { content: '·'; margin-right: 5px; color: #dab979; }
.draw-launch .button { margin-top: 22px; }
.draw-launch .draw-requirement { margin-top: 10px; font-size: 9px; }
.draw-art { position: absolute; inset: 0 -50px 0 auto; width: 47%; opacity: .9; display: flex; align-items: center; }
.draw-art img { width: 100%; }
.history-row { background: none; border: 0; border-bottom: 1px solid #edf0e5; width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 24px; color: var(--ink); text-align: left; }
.history-row:last-child { border-bottom: 0; }
.history-row:hover { background: #f8faf2; }
.history-info { min-width: 0; }
.history-info strong { display: block; font-size: 12px; font-weight: 500; }
.history-info small { display: block; font-size: 9px; color: #99a188; margin-top: 4px; }
.history-size { margin-left: auto; font-size: 10px; color: #8a947c; white-space: nowrap; }
.history-row > .icon { width: 14px; height: 14px; color: #96a486; }
.empty-state { padding: 35px 24px; text-align: center; color: var(--muted); font-size: 12px; }
.empty-state > .round-icon { margin-bottom: 16px; }
.empty-state h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: #687d56; }
.empty-state p { font-size: 11px; margin-top: 7px; }
.layer { position: fixed; inset: 0; background: #17372c75; backdrop-filter: blur(3px); z-index: 10; display: flex; justify-content: flex-end; }
.layer.center { align-items: center; justify-content: center; padding: 20px; }
.drawer { background: #fffefa; width: min(490px, 100%); height: 100%; padding: 28px 30px; overflow-y: auto; animation: drawer-in .22s ease-out; box-shadow: -20px 0 60px #1235241a; }
.drawer-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.drawer-header h2 { font-size: 27px; margin-top: 8px; }
.drawer-header .eyebrow { font-size: 8px; }
.drawer-description { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 27px; }
.drawer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.danger-zone { margin-top: 45px; border-top: 1px solid var(--line); padding-top: 24px; }
.danger-zone h3 { font-size: 12px; color: #9b6653; }
.danger-zone p { color: var(--muted); font-size: 11px; margin: 7px 0 15px; }
.archive-summary { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 14px; background: #eef2e7; border-radius: 8px; color: #6a8059; margin-bottom: 22px; }
.archive-summary .icon { width: 16px; height: 16px; }
.pairs-head { display: flex; justify-content: space-between; font-size: 8px; text-transform: uppercase; letter-spacing: 1.4px; color: #9aa58c; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pair-row { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 10px; align-items: center; padding: 16px 0; border-bottom: 1px solid #edf0e4; font-size: 12px; }
.pair-row > .icon { width: 16px; height: 16px; color: #9fa98c; }
.pair-row .receiver { text-align: right; color: #566f46; overflow-wrap: anywhere; }
.archive-note { display: flex; gap: 9px; align-items: center; color: #8f9a82; font-size: 10px; margin-top: 25px; }
.archive-note .icon { width: 16px; height: 16px; }
.modal { position: relative; background: var(--white); width: min(445px, 100%); padding: 32px; border-radius: 17px; box-shadow: 0 24px 100px #0b2f2826; }
.modal-close { position: absolute; right: 12px; top: 12px; }
.modal h2 { font-size: 28px; margin-bottom: 11px; }
.confirm-copy { font-size: 12px; color: var(--muted); line-height: 1.9; margin-bottom: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.draw-animation { background: #234635; width: min(570px, 100%); border: 1px solid #aabc9730; border-radius: 18px; padding: 42px 35px; text-align: center; color: #efecd9; box-shadow: 0 20px 100px #112c2a4d; }
.draw-animation .eyebrow { justify-content: center; color: #a2b691; margin-top: 32px; font-size: 8px; }
.draw-animation h2 { font-size: 37px; margin: 12px 0; }
.draw-animation > p { font-size: 11px; color: #9fb38e; margin-top: 10px; }
.shuffle-name { font-size: 16px; color: #ddcf9f; min-height: 26px; }
.orbit { border: 1px solid #a5b99035; border-radius: 50%; height: 135px; width: 135px; position: relative; margin: 0 auto; display: grid; place-items: center; }
.orbit:after { content: ''; position: absolute; inset: -17px; border: 1px solid #a5b99015; border-radius: 50%; }
.orbit-gift .icon { width: 47px; height: 47px; color: #d4bc86; stroke-width: 1; animation: gift-dance 1.4s ease-in-out infinite; }
.orbit i, .orbit b { position: absolute; color: #c3b779; font-style: normal; font-weight: 400; }
.orbit i { left: -10px; top: 10px; font-size: 28px; animation: breathe 1.5s infinite; }
.orbit b { right: -12px; bottom: 14px; font-size: 32px; animation: breathe 1.5s infinite reverse; }
.animation-progress { width: 100%; height: 2px; margin: 28px auto 0; background: #8da47b20; overflow: hidden; border-radius: 4px; }
.animation-progress:after { content: ''; display: block; width: 30%; height: 100%; background: #c4b077; animation: progress 1.5s ease-in-out infinite; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; padding: 13px 19px; border-radius: 10px; z-index: 20; background: #244b3b; color: #fffbea; font-size: 12px; box-shadow: 0 8px 26px #23452e22; transition: opacity .2s, transform .2s; max-width: calc(100vw - 30px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #934d40; }
.loading-view { text-align: center; padding: 100px 20px; color: var(--muted); }
.modal-open { overflow: hidden; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes breathe { 50% { opacity: .55; } }
@keyframes gift-dance { 50% { transform: rotate(9deg) translateY(-5px); } }
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@media (min-width: 1550px) { .view { padding: 48px 65px; } .countdown-card { padding: 33px 40px 26px; } .home-grid { grid-template-columns: 1.15fr 1fr; } }
@media (max-width: 1120px) {
  .sidebar { width: 195px; padding: 30px 15px; }
  .sidebar .brand { font-size: 12px; }
  .main-area { margin-left: 195px; width: calc(100% - 195px); }
  .view { padding: 32px 25px; } .topbar { padding: 0 25px; } .app-footer { margin-left: 25px; margin-right: 25px; }
  .countdown-card { padding: 24px 22px 20px; } .countdown-card h2 { font-size: 26px; }
  .countdown strong { font-size: 35px; } .countdown span { font-size: 7px; }
  .exclusions-grid { grid-template-columns: 225px 1fr; gap: 15px; }
  .table-head, .account-row { padding-left: 18px; padding-right: 18px; gap: 10px; }
  .account-row .button { padding: 7px; }
  .stat { padding: 16px; }
}
@media (max-width: 900px) {
  .login-content { padding: 32px 9%; } .login-form-wrap h1 { font-size: 35px; }
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 12px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); background: #fffefa; }
  .sidebar .brand { font-size: 14px; } .sidebar .logo-mark { width: 30px; height: 32px; border-radius: 9px; }
  .app-shell { display: block; } .main-area { width: 100%; margin-left: 0; }
  .sidebar-section-label, .sidebar-bottom, .admin-label { display: none; }
  .navigation { flex-direction: row; overflow-x: auto; gap: 6px; margin-top: 10px; }
  .nav-item { width: auto; flex-shrink: 0; font-size: 11px; border-radius: 0; padding: 10px 12px; border-bottom: 2px solid transparent; }
  .nav-item.active { background: transparent; border-bottom-color: var(--green); }
  .topbar { height: 61px; } .topbar-right { gap: 8px; } .user-avatar { width: 30px; height: 30px; }
  .view { padding: 29px 25px; } .page-heading h1 { font-size: 35px; }
  .countdown-card { min-height: 338px; } .recipient-card { min-height: 338px; }
  .countdown strong { font-size: 38px; }
}
@media (max-width: 650px) {
  .login { display: block; } .login-art { display: none; }
  .login-content { min-height: 100vh; padding: 25px 25px 16px; max-width: 480px; margin: auto; }
  .login-form-wrap { padding: 45px 0; } .login-form-wrap h1 { font-size: 39px; } .login-footer { text-align: center; }
  .sidebar { padding: 12px 17px 0; }
  .sidebar .brand { font-size: 13px; }
  .navigation { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: visible; }
  .nav-item { position: relative; flex-direction: column; justify-content: center; gap: 4px; font-size: 10px; padding: 9px 3px; }
  .nav-item .icon { width: 16px; height: 16px; }
  .nav-count { position: absolute; top: 3px; right: 12px; padding: 0 3px; font-size: 8px; }
  .topbar { padding: 0 18px; } .date-chip { display: none; } .breadcrumb { font-size: 10px; }
  .user-meta strong { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logout { margin-left: 2px; } .view { padding: 27px 18px 18px; }
  .page-heading { flex-wrap: wrap; gap: 18px; margin-bottom: 23px; } .page-heading h1 { font-size: 33px; }
  .page-heading p { font-size: 11px; }
  .home-grid { grid-template-columns: 1fr; gap: 16px; } .countdown-card { padding: 23px 24px 20px; min-height: 0; }
  .countdown-card h2 { font-size: 29px; } .countdown { margin: 26px 0; } .countdown strong { font-size: 40px; }
  .recipient-card { min-height: 325px; } .tradition-card { padding: 18px; gap: 12px; margin-top: 16px; }
  .tradition-card h3 { font-size: 17px; line-height: 1.3; } .tradition-card p { font-size: 9px; } .tradition-star { display: none; }
  .admin-invite { align-items: start; flex-direction: column; margin-top: 24px; }
  .app-footer { margin-left: 18px; margin-right: 18px; font-size: 8px; padding: 18px 0; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; } .stat-note { grid-column: 1/-1; } .stat-note br { display: none; }
  .stat { padding: 15px; gap: 9px; } .stat strong { font-size: 23px; } .stat .round-icon { width: 34px; height: 34px; }
  .panel-header { align-items: start; padding: 20px; flex-wrap: wrap; gap: 14px; } .search { width: 100%; }
  .table-head { display: none; } .account-row { grid-template-columns: 1fr auto; gap: 7px; padding: 17px 20px; position: relative; }
  .account-row .person { grid-column: 1; grid-row: 1; }
  .account-row .username { grid-column: 1; grid-row: 2; padding-left: 44px; font-size: 10px; }
  .account-row .exclusion-count { grid-column: 1; grid-row: 3; padding-left: 44px; font-size: 9px; }
  .account-row .role { grid-column: 2; grid-row: 1; justify-self: end; }
  .account-row .edit-user { grid-column: 2; grid-row: 2/4; align-self: end; }
  .exclusions-grid { grid-template-columns: 1fr; }
  .people-panel .panel-header { padding: 17px 20px; }
  #rule-people { display: flex; overflow-x: auto; }
  .rule-person { min-width: 165px; border-bottom: 0; border-right: 1px solid var(--line); padding: 13px; }
  .rule-person.active { box-shadow: inset 0 -2px #6d8458; } .rule-person > .icon { display: none; }
  .rules-panel .panel-header { gap: 10px; } .rules-panel .panel-header h2 { font-size: 20px; }
  .self-rule { margin: 15px 20px 4px; padding: 9px; font-size: 8px; }
  .rule-option { padding: 14px 20px; } .rules-footer { padding: 16px 20px; flex-wrap: wrap; } .rules-footer .button { width: 100%; }
  .draw-launch { padding: 26px 24px; } .draw-launch > div:first-child { width: 100%; } .draw-art { display: none; }
  .draw-launch h2 { font-size: 33px; } .draw-launch p { font-size: 10px; } .draw-launch .button { width: 100%; }
  .draw-meta { font-size: 8px; gap: 10px; } .history-row { gap: 10px; padding: 17px 20px; }
  .history-info strong { font-size: 11px; } .history-size { font-size: 9px; } .history-row .latest-label { display: none; }
  .history-row .round-icon { width: 34px; height: 34px; border-radius: 10px; } .history-row .round-icon .icon { width: 17px; height: 17px; }
  .drawer { padding: 25px 23px; } .drawer-header h2 { font-size: 26px; }
  .modal { padding: 29px 24px; } .modal h2 { font-size: 26px; } .modal-actions .button { flex: 1; padding: 10px; }
  .draw-animation { padding: 40px 20px; } .draw-animation h2 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
