/* Сократ · «Свет диалога». Отдельный обратимый слой оформления. */
:root{
  --bg:#F6F1E7!important;--surface:#FFFDFA!important;--line:#D5D2C9!important;--ink:#17243A!important;
  --muted:#667383!important;--accent:#B7643A!important;--blue:#1F64A8!important;--danger:#B33D3D!important;
  --good:#34745E!important;color-scheme:light!important;
  --ground:#F6F1E7!important;--judge:#B7643A!important;--a:#B7643A!important;--b:#1F64A8!important;
  --glass:rgba(255,253,250,.94)!important;--edge:#D5D2C9!important;--sheet:#FFFDFA!important;
}
html{background:#F6F1E7!important;color-scheme:light!important}
body,body.self-page.obs,body.duel-page.obs,body.obs-archive,body.cosmos,body.club-page{
  background:#F6F1E7!important;background-image:none!important;color:#17243A!important;
  font-family:Inter,Manrope,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
body::before,body::after{pointer-events:none}
body.self-page.obs::after,body.duel-page.obs::after,body.club-page::after{
  content:"";display:block!important;position:fixed;z-index:-1;left:-150px;top:-180px;width:420px;height:420px;border:1px solid rgba(31,100,168,.14);border-radius:50%;
  box-shadow:170px 170px 0 -70px #F6F1E7,170px 170px 0 -69px rgba(183,100,58,.15);
}
:focus-visible{outline:3px solid rgba(31,100,168,.55)!important;outline-offset:3px}
a{color:#1F64A8}.brand,.club-brand,.ar-brand{font-family:Georgia,"Times New Roman",serif!important;font-weight:700!important;color:#17243A!important;text-shadow:none!important;letter-spacing:.11em!important}
.brand::before,.club-brand::before,.ar-brand::before{content:"Σ";display:inline-grid;place-items:center;width:30px;height:30px;margin-right:9px;border:2px solid #1F64A8;border-radius:50%;box-shadow:5px 0 0 -3px #F6F1E7,7px 0 0 -3px #B7643A;color:#17243A;font:600 15px Georgia,serif;vertical-align:middle}
.who,.chip,.period,.badge{background:#FFFDFA!important;border-color:#D5D2C9!important;color:#667383!important;box-shadow:none!important}
h1,h2,h3,.intro strong,.create-heading h2,.club-hero h1,.ar-sheet h2{font-family:Georgia,"Times New Roman",serif!important;color:#17243A!important;text-shadow:none!important;letter-spacing:-.015em!important}
p,.note,.small,.status,.club-muted{color:#667383}
.card,.club-panel,.club-person,.club-request,.ar-sheet,.judge,.log,.vote,.obs-sheet{
  background:#FFFDFA!important;border:1px solid #D5D2C9!important;color:#17243A!important;box-shadow:0 18px 55px rgba(23,36,58,.10)!important;backdrop-filter:none!important;
}
input,textarea,select,body.self-page.obs :is(input,select),.input{
  background:#F8FAFC!important;color:#17243A!important;border:1px solid #C9D0D8!important;box-shadow:none!important;
}
input::placeholder,textarea::placeholder{color:#87919D!important}input:focus,textarea:focus,select:focus{border-color:#1F64A8!important;box-shadow:0 0 0 3px rgba(31,100,168,.12)!important}
button.primary,.primary,.club-primary,.ar-primary,.try-btn,body.self-page.obs button.primary,body.self-page.obs .result-link,#done{
  background:#1F64A8!important;color:#fff!important;border-color:#1F64A8!important;box-shadow:0 10px 24px rgba(31,100,168,.18)!important;text-shadow:none!important;
}
button.ghost,.ghost,.club-secondary,.ar-ghost,.experience-icon{background:#FFFDFA!important;color:#17243A!important;border-color:#C9D0D8!important;box-shadow:none!important}
button:hover,a.club-primary:hover{filter:brightness(.97)}
/* Вход и создание дуэли */
body.self-page.obs .wrap{max-width:980px!important}
body.self-page.obs .top{padding-bottom:14px;border-bottom:1px solid #D8D4C9}
body.self-page.obs .intro{padding-top:26px!important;background:transparent!important}
body.self-page.obs .intro-kicker,.form-step,.step,.club-eyebrow{color:#B7643A!important}
body.self-page.obs .intro p{color:#667383!important}
body.self-page.obs .auth-main{background:#FFFDFA;padding:24px!important;border:1px solid #D5D2C9;border-radius:24px;box-shadow:0 18px 55px rgba(23,36,58,.10)}
body.self-page.obs :is(.quick-topics,.choice-grid) button:nth-child(n){
  color:#17243A!important;background:#FFFDFA!important;border:1px solid #D5D2C9!important;box-shadow:0 8px 22px rgba(23,36,58,.07)!important;
}
body.self-page.obs :is(.quick-topics,.choice-grid) button:nth-child(n)[aria-pressed=true]{background:#F2F7FC!important;border-color:#1F64A8!important;box-shadow:0 0 0 2px rgba(31,100,168,.12)!important}
body.self-page.obs .choice-grid button:nth-child(n) span{color:#667383!important}
body.self-page.obs #all-topics[open],body.self-page.obs #custom-topic-panel[open],body.self-page.obs #referrals[open],body.self-page.obs #result:not([hidden]),body.self-page.obs #subscription-panel{background:#FFFDFA!important;border-color:#D5D2C9!important;box-shadow:0 16px 44px rgba(23,36,58,.10)!important}
body.self-page.obs #all-topics summary,body.self-page.obs #custom-topic-panel summary,body.self-page.obs #referrals summary{background:#FFFDFA;color:#1F64A8;border-color:#C9D0D8}
.obs-dock,.ar-dock{background:#FFFDFA!important;border-color:#D5D2C9!important;box-shadow:0 12px 34px rgba(23,36,58,.14)!important}.obs-dock a,.ar-dock a{color:#526070!important}.obs-dock a[aria-current=page],.ar-dock a[aria-current=page]{background:#1F64A8!important;color:#fff!important}
/* Клуб */
.club-page .club-hero{background:#FFFDFA!important;border-color:#D5D2C9!important;box-shadow:0 18px 55px rgba(23,36,58,.10)}
.club-page .club-hero p,.club-page .club-person p,.club-page .club-request p{color:#667383!important}.club-page .club-duel-cta{background:#1F64A8!important;color:#fff!important;box-shadow:0 10px 24px rgba(31,100,168,.18)!important}.club-page .club-duel-cta-mark{border-color:rgba(255,255,255,.45)!important;box-shadow:none!important}
.club-page .club-tabs button{background:#FFFDFA!important;color:#17243A!important;border-color:#D5D2C9!important}.club-page .club-tabs button[aria-selected=true]{background:#1F64A8!important;color:#fff!important;border-color:#1F64A8!important}.club-page .club-help{background:#FCF4EE!important;border-color:#D9B29D!important}.club-page .club-help summary,.club-page .club-status,.club-page .club-note{color:#9B4F2C!important}.club-page .club-message{background:#F2F5F8!important;color:#17243A!important}.club-page .club-message.mine{background:#EEF5FB!important}
/* Арена */
body.duel-page.obs .ring-head,body.duel-page.obs .judge,body.duel-page.obs .obs-dock{background:#FFFDFA!important;border-color:#D5D2C9!important;color:#17243A!important}.duel-page .stage{color:#17243A!important}.duel-page .tiles .tile{background:#E9EEF3!important;border-color:#C9D0D8!important;box-shadow:0 14px 38px rgba(23,36,58,.14)!important}.duel-page .tile.a{border-color:#B7643A!important}.duel-page .tile.b{border-color:#1F64A8!important}.duel-page .tile .tag{background:rgba(23,36,58,.86)!important;color:white!important}.duel-page #judge-line,.duel-page #turn-note{color:#34445A!important}.duel-page .obs-sheet{background:#FFFDFA!important}.duel-page .obs-sheet::before{background:#D5D2C9!important}.duel-page .line.judge-l,.duel-page .ar-line{background:#F3F5F7!important}.duel-page .line.a{background:#FCF4EE!important}.duel-page .line.b{background:#EEF5FB!important}
/* Архив: сохраняем карту, переводим ночь в бумажную схему. */
body.obs-archive{--ink:#17243A!important;--muted:#667383!important;--judge:#B7643A!important;--glass:#FFFDFA!important;--edge:#D5D2C9!important;--sheet:#FFFDFA!important}.ar-title{color:#B7643A!important}.ar-icon,.ar-chips button{background:#FFFDFA!important;color:#526070!important;border-color:#D5D2C9!important}.ar-chips button[aria-pressed=true]{background:#1F64A8!important;color:#fff!important;border-color:#1F64A8!important}.ar-name{color:#17243A!important}.ar-name small,.ar-status,.ar-legend{color:#667383!important}.ar-star{box-shadow:0 0 0 5px rgba(31,100,168,.08),0 7px 16px rgba(23,36,58,.16)!important}.ar-line{background:#F3F5F7!important;color:#17243A!important}.ar-stats div{background:#F3F5F7!important;border-color:#D5D2C9!important}.ar-stats b{color:#1F64A8!important}.ar-toast{background:#17243A!important;color:#fff!important;border-color:#17243A!important}
/* Асинхронный режим */
body:has(#create-card){background:#F6F1E7!important;color:#17243A!important}body:has(#create-card) .card{background:#FFFDFA!important;border-color:#D5D2C9!important;box-shadow:0 18px 55px rgba(23,36,58,.10)!important}body:has(#create-card) button{background:#1F64A8!important;color:#fff!important}body:has(#create-card) button.secondary{background:#FFFDFA!important;color:#17243A!important;border:1px solid #D5D2C9!important}body:has(#create-card) .turn{background:#F3F5F7!important;color:#17243A!important;border-left-color:#B7643A!important}body:has(#create-card) .turn.b{background:#EEF5FB!important;border-left-color:#1F64A8!important}body:has(#create-card) .mode,body:has(#create-card) .badge{background:#EEF5FB!important;color:#526070!important}
/* Пульт, проба и публичная страница */
body.cosmos .card,.try-wrap,.entry,.step{background:#FFFDFA!important;color:#17243A!important;border-color:#D5D2C9!important;box-shadow:0 16px 44px rgba(23,36,58,.09)!important}body.cosmos .nav a{background:#FFFDFA!important;color:#17243A!important;border-color:#D5D2C9!important}body.cosmos .nav a.cur{background:#1F64A8!important;color:#fff!important}.try-sky,.obs-hero,.obs-page-scene{opacity:.32!important;filter:saturate(.65)}
/* Заставка остаётся динамичной, но становится дневной. */
#sokrat-intro{background:radial-gradient(circle at 50% 38%,#FFFFFF 0,#F6F1E7 58%,#E9E1D3 100%)!important;color:#17243A!important}.si-stars{opacity:.08!important}.si-core{background:radial-gradient(circle at 34% 28%,#fff 0,#DCEAF7 22%,#1F64A8 62%,#17385E 100%)!important;box-shadow:0 0 55px rgba(31,100,168,.25),0 0 120px rgba(183,100,58,.13)!important}.si-core:before{color:#fff!important}.si-ring{border-color:rgba(183,100,58,.55)!important;box-shadow:none!important}.si-ring.r2{border-color:rgba(31,100,168,.48)!important}.si-copy{text-shadow:none!important}.si-title{color:#17243A!important}.si-sub,.si-sound{color:#526070!important}.si-skip{background:#FFFDFA!important;color:#17243A!important;border-color:#D5D2C9!important}.si-enter{background:#1F64A8!important;color:#fff!important;border-color:#1F64A8!important;box-shadow:0 10px 28px rgba(31,100,168,.22)!important}
@media(max-width:600px){body.self-page.obs::after,body.duel-page.obs::after,body.club-page::after{width:300px;height:300px;left:-170px;top:-160px}.brand::before,.club-brand::before,.ar-brand::before{width:27px;height:27px;font-size:13px}.card,.club-panel,.club-person,.club-request{border-radius:18px!important}}

/* === «Живой манускрипт»: контраст, охра, компактность === */
:root{
  --parchment:#F7F0E4;--parchment-deep:#EFE1CF;--leather:#E3C9A8;--leather-strong:#D3AE83;
  --brown:#4A3224;--brown-soft:#654A38;--rubric:#A12F25;--blue-ink:#245E91;
  --muted:#5D4637!important;--line:#CDB99F!important;
}
body,body.self-page.obs,body.duel-page.obs,body.obs-archive,body.cosmos,body.club-page{background:#F7F0E4!important;color:var(--brown)!important}
/* Все остаточные тёмные плашки превращаются в кожу и светлую охру. */
body.self-page.obs .obs-steps-nav,
body.self-page.obs .obs-help-fab,
body.self-page.obs .obs-guide-sheet,
body.self-page.obs .obs-readiness>div,
body.club-page.obs :is(.club-request,.club-panel,.club-person),
body.club-page.obs .obs-steps li,
body.club-page.obs .obs-guide,
body.club-page.obs #obs-invite-link,
body.club-page.obs .club-privacy-link,
body.club-page.obs .obs-feed-item,
body.club-page.obs .obs-private-members span,
body.club-page.obs .obs-daily,
body.duel-page.obs :is(.ring-head,.judge,.vote,.challenge-box,.obs-dock,.obs-sheet,.obs-judge-pop),
body.duel-page.obs .experience-dialog,
body.duel-page.obs .readiness>div,
.obs-toast.calm,.ar-toast,.obs-club-toast{
  background:var(--leather)!important;color:var(--brown)!important;border-color:#B99570!important;
  box-shadow:0 10px 28px rgba(74,50,36,.14)!important;text-shadow:none!important;
}
body.club-page.obs .obs-daily{background:linear-gradient(135deg,#E8D4B9,#DDBD96)!important}
body.duel-page.obs .tile .tag{background:#D5B58F!important;color:#3E291D!important;border:1px solid #B99570!important;font-weight:750!important}
body.duel-page.obs .obs-dock .controls button,body.duel-page.obs .obs-dock summary{background:#F8EDDF!important;color:#4A3224!important;border-color:#B99570!important}
body.duel-page.obs .obs-dock .controls button.obs-off{background:#E7C0B7!important;color:#7F241E!important}
body.club-page.obs .obs-orb.novice{background:#E3C9A8!important;color:#4A3224!important;border-color:#B99570!important}
/* Мелкая типографика: тёмно-коричневая и не мельче 13px. */
:is(.note,.small,.status,small,.club-muted,.club-section-title p,.obs-weekly-sub,.obs-welcome-note,.obs-invite-stats,.obs-feed-item span,.ar-when,.ar-legend,.ar-status,.ar-file,.try-small,.caption,.who){
  color:#5A4030!important;font-size:max(13px,1em);line-height:1.48;text-shadow:none!important;
}
body.self-page.obs .obs-readiness>div span,body.self-page.obs .choice-grid button:nth-child(n) span,.ar-stats span{color:#5A4030!important;font-size:12.5px!important}
.club-page .club-eyebrow,.intro-kicker,.form-step,.step,.ar-title,.obs-weekly-kicker,.obs-welcome-kicker{color:var(--rubric)!important}
/* Красные инициалы — только у смысловых абзацев, не у подсказок и статусов. */
:is(.intro,.club-hero,.entry,.pr-wrap section,.try-wrap,.verdict,.ar-record-body) > p:not(.note):not(.status):not(.small):not(.club-muted)::first-letter,
.club-help-body>p::first-letter,.obs-invite-text::first-letter{
  color:var(--rubric);font:700 1.65em/1 Georgia,"Times New Roman",serif;margin-right:.04em;
}
/* Раскрывающиеся окна выглядят как отдельные листы манускрипта. */
details{border:1px solid #CDB99F!important;border-radius:16px!important;background:#F9F2E7!important;overflow:hidden;box-shadow:0 7px 20px rgba(74,50,36,.07)}
details>summary{min-height:42px;display:flex!important;align-items:center;padding:0 14px!important;color:#4A3224!important;font-weight:750!important;cursor:pointer;list-style:none}
details>summary::-webkit-details-marker{display:none}details>summary::after{content:"＋";margin-left:auto;color:var(--rubric);font-size:18px}details[open]>summary::after{content:"−"}details[open]>summary{background:#EAD6BC!important;border-bottom:1px solid #CDB99F}
details[open]{animation:manuscript-open .28s ease-out both}
@keyframes manuscript-open{from{opacity:.72;transform:translateY(-5px)}to{opacity:1;transform:none}}
/* Главная: один шаг — один экран, второстепенное скрыто в окна. */
body.self-page.obs .wrap{padding-top:10px!important;padding-bottom:74px!important}
body.self-page.obs .top{margin-bottom:5px!important}
body.self-page.obs .subscriber-counter{margin:4px auto 8px!important}
body.self-page.obs .obs-steps-nav{margin-bottom:7px!important;padding:4px!important}
body.self-page.obs .obs-step{min-height:38px!important;padding:0 13px!important;color:#4A3224!important}
body.self-page.obs .obs-step[aria-current=step]{background:#A12F25!important;color:#fff!important}
body.self-page.obs .obs-step[aria-current=step] i{background:#fff!important;color:#A12F25!important}
body.self-page.obs .obs-page{padding-top:5px!important}
body.self-page.obs .obs-page-title{margin-bottom:5px!important;color:#4A3224!important}
body.self-page.obs .obs-page-scene{height:88px!important;opacity:.72!important;margin:-4px 0!important}
body.self-page.obs .obs-page-scene.three{height:58px!important}
body.self-page.obs .obs-page-scene .pa{width:52px!important;height:52px!important}.self-page.obs .obs-page-scene .pb{width:62px!important;height:62px!important}.self-page.obs .obs-page-scene .st{width:30px!important;height:30px!important}
body.self-page.obs .obs-page-actions{margin-top:8px!important}
body.self-page.obs .choice-grid button:nth-child(n){min-height:58px!important}
body.self-page.obs .before-create{display:none!important}
body.self-page.obs .install-help{margin-top:5px!important}
/* Клуб: лента, цепочка и справка остаются сворачиваемыми; основная карта получает экран. */
body.club-page.obs .club-wrap{padding-top:10px!important;padding-bottom:76px!important}
body.club-page.obs .club-top{margin-bottom:8px!important}
body.club-page.obs .club-hero{padding:15px 18px!important;margin-bottom:9px!important}.club-page.obs .club-hero p{max-width:760px}.club-page.obs .club-duel-cta{min-height:50px!important;margin-top:12px!important}
body.club-page.obs .club-tabs{margin:8px 0 10px!important}
body.club-page.obs .club-help{margin-bottom:9px!important}
body.club-page.obs .obs-weekly,body.club-page.obs .obs-feed,body.club-page.obs .obs-chain{margin-top:7px!important;margin-bottom:7px!important}
body.club-page.obs .obs-galaxy{min-height:calc(100dvh - 245px)!important}
/* Комната: название, видео, судья и управление помещаются без лишних декораций. */
body.duel-page.obs #room:not([hidden]){height:calc(100dvh - 10px)!important;gap:5px!important;padding-top:2px!important}
body.duel-page.obs .ring-head{padding:4px 5px 4px 12px!important}
body.duel-page.obs .arena-layout{gap:5px!important}.duel-page.obs .arena-console{gap:5px!important;max-height:46dvh!important}
body.duel-page.obs .judge{padding:8px 12px!important}.duel-page.obs #judge-line{font-size:14px!important;line-height:1.35!important;-webkit-line-clamp:2!important}
body.duel-page.obs .duel-controls button{min-height:38px!important}.duel-page.obs #done{min-height:46px!important}
/* Ненавязчивая динамика бумаги и действий. */
.card,.club-panel,.club-person,.club-request,.ar-sheet,.mode{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
@media(hover:hover){.card:hover,.club-person:hover,.mode:hover{transform:translateY(-2px);border-color:#B99570!important;box-shadow:0 18px 40px rgba(74,50,36,.12)!important}button:not(:disabled):hover{transform:translateY(-1px)}}
body.self-page.obs::after,body.duel-page.obs::after,body.club-page::after{animation:ink-orbit 16s ease-in-out infinite alternate}
@keyframes ink-orbit{to{transform:translate(24px,14px) scale(1.04)}}
@media(prefers-reduced-motion:reduce){body.self-page.obs::after,body.duel-page.obs::after,body.club-page::after{animation:none}.card,.club-panel,.club-person,.club-request,.ar-sheet,.mode{transition:none}}
@media(max-height:720px){body.self-page.obs .obs-page-scene{display:none!important}body.self-page.obs .intro p,body.self-page.obs .obs-page>.note{display:none!important}body.club-page.obs .club-hero p{display:none}body.club-page.obs .club-hero h1{font-size:25px!important;margin:4px 0!important}}
.obs-toast,.obs-club-toast{background:#E3C9A8!important;color:#4A3224!important;border:1px solid #B99570!important;box-shadow:0 10px 28px rgba(74,50,36,.16)!important}


/* v4: предыдущая гамма + компактная адаптивная компоновка */
html{font-size:clamp(14px,1.2vw,16px)}
body{overflow-x:hidden}
main,.obs-page,.arena,.club-main,.ar-main{max-width:100%;padding-left:clamp(10px,3vw,24px)!important;padding-right:clamp(10px,3vw,24px)!important}
h1{font-size:clamp(26px,7vw,54px)!important;line-height:1.06!important;overflow-wrap:anywhere}
h2{font-size:clamp(19px,5vw,31px)!important;line-height:1.12!important;overflow-wrap:anywhere}
p,.note,.small,.status,label,button,a{overflow-wrap:anywhere}
.obs-dock,.ar-dock,.bottom-nav,nav[aria-label="Разделы"]{left:50%!important;right:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:min(calc(100vw - 16px),620px)!important;max-width:calc(100vw - 16px)!important;display:flex!important;justify-content:center!important;gap:clamp(2px,1vw,8px)!important;padding:6px!important}
.obs-dock :is(a,button,summary),.ar-dock :is(a,button),.bottom-nav :is(a,button),nav[aria-label="Разделы"] a{min-width:0!important;flex:1 1 0!important;padding:9px 4px!important;font-size:clamp(10px,2.8vw,13px)!important;white-space:normal!important;line-height:1.05!important;text-align:center!important}
body:has(.obs-dock),body:has(.ar-dock),body:has(.bottom-nav),body:has(nav[aria-label="Разделы"]){padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
:is(.card,.club-panel,.club-person,.club-request,.club-hero,.judge,.log,.vote,.corner,.ar-sheet,.experience-dialog){max-width:100%!important;min-width:0!important}
input,textarea,select,button{max-width:100%;min-width:0}
@media(max-width:520px){
 .obs-top,.club-top,.ar-top,.duel-top{gap:5px!important;padding:7px 9px!important;flex-wrap:nowrap!important}
 .obs-brand,.club-brand,.ar-brand{font-size:12px!important;min-width:0!important}
 .obs-top button,.club-top button,.ar-top button,.duel-top button{min-width:34px!important;padding:7px!important}
 .card,.club-panel,.club-person,.club-request,.club-hero,.judge,.log,.vote,.corner,.ar-sheet,.experience-dialog{padding:clamp(10px,3vw,16px)!important;border-radius:16px!important}
 .arena-layout,.duel-grid,.club-grid{grid-template-columns:minmax(0,1fr)!important}
 .tile{min-height:120px!important}
 .obs-guide-sheet,.obs-invite-sheet,.obs-private-sheet,.experience-dialog{max-height:calc(100dvh - 28px)!important;overflow:auto!important;margin:auto!important}
}
@media(max-height:700px){
 h1{font-size:clamp(23px,6vh,38px)!important;margin-block:5px!important}
 .intro p,.obs-page-scene,.club-hero p{display:none!important}
 .card,.club-panel,.club-hero,.judge{padding-block:9px!important}
}


/* v6: гарантированный контраст текста и фона */
.subscriber-counter,#subscriber-counter{display:none!important}
:is(.card,.club-panel,.club-person,.club-request,.club-hero,.judge,.log,.vote,.corner,.ar-sheet,.experience-dialog,.obs-guide-sheet,.obs-invite-sheet,.obs-private-sheet,.readiness>div,.obs-readiness>div){color:#2F2118!important}
:is(.card,.club-panel,.club-person,.club-request,.club-hero,.judge,.log,.vote,.corner,.ar-sheet,.experience-dialog,.obs-guide-sheet,.obs-invite-sheet,.obs-private-sheet,.readiness>div,.obs-readiness>div) :is(p,span,small,strong,b,h1,h2,h3,h4,label,li){color:#2F2118!important;text-shadow:none!important}
:is(.note,.small,.status,.club-muted,.obs-weekly-sub,.obs-welcome-note,.ar-when,.ar-legend,.ar-status){color:#4C382A!important}
input,textarea,select{background:#FFFDF9!important;color:#211711!important;border-color:#9C7C5B!important}
input::placeholder,textarea::placeholder{color:#6B594B!important;opacity:1!important}
button.ghost,.ghost,.club-secondary,.ar-ghost,.experience-icon,.obs-step,.ar-chips button{background:#F8EBDD!important;color:#2F2118!important;border-color:#9C7C5B!important}
button.primary,.primary,.club-primary,.ar-primary,.try-btn,#done,.obs-step[aria-current=step],.club-tabs button[aria-selected=true],.ar-chips button[aria-pressed=true],.obs-dock a[aria-current=page],.ar-dock a[aria-current=page]{background:#1F64A8!important;color:#FFF!important;border-color:#174B7E!important}
button:disabled{background:#D8D0C5!important;color:#51483F!important;border-color:#A69A8B!important;opacity:1!important}
.obs-toast,.obs-club-toast,.ar-toast,.experience-toast{background:#E3C9A8!important;color:#2B1D14!important;border-color:#8F6946!important;font-weight:700!important}
.obs-dock,.ar-dock,nav[aria-label="Разделы"]{background:#FFFDF9!important;color:#2F2118!important;border-color:#B9A58D!important}
.obs-dock a,.ar-dock a,nav[aria-label="Разделы"] a{color:#34465A!important;font-weight:650!important}


/* v7: выбор соперника, START и три нижние иконки */
body.self-page.obs [data-page="opponent"] :is(.choice-grid button,.obs-page-actions,.obs-page-next){background:#F8EBDD!important;color:#211711!important;border-color:#8F6946!important}
body.self-page.obs [data-page="opponent"] .choice-grid button[aria-pressed="true"]{background:#1F64A8!important;color:#FFF!important;border-color:#174B7E!important}
body.self-page.obs [data-page="opponent"] .choice-grid button[aria-pressed="true"] :is(strong,span){color:#FFF!important}
body.duel-page.obs .ring-head{background:#E3C9A8!important;color:#211711!important;border-color:#8F6946!important}
body.duel-page.obs .ring-head :is(.live,.pip,.clock){color:#211711!important;text-shadow:none!important}
body.duel-page.obs .prestart{background:#E3C9A8!important;border-color:#8F6946!important;padding:10px!important;margin:8px 0!important}
body.duel-page.obs .prestart p{display:none!important}
body.duel-page.obs #prestart-start{background:#1F64A8!important;color:#FFF!important;border:2px solid #174B7E!important;text-shadow:none!important;box-shadow:0 8px 22px rgba(31,100,168,.28)!important}
body.duel-page.obs .obs-dock{width:auto!important;max-width:calc(100vw - 16px)!important;padding:6px!important;background:#FFFDF9!important}
body.duel-page.obs .obs-dock .controls{display:flex!important;gap:8px!important}
body.duel-page.obs .obs-dock .controls[hidden]{display:none!important}
body.duel-page.obs .obs-dock .controls button,body.duel-page.obs .obs-dock details,body.duel-page.obs .obs-dock summary{flex:0 0 48px!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;margin:0!important;font-size:0!important;line-height:0!important;border-radius:50%!important}
body.duel-page.obs .obs-dock summary{display:flex!important;align-items:center!important;justify-content:center!important}
body.duel-page.obs .obs-dock summary::after{display:none!important}
body.duel-page.obs .obs-dock .controls button::before,body.duel-page.obs .obs-dock summary::before{display:block!important;width:22px!important;height:22px!important;margin:0!important;background:currentColor!important}

/* v8: без верхней шкалы; карточки соперника всегда светло-коричневые */
body.self-page.obs .obs-steps-nav{display:none!important}
body.self-page.obs [data-page="opponent"] .choice-grid,
body.self-page.obs [data-page="opponent"] .choice-grid button{background:transparent!important}
body.self-page.obs [data-page="opponent"] .choice-grid button,
body.self-page.obs [data-page="opponent"] .choice-grid button:nth-child(n),
body.self-page.obs [data-page="opponent"] .choice-grid button[aria-pressed="true"],
body.self-page.obs [data-page="opponent"] .choice-grid button:hover,
body.self-page.obs [data-page="opponent"] .choice-grid button:focus,
body.self-page.obs [data-page="opponent"] .choice-grid button:active{
  background:#E3C9A8!important;background-image:none!important;color:#211711!important;
  -webkit-text-fill-color:#211711!important;border:2px solid #9C7652!important;
  box-shadow:0 8px 20px rgba(74,50,36,.14)!important;filter:none!important;opacity:1!important;
}
body.self-page.obs [data-page="opponent"] .choice-grid button[aria-pressed="true"]{background:#D3AE83!important;border-color:#6F4D32!important;box-shadow:0 0 0 3px rgba(111,77,50,.18)!important}
body.self-page.obs [data-page="opponent"] .choice-grid button :is(strong,span,small,b),
body.self-page.obs [data-page="opponent"] .choice-grid button[aria-pressed="true"] :is(strong,span,small,b){color:#211711!important;-webkit-text-fill-color:#211711!important;text-shadow:none!important;opacity:1!important}

/* adaptive-judge-v1 */
body.duel-page.obs #room-topic,body.duel-page.obs .topic-head{color:#FFF!important;-webkit-text-fill-color:#FFF!important;text-shadow:0 1px 2px rgba(0,0,0,.45)!important}

/* club-label-contrast-v1 */
body.club-page.obs .obs-orb-name,
body.club-page.obs .obs-self-name,
body.club-page.obs .club-person h3,
body.club-page.obs .obs-sheet h3{color:#000!important;-webkit-text-fill-color:#000!important;text-shadow:none!important}
body.club-page.obs .obs-galaxy svg line,
body.club-page.obs .obs-galaxy svg [stroke-dasharray]{stroke:#5A3824!important;stroke-opacity:.82!important}
body.club-page.obs .obs-orb.novice{border-color:#5A3824!important;color:#000!important}
body.club-page.obs .obs-chain-board li{border-top-color:#5A3824!important}
