:root{color-scheme:dark;--bg:#10151c;--panel:#1b232d;--border:#33404e;--muted:#a5b7c9;--gold:#efc76e;--text:#f1f5f8;--purple:#cd9dfa;font-family:Inter,ui-sans-serif,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background-color:var(--bg);background-image:radial-gradient(ellipse 1300px 900px at 90% 0,#26313b44,transparent 70%);background-repeat:no-repeat;color:var(--text);line-height:1.5}header,main,footer{max-width:1400px;margin:auto;padding:24px 32px}header{display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--border)}.brand{font-size:22px;font-weight:750;color:var(--gold);text-decoration:none;white-space:nowrap}header nav{display:flex;gap:8px;flex:1;flex-wrap:wrap}#account{margin-left:auto;display:flex;align-items:center;gap:16px}a{color:var(--gold)}button,.button,input,select{font:inherit;border-radius:9px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;min-height:44px;border:1px solid var(--border);background:#202a35;color:var(--text);cursor:pointer;text-decoration:none}button:hover,.button:hover{border-color:var(--gold)}button:disabled{opacity:.4;cursor:not-allowed}.primary,.active{background:var(--gold);color:#19170f;border-color:var(--gold);font-weight:650}.quiet{background:transparent}.danger{color:#ffaaa4;border-color:#805452}input,select{padding:10px 12px;height:44px;width:100%;border:1px solid var(--border);background:#10171f;color:var(--text);min-width:0}input[type=checkbox]{width:17px;height:17px;accent-color:var(--gold)}label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted)}label.check{flex-direction:row;align-items:center;font-size:14px}h1,h2,h3,p{margin-top:0}h1{font-size:36px;line-height:1.15;letter-spacing:-1px}h2{font-size:21px}h3{font-size:16px}p,small{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:2px;color:var(--gold);font-weight:700;font-size:11px;display:block;margin-bottom:12px}.hero{position:relative;overflow:hidden;padding:70px 0 80px;min-height:480px}.hero h1{font-size:clamp(46px,7vw,86px);max-width:650px;letter-spacing:-3px}.hero p{max-width:520px;font-size:18px}.hero em{font-style:normal;color:var(--gold)}.hero-mark{position:absolute;right:3%;top:40px;font-size:350px;line-height:1;color:var(--gold);opacity:.13;pointer-events:none}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.card{background:linear-gradient(135deg,#202933,#171e27);border:1px solid var(--border);border-radius:16px;padding:24px;margin-bottom:18px;min-width:0}.grid>.card{margin-bottom:0}.toolbar,.controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.toolbar{justify-content:space-between;align-items:center;margin-bottom:20px}.controls>label{min-width:210px;flex:0 1 280px}.controls button{margin:0}.muted{color:var(--muted)}.pill{font-size:12px;padding:4px 10px;border:1px solid var(--border);border-radius:20px;color:var(--muted)}.guild-identity{display:flex;gap:14px;align-items:center}.guild-icon{width:52px;height:52px;border-radius:14px;background:#3e3930;color:var(--gold);display:grid;place-items:center;font-size:24px;font-weight:700;flex-shrink:0;object-fit:cover}.guild-identity h2{margin:0}.guild-strip{border-color:#72613c;background:linear-gradient(120deg,#342f23,#1b232d);margin-bottom:22px}.tabs{display:flex;gap:6px;overflow:auto;padding-bottom:14px;margin-bottom:10px}.tabs button{white-space:nowrap}.empty{text-align:center;padding:40px;color:var(--muted)}.member-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.member-card{padding:16px;min-height:148px;margin:0;display:flex;flex-direction:column;justify-content:space-between}.member-name{display:flex;gap:5px;align-items:baseline}.member-name strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.star{color:var(--gold)}.undo{border-color:#a88a40;box-shadow:inset 0 0 25px #e6bb5420,0 0 12px #e6bb5414}.countdown{font-size:11px;min-height:17px;color:var(--gold)}.member-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.member-actions button{min-height:34px;padding:5px 10px;font-size:13px}.purple{color:var(--purple)!important}.amber{color:#f0bf6e}.red{color:#ff9995}.gold{color:var(--gold)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:12px;border-bottom:1px solid var(--border)}th{font-size:12px;color:var(--muted);font-weight:600}.metric{font-size:22px;color:var(--text);display:block;margin:4px 0}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calendar{max-width:550px;margin:20px auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-grid button{position:relative;padding:8px;min-width:0}.dot:after{content:'';position:absolute;right:5px;top:5px;width:6px;height:6px;border-radius:50%;background:#6cdda2}.week{text-align:center;font-size:11px;color:var(--muted);padding:7px}.event{display:flex;align-items:center;justify-content:space-between;gap:15px}.event p{margin:0}.event .controls{flex-shrink:0}.form-stack{display:grid;gap:16px}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.snapshot-member{display:inline-block;padding:5px 10px;border:1px solid var(--border);border-radius:7px;margin:3px}.notice{padding:12px 16px;border-left:3px solid var(--gold);background:#efc76e0b;margin-bottom:18px}#notice:not(:empty){position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:10;padding:14px 22px;background:#334253;border:1px solid #8092a4;border-radius:12px}dialog{color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:16px;max-width:760px;width:90vw;padding:26px}dialog::backdrop{background:#000a}dialog .controls{justify-content:flex-end;margin-top:24px}footer{color:var(--muted);font-size:12px;margin-top:50px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}@media(max-width:760px){header{flex-wrap:wrap;gap:14px}header nav{order:3;flex-basis:100%}header,main,footer{padding:20px}.hero-mark{right:-80px}.hero{padding-top:35px}.event{align-items:flex-start;flex-direction:column}.controls>label{flex:1 1 180px}.guild-strip .toolbar{align-items:stretch}.toolbar{gap:16px}.card{padding:18px}.member-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}}

/* The current guild is context, so keep it compact beside the actual content. */
header,main,footer{padding-left:clamp(18px,2.2vw,32px);padding-right:clamp(18px,2.2vw,32px)}
.member-home{max-width:1040px}
.member-home h1{font-size:clamp(26px,2.1vw,32px);letter-spacing:-.5px}
.guild-card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),340px));gap:14px}
.guild-card{padding:20px}
.guild-card .guild-icon{width:40px;height:40px;font-size:18px;border-radius:11px}
.guild-card h2{font-size:18px}
.guild-card p{margin:14px 0}
.guild-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:68px;padding:12px 16px;margin:20px 0 22px;border:1px solid var(--border);border-radius:12px;background:#19212a}
.guild-strip .guild-identity{min-width:0;gap:12px}
.guild-strip .guild-icon{width:38px;height:38px;border-radius:9px;font-size:17px}
.guild-context{min-width:0;display:flex;align-items:baseline;gap:5px 11px;flex-wrap:wrap}
.guild-context .eyebrow{width:100%;font-size:10px;letter-spacing:1.2px;color:var(--muted);margin:0;line-height:1}
.guild-context strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(52vw,450px)}
.guild-context small{font-size:12px;line-height:1.3}
.guild-strip label{width:clamp(155px,19vw,230px);flex-shrink:0;gap:3px;font-size:11px}
.guild-strip select{height:36px;padding:5px 10px;font-size:13px}
@media(max-width:560px){.guild-strip{flex-wrap:wrap;gap:10px}.guild-strip label{width:100%}.guild-context strong{max-width:70vw}.guild-card-grid{grid-template-columns:1fr}.member-home{max-width:100%}}
#guild-context{min-width:0;flex:0 1 auto}
#guild-context:empty{display:none}
#guild-context .guild-strip{min-height:44px;max-width:400px;padding:5px 9px;margin:0;gap:12px;background:#19212a}
#guild-context .guild-identity{gap:8px;min-width:0}
#guild-context .guild-icon{width:30px;height:30px;border-radius:7px;font-size:14px}
#guild-context .guild-context{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
#guild-context .guild-context .eyebrow{font-size:9px}
#guild-context .guild-context strong{max-width:175px;font-size:13px}
#guild-context .guild-context small{font-size:10px}
#guild-context .guild-strip label{width:145px;min-width:0;flex-shrink:1}
#guild-context .guild-strip select{height:30px;font-size:12px}
@media(max-width:1080px){header{flex-wrap:wrap}#guild-context{margin-left:auto}#account{margin-left:0}}
@media(max-width:760px){#guild-context{order:3;margin-left:0;flex:1 1 auto}header nav{order:4}#account{margin-left:auto}#guild-context .guild-strip{max-width:100%}}
@media(max-width:480px){#guild-context{order:4;flex-basis:100%}header nav{order:3}#guild-context .guild-strip label{width:42%}}

.server-switches{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 24px}
.server-both-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.server-both-actions .state-control{min-height:52px;white-space:nowrap}
.server-both-actions .both-start{border-color:#587cb2;background:#1d344b}
.server-both-actions .both-stop{border-color:#65758a;background:#26313e}
.both-action-icon{display:grid;place-items:center;flex:none;width:36px;height:24px;border-radius:16px;background:#5c8db5;color:#15222f;font-size:11px}
.both-stop .both-action-icon{background:#9dacbb;font-size:12px}
.server-both-actions .state-control:disabled{opacity:.55}
.operation-progress{margin:-12px 0 22px;padding:10px 14px;border:1px solid #78683d;border-radius:10px;background:#332d1c;color:var(--gold);font-size:13px}
.state-control{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-width:175px;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:#19222c;text-align:left}
.state-control.read-only{color:var(--muted)}
.state-control.is-on{border-color:#4b7863;background:#1b302b}
.switch-track{width:37px;height:21px;border-radius:16px;background:#53606d;flex:none;padding:3px;transition:background .15s}
.switch-track span{display:block;width:15px;height:15px;border-radius:50%;background:white;transition:transform .15s}
.state-control.is-on .switch-track,.switch-track.is-on{background:#67be95}
.state-control.is-on .switch-track span,.switch-track.is-on span{transform:translateX(16px)}
.state-control-text{display:flex;flex-direction:column;line-height:1.25}
.state-control-text strong{font-size:13px;color:var(--text)}
.state-control-text small{font-size:11px;margin-top:2px}
.bot-list{padding:20px;margin-bottom:18px}
.bot-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.bot-list-heading h2{margin:0}
.bot-list table{min-width:750px}
.bot-list td{white-space:nowrap;font-size:13px}
.bot-identity strong,.bot-identity small{display:block}
.bot-identity small{text-transform:capitalize;font-size:11px}
.bot-status{display:inline-flex;align-items:center;gap:6px}
.bot-status::before{content:'';width:7px;height:7px;border-radius:50%;background:#8291a0}
.bot-status.online::before{background:#6cdda2}
dialog.snapshot-dialog{width:min(96vw,1520px);max-width:1520px;max-height:92vh;overflow:auto;padding:28px}
.snapshot-modal>.toolbar{align-items:flex-start;margin-bottom:18px}.snapshot-modal .eyebrow{margin:10px 0 6px}.snapshot-modal .toolbar strong{display:block}.snapshot-modal .toolbar p{margin:10px 0 0;font-size:13px}
.snapshot-channels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.snapshot-channel{min-width:0;background:#141b24;border:1px solid var(--border);border-radius:12px;padding:14px}
.snapshot-channel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}.snapshot-channel-heading h3{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.snapshot-channel ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:5px}.snapshot-channel li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:5px 8px;border-radius:7px;background:#24312840;font-size:13px}.snapshot-channel li>span{min-width:0;overflow-wrap:anywhere}
.snapshot-channel li.snapshot-purple{color:var(--purple);background:#a76dda10}.snapshot-channel li.snapshot-amber{color:#f0bf6e;background:#e0b15419}.snapshot-channel li.snapshot-red{color:#ff9995;background:#dc505021}.snapshot-channel li.snapshot-gold{color:var(--gold);background:#e8bd5419}
.snapshot-add{display:flex;gap:6px}.snapshot-add select{flex:1;height:36px;padding:5px 8px;font-size:12px}.snapshot-add button{min-height:36px;padding:5px 9px;font-size:12px}.snapshot-channel .snapshot-remove{min-height:22px;padding:0;width:23px;height:23px;border:0;border-radius:50%;background:#c656562b;color:#ff9b9b;flex-shrink:0}
.snapshot-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}
@media(max-width:1050px){.snapshot-channels{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){dialog.snapshot-dialog{padding:18px}.snapshot-channels{grid-template-columns:1fr}}
@media(max-width:560px){.state-control{flex:1 1 100%}}

/* Keep the public Events calendar consistent with the superadmin schedule. */
.portal-event-calendar{display:grid;gap:14px;background:rgba(25,34,45,.95)}
.today-schedule-modal textarea{display:block;width:100%;min-height:255px;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:#10171f;color:var(--text);font:inherit;line-height:1.55;resize:vertical}.today-schedule-modal textarea:focus{outline:2px solid var(--gold);outline-offset:2px}.today-schedule-modal small{display:block;margin-top:8px}.today-schedule-modal .controls{justify-content:flex-end}
.schedule-template-settings textarea:not([hidden]){display:block;width:100%;min-height:245px;padding:13px 15px;border:1px solid var(--border);border-radius:10px;background:#10171f;color:var(--text);font:inherit;line-height:1.5;resize:vertical}.schedule-template-settings textarea:focus{outline:2px solid var(--gold);outline-offset:2px}.schedule-template-settings .controls{margin-top:13px}.schedule-template-settings code{color:var(--gold)}.schedule-template-settings [hidden]{display:none!important}
.portal-calendar-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.portal-calendar-summary>div{display:grid;gap:2px}
.portal-calendar-summary .eyebrow{margin:0;color:#83b9ed}
.portal-calendar-summary strong{font-size:16px;color:var(--gold)}
.portal-calendar-summary small{font-size:12px}
.portal-calendar-summary .calendar-mode-switch{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;min-height:44px;padding:6px 11px;border:1px solid var(--border);background:#101820;color:var(--muted);border-radius:9px}
.portal-calendar-summary .calendar-mode-switch span:first-child{color:var(--gold)}
.portal-calendar-summary .calendar-mode-switch.is-range span:first-child{color:var(--muted)}
.portal-calendar-summary .calendar-mode-switch.is-range span:last-child{color:var(--gold)}
.portal-calendar-summary .calendar-mode-track{width:36px;height:20px;border-radius:20px;background:#334253;border:1px solid #576779;padding:2px;display:inline-flex;align-items:center}
.portal-calendar-summary .calendar-mode-track i{width:14px;height:14px;border-radius:50%;background:var(--gold);transition:transform .15s ease}
.portal-calendar-summary .is-range .calendar-mode-track i{transform:translateX(16px)}
.portal-event-calendar .calendar{width:min(100%,520px);max-width:none;margin:0 auto;padding:12px;border:1px solid var(--border);border-radius:12px;background:#101820}
.portal-calendar-heading{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;align-items:center;text-align:center;margin-bottom:10px;color:var(--gold)}
.portal-calendar-heading button{padding:0;width:36px;min-height:34px}
.portal-event-calendar .calendar-grid{gap:5px}
.portal-event-calendar .week{padding:3px 0 6px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.portal-event-calendar .calendar-grid button{height:36px;min-height:36px;padding:0;border-color:transparent;background:#304356aa;font-weight:600}
.portal-event-calendar .calendar-grid button.active,.portal-event-calendar .calendar-grid button:hover{border-color:var(--gold);background:#efc76e33;color:var(--gold)}
.portal-event-calendar .calendar-grid button.dot{box-shadow:inset 0 0 0 1px #60d69959}
.portal-calendar-search{width:100%}
.portal-calendar-search input{margin-top:2px}
.portal-calendar-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.portal-calendar-filters label{min-width:0}
.portal-event-calendar .calendar-grid button.active:not([aria-pressed="true"]){border-color:transparent;background:#efc76e1c;color:var(--gold)}
@media(max-width:600px){.portal-calendar-filters{grid-template-columns:1fr}}

/* Group role choices by task and distinguish irreversible actions. */
.role-rights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:min(56vh,560px);overflow-y:auto;padding:2px}
.role-right{display:flex;flex-direction:row;align-items:flex-start;gap:12px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#141c25;color:var(--text);cursor:pointer}
.role-right input[type=checkbox]{flex:none;margin:3px 0 0}
.role-right span{display:grid;gap:3px;min-width:0}
.role-right strong{font-size:14px;line-height:1.3}
.role-right small{font-size:12px;line-height:1.4}
.role-right-danger{border-color:#805452;background:#311d2333}
.role-right-danger strong{color:#ffaaa4}
@media(max-width:600px){.role-rights{grid-template-columns:1fr}}

.role-assign-section{margin-top:20px}
.role-assign-form{display:grid;grid-template-columns:repeat(2,minmax(190px,280px)) auto;justify-content:start;align-items:end;gap:16px;padding:18px;border:1px solid var(--border);border-radius:12px;background:#101820}
.search-picker{position:relative;min-width:0}
.search-picker label{margin-bottom:7px}
.search-picker input{padding-right:34px}
.search-picker::after{content:'⌄';position:absolute;right:14px;top:34px;color:var(--muted);pointer-events:none}
.search-picker-results{position:absolute;z-index:20;top:100%;left:0;right:0;max-height:230px;overflow-y:auto;margin-top:4px;padding:5px;background:#131c26;border:1px solid #596777;border-radius:9px;box-shadow:0 12px 28px #0008}
.search-picker-results[hidden]{display:none}
.search-picker-results button{display:block;width:100%;min-height:34px;padding:7px 10px;text-align:left;border:0;background:transparent;font-size:13px}
.search-picker-results button:hover,.search-picker-results button:focus-visible{background:#384859;color:var(--gold)}
.search-picker-results button[hidden]{display:none}
.search-picker-results .wishlist-picker-option{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wishlist-listed-count,.wishlist-award-count{display:inline-block;font-size:11px;font-weight:600;line-height:1.5;color:#b6c2d0;background:rgba(182,194,208,.08);border:1px solid rgba(182,194,208,.18);border-radius:6px;padding:2px 7px;white-space:nowrap;vertical-align:middle}
.wishlist-picker-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-picker-results .muted{display:block;padding:9px;font-size:13px}
.role-assign-form>button{align-self:end}
.role-assign-form fieldset{min-width:0;margin:0;padding:0;border:0}
.role-assign-form legend{padding:0 0 7px;font-size:13px;color:var(--muted)}
.role-assign-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;min-height:44px}
.role-assign-options .check{white-space:nowrap}
.role-assign-section .role-assignment-list{margin-top:24px}
.role-assignment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--border)}
.role-assignment-name{overflow-wrap:anywhere}
.role-assignment-role{justify-self:center;color:var(--gold);border-color:#8d7948}
.role-assignment .controls{justify-self:end;flex-wrap:nowrap}
@media(max-width:800px){.role-assign-form{grid-template-columns:1fr}.role-assignment{grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}.role-assignment-role{grid-column:1;justify-self:start}.role-assignment .controls{grid-column:2;grid-row:1/3}}

.access-section{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:12px;background:#141c25}
.access-section h3,.access-section p{margin:0}
.access-section>label{max-width:420px}
.access-role-entry{padding:12px 0;border-top:1px solid var(--border)}
.access-role-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.access-role-heading strong,.access-role-heading small{display:block}
.access-role-heading .controls{margin:0;gap:6px}
.access-role-heading button{min-height:36px;padding:6px 10px}
.access-role-rights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding:12px;border-radius:8px;background:#1b2530}
.access-role-rights[hidden]{display:none}
.access-add{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.access-add label{flex:1 1 250px}
@media(max-width:540px){.access-role-heading{align-items:flex-start;flex-direction:column}.access-role-rights{grid-template-columns:1fr}}

.settings-heading{margin-bottom:8px}
.vb-confirm-dialog{width:min(460px,calc(100vw - 32px));padding:26px;border-color:#8b7245;box-shadow:0 24px 65px #0008}
.vb-confirm-dialog h2{margin:0 0 12px}.vb-confirm-message{white-space:pre-line;line-height:1.55;overflow-wrap:anywhere}
.vb-confirm-dialog .vb-confirm-message{max-height:55vh;overflow:auto}
.reminder-progress{width:min(390px,calc(100vw - 32px));padding:22px;border:1px solid #4b6071;border-radius:14px;background:#1b2530;color:var(--text);box-shadow:0 22px 60px #0009}
.reminder-progress::backdrop{background:#080d14ad}
.reminder-progress h2{margin:5px 0 7px;font-size:19px}.reminder-progress p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.reminder-progress-track{height:7px;margin-top:20px;border-radius:99px;background:#334152;overflow:hidden}.reminder-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#73b2e7,#f1c761);transition:width .35s ease}
.reminder-progress-count{margin-top:8px;color:#f1c761;font-weight:700;font-size:12px;text-align:right}.reminder-progress-failures{margin-top:13px;padding:10px 12px;max-height:25vh;overflow:auto;white-space:pre-line;overflow-wrap:anywhere;border-radius:8px;background:#101821;color:#e9a4a4;font-size:12px;line-height:1.5}
.reminder-progress>button{display:block;margin:15px 0 0 auto}.reminder-progress [hidden]{display:none}
.party-delivery-status{width:min(520px,calc(100vw - 32px))}.party-delivery-status .reminder-progress-failures>div+div{border-top:1px solid #344252;margin-top:10px;padding-top:10px}
.vb-confirm-dialog label{display:block;margin-top:18px}.vb-confirm-dialog input{display:block;margin-top:7px}
.vb-confirm-dialog textarea{display:block;width:100%;margin-top:7px;resize:vertical}
.vb-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.settings-heading h1{margin:0}
.settings-tabs{margin:0 0 18px}
.settings-intro{margin-bottom:20px}
.settings-role-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.settings-role-intro .settings-intro{margin:0;flex:1 1 400px}
.settings-role-intro button{flex:none}
.member-card[hidden],.table-wrap tr[hidden]{display:none}
.member-glow-note{display:flex;align-items:center;gap:8px;color:var(--gold);font-size:13px}
.member-glow-marker{width:12px;height:12px;border:1px solid var(--gold);border-radius:4px;box-shadow:0 0 10px #efc76e88;flex:none}
.member-directory-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.member-directory-toolbar>label{width:min(100%,280px)}
.member-directory-actions,.member-view-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.member-view-tabs button{min-height:44px}
.member-view-count{display:inline-grid;place-items:center;min-width:25px;padding:2px 6px;border-radius:99px;background:#ffffff1a;color:inherit;font-size:12px}
.member-grid #member-filter-empty{grid-column:1/-1;margin:0}
#member-filter-empty[hidden]{display:none}
@media(max-width:760px){.member-directory-actions{width:100%;justify-content:space-between}}
.general-settings{max-width:820px}
.settings-general-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.settings-general-grid .general-settings{max-width:none;margin:0;min-width:0}
.settings-general-grid .general-settings:last-child{grid-column:1/-1}
.settings-general-grid .general-settings .toolbar{align-items:start}
@media(max-width:900px){.settings-general-grid{grid-template-columns:1fr}.settings-general-grid .general-settings:last-child{grid-column:auto}}
.companion-download{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#34475a);color:var(--muted);font-size:13px}
.companion-download-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:9px;background:var(--gold);color:#17212b;text-decoration:none;font-weight:700}
.companion-download-button:hover{filter:brightness(1.08)}
.relay-group-choice{display:flex;align-items:center;gap:12px;margin:14px 0;padding:12px 14px;border:1px solid var(--border);border-radius:10px}
.relay-group-choice legend{padding:0 5px;color:var(--muted);font-size:12px;font-weight:700}
.relay-group-choice .check{display:inline-flex;align-items:center;gap:6px;margin:0;white-space:nowrap}
.license-status{border-color:#d8af573b;background:linear-gradient(120deg,#2b271f,#1b2631 70%)}
.license-banner{padding:15px 20px;margin:0 0 18px;border:1px solid #d8af573b;border-radius:12px}
.license-banner .eyebrow{font-size:11px}
.license-banner .license-status-head h2{font-size:19px;line-height:1.25}
.license-banner p{margin:5px 0 0;font-size:13px}
.license-banner .license-status-track{height:5px;margin-top:10px}
.license-banner .support-number{margin-top:11px;padding:8px 12px}
.license-banner .support-number div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.license-banner .support-number strong{font-size:16px}
@media(max-width:600px){.license-banner{padding:14px 16px}.license-banner .support-number{align-items:flex-start}.license-banner .support-number div{gap:2px 10px}}
.license-status-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.license-status-head h2{margin:5px 0 0}
.license-status-head .pill{color:var(--gold);border-color:#d8af5770}
.license-status p{margin:14px 0 0;color:var(--muted)}
.license-status-track{height:7px;margin-top:20px;border-radius:100px;background:#0f1820;overflow:hidden}
.license-status-track span{display:block;height:100%;background:var(--gold);border-radius:inherit}
.license-status.is-expired .license-status-head .pill{color:var(--red)}
.support-number{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px;padding:12px 14px;border:1px solid #d8af574a;border-radius:10px;background:#131e27}
.support-number div{display:grid;gap:3px}
.support-number small{color:var(--muted);font-size:12px}
.support-number strong{color:var(--gold);font-size:20px;letter-spacing:.12em;font-variant-numeric:tabular-nums}
.attendance-threshold-fields{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.attendance-threshold-fields label{width:170px}
.attendance-legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.attendance-score{display:inline-block;padding:4px 10px;border:1px solid;border-radius:8px;font-weight:700;white-space:nowrap}
.attendance-green{color:#78dfa7;background:#78dfa717;border-color:#478965}
.attendance-orange{color:#f0bf6e;background:#f0bf6e17;border-color:#9b7843}
.attendance-red{color:#ff9694;background:#ff969417;border-color:#a65b59}
.game-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:8px 0 24px}
.game-intro h1,.game-intro h2{margin:0 0 8px}.game-intro p{margin:0;max-width:660px}.game-intro .eyebrow{margin-bottom:6px}
.game-selection-count{padding:9px 15px;border:1px solid #77613d;border-radius:999px;color:var(--gold);background:#efc76e12;white-space:nowrap}
.game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px;align-items:start}
.game-grid>.card{margin:0}.game-card{border-color:color-mix(in srgb,var(--game-accent) 36%,var(--border));background:linear-gradient(145deg,color-mix(in srgb,var(--game-accent) 10%,#202933),#171e27 70%);padding:22px}
.game-card-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}.game-card-heading .eyebrow{margin:0 0 2px;color:var(--game-accent)}.game-card-heading h2,.game-card-heading h3{margin:0;overflow-wrap:anywhere}
.game-emblem{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;border:1px solid var(--game-accent);background:color-mix(in srgb,var(--game-accent) 17%,transparent);color:var(--game-accent);flex:none;font-size:20px}
.game-emblem svg{width:26px;height:26px;display:block}
.game-class-list{--class-row-height:55px;min-height:74px;max-height:275px;overflow-y:auto;overscroll-behavior:contain;margin-bottom:18px;padding-right:12px}.game-class-list p{margin:6px 0}.game-class-row{display:flex;align-items:center;justify-content:space-between;gap:10px;height:var(--class-row-height);padding:9px 0;border-top:1px solid var(--border)}.game-class-name{display:flex;align-items:center;gap:9px;min-width:0;overflow:hidden}.game-class-name span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-class-dot{width:7px;height:7px;border-radius:100%;background:var(--game-accent);flex:none}
.game-class-list,.game-choices{scrollbar-width:thin;scrollbar-color:var(--game-accent) #111a24;scrollbar-gutter:stable}
.game-class-list::-webkit-scrollbar,.game-choices::-webkit-scrollbar{width:7px}
.game-class-list::-webkit-scrollbar-track,.game-choices::-webkit-scrollbar-track{background:#111a24;border-radius:8px}
.game-class-list::-webkit-scrollbar-thumb,.game-choices::-webkit-scrollbar-thumb{background:var(--game-accent);border-radius:8px;border:1px solid #111a24}
.game-class-actions,.game-card-footer{display:flex;gap:7px;flex-wrap:wrap}.game-class-actions{flex:none}.game-class-actions button,.game-card-footer button{min-height:36px;padding:6px 10px;font-size:12px}.game-card-footer{border-top:1px solid var(--border);padding-top:16px}.game-card-footer button:first-child{margin-right:auto}
.game-choices{display:grid;gap:8px;max-height:282px;overflow-y:auto;overscroll-behavior:contain;padding-right:12px}.game-choice{display:flex;flex-direction:row;align-items:center;gap:12px;height:50px;padding:12px;border:1px solid var(--border);background:#101820;border-radius:10px;color:var(--text);cursor:pointer;font-size:14px}.game-choice span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-choice:hover{border-color:var(--game-accent)}.game-choice:has(input:checked){border-color:var(--game-accent);background:color-mix(in srgb,var(--game-accent) 13%,#101820)}.game-choice input{width:18px;height:18px;accent-color:var(--game-accent);flex:none}
.game-save-bar{position:sticky;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:24px 0 10px;padding:15px 18px;border:1px solid #75643e;border-radius:14px;background:#1d2630;box-shadow:0 8px 28px #0008}.game-save-bar span{color:var(--muted)}
.game-palette{border:0;margin:0;padding:0}.game-palette legend{font-size:13px;color:var(--muted);margin-bottom:9px}.game-palette-options{display:flex;flex-wrap:wrap;gap:8px}.game-palette-options label{position:relative;align-items:center;gap:4px;padding:8px 12px;border:1px solid var(--border);border-radius:9px;cursor:pointer}.game-palette-options label:has(input:checked){border-color:var(--gold);background:#efc76e15;color:var(--text)}.game-palette-options input{position:absolute;width:1px;height:1px;opacity:0}.game-palette-options span{width:20px;height:20px;background:var(--game-accent);border-radius:100%}.game-palette-options small{color:inherit}
.game-icon-picker{border:0;margin:0;padding:0}.game-icon-picker legend{font-size:13px;color:var(--muted);margin-bottom:9px}.game-icon-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.game-icon-options label{position:relative;display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px;min-width:0;border:1px solid var(--border);border-radius:11px;background:#111a24;color:var(--text);cursor:pointer}.game-icon-options label:has(input:checked){border-color:var(--game-accent);background:color-mix(in srgb,var(--game-accent) 12%,#111a24)}.game-icon-options label:has(input:focus-visible){outline:2px solid var(--game-accent);outline-offset:2px}.game-icon-options input{position:absolute;width:1px;height:1px;opacity:0}.game-icon-options .game-emblem{width:38px;height:38px;border-radius:10px}.game-icon-options .game-emblem svg{width:23px;height:23px}.game-icon-options small{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:500px){.game-icon-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.game-save-bar{flex-direction:column;align-items:stretch}.game-save-bar button{width:100%}.game-class-list{--class-row-height:84px;max-height:420px}.game-class-row{align-items:flex-start;justify-content:center;flex-direction:column}}
/* Guild class choices and directory */
.member-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr))}
.member-card{padding:18px;min-height:168px;gap:12px}
.member-class-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.member-class-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 8px;border-radius:8px;border:1px solid color-mix(in srgb,var(--game-accent) 48%,var(--border));background:color-mix(in srgb,var(--game-accent) 12%,#101820);color:var(--game-accent);font-size:12px}
.game-top-section{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:22px}
.game-top-section h2{margin-bottom:6px}.game-top-section p{margin:0}
dialog.game-top-dialog{width:min(940px,calc(100vw - 32px));max-width:940px;max-height:85vh;overflow:auto;padding:26px}
.game-top-modal .toolbar{align-items:flex-start}.game-top-modal h2{margin:0 0 8px}.game-top-modal p{margin:0}.game-top-modal .controls{margin:0}
.game-top-list,.game-top-members{display:grid;gap:10px;margin-top:20px}
.game-top-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}
.game-top-row{min-width:0;display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:12px;min-height:72px;background:#151d27}
.game-top-row:hover{border-color:var(--game-accent)}.game-top-color{width:10px;height:34px;background:var(--game-accent);border-radius:5px;flex:none}
.game-top-label{min-width:0;display:flex;flex-direction:column;flex:1}.game-top-label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-top-label small{color:var(--game-accent)}
.game-top-count{white-space:nowrap;color:var(--gold);font-size:12px}.game-top-members{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}
.game-top-member{overflow-wrap:anywhere;padding:14px;border:1px solid var(--border);border-radius:10px;background:#151d27}
/* Event responses and compact party management. */
.event{flex-wrap:wrap}.event>.controls{margin-left:auto}.event-rsvp{display:flex;align-items:center;gap:9px;flex:1 1 100%;flex-wrap:wrap;width:100%;padding-top:10px;border-top:1px solid var(--border);font-size:13px}
.event-rsvp .rsvp-yes{background:#267451;color:#fff;border-color:#468c69}.event-rsvp .rsvp-no{background:#863c42;color:#fff;border-color:#a95a5c}
.snapshot-review{margin-top:18px;padding:14px;border:1px solid var(--border);border-radius:12px;background:#131d26}.snapshot-review h3{margin:0 0 5px}.snapshot-review p{font-size:12px}
.snapshot-benched-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-right:8px}
.snapshot-benched-heading h3{margin:0}
.snapshot-benched-heading button,.snapshot-benched .snapshot-review-row button{flex:none;min-width:180px;white-space:nowrap}
@media(max-width:560px){.snapshot-benched-heading{align-items:flex-start;flex-wrap:wrap}.snapshot-benched-heading button{margin-left:auto}}
.snapshot-review-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;border-top:1px solid var(--border)}.snapshot-review-row strong{margin-right:auto}
.snapshot-review-status{font-size:12px;color:var(--muted);white-space:nowrap}.snapshot-review-status.is-counted{color:#70d6a2}.snapshot-review-status.is-excluded{color:#f0a29f}
.snapshot-no-show-list{max-height:250px;overflow-y:auto;padding-right:8px}.snapshot-no-show-list .snapshot-review-row{min-height:53px;flex-wrap:nowrap}.snapshot-no-show-list .snapshot-review-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.snapshot-no-show-list .snapshot-review-row small{min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.snapshot-no-show-list .snapshot-review-row button{flex:none;white-space:nowrap}.snapshot-offline-status{color:#70d6a2;border-color:#387c59}@media(max-width:560px){.snapshot-no-show-list .snapshot-review-row{flex-wrap:wrap}.snapshot-no-show-list .snapshot-review-row strong{flex:1 1 100%}}
.party-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);align-items:start;gap:16px}.party-pool{position:sticky;top:12px;max-height:min(74vh,760px);overflow-y:auto}.party-pool h2,.party-card h2,.party-card h3{margin:0}.party-pool p{font-size:12px}.party-search{margin:10px 0}.party-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:14px;align-items:start}.party-card{margin:0;min-width:0;padding:16px}.party-card .toolbar{margin-bottom:14px}.party-card .toolbar small{color:var(--muted)}.party-card .toolbar button{min-height:34px}.party-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.party-heading small{display:block;color:var(--muted);font-size:11px}.party-heading-actions{display:flex;align-items:center;gap:6px;flex:none}.party-heading-actions button{min-height:32px;padding:5px 9px;font-size:12px}.party-people{display:grid;gap:7px;min-height:45px}.party-person{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;min-width:0;border:1px solid var(--border);border-radius:9px;background:#111a24;cursor:grab}.party-person.party-person-role{border-color:color-mix(in srgb,var(--game-accent) 60%,var(--border));background:linear-gradient(100deg,color-mix(in srgb,var(--game-accent) 16%,#111a24),#111a24 85%);box-shadow:inset 3px 0 var(--game-accent)}.party-person-role strong{color:var(--game-accent)}.party-person:active{cursor:grabbing}.party-person[hidden]{display:none}.party-person>div{min-width:0}.party-person strong,.party-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.party-person small{color:var(--muted);font-size:11px}.party-remove{flex:none;min-height:26px;width:27px;padding:0}.party-empty{padding:15px;border:1px dashed #647488;border-radius:9px;text-align:center;color:var(--muted);font-size:12px}.party-inactive{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--border);color:#8897aa}.party-inactive small{width:100%}.party-inactive span{padding:4px 7px;border:1px solid #4e5b6a;border-radius:6px;opacity:.65;font-size:12px}.party-new-inline{display:grid;gap:8px}.party-new-inline input{width:100%}
dialog.party-dialog{width:min(96vw,1440px);max-width:1440px;max-height:94vh;overflow-y:auto;padding:24px}.party-modal>.toolbar{position:sticky;top:-24px;z-index:2;margin:-24px -24px 18px;padding:20px 24px;background:var(--panel);border-bottom:1px solid var(--border)}.party-modal>.toolbar h2{margin:4px 0}.party-modal>.toolbar p{margin:0;font-size:12px}.party-modal .party-pool{position:static;max-height:65vh}.party-footer{position:sticky;bottom:-24px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px -24px -24px;padding:14px 24px;background:var(--panel);border-top:1px solid var(--border);color:var(--muted);font-size:13px}
.party-modal .party-pool{max-height:none;overflow:visible}
.party-roster{display:grid;gap:10px;max-height:min(76vh,790px);overflow-y:auto;padding:2px 8px 2px 0;scrollbar-width:thin;scrollbar-color:#586c7c transparent}
.party-roster-group{display:grid;gap:7px}
.party-roster-group h4{display:flex;justify-content:space-between;align-items:center;margin:8px 0 2px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.party-roster-group h4 span{font-variant-numeric:tabular-nums}
.party-person-waiting{opacity:.55;cursor:default;background:#151d27}
.party-person-waiting:active{cursor:default}
@media(max-width:780px){.party-layout{grid-template-columns:1fr}.party-pool{position:static;max-height:230px}.party-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}.party-modal>.toolbar{flex-wrap:wrap}dialog.party-dialog{padding:17px}.party-modal>.toolbar{top:-17px;margin:-17px -17px 15px;padding:17px}.party-footer{bottom:-17px;margin:16px -17px -17px;padding:12px 17px}}

/* Event tools and member response are separate, readable parts of one card. */
#event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
#event-list>.empty{grid-column:1/-1}
.portal-event-card{display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;padding:0;overflow:hidden;margin:0;min-width:0;height:100%}
.event-card-heading{padding:20px 22px 17px;width:100%;flex:1}
.event-card-heading .eyebrow{margin-bottom:5px}
.event-card-heading h2{margin:0 0 5px;font-size:19px;overflow-wrap:anywhere}
.event-card-heading p{margin:0;font-size:12px}
.event-card-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:13px}
.event-response-counts{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px;font-size:11px}
.event-response-counts span{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid var(--border);border-radius:7px;background:#111b25;color:var(--muted)}
.event-response-counts b{font-size:12px;font-variant-numeric:tabular-nums}
.event-response-counts .is-attending b{color:#69d9a0}
.event-response-counts .is-declined b{color:#f17980}
.event-response-counts .is-unanswered b{color:#aab7c7}
.event-status{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;padding:3px 9px;background:#101820;color:var(--muted);font-size:11px;line-height:1.5}
.event-status.posted,.event-status.recorded{color:#9de3b9;border-color:#4d8065;background:#18342755}
.event-card-actions{padding:13px 22px 16px;border-top:1px solid var(--border);background:#10182048;width:100%}
.event-card-actions .eyebrow,.event-rsvp .eyebrow{margin:0 0 8px;color:#a3c4e5;font-size:10px}
.event-card-actions .controls{gap:8px}
.event-card-actions button{min-height:36px;padding:7px 11px;font-size:12px}
.portal-event-card .event-rsvp{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px 20px;margin:0;padding:15px 22px 18px;background:#1c29318c}
.event-rsvp small{display:block;font-size:12px}
.event-rsvp-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px}
.event-rsvp-actions button{min-height:39px;padding:8px 13px;font-size:13px}
.event-post-settings{display:grid;gap:12px;border:1px solid var(--border);border-radius:12px;padding:16px;background:#121c26}
.event-post-settings legend{padding:0 7px;color:var(--gold);font-size:13px;font-weight:700}
.event-post-settings .check{color:var(--text)}
.event-post-settings .event-post-hours{max-width:230px}
.event-post-settings small{line-height:1.45}
@media(max-width:850px){#event-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.event-card-heading,.event-card-actions,.portal-event-card .event-rsvp{padding-left:16px;padding-right:16px}.portal-event-card .event-rsvp{align-items:flex-start;flex-direction:column}}

/* Guild wishlist */
.wishlist-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wishlist-card{border-left:3px solid var(--wishlist-accent);margin:0;padding:16px 19px;display:flex;flex-direction:column}.wishlist-card-body{display:flex;align-items:flex-start;gap:18px;flex:1}.wishlist-card-content{min-width:0;flex:1}.wishlist-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.wishlist-title h3{margin:0;font-size:18px;color:var(--wishlist-accent);overflow-wrap:anywhere}.wishlist-card p{margin:9px 0;white-space:pre-wrap;overflow-wrap:anywhere}.wishlist-card small{color:var(--muted);line-height:1.5}.wishlist-picture{display:block;flex:none;width:100px;height:90px;background:#111923;border:1px solid var(--border);border-radius:9px;overflow:hidden}.wishlist-picture img{display:block;width:100%;height:100%;object-fit:contain}.wishlist-actions{margin-top:14px;padding-top:12px;border-top:1px solid var(--border);gap:8px;align-items:center;flex-wrap:wrap}.wishlist-actions button{min-height:35px}.wishlist-winner{color:#70d6a2;font-weight:700}.wishlist-already{color:#e7b769}.wishlist-saved{display:block;margin-top:14px}.wishlist-search{display:grid;gap:7px;max-width:320px;margin-bottom:17px}.wishlist-description textarea{box-sizing:border-box;display:block;width:100%;min-height:92px;padding:12px 14px;resize:vertical;border:1px solid var(--border);border-radius:9px;background:#10171f;color:var(--text);font:inherit;line-height:1.5}.wishlist-description textarea:focus{outline:2px solid var(--gold);outline-offset:2px}.wishlist-image-field{display:grid;gap:10px}.wishlist-field-label{color:var(--muted);font-size:13px}.wishlist-image-zone{display:grid;place-items:center;gap:7px;min-height:112px;padding:18px;border:1px dashed #6a829b;border-radius:11px;text-align:center;background:#101a25}.wishlist-image-zone:focus{outline:2px solid #5eaeef}.wishlist-image-zone small{color:var(--muted)}.wishlist-image-zone img{margin:auto;max-width:100%;max-height:150px;object-fit:contain}.wishlist-image-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.wishlist-image-controls label{flex:1 1 260px}.wishlist-image-controls input[type=file]{min-width:0}.wishlist-image-controls button{flex:none;min-height:44px}.wishlist-image-field [hidden]{display:none!important}.wishlist-view .toolbar{align-items:start}.wishlist-voters{display:grid;gap:10px;max-height:60vh;overflow:auto}.wishlist-voter{padding:13px 16px;border:1px solid var(--border);border-radius:9px;background:#121c26}.wishlist-voter strong{margin-right:12px}.wishlist-voter p{font-size:13px;color:var(--muted);white-space:pre-wrap}.wishlist-voter button{margin-top:4px}
@media(max-width:1050px){.wishlist-stack{grid-template-columns:1fr}}
@media(max-width:600px){.wishlist-card-body{flex-direction:column}.wishlist-picture{width:100%;height:145px}}
.wishlist-pages{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:16px 0 8px;color:var(--muted);font-size:13px}
.wishlist-pages.is-top{margin:0 0 14px}
.wishlist-pages>div{display:flex;gap:8px}.wishlist-pages button{min-height:36px;padding:7px 13px}
#wishlist-results{min-width:0}
.wishlist-wish-reason textarea{box-sizing:border-box;display:block;width:100%;min-height:100px;padding:12px 14px;resize:vertical;border:1px solid var(--border);border-radius:9px;background:#10171f;color:var(--text);font:inherit;line-height:1.5}
.wishlist-wish-reason textarea:focus{outline:2px solid var(--gold);outline-offset:2px}
.wishlist-delete-reason{gap:9px;color:var(--text);font-weight:600}
.wishlist-delete-reason textarea{display:block;width:100%;min-height:104px;padding:13px 15px;border:1px solid #526174;border-radius:11px;background:#101923;color:var(--text);font:400 14px/1.55 Inter,ui-sans-serif,system-ui,sans-serif;resize:vertical;transition:border-color .15s,box-shadow .15s}
.wishlist-delete-reason textarea::placeholder{color:#879aab;opacity:1}
.wishlist-delete-reason textarea:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 3px #efc76e30}
.wishlist-schedule{display:grid;gap:14px;padding-top:4px}
.wishlist-schedule-head{display:grid;gap:2px}.wishlist-schedule-head strong{font-size:15px}.wishlist-schedule-head small{font-size:12px;color:var(--muted)}
.wishlist-schedule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.wishlist-date-card{min-width:0;padding:14px;border:1px solid var(--border);border-radius:12px;background:#141e28}
.wishlist-date-toggle{display:flex;flex-direction:row;align-items:flex-start;gap:10px;cursor:pointer;color:var(--text);font-size:14px}
.wishlist-date-toggle input{flex:none;margin:2px 0 0}.wishlist-date-toggle span{display:grid;gap:3px}.wishlist-date-toggle strong{font-weight:650}.wishlist-date-toggle small{font-size:12px;line-height:1.4;color:var(--muted)}
.wishlist-date-fields{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:9px;margin-top:14px}
.wishlist-date-fields[hidden]{display:none}.wishlist-date-fields label{min-width:0}.wishlist-date-fields input{min-width:0;color-scheme:dark;padding:9px}
.wishlist-date-fields input:focus{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:640px){.wishlist-schedule-grid{grid-template-columns:1fr}}
.wishlist-type-field{display:grid;gap:12px}
.wishlist-type-field .wishlist-new-toggle{display:flex;flex-direction:row;align-items:center;gap:10px;color:var(--text);font-size:14px}
.wishlist-type-field .search-picker{min-width:0}
.wishlist-name-suggestions{display:grid;gap:4px;margin-top:8px;padding:9px;background:#131c26;border:1px solid #596777;border-radius:9px;max-height:190px;overflow-y:auto}
.wishlist-name-suggestions[hidden]{display:none}
.wishlist-name-suggestions small{color:var(--muted);padding:2px 7px}
.wishlist-name-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:8px 10px;background:#243244;border:1px solid transparent;border-radius:7px;color:var(--text);cursor:pointer}
.wishlist-name-suggestions button:hover,.wishlist-name-suggestions button:focus-visible{border-color:var(--gold);color:var(--gold)}
.wishlist-award-count{flex:none;color:#70d6a2;background:rgba(112,214,162,.08);border-color:rgba(112,214,162,.25)}
.event-ping-roles { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; padding: 8px; }
.event-ping-roles .check { display: flex; align-items: center; gap: 9px; margin: 0; padding: 8px; border-radius: 6px; }
.event-ping-roles .check:hover { background: #283341; }
.event-ping-roles input { width: auto; margin: 0; }
.absence-section{margin-top:1.3rem}
.absence-section>h2{margin:0 0 .8rem;font-size:1.1rem}
.absence-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));gap:.8rem}
.absence-card{display:flex;flex-direction:column;justify-content:space-between;gap:1rem;min-width:0}
.absence-card h3{margin:.35rem 0;font-size:1rem;overflow-wrap:anywhere}
.absence-card p{margin:.3rem 0}
.absence-card small{display:block;line-height:1.5}
.absence-card .controls{display:flex;flex-wrap:wrap;gap:.5rem}
.absence-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.absence-date-fields input{min-width:0;width:100%;box-sizing:border-box}
.absence-notice{padding:.8rem 1rem}
.absence-event-note{color:#e8c66f}
@media(max-width:560px){.absence-date-fields{grid-template-columns:1fr}}
.dashboard-notifications{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:0 0 1.15rem}
.dashboard-notifications:empty{display:none}
.dashboard-notification{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;text-align:left;cursor:pointer;padding:1rem 1.15rem;background:#1c2530;color:inherit;border:1px solid #344459;border-radius:14px;transition:border-color .18s,background .18s,transform .18s}
.dashboard-notification:hover,.dashboard-notification:focus-visible{border-color:#eac568;background:#24303d;transform:translateY(-1px)}
.dashboard-notification.has-pending{border-color:#836c38;background:linear-gradient(115deg,#282b2d,#1d2731)}
.dashboard-notification-copy{display:grid;gap:.2rem;min-width:0}
.dashboard-notification-copy strong{font-size:1.05rem}
.dashboard-notification-copy small{color:#a9bdd2;line-height:1.35}
.dashboard-notification-count{display:grid;place-items:center;flex:none;min-width:2.4rem;height:2.4rem;padding:0 .45rem;border-radius:12px;background:#313e4c;color:#c0cedc;font-weight:800;font-size:1.15rem}
.dashboard-notification.has-pending .dashboard-notification-count{background:#ecc667;color:#1b2028}
@media(max-width:650px){.dashboard-notifications{grid-template-columns:1fr}}
.absence-heading{align-items:flex-end;margin-bottom:1.1rem}
.absence-heading>div{max-width:900px}
.absence-heading h1{margin-bottom:.55rem}
.absence-heading p{margin:0;line-height:1.55}
.absence-tabs{display:flex;gap:.5rem;flex-wrap:wrap;border-bottom:1px solid var(--border);padding:0 0 .8rem;margin-bottom:1.2rem}
.absence-tabs button{min-height:38px;padding:7px 12px;font-size:13px}
.absence-tab-count{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:7px;background:#384756;color:#d5e2ed;font-size:12px}
.absence-tabs .active .absence-tab-count{background:#332a19;color:#fff}
.absence-target{border:1px solid var(--border);border-radius:12px;padding:12px;margin:0}
.absence-target legend{font-size:13px;color:var(--muted);padding:0 6px}
.absence-target-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.absence-target-options label{display:flex;flex-direction:row;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#151e28;cursor:pointer}
.absence-target-options label:has(input:checked){border-color:var(--gold);background:#40362255}
.absence-target-options span{display:flex;flex-direction:column;line-height:1.3}
.absence-target-options strong{color:var(--text);font-size:13px}
.absence-target-options small{font-size:11px}
.absence-target-options input{flex:none;width:17px;height:17px;accent-color:var(--gold)}
#absence-member-choice[hidden]{display:none}
@media(max-width:560px){.absence-target-options{grid-template-columns:1fr}}
/* Searchable Shotcaller selection, shared with setup and superadmin. */
.shotcaller-picker{display:grid;gap:12px;margin:14px 0}.shotcaller-chosen{display:flex;flex-wrap:wrap;gap:8px;min-height:36px;align-items:center}.shotcaller-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #a98a4c;border-radius:8px;background:#403624;color:#f6d384;padding:3px 5px 3px 11px;font-size:13px}.shotcaller-chip button{min-height:28px;padding:0 8px;border:0;background:transparent;color:inherit;font-size:20px}.shotcaller-results{display:grid;gap:3px;max-height:205px;overflow:auto}.shotcaller-results:empty{display:none}.shotcaller-result{text-align:left;justify-content:flex-start;min-height:37px;padding:5px 10px}

.wishlist-setup-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:24px;align-items:center}
.wishlist-setup-header>button{justify-self:end}
.wishlist-total-badge{display:flex;align-items:center;gap:12px;justify-self:center;padding:12px 22px;border:1px solid rgba(231,183,105,.45);border-radius:14px;background:linear-gradient(135deg,rgba(231,183,105,.16),rgba(231,183,105,.04));box-shadow:0 0 22px rgba(231,183,105,.12),inset 0 1px 0 rgba(255,221,166,.08);color:#f1cb83;white-space:nowrap}
.wishlist-total-badge strong{font-size:28px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums;text-shadow:0 0 14px rgba(231,183,105,.25)}
.wishlist-total-badge span{font-size:12px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:900px){.wishlist-setup-header{grid-template-columns:minmax(0,1fr) auto;gap:16px}.wishlist-total-badge{grid-column:1/-1;grid-row:2}.wishlist-setup-header>button{grid-column:2;grid-row:1}}
@media(max-width:480px){.wishlist-setup-header{grid-template-columns:1fr}.wishlist-setup-header>button{grid-column:1;grid-row:3;justify-self:stretch}.wishlist-total-badge{grid-column:1;grid-row:2}}

.wishlist-pages.has-total{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center}
.wishlist-pages.has-total>.wishlist-total-badge{grid-column:2}
.wishlist-pages.has-total>div{justify-self:end}
@media(max-width:600px){.wishlist-pages.has-total{grid-template-columns:minmax(0,1fr) auto}.wishlist-pages.has-total>.wishlist-total-badge{grid-column:1/-1;grid-row:1}.wishlist-pages.has-total>div{grid-column:2;grid-row:2}}

.wishlist-search-counts{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:none;flex-wrap:wrap}.wishlist-suggestion-name{min-width:0;overflow-wrap:anywhere}
@media(max-width:480px){.wishlist-search-counts{max-width:100px}}

.site-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.site-footer a,.cookie-login-note a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}.site-footer a:hover,.cookie-login-note a:hover{color:var(--gold)}.hero .cookie-login-note{font-size:12px;line-height:1.6;margin:12px 0 0;max-width:520px}.privacy-main{max-width:1000px}.privacy-main h1{font-size:clamp(28px,5vw,40px)}.privacy-main h2{margin-top:30px;font-size:21px}.privacy-main p{max-width:80ch}.privacy-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;margin:18px 0}.privacy-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.privacy-table th,.privacy-table td{padding:15px 18px;vertical-align:top;border-bottom:1px solid var(--border)}.privacy-table th{color:var(--text);background:#202933;font-weight:650}.privacy-table td{color:var(--muted)}.privacy-table tbody tr:last-child td{border-bottom:0}.privacy-table code{color:var(--text);white-space:nowrap}.privacy-table th:first-child{width:18%}.privacy-table th:nth-child(2){width:42%}.privacy-back{font-size:13px}.privacy-updated{font-size:12px}
@media(max-width:600px){.privacy-table{min-width:610px}.privacy-main .card{padding:20px}}

.license-support-info{font-size:12px;margin:16px 0 0;padding-top:12px;border-top:1px solid var(--border)}

button.wishlist-picture{padding:0;border:0;background:transparent;cursor:zoom-in}button.wishlist-picture:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.item-picture-dialog{width:min(960px,calc(100vw - 32px));max-width:960px;max-height:90dvh;padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:var(--text)}.item-picture-dialog::backdrop{background:#000b}.item-picture-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.item-picture-heading h2{margin:0;overflow-wrap:anywhere}.item-picture-heading button{flex-shrink:0}.item-picture-full{display:block;width:100%;max-height:calc(90dvh - 110px);object-fit:contain}.item-picture-dialog [hidden]{display:none!important}

.event-booking-dialog{width:min(740px,calc(100vw - 32px));max-width:740px;padding:26px}.event-booking-dialog .form-stack{gap:18px}.event-booking-dialog .form-stack>h2{margin:0;font-size:24px}.event-booking-intro{margin:-10px 0 2px;color:var(--muted);font-size:13px}.event-booking-section{display:grid;gap:14px;padding:18px;border:1px solid var(--border);border-radius:12px;background:#121c26}.event-booking-section h3{font-size:14px;color:var(--gold);margin:0}.event-booking-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.event-booking-dialog label{min-width:0;gap:7px}.event-booking-dialog input:not([type=checkbox]){width:100%;min-width:0;margin:0}.event-booking-deadline{display:grid;grid-template-columns:minmax(200px,1fr) 1fr;align-items:end;gap:16px}.event-booking-dialog small{font-size:12px;color:var(--muted);line-height:1.5}.event-booking-deadline>small{padding-bottom:10px}.event-booking-unit{position:relative;display:flex;align-items:center}.event-booking-unit input{padding-right:90px}.event-booking-unit span{position:absolute;right:34px;color:var(--muted);font-size:12px;pointer-events:none}.event-booking-timezone{padding-top:2px}.event-booking-dialog .event-post-settings{margin:0;padding:18px;gap:14px}.event-booking-announcement{display:grid;grid-template-columns:1fr 210px;align-items:center;gap:18px}.event-booking-announcement .check{align-items:flex-start;gap:10px}.event-booking-announcement .check input{margin-top:4px;flex-shrink:0}.event-booking-announcement .check span{display:grid;gap:4px}.event-booking-dialog .form-stack>.controls{border-top:1px solid var(--border);padding-top:18px;margin-top:0;gap:10px;justify-content:flex-end}.event-booking-dialog .form-stack>.controls button{min-width:110px}@media(max-width:600px){.event-booking-dialog{padding:18px}.event-booking-section,.event-booking-dialog .event-post-settings{padding:14px}.event-booking-deadline,.event-booking-announcement{grid-template-columns:1fr}.event-booking-deadline>small{padding-bottom:0}.event-booking-dialog .event-post-hours{max-width:none}.event-booking-grid{gap:10px}}

.wishlist-awarded-searches{display:flex;gap:16px;flex-wrap:wrap}.wishlist-awarded-searches .wishlist-search{flex:1 1 240px;width:100%;min-width:0}

.party-person[draggable="false"]{cursor:default}
.help-page{max-width:1120px;margin:0 auto}.help-heading{padding:14px 0 8px}.help-heading h1{margin-bottom:10px}.help-heading p{max-width:68ch}.help-tabs{margin:12px 0 14px}.help-index{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.help-index a{border:1px solid var(--border);background:#1a2530;border-radius:999px;color:var(--muted);font-size:13px;text-decoration:none;padding:7px 12px}.help-index a:hover,.help-index a:focus-visible{color:var(--gold);border-color:var(--gold)}.help-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}.help-section{margin:0;scroll-margin-top:24px}.help-section h2{color:var(--gold);margin-bottom:12px}.help-section p{line-height:1.65;margin-bottom:12px}.help-section p:last-child{margin-bottom:0}.help-section strong{color:var(--text)}#help-attendance{grid-column:1/-1}.help-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:12px;margin:18px 0}.help-table-wrap table{font-size:14px;min-width:620px}.help-table-wrap caption{text-align:left;padding:12px 14px;color:var(--text);font-weight:650;background:#26313b}.help-table-wrap th{background:#202a34}.help-table-wrap td{vertical-align:top;color:var(--muted)}.help-table-wrap td:nth-child(2){white-space:nowrap;color:var(--gold);font-weight:700}@media(max-width:760px){.help-sections{grid-template-columns:1fr}.help-section{padding:18px}.help-index a{font-size:12px;padding:6px 10px}}

.wishlist-setup-filters{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:17px}.wishlist-setup-filters .wishlist-search{margin:0;flex:1;min-width:0}.wishlist-setup-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:4px;border:1px solid var(--border);border-radius:10px;background:#10171f}.wishlist-setup-tabs button{min-height:34px;padding:7px 12px;font-size:13px;border-radius:7px}.wishlist-setup-tabs button.active{background:var(--gold);color:#171b20;border-color:var(--gold)}.wishlist-tab-count{display:inline-block;margin-left:5px;padding:1px 6px;border-radius:6px;background:#ffffff12;font-size:12px}.wishlist-setup-tabs button.active .wishlist-tab-count{background:#00000014}
@media(max-width:600px){.wishlist-setup-filters{flex-direction:column;align-items:stretch}.wishlist-setup-filters .wishlist-search{max-width:none}.wishlist-setup-tabs{align-self:flex-start}}

.party-modal .party-roster{max-height:min(82dvh,960px)}
.party-modal .party-roster .party-person{min-height:32px;padding:4px 8px}
.party-modal .party-roster-group{gap:5px}
.party-modal .party-roster-group h4{margin:5px 0 1px}
@media(max-width:780px){.party-modal .party-roster{max-height:min(82dvh,960px)}}

.party-modal .party-heading-actions .party-event-remove{display:grid;place-items:center;flex:none;width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border-radius:8px;color:#ff7777;border-color:#70444b;background:#1e2833;font-size:20px;line-height:1;font-weight:500}
.party-modal .party-heading-actions .party-event-remove:hover{background:#482630;color:#fff}
.party-modal .party-heading-actions .party-event-remove:focus-visible{outline:2px solid #ff7777;outline-offset:2px}

/* Compact party tools sit in the sticky event header, outside the scrollable roster. */
.party-modal>.toolbar{gap:16px}
.party-modal>.toolbar>div:first-child{min-width:0;flex:1}
.party-header-actions{display:flex;align-items:flex-start;gap:8px;flex:none}
.party-tools-menu{position:relative}
.party-tools-menu>summary{list-style:none;display:flex;align-items:center;gap:6px;min-height:38px;padding:0 13px;border:1px solid var(--border);border-radius:9px;background:#1e2935;color:var(--text);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.party-tools-menu>summary::-webkit-details-marker{display:none}
.party-tools-menu>summary:hover,.party-tools-menu[open]>summary{border-color:var(--gold)}
.party-tools-menu>summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.party-restore-count{padding:2px 6px;border-radius:6px;background:#ffffff15;font-size:11px}
.party-tools-popover{position:absolute;z-index:5;right:0;top:calc(100% + 8px);box-sizing:border-box;width:min(280px,calc(100vw - 44px));display:grid;gap:10px;padding:16px;border:1px solid var(--border);border-radius:11px;background:var(--panel);box-shadow:0 14px 36px #0009}
.party-tools-popover strong{font-size:14px}.party-tools-popover p{margin:0;color:var(--muted);font-size:12px}
.party-tools-popover label{display:grid;gap:5px;color:var(--muted);font-size:12px}
.party-tools-popover input{box-sizing:border-box;width:100%}.party-tools-popover button{width:100%}
.party-tools-popover.party-restore-list{max-height:min(55dvh,420px);overflow-y:auto}
@media(max-width:780px){.party-header-actions{width:100%;flex-wrap:wrap}.party-tools-menu>summary{min-height:34px}.party-tools-popover{left:0;right:auto}}

.party-card-tools{grid-column:1/-1;display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin-bottom:1px}
.party-card-tools .party-tools-menu>summary{background:#1c2732}
.party-card-tools .party-tools-popover{left:0;right:auto}
.party-card-tools .party-tools-menu>summary{background:var(--gold);border-color:var(--gold);color:#1a2028;font-weight:700}
.party-card-tools .party-tools-menu>summary:hover,.party-card-tools .party-tools-menu[open]>summary{background:#ffd887;border-color:#ffd887}
.party-card-tools .party-restore-count{background:#0000001b}

/* App voice destinations share the Server controls card styling. */
.voice-destination-card h2{margin-bottom:6px}
.voice-destination-intro{margin-bottom:18px;font-size:14px}
.voice-destination-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.voice-destination-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px;align-items:center;padding:18px 20px;border:1px solid var(--border);border-radius:12px;background:#10171f66}
.voice-destination-label h3{margin:0 0 4px;font-size:15px}
.voice-destination-label p{margin:0;font-size:12px}
.voice-destination-options{display:flex;align-items:stretch;gap:4px;padding:4px;background:var(--bg);border:1px solid var(--border);border-radius:10px}
.voice-destination-options button{min-width:70px;min-height:36px;padding:6px 12px;font-size:13px;border-color:transparent;background:transparent;border-radius:7px}
.voice-destination-options button.primary{background:var(--gold);color:#19170f}
.voice-destination-options button:not(:disabled):hover{border-color:var(--gold)}
.voice-destination-toggle{display:inline-flex;align-items:center;gap:10px;min-width:165px;justify-content:flex-start;padding:7px 12px;min-height:43px;border-color:#516275;background:#15202a}
.voice-destination-toggle.is-on{border-color:#ba995a;background:#ba995a19}
.voice-destination-toggle-track{display:inline-flex;align-items:center;width:38px;height:22px;padding:3px;border-radius:20px;background:#5a6977;flex:none;transition:background .2s}
.voice-destination-toggle-track span{width:16px;height:16px;border-radius:50%;background:#f5f7fa;box-shadow:0 1px 3px #0006;transition:transform .2s}
.voice-destination-toggle.is-on .voice-destination-toggle-track{background:var(--gold)}
.voice-destination-toggle.is-on .voice-destination-toggle-track span{transform:translateX(16px);background:#24211b}
.voice-destination-toggle-text{white-space:nowrap;font-size:13px;font-weight:650}
.voice-destination-current{grid-column:1/-1;font-size:12px;color:var(--muted)}
.voice-destination-selector{display:inline-flex;align-items:stretch;gap:3px;max-width:100%;padding:3px;border:1px solid #516275;border-radius:10px;background:#111b25}
.voice-destination-selector button{min-height:36px;min-width:66px;max-width:155px;padding:6px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.voice-destination-selector button.is-selected,.voice-destination-selector button.is-selected:disabled{border-color:#bb985a85;background:#8b713f70;color:#fff1ce;opacity:1}
.voice-destination-selector button:not(.is-selected):disabled{opacity:.55}
.voice-destination-selector button:not(:disabled):hover{border-color:var(--gold)}
.voice-destination-note{margin:15px 0 0;font-size:12px;color:var(--muted)}
@media(max-width:1000px){.voice-destination-grid{grid-template-columns:1fr}}
@media(max-width:480px){.voice-destination-row{grid-template-columns:1fr;padding:15px;gap:12px}.voice-destination-options{justify-self:start}.voice-destination-current{grid-column:auto}}

/* Event parties: compact cards with full, wrapping member names. */
dialog.party-dialog{width:min(98vw,1600px);max-width:1600px;padding:20px}
.party-modal .party-layout{grid-template-columns:240px minmax(0,1fr);gap:12px}
.party-modal .party-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.party-modal .party-card{padding:12px;border-radius:12px}
.party-modal .party-pool{padding:18px}
.party-modal .party-heading{gap:8px;margin-bottom:9px;align-items:flex-start}
.party-modal .party-heading>div:first-child{flex:1;min-width:0}
.party-modal .party-heading h3{font-size:14px;overflow-wrap:anywhere}
.party-modal .party-heading-actions{gap:4px}
.party-modal .party-heading-actions .pill{padding:3px 6px;font-size:11px;white-space:nowrap}
.party-modal .party-heading-actions .party-event-remove{width:26px;min-width:26px;height:26px;min-height:26px;font-size:18px}
.party-modal .party-people{gap:5px}
.party-modal .party-person{padding:6px 8px;gap:6px;border-radius:7px}
.party-modal .party-person>div{flex:1;min-width:0}
.party-modal .party-person strong,.party-modal .party-person small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.party-modal .party-person strong{font-size:14px;line-height:1.4}
.party-modal .party-person small{font-size:11px;line-height:1.4}
.party-modal .party-empty{padding:11px}
.party-modal .party-inactive{gap:5px;margin-top:9px;padding-top:8px}
.party-modal .party-inactive span{max-width:100%;padding:3px 5px;font-size:11px;overflow-wrap:anywhere}
.party-modal>.toolbar{top:-20px;margin:-20px -20px 14px;padding:16px 20px;gap:12px}
.party-modal>.toolbar h2{font-size:19px}
.party-modal .party-footer{bottom:-20px;margin:16px -20px -20px;padding:11px 20px;font-size:12px}
@media(max-width:1250px){.party-modal .party-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.party-modal .party-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.party-modal .party-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:780px){.party-modal .party-layout{grid-template-columns:1fr}.party-modal .party-pool{padding:14px}}
@media(max-width:600px){.party-modal .party-cards{grid-template-columns:1fr}dialog.party-dialog{padding:16px}.party-modal>.toolbar{top:-16px;margin:-16px -16px 12px;padding:14px 16px}.party-modal .party-footer{bottom:-16px;margin:14px -16px -16px;padding:10px 16px}}

/* Event cancellation and deletion stay together at the end of the tools row. */
.event-tools-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.event-tools-row>.controls{flex:1;align-items:center}
.event-tools-row>.event-end-actions{flex:0 0 auto;margin-left:auto;justify-content:flex-end}
.event-status.canceled{color:#ffb6a7;border-color:#86534f;background:#9b48421a}

/* Keep the destructive attendance action away from the search field. */
.attendance-totals-controls{width:100%}
.attendance-totals-controls .danger{margin-left:auto}

/* Pair the two Master control-channel selectors without stretching either one. */
.control-card-channel-grid.is-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.control-card-channel-grid .control-channel-field{min-width:0;margin-bottom:12px}
.control-card-channel-grid .controls{margin:0;align-items:end;flex-wrap:wrap}
.control-card-channel-grid .controls label{flex:1 1 230px;min-width:0}
.control-card-channel-grid .controls button{flex-shrink:0}
.control-card-channel-grid .control-channel-field>p{margin:6px 0 0}
@media(max-width:920px){.control-card-channel-grid.is-split{grid-template-columns:1fr}}

/* Compact public routing view. Keep bot names readable at desktop and phone widths. */
.relay-routing-board{padding:24px;background:linear-gradient(145deg,#202b35,#171f29 72%)}
.relay-routing-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.relay-routing-heading .eyebrow{margin-bottom:5px}
.relay-routing-heading h2{margin:0 0 5px;font-size:25px}
.relay-routing-heading p{margin:0;max-width:780px;font-size:13px}
.relay-routing-total{white-space:nowrap;color:var(--gold);border:1px solid #b696544e;background:#efc76e13;border-radius:20px;padding:5px 12px;font-size:12px;font-weight:700}
.relay-routing-flow{position:relative;display:grid;gap:44px}
.relay-routing-wires{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:visible}
.relay-routing-wire{fill:none;stroke:#52627880;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.relay-routing-wire.is-active{stroke:#c4a769;stroke-dasharray:5 9;animation:relay-flow-motion 2s linear infinite}
.relay-routing-wire.guild.is-active{stroke:#77b7ed}
.relay-routing-wire.ally.is-active{stroke:#bba0ef}
.relay-routing-flow>.relay-shotcaller-section,.relay-routing-flow>.relay-master-section,.relay-routing-flow>.relay-destinations-section{position:relative;z-index:1}
.relay-shotcaller-section,.relay-master-section,.relay-destinations-section{padding:0;border:0;background:transparent}
.relay-shotcaller-section h3,.relay-master-section h3,.relay-destinations-section>h3{font-size:11px;text-align:center;text-transform:uppercase;letter-spacing:.12em;color:var(--gold);margin:0 0 13px}
.relay-shotcaller-grid{display:grid;grid-template-columns:1fr;gap:12px;max-width:640px;margin:0 auto}
.relay-shotcaller-grid.is-split{grid-template-columns:repeat(2,minmax(0,1fr))}
.relay-shotcaller{display:flex;align-items:center;gap:9px;width:100%;min-width:0;min-height:62px;padding:8px 11px;border:1px solid #4d5e72;border-radius:11px;background:#202d39}
.relay-shotcaller.is-off{opacity:.7}
.relay-shotcaller-icon{color:var(--gold);font-size:20px;line-height:1}
.relay-shotcaller-copy{display:block;min-width:0;flex:1}
.relay-shotcaller-copy strong{display:block;font-size:13px}
.relay-shotcaller-copy small{display:block;font-size:11px}
.relay-shotcaller-target{color:var(--gold);font-size:10px;max-width:90px;line-height:1.2;text-align:center;border:1px solid #b696544c;border-radius:15px;padding:3px 7px}
.relay-master-grid{display:grid;grid-template-columns:1fr;gap:12px;max-width:640px;margin:0 auto}
.relay-master-grid.is-split{grid-template-columns:repeat(2,minmax(0,1fr))}
.relay-master-slot{display:flex;justify-content:center;min-width:0}
.relay-master-slot>.route-bot{width:100%}
.relay-master-slot .route-bot>details>summary{position:relative;display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:145px;padding:13px 26px;text-align:center}
.relay-master-slot .route-bot-icon{font-size:27px;line-height:1;color:var(--gold);text-shadow:0 0 15px #efc76e77}
.relay-master-slot .route-bot-title{flex:none;width:100%}
.relay-master-slot .route-bot-title small:first-child{font-size:10px;letter-spacing:.03em;color:var(--gold)}
.relay-master-slot .route-bot-title strong{font-size:15px;margin:3px 0}
.relay-master-slot .route-master-channel{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.relay-master-slot .route-master-input{display:block;margin-top:4px;color:#aebac7;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.relay-master-slot .route-master-input.is-hearing{color:#8ee2b3;text-shadow:0 0 8px #63dca858}
.relay-master-slot .route-bot-attendance{margin-top:4px}
.relay-master-slot .route-bot-expand{position:absolute;right:12px;bottom:9px}
.relay-master-slot.is-guild>.route-bot{background:linear-gradient(140deg,#322c35,#202c39);border-color:#8b708485}
.relay-master-slot.is-ally>.route-bot{background:linear-gradient(140deg,#2d2a3b,#202c39);border-color:#8273a080}
.relay-destinations-section>h3{margin-bottom:12px}
.relay-routing-lanes{display:grid;grid-template-columns:1fr;gap:18px}
.relay-routing-lanes.is-split{grid-template-columns:repeat(2,minmax(0,1fr))}
.relay-route-lane{position:relative;min-width:0;padding:17px;border:1px solid #3d4e5f;border-radius:15px;background:#111a24b8;transition:border-color .2s,background .2s,box-shadow .2s}
.relay-route-lane.is-drop-target{border-color:var(--gold);background:#efc76e11;box-shadow:inset 0 0 0 1px #efc76e8c,0 0 22px #efc76e20}
.relay-route-lane-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.relay-route-lane-head h3{margin:0;font-size:18px;overflow-wrap:anywhere}
.relay-stage-label{display:block;margin-bottom:4px;color:var(--gold)!important;font-size:10px!important;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
.relay-route-lane-head span{font-size:12px;color:var(--muted)}
.relay-route-state{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:4px 9px;border:1px solid var(--border);border-radius:16px;background:#25313d;font-size:11px;color:var(--muted)}
.relay-route-state:before{content:'';width:6px;height:6px;border-radius:50%;background:#73879a}
.relay-route-lane.is-live .relay-route-state{color:#a4e8ca;border-color:#4eaa804b;background:#2d745c25}
.relay-route-lane.is-live .relay-route-state:before{background:#71e7ae;box-shadow:0 0 8px #71e7ae;animation:relay-connection-pulse 2.8s ease-in-out infinite}
@keyframes relay-flow-motion{to{stroke-dashoffset:-28}}
@keyframes relay-connection-pulse{50%{opacity:.55}}
.relay-route-bots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:9px;position:relative}
.relay-route-empty{grid-column:1/-1;margin:0;padding:18px;text-align:center;border:1px dashed #506171;border-radius:10px}
.route-bot{position:relative;min-width:0;border:1px solid #364b5c;border-radius:11px;background:#1b2834;transition:border-color .2s,transform .2s,box-shadow .2s}
.route-bot.is-master{border-color:#b9975e80;background:#302d28}
.route-bot.is-dragging{opacity:.45}
.route-bot[draggable="true"]{cursor:grab}
.route-bot[draggable="true"]:active{cursor:grabbing}
.route-bot:hover,.route-bot:focus-within{border-color:#8ca7ba}
.route-bot.is-master:hover,.route-bot.is-master:focus-within{border-color:var(--gold)}
.route-bot>details>summary{list-style:none;display:flex;align-items:center;gap:9px;min-height:54px;padding:8px 11px;cursor:pointer}
.route-bot>details>summary::-webkit-details-marker{display:none}
.route-bot>details>summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:9px}
.route-bot-icon{flex:none;color:#75a9d4;font-size:12px;text-shadow:0 0 8px #5cbbef77}
.route-bot.is-master .route-bot-icon{color:var(--gold);text-shadow:0 0 8px #efc76e66}
.route-bot-title{flex:1;min-width:0}
.route-bot-title strong{display:block;font-size:13px;line-height:1.28;overflow-wrap:anywhere}
.route-bot-title small{display:block;font-size:11px;line-height:1.3;margin-top:2px}
.route-bot-attendance{flex:none;font-size:10px;color:#91a3b4;border:1px solid #425261;border-radius:12px;padding:2px 6px;white-space:nowrap}
.route-bot-attendance.is-tracking{color:#a5dfb8;border-color:#4e987047;background:#4e987015}
.route-bot-expand{color:var(--muted);font-size:18px;line-height:1;transition:transform .2s}
.route-bot>details[open] .route-bot-expand{transform:rotate(180deg)}
.route-bot-settings{display:grid;gap:11px;padding:0 12px 13px;border-top:1px solid #3c4b59}
.route-bot-settings>label:first-of-type{margin-top:12px}
.route-bot-settings p{margin:10px 0 0;font-size:12px}
.route-bot-settings .check{gap:8px}
.route-bot-settings .controls{align-items:center;margin-top:10px}
.route-bot-settings .controls button,.route-bot-settings .controls .button{min-height:36px;padding:6px 10px;font-size:12px}
.route-bot-settings small{font-size:11px}
.relay-routing-note{margin:16px 0 0;font-size:12px}
@media(max-width:980px){.relay-routing-wires{display:none}.relay-routing-flow{gap:18px}.relay-routing-lanes.is-split{grid-template-columns:1fr}.relay-master-grid,.relay-shotcaller-grid{max-width:640px}}
@media(max-width:620px){.relay-master-grid.is-split,.relay-shotcaller-grid.is-split{grid-template-columns:1fr}.relay-master-slot .route-bot>details>summary{min-height:104px}}
@media(max-width:620px){.relay-routing-board{padding:16px}.relay-routing-heading{align-items:start;flex-direction:column;gap:10px}.relay-route-lane{padding:12px}.relay-route-bots{grid-template-columns:1fr}.route-bot-attendance{font-size:10px}}
@media(prefers-reduced-motion:reduce){.relay-routing-wire.is-active,.relay-route-lane.is-live .relay-route-state:before{animation:none}.route-bot,.relay-route-lane,.route-bot-expand,.voice-destination-toggle-track,.voice-destination-toggle-track span{transition:none}}

.callback-status{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}.callback-status small{display:block;color:var(--muted);margin-top:5px}.route-callback-input{color:#70d6a2;font-size:11px}

/* Compact, persistent per-Master speaker readout. */
.master-voice-windows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;text-align:left}
.master-voice-windows:has(> :only-child){grid-template-columns:1fr}
.master-voice-window{min-width:0;padding:10px 12px;border:1px solid #52607166;border-radius:9px;background:#101a25aa}
.master-voice-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:8px}
.master-voice-heading strong{font-size:12px;color:#edcf91}
.master-voice-heading small{font-size:10px;color:#9db0c2;overflow-wrap:anywhere;line-height:1.4}
.master-voice-names{display:flex;flex-direction:column;gap:6px;min-height:52px;justify-content:flex-start}
.master-voice-person{display:flex;align-items:flex-start;gap:7px;color:#dbe7f0;font-size:12px;line-height:1.4;min-width:0}
.master-voice-person>span{overflow-wrap:anywhere;min-width:0}
.master-voice-person i{width:5px;height:5px;flex:0 0 5px;margin-top:6px;border-radius:50%;background:#708396}
.master-voice-person.is-speaking i{background:#edc970;box-shadow:0 0 6px #edc97066}
.is-replies .master-voice-heading strong{color:#89dcb5}
.is-replies .master-voice-person.is-speaking i{background:#75dbaa;box-shadow:0 0 6px #75dbaa66}
.master-voice-empty{font-size:11px;color:#8195a8;padding-top:2px}
@media(max-width:440px){.master-voice-windows{grid-template-columns:1fr}}

.route-bot.is-master>.master-voice-windows{margin:0 12px 12px}
