@import url('/static/font.css');
:root{font-family:Geist,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#242031;background:#f6f4fb;font-synthesis:none;--purple:#713cde;--muted:#777080;--line:#e9e4f0;--soft:#efe7ff;--green:#216e4a}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ab7bfa;outline-offset:3px}a{color:var(--purple)}h1,h2,h3,p{margin:0}h1{font-size:31px;line-height:1.1;letter-spacing:-1.3px}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:15px}small{font-size:12px}button{min-height:44px;border:0;border-radius:13px;padding:10px 14px;background:var(--soft);color:#5625a9;font-weight:600}button.primary,a.primary{background:var(--purple);color:white;box-shadow:0 4px 10px #713cde20}a.primary{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:13px;text-decoration:none;font-weight:650;padding:12px 16px}button.outline{border:1px solid var(--line);background:white;color:#393143}button.quiet{background:transparent;color:var(--muted)}button.danger{color:#a92e3f;background:#fff0f1}input,select,textarea{display:block;width:100%;min-height:48px;border:1px solid #ded7e9;border-radius:12px;background:white;padding:11px 12px;font-size:16px;color:inherit}textarea{min-height:88px;resize:vertical}label{font-size:13px;font-weight:600;display:block}label>input,label>select,label>textarea{margin-top:6px}input[type=checkbox]{width:21px;min-height:21px;accent-color:var(--purple);flex-shrink:0}label.check{display:flex;align-items:flex-start;gap:10px;line-height:1.5;font-weight:400;min-height:44px}label.check input{margin:1px 0 0}.shell{max-width:1060px;margin:auto}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;padding:10px 24px;border-bottom:1px solid var(--line);background:#ffffffc9}.brand{display:flex;align-items:center;gap:9px;color:#211b2d;text-decoration:none;font-weight:800;font-size:22px;letter-spacing:1px}.brand img{width:35px;height:35px}.top-actions{display:flex;gap:6px;align-items:center}.top-actions button{font-size:12px;min-height:40px;padding:8px 10px}.preview-banner{background:#332148;color:#fff;display:flex;justify-content:center;gap:8px;align-items:center;padding:7px 12px;font-size:12px;min-height:35px}.preview-banner a{color:#eadcff}.desktop-layout{display:grid;grid-template-columns:180px 1fr;gap:30px;padding:24px}.nav{display:flex;flex-direction:column;gap:7px;align-self:start;position:sticky;top:20px}.nav a{text-decoration:none;color:var(--muted);font-size:14px;font-weight:600;display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:48px;border-radius:13px}.nav a.active{background:var(--soft);color:var(--purple)}.icon{display:inline-flex;width:21px;height:21px;align-items:center;justify-content:center}.icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.page{max-width:680px;width:100%;min-width:0;padding-bottom:25px}.stack{display:grid;gap:14px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px}.card.flush{padding:0;overflow:hidden}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.muted{color:var(--muted);font-size:13px;line-height:1.55}.fine{font-size:11px;color:var(--muted);line-height:1.5}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 10px}.section-title a{font-size:13px;text-decoration:none}.event-card{position:relative;overflow:hidden;background:linear-gradient(130deg,#fff 40%,#f0e7ff)}.event-card .date{display:inline-flex;align-items:center;gap:7px;background:white;border:1px solid #e9dcfb;color:#6034a8;padding:7px 10px;border-radius:9px;font-size:12px;font-weight:650;margin-bottom:14px}.event-card h1{max-width:80%;margin-bottom:7px}.event-card .event-mark{position:absolute;right:22px;top:22px;width:68px;height:68px;opacity:.11;transform:rotate(-15deg)}.event-meta{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:13px;color:#665872}.event-meta span{display:flex;align-items:center;gap:6px}.details{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px 0;border-top:1px solid var(--line);margin-top:18px}.details b{display:block;font-size:20px;letter-spacing:-.5px;margin:4px 0}.wide{width:100%}.note{padding:12px 14px;border-radius:12px;background:#f4effc;font-size:12px;line-height:1.55;color:#614887}.note.warn{background:#fff6e6;color:#91601b}.note.success{background:#eaf7f0;color:var(--green)}.avatars{display:flex;padding-left:0}.avatars .avatar{margin-left:-9px;border:3px solid white}.avatars .avatar:first-child{margin-left:0}.avatar{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#eee6fa;color:#6b43a0;font-weight:700;font-size:13px}.avatar.c1{background:#e2eee9;color:#3d7860}.avatar.c2{background:#fbe9dc;color:#a16540}.avatar.c3{background:#e2ecfc;color:#4a68a1}.avatar.c4{background:#f3e1eb;color:#a14e7c}.pill{border-radius:20px;padding:4px 8px;display:inline-block;font-size:10px;font-weight:650;background:var(--soft);color:var(--purple);white-space:nowrap}.pill.green{background:#eaf6ef;color:var(--green)}.player-row{padding:12px 15px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:11px}.player-row:last-child{border-bottom:0}.player-row strong{font-size:14px;display:block;overflow-wrap:anywhere}.player-row button{font-size:11px;padding:8px 10px}.player-row .muted{font-size:11px}.empty{text-align:center;padding:25px 15px;display:grid;justify-items:center;gap:9px}.empty p{max-width:300px}.search{position:relative}.search input{padding-left:40px}.search .icon{position:absolute;top:14px;left:13px;color:var(--muted)}.filters{display:flex;gap:7px;overflow:auto;scrollbar-width:none}.filters button{border-radius:20px;font-size:12px;background:white;color:var(--muted);border:1px solid var(--line);white-space:nowrap;min-height:40px}.filters button.active{background:var(--purple);color:white;border-color:var(--purple)}.field{display:grid;gap:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.inline-actions>*{flex:1}.rank-list{list-style:none;padding:0;margin:0;display:grid;gap:9px}.rank-tile{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);border-radius:15px;padding:10px 12px;min-height:67px;position:relative}.rank-num{width:22px;color:#8a769e;font-size:14px;font-weight:700;text-align:center}.rank-tile .avatar{width:38px;height:38px}.rank-tile strong{font-size:14px}.rank-handle{touch-action:none;background:transparent;color:#9b8ba9;padding:8px;min-width:44px;cursor:grab;font-size:23px}.rank-tile.dragging{opacity:.25;border:2px dashed var(--purple)}.rank-ghost{position:fixed!important;z-index:1000;pointer-events:none;box-shadow:0 12px 35px #3d206545;transform:scale(1.025);background:#fff;opacity:.98!important}.rank-tile.move-selected{outline:2px solid var(--purple)}.save-bar{position:sticky;bottom:12px;display:flex;gap:10px;background:#f6f4fbec;padding:10px 0;z-index:3;align-items:center}.save-bar .primary{flex:1}.save-bar small{min-width:60px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.stat{padding:14px 9px;text-align:center;background:white;border:1px solid var(--line);border-radius:14px}.stat b{font-size:24px;display:block;color:#503276}.stat small{font-size:10px;color:var(--muted)}.admin-tabs{margin-bottom:14px}.data-row{padding:12px 0;border-bottom:1px solid var(--line)}.data-row:last-child{border:0}.data-row strong{font-size:14px}.data-row .inline-actions{margin-top:8px}.data-row button{font-size:12px}.data-row select{font-size:14px}.admin-note{border-left:3px solid var(--purple);padding-left:10px}.chat-list{display:grid;gap:8px}.room{display:flex;gap:12px;align-items:center;text-align:left;width:100%;background:white;border:1px solid var(--line);padding:14px;border-radius:15px;color:inherit}.room strong{font-size:14px}.room small{display:block;font-weight:400;color:var(--muted);margin-top:3px}.room-icon{background:var(--soft);border-radius:13px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--purple)}.messages{display:flex;flex-direction:column;gap:12px;min-height:180px;max-height:55dvh;overflow:auto;padding:10px 0}.message{max-width:88%;background:white;border:1px solid var(--line);border-radius:15px 15px 15px 3px;padding:11px 13px;align-self:flex-start;font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.message.mine{background:var(--soft);align-self:flex-end;border-radius:15px 15px 3px 15px;border-color:#e3d3fc}.message b{font-size:11px;color:var(--purple);display:block}.message time{display:block;font-size:10px;color:var(--muted);margin-top:4px}.composer{display:flex;gap:8px;position:sticky;bottom:12px;background:#f6f4fb;padding:10px 0}.composer input{flex:1;min-width:0}.composer button{min-width:48px}.progress-track{height:6px;border-radius:10px;background:var(--soft);overflow:hidden;margin-top:12px}.progress-track span{display:block;background:var(--purple);height:100%;border-radius:10px}.team{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.team:last-child{border:0}.team-number{font-size:12px;background:var(--soft);color:var(--purple);border-radius:10px;padding:10px}.team strong{font-size:13px}.skip{position:fixed;left:10px;top:-50px;z-index:100}.skip:focus{top:10px;background:white;padding:10px}.loading{padding:40px;text-align:center}#toast{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;z-index:2000;background:#30243f;color:white;border-radius:13px;font-size:13px;padding:13px 18px;box-shadow:0 6px 24px #0002;display:none}#toast.show{display:block}dialog{border:1px solid var(--line);border-radius:22px;padding:22px;max-width:440px;width:calc(100% - 30px);max-height:85dvh;overflow:auto;color:inherit}dialog::backdrop{background:#25143770;backdrop-filter:blur(3px)}dialog h2{margin-bottom:14px}dialog .close{float:right;min-height:32px;background:transparent;padding:4px}.install-hint{padding:10px 0;color:var(--muted);font-size:11px;text-align:center}.status-dot{width:6px;height:6px;border-radius:50%;background:#5baf86;display:inline-block;margin-right:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.topbar{height:58px;padding:8px 16px;padding-top:max(8px,env(safe-area-inset-top))}.brand{font-size:20px}.brand img{width:29px;height:29px}.desktop-layout{display:block;padding:16px 16px calc(92px + env(safe-area-inset-bottom))}.page{max-width:none}.nav{position:fixed;bottom:0;left:0;right:0;top:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#ffffffed;backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));z-index:10}.nav a{flex-direction:column;justify-content:center;gap:4px;padding:6px 4px;min-height:48px;font-size:10px;border-radius:10px}.nav a.active{background:transparent;color:var(--purple)}.nav a.active .icon{filter:drop-shadow(0 2px 4px #713cde30)}.card{padding:16px;border-radius:17px}.card.flush{padding:0}.stack{gap:12px}.event-card h1{font-size:32px}.event-card .date{margin-bottom:13px}.event-meta{margin-top:15px;gap:12px}.details{margin-top:15px;padding:13px 0}.save-bar,.composer{bottom:calc(67px + env(safe-area-inset-bottom))}.form-grid{gap:10px}.form-grid .full{grid-column:1/-1}.stats{gap:6px}.stat{padding:12px 5px}.stat b{font-size:23px}.player-row{padding:11px 13px}.rank-tile{gap:8px;padding:9px}.preview-banner{font-size:11px}.top-actions button{font-size:11px;padding:7px 9px}.messages{max-height:calc(100dvh - 300px)}.page.chat-open{padding-bottom:0}body.keyboard-open .nav{display:none}body.keyboard-open .composer{bottom:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.avatar{object-fit:cover}.profile-photo>.avatar{width:72px;height:72px;font-size:22px}.photo-upload input{max-width:100%;font-size:16px}.preference-field{border:0;padding:0;margin:0;min-width:0}.preference-field legend{font-size:14px;font-weight:600;margin-bottom:7px}.preference-options{display:flex;flex-wrap:wrap;gap:7px}.preference-options label{position:relative}.preference-options input{position:absolute;opacity:0;width:1px;height:1px}.preference-options span{display:flex;align-items:center;min-height:44px;padding:8px 13px;border:1px solid var(--line);border-radius:12px;font-size:14px}.preference-options input:checked+span{background:var(--soft);border-color:var(--purple);color:var(--purple)}.preference-options input:focus-visible+span{outline:2px solid var(--purple);outline-offset:2px}

/* Shared light-theme tokens and compact geometry from kaos-flow-demo. */
:root{color:#1d1929;background:#f5f5fa;--purple:#6337d7;--muted:#635c73;--line:#35305220;--soft:#f0edf8;--green:#16734c}
body{background:radial-gradient(ellipse at 10% 0%,#bba5f529,transparent 48%),linear-gradient(160deg,#eeebfa,#f5f5fa 44%);min-height:100dvh}
.card{background:linear-gradient(155deg,#fff,#fdfcff);box-shadow:0 3px 12px #35236509,0 1px 2px #35236506;padding:14px;border-radius:14px}
button.primary,a.primary{background:linear-gradient(125deg,#7044e5,#5327c6);box-shadow:inset 0 1px 0 #ffffff42,0 4px 10px #5c34c32b}
h2{font-size:16px;line-height:1.3}.stack{gap:12px}.event-card h1{font-size:24px;line-height:1.2;letter-spacing:-.5px}.event-card{display:grid;gap:12px}.event-card .details{margin:0;padding:12px 0 0}.event-card .details b{font-size:20px}.event-time{font-size:14px;font-weight:600}.section-title{margin-bottom:10px}.event-card .note{margin:0}
.topbar{position:relative;display:grid;grid-template-columns:1fr auto 1fr;height:76px;background:#fcfcff;border-bottom:1px solid var(--line);padding:8px 16px}.brand{grid-column:2;display:flex;flex-direction:column;gap:1px;text-decoration:none;justify-self:center;font-size:22px;line-height:1.1;letter-spacing:-.5px}.brand>span{display:flex;align-items:center;gap:6px}.brand img{width:28px;height:28px}.brand small{font-size:9px;font-weight:600;letter-spacing:2px;color:var(--muted)}.top-actions{display:contents}.top-actions [data-action=account],.top-actions [data-action=signin]{grid-column:3;grid-row:1;justify-self:end;max-width:80px;padding:8px;font-size:12px}.top-actions [data-action=manager],.top-actions [data-action=demo-role]{grid-column:1;grid-row:1;justify-self:start;font-size:12px;padding:8px}.top-actions:has([data-action=manager]) [data-action=demo-role]{display:none}
@media(max-width:700px){.desktop-layout{padding:14px 14px calc(92px + env(safe-area-inset-bottom))}.topbar{height:calc(76px + env(safe-area-inset-top));padding-top:calc(8px + env(safe-area-inset-top))}.card{padding:14px;border-radius:14px}.card.flush{padding:0}.event-card h1{font-size:24px}.event-meta{margin:0}.save-bar,.composer{background:#f5f5fa}}

.top-actions [data-action=menu]{grid-column:1;grid-row:1;justify-self:start;min-width:44px;min-height:44px;padding:10px;color:var(--purple)}dialog.menu-drawer{margin:0;max-height:100dvh;height:100dvh;max-width:340px;width:85vw;border-radius:0 18px 18px 0;padding:24px 18px;padding-top:max(24px,env(safe-area-inset-top));background:#fcfcff}.menu-links{display:grid;gap:6px;margin:20px 0}.menu-links button,.menu-links a{text-align:left;min-height:44px;padding:12px;font-size:15px;border-radius:12px;text-decoration:none}.menu-links .menu-active{background:var(--soft);color:var(--purple)}

.event-card h1{max-width:none;margin-bottom:4px}.event-card>.row>div{min-width:0;flex:1}

/* Exact MVP Brand composition: KA + inline spiral O + S (no app-icon tile). */
.brand>.kaos-wordmark{display:inline-flex;align-items:center;gap:0;font-size:25px;font-weight:700;letter-spacing:-1.5px;line-height:1}.brand .spiral-mark{width:1em;height:1em;color:#6235c5;margin:0 1px;filter:drop-shadow(0 0 3px #8a5cf533)}.brand small{font-family:'Aptos Display','Segoe UI',sans-serif;font-size:9px;font-weight:650;letter-spacing:1.2px;line-height:10px;color:#6235c5}

.drawer-profile{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 0;background:transparent;color:inherit;border-bottom:1px solid var(--line);border-radius:0}.drawer-profile .avatar{width:38px;height:38px}.drawer-profile strong,.drawer-profile small{display:block}.drawer-profile strong{font-size:15px}.drawer-profile small{font-size:12px;color:var(--muted);margin-top:4px}

.announcement-link{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit}.announcement-link img{width:64px;height:96px;object-fit:contain;border-radius:6px;background:#090805;flex-shrink:0}.announcement-link strong,.announcement-link small,.announcement-link b{display:block}.announcement-link small{line-height:1.6;color:var(--muted);margin:5px 0}.announcement-link b{font-size:12px;color:var(--purple)}.announcement-card summary{font-size:12px;cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--purple)}.announcement-card details .field{font-size:13px;line-height:1.6}

.schedule-row{display:grid;gap:4px;font-size:13px;line-height:1.5}.schedule-row a{font-size:12px;overflow-wrap:anywhere}.division-row{font-size:13px;line-height:1.6;border-bottom:1px solid var(--line);padding-bottom:10px}.division-row:last-of-type{border:0;padding-bottom:0}.division-row .prize{color:var(--purple);font-weight:700}

html{scroll-padding-bottom:110px}button,input,select,textarea{scroll-margin-block:100px}.form-grid>label{min-width:0}.form-grid input{min-width:0}

/* Compact signup sheet: readable controls, with action outside the scroll area. */
dialog.signup-dialog{padding:14px;width:calc(100% - 20px);max-height:calc(100dvh - 20px);overflow:hidden}
dialog.signup-dialog[open]{display:flex;flex-direction:column}
.signup-dialog h2{margin:0 44px 10px 0;min-height:34px;display:flex;align-items:center;flex-shrink:0}
.signup-dialog .close{position:absolute;right:6px;top:6px;min-width:44px;min-height:44px}
#reservation-form{display:flex;flex-direction:column;min-height:0}
.signup-body{display:grid;gap:7px;overflow:auto;min-height:0;overscroll-behavior:contain;scroll-padding:8px}
.signup-body .note{padding:8px 10px;line-height:1.4}
.signup-email{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.signup-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.signup-body label{min-width:0}.signup-body label>input,.signup-body label>select{margin-top:3px;min-height:44px;padding:8px 10px}
.signup-body label.check{font-size:12px;line-height:1.4;align-items:center;min-height:44px}
.signup-body label.check input{min-height:21px;margin:0}
.signup-body .fine{line-height:1.35}
.signup-footer{flex-shrink:0;padding-top:10px;padding-bottom:env(safe-area-inset-bottom);background:white}
.signup-body input,.signup-body select,.signup-footer button{scroll-margin-block:8px}

.signup-status{display:flex;align-items:center;gap:10px}.signup-status>.note{flex:1;min-width:0}.cancel-signup{flex:0 0 82px;min-height:64px;font-size:11px;line-height:1.3;padding:7px 6px;text-align:center;border-color:#c9bddb!important;box-shadow:0 1px 3px #24133410}

/* Sponsor navigation wraps instead of requiring horizontal swipes. */
.filters.admin-tabs{flex-wrap:wrap;overflow:visible;gap:6px;margin-bottom:8px}
.filters.admin-tabs button{min-height:44px;max-width:100%;white-space:normal;padding:8px 12px;font-size:12px}

.registration-contact{display:flex;align-items:center;gap:10px;width:100%;padding:6px 0;background:transparent;color:inherit;text-align:left;font-weight:400}.registration-contact .grow>span{display:block;overflow-wrap:anywhere}.registration-contact .grow>.row{display:flex;flex-wrap:wrap;gap:4px}.registration-contact:hover{background:#f8f5fd}.contact-detail>.card>.row>.avatar{width:64px;height:64px;font-size:20px}.contact-fields{margin:12px 0 0;display:grid;gap:10px}.contact-fields dt{font-size:11px;color:var(--muted)}.contact-fields dd{margin:3px 0 0;font-size:14px;overflow-wrap:anywhere}.audit-search{display:flex;gap:6px;margin:10px 0}.audit-search input{min-width:0;flex:1}.audit-pagination{margin-top:12px;gap:6px}.audit-pagination button{font-size:12px;padding:8px 10px}

/* Viewport-based phone density; preserve zoom, 16px inputs and 44px actions. */
@media(max-width:700px){
 :root{--phone-gap:clamp(8px,2.2vw,10px);--phone-pad:clamp(10px,3vw,13px)}
 .desktop-layout{padding:var(--phone-pad) max(var(--phone-pad),env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(var(--phone-pad),env(safe-area-inset-left))}
 .stack,.field{gap:var(--phone-gap)}
 .card{padding:var(--phone-pad);border-radius:13px}.card.flush{padding:0}
 .event-card{gap:var(--phone-gap)}.event-card h1{font-size:clamp(21px,5.6vw,24px)}
 .section-title{margin:2px 0 7px}.event-card .details{padding-top:8px}
 .note{padding:9px 10px;line-height:1.45}
 .data-row{padding:9px 0}.player-row{padding:9px 10px}
 .stat{padding:9px 4px}.stat b{font-size:21px}
 .division-row{line-height:1.45;padding-bottom:8px}.schedule-row{gap:3px;line-height:1.4}
 .contact-fields{gap:8px;margin-top:10px}
 .card .form-grid{gap:8px}.registration-contact{padding:3px 0}
}

@media(max-width:700px){
 .nav{bottom:var(--visible-bottom,0px)}
 .save-bar,.composer{bottom:calc(67px + env(safe-area-inset-bottom) + var(--visible-bottom,0px))}
 .desktop-layout{padding-bottom:calc(84px + env(safe-area-inset-bottom) + var(--visible-bottom,0px))}
 #toast{bottom:calc(95px + env(safe-area-inset-bottom) + var(--visible-bottom,0px))}
 dialog.signup-dialog{max-height:min(calc(100dvh - 20px),calc(var(--visible-height,100dvh) - 20px))}
 body.keyboard-open .composer{bottom:0}
}

.wearables-menu{display:flex;align-items:center;gap:12px;background:transparent;color:inherit;text-align:left}.wearables-menu>span:nth-child(2){flex:1}.wearable-devices{display:grid;gap:8px}.wearable-device{display:flex;align-items:center;gap:10px;padding:6px 0}.wearable-device>img{object-fit:contain;padding:4px;border:1px solid var(--line);border-radius:12px;background:white}.wearable-device strong,.wearable-device small{display:block}.wearable-device strong{font-size:14px}.wearable-device small{font-size:11px;color:var(--muted);margin-top:3px}.wearable-device button{font-size:12px;padding:8px 10px}.wearable-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wearable-metric-sharing{border:1px solid var(--line);border-radius:12px;overflow:hidden}.wearable-metric-sharing[data-selected=true]{border-color:var(--purple);background:var(--soft)}.wearable-metric{display:block;width:100%;text-align:left;background:transparent;padding:10px;color:inherit;min-height:64px}.wearable-metric span,.wearable-metric b{display:block}.wearable-metric span{font-size:11px;font-weight:400;color:var(--muted)}.wearable-metric b{font-size:18px;margin-top:4px}.wearable-public-toggle{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 10px;font-size:11px;font-weight:400}.wearable-public-toggle input{margin:0}.wearable-chart{padding-top:8px;display:grid;gap:8px;font-size:13px}.wearable-chart svg{width:100%;height:auto}.wearable-days{display:flex;flex-wrap:wrap;gap:4px}.wearable-days button{min-width:44px;min-height:44px;padding:6px;font-size:11px}.wearable-days button[aria-pressed=true]{background:var(--soft);border-color:var(--purple)}.public-biometrics{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0;color:var(--purple);font-size:11px}.public-biometrics>span{padding:3px 5px;background:var(--soft);border-radius:6px}.public-biometrics small{font-size:10px}

.reference-search{margin-top:10px}.reference-results{display:grid;gap:6px;margin-top:6px}.reference-choice{text-align:left}.reference-choice strong,.reference-choice small{display:block}.reference-choice small{font-size:11px;font-weight:400;margin-top:3px}

.pro-badge{background:#eee5ff;color:#5620ad;font-weight:750;margin:3px 0}.pro-details{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5;margin:8px 0}

/* Compact counts opposite the hamburger; equal grid columns keep KAOS centered. */
.chat-indicators{grid-column:3;grid-row:1;justify-self:end;display:flex;gap:0;align-items:center}
button.unread-control{position:relative;width:44px;min-width:44px;min-height:44px;height:44px;padding:0;display:grid;place-items:center;background:transparent}
.unread-circle{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ece8f2;color:#706778;font-size:11px;font-weight:700;border:1px solid #ded6e8}
.unread-circle.has-unread,.room-unread{background:var(--purple);color:white;border-color:var(--purple)}
.unread-symbol{position:absolute;right:0;bottom:1px;width:14px;height:14px;background:#fcfcff;border-radius:50%;color:var(--purple)}
.unread-symbol svg,.unread-symbol .icon{width:13px;height:13px;display:block;fill:none;stroke:currentColor;stroke-width:1.8}
.room-unread{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;font-size:11px;margin-left:8px;padding:0 4px}.room-unread[hidden]{display:none}

.sharing-summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-size:14px;font-weight:600}.sharing-summary:focus-visible{outline:3px solid #ab7bfa;outline-offset:3px}#wearable-sharing-panel[open] .sharing-summary{margin-bottom:10px}

/* Keep mobile controls inside the viewport, not a horizontal carousel. */
.filters{flex-wrap:wrap;overflow:visible;min-width:0}.filters button{min-height:44px;max-width:100%;white-space:normal}
.people-header-actions{display:flex;gap:5px;align-items:center;flex-shrink:0}.people-header-actions>button{width:44px;padding:0;min-height:44px}.photo-prompt{position:relative;background:transparent}.photo-plus{position:absolute;right:-1px;bottom:0;width:17px;height:17px;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:var(--purple);color:white;font-size:13px}
.phone-verify-row{display:flex;align-items:center;gap:8px;margin-top:6px}.phone-verify-row input{flex:1;min-width:0}.phone-verify-row button{flex-shrink:0}.verified-check{color:var(--green);font-size:24px;min-width:44px;text-align:center}.mobile-status{border-radius:20px;font-size:11px;min-height:44px;padding:8px 12px;text-decoration:underline;text-underline-offset:3px}

.player-summary{display:flex;align-items:center;gap:11px;flex:1;min-width:0;text-decoration:none;color:inherit;min-height:44px}.dossier-row{cursor:pointer}.preference-icons{display:inline-flex;gap:7px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-left:5px;vertical-align:middle}.preference-icons>span{display:inline-flex;align-items:center;gap:2px}.preference-icons svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7}.dossier-back{display:flex;align-items:center;gap:8px;min-height:44px;text-decoration:none;font-size:13px}.dossier-back .icon{transform:rotate(180deg)}

.own-photo-row>.photo-prompt{width:44px;height:44px;min-width:44px;padding:0;flex-shrink:0}.photo-camera{position:absolute;right:-2px;bottom:-1px;display:grid;place-items:center;width:19px;height:19px;border:2px solid white;border-radius:50%;background:var(--purple);color:white}.photo-camera svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8}.own-player-name{color:inherit;text-decoration:none;display:flex;align-items:center;min-height:44px}.player-row .photo-nudge-copy{display:block;padding:4px 0;min-height:44px;background:transparent;font-size:11px;font-weight:500;text-align:left;line-height:1.35;color:var(--purple)}.photo-nudge-dismiss{flex-shrink:0;min-width:44px;min-height:44px;padding:0!important}.own-photo-row{gap:9px}

.self-row{box-shadow:inset 0 0 0 2px #9565e7;background:#faf7ff;border-radius:12px}.roster-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px}.roster-pagination button{font-size:12px;min-height:44px}.roster-pagination span{text-align:center}.player-row .preference-nudge{font-size:11px;min-height:44px;padding:5px 0;background:transparent;text-align:left;color:var(--purple);max-width:110px}.self-row{scroll-margin-block:100px}

/* One missing-profile action fits between the 44px menu target and centered wordmark. */
.top-actions .header-nudge{grid-column:1;grid-row:1;justify-self:start;margin-left:44px;width:calc(100% - 46px);min-width:44px;max-width:76px;min-height:44px;padding:3px 1px;font-size:10px;line-height:1.15;font-weight:600;background:transparent;color:var(--purple);border-radius:8px;overflow-wrap:anywhere}
@media(max-width:350px){.topbar{padding-left:8px;padding-right:8px}.top-actions .header-nudge{font-size:9px}}

.roster-search-row{display:flex;align-items:center;gap:8px;min-width:0}.roster-search-row .search{flex:1;min-width:0}.roster-search-row input{min-width:0}.roster-search-row>button{flex-shrink:0;padding:10px}.ranking-explanation{display:grid;gap:8px}.ranking-explanation summary{min-height:44px;cursor:pointer;padding:12px 0}.ranking-explanation details p+p{margin-top:8px}

.rank-movement{display:inline-block;font-size:11px;font-weight:700;margin:2px 6px;color:var(--muted)}.rank-movement.up{color:#216e4a}.rank-movement.down{color:#a92e3f}.ranking-result{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:13px}.ranking-result p{margin-top:4px}

.dossier-portrait>.avatar{width:120px;height:120px;min-width:120px;flex:0 0 120px;object-fit:cover;border-radius:50%;font-size:36px}.dossier-portrait .grow{min-width:0}.dossier-portrait h2{overflow-wrap:anywhere}

.photo-crop-dialog{max-width:360px;padding:16px}.photo-crop-preview{display:block;width:min(100%,240px);height:auto;aspect-ratio:1;margin:12px auto;border-radius:50%;touch-action:none;cursor:grab}.photo-crop-dialog input[type=range]{padding:0;min-height:44px;accent-color:var(--purple)}.photo-crop-dialog .row{margin-top:12px;gap:6px}.photo-crop-dialog .row button{flex:1;padding:10px 6px}.photo-crop-dialog summary{min-height:44px;padding:12px 0;font-size:13px}

.ranking-evidence-row{padding:9px 0;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;font-size:13px}.ranking-evidence-row strong{overflow-wrap:anywhere}.ranking-evidence-row span{color:var(--muted)}

.calendar-download{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--purple);text-decoration:none}

.ranking-explanation{font-size:14px;line-height:1.55}.ranking-explanation summary{font-size:16px;font-weight:600}.ranking-explanation details p+p{margin-top:10px}

.roster-filter-pills{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px!important;min-width:0}.roster-filter-pills button{min-width:0;min-height:44px;padding:8px 3px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-chart-wrap{position:relative}.ranking-time-chart{display:block;width:100%;height:auto}.ranking-event-feed{position:absolute;top:0;right:0;max-width:88%;font-size:10px;line-height:1.35;color:var(--muted);background:#ffffffdd;pointer-events:none}.ranking-event-feed>div+div{margin-top:3px}.ranking-event-feed span{display:block;color:var(--purple)}.ranking-chart-legend{display:flex;flex-wrap:wrap;gap:2px 12px}.ranking-chart-legend a{display:flex;align-items:center;gap:5px;min-height:44px;font-size:11px;text-decoration:none}.ranking-chart-legend i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.live-ranking-card details summary{min-height:44px;padding:12px 0}

.profile-photo-actions{display:flex;gap:6px;flex-wrap:wrap}.profile-photo-actions button{flex:1;min-height:44px;padding:9px 8px;font-size:13px}

.phone-verify-row{align-items:center;gap:5px}.phone-verify-row input{flex:1;min-width:0;padding:10px 7px}.phone-verify-row button{padding:9px 7px;flex-shrink:0;min-height:44px;font-size:12px}.mobile-inline-status{font-size:10px;font-weight:600;color:#805411;background:#fff3d4;border-radius:8px;padding:5px 4px;white-space:nowrap}.phone-verify-row .verified-check{flex-shrink:0}

.fast-three-launch{justify-self:start;background:linear-gradient(120deg,#713cde,#a46bf5);color:white;border-radius:14px;padding:10px 18px;min-height:44px;font-size:17px;font-style:italic;font-weight:800;box-shadow:0 3px 10px #713cde25}.fast-three-launch.compact{background:transparent;color:var(--purple);box-shadow:none;font-size:12px;padding:6px 0}.fast-three-dialog{max-width:400px}.fast-three-panel{display:grid;gap:12px}.fast-three-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:20px}.fast-three-banner h2{font-style:italic;color:var(--purple)}.fast-progress{display:flex;gap:6px}.fast-progress i{height:5px;flex:1;background:var(--line);border-radius:5px}.fast-progress .complete{background:var(--purple)}.fast-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fast-pick{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0;min-height:180px;border:1px solid var(--line);background:var(--soft);border-radius:18px;padding:15px 8px}.fast-pick strong{overflow-wrap:anywhere}.fast-pick .avatar{height:88px;width:88px;min-width:88px;font-size:28px}.fast-three-panel summary{padding:10px 0;min-height:44px}

button.action-count-control{position:relative;width:44px;min-width:44px;min-height:44px;height:44px;padding:0;display:grid;place-items:center;background:transparent}.action-count-circle{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;border:1px solid #b89ce0;background:#f4edf9;color:var(--purple);font-size:11px;font-weight:700}@media(max-width:380px){button.action-count-control{position:absolute;left:52px;top:50%;transform:translateY(-50%)}}

.ranking-event-feed{left:0;right:auto;max-width:92%;text-align:left}.ranking-event-feed>div{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranking-event-feed span{overflow:hidden;text-overflow:ellipsis}.ranking-chart-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;border-top:1px solid var(--line);padding-top:5px}.ranking-chart-legend a{display:grid;grid-template-columns:23px 8px minmax(0,1fr);align-items:center;gap:6px;min-width:0;min-height:44px;font-size:12px;border-bottom:1px solid var(--line)}.chart-legend-rank{font-variant-numeric:tabular-nums;font-weight:700;color:var(--muted)}.chart-legend-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-new{display:block;color:var(--purple);font-size:10px;font-weight:500}

.roster-search-row{gap:6px}.roster-search-row>.fast-three-launch{flex:0 0 auto;min-height:44px;padding:10px 9px;font-size:14px;white-space:nowrap}.roster-search-row>.fast-three-launch.compact{font-size:12px;padding:10px 7px}.roster-search-row .search{overflow:hidden}.roster-search-row .search input{width:100%;font-size:16px}
@media(max-width:350px){.roster-search-row{gap:4px}.roster-search-row>button{padding:10px 7px}.roster-search-row .search{gap:4px}.roster-search-row .search>.icon{display:none}}

/* Compact, noninteractive overlay legend: no extra card or tall link rows. */
.ranking-chart-wrap>.ranking-chart-legend{position:absolute;left:30px;top:3px;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);gap:2px;max-width:72%;margin:0;padding:0;border:0;list-style:none;background:transparent;pointer-events:none}.ranking-chart-legend li{display:grid;grid-template-columns:7px minmax(0,1fr) 23px;align-items:center;gap:6px;min-width:0;font-size:12px;line-height:17px;font-weight:500;text-shadow:0 1px 2px #fff,0 -1px 2px #fff}.ranking-chart-legend li i{width:6px;height:6px;border-radius:50%}.ranking-chart-legend .chart-legend-rank{font-size:10px;font-weight:500;text-align:right;color:var(--muted)}.ranking-chart-wrap>.ranking-event-feed{top:auto;bottom:19px;left:30px;right:auto;max-width:86%;font-size:10px;line-height:13px;background:transparent;text-shadow:0 1px 2px #fff,0 -1px 2px #fff}.chart-spacing-toggle{min-height:44px;padding:6px 4px;background:transparent;color:var(--muted);font-size:11px;white-space:nowrap}.chart-caption{margin-top:0}.ranking-stability{margin-right:5px}

/* Top ten: one compact column; series color, rank, name. */
.ranking-chart-wrap>.ranking-chart-legend{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-flow:row;gap:0;max-width:65%;width:190px}
.ranking-chart-legend li{grid-template-columns:7px 23px minmax(0,1fr);gap:5px;line-height:14px;font-size:11px}
.ranking-chart-legend .chart-legend-rank{text-align:left}

/* Labels sit directly beside the matching curve endpoints, not over the plot. */
.chart-end-label{display:flex;align-items:center;gap:5px;height:16px;font-size:11px;line-height:16px;font-weight:600;white-space:nowrap;overflow:hidden}
.chart-end-rank{flex:0 0 23px;font-variant-numeric:tabular-nums}
.chart-end-name{min-width:0;overflow:hidden;text-overflow:ellipsis}

@keyframes live-soft-pulse{0%,100%{filter:brightness(1);box-shadow:0 0 0 0 rgba(109,52,221,0)}50%{filter:brightness(1.12);box-shadow:0 0 8px 4px rgba(109,52,221,.26)}}
.roster-filter-pills [data-value="live"]{animation:live-soft-pulse 4.5s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.roster-filter-pills [data-value="live"]{animation:none!important}}

.changelog-menu-link{display:flex;align-items:center;min-height:44px;font-size:inherit}.menu-drawer>a.changelog-menu-link{font-size:11px}.changelog-entry li{margin-top:6px}
.roster-filter-pills [data-value="live"]{background:#eadbff;color:#50209a;display:inline-flex;align-items:center;justify-content:center;gap:4px}
.roster-filter-pills [data-value="live"].active{background:var(--purple);color:white}
.roster-filter-pills [data-value="live"]::before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor;animation:live-dot-pulse 2.8s ease-in-out infinite}
@keyframes live-dot-pulse{0%,100%{opacity:1}50%{opacity:.18}}
@media(prefers-reduced-motion:reduce){.roster-filter-pills [data-value="live"]::before{animation:none;opacity:1}}

.opinion-choice{border:1px solid #d9cdee;border-radius:12px;padding:10px;margin:8px 0}.opinion-choice .row{display:flex;flex-wrap:wrap;gap:6px}.opinion-choice button{flex:1;min-height:44px;white-space:normal}.opinion-choice .fine{margin:6px 0 0}

.fast-player-choice{display:flex;flex-direction:column;gap:6px;min-width:0}.fast-player-choice .fast-pick{width:100%;flex:1}.fast-player-choice .jab-launch{width:100%;min-height:44px}.jab-error:empty{display:none}

/* Desktop SVG scales independently of HTML: keep activity outside its time axis. */
@media(min-width:701px){
 .ranking-chart-wrap>.ranking-event-feed{position:static;max-width:none;width:100%;margin:8px 0 0;padding:0;font-size:12px;line-height:1.5;text-shadow:none;}
 .ranking-chart-wrap>.ranking-event-feed>div,.ranking-chart-wrap>.ranking-event-feed span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}
}

/* Keep the close control outside the Fast 3 content flow. */
dialog.fast-three-dialog{position:fixed;padding:22px}
.fast-three-dialog .close{position:absolute;float:none;top:6px;right:6px;min-width:44px;min-height:44px;display:grid;place-items:center;font-size:24px;line-height:1}
.fast-three-dialog .fast-three-panel{width:100%;min-width:0}
.fast-three-dialog .fast-three-banner{padding-right:30px;min-height:32px}
