@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:Manrope,Arial,sans-serif;color:#102b20;background:#ecd9b0;font-synthesis:none;--green:#0b5031;--deep:#113e2d;--gold:#b9a16a;--line:#cec5ac;--paper:#faf7ef;--muted:#626b63}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 55% 5%,#f3e7cd,transparent 65%),#ecd9b0;min-height:100vh}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit}svg{width:24px;height:24px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}:focus-visible{outline:3px solid #b89542;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,2.6vw,39px);font-weight:800;letter-spacing:-1.1px;line-height:1.2}h2{font-size:23px;font-weight:800;letter-spacing:-.6px;line-height:1.3}h3{font-size:17px}small{font-size:12px}.mobile-header{display:none}.brand{display:flex;align-items:center;gap:14px;text-decoration:none}.brand img{object-fit:contain}.brand strong{display:block;letter-spacing:-.5px;font-size:29px;line-height:1.2;font-weight:800}.brand small{display:block;font-size:16px;margin-top:4px}.admin-sidebar{position:fixed;inset:0 auto 0 0;width:246px;z-index:30;padding:28px 12px 20px;background:radial-gradient(ellipse at 15% 30%,#24563e66,transparent 70%),#133e2e;color:#fff;display:flex;flex-direction:column;border-right:0}.admin-sidebar .brand{padding:0 7px 25px;gap:12px}.admin-sidebar .brand strong{font-size:27px}.admin-sidebar .brand small{font-size:15px}.admin-sidebar nav{display:grid;gap:4px;margin-top:9px}.sidebar-link{display:flex;align-items:center;gap:19px;background:none;color:inherit;border:0;border-radius:11px;padding:14px 16px;text-align:left;font-size:17px;min-height:52px;font-weight:500}.sidebar-link svg{width:25px;height:25px}.sidebar-link:hover{background:#ffffff12}.sidebar-link.active{background:#ead29d;color:#0b2b20;font-weight:800;box-shadow:0 2px 8px #0000000c}.sidebar-site{display:flex;gap:15px;align-items:center;margin-top:auto;border-top:0;padding:22px 12px 0;text-decoration:none;font-size:17px}.admin-content{margin-left:246px;padding:29px 25px 0;max-width:1900px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.page-heading>div>p:last-child{font-size:17px;margin-top:4px}.eyebrow{font-size:10px!important;letter-spacing:2px;font-weight:800;color:#647450;margin-bottom:6px}.telegram-profile{position:relative;max-width:330px;flex-shrink:0}.telegram-profile summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer}.telegram-profile summary::-webkit-details-marker{display:none}.telegram-profile summary>span:nth-last-child(2){min-width:0}.telegram-profile strong{font-size:16px;display:block;overflow-wrap:anywhere}.telegram-profile small{font-size:13px;display:block;color:#4e5c4f;margin-top:3px}.profile-avatar,#profile-photo{width:44px;height:44px;object-fit:cover;border-radius:50%;background:#174b34;color:#fff;display:grid;place-items:center;font-weight:800;font-size:15px;border:2px solid #fcf7e4}.profile-dropdown{position:absolute;right:0;top:58px;background:var(--paper);padding:20px;z-index:40;min-width:265px;border:1px solid var(--gold);border-radius:14px;box-shadow:0 10px 35px #173f2c24}.profile-dropdown p{font-size:13px;margin:9px 0;overflow-wrap:anywhere}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:16px}.metric{background:#fcfaf0dc;border:1px solid var(--gold);border-radius:14px;display:flex;align-items:center;gap:22px;padding:16px 22px;min-height:86px;box-shadow:0 2px 3px #4a310708}.metric svg{color:var(--green);height:38px;width:38px}.metric span{font-size:14px;display:block;color:#18271c}.metric strong{font-size:29px;line-height:1.12;display:block;font-weight:800;letter-spacing:-.6px}.panel{background:#fcfaf3ed;border:1px solid var(--gold);border-radius:16px;padding:20px;box-shadow:0 2px 4px #523e1010}.grants-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(275px,1fr);gap:16px;align-items:stretch}.operation-panel h2{margin-bottom:15px}.operation-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f0eddd;border:1px solid #d5ceb6;border-radius:10px;overflow:hidden;margin-bottom:17px}.operation-tabs button{border:0;border-right:1px solid #d5ceb6;padding:9px 5px;background:none;min-height:39px;color:#101c13;font-weight:600}.operation-tabs button:last-child{border-right:0}.operation-tabs button.active{color:white;background:linear-gradient(110deg,#075433,#114a30);border-radius:9px;font-weight:800;box-shadow:0 1px 4px #153c2922}.field{margin-bottom:13px}.field label,.player-search label,.admin-form-grid>div>label{display:block;font-size:14px;font-weight:800;margin-bottom:5px}input:not([type=checkbox]),textarea,select{width:100%;min-width:0;border:1px solid #8f9585;border-radius:8px;background:#fffdf8b0;color:#111e17;padding:8px 12px;min-height:39px;font-weight:600;font-size:15px}textarea{display:block;resize:vertical;max-height:160px;line-height:1.45}select{appearance:auto}input[type=checkbox]{accent-color:var(--green)}.ids-control{display:flex;align-items:stretch;gap:12px}.ids-control textarea{flex:1;width:0;min-width:0}.quiet-button,.blue-button,.buy,.quick-resource button,.quick-actions button{border:1px solid #355a3e;border-radius:8px;padding:9px 15px;background:#fbfaf0;color:#103b27;font-weight:800;line-height:1.3;min-height:38px}.quiet-button:hover,.quick-resource button:hover,.quick-actions button:hover{background:#e8ead7}.blue-button,.buy{background:linear-gradient(110deg,#075433,#0b4b2d);border-color:#08452b;color:#fff}.blue-button:hover,.buy:hover{background:#17623f}.field-help{font-size:12px;line-height:1.55;color:#596359;margin:4px 0 0}.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.admin-form-grid .full{grid-column:1/-1}.quick-resource{margin:0 0 14px}.quick-resource>span{display:block;font-size:12px;margin-bottom:5px}.quick-resource>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.quick-resource button{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;padding:7px 4px;min-height:32px;border-color:#8d9b80;font-weight:700;white-space:nowrap}.quick-resource button svg{width:19px;height:19px}.quick-resource button.active{background:#dce8c4;border-color:var(--green)}.notify-switch{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;cursor:pointer;margin:15px 0}.notify-switch input{position:absolute;opacity:0;width:1px;height:1px}.switch-track{width:42px;height:23px;border-radius:20px;background:#91998b;padding:2px;transition:background .2s;flex-shrink:0;box-shadow:inset 0 0 0 1px #163a2733}.switch-track:after{content:'';display:block;background:#fff;width:19px;height:19px;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .2s}.notify-switch input:checked+.switch-track{background:var(--green)}.notify-switch input:checked+.switch-track:after{transform:translateX(19px)}.notify-switch input:focus-visible+.switch-track{outline:3px solid #b89542;outline-offset:3px}#admin-rights{font-size:11px;margin-bottom:12px}.operation-footer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px 18px;padding:9px 12px;background:#e5e5cb;border-radius:10px;margin-top:8px}.operation-footer strong{font-size:16px;overflow-wrap:anywhere}.operation-footer button{min-width:225px;font-size:16px;padding:9px 16px}.operation-footer small{grid-column:1/-1;text-align:right;font-size:11px;color:#4c5548}.operation-aside{display:flex;flex-direction:column;gap:14px;min-width:0}.operation-aside>.panel{flex:1}.operation-aside h2{font-size:21px}.recipients-panel>p{font-size:13px;line-height:1.5;color:var(--muted);margin:15px 0}.section-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.section-top h2{margin:0}.check-badge{font-size:10px;white-space:nowrap;background:#dfedca;border-radius:20px;padding:5px 8px;color:#245322}.recipient-row{display:flex;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #ded7c4}.recipient-row:last-child{border-bottom:0}.recipient-initials{height:35px;width:40px;border-radius:9px;background:#e5e7d4;display:grid;place-items:center;color:#275538;font-weight:800}.recipient-row strong{flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere}.recipient-row small{font-size:12px}.recipient-check{background:#327d2f;border-radius:50%;color:#fff;width:21px;height:21px;display:grid;place-items:center;font-size:13px}.quick-actions{display:grid;gap:10px;margin-top:12px}.quick-actions button{display:flex;align-items:center;text-align:left;gap:16px;font-size:14px;font-weight:600;border-color:#98a084;background:#f5f4e7}.quick-actions button span{margin-left:auto;font-size:23px;font-weight:400;line-height:1}.recent-panel{margin-top:16px;padding:17px 16px}.recent-panel .section-top{margin:0 0 10px}.recent-panel .quiet-button{font-size:12px;min-height:30px;padding:5px 12px}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{background:#e2e3c9;padding:9px 12px;white-space:nowrap;font-size:12px}th:first-child{border-radius:8px 0 0 8px}th:last-child{border-radius:0 8px 8px 0}td{padding:12px;border-bottom:1px solid #d6d1bc;vertical-align:top;overflow-wrap:anywhere}.table-scroll{overflow:auto}td:last-child{min-width:150px}.action-tag{display:inline-block;padding:3px 12px;background:#d2e5b6;border-radius:7px;font-weight:800;white-space:nowrap}.action-tag.take{background:#f7d4c7}.action-tag.ban{background:#efc4bf}.management-panel{margin-top:18px}.management-panel>p{margin:10px 0;line-height:1.6;font-size:14px}.management-panel h2{margin-bottom:15px}.product-admin-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-bottom:1px solid var(--line);padding:22px 0}.product-admin-row>strong{grid-column:1/-1}.product-admin-row label{font-size:13px;font-weight:700;display:grid;gap:5px}.product-admin-row .check{display:flex;align-items:center}.product-admin-row input[type=checkbox]{width:20px;height:20px}.log-entry,.player-card{padding:17px;background:#fffdf8;border:1px solid #c7c6ab;border-radius:12px;margin:12px 0}.log-entry p,.log-entry summary{font-size:13px;line-height:1.6;margin:6px 0}.logs-controls{display:flex;gap:10px;margin-top:15px}.player-search>div{display:flex;gap:12px}.player-search input{flex:1;min-width:0}.player-card h3{margin-bottom:10px}.player-values{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.player-values span{font-size:12px;color:var(--muted)}.player-values strong{display:block;font-size:17px;color:#163d28;margin-top:4px}.statistics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0 25px}.statistics-card{border:1px solid var(--line);padding:16px;border-radius:10px;background:#fffdf8}.statistics-card h3{font-size:12px;font-weight:500}.statistics-card strong{display:block;font-size:22px;margin-top:9px}.statistics-unavailable{opacity:.6}.statistics-controls{display:flex;justify-content:space-between;gap:15px;margin-bottom:20px;font-size:13px}.statistics-note{font-size:12px!important;color:var(--muted)}.overview-links{display:flex;gap:12px;margin-top:20px}.admin-preview{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.admin-preview h2{font-size:19px}.admin-preview .buy{margin-top:15px}.admin-preview .field-help{margin:10px 0}.admin-status{position:fixed;bottom:16px;right:20px;max-width:min(460px,calc(100vw - 40px));background:#fbfaf0;border:1px solid #b6c39d;box-shadow:0 5px 25px #223c2520;border-radius:12px;padding:13px 17px;font-size:12px;line-height:1.6;z-index:45}.admin-status:empty{display:none}.admin-status.error{border-color:#b5674c;color:#94391f}.login-card{max-width:470px;margin:12vh auto 50px;padding:35px;display:grid;justify-items:center;text-align:center;gap:17px}.login-card h1{font-size:28px}.login-card p:not(.eyebrow){font-size:14px;line-height:1.6;color:var(--muted)}.login-card .blue-button{width:100%;min-height:48px}.login-card small{color:var(--muted)}.login-card>a{font-size:13px}footer{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#69745b;padding:23px 0}#recent-status{font-size:13px;color:var(--muted);margin:10px 0}.sidebar-backdrop{display:none}
@media(min-width:1700px){.admin-content{padding:35px 35px 0}.grants-layout{gap:22px}.operation-panel{padding:26px}.quick-resource button{font-size:13px}.field label{font-size:15px}input:not([type=checkbox]),textarea,select{font-size:16px;min-height:43px}.operation-tabs button{min-height:43px}.field{margin-bottom:18px}.quick-resource{margin-bottom:19px}}
@media(max-width:1190px) and (min-width:761px){.admin-sidebar{width:210px}.admin-sidebar .brand strong{font-size:22px}.admin-sidebar .brand img{width:49px;height:49px}.sidebar-link{font-size:15px;gap:13px}.admin-content{margin-left:210px;padding:24px 18px 0}.grants-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}.panel{padding:15px}.quick-resource>div{grid-template-columns:repeat(3,1fr)}.operation-footer{grid-template-columns:1fr}.operation-footer small{text-align:center}.operation-footer button{width:100%;min-width:0}.page-heading h1{font-size:28px}.telegram-profile{max-width:230px}.telegram-profile strong{font-size:14px}.metric{gap:12px;padding:15px}.metric span{font-size:12px}.ids-control{flex-wrap:wrap}.ids-control textarea{width:100%;flex-basis:100%}.ids-control button{width:100%}.operation-aside h2{font-size:18px}.recipient-row{gap:7px}.recipient-initials{display:none}}
@media(max-width:760px){body{padding-bottom:0}.mobile-header{height:78px;background:linear-gradient(100deg,#14452e,#103e2d);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px 22px}.mobile-header .brand img{width:54px;height:54px}.mobile-header .brand strong{font-size:26px}.mobile-header .brand small{font-size:16px}.mobile-header .brand{gap:16px}#admin-menu{border:0;background:none;padding:8px;display:grid;gap:6px;color:white}#admin-menu span{width:29px;height:3px;background:currentColor;border-radius:3px}.admin-sidebar{inset:0 0 0 auto;transform:translateX(100%);visibility:hidden;transition:transform .2s,visibility .2s;width:268px;max-width:100vw}.admin-sidebar.open{transform:translateX(0);visibility:visible}.sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:29;background:#051b13a6;border:0}.admin-content{margin:0;padding:20px 20px 0}.page-heading{align-items:flex-start;gap:10px;margin-bottom:17px}.page-heading h1{font-size:31px;letter-spacing:-1px}.page-heading>div>p:last-child{font-size:17px}.page-heading .eyebrow{display:none}.telegram-profile{max-width:150px;padding-top:3px}.telegram-profile summary{gap:7px}.telegram-profile summary>span:nth-last-child(2){display:none}.telegram-profile summary>svg{width:16px}.profile-avatar,#profile-photo{height:37px;width:37px}.profile-dropdown{top:47px;right:0}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid var(--gold);border-radius:15px;background:#fcfaf1;margin-bottom:18px;padding:11px 0}.metric{border:0;border-radius:0;background:none;box-shadow:none;padding:3px 18px;min-height:58px;gap:14px}.metric:first-child{border-right:1px solid #d3c7aa}.metric:nth-child(2){display:none}.metric svg{height:31px;width:31px}.metric span{font-size:13px}.metric strong{font-size:26px}.grants-layout{display:flex;flex-direction:column;gap:15px}.panel{border-radius:16px;padding:19px}h2{font-size:24px}.operation-panel h2{margin-bottom:16px}.operation-tabs{margin-bottom:15px}.operation-tabs button{font-size:16px;min-height:45px}.ids-control{display:flex;flex-direction:column;gap:11px}.ids-control textarea{width:100%;flex:auto}.ids-control button{width:100%;font-size:16px;min-height:43px}.field{margin-bottom:14px}.field label{font-size:15px}input:not([type=checkbox]),textarea,select{font-size:17px;min-height:42px;padding:8px 12px}.field-help{font-size:12px}.admin-form-grid{grid-template-columns:1fr;gap:0}.quick-resource>span{display:none}.quick-resource>div{grid-template-columns:repeat(3,1fr);gap:9px}.quick-resource button{font-size:12px;gap:7px;min-height:38px}.quick-resource button svg{height:20px;width:20px}.notify-switch{font-size:14px;margin:17px 0}.switch-track{width:46px;height:26px;padding:2px}.switch-track:after{width:22px;height:22px}.notify-switch input:checked+.switch-track:after{transform:translateX(20px)}.operation-footer{grid-template-columns:1fr;background:#fbf9ef;position:sticky;bottom:0;padding:12px 0 0;z-index:5;border-radius:0;margin-top:15px}.operation-footer strong{font-size:19px}.operation-footer button{width:100%;min-width:0;font-size:19px;min-height:47px}.operation-footer small{text-align:center;font-size:12px}.operation-aside{gap:15px}.operation-aside>.panel h2{font-size:22px}.operation-aside>.panel{padding:17px 19px}.recipient-row{padding:10px 0}.recipient-row strong{font-size:15px}.recipient-row small{font-size:12px}.recipient-initials{width:35px;height:31px}.recent-panel{margin-top:16px}.recent-panel .section-top{gap:8px}.recent-panel .section-top h2{font-size:23px}.recent-panel .quiet-button{padding:3px 0;min-height:24px;border:0;background:none;text-decoration:underline;font-size:13px;white-space:nowrap}.recent-table thead{display:none}.recent-table,.recent-table tbody{display:block}.recent-table tr{display:grid;grid-template-columns:1fr auto;gap:7px;border:1px solid #b8b89a;border-radius:13px;padding:14px;margin:12px 0}.recent-table td{display:block;border:0;padding:0;min-width:0}.recent-table td:first-child{grid-row:4;grid-column:1/-1;font-size:12px;color:var(--muted)}.recent-table td:nth-child(2){grid-row:1;grid-column:1}.recent-table td:nth-child(3){grid-row:3;grid-column:1/-1}.recent-table td:nth-child(4){grid-row:2;grid-column:1/-1;font-size:18px;font-weight:800}.recent-table td:nth-child(5){grid-row:1;grid-column:2;color:var(--muted);font-size:11px}.recent-table td:nth-child(6){grid-row:5;grid-column:1/-1;color:var(--muted)}.product-admin-row{grid-template-columns:1fr}.statistics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-card{padding:12px}.statistics-card strong{font-size:19px}.player-values{grid-template-columns:repeat(2,1fr)}.player-search>div{flex-wrap:wrap}.player-search input{flex-basis:100%}.player-search button{width:100%}.statistics-controls{flex-wrap:wrap}.admin-status{bottom:9px;right:12px;max-width:calc(100vw - 24px);font-size:11px;padding:10px 13px}.admin-status:not(.error){pointer-events:none;opacity:.96}.login-card{margin:40px 20px;max-width:none;padding:30px 23px}.login-card h1{font-size:25px}.login-card>img{display:none}footer{font-size:10px}.overview-links{flex-direction:column}}
#admin-rights{display:none}.brand img{border-radius:50%;border:2px solid #eddbab;padding:3px;background:#173e2c}#profile-detail-name{font-size:18px}.profile-dropdown #admin-role{font-size:12px;color:var(--muted);margin-top:14px}#profile-link{display:block;font-size:13px;margin-top:5px}
@media(max-width:760px){.operation-footer{position:static;inset:auto;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0 0;margin-top:20px;background:transparent;box-shadow:none;z-index:auto}.admin-status{bottom:12px}}
.broadcast-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,1fr);gap:22px}.broadcast-grid>.panel,.broadcast-aside{min-width:0}.broadcast-aside{display:grid;align-content:start;gap:20px}.broadcast-view h2{margin-bottom:18px}.broadcast-view .section-top h2{margin-bottom:0}.broadcast-audience{padding:6px 10px;border-radius:20px;background:#e6ebce;color:var(--green);white-space:nowrap}.broadcast-view textarea{min-height:150px;resize:vertical}.broadcast-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:7px;background:#f0eddf;border:1px solid #a8b093;border-bottom:0;border-radius:8px 8px 0 0}.broadcast-toolbar button{border:0;border-radius:4px;padding:6px 9px;background:transparent;color:inherit;font-size:13px}.broadcast-toolbar button:hover{background:#dfe5cb}.broadcast-toolbar+textarea{border-radius:0 0 8px 8px}.broadcast-check{display:flex;align-items:center;gap:9px;margin:10px 0 20px;font-size:14px}.broadcast-check input{accent-color:var(--green);width:17px;height:17px}.broadcast-options{margin:12px 0 20px}.broadcast-options summary{cursor:pointer;font-weight:600;font-size:14px;margin-bottom:12px}.broadcast-button-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 35px;gap:8px;margin-bottom:9px}.broadcast-button-row input{min-width:0}.broadcast-button-row button{min-width:0;padding:4px}.telegram-preview{background:#e6e9d9;padding:18px;border-radius:14px}.telegram-preview #broadcast-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#fffdf6;padding:16px;border-radius:12px;min-height:90px;font-size:14px;line-height:1.6}.telegram-preview a{color:#24799b;text-decoration:underline}.telegram-preview blockquote{border-left:3px solid var(--green);margin:4px 0;padding-left:10px}.telegram-preview code{background:#e8e6d8;padding:2px 4px;border-radius:4px}.telegram-preview pre{white-space:pre-wrap}.preview-spoiler{background:#566b57;color:#566b57;border-radius:3px}.preview-spoiler:hover{color:white}#broadcast-preview-buttons>div{text-align:center;padding:10px;margin-top:5px;background:#d8dfc7;border-radius:5px;font-size:14px}.broadcast-history{margin-top:22px}.broadcast-job{display:grid;gap:8px;border-top:1px solid #c8cbb2;padding:18px 0}.broadcast-job small{color:var(--muted)}.broadcast-job p{font-size:13px;line-height:1.5;margin:0}.broadcast-job progress{width:100%;height:9px;accent-color:var(--green)}.broadcast-job-error{color:#94391f}.broadcast-view [role=status]{font-size:13px;line-height:1.5;margin-top:12px}.broadcast-view label small{font-weight:400;color:var(--muted);font-size:11px;margin-left:5px}.broadcast-view form>.blue-button{width:100%;min-height:44px}.broadcast-view .admin-form-grid{gap:12px}
@media(max-width:1000px){.broadcast-grid{grid-template-columns:1fr}.broadcast-aside{grid-template-columns:1fr 1fr}.broadcast-button-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 35px}}
@media(max-width:760px){.broadcast-aside{grid-template-columns:1fr}.broadcast-grid{gap:16px}.broadcast-grid>.panel{padding:18px}.broadcast-view .admin-form-grid{grid-template-columns:1fr}.broadcast-view h2{font-size:22px}.broadcast-button-row{grid-template-columns:minmax(0,1fr) 35px}.broadcast-button-row input[name=url]{grid-row:2;grid-column:1}.broadcast-button-row button{grid-column:2;grid-row:1/3}.broadcast-audience{font-size:11px}.broadcast-view label small{display:block;margin:3px 0 0}body:has(#admin-broadcast:not([hidden])){padding-bottom:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

.admin-sidebar{overflow-y:auto}
html.admin-menu-open{overflow:hidden;overscroll-behavior:none}
html.admin-menu-open body{position:fixed;top:var(--admin-menu-scroll-top,0);left:0;right:0;width:100%;overflow:hidden}
.sidebar-backdrop{touch-action:none}
.admin-sidebar{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.broadcast-inline-editor{padding:16px;margin:14px 0;border:1px solid var(--line);border-radius:12px;background:#f1eddf}.broadcast-inline-editor>strong{display:block;margin-bottom:14px}.broadcast-inline-actions{display:flex;flex-wrap:wrap;gap:10px}.broadcast-inline-actions button{min-height:42px}.broadcast-inline-editor [role=status]{color:#94391f}
.broadcast-button-row{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(105px,.7fr) 35px}.broadcast-button-row select{min-width:0;font-size:13px}
.telegram-preview{padding:0;overflow:hidden;border:1px solid #c9d5dc;border-radius:15px;background:#d9e5df;color:#152b38;font-family:Arial,sans-serif}.telegram-chat-header{display:flex;align-items:center;gap:11px;padding:13px 16px;background:#f6fafc;border-bottom:1px solid #c9d5dc}.telegram-chat-avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#215844;color:white;font-size:12px;font-weight:700}.telegram-chat-header strong{display:block;font-size:15px}.telegram-chat-header small{display:block;margin-top:3px;font-size:12px;color:#788b96}.telegram-chat-body{padding:22px 16px 26px;background:radial-gradient(circle at 15% 20%,#ffffff50 0 2px,transparent 3px),radial-gradient(circle at 70% 70%,#7d9c8730 0 3px,transparent 4px),#d9e5df;background-size:43px 43px,67px 67px,auto}
.telegram-message{position:relative;background:#fff;border-radius:12px 12px 12px 3px;padding:12px;box-shadow:0 1px 2px #2647351c}.telegram-message:before{content:'';position:absolute;bottom:0;left:-7px;border:7px solid transparent;border-bottom-color:#fff;border-right-color:#fff}.telegram-preview #broadcast-preview{background:transparent;padding:0;border-radius:0;min-height:44px;line-height:1.5;font-size:15px;color:#152b38}.telegram-message-meta{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin-top:6px;font-size:10px;color:#8b9aa4}.telegram-message-meta span{color:#54a9cf;font-size:13px}#broadcast-preview-media img,#broadcast-preview-media video{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:8px;margin-bottom:10px}#broadcast-preview-buttons{display:grid;gap:5px;margin-top:5px}#broadcast-preview-buttons>div{margin:0;background:#ffffffa8;color:#26729b;border:1px solid #ffffffa0;border-radius:7px;padding:11px;font-size:14px;font-weight:600;overflow-wrap:anywhere}.telegram-preview .telegram-inline-button{display:inline-block;vertical-align:baseline;max-width:100%;padding:4px 10px;margin:2px 1px;border-radius:7px;background:#e5f0fa;color:#28729d;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.telegram-preview [data-style=primary],#broadcast-preview-buttons>[data-style=primary]{background:#428ad6;color:#fff;border-color:#428ad6}.telegram-preview [data-style=success],#broadcast-preview-buttons>[data-style=success]{background:#329b62;color:#fff;border-color:#329b62}.telegram-preview [data-style=danger],#broadcast-preview-buttons>[data-style=danger]{background:#d65055;color:#fff;border-color:#d65055}
@media(max-width:1000px){.broadcast-button-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 105px 35px}}@media(max-width:760px){.broadcast-button-row{grid-template-columns:minmax(0,1fr) 105px 35px}.broadcast-button-row input[name=text]{grid-column:1/3}.broadcast-button-row input[name=url]{grid-row:2;grid-column:1}.broadcast-button-row select{grid-row:2;grid-column:2}.broadcast-button-row button{grid-column:3;grid-row:1/3}.telegram-chat-body{padding:18px 12px 22px}}

.players-management{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(440px,1.6fr);gap:22px;align-items:start;margin-top:18px}.players-management #players-list{min-width:0}.players-management .player-card{margin:0 0 12px;padding:17px}.players-management .player-card.selected{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.players-management .player-values{grid-template-columns:1fr 1fr;gap:13px}.players-management .player-card>button{width:100%;margin-top:17px}.player-editor{min-width:0;border:1px solid #c6c7a7;border-radius:15px;padding:20px;background:#fffdf6;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto;scrollbar-gutter:stable}.player-editor h2{font-size:23px;margin-bottom:5px;overflow-wrap:anywhere}.editor-heading{display:flex;gap:12px;align-items:start;justify-content:space-between;margin-bottom:15px}.editor-heading>div{min-width:0}.editor-heading>button{font-size:12px;min-height:32px;padding:6px 10px}.editor-club{font-size:13px;margin-bottom:15px}.editor-group{border-top:1px solid #d8d8c2;padding:14px 0}.editor-group>summary{font-size:15px;font-weight:750;cursor:pointer}.editor-group[open]>summary{margin-bottom:16px}.editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px}.editor-fields .field{min-width:0;margin-bottom:12px}.editor-fields label{font-size:12px;font-weight:650;display:block;margin-bottom:5px}.editor-fields input,.editor-fields select{min-width:0;width:100%;font-size:14px}.editor-fields .editor-boolean{display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-end;gap:9px;min-height:48px}.editor-boolean label{margin:0}.editor-boolean input{height:18px;width:18px;accent-color:var(--green)}.editor-footer{position:sticky;bottom:-20px;background:#fffdf6;display:flex;gap:9px;align-items:center;padding:15px 0 0;border-top:1px solid #d8d8c2;z-index:1}.editor-footer span{font-size:11px;color:var(--muted);flex:1}.editor-footer button{font-size:14px;min-width:105px}.editor-footer button:disabled{opacity:.5;cursor:default}.editor-reason{margin-top:14px}.editor-reason input{font-size:13px}.editor-collection-list{max-height:380px;overflow:auto;margin:12px 0}.editor-inventory-row{display:grid;grid-template-columns:minmax(0,1fr) 85px 30px;gap:9px;align-items:center;border-bottom:1px solid #e0dfcb;padding:10px 0}.editor-inventory-row strong{display:block;font-size:12px;overflow-wrap:anywhere}.editor-inventory-row small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.editor-inventory-row input{font-size:13px;padding:7px}.editor-inventory-row button{padding:4px;min-width:0}.editor-add-row{display:flex;gap:9px;margin-top:12px}.editor-add-row input,.editor-add-row select{min-width:0;flex:1}.editor-add-row button{flex-shrink:0;font-size:12px}.editor-title-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-bottom:1px solid #dddcc7;padding:10px 0;margin-bottom:12px}.editor-title-row input{min-width:0;font-size:13px}.editor-title-row .broadcast-check{margin:0;font-size:12px}.editor-season{border:1px solid #dbdbc3;border-radius:10px;padding:12px;margin-bottom:12px}.editor-season h3{font-size:14px;margin-bottom:12px}.editor-season .broadcast-check{font-size:13px;margin-bottom:0}#player-editor-status{font-size:13px;line-height:1.5;margin:12px 0}#player-editor-status.error{color:#94391f}
@media(max-width:1150px){.players-management{grid-template-columns:1fr}.players-management #players-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.player-editor{position:static;max-height:none;overflow:visible}.editor-footer{bottom:0;padding-bottom:12px}.players-management .player-card{margin:0}}
@media(max-width:760px){.players-management{gap:15px}.players-management #players-list{grid-template-columns:1fr}.player-editor{padding:15px}.editor-fields{grid-template-columns:1fr}.editor-footer{flex-wrap:wrap}.editor-footer span{flex-basis:100%}.editor-footer button{flex:1}.editor-title-row{grid-template-columns:1fr}.editor-add-row{flex-wrap:wrap}.editor-add-row>*{width:100%}.editor-inventory-row{grid-template-columns:minmax(0,1fr) 70px 28px}.editor-heading{gap:8px}.player-editor h2{font-size:21px}body:has(#admin-players:not([hidden])){padding-bottom:0}}

.players-management:has(#players-list:empty){grid-template-columns:minmax(0,1fr)}
.players-management #players-list:empty{display:none}
.players-management:has(#players-list:empty) .player-editor{position:static;max-height:none;overflow:visible;scrollbar-gutter:auto}
@media(max-width:760px){.editor-footer{position:static}.editor-footer button{min-width:0}}

@media(max-width:760px){.operation-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
.broadcast-button-builder{margin:20px 0 24px;padding:18px;border:1px solid #d5ceb6;border-radius:12px;background:#f5f1e5}
.broadcast-button-builder h3{font-size:16px;margin-bottom:5px}
.broadcast-button-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}
.broadcast-button-types .quiet-button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:13px 10px;background:#fffdf8;border-color:#d5ceb6;text-align:left;min-width:0}
.broadcast-button-types .quiet-button:hover{border-color:var(--green);background:#edf2e5}
.broadcast-button-types strong{font-size:13px}
.broadcast-button-types small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.4}
.button-type-sample{display:flex;align-items:center;gap:4px;height:23px;width:100%;max-width:100px;color:#657264;font-size:9px;font-weight:400;white-space:nowrap}
.button-type-sample i{display:block;flex:1;height:17px;border:1px solid #93b09c;border-radius:4px;background:#dce9dc}
.button-type-inline i{max-width:30px;height:13px;background:#dcebf5;border-color:#9fbdd0}
.broadcast-button-builder .broadcast-button-row{grid-template-columns:82px minmax(0,1fr) 110px 34px;padding:12px;background:#fffdf8;border:1px solid #d5ceb6;border-radius:10px;gap:8px;margin:10px 0}
.broadcast-button-builder .broadcast-button-row select[name=row]{grid-column:1;grid-row:1}
.broadcast-button-builder .broadcast-button-row input[name=text]{grid-column:2;grid-row:1}
.broadcast-button-builder .broadcast-button-row select[name=style]{grid-column:3;grid-row:1}
.broadcast-button-builder .broadcast-button-row input[name=url]{grid-column:1/4;grid-row:2}
.broadcast-button-builder .broadcast-button-row button{grid-column:4;grid-row:1/3}
#broadcast-buttons-error{color:#94391f}
#broadcast-preview-buttons>.telegram-keyboard-row{display:flex;gap:5px;padding:0;background:transparent;border:0;min-width:0}
.telegram-keyboard-row .telegram-keyboard-button{flex:1;min-width:0;padding:11px 7px;border-radius:7px;background:#ffffffa8;border:1px solid #ffffffa0;color:#26729b;text-align:center;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.telegram-keyboard-row .telegram-keyboard-button[data-style=primary]{background:#428ad6;color:#fff;border-color:#428ad6}
.telegram-keyboard-row .telegram-keyboard-button[data-style=success]{background:#329b62;color:#fff;border-color:#329b62}
.telegram-keyboard-row .telegram-keyboard-button[data-style=danger]{background:#d65055;color:#fff;border-color:#d65055}
@media(max-width:760px){.broadcast-button-builder{padding:12px}.broadcast-button-types{gap:6px}.broadcast-button-types .quiet-button{padding:10px 8px}.broadcast-button-types strong{font-size:12px}.broadcast-button-builder .broadcast-button-row{grid-template-columns:82px minmax(0,1fr) 34px}.broadcast-button-builder .broadcast-button-row input[name=text]{grid-column:1/3;grid-row:1}.broadcast-button-builder .broadcast-button-row select[name=row]{grid-column:1;grid-row:2}.broadcast-button-builder .broadcast-button-row select[name=style]{grid-column:2;grid-row:2}.broadcast-button-builder .broadcast-button-row input[name=url]{grid-column:1/3;grid-row:3}.broadcast-button-builder .broadcast-button-row button{grid-column:3;grid-row:1/4}}

.broadcast-emoji-panel{padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:12px;background:#fffdf6}
.broadcast-emoji-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(38px,1fr));gap:5px;margin:10px 0}
.broadcast-emoji-list button{padding:6px;border:0;border-radius:7px;background:transparent;font-size:24px;line-height:1.4}
.broadcast-emoji-list button:hover{background:#e4ead7}
.telegram-preview aside{display:block;float:none;width:auto;margin:12px 0;padding:14px 18px;border-block:2px solid #6a9b83;background:#eef5ef;font-size:19px;font-style:italic;text-align:center;border-radius:8px}
.telegram-expandable-quote{border-left:3px solid var(--green);padding:7px 10px;background:#eef5ef;border-radius:5px;margin:6px 0}
.telegram-expandable-quote summary{cursor:pointer;color:var(--green);font-size:13px}
.telegram-custom-emoji{border-bottom:1px dotted #5d866f;cursor:help}
#broadcast-preview-media .telegram-sticker{max-width:180px;max-height:180px;object-fit:contain}

img.telegram-chat-avatar{display:block;object-fit:cover;flex-shrink:0}

/* Phone-sized Telegram preview with the supplied wallpaper. */
.telegram-preview{width:100%;max-width:390px;height:640px;max-height:80vh;margin:0 auto;display:flex;flex-direction:column;border-radius:24px;box-shadow:0 8px 24px #152b381c}
.telegram-chat-header{flex-shrink:0}
.telegram-chat-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;padding:20px 14px 24px;background:#e8dfd6 url("assets/telegram-preview-phone.png") center top/cover no-repeat;scrollbar-width:thin}
.telegram-message{flex-shrink:0;margin-top:auto;width:fit-content;max-width:94%;background:#152331d9;color:#fff;box-shadow:0 2px 8px #0003}
.telegram-message:before{border-bottom-color:#152331d9;border-right-color:#152331d9}
.telegram-preview #broadcast-preview{min-height:0;color:#fff;font-size:15px;line-height:1.5}
.telegram-message-meta{color:#d1dce5;flex-wrap:wrap}
.telegram-preview a{color:#90d6ff}
#broadcast-preview-buttons{flex-shrink:0;width:94%}
.telegram-preview blockquote{border-left-color:#90d6ff}
.telegram-preview code{background:#ffffff24}
.telegram-preview aside,.telegram-preview .telegram-expandable-quote{color:#152b38}
@media(max-width:480px){.telegram-preview{height:600px;max-height:78vh;border-radius:18px}}

.quick-resource button[data-resource="fuel_refill"]{white-space:normal}
@media(max-width:1190px){.quick-resource>div{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-resource button{min-width:0;white-space:normal}}

/* CZO_IPHONE_START */
/* iPhone Telegram preview. Decorative controls never send messages. */
.telegram-preview{width:100%;max-width:390px;height:auto;aspect-ratio:390/844;max-height:none;margin:0 auto;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d8d4d4;border-radius:24px;background:#eee9e9;color:#000;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;box-shadow:0 8px 24px #152b381c}
.telegram-ios-top,.telegram-ios-bottom{flex-shrink:0;background:linear-gradient(110deg,#e9e4e4,#f4f0ef 55%,#e6e0e1)}
.telegram-status-bar{height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 17px 0 30px;position:relative;font-size:14px;font-weight:600;letter-spacing:-.4px}
.telegram-ios-return{position:absolute;left:50%;transform:translateX(-50%);top:5px;border-radius:18px;background:#0088ff;color:#fff;padding:4px 9px;font-size:13px;font-weight:600;white-space:nowrap;letter-spacing:0}
.telegram-ios-indicators{display:flex;align-items:center;gap:5px}.telegram-ios-indicators svg{width:20px;height:14px}.telegram-ios-battery{position:relative;display:block;border-radius:4px;background:#111;color:white;padding:0 2px;font-size:10px;line-height:13px;letter-spacing:-.3px}.telegram-ios-battery:after{content:"";position:absolute;right:-2px;top:4px;width:1px;height:5px;background:#888;border-radius:1px}
.telegram-chat-header{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px;height:52px;padding:5px 13px;background:transparent;border-bottom:1px solid #cfcaca}
.telegram-ios-title{text-align:center}.telegram-chat-header strong{font-size:17px;line-height:21px;color:#000;font-weight:600}.telegram-chat-header small{font-size:12px;line-height:16px;margin-top:1px;color:#777}.telegram-chat-header .telegram-chat-avatar{width:36px;height:36px;justify-self:end}
.telegram-ios-back{color:#0088ff;display:flex;align-items:center}.telegram-ios-back svg{height:23px;width:14px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.telegram-chat-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;padding:16px 12px 14px;background:#e8dfd6 url("assets/telegram-preview-phone.png") center top/cover no-repeat;scrollbar-width:thin}
.telegram-message{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:0 9px;flex-shrink:0;margin-top:auto;width:fit-content;max-width:94%;padding:7px 11px;background:#454043d9;color:#fff;border-radius:17px 17px 17px 4px;box-shadow:none;backdrop-filter:blur(10px)}
.telegram-message:before{left:-5px;bottom:0;border:0;width:10px;height:12px;background:#454043d9;clip-path:polygon(100% 0,100% 100%,0 100%,55% 60%)}
.telegram-preview #broadcast-preview{min-height:0;padding:0;background:transparent;color:#fff;font-size:15px;line-height:1.35;font-weight:400}.telegram-message-meta{color:#bfb9be;font-size:10px;line-height:17px;margin:0;white-space:nowrap}
#broadcast-preview-media{grid-column:1/-1}.telegram-preview a{color:#90d6ff}#broadcast-preview-buttons{flex-shrink:0;width:94%}.telegram-preview blockquote{border-left-color:#90d6ff}.telegram-preview code{background:#ffffff24}.telegram-preview aside,.telegram-preview .telegram-expandable-quote{color:#152b38}
.telegram-ios-bottom{height:72px;border-top:1px solid #d5d0d0;padding:7px 12px 0}.telegram-ios-compose{display:flex;gap:11px;align-items:center;height:35px;color:#89888e}.telegram-ios-compose svg{width:24px;height:28px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.telegram-ios-placeholder{display:flex;align-items:center;flex:1;min-width:0;height:34px;padding:0 12px;border:1px solid #d3ced3;border-radius:20px;background:#ffffff73;color:#99989e;font-size:17px;line-height:1}.telegram-ios-home{height:5px;width:34%;margin:19px auto 0;background:#000;border-radius:5px}
@media(max-width:480px){.telegram-preview{border-radius:20px}}


/* CZO_IPHONE_END */
