#santa42{position:relative}
#santa42>.s-snow-field{position:absolute;inset:0;z-index:2}
#santa42 .s-header,#santa42 .s-toolbar,#santa42 .s-footer,#santa42 .s-content{position:relative;z-index:3}
#santa42 .s-boot{z-index:3;background:transparent}
#santa42 .s-purpose-prop{display:block;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
#santa42 .s-name-hint{display:block;font-size:13px;line-height:1.5;color:var(--s-muted);margin-top:7px;font-weight:400}
#santa42 #s-name:read-only{border-color:var(--s-line);background:#18221a}
#santa42 .s-callsign-field>span{display:block;font-size:16px;font-weight:500;margin-bottom:7px}
#santa42 #s-callsign{display:flex;align-items:center;min-height:50px;padding:10px 14px;background:#1c291e;border:1px solid var(--s-line);border-radius:3px;font:20px/1.4 'Russo One',sans-serif;color:var(--s-text)}
#santa42 .s-gender-filter{display:flex;flex-wrap:wrap;gap:10px;border:0;margin:0 0 22px;padding:0}
#santa42 .s-gender-filter legend{font-size:16px;font-weight:500;margin-bottom:10px}
#santa42 .s-gender-option{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 14px;border:1px solid var(--s-line);border-radius:3px;background:var(--s-panel);font-size:15px}
#santa42 .s-gender-option:has(input:checked){border-color:var(--s-accent);background:#34231e}
#santa42 .s-gender-option input{width:18px;height:18px;min-height:0;padding:0;margin:0;display:inline-block;flex:none;accent-color:var(--s-accent)}
#santa42 .s-gender-option:has(input:disabled){opacity:.8}
#santa42 .s-category-empty{font-size:16px;line-height:1.6;color:var(--s-muted);max-width:460px;padding:16px 0}
#santa42 .s-change-notice{margin:0 0 22px;font-size:14px;color:var(--s-amber);line-height:1.6}
#santa42 .s-agent-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#santa42 .s-agent-grid .s-agent-tile{padding:9px 7px 11px;min-height:144px}
#santa42 .s-agent-grid .s-agent-tile img[data-sprite]{width:100%;max-width:104px;height:88px;object-fit:contain;margin:0 auto 5px}
#santa42 .s-agent-grid .s-agent-tile strong{font-size:14px;line-height:1.35}
#santa42 .s-agent-grid .s-agent-tile small{font-size:11px;margin-top:5px}
#santa42 .s-agent-tile.s-my-character{border-color:var(--s-accent)}
#santa42 .s-preview>img[data-sprite]{display:block;object-fit:contain;width:140px;height:150px;margin:0 auto 14px;image-rendering:pixelated}
#santa42 .s-preview .s-action{margin-top:10px}
#santa42 .s-profile-locked{display:block;max-width:650px;margin:0 auto}
#santa42 .s-profile-locked .s-preview{display:grid;grid-template-columns:160px minmax(0,1fr);gap:8px 22px;border-top:0}
#santa42 .s-profile-locked .s-preview>img{grid-row:1/6;width:150px;height:180px}
#santa42 .s-profile-locked .s-preview h2,#santa42 .s-profile-locked .s-preview p{margin:0}
#santa42 .s-agent-note{font-size:13px;line-height:1.6;color:var(--s-muted);margin-top:22px}
#santa42 .s-letter-layout{grid-template-columns:minmax(0,1fr) 190px;gap:26px;max-width:1120px;margin:0 auto}
#santa42 .s-paper-title{display:flex;align-items:center;gap:15px;min-width:0}
#santa42 #s-letter-mark .s-purpose-prop{width:70px;height:70px}
#santa42 .s-paper header{flex-wrap:wrap;gap:18px;align-items:center}
#santa42 .s-stamp{font:21px/1.2 'Russo One',sans-serif;font-weight:400;letter-spacing:.04em;color:#c92b25;border:3px solid #d43128;padding:10px 13px;background:#f9e5ce;max-width:none;transform:rotate(-4deg);white-space:nowrap}
#santa42 .s-letter-companion{padding-top:18px}
#santa42 .s-letter-companion img[data-sprite]{width:120px;height:140px;object-fit:contain;image-rendering:pixelated}
#santa42 .s-letter-companion h3{font-size:21px}
#santa42 .s-letter-companion p{font-size:14px;line-height:1.6;color:var(--s-muted);margin-top:10px}
#santa42 .s-pass-kicker{font-size:12px}
#santa42 .s-pass{background:#e9e2c6;border-color:#b5ad8e;color:#293527;box-shadow:0 12px 28px #0003}
#santa42 .s-pass-head{border-color:#bcb59a;color:#555a43}
#santa42 .s-pass-portrait{background:#d9d7bc;border:1px solid #bdbba1}
#santa42 .s-pass-info h2{color:#ad3029}
#santa42 .s-pass-info .s-pass-kicker,#santa42 .s-pass-info dt{color:#5b6049}
#santa42 .s-pass-info dd{color:#293527;overflow-wrap:anywhere}
#santa42 .s-pass-bottom{background:#ddd7bb;color:#5b4837;border-top:1px solid #bcb59a}
#santa42 .s-pass .s-barcode{background:repeating-linear-gradient(90deg,#5b6049 0px,#5b6049 1px,transparent 1px,transparent 3px,#5b6049 3px,#5b6049 5px,transparent 5px,transparent 8px)}
#santa42 .s-awaiting{max-width:650px;margin:32px auto 0;padding:24px 0 0;border-top:1px solid var(--s-line)}
#santa42 .s-awaiting-title{display:flex;align-items:center;gap:16px;margin-bottom:13px}
#santa42 #s-wait-mark .s-purpose-prop{width:74px;height:74px}
#santa42 .s-awaiting-title h2{font:24px/1.3 'Russo One',sans-serif;font-weight:400}
#santa42 .s-awaiting-title p{font-size:14px;line-height:1.6;color:var(--s-muted);margin-top:5px}
#santa42 .s-next-step{font-size:16px;line-height:1.8;color:var(--s-text);margin-bottom:22px}
#santa42 .s-next-step strong{font-weight:600;color:var(--s-accent)}
#santa42 .s-wait-note{font-size:15px;line-height:1.65;color:var(--s-muted);margin:10px 0 0}
#santa42 .s-wait-note strong{font-weight:500;color:var(--s-text)}
#santa42 .s-agent-settings{max-width:650px;margin:26px auto 0;border-top:1px solid var(--s-line);padding-top:14px;color:var(--s-muted);font-size:13px}
#santa42 .s-agent-settings summary{cursor:pointer;min-height:40px;line-height:40px}
#santa42 .s-agent-settings p{font-size:13px;line-height:1.7;margin:10px 0}
#santa42 .s-agent-settings button{display:block;font-size:13px;min-height:40px}
#santa42 .s-agent-settings[open]{padding-bottom:8px}
#santa42 .s-mission p+p{margin-top:18px}
#santa42 .s-mission h2{margin-bottom:18px}
#santa42 #s-cargo-mark .s-purpose-prop{width:68px;height:68px}
#santa42 .s-cargo-heading{display:flex;align-items:center;gap:16px;margin-top:18px}
#santa42 .s-cargo-heading h3{margin:0}
#santa42 #s-boot-mark .s-purpose-prop{width:100px;height:100px;float:right;margin:0 0 20px 25px}
#santa42 .s-hub{max-width:1080px;margin:0 auto}
#santa42 .s-hub-heading{margin:4px 0 28px}
#santa42 .s-hub-heading h1{font:32px/1.25 'Russo One',sans-serif;text-wrap:balance}
#santa42 .s-hub-heading p{color:var(--s-muted);font-size:16px;line-height:1.6;margin-top:10px}
#santa42 .s-hub-pair{display:grid;grid-template-columns:1fr 1fr;gap:24px}
#santa42 .s-hub-paper{background:#e9e2c6;color:#293527;border:1px solid #b5ad8e;padding:28px;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
#santa42 .s-hub-paper h2{font:27px/1.3 'Russo One',sans-serif;overflow-wrap:anywhere}
#santa42 .s-hub-paper>p{color:#5b6049;font-size:14px;line-height:1.6;margin-top:8px}
#santa42 #s-profile-portrait{margin-top:16px}
#santa42 #s-profile-portrait img{display:block;width:128px;height:128px;object-fit:contain;image-rendering:pixelated}
#santa42 #s-profile-callsign{font:18px/1.5 'Russo One',sans-serif;color:#ad3029;margin-top:4px}
#santa42 #s-open-profile{margin-top:18px;min-width:220px}
#santa42 .s-mystery-agent{width:136px;height:136px;position:relative;margin-top:14px}
#santa42 .s-mystery-agent .s-purpose-prop{width:100%;height:100%;filter:brightness(.55);opacity:.8}
#santa42 .s-recipient-question{position:absolute;inset:0;display:grid;place-items:center;font:76px/1 'Russo One',sans-serif;color:#fff5d6;text-shadow:0 3px 8px #1b271d}
#santa42 .s-hub-paper .s-ward-waiting{font-size:16px;line-height:1.65;max-width:34ch;margin-top:16px;color:#414c37}
#santa42 .s-hub .s-awaiting{max-width:none;margin-top:28px;padding-top:24px}
#santa42 .s-hub .s-next-step{max-width:76ch}
#santa42 .s-gift-section{margin-top:28px;padding-top:28px;border-top:1px solid var(--s-line)}
#santa42 .s-gift-section>h2{font:25px/1.35 'Russo One',sans-serif}
#santa42 .s-gift-intro{max-width:74ch;font-size:15px;line-height:1.7;color:var(--s-muted);margin-top:12px}
#santa42 .s-yandex-offer{margin-top:22px;padding:22px 24px;background:#1d2b22;border:1px solid var(--s-line);display:flex;align-items:center;justify-content:space-between;gap:22px}
#santa42 .s-yandex-offer h3{font-size:21px;line-height:1.4;font-weight:600}
#santa42 .s-yandex-offer p{font-size:15px;line-height:1.65;color:var(--s-muted);margin-top:6px}
#santa42 .s-offer-status{display:inline-block;color:var(--s-amber);font-size:12px;line-height:1.6;margin-top:10px}
#santa42 .s-yandex-offer button{flex-shrink:0}
#santa42 .s-offer-actions{display:flex;flex-direction:column;align-items:center;gap:4px;flex-shrink:0}
#santa42 .s-offer-actions a{font-size:15px;text-decoration:none;white-space:nowrap}
#santa42 .s-gift-directions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:28px}
#santa42 .s-gift-direction{min-width:0}
#santa42 .s-gift-direction .s-purpose-prop{width:90px;height:90px;margin-bottom:16px}
#santa42 .s-gift-direction h3{font-size:18px;line-height:1.4;font-weight:600}
#santa42 .s-gift-direction p{font-size:15px;line-height:1.65;color:var(--s-muted);margin-top:8px}
#santa42 .s-gift-direction button{color:var(--s-text);font-size:14px;margin-top:8px}
#santa42 .s-hub .s-agent-settings{max-width:none}
#santa42 .s-dialog{width:min(740px,calc(100% - 32px));max-width:740px;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--s-line);background:#142019;color:var(--s-text);font-family:'Golos Text',sans-serif;overflow-y:auto;border-radius:3px;color-scheme:dark}
#santa42 .s-dialog::backdrop{background:#050c08c7}
#santa42 .s-dialog-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 24px;border-bottom:1px solid var(--s-line);background:#142019}
#santa42 .s-dialog-header h2{font:24px/1.3 'Russo One',sans-serif}
#santa42 .s-dialog-header button{font-size:14px;min-height:44px}
#santa42 .s-dialog-body{padding:24px}
#santa42 .s-dialog .s-pass{margin-bottom:0;box-shadow:none}
#santa42 .s-profile-letter{max-width:570px;margin:0 auto;padding:24px;background:#e9e2c6;color:#293527;border:1px solid #b5ad8e;border-top:0}
#santa42 .s-profile-letter h3{font:21px/1.4 'Russo One',sans-serif}
#santa42 .s-profile-letter dl{margin:20px 0 0;font-size:16px;line-height:1.65}
#santa42 .s-profile-letter dt{font-weight:600;margin-top:18px}
#santa42 .s-profile-letter dt:first-child{margin-top:0}
#santa42 .s-profile-letter dd{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
#santa42 .s-dialog .s-card-actions{margin-top:24px}
#santa42 .s-gift-dialog{width:min(620px,calc(100% - 32px))}
#santa42 .s-gift-dialog .s-dialog-body>p{font-size:16px;line-height:1.7;margin-bottom:18px}
#santa42 .s-gift-dialog ul{padding-left:24px;font-size:16px;line-height:1.8;margin:0 0 24px}
#santa42 .s-gift-popup-art .s-purpose-prop{width:110px;height:110px;margin:0 0 22px}
#santa42 .s-gift-dialog a{text-decoration:none}
#santa42 .s-gift-dialog .s-gift-popup-note{font-size:13px;line-height:1.6;color:var(--s-muted);margin:18px 0 0}
html:has(#santa42 dialog[open]){overflow:hidden}
@media(min-width:1200px){#santa42 .s-agent-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1000px){#santa42 .s-agent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#santa42 .s-letter-layout{display:block}#santa42 .s-letter-companion{display:none}#santa42 .s-agent-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){
  #santa42 .s-hub-heading h1{font-size:27px}
  #santa42 .s-hub-pair{grid-template-columns:1fr;gap:18px}
  #santa42 .s-hub-paper{padding:24px 18px}
  #santa42 .s-hub-paper h2{font-size:25px}
  #santa42 .s-gift-section>h2{font-size:23px}
  #santa42 .s-yandex-offer{padding:20px;display:block}
  #santa42 .s-yandex-offer button{width:100%;margin-top:16px}
  #santa42 .s-offer-actions{margin-top:18px}
  #santa42 .s-offer-actions a{width:100%;white-space:normal}
  #santa42 .s-offer-actions button{margin-top:0}
  #santa42 .s-gift-directions{grid-template-columns:1fr;gap:22px}
  #santa42 .s-gift-direction{display:grid;grid-template-columns:80px minmax(0,1fr);column-gap:16px;border-bottom:1px solid var(--s-line);padding-bottom:18px}
  #santa42 .s-gift-direction .s-purpose-prop{grid-row:1/4;width:80px;height:80px;margin-bottom:0}
  #santa42 .s-gift-direction button{justify-self:start}
  #santa42 .s-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
  #santa42 .s-dialog-header{padding:10px 16px;gap:12px}
  #santa42 .s-dialog-header h2{font-size:21px}
  #santa42 .s-dialog-body{padding:16px 10px}
  #santa42 .s-profile-letter{padding:20px 14px}
  #santa42 .s-dialog .s-card-actions{flex-direction:column;gap:12px}
  #santa42 .s-dialog .s-card-actions button{width:100%}
  #santa42 .s-identity{grid-template-columns:1fr;gap:18px}
  #santa42 .s-gender-filter{gap:8px}
  #santa42 .s-gender-option{flex:1 1 130px;padding:10px;font-size:14px;gap:8px}
  #santa42 .s-agent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  #santa42 .s-agent-grid .s-agent-tile{padding:8px 5px 10px;min-height:133px}
  #santa42 .s-agent-grid .s-agent-tile img[data-sprite]{height:76px;max-width:82px}
  #santa42 .s-agent-grid .s-agent-tile strong{font-size:13px}
  #santa42 .s-agent-grid .s-agent-tile small{font-size:11px}
  #santa42 .s-preview{display:block}
  #santa42 .s-preview>img[data-sprite]{float:left;width:90px;height:110px;margin:0 16px 10px 0}
  #santa42 .s-preview h2{font-size:23px}
  #santa42 .s-preview .s-action{width:100%;clear:both}
  #santa42 .s-profile-locked .s-preview{display:block}
  #santa42 .s-profile-locked .s-preview>img{width:105px;height:135px;float:left}
  #santa42 .s-paper-title{gap:12px}
  #santa42 #s-letter-mark .s-purpose-prop{width:54px;height:54px}
  #santa42 .s-paper h2{font-size:23px}
  #santa42 .s-stamp{font-size:19px;padding:9px 12px}
  #santa42 .s-awaiting{margin-top:28px;padding-top:20px}
  #santa42 .s-awaiting-title{gap:12px;align-items:center}
  #santa42 #s-wait-mark .s-purpose-prop{width:60px;height:60px}
  #santa42 .s-awaiting-title h2{font-size:22px}
  #santa42 .s-awaiting-title p{font-size:13px}
  #santa42 .s-next-step{font-size:16px}
  #santa42 .s-awaiting .s-progress-head h2{font-size:16px}
  #santa42 .s-agent-settings{margin-top:20px}
  #santa42 #s-boot-mark .s-purpose-prop{width:70px;height:70px;margin-left:14px}
}
