/* TEKO APP 4.0: actual interactive UI, no mockup assets. */
.sidebar{overflow:hidden}.sidebar nav{overflow-y:auto;min-height:110px;scrollbar-width:thin}.sidebar-bottom{flex-shrink:0}.sidebar .sidebar-motivation{display:none}.sidebar nav>a{padding-top:10px;padding-bottom:10px}.sidebar-team{margin-bottom:16px}.sidebar-profile{margin-top:12px}.feature-pad{padding:28px}.feature-pad>h2{font-size:24px;letter-spacing:-.6px;margin:0 0 20px}.feature-pad h3{margin-top:27px}.feature-pad p{line-height:1.65}.feature-note{font-size:12px;color:#7d7690;padding:0 24px 18px;margin:0;line-height:1.6}.feature-shortcuts{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}.feature-shortcuts a{display:flex;align-items:center;gap:10px;padding:12px 19px;background:#fff;border:1px solid #e3ddf1;border-radius:12px;color:#514267;font-size:12px;font-weight:800;transition:transform .15s,box-shadow .15s}.feature-shortcuts a:hover{transform:translateY(-2px);box-shadow:0 10px 24px #2c204610}.feature-shortcuts .icon{color:#8a68ba}.button.light{background:#f3eacd;color:#272b48}.card h2 .icon{vertical-align:middle}.screen-secret{font-family:monospace;word-break:break-all;font-size:13px;width:100%}.upgrade-card{margin-bottom:25px}.upgrade-card p{max-width:800px;line-height:1.6}.upgrade-v4-form{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin-top:20px}
/* Race replay */
.film-header{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:21px 24px;background:#1b2744;color:#f3eddc;border-radius:18px 18px 0 0;flex-wrap:wrap}.film-label{font-weight:750;font-size:14px}.film-date{font-size:22px;font-weight:850;letter-spacing:-.5px}.replay-controls{display:flex;gap:13px;align-items:center;padding:20px 24px;flex-wrap:wrap;background:#fbf9ff}.replay-controls .button{font-size:12px;min-height:44px}.replay-controls>strong{font-size:18px;color:#51436f}.replay-slider{flex:1;min-width:160px}.replay-slider input{width:100%;accent-color:#8561c8;min-height:30px;cursor:pointer}.replay-speed{display:flex;align-items:center;gap:7px;font-size:11px}.replay-speed select{min-height:42px;font-size:11px;padding:5px 10px}.film-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.film-positions{max-height:360px;overflow-y:auto}.film-rank{display:grid;grid-template-columns:30px 45px 1fr auto;align-items:center;gap:12px;padding:11px 4px;border-bottom:1px solid #ede9f3;font-size:13px}.film-rank.is-me{color:#8257b6;background:#f7f2ff}.overtake-line{padding:12px;background:#f1ecfb;border-radius:12px;font-size:13px;line-height:1.5}.overtake-line .icon{vertical-align:middle;color:#9567c7}.is-replay .racer-deluxe.race-character{transition-duration:.35s}.stage-1 .stop-1,.stage-2 .stop-1,.stage-3 .stop-1,.stage-4 .stop-1,.stage-2 .stop-2,.stage-3 .stop-2,.stage-4 .stop-2,.stage-3 .stop-3,.stage-4 .stop-3,.stage-4 .stop-4{opacity:1;filter:saturate(1)}.stage-2 .gate-left,.stage-3 .gate-left,.stage-4 .gate-left{transform:translateX(-7px)}.stage-2 .gate-right,.stage-3 .gate-right,.stage-4 .gate-right{transform:translateX(7px)}.horizontal-world .race-ground-label{bottom:12px}.world-deluxe.horizontal-world .race-lane{z-index:0}.world-deluxe .racer-marker{isolation:isolate}
/* Species-specific signature beats + selectable non-competitive rewards */
.signature-effect{position:absolute;top:-21px;right:-33px;width:57px;pointer-events:none;opacity:0;animation:signaturePop 14s ease-in-out infinite;animation-delay:var(--delay,0s);color:#f1ce83;transform-origin:0 100%}.signature-effect>svg{display:block;width:48px;height:48px;filter:drop-shadow(0 3px 8px #20354b50)}.signature-effect b{position:absolute;top:18px;left:0;font-size:8px;color:#33465a;white-space:nowrap;background:#fff4d9;border-radius:4px;padding:3px 5px;transform:rotate(-6deg)}.signature-dragon{color:#fcaa7a;animation-name:dragonPuff}.signature-lion{color:#ffd484}.signature-eagle,.signature-griffin{color:#b0e4fa}.signature-phoenix{color:#f48a66;filter:drop-shadow(0 0 8px #f7946655)}.signature-wolf{color:#b4c9e5}.signature-fox{color:#ecb889}.signature-unicorn{color:#d7c3ff}.signature-panda{animation-name:pandaCatch}.signature-tiger{color:#f3bd71}.racer-duel .signature-effect{display:none}.racer-deluxe .racer-cheer{display:none}.racer-deluxe.cosmetic-gold-frame .racer-label{border:2px solid #d7ae60;box-shadow:0 0 0 2px #fae19c55,0 5px 17px #b4a45a45}.cosmetic-aurora-balloon .balloon-sprite>svg{filter:hue-rotate(38deg) saturate(1.18)}.cosmetic-confetti-jubilee .racer-marker::after{content:'✦  ·  ✧  ·  ✦';position:absolute;top:0;right:0;left:0;color:#f5d18f;text-align:center;animation:signaturePop 8s infinite;pointer-events:none}.figure.cosmetic-gold-frame{filter:drop-shadow(0 0 5px #e0ba6f)}.figure[data-species="lion"]:is(.pose-dance,.pose-celebrate,.pose-cheer) .portrait-head{transform-origin:60px 60px;animation:lionMane 2.7s ease-in-out infinite}.figure[data-species="dragon"]:is(.pose-dance,.pose-celebrate) .upper-body{animation:dragonLean 4.5s ease-in-out infinite}.figure[data-species="panda"]:is(.pose-dance,.pose-celebrate) .upper-body{animation:pandaBalance 3.4s ease-in-out infinite}.figure:is(.pose-celebrate,.pose-dance,.pose-cheer).jubel-moonwalk{animation:moonwalk4 2.4s ease-in-out infinite}.figure:is(.pose-celebrate,.pose-dance,.pose-cheer).jubel-moonwalk .leg-left{transform-origin:54px 125px;animation:walkFeet4 .6s ease-in-out infinite}.figure:is(.pose-celebrate,.pose-dance,.pose-cheer).jubel-moonwalk .leg-right{transform-origin:73px 125px;animation:walkFeet4 .6s .3s ease-in-out infinite}.figure:is(.pose-celebrate,.pose-dance,.pose-cheer).jubel-power .arm-left{transform:rotate(145deg);transform-origin:44px 86px;animation:none}.figure:is(.pose-celebrate,.pose-dance,.pose-cheer).jubel-power .arm-right{transform:rotate(-145deg);transform-origin:84px 86px;animation:none}.figure:is(.pose-celebrate,.pose-dance,.pose-cheer).jubel-highfive .arm-right{transform-origin:83px 88px;animation:highfive4 2s infinite}.figure.pose-celebrate.jubel-signature .arm-left{transform-origin:44px 87px;animation:highfive4 2.4s infinite reverse}.figure.pose-celebrate.jubel-signature .arm-right{transform-origin:83px 87px;animation:highfive4 2.4s .3s infinite}.figure.pose-bow .signature-effect{display:none}.figure[data-species="unicorn"].pose-celebrate{filter:drop-shadow(0 0 8px #d0b2e575)}
@keyframes journeyFire{0%,100%{opacity:.4;transform:scale(.8)}45%{opacity:1;transform:scale(1.12)}}@keyframes signaturePop{0%,70%,100%{opacity:0;transform:translate(0,9px) scale(.3)}75%,82%{opacity:1;transform:translate(0,-4px) scale(1)}87%{opacity:0;transform:translate(7px,-14px) scale(.8)}}@keyframes dragonPuff{0%,60%,100%{opacity:0;transform:translateX(-20px) scale(.2)}67%,76%{opacity:1;transform:translateX(5px) scale(1.1)}80%{opacity:0;transform:translateX(20px) scale(.7)}}@keyframes pandaCatch{0%,65%,100%{opacity:0;transform:translateY(10px) rotate(0)}72%{opacity:1;transform:translateY(-17px) rotate(-25deg)}78%{opacity:1;transform:translateY(7px) rotate(15deg)}84%{opacity:0;transform:translateY(0) rotate(0)}}@keyframes moonwalk4{0%,100%{transform:translateX(8px) rotate(-3deg)}50%{transform:translateX(-12px) rotate(3deg)}}@keyframes walkFeet4{50%{transform:rotate(18deg)}}@keyframes highfive4{0%,100%{transform:rotate(-20deg)}40%,60%{transform:rotate(-150deg)}}@keyframes lionMane{0%,65%,100%{transform:rotate(0)}73%{transform:rotate(-7deg)}79%{transform:rotate(7deg)}85%{transform:rotate(-5deg)}}@keyframes dragonLean{0%,60%,100%{transform:rotate(0)}70%{transform:translate(-3px,0) rotate(-3deg)}80%{transform:translate(3px,0) rotate(3deg)}}@keyframes pandaBalance{0%,50%,100%{transform:rotate(0)}65%{transform:rotate(-5deg)}75%{transform:rotate(6deg)}85%{transform:rotate(-2deg)}}
/* Recap and trophy room */
.recap-hero{padding:38px 42px;background:radial-gradient(ellipse at 95% 45%,#75669a 0,transparent 60%),#202941;color:#f6f0e3;border-radius:25px;display:flex;align-items:center;gap:30px;margin:0 0 27px;box-shadow:0 15px 34px #25233815}.recap-hero>div:first-child{flex:1}.recap-hero h2{font-size:45px;letter-spacing:-1.8px;line-height:1.1;margin:18px 0}.recap-hero h2 span{display:block;font-size:29px;color:#d5c6ec;letter-spacing:-.8px}.recap-hero p{font-size:13px;max-width:700px;line-height:1.8;color:#e1dbe8}.recap-medal{color:#f3d495;transform:rotate(-9deg);filter:drop-shadow(0 8px 15px #0f162a60);padding:15px}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.insight-card{padding:26px;overflow:hidden}.insight-card h2{font-size:24px;letter-spacing:-.5px;line-height:1.3}.insight-number{font-size:43px;letter-spacing:-1.5px;display:block;color:#8864b2;margin:20px 0}.insight-card p{font-size:12px;color:#807a92;line-height:1.7}.insight-avatars{display:flex;min-height:160px;align-items:flex-end;justify-content:center;gap:12px;flex-wrap:wrap}.recap-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #e8e2f2;font-size:13px}.recap-line>span:first-child{display:flex;align-items:center;gap:10px}.milestone-chips{display:flex;gap:10px;flex-wrap:wrap}.trophy-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:27px}.trophy-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin-bottom:25px}.trophy-item{padding:26px 18px;background:linear-gradient(145deg,#fff9e8,#f8f3fa);border:1px solid #eee0bf;border-bottom:6px solid #c7af89;border-radius:16px;box-shadow:0 12px 0 -5px #e2d8ce;text-align:center;min-height:275px}.trophy-emblem{display:grid;place-items:center;margin:0 auto 20px;width:82px;height:82px;color:#a77836;background:radial-gradient(circle at 25% 15%,#fffcdd,#ead29a);border-radius:50%;border:3px double #c6ab79;box-shadow:0 9px 21px #aa885025}.trophy-item>small{font-size:9px;color:#8d7e72;text-transform:uppercase;letter-spacing:1px}.trophy-item h3{font-size:16px;margin:10px 0}.trophy-item p{font-size:11px;color:#827c89;line-height:1.65;min-height:38px}.trophy-item .badge{font-size:7px}.reward-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.reward-tile{position:relative;display:flex;align-items:center;flex-direction:column;gap:10px;cursor:pointer;border:2px solid #e8e2f0;background:#fbf9ff;border-radius:14px;padding:19px 14px;text-align:center}.reward-tile:has(input:checked){border-color:#aa84cd;background:#f1e8fc;box-shadow:0 0 0 3px #eadbfb66}.reward-tile.locked{opacity:.47;cursor:not-allowed}.reward-tile input{position:absolute;top:10px;left:10px;width:15px;height:15px;accent-color:#9661c2}.reward-art{color:#a780ba;display:grid;place-items:center;width:58px;height:58px;background:#eee4f5;border-radius:50%}.reward-tile b{font-size:13px}.reward-tile small{font-size:10px;font-weight:400;line-height:1.6;color:#7b728d}.reward-tile em{font-size:9px;font-style:normal;text-transform:uppercase;letter-spacing:1px;color:#786386}.trophy-preview{display:grid;place-items:center;min-height:310px;overflow:visible;background:radial-gradient(ellipse at 50% 78%,#d9cbf1,transparent 63%);padding:30px 20px 10px}.trophy-preview-card{position:sticky;top:20px}.trophy-preview-card .card-header{padding:24px 23px}.trophy-preview-card .card-header h2{font-size:18px}
/* Capture, offline and PWA */
.capture-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.85fr);gap:25px}.quick-form{padding:0 28px 28px}.quick-form .metric-input input{font-size:28px!important;min-height:48px}.quick-form .metric-form-grid{gap:14px}.template-actions{border-top:1px solid #eee7f5;display:flex;flex-wrap:wrap;gap:12px;padding-top:20px;margin-top:12px}.template-actions input{flex:1;min-width:170px}.local-consent{padding:0 24px 10px}.local-consent>p{font-size:11px;font-weight:400;color:#857c91;line-height:1.65}.local-consent .checkbox-row{font-size:12px;line-height:1.5;align-items:flex-start}.local-consent .checkbox-row input{flex-shrink:0;width:18px;min-height:18px}.draft-item{padding:19px 24px;border-top:1px solid #eee7f3;display:flex;flex-direction:column;gap:12px}.draft-item>div:first-child{display:flex;flex-direction:column;gap:7px}.draft-item b{font-size:13px}.draft-item small{font-size:11px;color:#9b7146;line-height:1.5}.draft-item>div:last-child{display:flex;gap:8px}.draft-note{padding:17px 24px;background:#f8f4e8;border-radius:0 0 17px 17px;font-size:11px;line-height:1.6;color:#7f7459}.empty-drafts{padding:24px;text-align:center;color:#a197b1;font-size:12px}.pwa-card .feature-pad{padding-top:0}.worker-update{position:fixed;bottom:17px;left:50%;transform:translateX(-50%);z-index:1000;border:0;padding:14px 20px;min-height:44px;border-radius:13px;background:#29203e;color:#fff;box-shadow:0 8px 35px #22173366;font-weight:700;font-size:12px;max-width:90vw}.offline-body{max-width:800px;margin:40px auto;padding:20px}.offline-brand{font-weight:900;display:flex;align-items:center;gap:10px;margin-bottom:24px;font-size:22px;color:#443c56}.offline-body h1{font-size:38px;line-height:1.1;letter-spacing:-1px}.offline-body p{font-size:13px;color:#83778f;line-height:1.7}.offline-body .button{margin-top:12px}.offline-body .metric-form-grid{grid-template-columns:repeat(3,1fr)}.offline-body #offline-status{font-weight:750;color:#625b39}
/* Restricted office screen */
.screen-body{background:#111b2c;color:#f1eada}.screen-login{max-width:570px;margin:7vh auto;padding:38px;background:#fbf9ff;color:#332c4a}.screen-login>img{display:block;margin-bottom:24px}.screen-login h1{font-size:37px;line-height:1.12;letter-spacing:-1px}.screen-login p{color:#8b809b;font-size:13px;line-height:1.7}.screen-header{padding:20px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #d3dbfb13}.screen-header>div{display:flex;align-items:center;gap:15px}.screen-header strong{font-size:19px;letter-spacing:-.6px}.screen-header span{font-size:12px;color:#b3afd1}.screen-header small{font-size:9px;letter-spacing:1px;color:#a4c9b4}.screen-header .button,.screen-header .icon-button{background:#25324c;color:#e3def2;border:1px solid #647a9652;min-height:38px}.screen-progress-tabs{display:flex;justify-content:center;gap:18px;padding:18px}.screen-progress-tabs button{border:0;background:none;font-size:12px;letter-spacing:.5px;color:#97a1ba;min-height:36px;padding:6px 13px;border-radius:7px}.screen-progress-tabs button.active{background:#384566;color:#ede8da}.screen-change{text-align:center;padding:12px 20px 20px;color:#e6d7aa;font-size:16px;min-height:50px}.screen-slide{margin:0 auto;width:calc(100% - 64px);max-width:1800px;border-radius:17px;overflow:hidden;background:#192740;min-height:540px}.screen-slide game-board .game-footer{background:#192740;color:#b9c5dc;border-color:#283950}.screen-slide game-board .cinema-control{display:none}.screen-slide game-board .race-character{cursor:default}.screen-team{max-width:1200px;text-align:center;margin:50px auto;padding:24px}.screen-team>span{font-size:15px;letter-spacing:3px;color:#a5b5b9}.screen-team>strong{display:block;font-size:112px;letter-spacing:-5px;line-height:1.3;color:#dfd5b7}.screen-team>strong small{font-size:26px;color:#93a3ba;letter-spacing:0}.screen-team>p{font-size:24px;color:#adcbbd}.screen-team .progress-track{height:28px;background:#2c3e58;margin:30px 0}.screen-people{display:flex;align-items:center;justify-content:center;gap:23px;flex-wrap:wrap;margin-top:48px}.screen-ranking{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:28px}.screen-ranking article{display:flex;align-items:center;gap:19px;min-height:95px;padding:10px 20px;background:#21324c;border-radius:11px}.screen-ranking b{flex:1;font-size:19px;overflow-wrap:anywhere}.screen-ranking strong{font-size:23px;color:#cfd5b8;white-space:nowrap}.screen-footer{display:flex;justify-content:space-between;gap:15px;padding:22px 35px;font-size:10px;color:#889ab2}.screen-metrics{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}.screen-metrics>span{padding:10px 18px;border:1px solid #455873;border-radius:12px;color:#bccbd2;font-size:14px}.screen-metrics b{margin-left:8px;color:#ead6ae}
@media(min-width:1700px){.screen-slide{min-height:680px}.screen-team{margin-top:80px}.screen-team>strong{font-size:150px}.screen-ranking article{min-height:120px}.screen-ranking b{font-size:26px}.screen-ranking strong{font-size:30px}}
@media(max-width:1200px){.trophy-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}.trophy-layout{grid-template-columns:minmax(0,1fr) 285px;gap:20px}.reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.capture-layout{grid-template-columns:minmax(0,1fr) minmax(290px,.85fr)}.film-bottom{grid-template-columns:1fr 1fr}.insight-grid{gap:17px}.insight-card{padding:21px}.insight-card h2{font-size:20px}.insight-number{font-size:34px}.screen-header{flex-wrap:wrap}.screen-ranking{grid-template-columns:1fr}}
@media(max-width:960px){.capture-layout,.trophy-layout{grid-template-columns:1fr}.trophy-layout>aside{order:-1}.trophy-preview-card{position:static;display:grid;grid-template-columns:1fr 1fr}.trophy-preview-card>.card-header{grid-column:span 2}.trophy-preview{min-height:245px;padding:10px}.trophy-preview>.figure{width:140px}.trophy-preview-card>form{align-self:center}.trophy-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}.reward-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recap-hero{padding:28px}.recap-medal{display:none}.recap-hero h2{font-size:38px}}
@media(max-width:760px){.sidebar nav{max-height:calc(100dvh - 265px)}.sidebar nav>a{font-size:12px;padding:11px}.feature-pad{padding:23px}.feature-pad>h2{font-size:21px}.feature-note{font-size:11px;padding:0 18px 17px}.film-header{padding:18px;gap:12px}.film-header>.badge{font-size:8px}.film-date{font-size:18px}.film-label{font-size:11px}.replay-controls{padding:15px;gap:9px}.replay-controls .button{font-size:11px}.replay-slider{width:100%;flex-basis:100%;order:3}.film-bottom,.insight-grid{grid-template-columns:1fr}.insight-card{margin-bottom:4px}.insight-avatars{min-height:110px}.recap-hero{margin-bottom:20px}.recap-hero h2{font-size:37px}.recap-hero h2 span{font-size:24px}.trophy-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}.reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trophy-item{min-height:255px}.quick-form{padding:0 20px 24px}.quick-form .form-actions{align-items:stretch}.quick-form .form-actions .button{flex:1;font-size:11px;min-width:130px}.feature-shortcuts{gap:8px}.feature-shortcuts a{font-size:11px;padding:11px 13px}.screen-slide{width:calc(100% - 24px)}.screen-header{padding:15px}.screen-header>div{flex-wrap:wrap;gap:10px}.screen-team{padding:17px;margin:30px auto}.screen-team>strong{font-size:65px;letter-spacing:-3px}.screen-team>p{font-size:16px}.screen-ranking{padding:15px}.screen-ranking article{gap:11px;padding:12px}.screen-ranking b{font-size:15px}.screen-ranking strong{font-size:17px}.screen-footer{flex-direction:column;padding:20px}.screen-login{margin:20px 14px;padding:25px}.screen-login h1{font-size:28px}.screen-progress-tabs{padding:10px;gap:5px}.screen-progress-tabs button{font-size:10px}.screen-change{font-size:12px}.offline-body{margin:10px auto;padding:15px}}
@media(max-width:420px){.trophy-preview-card{display:block}.trophy-preview-card>form{padding-top:0}.trophy-shelf{gap:13px}.trophy-item{padding:20px 12px}.trophy-item h3{font-size:14px}.trophy-item p{font-size:10px}.trophy-emblem{width:65px;height:65px}.reward-tile{padding:18px 10px}.recap-hero{padding:24px 21px}.recap-hero p{font-size:12px}.replay-controls .button{padding:10px}.replay-speed{font-size:10px}.film-header{gap:10px}.recap-line{font-size:12px}.offline-body .metric-form-grid{grid-template-columns:repeat(2,1fr)}}.motion-off .signature-effect{opacity:0}.quality-eco .signature-effect{display:none}
@media print{.feature-shortcuts,.replay-controls,.screen-header,.worker-update,.recap-hero .button{display:none!important}.recap-hero{background:#fff!important;color:#222;box-shadow:none;border:1px solid #ccc}.recap-hero h2 span,.recap-hero p{color:#444}.insight-grid,.film-bottom{display:block}.insight-card{break-inside:avoid}.insight-avatars{min-height:0}.feature-pad{break-inside:avoid}.signature-effect{display:none}.recap-hero .badge{color:#444}}
/* Keep long confirmation labels readable on narrow phones, including retry state. */
@media(max-width:470px){.quick-form .form-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.quick-form .form-actions .button{width:100%;min-width:0;white-space:normal;line-height:1.45;min-height:46px;padding:12px 15px}.quick-form .form-actions .button .icon{flex-shrink:0}.quick-form .template-actions input{min-width:0;width:100%;flex-basis:100%}}

/* CSV import */
.import-card .notice{margin:0 22px 22px}.import-drop{margin:0 22px 18px;border:2px dashed #b8a8d8;border-radius:18px;background:linear-gradient(135deg,#fbf9ff,#f4efff);padding:24px;display:flex;align-items:center;gap:18px}.import-drop input[type=file]{max-width:320px}.import-drop div{display:flex;flex-direction:column;gap:4px}.import-drop strong{font-size:14px}.import-drop span{font-size:10px;color:var(--muted)}.import-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;padding:0 20px 18px}.import-kpis>div{border:1px solid var(--line);border-radius:13px;padding:12px;background:#fbf9ff}.import-kpis small{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.7px}.import-kpis strong{display:block;font-size:20px;margin-top:4px}.import-form{padding:0 20px 20px}.import-form table select{min-width:250px}.import-progress{height:9px;border-radius:999px;background:#ece7f4;overflow:hidden}.import-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#8061e9,#43c6a8);transition:width .25s}.import-success{padding-bottom:20px}.import-success>.notice{margin:0 20px 18px}.import-success>.form-actions{padding:0 20px}.import-errors{text-align:left;max-width:700px;margin:14px auto;color:#9a4d55;font-size:10px;line-height:1.7}@media(max-width:900px){.import-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.import-drop{display:block}.import-drop input[type=file]{max-width:100%;width:100%;margin-bottom:12px}.import-kpis{grid-template-columns:repeat(2,1fr)}.import-form table select{min-width:210px}}

/* 4.5: statistics-only fields, kept separate from competition KPIs. */
.custom-metric-fields{border:1px solid var(--border,#e5e0ec);border-radius:16px;padding:18px;margin:4px 0 0;min-width:0;background:rgba(159,187,228,.07)}
.custom-metric-fields legend{font-size:15px;font-weight:750;padding:0 7px;letter-spacing:-.02em}
.custom-metric-fields>.help{margin:0 0 16px;line-height:1.6}
.custom-metric-fields .metric-form-grid{margin:0}
.custom-metric-fields .metric-input span{overflow-wrap:anywhere}
.custom-metric-admin .card-header{align-items:flex-start}
.custom-metric-admin .card-header p{max-width:680px}
.custom-metric-create{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:14px;align-items:end}
.custom-metric-create>.form-error{grid-column:1/-1}
.custom-metric-create label{min-width:0}
.custom-metric-create input{width:100%;min-width:0}
.custom-metric-list{margin-top:24px}
.custom-metric-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--border,#e5e0ec)}
.custom-metric-name{display:flex;align-items:center;gap:12px;min-width:0}
.custom-metric-name>span{display:grid;gap:4px;min-width:0}
.custom-metric-name b{overflow-wrap:anywhere}
.custom-metric-name small{color:var(--muted,#706880);font-size:12px;line-height:1.5}
.custom-metric-name .metric-icon{flex-shrink:0}
.custom-metric-row>button{flex-shrink:0}
.removed-statistics{margin-top:18px;border-top:1px solid var(--border,#e5e0ec);padding-top:18px}
.removed-statistics summary{cursor:pointer;color:var(--muted,#706880);font-weight:650;margin-bottom:10px}
.custom-statistics-summary{margin:0 0 26px}
.custom-statistics-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 14px}
.custom-statistics-heading h2{font-size:19px;margin:0}
.custom-statistics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.custom-statistics-grid .kpi-card{min-width:0}
.custom-statistics-grid .kpi-top>span{overflow-wrap:anywhere;white-space:normal}
@media(max-width:640px){.custom-metric-create{grid-template-columns:1fr}.custom-metric-create>.button{width:100%}.custom-metric-row{align-items:flex-start;flex-wrap:wrap}.custom-metric-row>button{margin-left:52px}.custom-metric-fields{padding:13px}.custom-statistics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:360px){.custom-statistics-grid{grid-template-columns:1fr}}
