/* Кабинет: выбранный раздел занимает экран, длинные списки прокручиваются внутри. */
.account-screen{font-size:16px;line-height:1.5;--field-h:40px}
.account-screen .page{padding:16px 24px 24px}
.account-screen .page-in{max-width:1400px}
.account-screen h1{font-size:30px}
.account-screen h2{font-size:19px;font-weight:600;margin:0 0 12px}
.account-screen .card{padding:16px;border-radius:10px}
.account-screen .btn{padding:11px 16px;font-size:12px;letter-spacing:.03em;border-radius:6px}
.account-screen .btn--sm{padding:9px 12px}
.account-screen .f input,.account-screen .f select{font-size:15px;border-radius:6px;padding-left:10px}
.account-screen .f select{appearance:none;padding-right:28px;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 15px) 50%,calc(100% - 11px) 50%;background-size:4px 4px;background-repeat:no-repeat}
.account-screen .f label{font-size:12px;letter-spacing:0;text-transform:none;line-height:1.4;font-weight:600}
.account-screen .f-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.account-screen .f-row .f{width:auto;min-width:0}
.account-screen #aByoRow{grid-template-columns:1fr}
.account-screen .a-field-note{font-size:12px;line-height:1.4;color:var(--muted);margin:0}
.account-screen .a-hint,.account-screen .empty{font-size:14px;line-height:1.5}
.account-screen .a-head{padding:0 0 12px;margin:0;gap:8px 16px;align-items:center}
.account-screen .a-me{gap:12px;flex-wrap:wrap;min-width:0}
.account-screen .a-me b{font-size:23px}
.account-screen .a-house-link{font-size:12px}
.account-screen .a-house-link b{font-size:12px}
.account-screen .a-rating{font-size:16px}
.account-screen .a-profile-controls{align-items:center;gap:16px}
.a-rating-summary{width:320px;max-width:100%;font-variant-numeric:tabular-nums}
.a-rating-summary p{margin:3px 0 0;font-size:13px;line-height:1.4}
.a-rating-summary #aRatingNote{font-size:12px;color:var(--muted)}
.a-rating-summary progress{display:block;width:100%;height:8px;margin-top:7px;accent-color:var(--wood)}
.a-rating-summary [hidden]{display:none!important}
.account-screen .a-news{margin:0;padding:6px 10px;font-size:13px;border-radius:5px}
.a-work-tabs,.a-auth-tabs{display:flex;gap:4px;overflow-x:auto;flex:none;padding:10px 0}
.a-work-tabs button,.a-auth-tabs button,.a-mode button{border:0;border-radius:6px;background:transparent;color:var(--muted);padding:10px 14px;white-space:nowrap;cursor:pointer;font:600 13px var(--f-display)}
.a-work-tabs [aria-selected=true],.a-auth-tabs [aria-selected=true]{background:var(--ink);color:var(--paper)}
.a-work-tabs button:focus-visible,.a-auth-tabs button:focus-visible,.a-mode button:focus-visible{outline:2px solid var(--wood);outline-offset:-2px}
.a-mode{display:flex;padding:4px;background:var(--paper-2);border-radius:8px;margin-bottom:14px;gap:4px}
.a-mode button{flex:1;padding:9px 8px;font-size:12px;white-space:normal}
.a-mode [aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 3px #0001}
.a-pane{min-width:0;outline-offset:-2px}
.a-lobby{display:grid;grid-template-columns:minmax(340px,400px) minmax(0,1fr);gap:16px;align-items:start}
.a-lobby-list{display:grid;gap:16px}
.a-lobby-list > .card{margin:0}
.a-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:16px;align-items:start}
.a-two > .card{margin:0}
.a-advanced{margin:0 0 14px;border:1px solid var(--line);border-radius:6px;padding:0 12px}
.a-advanced summary{padding:10px 0;cursor:pointer;font-size:13px;font-weight:bold}
.a-advanced summary > span{display:block;font-size:12px;font-weight:normal;color:var(--muted);padding-left:14px}
.a-advanced[open] summary{margin-bottom:4px}
.account-screen .a-advanced .consent{font-size:14px}
.account-screen .a-advanced .p-note{font-size:13px!important}
.account-screen .a-msg:empty{display:none}
.account-screen .a-msg{font-size:14px;margin:8px 0}
.account-screen #sygrat > [data-a=challenge]{width:100%}
.account-screen #aBotOptions .f-row{margin:0}
.account-screen #aBotOptions .f{margin:0}
.account-screen #aBotOptions .btn{height:var(--field-h);padding:0 8px;white-space:nowrap;font-size:11px}
.account-screen .a-stats{gap:8px 20px;padding-bottom:10px;margin-bottom:8px}
.account-screen .a-stat b{font-size:22px}
.account-screen .a-row{padding:9px 0;gap:8px;flex-wrap:wrap}
.account-screen .a-row-main{min-width:130px}
.account-screen .a-row-sub{font-size:13px}
.account-screen .a-mark{font-size:10px;letter-spacing:.02em}
.account-screen .a-tag{font-size:10px}
.account-screen .btns{display:flex;gap:8px;flex-wrap:wrap}
.account-screen .a-practice .a-hint{margin:0 0 18px;max-width:64ch}
.account-screen #aBotOptions .f-row{align-items:end}
.account-screen #aPane-social .a-two{grid-template-columns:minmax(260px,.8fr) minmax(0,1.6fr)}
.account-screen #aFriends .a-row{display:grid;grid-template-columns:10px minmax(0,1fr);gap:8px}
.account-screen #aFriends .a-row-main{min-width:0;grid-column:2/-1}
.account-screen .a-friend-actions{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-screen .a-friend-actions [data-a=unfriend]{margin-left:auto}
.account-screen .talks{grid-template-columns:minmax(120px,.65fr) minmax(0,1.35fr);border-radius:6px;overflow:hidden}
.account-screen .talk-box{min-width:0}
.account-screen .talk-list:empty{display:none}
.account-screen .talks:has(.talk-list:empty){grid-template-columns:1fr}
.account-screen #aTalkEmpty{margin:0;padding:12px 0}
.account-screen #aTalkForm{gap:8px}
.account-screen #aTalkForm input{width:0;border-radius:5px}
.account-screen #aTalkForm button{border-radius:5px;padding:0 10px;letter-spacing:0}
.account-screen #aGuest,.account-screen #aReset{max-width:480px;margin:12px auto}
.account-screen #aGuest .eyebrow{font-size:11px;margin-bottom:10px}
.account-screen #aGuest .lede{font-size:16px}
.account-screen #aGuest .card{margin:0}
.account-screen #aGuest .a-or{margin:14px 0}
.account-screen #aTgGo{width:100%}
.account-screen #aGuest .consent{font-size:13px}
.a-preview{display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);background:var(--paper-2);padding:8px 12px;border-radius:6px;font-size:13px;margin-bottom:10px}
.a-preview .a-link{padding:0}
.a-preview a{color:inherit}
.account-screen #aTgWait{padding:12px;background:var(--paper-2);border-radius:6px;margin-top:12px}
@media(min-width:961px){
  .account-screen .a-head{padding-bottom:8px}
  .a-rating-summary{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:4px 14px;width:clamp(380px,40vw,520px);align-items:center}
  .a-rating-summary #aRating{grid-area:1/1}
  .a-rating-summary #aRatingNote{grid-area:2/1;margin:0}
  .a-rating-summary #aRatingNext{grid-area:1/2;margin:0}
  .a-rating-summary progress{grid-area:2/2;margin:0}
  .account-screen:has(#aUser:not([hidden])) > .wrap{height:100vh;height:100dvh;display:flex;flex-direction:column}
  .account-screen:has(#aUser:not([hidden])) .page{flex:1;min-height:0;padding-bottom:12px}
  .account-screen:has(#aUser:not([hidden])) .page-in{height:100%;display:flex;flex-direction:column}
  .account-screen #aUser{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
  .a-panes{flex:1;min-height:0}
  .a-pane{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:2px 6px 4px 0;scrollbar-gutter:stable}
  .account-screen:has(#aUser:not([hidden])) .foot{display:none}
}
@media(max-width:640px){
  .account-screen .page{padding:12px}
  .a-lobby,.a-two,.account-screen #aPane-social .a-two{grid-template-columns:1fr;gap:12px}
  .account-screen .a-head{align-items:flex-start}
  .account-screen .a-profile-controls{width:100%;flex-wrap:nowrap;align-items:flex-start}
  .a-rating-summary{flex:1;min-width:0;width:auto}
  .account-screen .a-me b{font-size:19px}
  .account-screen .a-rating span{display:none}
  .account-screen .card{padding:14px}
  .a-work-tabs button{padding:10px 12px}
  .account-screen .talks{grid-template-columns:1fr}
  .account-screen .talk-list{max-height:140px}
}
@media(max-width:380px){
  .account-screen #sygrat .f-row{grid-template-columns:1fr;gap:0}
  .account-screen #aBotOptions .f-row{gap:10px}
}

/* Подсветка своей строки не меняет отступы или ширину списка. */
.account-screen .a-row--me{box-sizing:border-box;margin:4px 0;padding:10px 12px;border:1px solid var(--line);border-left:3px solid var(--wood);box-shadow:none;border-radius:8px;gap:8px}
.account-screen .play-presentation:has([data-presentation="meeting"][hidden]){grid-template-columns:1fr}
.account-screen .a-row--me .a-rank{padding-left:6px}

.account-screen .a-hint a{color:var(--wood-text,#795a2f);text-decoration-color:#b8a284;text-underline-offset:3px;text-decoration-thickness:1px}.account-screen .a-hint a:hover{color:var(--ink);text-decoration-color:currentColor}.account-screen .a-hint a:focus-visible{outline:2px solid var(--wood);outline-offset:3px;border-radius:3px}

/* Short laptop screens: keep the primary play action above the fold. */
@media(min-width:961px) and (max-height:740px){
 .account-screen #sygrat{padding:12px}
 .account-screen #sygrat h2{margin-bottom:8px}
 .account-screen #sygrat .play-presentation{margin-bottom:8px}
 .account-screen #sygrat .play-presentation button{padding:6px 8px;font-size:12px}
 .account-screen #sygrat .play-presentation span{font-size:10px;line-height:1.3;margin-top:2px}
 .account-screen #sygrat .a-mode{margin-bottom:8px}
 .account-screen #sygrat .a-mode button{padding:7px}
 .account-screen #sygrat .f{margin-bottom:6px}
 .account-screen #sygrat .game-visibility{margin:6px 0 8px}
 .account-screen #sygrat .game-visibility label{padding:6px!important}
 .account-screen #sygrat .game-visibility small{font-size:11px;line-height:1.25}
 .account-screen #sygrat .game-visibility legend{padding-bottom:4px}
 .account-screen #sygrat>[data-a=challenge]{padding:8px;min-height:40px}
}

@media(max-width:380px){.account-screen #sygrat>.f-row{grid-template-columns:minmax(64px,.65fr) minmax(0,1.35fr);gap:8px}.account-screen #sygrat .game-visibility{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.account-screen #sygrat .game-visibility label{padding:8px!important;gap:5px}.account-screen #sygrat .game-visibility strong{font-size:12px}.account-screen #sygrat .game-visibility small{font-size:11px}}

@media(max-width:380px){.account-screen #sygrat .play-presentation button{font-size:12px;line-height:1.4;padding:8px}.account-screen #sygrat .play-presentation span{font-size:11px;line-height:1.4}.account-screen #sygrat .play-presentation,.account-screen #sygrat .a-mode{margin-bottom:8px}}

/* The cards own their background; a fieldset must not paint a square behind them. */
html[data-theme=dark] .account-screen #sygrat .game-visibility{background:transparent}
