:root{--color-action-primary:#0f766e;--color-action-hover:#115e59;--color-text-on-action:#fff;--color-bg-canvas:#f4f6f8;--color-bg-surface:#fff;--color-bg-subtle:#e8edf2;--color-text-primary:#182230;--color-text-secondary:#526174;--color-border-subtle:#dce3e9;--color-focus:#1d4ed8;--font-body:"Segoe UI",Arial,sans-serif;--radius-control:8px;--radius-card:12px;--size-control-min:44px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--color-bg-canvas);color:var(--color-text-primary);font:15px/1.5 var(--font-body)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--color-focus)}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.2;letter-spacing:-.8px;font-weight:650}h2{font-size:19px;font-weight:650;letter-spacing:-.3px}h3{font-size:16px;font-weight:650}small,.muted{color:var(--color-text-secondary)}small{font-size:12px}a{color:var(--color-action-primary)}.loading{padding:40px}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--color-bg-surface);border-right:1px solid var(--color-border-subtle);padding:30px 18px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;padding:0 10px}.brand-mark{width:38px;height:38px;border-radius:11px;background:var(--color-action-primary);display:grid;place-items:center;color:white;font-size:23px;font-weight:700}.brand strong{font-size:14px;display:block;line-height:1.3}.brand small{font-size:11px}.section-label{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#83909e;padding:0 14px;margin-bottom:10px;text-transform:uppercase}.nav{display:grid;gap:6px}.nav button{display:flex;align-items:center;gap:12px;border:0;border-radius:9px;min-height:45px;background:transparent;color:var(--color-text-secondary);text-align:left;padding:10px 14px;font-weight:550}.nav button.active{background:var(--color-bg-subtle);color:var(--color-text-primary)}.nav-icon{font-size:17px;width:20px;text-align:center;opacity:.75}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--color-border-subtle);padding:20px 10px 0}.user{display:flex;gap:10px;align-items:center;margin-bottom:16px}.avatar{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:10px;background:var(--color-bg-subtle);font-weight:650}.user strong{font-size:13px;display:block}.workspace{min-width:0}.topbar{height:76px;padding:0 38px;border-bottom:1px solid var(--color-border-subtle);display:flex;align-items:center;justify-content:space-between;background:var(--color-bg-surface);gap:16px;font-size:13px}.crumb{color:var(--color-text-secondary)}.crumb b{color:var(--color-text-primary);font-weight:550}.online-indicator{display:flex;align-items:center;gap:7px;color:var(--color-text-secondary);font-size:12px}.dot{width:7px;height:7px;border-radius:50%;background:#16a34a;display:inline-block}.main{padding:34px 38px 48px;max-width:1720px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.page-heading p{margin-top:9px;color:var(--color-text-secondary);font-size:14px}.eyebrow{color:var(--color-action-primary);font-size:10px;letter-spacing:1.6px;font-weight:700;margin-bottom:10px;text-transform:uppercase}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--size-control-min);padding:10px 16px;border-radius:var(--radius-control);border:1px solid transparent;background:var(--color-action-primary);color:var(--color-text-on-action);font-weight:600;font-size:13px;text-decoration:none;white-space:nowrap}.btn:hover:not(:disabled){filter:brightness(.95)}.btn.secondary{background:var(--color-bg-surface);border-color:var(--color-border-subtle);color:var(--color-text-primary)}.btn.ghost{background:transparent;color:var(--color-text-secondary);padding:8px 10px}.btn.danger{background:#fff1f2;border-color:#fecdd3;color:#9f1239}.btn.small{min-height:36px;padding:7px 11px;font-size:12px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{background:var(--color-bg-surface);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);padding:21px 23px;position:relative}.metric-label{font-size:12px;color:var(--color-text-secondary);display:flex;justify-content:space-between}.metric-value{font-size:36px;letter-spacing:-1px;line-height:1.3;margin:9px 0 5px;font-weight:650;font-variant-numeric:tabular-nums}.metric small{font-size:11px}.metric.accent{border-top:3px solid var(--color-action-primary);padding-top:19px}.panel{border:1px solid var(--color-border-subtle);background:var(--color-bg-surface);border-radius:var(--radius-card);margin-bottom:20px;overflow:hidden}.panel-heading{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading p{font-size:12px;color:var(--color-text-secondary);margin-top:5px}.panel-body{padding:0 24px 24px}.panel-body.inset{padding-top:24px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;font-weight:650;color:var(--color-text-secondary);padding:12px 22px;background:var(--color-bg-canvas);white-space:nowrap;border-top:1px solid var(--color-border-subtle);border-bottom:1px solid var(--color-border-subtle)}td{padding:17px 22px;border-bottom:1px solid var(--color-border-subtle);vertical-align:middle}tr:last-child td{border-bottom:0}td strong{font-weight:600}td small{display:block;margin-top:4px}.club-name{display:flex;align-items:center;gap:12px;min-width:180px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:4px 9px;font-size:11px;font-weight:600;white-space:nowrap}.badge.success{color:#166534;background:#dcfce7}.badge.warning{color:#854d0e;background:#fef3c7}.badge.danger{color:#991b1b;background:#fee2e2}.badge.info{color:#1e40af;background:#dbeafe}.badge.neutral{color:var(--color-text-secondary);background:var(--color-bg-subtle)}.toolbar{display:flex;align-items:center;gap:12px;padding:0 24px 20px;flex-wrap:wrap}.toolbar input{max-width:320px;flex:1}.toolbar select{max-width:210px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:550;min-width:0}.field small{font-weight:400;font-size:11px}.field input,.field select,.field textarea,.toolbar input,.toolbar select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--color-border-subtle);border-radius:8px;background:var(--color-bg-surface);color:var(--color-text-primary);font-size:14px}.field textarea{resize:vertical;min-height:85px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid>.wide{grid-column:1/-1}.form-stack{display:grid;gap:18px}.empty{padding:48px 24px;text-align:center}.empty-icon{font-size:30px;color:#94a3b8;margin-bottom:12px}.empty h3{margin-bottom:8px}.empty p{color:var(--color-text-secondary);font-size:13px;max-width:450px;margin:0 auto 20px}.notice{padding:15px 18px;background:#fffbeb;color:#854d0e;border:1px solid #fde68a;border-radius:10px;margin-bottom:22px;font-size:13px}.notice.info{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}.two-column{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.stat-line{display:flex;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--color-border-subtle);font-size:13px}.stat-line:last-child{border-bottom:0}.stat-line strong{font-variant-numeric:tabular-nums}.audit-item{padding:16px 24px;border-top:1px solid var(--color-border-subtle);display:flex;gap:13px}.audit-bullet{width:8px;height:8px;border-radius:50%;background:var(--color-action-primary);margin-top:6px;flex-shrink:0}.audit-item strong{font-size:12px;font-weight:600}.audit-item p{font-size:12px;color:var(--color-text-secondary);margin:4px 0}.audit-item small{font-size:11px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(135px,1fr));min-width:950px}.day{border-right:1px solid var(--color-border-subtle);min-height:310px;padding:14px 10px}.day:last-child{border:0}.day-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--color-text-secondary);margin-bottom:20px}.day.today{background:color-mix(in srgb,var(--color-action-primary) 3%,var(--color-bg-surface))}.day.today .date-circle{background:var(--color-action-primary);color:var(--color-text-on-action)}.date-circle{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;font-weight:650}.event{display:block;width:100%;border:1px solid var(--color-border-subtle);border-left:3px solid var(--color-action-primary);border-radius:8px;text-align:left;padding:12px 10px;margin-bottom:10px;background:var(--color-bg-surface);color:var(--color-text-primary)}.event time{font-size:11px;color:var(--color-text-secondary)}.event strong{display:block;font-size:12px;margin:7px 0}.event .badge{font-size:9px;padding:3px 5px}.tournament-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.tournament-card{padding:24px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-bg-surface)}.tournament-card h2{margin:15px 0 6px}.tournament-card .actions{margin-top:20px}.mini-stats{display:flex;gap:28px;padding:20px 0 0}.mini-stats strong{display:block;font-size:23px;line-height:1.3;font-weight:650}.mini-stats small{font-size:11px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--color-border-subtle);margin-bottom:24px;overflow-x:auto}.tab{padding:12px 1px;border:0;background:transparent;white-space:nowrap;font-size:13px;color:var(--color-text-secondary);border-bottom:2px solid transparent}.tab.active{color:var(--color-text-primary);font-weight:650;border-color:var(--color-action-primary)}.table-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.poker-table{border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-bg-surface);padding:20px}.poker-table header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.table-felt{height:70px;border:5px solid var(--color-bg-subtle);border-radius:60px;background:color-mix(in srgb,var(--color-action-primary) 12%,var(--color-bg-surface));display:grid;place-items:center;font-size:12px;color:var(--color-text-secondary);margin-bottom:15px}.seat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.seat{min-height:58px;border:1px dashed var(--color-border-subtle);border-radius:8px;background:var(--color-bg-canvas);color:var(--color-text-secondary);padding:7px 4px;text-align:center;overflow:hidden}.seat strong{display:block;font-size:11px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.seat small{font-size:10px;display:block}.seat.occupied{border:1px solid color-mix(in srgb,var(--color-action-primary) 30%,var(--color-bg-surface));background:color-mix(in srgb,var(--color-action-primary) 9%,var(--color-bg-surface));color:var(--color-text-primary)}.seat.reserved{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}.move{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;border-top:1px solid var(--color-border-subtle)}.move strong{font-size:13px}.move p{font-size:12px;color:var(--color-text-secondary);margin-top:3px}.clock-panel{text-align:center;padding:36px 24px;background:#101820;color:#f8fafc;border-radius:14px;margin-bottom:24px}.clock-panel small{color:#cbd5e1}.clock-value{font-size:100px;line-height:1.2;letter-spacing:-3px;font-weight:650;font-variant-numeric:tabular-nums}.clock-blinds{font-size:32px;line-height:1.4;font-weight:600}.clock-panel .actions{justify-content:center;margin-top:24px}.levels{display:grid;gap:7px}.level-row{display:grid;grid-template-columns:100px repeat(4,minmax(65px,1fr)) 28px;gap:7px;align-items:center}.level-row input,.level-row select{min-height:38px;width:100%;border:1px solid var(--color-border-subtle);border-radius:6px;padding:6px;background:var(--color-bg-surface);color:var(--color-text-primary);font-size:12px}.level-labels{font-size:10px;color:var(--color-text-secondary)}.level-row .remove{border:0;background:transparent;color:#991b1b;font-size:18px}.back{margin:-8px 0 20px}.result-place{width:74px;min-height:40px;border:1px solid var(--color-border-subtle);border-radius:6px;padding:8px;background:var(--color-bg-surface);color:var(--color-text-primary)}dialog{width:min(660px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;border:0;border-radius:16px;padding:0;background:var(--color-bg-surface);color:var(--color-text-primary);box-shadow:0 30px 100px #10182040}dialog::backdrop{background:#10182070;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:23px 26px;border-bottom:1px solid var(--color-border-subtle)}.dialog-body{padding:24px 26px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--color-border-subtle);padding:18px 26px}.form-error{background:#fee2e2;color:#991b1b;border-radius:8px;padding:12px;margin-bottom:18px;font-size:13px}.form-error:empty{display:none}#notifications{position:fixed;bottom:24px;right:24px;z-index:1000;display:grid;gap:10px;max-width:440px}.toast{border-radius:10px;background:#182230;color:white;padding:14px 20px;box-shadow:0 8px 30px #0002;font-size:13px}.toast.error{background:#991b1b}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:#102b2b;color:#eef9f5;padding:60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-art:after{content:"";position:absolute;border:1px solid #ffffff12;width:600px;height:600px;border-radius:50%;left:25%;top:25%;box-shadow:0 0 0 90px #ffffff04,0 0 0 180px #ffffff03;pointer-events:none}.auth-art h2{font-size:44px;line-height:1.2;letter-spacing:-1.7px;max-width:480px;font-weight:550;position:relative;z-index:1}.auth-art p{max-width:410px;font-size:15px;color:#abc9c4;margin-top:22px}.auth-art .brand{padding:0}.auth-art .brand small{color:#abc9c4}.auth-art .brand-mark{background:#28504b}.auth-foot{font-size:12px;color:#abc9c4}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px;background:var(--color-bg-surface)}.auth-form{width:360px}.auth-form h1{font-size:29px}.auth-form>p{color:var(--color-text-secondary);font-size:13px;margin:12px 0 28px}.auth-form .btn{width:100%;margin-top:8px}.auth-form .field{margin-bottom:18px}.auth-form .auth-note{font-size:11px;color:var(--color-text-secondary);margin-top:22px}.display-page{min-height:100vh;background:#101820;color:#f8fafc;padding:4vh 5vw;display:flex;flex-direction:column;justify-content:space-between;text-align:center}.display-top{display:flex;justify-content:space-between;align-items:center;color:#cbd5e1;font-size:18px}.display-top strong{color:#f8fafc;font-size:22px}.display-title{font-size:clamp(22px,3vw,48px);font-weight:550}.display-timer{font-size:clamp(90px,18vw,290px);line-height:1.12;font-weight:650;letter-spacing:-8px;font-variant-numeric:tabular-nums}.display-blinds{font-size:clamp(35px,6vw,100px);font-weight:600;color:var(--color-display-accent,#5eead4)}.display-metrics{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #ffffff20;padding-top:25px;gap:20px}.display-metrics strong{display:block;font-size:clamp(30px,4vw,65px)}.display-metrics small{color:#cbd5e1;font-size:16px}.display-state{color:#cbd5e1;font-size:18px}.connection{font-size:12px;margin-top:14px;color:#cbd5e1}
@media(min-width:1600px){.main{padding-top:44px}.metrics{gap:22px}}@media(max-width:1100px){.shell{grid-template-columns:200px minmax(0,1fr)}.main{padding:28px 24px}.topbar{padding:0 24px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column{grid-template-columns:1fr}.table-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tournament-cards{grid-template-columns:1fr}}@media(max-width:720px){.shell{display:block}.sidebar{position:static;height:auto;padding:16px;gap:16px;border-right:0;border-bottom:1px solid var(--color-border-subtle)}.sidebar .section-label,.sidebar-bottom .user{display:none}.sidebar .nav{display:flex;overflow-x:auto;gap:5px}.nav button{white-space:nowrap;padding:8px 10px;font-size:12px}.sidebar-bottom{margin:0;padding:0;border:0;position:absolute;right:12px;top:15px}.brand{padding-left:0}.brand strong{max-width:190px}.brand small{font-size:10px}.topbar{height:52px;padding:0 18px}.topbar .crumb{font-size:11px}.main{padding:24px 16px}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.page-heading>.btn{min-height:40px;padding:9px 11px}.metrics{gap:10px}.metric{padding:16px}.metric.accent{padding-top:14px}.metric-value{font-size:31px}.metric-label{font-size:11px}.table-cards{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.panel-heading{padding:18px 16px}.panel-body{padding:0 16px 20px}.toolbar{padding:0 16px 16px}.form-grid>.wide{grid-column:auto}.auth-shell{grid-template-columns:1fr}.auth-art{display:none}.auth-form-wrap{min-height:100vh;padding:28px}.auth-form{width:100%;max-width:380px}.clock-value{font-size:76px}.level-row{grid-template-columns:75px repeat(4,minmax(45px,1fr)) 24px;gap:4px}.dialog-body{padding:20px 16px}.display-page{padding:4vh 4vw}.display-top{font-size:12px}.display-top strong{font-size:14px}.display-timer{letter-spacing:-4px}.display-metrics{gap:8px}.display-metrics small{font-size:11px}.online-indicator{font-size:10px}.move{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.page-heading{flex-wrap:wrap}.topbar .online-indicator{display:none}.topbar .actions{flex-shrink:0}.panel-heading{flex-wrap:wrap}.brand strong{max-width:170px}}

/* Shared club workspace: approved main-menu composition, November 2026. */
.shell.club-shell{grid-template-columns:252px minmax(0,1fr);background:var(--color-bg-canvas)}
.club-shell .sidebar{background:linear-gradient(120deg,color-mix(in srgb,var(--color-bg-canvas) 92%,var(--color-bg-surface)),var(--color-bg-canvas));padding:24px 13px 20px;gap:22px;border-color:color-mix(in srgb,var(--color-border-subtle) 35%,transparent);overflow-y:auto;scrollbar-width:thin;z-index:2}
.club-shell .brand{padding:0 8px;gap:13px;flex-shrink:0;justify-content:flex-start}
.club-shell .brand>div{display:block;min-width:0}
.club-shell .brand-mark{width:46px;height:48px;flex-shrink:0;border-radius:8px;background:linear-gradient(135deg,color-mix(in srgb,var(--color-action-primary) 80%,white),var(--color-action-primary));color:var(--color-text-on-action);box-shadow:0 0 24px color-mix(in srgb,var(--color-action-primary) 9%,transparent)}
.club-shell .brand strong{font-size:19px;font-weight:650;letter-spacing:-.6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px}
.club-shell .brand small{display:block;font-size:11px;letter-spacing:2.1px;text-transform:uppercase;margin-top:4px;color:var(--color-text-secondary)}
.club-navigation{display:flex;flex-direction:column;gap:20px}
.club-shell .section-label{display:block;padding:0 9px;margin-bottom:10px;color:var(--color-text-secondary);font-size:11px;letter-spacing:1.5px;font-weight:500}
.club-shell .nav{gap:2px;display:grid}
.club-shell .nav button{position:relative;padding:7px 14px;min-height:36px;flex-direction:row;justify-content:flex-start;gap:17px;border-radius:8px;font-weight:400;color:var(--color-text-primary);overflow:hidden}
.club-shell .nav-label{font-size:15px;line-height:1.3;white-space:nowrap}
.club-shell .nav-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;opacity:1;flex-shrink:0}
.club-shell .nav-icon svg{width:23px;height:23px;stroke-width:1.4}
.club-shell .nav button.active{background:linear-gradient(110deg,color-mix(in srgb,var(--color-action-primary) 19%,transparent),color-mix(in srgb,var(--color-action-primary) 12%,transparent));color:var(--color-text-primary)}
.club-shell .nav button.active:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--color-action-primary);box-shadow:0 0 14px var(--color-action-primary)}
.club-shell .nav button:hover{background:color-mix(in srgb,var(--color-bg-subtle) 70%,transparent)}
.club-shell .nav-utility{padding-top:20px;margin:2px 8px 0;border-top:1px solid var(--color-border-subtle)}
.club-shell .nav-utility button{padding-left:5px}
.club-shell .sidebar-bottom{padding:17px 8px 0;border-top:1px solid var(--color-border-subtle);display:block;position:static;margin-top:auto;flex-shrink:0}
.club-shell .sidebar-bottom .user{margin:0;gap:14px;display:flex;align-items:center}
.club-shell .user>div{display:block;min-width:0;flex:1}
.club-shell .user strong{font-size:15px;font-weight:450;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}
.club-shell .user small{font-size:11px;white-space:nowrap}
.club-shell .avatar{border-radius:50%;width:42px;height:42px;background:var(--color-action-primary);color:var(--color-text-on-action);font-size:18px}
.club-shell .user .btn{padding:2px;min-height:30px;color:var(--color-text-primary)}
.club-shell .workspace{display:flex;flex-direction:column;min-height:100vh;background:radial-gradient(ellipse at 35% 15%,color-mix(in srgb,var(--color-bg-surface) 20%,transparent),transparent 70%)}
.club-shell .topbar{height:50px;min-height:50px;padding:0 28px;font-size:14px;background:transparent;border-color:color-mix(in srgb,var(--color-border-subtle) 35%,transparent)}
.club-shell .crumb{display:flex;align-items:center;gap:13px;min-width:0;overflow:hidden;white-space:nowrap}
.crumb-divider{opacity:.45}
.topbar-actions{display:flex;align-items:center;gap:35px}
.club-shell .club-search{height:35px;min-height:35px;width:310px;justify-content:flex-start;gap:12px;padding:4px 12px;border-radius:10px;font-weight:400;font-size:14px;background:color-mix(in srgb,var(--color-bg-surface) 75%,transparent)}
.club-search svg{width:17px;height:17px}
.club-search span{color:var(--color-text-secondary)}
.club-search kbd{margin-left:auto;font:12px var(--font-body);color:var(--color-text-secondary);background:var(--color-bg-subtle);padding:0 4px;border-radius:3px}
.club-shell .icon-button{padding:4px;min-height:34px;position:relative;color:var(--color-text-primary)}
.club-shell .main{width:100%;max-width:1800px;margin:0 auto;padding:20px 24px 12px}
.club-shell h1{font-size:36px;font-weight:700;letter-spacing:-1px}
.club-shell h2{font-size:21px;font-weight:650;letter-spacing:-.4px}
.club-shell .page-heading{margin:10px 0 28px}
.club-shell .panel{background:linear-gradient(120deg,color-mix(in srgb,var(--color-bg-surface) 92%,var(--color-bg-subtle)),var(--color-bg-surface));box-shadow:0 6px 20px #00000006;border-color:var(--color-border-subtle);border-radius:11px}
.club-shell .panel-heading{padding:14px 20px;gap:12px}
.club-shell .panel-body{padding:0 20px 20px}
.club-shell .toolbar{padding:0 20px 20px}
.dashboard-heading{padding:0 8px;margin-bottom:31px}
.dashboard-heading .eyebrow{font-size:11px;color:var(--color-text-secondary);font-weight:500;letter-spacing:1.6px;margin-bottom:6px}
.dashboard-filters{display:flex;align-items:center;gap:15px;padding:0 8px;margin-bottom:16px;flex-wrap:wrap}
.period-tabs{display:flex;align-items:center;border:1px solid var(--color-border-subtle);background:var(--color-bg-surface);border-radius:10px;overflow:hidden;padding:2px}
.period-tabs .btn{background:transparent;color:var(--color-text-primary);border:0;min-height:32px;padding:5px 22px;font-size:13px;font-weight:400;border-radius:7px}
.period-tabs .btn.selected{background:var(--color-action-primary);color:var(--color-text-on-action);font-weight:650;box-shadow:inset 0 0 0 1px #ffffff20,0 0 14px color-mix(in srgb,var(--color-action-primary) 14%,transparent)}
.filter-divider{height:20px;width:1px;background:var(--color-border-control);margin:0 4px}
.club-shell .date-range{height:38px;min-height:38px;font-size:12px;font-weight:400;padding:5px 12px;gap:10px}
.date-range svg{width:19px;height:19px}
.chevron{margin-left:10px;font-size:17px}
.venue-filter{height:38px;display:flex;align-items:center;gap:10px;background:var(--color-bg-surface);border:1px solid var(--color-border-subtle);border-radius:9px;padding:0 12px;min-width:210px}
.venue-filter svg{width:20px;height:20px;flex-shrink:0}
.venue-filter select{color:var(--color-text-primary);background:transparent;border:0;min-width:0;flex:1;font-size:13px;height:100%}
.venue-filter option{background:var(--color-bg-surface)}
.club-timezone{font-size:12px;color:var(--color-text-secondary);margin-left:auto;border-left:1px solid var(--color-border-subtle);padding-left:19px;white-space:nowrap}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:15px}
.dashboard-stat{border:1px solid var(--color-border-subtle);border-radius:11px;background:linear-gradient(110deg,color-mix(in srgb,var(--color-bg-surface) 90%,var(--color-bg-subtle)),var(--color-bg-surface));padding:13px 20px 15px;min-height:108px}
.stat-top{display:flex;justify-content:space-between;align-items:center;gap:6px;color:var(--color-text-secondary);font-size:13px;white-space:nowrap}
.stat-icon{display:flex;margin-top:2px}
.stat-icon svg{width:24px;height:24px;stroke-width:1.3}
.dashboard-stat>strong{display:block;font-size:36px;font-weight:650;line-height:1.2;letter-spacing:-.8px;font-variant-numeric:tabular-nums;margin:1px 0 2px}
.dashboard-stat>small{font-size:12px}
.chart-primary{color:var(--color-chart-primary,#b45309)}
.chart-secondary{color:var(--color-chart-secondary,#0369a1)}
.chart-neutral{color:var(--color-text-primary)}
.dashboard-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:15px}
.club-shell .dashboard-chart{margin:0;padding:9px 19px 6px;min-width:0}
.chart-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.chart-heading h2{display:flex;gap:10px;align-items:center;white-space:nowrap}
.chart-help{display:inline-flex;border:1px solid var(--color-text-secondary);border-radius:50%;width:19px;height:19px;align-items:center;justify-content:center;font-size:14px;font-weight:400;letter-spacing:0;cursor:help}
.club-shell .chart-more{font-size:24px;padding:0 3px;min-height:26px;line-height:1}
.chart-legend{display:flex;justify-content:flex-end;gap:8px;align-items:center;font-size:12px;margin:3px 0 3px}
.chart-legend>span:first-child{width:9px;height:9px;background:currentColor;border-radius:50%}
.chart-legend>span:last-child{color:var(--color-text-primary)}
.activity-chart{width:100%;height:auto;display:block;overflow:visible}
.chart-grid{stroke:var(--color-border-subtle);stroke-width:1;opacity:.8}
.chart-axis{fill:var(--color-text-secondary);font-size:12px;font-family:var(--font-body)}
.chart-line{stroke:currentColor;stroke-width:2.3;fill:none;stroke-linecap:round}
.chart-empty{font-size:11px;color:var(--color-text-secondary);padding:0 0 8px;text-align:center}
.chart-data{font-size:12px;color:var(--color-text-secondary);padding-bottom:10px}
.chart-data[hidden]{display:none}
.chart-data .table-scroll{max-height:220px;margin-top:8px}
.dashboard-bottom{display:grid;grid-template-columns:minmax(0,2fr) minmax(275px,1fr);gap:16px}
.club-shell .dashboard-bottom .panel{margin:0;min-width:0;min-height:242px}
.today-panel h2{display:flex;align-items:center;gap:12px}
.count-pill{background:var(--color-action-primary);color:var(--color-text-on-action);padding:1px 9px;font-size:14px;border-radius:6px;font-weight:650;box-shadow:0 2px 8px color-mix(in srgb,var(--color-action-primary) 12%,transparent)}
.club-shell .today-panel .table-scroll{padding:0 14px 16px}
.club-shell .today-panel th{font-size:12px;text-transform:none;letter-spacing:0;font-weight:400;border:0;background:var(--color-bg-subtle);padding:5px 10px;white-space:nowrap}
.today-panel th:first-child{border-radius:9px 0 0 9px}
.today-panel th:last-child{border-radius:0 9px 9px 0}
.club-shell .today-panel td{padding:7px 10px;font-size:13px;border-color:var(--color-border-subtle)}
.dashboard-tournament-name{display:flex;align-items:center;gap:12px;min-width:175px}
.dashboard-tournament-name strong{font-weight:500;font-size:14px;white-space:nowrap}
.dashboard-tournament-name small{font-size:11px;margin:0;white-space:nowrap}
.tournament-glyph{width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;background:linear-gradient(135deg,color-mix(in srgb,var(--color-text-secondary) 20%,transparent),color-mix(in srgb,var(--color-text-secondary) 5%,transparent));border-radius:8px}
.tournament-glyph svg{width:22px;height:22px;stroke-width:1.3}
.club-shell .today-panel .badge{font-size:11px;font-weight:500;padding:3px 7px}
.club-shell .badge.success{background:color-mix(in srgb,var(--color-chart-success,#166534) 16%,var(--color-bg-surface));color:var(--color-chart-success,#166534)}
.club-shell .badge.info{background:color-mix(in srgb,var(--color-chart-secondary,#1e40af) 18%,var(--color-bg-surface));color:var(--color-text-primary)}
.club-shell .today-panel .btn{font-size:11px;min-height:29px;padding:3px 9px;font-weight:400}
.club-shell .today-panel .btn.ghost{color:var(--color-action-primary)}
.club-shell .today-panel .btn:disabled{opacity:.85;cursor:default}
.quick-panel{display:flex;flex-direction:column}
.quick-actions{display:grid;gap:8px;padding:0 16px}
.club-shell .quick-action{justify-content:flex-start;gap:14px;min-height:37px;padding:5px 12px;font-size:14px;font-weight:400;background:color-mix(in srgb,var(--color-bg-subtle) 40%,var(--color-bg-surface))}
.quick-action svg{width:23px;height:23px;stroke-width:1.3;flex-shrink:0}
.quick-action .action-arrow{margin-left:auto}
.club-shell .quick-action:disabled{opacity:.65}
.quick-note{font-size:12px;color:var(--color-text-secondary);padding:24px 20px 13px;margin-top:auto}
.dashboard-note{font-size:10px;color:var(--color-text-secondary);margin-top:12px;opacity:.8}
.club-footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:28px 24px 20px;margin-top:auto;font-size:11px}
.club-footer .btn{font-size:11px;padding:0;min-height:23px;font-weight:400;color:var(--color-text-secondary)}
.club-footer .dot{background:var(--color-action-primary);width:8px;height:8px}
.footer-divider{height:15px;width:1px;background:var(--color-border-control);margin:0 5px}
.future-panel{text-align:center;padding:65px 25px;display:flex;flex-direction:column;gap:18px;align-items:center}
.future-panel p{max-width:430px;color:var(--color-text-secondary)}
.future-icon{color:var(--color-action-primary)}
.future-icon svg{width:50px;height:50px;stroke-width:1}
.pagination{padding:15px 20px;border-top:1px solid var(--color-border-subtle);display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:12px}
@media(min-width:1500px){.shell.club-shell{grid-template-columns:267px minmax(0,1fr)}.club-shell .main{padding:15px 20px 12px}.club-shell .brand strong{max-width:175px;font-size:20px}.dashboard-heading{margin-bottom:35px}.dashboard-filters{gap:19px;margin-bottom:16px}.period-tabs .btn{padding:5px 27px}.dashboard-stat{padding:13px 21px 15px}.club-shell .dashboard-chart{padding:9px 20px 6px}.club-navigation{gap:23px}.club-shell .nav-label{font-size:16px}.club-shell .dashboard-chart{min-height:235px}.club-shell .dashboard-bottom .panel{min-height:253px}}
@media(max-width:1300px){.dashboard-filters{gap:10px}.period-tabs .btn{padding:5px 16px}.venue-filter{min-width:170px}.club-timezone{margin-left:0;padding-left:10px}.filter-divider{display:none}.dashboard-stat{padding:13px}.stat-top{font-size:11px}.dashboard-stats{gap:12px}.club-shell h2{font-size:18px}.chart-heading h2{font-size:18px}.dashboard-bottom{grid-template-columns:minmax(0,1fr) 290px}.club-shell .today-panel .table-scroll{padding:0 8px 12px}.club-shell .today-panel td{padding:7px}.dashboard-tournament-name{gap:8px;min-width:160px}.dashboard-tournament-name strong{font-size:12px}}
@media(max-width:1100px){.shell.club-shell{grid-template-columns:220px minmax(0,1fr)}.club-shell .brand{gap:9px;padding:0 2px}.club-shell .brand strong{font-size:18px;max-width:145px}.club-shell .brand-mark{width:39px;height:43px}.club-shell .brand small{font-size:9px}.club-shell .nav button{gap:12px;padding:8px 10px}.club-shell .nav-label{font-size:13px}.dashboard-bottom{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-top{font-size:13px}.club-shell .main{padding:20px}.club-shell .quick-panel{min-height:0}.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.club-shell .quick-action{font-size:11px;gap:7px}.quick-note{padding-top:16px}.club-shell .club-search{width:250px}.topbar-actions{gap:20px}.club-shell h1{font-size:31px}}
@media(max-width:820px){.shell.club-shell{grid-template-columns:200px minmax(0,1fr)}.club-shell .brand strong{font-size:16px;max-width:125px}.club-shell .brand small{font-size:8px;letter-spacing:1.5px}.club-shell .nav-label{font-size:12px}.club-shell .nav button{gap:10px}.club-shell .section-label{font-size:10px}.dashboard-charts{grid-template-columns:1fr}.club-shell .club-search{width:190px}.club-search kbd{display:none}.club-shell .topbar{padding:0 18px}.dashboard-heading{padding:0}.dashboard-filters{padding:0}.period-tabs{width:100%}.period-tabs .btn{flex:1;padding:5px 12px}.club-timezone{border:0;padding-left:0;font-size:11px}.quick-actions{grid-template-columns:1fr}.club-shell .quick-action{font-size:13px}.club-shell .user small{font-size:9px}.club-shell .user strong{max-width:85px;font-size:13px}.club-shell .avatar{width:32px;height:32px;font-size:14px}.club-shell .sidebar-bottom{padding-left:3px;padding-right:3px}}
@media(max-width:620px){.shell.club-shell{display:block}.club-shell .sidebar{position:relative;height:auto;padding:15px 14px 0;gap:16px;overflow:visible;border-bottom:1px solid var(--color-border-subtle)}.club-shell .brand{padding:0 50px 0 0}.club-shell .brand strong{font-size:18px;max-width:220px}.club-shell .brand small{font-size:9px}.club-shell .brand-mark{width:36px;height:40px}.club-navigation{display:flex;flex-direction:row;overflow-x:auto;gap:14px;padding-bottom:10px;scrollbar-width:thin}.club-shell .nav-group{display:contents}.club-shell .section-label{display:none}.club-shell .nav{display:flex;overflow:visible;gap:5px;flex-shrink:0}.club-shell .nav button{min-height:35px;gap:7px;padding:6px 10px;flex-shrink:0;white-space:nowrap}.club-shell .nav-label{font-size:12px}.club-shell .nav-icon{width:19px}.club-shell .nav-icon svg{width:19px}.club-shell .nav-utility{padding:0;margin:0;border:0}.club-shell .sidebar-bottom{position:absolute;right:14px;top:19px;padding:0;border:0;margin:0}.club-shell .sidebar-bottom .user{display:flex;gap:3px}.club-shell .user>div{display:none}.club-shell .user .btn{min-height:24px}.club-shell .workspace{min-height:calc(100vh - 120px)}.club-shell .topbar{height:47px;min-height:47px;padding:0 15px}.club-shell .club-search{width:35px;padding:6px;justify-content:center;min-height:30px;height:30px}.club-search span,.club-search kbd{display:none}.topbar-actions{gap:12px}.club-shell .crumb{font-size:12px;gap:9px}.club-shell .main{padding:22px 14px 12px}.dashboard-heading{margin-bottom:22px}.club-shell h1{font-size:28px}.dashboard-heading .eyebrow{font-size:9px;letter-spacing:1px}.dashboard-filters{gap:10px;margin-bottom:13px}.period-tabs .btn{font-size:11px;padding:6px 10px;min-height:31px}.club-shell .date-range{font-size:10px;gap:6px;padding:5px 8px;flex:1}.date-range svg{width:16px}.chevron{margin-left:0}.venue-filter{min-width:125px;padding:0 7px;gap:5px}.venue-filter select{font-size:11px;max-width:110px}.venue-filter svg{width:16px}.club-timezone{width:100%;text-align:right;font-size:10px}.dashboard-stats{gap:10px}.dashboard-stat{padding:10px 12px;min-height:99px}.stat-top{font-size:10px;white-space:normal;align-items:flex-start}.stat-icon svg{width:20px;height:20px}.dashboard-stat>strong{font-size:29px;margin:0}.dashboard-stat>small{font-size:10px}.club-shell .dashboard-chart{padding:10px 12px 6px}.chart-heading h2{font-size:18px}.chart-help{width:17px;height:17px;font-size:12px}.chart-legend{font-size:10px}.dashboard-bottom{gap:14px}.club-shell .dashboard-bottom .panel{min-height:0}.club-shell .today-panel .panel-heading{padding:13px 14px;flex-wrap:nowrap}.today-panel .panel-heading h2{font-size:17px;gap:8px}.club-shell .today-panel .panel-heading .btn{font-size:10px}.club-shell .today-panel .table-scroll{padding:0 8px 12px}.club-shell .today-panel table{min-width:570px}.club-shell .quick-panel .panel-heading{padding:15px 16px}.quick-actions{padding:0 14px}.quick-note{padding:18px 16px 14px}.club-footer{padding:16px 14px;gap:10px;font-size:10px}.club-footer .btn{font-size:10px}.footer-divider{margin:0}.club-shell .panel-body{padding:0 14px 18px}.pagination{padding:12px 14px;flex-wrap:wrap}.club-shell .page-heading{flex-wrap:wrap}.future-panel{padding:45px 18px}}

.stat-comparison b{color:var(--color-chart-success);font-weight:500}

/* Tournament CRM uses the shared theme and typeface. */
.tournament-editor{max-width:1200px;margin:auto}.tournament-editor .panel{margin-bottom:20px}.tournament-editor textarea{width:100%;resize:vertical;min-height:140px;padding:13px;border:1px solid var(--color-border-control);border-radius:8px;color:var(--color-text-primary);background:var(--color-bg-canvas);font:inherit;line-height:1.6}
.tournament-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:9px;background:var(--color-bg-subtle);color:var(--color-action-primary)}.tournament-icon img{width:100%;height:100%;object-fit:contain;border-radius:inherit}.tournament-icon svg{width:26px;height:26px}.tournament-icon.large{width:100px;height:100px;border-radius:15px}.tournament-icon.large svg{width:45px;height:45px}
.icon-upload{border:1px dashed var(--color-border-control);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:10px;align-items:center;min-width:0}.icon-upload input{max-width:100%;font:inherit;font-size:12px}.tournament-name-cell,.tournament-summary{display:flex;gap:16px;align-items:center}.tournament-summary{align-items:flex-start}.tournament-summary>div{min-width:0}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--color-text-secondary);margin-top:10px;line-height:1.6}
.club-shell .name-link{font-size:14px;text-align:left;justify-content:flex-start;white-space:normal;font-weight:600;color:var(--color-text-primary);padding:0;min-height:36px}.tournament-row{cursor:pointer}.tournament-row:hover{background:var(--color-bg-subtle)}.club-shell .sort-button{padding:0;min-height:28px;font:inherit;color:inherit;white-space:nowrap;letter-spacing:inherit}.sort-button:focus-visible,.name-link:focus-visible{outline:2px solid var(--color-action-primary);outline-offset:4px}
.date-toolbar{align-items:flex-end}.date-toolbar .field{margin:0;min-width:160px;max-width:230px}.details-grid{gap:22px}.details-grid small{display:block;color:var(--color-text-secondary);font-size:12px;margin-bottom:5px}.details-grid strong{font-size:15px}.guest-actions{min-width:130px}.guest-actions .btn{white-space:nowrap}.result-editor-row{display:grid;grid-template-columns:minmax(90px,1fr) 90px 120px;gap:14px;align-items:center}.result-editor-row .field{margin:0}.revision-list{padding:0 20px 20px}.revision-list details{padding:12px 0;border-top:1px solid var(--color-border-subtle)}.revision-list summary{cursor:pointer;font-size:13px}.revision-list p{padding:10px 0;font-size:12px}.tournament-editor .page-heading .actions{flex-wrap:wrap}.tournament-editor .field input[readonly]{opacity:.7}
@media(max-width:720px){.date-toolbar .field{min-width:130px;flex:1}.tournament-summary{flex-direction:column}.result-editor-row{grid-template-columns:minmax(70px,1fr) 65px 90px;gap:8px}.tournament-editor .page-heading .actions{width:100%}.tournament-editor .page-heading .btn{flex:1}.tournament-editor .level-row{min-width:390px}.tournament-editor .levels{overflow-x:auto}.tournament-editor .form-grid{min-width:0}.tournament-editor input{min-width:0}.tabs{overflow-x:auto;white-space:nowrap}}

.guest-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:5px;min-width:0}.guest-actions .btn{font-size:11px;min-height:30px;padding:4px 8px}.tournament-name-cell{min-width:210px}

/* Approved guest scoreboard: shared branding tokens, no tournament or club overrides. */
.display-page.display-board{position:relative;width:100%;max-width:none;min-width:0;justify-content:stretch;grid-template-columns:minmax(0,1fr);min-height:100svh;height:100svh;padding:3vh 2.5vw 2.5vh;display:grid;grid-template-rows:18fr 64fr 18fr;gap:0;background-color:var(--color-display-bg);background-image:var(--background-page,none);color:var(--color-display-text);font-family:var(--font-display);text-align:center;overflow:hidden}
.display-heading{min-width:0;align-self:center;padding:0 15vw}
.display-board .display-title{margin:0;font-size:clamp(22px,3.6vw,76px);line-height:1.12;font-weight:600;overflow-wrap:anywhere}
.display-board .display-state{margin:1.7vh 0 0;color:var(--color-display-secondary);font-size:clamp(16px,2.6vw,50px);line-height:1.2;font-weight:600}
.display-stage{position:relative;min-height:0}
.display-hero{width:50%;height:100%;margin-inline:auto;display:grid;grid-template-rows:44% 56%;align-items:center}
.display-current{min-width:0}
.display-board .display-blinds{color:var(--color-display-text);font-size:min(8.2vw,14.5vh);line-height:1.05;font-weight:600;letter-spacing:-.035em;white-space:nowrap;font-variant-numeric:tabular-nums}
.display-board .display-blinds.is-break{font-size:min(6vw,11vh)}
.display-ante{color:var(--color-display-accent);font-size:min(3.7vw,6.6vh);font-weight:600;line-height:1.15;margin-top:1vh;white-space:nowrap}
.display-board .display-timer{font-size:min(15vw,26vh);line-height:1.05;letter-spacing:-.04em;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.display-message{position:absolute;right:0;top:12%;bottom:12%;width:24%;padding:1.8vw;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card,12px);background:color-mix(in srgb,var(--color-bg-surface) 82%,transparent);text-align:left;overflow:auto;scrollbar-width:thin}
.display-message p{margin:0;white-space:pre-line;overflow-wrap:anywhere;font-size:clamp(16px,1.4vw,28px);line-height:1.45;color:var(--color-display-text)}
.display-footer{border-top:1px solid var(--color-border-control);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;padding-top:2.2vh;gap:2vw}
.display-stat{min-width:0;display:grid;grid-template-rows:1.5em auto;gap:.65vh;font-size:clamp(14px,1.6vw,32px);font-weight:600}
.display-stat-label{display:flex;align-items:center;justify-content:center;gap:.6em;color:var(--color-display-secondary);white-space:nowrap}
.display-stat-label svg{width:1.25em;height:1.25em;flex-shrink:0}
.display-stat-value{font-size:clamp(20px,2.8vw,58px);line-height:1.15;white-space:nowrap;font-variant-numeric:tabular-nums}
.display-break .display-stat-value{color:var(--color-display-secondary)}
.display-controls{position:absolute;top:1.2vh;left:2.5vw;right:2.5vw;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}
.display-control{display:inline-flex;align-items:center;gap:.6em;padding:.4em;border:0;border-radius:var(--radius-control,8px);font:500 clamp(12px,1.1vw,22px)/1.2 var(--font-body);color:var(--color-display-secondary);background:transparent;text-decoration:none;cursor:pointer;pointer-events:auto;min-height:44px}
.display-control svg{width:1.3em;height:1.3em;flex-shrink:0}
.display-control:hover{color:var(--color-display-text);background:var(--color-bg-subtle)}
.display-control:focus-visible{outline:2px solid var(--color-focus);outline-offset:2px}
:root:fullscreen .display-controls{opacity:0;visibility:hidden}
:root:fullscreen.display-controls-awake .display-controls,:root:fullscreen .display-controls:focus-within{opacity:1;visibility:visible}
.display-connection{position:absolute;bottom:0;left:0;right:0;margin:0;padding:.6em;font-size:clamp(13px,1.2vw,22px);background:var(--color-warning-bg);color:var(--color-warning-text)}
.display-connection:empty{display:none}
@media(max-aspect-ratio:6/5){
 .display-page.display-board{height:auto;min-height:100svh;padding:65px 20px 24px;grid-template-rows:auto auto auto;overflow:visible;gap:24px}
 .display-heading{padding:0}.display-board .display-title{font-size:clamp(22px,5.5vw,46px)}.display-board .display-state{font-size:20px}
 .display-stage{display:grid;gap:24px}.display-hero{width:100%;height:auto;gap:20px;grid-template-rows:auto auto}
 .display-board .display-blinds{font-size:clamp(30px,8.2vw,90px)}.display-ante{font-size:clamp(22px,5vw,38px)}.display-board .display-timer{font-size:clamp(70px,20vw,180px)}
 .display-message{position:static;width:100%;max-height:40vh;padding:20px}.display-message p{font-size:18px}
 .display-footer{padding-top:24px;gap:8px}.display-stat{font-size:clamp(10px,2.6vw,18px);gap:8px}.display-stat-value{font-size:clamp(16px,4vw,30px)}
 .display-stat-label{white-space:normal}.display-connection{position:fixed;z-index:3}
}

/* Explicitly retain the full-width grid and shared background in warm base 4. */
:root[data-theme-base] .display-page.display-board{background-image:var(--background-page,none)}
.display-board .display-mode{color:var(--color-display-secondary);font-size:clamp(13px,1.2vw,24px);line-height:1.2;margin-top:.5vh}

/* A validated tournament image stays separate from shared brand configuration. */
.display-board{isolation:isolate}
.display-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.27);z-index:-1;pointer-events:none}
.display-background-editor{display:grid;gap:16px;border-top:1px solid var(--color-border-subtle);padding-top:20px}
.display-background-preview{display:block;width:min(100%,400px);aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius-card)}

.structure-scroll{overflow-x:auto}.structure-row{display:grid;grid-template-columns:minmax(170px,1.4fr) repeat(3,minmax(85px,1fr)) minmax(90px,1fr) 96px 40px;gap:12px;align-items:center;padding:12px 0;min-width:820px;border-bottom:1px solid var(--color-border-subtle)}
.structure-row input{width:100%;min-width:0}.structure-labels{font-size:12px;color:var(--color-text-secondary)}.structure-handle{padding:8px 4px;border:0;background:transparent;color:var(--color-text-primary);font:600 15px var(--font-body);text-align:left;cursor:grab;min-height:44px}.structure-handle:active{cursor:grabbing}.structure-handle:disabled{opacity:1;cursor:default}.structure-name small{display:block}.structure-order{display:flex;gap:6px}.structure-row.is-current{background:color-mix(in srgb,var(--color-action-primary) 8%,transparent)}.structure-row.is-past{color:var(--color-text-secondary)}.structure-row.drag-target{outline:2px solid var(--color-focus);outline-offset:-2px}.structure-row input:disabled{color:var(--color-text-secondary);background:var(--color-bg-subtle)}

.structure-handle{touch-action:none;user-select:none}.structure-row input{min-height:44px;padding:10px 12px;border:1px solid var(--color-border-control);border-radius:var(--radius-control);background:var(--color-bg-surface);color:var(--color-text-primary);font:inherit}

.clock-adjustments{display:grid;justify-items:center;gap:10px;margin-top:20px;color:var(--color-display-secondary)}.clock-adjustments .actions{justify-content:center}.clock-adjustments .btn{min-width:80px}
.display-countdown{position:relative;min-width:0;height:100%;display:grid;place-items:center}.display-countdown .display-timer{width:100%;min-width:0}.display-countdown.is-paused{grid-template-rows:minmax(0,1fr) auto;gap:.8vh;padding-bottom:1vh}.display-countdown.is-paused .display-timer{opacity:.65;font-size:min(14vw,22vh)}
.display-pause{position:static;justify-self:center;display:flex;align-items:center;gap:.4em;padding:.18em .75em;font-size:clamp(20px,2.3vw,46px);line-height:1.25;font-weight:600;letter-spacing:.08em;color:var(--color-display-text);background:var(--color-bg-surface);border:2px solid var(--color-display-accent);border-radius:var(--radius-card);white-space:nowrap}.display-pause svg{width:1em;height:1em;stroke-width:4}
@media(max-aspect-ratio:6/5){.display-countdown.is-paused{padding-bottom:0;grid-template-rows:auto auto}.display-board .display-countdown.is-paused .display-timer{font-size:clamp(70px,20vw,180px)}}

/* During a break there is one countdown, centered with the former footer caption. */
.display-hero.is-break{display:flex;align-items:center;justify-content:center}.display-hero.is-break .display-countdown{height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;gap:2vh}.display-hero.is-break .display-timer{color:var(--color-display-secondary)}.display-break-caption{display:flex;align-items:center;justify-content:center;gap:.6em;color:var(--color-display-secondary);font-size:clamp(18px,2.5vw,48px);line-height:1.3;font-weight:600;white-space:nowrap}.display-break-caption svg{width:1.25em;height:1.25em;flex-shrink:0}


/* Shared motion contract: docs/contracts/INTERFACE_MOTION.md. */
:root {
  --motion-duration-fast: 150ms;
  --motion-duration-standard: 180ms;
  --motion-duration-enter: 200ms;
  --motion-ease: cubic-bezier(.2,.8,.2,1);
  --motion-popup-scale: .95;
  --motion-press-scale: .97;
}
:where(button, a.btn, [role="button"]):not(:disabled):not([aria-disabled="true"]) {
  transition: scale var(--motion-duration-fast) var(--motion-ease),
    background-color var(--motion-duration-standard) var(--motion-ease),
    border-color var(--motion-duration-standard) var(--motion-ease),
    color var(--motion-duration-standard) var(--motion-ease),
    filter var(--motion-duration-fast) var(--motion-ease);
}
:where(button, a.btn, [role="button"]):not(:disabled):not([aria-disabled="true"]):active { scale: var(--motion-press-scale); }
.structure-rows.is-dragging .structure-handle { scale: 1; }
dialog[open] { animation: ui-popup-enter var(--motion-duration-enter) var(--motion-ease) both; }
dialog[open]::backdrop { animation: ui-fade-enter var(--motion-duration-standard) var(--motion-ease) both; }
:is(.popover,.dropdown-menu,[role="menu"]):not([hidden]):not([aria-hidden="true"]) {
  transform-origin: var(--popup-origin,top right);
  animation: ui-popup-enter var(--motion-duration-standard) var(--motion-ease) both;
}
.toast { animation: ui-popup-enter var(--motion-duration-standard) var(--motion-ease) both; transform-origin: bottom right; }
:is(input,select,textarea) { transition: border-color var(--motion-duration-fast) var(--motion-ease), background-color var(--motion-duration-standard) var(--motion-ease); }
@keyframes ui-popup-enter { from { opacity: 0; scale: var(--motion-popup-scale); } to { opacity: 1; scale: 1; } }
@keyframes ui-fade-enter { from { opacity: 0; } to { opacity: 1; } }
.structure-rows { position: relative; }
.structure-row { transition: background-color var(--motion-duration-standard) var(--motion-ease), box-shadow var(--motion-duration-standard) var(--motion-ease), scale var(--motion-duration-standard) var(--motion-ease); }
.structure-row.is-dragging {
  position: relative; z-index: 2; pointer-events: none;
  translate: 0 var(--drag-y,0px); scale: 1.015;
  background: var(--color-bg-surface); border-radius: var(--radius-control);
  box-shadow: 0 12px 28px #0003, 0 0 0 2px var(--color-focus);
}
.structure-row.is-dragging .structure-handle { cursor: grabbing; }
.structure-row.drag-target {
  background: color-mix(in srgb,var(--color-action-primary) 12%,var(--color-bg-surface));
  box-shadow: inset 0 3px 0 var(--color-action-primary);
}
@media (prefers-reduced-motion: reduce) {
  :where(button,a.btn,[role="button"],input,select,textarea), .structure-row { transition: none !important; }
  :where(button,a.btn,[role="button"]):active, .structure-row.is-dragging { scale: 1 !important; }
  dialog[open], dialog[open]::backdrop, .toast, :is(.popover,.dropdown-menu,[role="menu"]) { animation: none !important; }
}

/* Постоянная карточка игрока: общая тема клуба и движение интерфейса. */
.player-row { cursor:pointer; }
.player-row:hover { background:color-mix(in srgb,var(--color-action-primary) 4%,transparent); }
.player-name { padding:0;min-height:32px;text-align:left;font-weight:700;white-space:normal; }
.player-profile { min-width:0; }
.profile-heading { position:sticky;top:12px;z-index:3;padding:20px 24px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--background-surface,var(--color-bg-surface));box-shadow:0 6px 20px #00000012; }
.profile-heading .page-heading { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;margin:0; }
.profile-heading h1 { overflow-wrap:anywhere; }
.profile-save-actions { display:flex;flex-direction:column;align-items:flex-end;gap:8px; }
.profile-save-actions .btn { min-width:140px; }
.profile-save-actions .muted { font-size:12px;line-height:1.4;text-align:right;max-width:240px; }
.profile-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }
.profile-grid .field { min-width:0; }
.profile-avatar-editor { display:flex;align-items:center;gap:24px;margin-bottom:12px; }
.profile-avatar { width:140px;height:140px;flex-shrink:0;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);overflow:hidden; }
.profile-image { display:block;width:100%;height:100%;object-fit:cover; }
.profile-image-placeholder { display:grid;place-items:center;width:100%;height:100%;color:var(--color-text-secondary);background:var(--color-bg-subtle); }
.profile-image-placeholder svg { width:64px;height:64px; }
.profile-number { display:flex;align-items:center;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);overflow:hidden;background:var(--color-bg-surface); }
.profile-number:focus-within { outline:2px solid var(--color-focus);outline-offset:2px; }
.profile-number input { min-width:0;width:100%;border:0!important;box-shadow:none!important;outline:none;appearance:textfield; }
.profile-number input::-webkit-inner-spin-button { appearance:none; }
.profile-number .btn { flex-shrink:0;min-width:32px;padding:6px;margin:0 3px; }
.profile-toggles { display:flex;flex-wrap:wrap;gap:20px 36px; }
.profile-toggle { display:flex;align-items:center;gap:10px;cursor:pointer; }
.profile-toggle input { accent-color:var(--color-action-primary);width:20px;height:20px;min-height:20px; }
.profile-award-icon { display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;overflow:hidden;border-radius:var(--radius-control);color:var(--color-action-primary); }
.profile-award-icon svg { width:28px;height:28px; }
.profile-progress { display:grid;gap:6px;min-width:90px; }
.profile-progress progress { width:100%;height:6px;accent-color:var(--color-action-primary); }
.profile-footer { display:flex;justify-content:space-between;gap:16px;padding:12px 0 28px; }
@media(max-width:1100px) { .profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .profile-heading { position:static; } }
@media(max-width:620px) { .profile-grid { grid-template-columns:minmax(0,1fr); } .profile-avatar-editor { align-items:flex-start;flex-direction:column; } .profile-footer { flex-wrap:wrap; } .profile-heading { padding:18px; }
  .profile-heading .page-heading { grid-template-columns:minmax(0,1fr);gap:18px; }
  .profile-save-actions { flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px; }
  .profile-save-actions .muted { flex:1;min-width:100px; } }

.point-distribution-summary { display:grid;gap:16px;padding:0 24px 24px; }
.point-distribution-summary .table-scroll { max-height:360px;overflow:auto;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control); }
.point-distribution-rows { display:grid;gap:12px;max-height:48vh;overflow-y:auto;padding:3px; }
.point-distribution-row { display:grid;grid-template-columns:minmax(70px,.6fr) minmax(100px,1fr) 44px;gap:12px;align-items:end; }
.point-distribution-row .field { min-width:0; }
.result-editor-row input[readonly] { background:var(--color-bg-subtle); }
@media(max-width:620px) { .point-distribution-summary { padding:0 14px 18px; } .point-distribution-row { gap:8px; } }

.point-distribution-dialog { max-height:calc(100dvh - 48px);overflow:hidden; }
.point-distribution-dialog form { display:flex;flex-direction:column;max-height:calc(100dvh - 48px);min-height:0; }
.point-distribution-dialog .dialog-header,.point-distribution-dialog .dialog-footer { flex-shrink:0; }
.point-distribution-dialog .dialog-body { overflow-y:auto;min-height:0; }
.point-distribution-dialog .point-distribution-rows { max-height:none;overflow:visible; }

.result-editor-row.with-knockouts { grid-template-columns:minmax(90px,1fr) 70px 100px 90px; }
.result-editor-row.with-knockouts strong { overflow-wrap:anywhere; }
.result-editor-row.with-knockouts input { min-width:0; }
@media(max-width:620px) { .result-editor-row.with-knockouts { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; } .result-editor-row.with-knockouts strong { grid-column:1/-1; } }

/* Раздел «Сотрудники»: только общие токены темы клуба. Контракт: docs/contracts/CLUB_STAFF.md. */
.staff-nav { display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:16px; }
.staff-nav-mark { display:grid;place-items:center;width:40px;height:40px;margin-right:4px;border-radius:12px;color:var(--color-action-primary);background:color-mix(in srgb,var(--color-action-primary) 16%,transparent); }
.staff-nav-mark svg { width:20px;height:20px; }
.staff-pill { display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 16px;border:0;border-radius:999px;background:transparent;color:var(--color-text-secondary);font-size:14px;font-weight:600; }
.staff-pill svg { width:16px;height:16px;flex-shrink:0; }
.staff-pill:hover { color:var(--color-text-primary);background:var(--color-bg-subtle); }
.staff-pill.is-active { color:var(--color-text-on-action);background:var(--color-action-primary); }
.staff-pill-count { min-width:20px;padding:0 6px;border-radius:999px;font-size:11px;line-height:20px;text-align:center;background:var(--color-bg-subtle);color:var(--color-text-primary); }
.staff-pill.is-active .staff-pill-count { background:color-mix(in srgb,var(--color-text-on-action) 22%,transparent);color:var(--color-text-on-action); }
.staff-archive-search input { max-width:360px; }
.staff-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px;padding:16px 20px;border:1px solid var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px);background:var(--background-surface,var(--color-bg-surface)); }
.staff-month { display:flex;align-items:center;gap:16px; }
.staff-month strong { min-width:170px;text-align:center;font-size:22px;font-weight:700; }
.staff-arrow { display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--color-border-subtle);border-radius:10px;background:var(--color-bg-subtle);color:var(--color-text-primary); }
.staff-arrow svg { width:18px;height:18px; }
.staff-arrow:hover { border-color:var(--color-border-control); }
.staff-payee select { min-height:40px;max-width:100%;padding:8px 14px;border:1px solid var(--color-border-subtle);border-radius:10px;background:var(--color-bg-subtle);color:var(--color-text-primary); }
.staff-group { margin:6px 0 28px; }
.staff-group-head { display:flex;align-items:center;gap:12px;margin-bottom:14px; }
.staff-group-icon { display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--color-border-subtle);border-radius:50%;color:var(--color-text-secondary); }
.staff-group-icon svg { width:18px;height:18px; }
.staff-group-head strong { display:block;font-size:13px;letter-spacing:2px;text-transform:uppercase; }
.staff-group-head small { display:block;font-size:12px;color:var(--color-text-secondary); }
.staff-cards { display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px; }
.staff-card { display:grid;gap:16px;align-content:start;padding:22px 24px;border:1px solid var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px);background:var(--background-surface,var(--color-bg-surface)); }
.staff-card h3 { display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:18px; }
.staff-card-due { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--color-border-subtle); }
.staff-card-due span { font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--color-text-secondary); }
.staff-card-due strong { font-size:28px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--color-action-primary); }
.staff-card-due strong.is-settled { color:var(--color-text-secondary); }
.staff-card-facts { display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;margin:0;padding-bottom:16px;border-bottom:1px solid var(--color-border-subtle); }
.staff-card-facts dt { font-size:10px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:var(--color-text-secondary); }
.staff-card-facts dd { margin:6px 0 0;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums; }
.staff-card-facts dd small { display:block;margin-top:4px;font-size:10px;font-weight:500;letter-spacing:.3px;text-transform:uppercase;color:var(--color-text-secondary); }
.staff-card-facts dd.is-paid { color:var(--color-text-primary); }
.staff-chip { display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;background:var(--color-bg-subtle);font-size:13px;color:var(--color-text-primary); }
.staff-chip svg { width:14px;height:14px;color:var(--color-action-primary); }
.staff-card-actions { display:grid;gap:6px; }
.staff-card .staff-manage { width:100%;min-height:46px;font-size:15px;font-weight:700; }
.staff-schedule-scroll { overflow-x:auto;border-top:1px solid var(--color-border-subtle); }
.staff-schedule { border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:12px; }
.staff-schedule th,.staff-schedule td { padding:0;border:0;border-bottom:1px solid var(--color-border-subtle);background:var(--background-surface,var(--color-bg-surface));text-transform:none;letter-spacing:0;font-weight:400; }
.staff-schedule thead th { padding:8px 0;color:var(--color-text-secondary);text-align:center; }
.staff-schedule thead small { display:block;font-size:10px;text-transform:uppercase; }
.staff-schedule thead b { display:block;font-size:13px;color:var(--color-text-primary);font-weight:650; }
.staff-person { position:sticky;left:0;z-index:1;min-width:220px;max-width:220px;padding:6px 14px!important;text-align:left;border-right:1px solid var(--color-border-subtle)!important; }
.staff-schedule .staff-person { text-align:left; }
.staff-day { width:36px;min-width:36px;text-align:center; }
.staff-day.is-weekend { background:color-mix(in srgb,var(--color-bg-subtle) 55%,var(--background-surface,var(--color-bg-surface)))!important; }
.staff-day.is-today { background:color-mix(in srgb,var(--color-action-primary) 14%,var(--background-surface,var(--color-bg-surface)))!important; }
.staff-schedule thead .staff-day.is-today b { color:var(--color-action-primary); }
.staff-schedule tbody td.staff-day { padding:6px 0; }
.staff-total { min-width:82px;padding:6px 14px!important;text-align:right;border-left:1px solid var(--color-border-subtle)!important; }
.staff-total small { display:block;font-size:11px;color:var(--color-text-secondary); }
.staff-name { display:grid;gap:1px;max-width:190px;min-height:0;padding:0;text-align:left;white-space:nowrap;color:var(--color-text-primary); }
.staff-name strong,.staff-name small { overflow:hidden;text-overflow:ellipsis; }
.staff-name strong { font-size:13px;font-weight:650; }
.staff-name small { font-size:11px;color:var(--color-text-secondary);font-weight:400; }
tr.is-inactive .staff-name { opacity:.6; }
.staff-shift { display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:1px dashed transparent;border-radius:50%;background:transparent;color:var(--color-action-primary);vertical-align:middle; }
.staff-shift:hover:not(:disabled) { border-color:var(--color-border-control);background:var(--color-bg-subtle); }
.staff-shift:disabled { cursor:default;opacity:1; }
.staff-shift svg { width:15px;height:15px;stroke-width:3; }
.staff-shift.is-on { border:2px solid var(--color-action-primary);background:color-mix(in srgb,var(--color-action-primary) 14%,transparent); }
.staff-shift.is-on.is-worked { background:var(--color-action-primary);color:var(--color-text-on-action); }
.staff-shift.is-on:hover:not(:disabled) { background:color-mix(in srgb,var(--color-action-primary) 28%,transparent); }
.staff-shift.is-on.is-worked:hover:not(:disabled) { background:var(--color-action-hover,var(--color-action-primary)); }
.staff-schedule tfoot th,.staff-schedule tfoot td { border-bottom:0;padding-top:9px;padding-bottom:9px;font-weight:650; }
.staff-schedule tfoot td.is-uncovered { color:var(--color-text-primary);background:color-mix(in srgb,#dc2626 18%,var(--background-surface,var(--color-bg-surface)))!important; }
.staff-legend { display:flex;flex-wrap:wrap;gap:18px;padding:14px 24px 18px;font-size:12px;color:var(--color-text-secondary); }
.staff-legend span { display:inline-flex;align-items:center;gap:8px; }
.staff-legend .staff-shift { width:16px;height:16px; }
.staff-legend-gap { display:inline-block;width:16px;height:16px;border-radius:4px;background:color-mix(in srgb,#dc2626 30%,transparent); }
.staff-schedule .staff-shift.is-paid,.staff-legend .staff-shift.is-paid { outline:2px solid color-mix(in srgb,var(--color-text-primary) 70%,transparent);outline-offset:2px; }
.staff-shift.is-paid:disabled { opacity:1; }
.staff-pay-shifts { display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;max-height:260px;overflow-y:auto;padding:2px; }
.staff-pay-shift { display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);cursor:pointer;font-weight:400; }
.staff-pay-shift:has(input:checked) { border-color:var(--color-action-primary);background:color-mix(in srgb,var(--color-action-primary) 10%,transparent); }
.staff-pay-shift input { accent-color:var(--color-action-primary);width:18px;height:18px;min-height:18px;flex-shrink:0; }
.staff-pay-shift b { margin-left:auto;font-variant-numeric:tabular-nums; }
.staff-pay-summary { display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:var(--radius-card);background:var(--color-bg-subtle); }
.staff-pay-total { font-size:26px;font-weight:700;font-variant-numeric:tabular-nums; }
.staff-num { white-space:nowrap;font-variant-numeric:tabular-nums; }
.staff-num small { display:block;font-size:11px;color:var(--color-text-secondary); }
@media(max-width:620px) { .staff-toolbar { align-items:stretch;flex-direction:column; } .staff-month { justify-content:space-between; } .staff-month strong { min-width:0;font-size:18px; }
  .staff-pill { padding:8px 12px; } .staff-cards { grid-template-columns:minmax(0,1fr); } .staff-card-facts { grid-template-columns:minmax(0,1fr); } .staff-person { min-width:150px;max-width:150px; } .staff-name { max-width:125px; } }

/* Раздел «Финансы»: только общие токены темы клуба. Контракт: docs/contracts/CLUB_FINANCE.md. */
.finance-period { gap:12px; }
.finance-presets { display:flex;flex-wrap:wrap;gap:4px;padding:3px;border:1px solid var(--color-border-subtle);border-radius:999px;background:var(--color-bg-subtle); }
.finance-preset { min-height:34px;padding:6px 14px;border:0;border-radius:999px;background:transparent;color:var(--color-text-secondary);font-size:13px;font-weight:600; }
.finance-preset:hover { color:var(--color-text-primary); }
.finance-preset.is-active { background:var(--color-action-primary);color:var(--color-text-on-action); }
.finance-range { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
.finance-range label { display:flex;align-items:center;gap:8px;font-size:13px;color:var(--color-text-secondary); }
.finance-range input { min-height:38px;padding:6px 10px;border:1px solid var(--color-border-subtle);border-radius:10px;background:var(--color-bg-subtle);color:var(--color-text-primary); }
.finance-chart-head { display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:0 24px 12px; }
.finance-legend,.finance-badges { display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--color-text-secondary); }
.finance-legend span { display:inline-flex;align-items:center;gap:6px; }
.finance-badges span { padding:4px 10px;border:1px solid var(--color-border-subtle);border-radius:999px; }
.finance-badges b { color:var(--color-text-primary); }
.finance-dot { display:inline-block;width:10px;height:10px;border-radius:3px; }
.finance-chart-wrap { overflow-x:auto;padding:0 16px 16px; }
.finance-chart { display:block;width:100%;min-width:900px;height:auto;max-height:260px; }
.finance-grid { stroke:var(--color-border-subtle);stroke-width:1; }
.finance-axis { fill:var(--color-text-secondary);font-size:11px;font-family:var(--font-body); }
.finance-src-tournaments { fill:var(--color-action-primary);background:var(--color-action-primary); }
.finance-src-bar { fill:var(--color-chart-secondary,#38bdf8);background:var(--color-chart-secondary,#38bdf8); }
.finance-src-services { fill:color-mix(in srgb,var(--color-action-primary) 40%,var(--color-bg-subtle));background:color-mix(in srgb,var(--color-action-primary) 40%,var(--color-bg-subtle)); }
.finance-src-other { fill:var(--color-text-secondary);background:var(--color-text-secondary); }
.finance-two { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.finance-two .panel { margin:0 0 20px; }
.finance-shares { display:grid;gap:14px; }
.finance-share > div:first-child { display:flex;align-items:baseline;gap:10px; }
.finance-share span { flex:1;font-size:14px; }
.finance-share strong { font-variant-numeric:tabular-nums; }
.finance-share small { min-width:52px;text-align:right;color:var(--color-text-secondary);font-variant-numeric:tabular-nums; }
.finance-meter { height:6px;margin-top:6px;border-radius:999px;background:var(--color-bg-subtle);overflow:hidden; }
.finance-meter span { display:block;height:100%;border-radius:inherit;background:var(--color-action-primary); }
.finance-totals { display:grid;gap:8px;margin:6px 0 0;padding-top:12px;border-top:1px solid var(--color-border-subtle); }
.finance-totals > div { display:flex;justify-content:space-between;gap:16px; }
.finance-totals dt { color:var(--color-text-secondary); }
.finance-totals dd { margin:0;font-weight:700;font-variant-numeric:tabular-nums; }
.finance-profit .is-total { padding-top:10px;border-top:1px solid var(--color-border-subtle);font-size:18px; }
.finance-profit .is-total dt { color:var(--color-text-primary);font-weight:700; }
.finance-week { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;padding:0 24px 24px; }
.finance-week-day { display:grid;justify-items:center;gap:6px; }
.finance-week-bar { position:relative;width:100%;max-width:56px;height:150px;border-radius:10px;background:var(--color-bg-subtle); }
.finance-week-range { position:absolute;left:20%;right:20%;border-radius:6px;background:color-mix(in srgb,var(--color-action-primary) 30%,transparent); }
.finance-week-avg { position:absolute;left:8%;right:8%;height:3px;border-radius:2px;background:var(--color-action-primary); }
.finance-week-day strong { font-size:13px;font-variant-numeric:tabular-nums; }
.finance-week-day small { color:var(--color-text-secondary);font-size:12px; }
.finance-num { white-space:nowrap;font-variant-numeric:tabular-nums; }
.finance-num small,td small.muted { display:block;font-size:11px; }
.finance-num.is-out strong,.finance-profit dd.is-out { color:var(--color-text-secondary); }
.finance-diff { color:var(--color-action-primary);font-weight:600; }
.finance-note { padding:12px 24px; }
.finance-active-shift { display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px;padding:20px 24px;border:1px solid color-mix(in srgb,var(--color-action-primary) 35%,var(--color-border-subtle));border-radius:calc(var(--radius-card) + 8px);background:color-mix(in srgb,var(--color-action-primary) 8%,var(--background-surface,var(--color-bg-surface))); }
.finance-active-shift.is-empty { border-color:var(--color-border-subtle);background:var(--background-surface,var(--color-bg-surface)); }
.finance-active-shift h2 { margin:6px 0 2px; }
.finance-shift-facts { display:flex;flex-wrap:wrap;gap:16px 28px;margin:0;padding:0;border:0; }
.finance-shift-facts > div { display:grid;gap:2px; }
.finance-shift-facts dt { font-size:11px;text-transform:uppercase;letter-spacing:.6px; }
.finance-leaders { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0 24px 24px; }
.finance-leader { display:grid;gap:4px;padding:16px 18px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-bg-subtle); }
.finance-leader small { font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--color-action-primary); }
.finance-leader strong { font-size:17px; }
.finance-leader p { margin:0;font-size:12px; }
.finance-segments { display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;padding:0 24px 20px; }
.finance-segment { display:grid;gap:4px;justify-items:start;padding:16px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:transparent;color:var(--color-text-primary);text-align:left; }
.finance-segment span { font-weight:700; }
.finance-segment strong { font-size:28px;font-weight:800;font-variant-numeric:tabular-nums; }
.finance-segment small { font-size:12px;color:var(--color-text-secondary); }
.finance-segment:hover,.finance-segment.is-open { border-color:var(--color-action-primary); }
.finance-segment.is-open { background:color-mix(in srgb,var(--color-action-primary) 10%,transparent); }
.finance-money { display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,3fr);gap:20px;align-items:stretch;margin-bottom:20px; }
.finance-money > div:first-child { display:grid;align-content:center;gap:6px;padding:20px 24px;border:1px solid var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px);background:var(--background-surface,var(--color-bg-surface)); }
.finance-money > div:first-child small { font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--color-text-secondary); }
.finance-money > div:first-child strong { font-size:34px;font-weight:800;font-variant-numeric:tabular-nums; }
.finance-accounts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.finance-account { display:grid;gap:6px;align-content:start;padding:18px 20px;border:1px solid var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px);background:var(--background-surface,var(--color-bg-surface)); }
.finance-account > span { font-weight:600; }
.finance-account strong { font-size:24px;font-weight:800;font-variant-numeric:tabular-nums; }
.finance-account small { font-size:12px; }
.finance-account .btn { justify-self:start;padding-left:0; }
.finance-account.is-negative { border-color:color-mix(in srgb,#dc2626 55%,var(--color-border-subtle)); }
.finance-account.is-negative small { color:var(--color-action-primary); }
@media(max-width:1100px) { .finance-two,.finance-money { grid-template-columns:minmax(0,1fr); } .finance-leaders { grid-template-columns:minmax(0,1fr); } }
@media(max-width:620px) { .finance-accounts { grid-template-columns:minmax(0,1fr); } .finance-week { gap:6px;padding:0 12px 16px; } .finance-chart-head { padding:0 14px 10px; } }

/* Страховка загрузки (boot-check.js): сообщение вместо вечного «Открываем рабочее пространство…». */
.boot-problem { display:grid;justify-items:start;gap:12px;max-width:560px;margin:15vh auto 0;padding:28px; }
.boot-problem h1 { margin:0;font-size:22px; }.boot-problem p { margin:0;color:var(--color-text-secondary,#555); }

/* Цели: навигатор, карточки целей, план/факт, итог, лента и мастер. Тона: good — акцент темы, bad — красный, neutral — вторичный текст. */
.goal-tone-good { --goal-tone:var(--color-action-primary); }
.goal-tone-bad { --goal-tone:#dc2626; }
.goal-tone-neutral { --goal-tone:var(--color-text-secondary); }
.goal-btn { display:inline-flex;align-items:center;gap:8px; }.goal-btn svg { width:16px;height:16px; }
.goal-navigator { display:flex;align-items:center;gap:16px;margin-bottom:16px;padding:18px 22px;border:1px solid var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px);background:linear-gradient(100deg,color-mix(in srgb,var(--goal-tone) 10%,var(--background-surface,var(--color-bg-surface))),var(--background-surface,var(--color-bg-surface))); }
.goal-navigator-icon { display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;color:var(--goal-tone);background:color-mix(in srgb,var(--goal-tone) 16%,transparent); }
.goal-navigator-icon svg { width:20px;height:20px; }
.goal-navigator small { font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--color-text-secondary); }
.goal-navigator strong { display:block;margin-top:4px;font-size:15px; }
.goal-navigator p { margin:2px 0 0;font-size:13px;color:var(--color-text-secondary); }
.goal-chips { display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px; }
.goal-chip { display:grid;align-content:start;gap:6px;min-width:220px;max-width:320px;padding:14px 16px;text-align:left;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--background-surface,var(--color-bg-surface));color:var(--color-text-primary);font:inherit; }
.goal-chip:hover { border-color:color-mix(in srgb,var(--color-action-primary) 50%,var(--color-border-subtle)); }
.goal-chip.is-selected { border-color:var(--goal-tone);background:color-mix(in srgb,var(--goal-tone) 8%,var(--background-surface,var(--color-bg-surface))); }
.goal-chip-title { display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px; }
.goal-chip-flag { display:flex;color:var(--color-action-primary); }.goal-chip-flag svg { width:14px;height:14px; }
.goal-chip-values { display:flex;align-items:center;gap:6px;font-size:12px;color:var(--color-text-secondary);font-variant-numeric:tabular-nums; }
.goal-chip-values b { color:var(--color-text-primary); }.goal-chip-values svg { width:12px;height:12px; }
.goal-chip-status { display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:var(--goal-tone); }
.goal-chip-status i { width:7px;height:7px;border-radius:50%;background:var(--goal-tone); }
.goal-chip-status em { font-style:normal;font-weight:500;color:var(--color-text-secondary); }
.goal-chip-add { align-content:center;justify-items:start;min-width:160px;border-style:dashed;color:var(--color-text-secondary); }
.goal-chip-add svg { width:16px;height:16px; }.goal-chip-add b { color:var(--color-text-primary);font-size:13px; }.goal-chip-add small { font-size:11px; }
.goal-chip-add.is-full { cursor:default; }
.goal-detail { margin-bottom:16px;border:1px solid var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px);background:var(--background-surface,var(--color-bg-surface));overflow:hidden; }
.goal-detail-head { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 24px 8px; }
.goal-detail-head h2 { display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:19px; }
.goal-detail-head p { margin:4px 0 0;font-size:12px;color:var(--color-text-secondary); }
.goal-status { display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700;color:var(--goal-tone);background:color-mix(in srgb,var(--goal-tone) 14%,transparent);border:1px solid color-mix(in srgb,var(--goal-tone) 30%,transparent); }
.goal-status svg { width:12px;height:12px; }
.goal-remove { color:#dc2626; }
.goal-detail-body { display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;padding:8px 24px 20px; }
.goal-figures { display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap; }
.goal-figures small { display:block;font-size:11px;color:var(--color-text-secondary); }
.goal-figures strong { font-size:30px;font-weight:800;font-variant-numeric:tabular-nums; }
.goal-figures b { font-size:17px;font-variant-numeric:tabular-nums; }
.goal-of { padding-bottom:8px;font-size:12px;color:var(--color-text-secondary); }
.goal-chart-wrap { overflow-x:auto;margin-top:8px; }
.goal-chart { display:block;width:100%;min-width:640px;height:auto;max-height:260px; }
.goal-grid { stroke:var(--color-border-subtle);stroke-width:1; }
.goal-axis { fill:var(--color-text-secondary);font-size:11px; }
.goal-target-line { stroke:var(--color-border-subtle);stroke-width:1;stroke-dasharray:4 4; }
.goal-plan-line { stroke:var(--color-chart-secondary,#38bdf8);stroke-width:2;stroke-dasharray:6 5; }
.goal-today-line { stroke:var(--color-text-secondary);stroke-width:1;stroke-dasharray:2 4;opacity:.6; }
.goal-chart { --goal-fact:var(--color-action-primary); }.goal-chart-bad { --goal-fact:#dc2626; }
.goal-fact-line { fill:none;stroke:var(--goal-fact);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round; }
.goal-fact-area { fill:color-mix(in srgb,var(--goal-fact) 12%,transparent); }
.goal-fact-dot { fill:var(--goal-fact); }
.goal-legend { display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font-size:12px;color:var(--color-text-secondary); }
.goal-legend span { display:inline-flex;align-items:center;gap:6px; }.goal-legend em { font-style:normal; }
.goal-legend i { display:inline-block;width:16px;height:0;border-top:2px solid; }
.goal-legend-plan { border-top-style:dashed !important;border-color:var(--color-chart-secondary,#38bdf8); }
.goal-legend-fact { border-color:var(--color-action-primary); }.goal-tone-bad .goal-legend-fact { border-color:#dc2626; }
.goal-result { display:grid;align-content:start;gap:8px;padding:16px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-bg-subtle); }
.goal-result>small { font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--color-text-secondary); }
.goal-result-head { display:flex;align-items:center;gap:6px;margin:0;font-size:14px;font-weight:700;color:var(--goal-tone); }
.goal-result-head svg { width:16px;height:16px; }
.goal-result-text { margin:0;padding-bottom:10px;border-bottom:1px solid var(--color-border-subtle);font-size:12px;color:var(--color-text-secondary); }
.goal-result dl,.goal-preview dl { display:grid;gap:9px;margin:0; }
.goal-result dl div,.goal-preview dl div { display:flex;justify-content:space-between;gap:12px;font-size:12px; }
.goal-result dt,.goal-preview dt { color:var(--color-text-secondary); }
.goal-result dd,.goal-preview dd { margin:0;font-weight:700;text-align:right;font-variant-numeric:tabular-nums; }
.goal-result dd.is-accent { color:var(--goal-tone); }.goal-preview dd.is-accent { color:var(--color-action-primary); }
.goal-result-foot { padding-top:8px;border-top:1px solid var(--color-border-subtle);font-size:11px;color:var(--color-text-secondary); }
.goal-detail-foot { display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));border-top:1px solid var(--color-border-subtle); }
.goal-detail-foot>div { display:flex;align-items:flex-start;gap:10px;padding:14px 24px; }
.goal-detail-foot>div+div { border-left:1px solid var(--color-border-subtle); }
.goal-detail-foot svg { width:16px;height:16px;margin-top:2px;flex-shrink:0;color:var(--color-text-secondary); }
.goal-detail-foot small { display:block;font-size:11px;color:var(--color-text-secondary); }.goal-detail-foot strong { font-size:13px; }
.goal-empty { margin-bottom:16px;border:1px dashed var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px); }
.goal-feed { margin-bottom:16px;padding:16px 18px;border:1px solid var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px);background:var(--background-surface,var(--color-bg-surface)); }
.goal-feed h3 { display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13px; }.goal-feed h3 svg { width:15px;height:15px;color:var(--color-text-secondary); }
.goal-feed-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.goal-feed-list { display:grid;gap:10px; }
.goal-feed-item { display:flex;gap:12px;padding:12px 14px;border-radius:var(--radius-card);background:var(--color-bg-subtle); }
.goal-feed-icon { display:flex;flex-shrink:0;padding-top:2px;color:var(--color-text-secondary); }.goal-feed-icon svg { width:15px;height:15px; }
.goal-feed-failed .goal-feed-icon { color:#dc2626; }.goal-feed-achieved .goal-feed-icon { color:var(--color-action-primary); }
.goal-feed-item p { margin:0;font-size:12px;color:var(--color-text-secondary); }
.goal-feed-item p:first-child { display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;color:var(--color-text-primary); }
.goal-feed-item time { font-size:11px;color:var(--color-text-secondary); }
.goal-feed-item small { font-size:11px;color:var(--color-text-secondary);opacity:.8; }
.goal-wizard { margin-bottom:16px;border:1px solid var(--color-border-subtle);border-radius:calc(var(--radius-card) + 8px);background:var(--background-surface,var(--color-bg-surface));overflow:hidden; }
.goal-wizard-head { display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid var(--color-border-subtle); }
.goal-wizard-head>div { flex:1;min-width:0; }.goal-wizard-head strong { display:block;font-size:16px; }.goal-wizard-head small { font-size:12px;color:var(--color-text-secondary); }
.goal-wizard-head svg { width:16px;height:16px; }
.goal-steps { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:12px 20px;list-style:none;border-bottom:1px solid var(--color-border-subtle);background:var(--color-bg-subtle); }
.goal-steps button { display:grid;grid-template-columns:28px 1fr;column-gap:10px;align-items:center;width:100%;padding:8px 10px;text-align:left;border:0;border-radius:var(--radius-card);background:transparent;color:var(--color-text-secondary);font:inherit; }
.goal-steps button>span { grid-row:span 2;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:12px;font-weight:700;background:var(--background-surface,var(--color-bg-surface)); }
.goal-steps button>span svg { width:14px;height:14px; }
.goal-steps b { font-size:13px; }.goal-steps small { font-size:11px; }
.goal-steps .is-current button { color:var(--color-text-primary);background:var(--background-surface,var(--color-bg-surface)); }
.goal-steps .is-current button>span { color:var(--color-text-on-action);background:var(--color-action-primary); }
.goal-steps .is-done button>span { color:var(--color-action-primary);background:color-mix(in srgb,var(--color-action-primary) 16%,transparent); }
.goal-wizard-body { display:grid;grid-template-columns:minmax(0,1fr) 280px; }
.goal-wizard-main { display:grid;align-content:start;gap:16px;padding:22px 24px; }
.goal-wizard-main h2 { margin:0;font-size:22px; }.goal-wizard-main>p.muted { margin:-10px 0 0;font-size:13px; }
.goal-segments { display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;border-radius:var(--radius-card);background:var(--color-bg-subtle); }
.goal-segments button { min-height:36px;border:0;border-radius:calc(var(--radius-card) - 2px);background:transparent;color:var(--color-text-secondary);font:inherit;font-size:13px;font-weight:600; }
.goal-segments button.is-active { color:var(--color-text-primary);background:var(--background-surface,var(--color-bg-surface));box-shadow:0 1px 3px rgba(0,0,0,.12); }
.goal-options,.goal-metrics { display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px; }
.goal-option,.goal-metric { position:relative;display:flex;gap:12px;padding:14px 16px;text-align:left;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:transparent;color:var(--color-text-primary);font:inherit; }
.goal-option:hover,.goal-metric:hover,.goal-preset:hover { border-color:color-mix(in srgb,var(--color-action-primary) 50%,var(--color-border-subtle)); }
.goal-option.is-selected,.goal-metric.is-selected,.goal-preset.is-selected { border-color:var(--color-action-primary);background:color-mix(in srgb,var(--color-action-primary) 8%,transparent); }
.goal-option>span:nth-child(2) { display:grid;gap:4px;padding-right:20px; }
.goal-option b { font-size:14px; }.goal-option small { font-size:12px;color:var(--color-text-secondary); }.goal-option em { font-style:normal;font-size:12px;font-weight:600; }
.goal-option-icon { display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:10px;color:var(--color-action-primary);background:color-mix(in srgb,var(--color-action-primary) 14%,transparent); }
.goal-option-icon svg { width:18px;height:18px; }
.goal-option-check { position:absolute;top:12px;right:12px;color:var(--color-action-primary); }.goal-option-check svg { width:16px;height:16px; }
.goal-metric { flex-direction:column;gap:6px; }
.goal-metric-head { display:flex;justify-content:space-between;gap:10px;font-size:14px; }.goal-metric-head svg { width:16px;height:16px;color:var(--color-action-primary); }
.goal-metric>small { font-size:12px;color:var(--color-text-secondary); }
.goal-metric-value { display:grid;gap:2px;margin-top:6px;padding:10px 12px;border-radius:calc(var(--radius-card) - 2px);background:var(--color-bg-subtle); }
.goal-metric-value small { display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--color-text-secondary); }
.goal-metric-value em { font-style:normal;color:var(--color-action-link,var(--color-action-primary)); }
.goal-metric-value strong { font-size:20px;font-variant-numeric:tabular-nums; }
.goal-span { display:flex;align-items:center;gap:20px;padding:16px 20px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-bg-subtle); }
.goal-span>div { flex:1; }.goal-span>svg { width:18px;height:18px;color:var(--color-text-secondary); }
.goal-span small { font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--color-text-secondary); }
.goal-span strong { display:block;font-size:28px;font-weight:800;font-variant-numeric:tabular-nums; }.goal-span strong.is-accent { color:var(--color-action-primary); }
.goal-label { margin:0 0 8px;font-size:12px;font-weight:700; }
.goal-presets { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
.goal-preset { display:grid;gap:4px;padding:12px 14px;text-align:left;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:transparent;color:var(--color-text-primary);font:inherit; }
.goal-preset:disabled { opacity:.55;cursor:default; }
.goal-preset>span { display:flex;justify-content:space-between;font-size:13px; }.goal-preset svg { width:14px;height:14px;color:var(--color-action-primary); }
.goal-preset strong { font-size:18px;font-variant-numeric:tabular-nums; }.goal-preset small { font-size:11px;color:var(--color-text-secondary); }
.goal-periods { margin-bottom:8px; }
.goal-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
.goal-summary>div { padding:10px 14px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card); }
.goal-summary small { display:block;font-size:11px;color:var(--color-text-secondary); }.goal-summary strong { font-size:14px;font-variant-numeric:tabular-nums; }
.switch-field { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card); }
.switch-field>span { display:grid;gap:2px; }.switch-field small { font-size:12px;color:var(--color-text-secondary); }
.switch-field input { width:20px;height:20px;flex-shrink:0;accent-color:var(--color-action-primary); }
.goal-toggle { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card); }
.goal-toggle>span { display:grid;gap:2px; }.goal-toggle small { font-size:12px;color:var(--color-text-secondary); }
.goal-toggle input { width:20px;height:20px;accent-color:var(--color-action-primary); }
.goal-note { display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;border-radius:var(--radius-card);font-size:13px;color:var(--color-text-primary);background:color-mix(in srgb,var(--color-action-primary) 10%,transparent);border:1px solid color-mix(in srgb,var(--color-action-primary) 30%,transparent); }
.goal-note svg { width:16px;height:16px;flex-shrink:0;color:var(--color-action-primary); }
.goal-preview { display:grid;align-content:start;gap:10px;padding:22px 20px;border-left:1px solid var(--color-border-subtle);background:var(--color-bg-subtle); }
.goal-preview>small { font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--color-text-secondary); }
.goal-preview h3 { margin:0;font-size:18px; }.goal-preview>p { margin:0;padding-bottom:10px;border-bottom:1px solid var(--color-border-subtle);font-size:12px;color:var(--color-text-secondary); }
.goal-preview-note { margin:6px 0 0 !important;padding:12px !important;border:1px solid color-mix(in srgb,var(--color-chart-secondary,#38bdf8) 35%,transparent) !important;border-radius:var(--radius-card);background:color-mix(in srgb,var(--color-chart-secondary,#38bdf8) 10%,transparent);font-size:12px; }
.goal-preview-note b { color:var(--color-chart-secondary,#38bdf8); }
.goal-wizard-foot { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid var(--color-border-subtle); }
@media(max-width:1100px) { .goal-detail-body,.goal-wizard-body { grid-template-columns:minmax(0,1fr); } .goal-preview { border-left:0;border-top:1px solid var(--color-border-subtle); } }
@media(max-width:720px) { .goal-steps { grid-template-columns:repeat(2,minmax(0,1fr)); } .goal-wizard-head { flex-wrap:wrap;gap:10px; } .goal-wizard-head small { display:none; } .goal-feed-grid,.goal-presets,.goal-summary { grid-template-columns:minmax(0,1fr); }
  .goal-chip { min-width:0;max-width:none;flex:1 1 100%; } .goal-detail-foot>div+div { border-left:0;border-top:1px solid var(--color-border-subtle); }
  .goal-detail-head,.goal-detail-body { padding-left:16px;padding-right:16px; } .goal-wizard-main { padding:18px 16px; } .goal-figures strong,.goal-span strong { font-size:24px; } }

/* Загрузка столов: текущие посадки, отдельные резервы и общий бренд клуба. */
.table-load-heading { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 8px; }
.table-load-heading h2 { display:flex;align-items:center;gap:10px;font-size:13px;text-transform:uppercase;letter-spacing:.5px; }
.table-load-icon { display:flex;color:var(--color-action-primary); }.table-load-icon svg { width:20px;height:20px; }
.table-load-status { display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px;border-radius:20px;background:var(--color-bg-subtle);color:var(--color-text-secondary);font-size:11px; }
.table-load-status.is-live { color:var(--color-action-link,var(--color-action-primary));background:color-mix(in srgb,var(--color-action-primary) 14%,transparent); }
.table-load-dot { width:6px;height:6px;border-radius:50%;background:currentColor; }
.table-load-body { display:flex;align-items:center;gap:24px;padding:8px 24px 12px; }
.table-load-ring { width:132px;height:132px;position:relative;flex-shrink:0; }.table-load-ring svg { display:block;width:100%;height:100%; }
.table-load-track { stroke:var(--color-bg-subtle); }.table-load-value { stroke:var(--color-action-primary); }
.table-load-ring-label { position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px; }
.table-load-ring-label strong { font-size:30px;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums; }
.table-load-ring-label span { font-size:11px;color:var(--color-text-secondary); }
.table-load-cards { display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;flex:1;min-width:0; }
.table-load-card { display:grid;align-content:start;gap:8px;min-width:0;min-height:88px;padding:14px;text-align:left;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:color-mix(in srgb,var(--color-bg-surface) 70%,transparent);color:var(--color-text-primary);font:inherit; }
.table-load-card:hover { border-color:var(--color-action-primary);background:var(--color-bg-subtle); }
.table-load-card-title { display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px; }.table-load-card-title strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.table-load-card-title>span { flex-shrink:0;font-variant-numeric:tabular-nums; }
.table-load-bar { height:7px;border-radius:8px;background:var(--color-bg-subtle);overflow:hidden; }.table-load-bar>span { display:block;height:100%;border-radius:inherit;background:var(--color-action-primary); }
.table-load-card-meta { display:flex;min-width:0;color:var(--color-text-secondary);font-size:11px;white-space:nowrap; }.table-load-card-meta>span:first-child { flex-shrink:0;white-space:pre; }.table-load-card-meta>span:last-child { overflow:hidden;text-overflow:ellipsis; }
.table-load-card small { font-size:11px; }.table-load-empty { display:grid;justify-items:start;gap:8px;min-width:0; }
.table-load-footer { display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 18px;padding:0 24px 18px;font-size:11px;color:var(--color-text-secondary); }
@media(max-width:620px) { .table-load-heading { padding:16px 16px 8px; }.table-load-body { flex-direction:column;align-items:stretch;gap:14px;padding:8px 16px 14px; }.table-load-ring { align-self:center; }.table-load-cards { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }.table-load-card { padding:12px; }.table-load-footer { padding:0 16px 16px; }.table-load-heading h2 { font-size:12px; } }
@media(max-width:359px) { .table-load-cards { grid-template-columns:minmax(0,1fr); } }

/* Аудитория клуба: общие семантические цвета, фильтры и история фактических визитов. */
.audience-tone-new { --audience-accent:var(--color-audience-new); }.audience-tone-steady { --audience-accent:var(--color-audience-steady); }.audience-tone-returned { --audience-accent:var(--color-audience-returned); }.audience-tone-risk { --audience-accent:var(--color-audience-risk); }.audience-tone-churn { --audience-accent:var(--color-audience-churn); }.audience-tone-never { --audience-accent:var(--color-audience-never); }
.audience-heading { display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 18px 8px; }.audience-heading h2 { display:flex;align-items:center;gap:9px;font-size:12px;letter-spacing:.5px;text-transform:uppercase; }.audience-heading h2 svg { width:18px;height:18px;color:var(--color-action-primary); }.audience-heading .btn { font-size:11px;white-space:normal;text-align:right; }
.audience-distribution { display:flex;height:8px;margin:0 18px;border-radius:8px;overflow:hidden;background:var(--color-bg-subtle); }.audience-distribution>span { height:100%;background:var(--audience-accent); }
.audience-cards { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:12px 18px 18px; }
.audience-card { display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:color-mix(in srgb,var(--color-bg-surface) 80%,transparent);color:var(--color-text-primary);font:inherit;text-align:left; }
.audience-card strong { color:var(--audience-accent);font-size:25px;line-height:1.15;font-weight:750;font-variant-numeric:tabular-nums; }.audience-card>span { font-size:12px;font-weight:650; }.audience-card small { font-size:10px;line-height:1.35; }.audience-card:hover,.audience-card.is-selected { border-color:var(--audience-accent);background:color-mix(in srgb,var(--audience-accent) 8%,var(--color-bg-surface)); }
.audience-tabs { display:flex;flex-wrap:wrap;gap:4px;padding:0 18px 16px; }.audience-tabs .btn { min-height:34px;padding:6px 10px;border-radius:20px;font-size:11px;gap:7px; }.audience-tabs .btn>span { display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:12px;background:var(--color-bg-subtle);font-variant-numeric:tabular-nums; }.audience-tabs .btn.is-selected { background:var(--color-action-primary);color:var(--color-text-on-action); }.audience-tabs .btn.is-selected>span { background:color-mix(in srgb,var(--color-text-on-action) 16%,transparent);color:inherit; }
.player-list-avatar { width:100%;height:100%;object-fit:cover;border-radius:inherit; }.player-audience-table th,.player-audience-table td { padding-left:16px;padding-right:16px; }.player-audience-table .sort-button { padding-left:0;padding-right:0; }.player-number { font-variant-numeric:tabular-nums; }.player-rhythm { display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:130px;font-size:12px; }.audience-badge { display:inline-flex;padding:3px 7px;border-radius:5px;color:var(--audience-accent);background:color-mix(in srgb,var(--audience-accent) 14%,var(--color-bg-surface));font-size:10px;font-weight:650;white-space:nowrap; }.player-last-visit { min-width:130px; }.player-last-visit small { font-size:11px; }
@media(max-width:1100px) { .audience-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:620px) { .audience-heading { align-items:flex-start;padding:14px 14px 8px; }.audience-heading .btn { max-width:155px;padding:0;min-height:30px; }.audience-distribution { margin:0 14px; }.audience-cards { grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 14px 14px;gap:8px; }.audience-tabs { padding:0 14px 14px; }.audience-card { padding:12px; } }

@media(max-width:620px) { .player-audience-toolbar { display:grid;grid-template-columns:minmax(0,1fr);padding-left:14px;padding-right:14px; }.player-audience-toolbar input,.player-audience-toolbar select { max-width:none;min-width:0;width:100%; } }

/* Никнейм и его заголовок используют одинаковый отступ после аватара. */
.player-audience-table { --player-avatar-size:42px;--player-avatar-gap:12px; }
.player-audience-table .club-name { gap:var(--player-avatar-gap); }
.player-audience-table .avatar { width:var(--player-avatar-size);height:var(--player-avatar-size); }
.player-audience-table .player-name { padding-inline:0;justify-content:flex-start; }
.player-audience-table th:first-child .sort-button { margin-inline-start:calc(var(--player-avatar-size) + var(--player-avatar-gap)); }
@media(max-width:820px) { .player-audience-table { --player-avatar-size:32px; } }

.tournament-state-trigger.btn { padding:4px;gap:7px;min-height:36px; }.tournament-state-trigger:hover { background:var(--color-bg-subtle); }.tournament-state-trigger>span:last-child { color:var(--color-text-secondary); }

/* Команды: единая тема клуба, карточки и состав. */
.team-row { cursor:pointer; }.team-row:hover { background:var(--color-bg-subtle); }
.team-avatar img { width:100%;height:100%;object-fit:cover;border-radius:inherit; }.team-avatar svg { width:24px;height:24px; }
.team-tag { display:inline-flex;border:1px solid var(--color-border-subtle);border-radius:6px;padding:3px 8px;font-size:12px;font-weight:700;letter-spacing:.7px; }
.team-details { display:grid;grid-template-columns:minmax(200px,.7fr) minmax(0,1.3fr);gap:24px; }
.team-photo-column { display:flex;flex-direction:column;gap:14px;min-width:0; }.team-photo { display:grid;place-items:center;width:100%;height:190px;border:1px dashed var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-bg-subtle);overflow:hidden; }.team-photo>svg { width:48px;height:48px;color:var(--color-text-secondary); }.team-photo>img { width:100%;height:100%;object-fit:contain; }
.team-editor .form-error { margin-bottom:16px; }.team-editor .form-error:empty { display:none; }.team-heading { margin-bottom:20px; }.team-heading .page-heading { align-items:center; }
.team-member-picker { display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(160px,1fr) minmax(120px,.6fr) auto;gap:12px;align-items:center; }.team-member-picker input,.team-member-picker select,.team-members select { min-height:44px;max-width:100%;min-width:0;width:100%;padding:10px 12px;background:var(--color-bg-surface);color:var(--color-text-primary);border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);font:inherit; }.team-members select { min-width:140px; }
.team-list-tabs { gap:8px; }.team-toolbar input { min-width:180px; }
@media(max-width:1050px) { .team-member-picker { grid-template-columns:1fr 1fr; } }
@media(max-width:700px) { .team-details { grid-template-columns:minmax(0,1fr); }.team-heading .page-heading { grid-template-columns:minmax(0,1fr); }.team-heading .profile-save-actions { align-items:flex-start; }.team-member-picker { grid-template-columns:minmax(0,1fr); }.team-editor .form-grid { grid-template-columns:minmax(0,1fr); }.team-toolbar { display:grid;grid-template-columns:minmax(0,1fr); }.team-toolbar input,.team-toolbar select { max-width:none;min-width:0; } }

/* Общий каталог медалей и достижений. */
.catalog-award-icon { width:42px;height:42px;object-fit:contain;flex-shrink:0; }.catalog-icon-wrap { display:inline-grid;place-items:center;width:44px;height:44px; }.catalog-icon-wrap svg { width:26px;height:26px;color:var(--color-action-primary); }
.award-details { display:grid;grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr);gap:24px; }.award-image-column { display:flex;flex-direction:column;gap:14px;min-width:0; }.award-image { display:grid;place-items:center;min-height:190px;border:1px dashed var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-bg-subtle);overflow:hidden; }.award-image>svg { width:56px;height:56px;color:var(--color-action-primary); }.award-image>img { max-width:100%;width:160px;height:160px;object-fit:contain; }
.awards-editor select,.awards-toolbar select { width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-bg-surface);color:var(--color-text-primary);font:inherit; }.awards-editor .form-error:empty { display:none; }.awards-toolbar input { min-width:160px; }
@media(max-width:700px) { .award-details { grid-template-columns:minmax(0,1fr); }.awards-editor .form-grid { grid-template-columns:minmax(0,1fr); }.awards-editor .profile-heading .page-heading { grid-template-columns:minmax(0,1fr); }.awards-editor .profile-save-actions { align-items:flex-start; }.awards-toolbar { display:grid;grid-template-columns:minmax(0,1fr); }.awards-toolbar input,.awards-toolbar select { max-width:none;min-width:0; } }

.awards-editor [hidden] { display:none!important; }
/* Редактор достижения: плитка иконки-кнопка, шаги ±1, блок правила автоподсчёта. */
button.award-image { width:100%;padding:16px;color:var(--color-text-secondary);font:inherit;cursor:pointer;transition:border-color .15s ease,background .15s ease; }
button.award-image.is-empty { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px; }
button.award-image.is-empty span { font-weight:600;color:var(--color-text-primary); }button.award-image small { color:var(--color-text-secondary); }
button.award-image:hover:not(:disabled) { border-color:var(--color-action-primary); }button.award-image:focus-visible { outline:2px solid var(--color-action-primary);outline-offset:2px; }button.award-image:disabled { cursor:default; }
.award-stepper .stepper { display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;gap:6px; }.award-stepper .stepper input { min-width:0; }
.stepper-button { min-height:44px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-bg-subtle);color:var(--color-text-primary);font:inherit;font-size:18px;cursor:pointer; }
.stepper-button:hover:not(:disabled) { border-color:var(--color-action-primary); }.stepper-button:disabled { opacity:.5;cursor:default; }
.award-rule { display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--color-border-subtle); }.award-rule h3 { margin:0;font-size:16px; }
.award-rule-preview { margin:0;padding:10px 12px;border-radius:var(--radius-control);background:var(--color-bg-subtle);color:var(--color-text-secondary); }.award-rule-preview strong { color:var(--color-text-primary); }
/* Доступ сотрудника: права по разделам (просмотр / редактирование). */
dialog:has(.access-editor) { width:min(860px,calc(100vw - 32px)); }
.access-editor select { width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-bg-surface);color:var(--color-text-primary);font:inherit; }
.access-head { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap; }
.access-grid { display:flex;flex-direction:column;gap:14px; }
.access-group { display:flex;flex-direction:column;gap:6px;margin:0;padding:0;border:0;min-width:0; }
.access-group legend { padding:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-secondary); }
.access-row { display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-bg-subtle); }
.access-row.is-on { border-color:color-mix(in srgb,var(--color-action-primary) 45%,var(--color-border-subtle)); }
.access-text { display:flex;flex-direction:column;gap:2px;min-width:0; }.access-text small { color:var(--color-text-secondary); }
.access-check { display:inline-flex;align-items:center;gap:6px;min-width:112px;font-size:13px;cursor:pointer; }.access-check input { width:18px;height:18px;accent-color:var(--color-action-primary); }
.access-check.is-empty { color:var(--color-text-secondary);cursor:default; }
.access-credentials { display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;margin:0; }.access-credentials dt { color:var(--color-text-secondary); }.access-credentials dd { margin:0;overflow-wrap:anywhere; }
.access-password { font-size:18px;font-weight:700;letter-spacing:.04em;user-select:all; }.access-email { display:block;margin-top:4px; }
@media(max-width:700px) { .access-row { grid-template-columns:minmax(0,1fr) auto; }.access-text { grid-column:1 / -1; }.access-check { min-width:0; } }
/* Лояльность: карточки программ с воронкой шагов, редактор шагов, правила. */
.loyalty-programs { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px; }
.loyalty-program { display:flex;flex-direction:column;gap:14px; }.club-shell .loyalty-program { padding:20px 22px;margin:0; }.loyalty-program .actions { margin-top:auto; }.loyalty-program.is-on { border-color:color-mix(in srgb,var(--color-action-primary) 40%,var(--color-border-subtle)); }
.loyalty-program-head { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }.loyalty-program-head h2 { margin:0 0 4px; }.loyalty-program-head p { margin:0; }
.loyalty-program-stats { display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--color-text-secondary); }.loyalty-program-stats b { color:var(--color-text-primary);font-size:18px; }
.loyalty-funnel { display:flex;flex-direction:column;gap:8px; }
.loyalty-funnel-row { display:grid;grid-template-columns:minmax(110px,auto) minmax(0,1fr) minmax(80px,1.2fr) auto;align-items:center;gap:10px;font-size:13px; }
.loyalty-funnel-label { font-weight:600;white-space:nowrap; }.loyalty-funnel-gift { color:var(--color-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.loyalty-funnel-bar { height:8px;border-radius:999px;background:var(--color-bg-subtle);overflow:hidden; }.loyalty-funnel-bar i { display:block;height:100%;border-radius:inherit;background:var(--color-action-primary); }
.loyalty-steps { display:flex;flex-direction:column;gap:8px;align-items:flex-start; }
.loyalty-step-row { display:grid;grid-template-columns:120px minmax(0,1fr) auto;align-items:end;gap:8px;width:100%; }
.loyalty-step-row select,.loyalty-toolbar select { width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-bg-surface);color:var(--color-text-primary);font:inherit; }
.loyalty-step-remove { min-height:44px; }.loyalty-gift-hint:empty { display:none; }.loyalty-when { display:block;margin-top:4px; }
.loyalty-toolbar { display:flex;gap:10px;flex-wrap:wrap; }.club-shell .panel > .loyalty-toolbar { padding:0 20px 14px; }.loyalty-toolbar input { flex:1;min-width:180px; }.loyalty-toolbar select { width:auto;min-width:160px; }
.loyalty-rules { margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px; }
@media(max-width:700px) { .loyalty-funnel-row { grid-template-columns:minmax(0,1fr) auto; }.loyalty-funnel-gift,.loyalty-funnel-bar { grid-column:1 / -1; }.loyalty-step-row { grid-template-columns:90px minmax(0,1fr) auto; } }
/* Уведомления в Telegram: мастер рассылки, предпросмотр сообщения, карточки авто-уведомлений. */
.notify-compose { display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:16px;align-items:start; }.notify-compose .panel { margin:0 0 16px; }
.notify-compose select,.notify-picker input,.notify-quiet select { width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-bg-surface);color:var(--color-text-primary);font:inherit; }
.notify-text { width:100%;min-height:120px;padding:12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-bg-surface);color:var(--color-text-primary);font:inherit;line-height:1.5;resize:vertical; }
.notify-text-head,.notify-text-foot { display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap; }.notify-text-head select { width:auto;min-width:200px; }
.notify-chips { display:flex;flex-wrap:wrap;gap:6px; }
.notify-chip { padding:4px 9px;border:1px solid var(--color-border-subtle);border-radius:999px;background:var(--color-bg-subtle);color:var(--color-text-primary);font:inherit;font-size:12px;cursor:pointer; }.notify-chip:hover { border-color:var(--color-action-primary); }
.notify-problem:empty { display:none; }
.notify-summary { display:grid;gap:10px;margin:0; }.notify-summary div { display:flex;justify-content:space-between;gap:10px; }.notify-summary dt { color:var(--color-text-secondary); }.notify-summary dd { margin:0; }.notify-summary strong { font-size:22px; }
.notify-phone { display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:14px;background:var(--color-bg-subtle); }.notify-phone small { color:var(--color-text-secondary);font-weight:600; }
.notify-bubble { align-self:flex-start;max-width:100%;padding:10px 12px;border-radius:12px 12px 12px 4px;background:var(--color-bg-surface);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45; }
.notify-picker-list { display:flex;flex-direction:column;gap:4px;max-height:260px;overflow:auto;padding:6px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control); }
.notify-pick { display:flex;align-items:center;gap:8px;padding:4px 2px;cursor:pointer; }.notify-pick small { margin-left:auto; }
.notify-autos { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px; }.club-shell .notify-auto { display:flex;flex-direction:column;gap:10px;padding:20px 22px;margin:0; }
.notify-auto.is-on { border-color:color-mix(in srgb,var(--color-action-primary) 40%,var(--color-border-subtle)); }.notify-auto p { margin:0; }.notify-auto .actions { margin-top:auto; }
.notify-quote { padding:10px 12px;border-left:3px solid var(--color-action-primary);border-radius:6px;background:var(--color-bg-subtle);white-space:pre-wrap;overflow-wrap:anywhere; }
.notify-sub { display:block;margin-top:3px; }.notify-template-text { max-width:520px;white-space:pre-wrap; }.notify-lead { margin:0 0 14px; }
@media(max-width:900px) { .notify-compose { grid-template-columns:minmax(0,1fr); } }
/* Ранги и сезоны: значок ранга, текущий сезон с пьедесталом, лестница и игроки по рангам. */
.rank-badge { display:inline-grid;place-items:center;flex-shrink:0;width:var(--rank-size);height:var(--rank-size); }
.rank-badge svg,.rank-badge img { width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 6px color-mix(in srgb,var(--rank-color) 35%,transparent)); }
.rank-chip { display:inline-flex;align-items:center;gap:4px;padding:2px 8px 2px 4px;border-radius:999px;background:color-mix(in srgb,var(--rank-color) 16%,transparent);color:var(--rank-color);font-size:12px;font-weight:700;white-space:nowrap; }
.club-shell .season-hero { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,1fr);gap:24px;padding:24px;margin-bottom:20px;
  background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--color-action-primary) 22%,transparent),transparent 60%),var(--color-bg-surface); }
.season-hero-main { display:flex;flex-direction:column;gap:12px;min-width:0; }.season-hero-main h2 { margin:0;font-size:30px; }.season-hero-main p { margin:0; }
.season-hero-head { display:flex;align-items:center;gap:10px; }
.season-progress { display:flex;flex-direction:column;gap:6px; }.season-progress small { color:var(--color-text-secondary); }
.season-progress-bar,.rank-bar { height:8px;border-radius:999px;background:var(--color-bg-subtle);overflow:hidden; }
.season-progress-bar i { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--color-action-primary),color-mix(in srgb,var(--color-action-primary) 55%,#fff)); }
.season-facts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }.season-facts div { display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:var(--radius-control);background:var(--color-bg-subtle); }
.season-facts b { font-size:22px; }.season-facts span { font-size:12px;color:var(--color-text-secondary); }
.season-podium { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px;min-height:250px; }
.season-step { display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0; }.season-step strong { max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.season-place { display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-weight:800;background:var(--color-bg-subtle); }
.place-1 .season-place,.season-rank-place.place-1 { background:#E7B53C;color:#2A1C00; }.place-2 .season-place,.season-rank-place.place-2 { background:#C9CED6;color:#1E2228; }.place-3 .season-place,.season-rank-place.place-3 { background:#C98A55;color:#2A1404; }
.season-points { font-weight:700; }.season-points small { font-weight:400;color:var(--color-text-secondary); }
.season-block { width:100%;border-radius:10px 10px 0 0;background:linear-gradient(180deg,color-mix(in srgb,var(--color-action-primary) 40%,transparent),color-mix(in srgb,var(--color-action-primary) 8%,transparent)); }
.place-1 .season-block { height:110px; }.place-2 .season-block { height:78px; }.place-3 .season-block { height:56px; }.season-step.is-empty .season-block { opacity:.35; }
.season-years { display:flex;gap:8px;flex-wrap:wrap;padding:0 20px 14px; }
.season-sub { display:block;margin-top:3px; }.season-leader { display:flex;flex-direction:column;align-items:flex-start;gap:3px; }.season-row-active td { background:color-mix(in srgb,var(--color-action-primary) 7%,transparent); }
.season-rank-place { display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:700;background:var(--color-bg-subtle); }
.ranks-layout { display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:16px;align-items:start; }.ranks-layout .panel { margin:0 0 16px; }
.rank-ladder { display:flex;flex-direction:column;gap:8px; }
.rank-step > .actions { grid-column:2;justify-content:flex-start; }
.ranks-side select,.rank-editor select { width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-bg-surface);color:var(--color-text-primary);font:inherit; }
.rank-step { display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 14px;padding:12px 14px;border:1px solid var(--color-border-subtle);border-left:4px solid var(--rank-color);border-radius:var(--radius-control);
  background:linear-gradient(90deg,color-mix(in srgb,var(--rank-color) 12%,transparent),transparent 55%); }
.rank-step.is-none { --rank-color:#5B6170;border-style:dashed; }
.rank-step-main { display:flex;flex-direction:column;gap:5px;min-width:0; }.rank-step-head { display:flex;justify-content:space-between;align-items:baseline;gap:10px; }
.rank-range { font-size:13px;color:var(--color-text-secondary);white-space:nowrap; }.rank-bar i { display:block;height:100%;border-radius:inherit;background:var(--rank-color,var(--color-action-primary)); }
.rank-players { display:flex;flex-direction:column;gap:6px;padding:0 20px 20px;max-height:640px;overflow:auto; }
.rank-player { display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:8px 10px;border-radius:var(--radius-control);background:var(--color-bg-subtle); }
.rank-player-main { display:flex;flex-direction:column;gap:4px;min-width:0; }
.rank-color-row { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }.rank-color-row input[type=color] { width:48px;height:44px;padding:2px;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:transparent; }
.rank-color-row input[name=color] { width:120px; }.rank-swatches { display:flex;gap:6px;flex-wrap:wrap; }
.rank-swatch { width:24px;height:24px;border:2px solid var(--color-bg-surface);border-radius:50%;cursor:pointer;box-shadow:0 0 0 1px var(--color-border-subtle); }
.rank-preview-card { display:flex;align-items:center;gap:16px;padding:16px;border-radius:14px;border:1px solid color-mix(in srgb,var(--rank-color) 45%,var(--color-border-subtle));
  background:linear-gradient(120deg,color-mix(in srgb,var(--rank-color) 20%,transparent),transparent 70%); }
.rank-preview-card div { display:flex;flex-direction:column;gap:3px; }.rank-preview-card small { color:var(--color-text-secondary); }.rank-preview-card strong { font-size:20px;color:var(--rank-color); }
@media(max-width:1100px) { .club-shell .season-hero,.ranks-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) { .season-facts { grid-template-columns:minmax(0,1fr); }.season-podium { min-height:210px; } }
.staff-card.is-archived { opacity:.92; }.staff-archive-note { margin:0 0 12px; }
