/* Planner styles; the header, hero, background and fonts come from the existing style.css. */
:root{color-scheme:dark;--cr-bg:#101011;--cr-panel:#191819;--cr-border:#302b2a;--cr-text:#eee9e3;--cr-muted:#a49c94;--cr-gold:#d5ad70;--cr-red:#b4382d}
*{box-sizing:border-box}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.38;cursor:default}a{color:inherit;text-decoration:none}button{color:inherit}input,select,textarea{min-width:0;color:var(--cr-text);background:#121213;border:1px solid #393333;border-radius:6px;padding:9px 10px}input::placeholder,textarea::placeholder{color:#817a75}select{cursor:pointer}textarea{resize:vertical}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--cr-gold);outline-offset:3px}[hidden]{display:none!important}.cr-app h2,.cr-app h3,.cr-app p,.cr-dialog h2,.cr-dialog p{margin:0}svg{flex-shrink:0}button svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.5}.cr-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.cr-app{padding-block:0 35px;margin:auto}.cr-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:18px;flex-wrap:wrap}.cr-plan-title{display:flex;align-items:center;gap:6px;color:#706357;max-width:100%;min-width:0}.cr-plan-title input{padding:6px 0;background:transparent;border:1px solid transparent;max-width:280px;min-width:1ch;width:auto;field-sizing:content;font-size:17px;font-weight:600;color:#eee5da}.cr-plan-title input:hover{border-bottom-color:#756348}.cr-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}.cr-save-status{font-size:11px;color:#9a9688;margin-right:8px}.cr-save-status::before{content:"";display:inline-block;width:5px;height:5px;border-radius:100%;background:#8c9d76;margin-right:6px}.cr-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #403630;border-radius:6px;background:#211d1b;padding:9px 14px;line-height:20px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}.cr-btn:hover:not(:disabled){background:#302721;border-color:#8d6743}.cr-btn-primary{background:var(--cr-red);border-color:#c04b3d;color:#fff0e8}.cr-btn-primary:hover:not(:disabled){background:#cb4334;border-color:#df6150}.cr-btn-small{padding:6px 10px}.cr-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;border:1px solid #44372d;border-radius:8px;background:linear-gradient(115deg,#201b18,#191819 55%);margin-bottom:26px;padding:19px 22px;gap:20px}.cr-summary-stat{border-right:1px solid #373029;display:flex;flex-direction:column;justify-content:center;gap:4px}.cr-summary-stat>span{font-size:11px;color:#b2a69a}.cr-summary-stat strong{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25}.cr-summary-stat small{font-size:12px;color:#8d8379;font-weight:400}
.cr-workspace{display:grid;grid-template-columns:304px minmax(0,1fr);gap:24px;align-items:start}.cr-roster{background:#171617;border:1px solid var(--cr-border);border-radius:8px;position:sticky;top:16px;overflow:hidden}.cr-roster-head{display:flex;align-items:center;justify-content:space-between;padding:18px 16px 16px}.cr-roster h2,.cr-battles h2{font-size:15px;font-weight:600}.cr-roster h2 span{font-size:10px;background:#332a23;color:#d3b58b;padding:2px 6px;border:1px solid #4a3b2b;border-radius:4px;margin-left:6px;vertical-align:2px}.cr-roster-head p{font-size:10px;color:#a0958a;margin-top:3px}.cr-add{background:#39291f;border:1px solid #67482e;color:#e7c294;width:30px;height:30px;font-size:23px;border-radius:5px;display:grid;place-content:center}.cr-add:hover{background:#553923}.cr-roster-filters{padding:0 12px 12px;border-bottom:1px solid #2a2524}.cr-search{display:flex;align-items:center;background:#111112;border:1px solid #342f2c;border-radius:5px;padding-left:10px;color:#8d8073;gap:2px}.cr-search svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.5}.cr-search input{border:0;background:none;width:100%;font-size:11px}.cr-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.cr-filter-row select{font-size:10px;padding:8px 5px;background:#201c1a;border-color:#372e29;width:100%}.cr-check{display:flex;align-items:center;gap:7px;font-size:12px;color:#b9afa3;cursor:pointer}.cr-check input{accent-color:#b8874f;width:15px;height:15px;margin:0}.cr-show-all{font-size:10px;margin-top:12px}.cr-roster-list{padding:10px;max-height:660px;min-height:260px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#57412c #171617;display:flex;flex-direction:column;gap:6px}.cr-roster-footer{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid #2c2621;font-size:10px;color:#a39686;line-height:1.55}.cr-drag-symbol{font-size:24px;color:#8f704a}.cr-empty{text-align:center;padding:32px 13px;color:#a49788;font-size:12px}.cr-empty-mark{font-size:38px;font-family:Georgia,serif;color:#987045;margin-bottom:10px}.cr-empty strong{display:block;font-size:15px;color:#dbcbb7;margin-bottom:8px}.cr-empty p{margin-bottom:18px;line-height:1.7}.cr-empty .cr-btn{width:100%;margin-bottom:10px}.cr-empty .cr-text-btn{font-size:11px}.cr-player{--class-color:#ad9b89;display:flex;align-items:center;gap:8px;padding:9px 8px;background:color-mix(in srgb,var(--class-color) 6%,#1b191b);border:1px solid color-mix(in srgb,var(--class-color) 26%,#30282a);border-left:2px solid var(--class-color);border-radius:5px;cursor:grab;min-width:0;transition:background .15s}.cr-player:hover{background:color-mix(in srgb,var(--class-color) 13%,#1b191b)}.cr-player.is-selected{outline:2px solid #e4bd7f;outline-offset:1px;background:#3a2f22}.cr-player.is-dragging{opacity:.4}.cr-player-icon{width:28px;height:28px;padding:2px;background:#161515;border:1px solid #3c3329;border-radius:4px;object-fit:contain;pointer-events:none}.cr-player-info{flex:1;min-width:0;text-align:left}.cr-player-name{display:block;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e8e0dc}.cr-player-class{display:block;font-size:10px;color:var(--class-color);line-height:1.4}.cr-player-power{font-size:12px;white-space:nowrap;color:#dabb8d;font-weight:600;font-variant-numeric:tabular-nums}.cr-player-edit{background:transparent;border:0;padding:3px;color:#a99989;font-size:16px;cursor:pointer}.cr-player-edit:hover{color:white}.cr-player[data-class=barbarian]{--class-color:#d38d7d}.cr-player[data-class=wizard]{--class-color:#8aabd8}.cr-player[data-class=monk]{--class-color:#ceb46b}.cr-player[data-class=demonhunter]{--class-color:#b492d1}.cr-player[data-class=crusader]{--class-color:#c2b8a4}.cr-player[data-class=necromancer]{--class-color:#83b691}.cr-player[data-class=bloodknight]{--class-color:#cd7f91}.cr-player[data-class=tempest]{--class-color:#77c0c5}.cr-player[data-class=druid]{--class-color:#b3c17f}.cr-player[data-class=warlock]{--class-color:#c98bcc}
.cr-battles-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:45px;margin-bottom:14px}.cr-battles-head>div>span{display:block;font-size:10px;color:#9e9285;margin-top:3px}.cr-board-actions{display:flex;gap:15px}.cr-text-btn{border:0;background:transparent;color:#b7a894;padding:5px 0;font-size:11px}.cr-text-btn:hover:not(:disabled){color:#e2b87d}.cr-battle-group{--tier-color:#c58a78;margin-bottom:19px}.cr-battle-group[data-group="2"]{--tier-color:#88a4c1}.cr-battle-group[data-group="3"]{--tier-color:#93ac81}.cr-battle-group[data-group="4"]{--tier-color:#c4a574}.cr-tier-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.cr-tier-badge{color:var(--tier-color);border:1px solid color-mix(in srgb,var(--tier-color) 32%,#262323);background:color-mix(in srgb,var(--tier-color) 8%,#171616);border-radius:4px;padding:1px 7px;font-weight:600;font-size:12px;min-width:28px;text-align:center}.cr-tier-head h3{font-size:12px;font-weight:600;color:#ddd0c3}.cr-tier-en{font-size:9px;color:#8f8378}.cr-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cr-room{min-width:0;border:1px solid #342d28;background:linear-gradient(130deg,#1c1917,#171617);border-radius:6px;overflow:hidden}.cr-room.is-drop-over,.cr-roster.is-drop-over{outline:2px solid #d5ad70;outline-offset:2px;background:#30271d}.cr-room-head{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 11px;border-bottom:1px solid #2e2722}.cr-room-title{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600}.cr-room-id{color:#8e7b65;font-size:10px;font-weight:400}.cr-room-count{font-size:10px;color:#bdb09e;white-space:nowrap;margin-left:auto}.cr-room-players{padding:7px;min-height:60px;display:flex;flex-direction:column;gap:5px}.cr-room-players .cr-player{padding:6px;gap:5px}.cr-room-players .cr-player-icon{width:24px;height:24px}.cr-room-players .cr-player-name{font-size:11px}.cr-room-players .cr-player-class{font-size:9px}.cr-room-players .cr-player-power{font-size:10px}.cr-room-players .cr-player-edit{font-size:14px;padding:3px}.cr-slot{display:flex;align-items:center;justify-content:center;gap:6px;color:#92816e;border:1px dashed #443628;border-radius:4px;width:100%;min-height:40px;font-size:10px;background:rgba(0,0,0,.07)}.cr-slot:hover{color:#e1bd86;border-color:#ab8350;background:#292116}.cr-slot span{font-size:16px;color:#9f805b}.cr-room-empty .cr-slot{min-height:49px}.cr-room-foot{display:flex;align-items:center;justify-content:space-between;padding:0 10px 8px;color:#988674;font-size:9px;font-variant-numeric:tabular-nums}.cr-room-foot strong{color:#c6b296;font-size:10px;font-weight:500}.cr-board-note{font-size:10px;color:#a19381;border-top:1px solid #2e2821;padding-top:15px}.cr-board-note>span{color:#bc955d;margin-right:5px}.cr-selection{display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:8px;z-index:4;background:#463520;border:1px solid #a6814d;color:#f3d7ac;border-radius:6px;margin-bottom:14px;padding:9px 12px;font-size:12px;box-shadow:0 6px 22px #0005}.cr-selection button{color:#efcb91;border:0;background:transparent;font-size:23px;line-height:1}.cr-footer{max-width:1536px;margin:0 auto;padding:20px 0 28px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid #30271f;font-size:11px;color:#887b6e}.cr-footer-dot{padding:0 8px;color:#644d33}.cr-footer a{color:#b4a18a}.cr-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;padding:12px 16px;border:1px solid #796346;border-radius:7px;background:#2f281e;font-size:12px;color:#e6c794}
.cr-dialog{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow-y:auto;background:#1d1a18;color:var(--cr-text);border:1px solid #715238;border-radius:10px;padding:24px;box-shadow:0 25px 120px #0009}.cr-dialog-wide{width:min(610px,calc(100% - 28px))}.cr-dialog::backdrop{background:#080707c9;backdrop-filter:blur(3px)}.cr-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.cr-dialog h2{font-size:21px;font-family:'Diablo',sans-serif;font-weight:400;color:#bd493d}.cr-dialog-close{border:0;background:transparent;color:#b3a18d;font-size:27px;padding:0 4px;line-height:1}.cr-dialog-copy{color:#c0b4a5;font-size:13px;margin-bottom:20px;line-height:1.7}.cr-field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;font-size:12px;color:#cdbfae}.cr-field input,.cr-field select,.cr-field textarea{width:100%}.cr-form-row{display:grid;grid-template-columns:1.25fr 1fr;gap:12px}.cr-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px;flex-wrap:wrap}.cr-danger{color:#e89a89;margin-right:auto}.cr-error{color:#ffa68f;font-size:12px;white-space:pre-wrap}.cr-import-hint{font-size:11px;line-height:1.7;color:#aa9b87;margin:10px 0 17px}.cr-file-field{padding:15px 0;border-top:1px solid #3b3027;border-bottom:1px solid #3b3027}.cr-file-field input{font-size:11px}.cr-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:12px 20px;max-width:calc(100vw - 30px);width:max-content;border:1px solid #997448;border-radius:7px;background:#33281d;color:#f0d3a6;box-shadow:0 8px 40px #0008;z-index:20;font-size:13px}
@media(min-width:1700px){.cr-room-players .cr-player-name{font-size:12px}.cr-room-players .cr-player-power{font-size:11px}}
@media(max-width:1200px){.cr-sitebar{gap:28px}.cr-sitebar nav{gap:18px}.cr-workspace{grid-template-columns:270px minmax(0,1fr);gap:18px}.cr-save-status{display:none}.cr-room-head{padding:8px}.cr-room-id,.cr-tier-en{display:none}.cr-room-grid{gap:7px}.cr-room-players .cr-player-icon{display:none}.cr-footer{margin:0 28px}}
@media(max-width:960px){.cr-summary .cr-toolbar-actions{grid-column:1/-1;padding-top:12px;border-top:1px solid #373029}.cr-sitebar{height:62px}.cr-sitebar nav{gap:14px}.cr-sitebar nav a:nth-child(n+3){display:none}.cr-summary{grid-template-columns:repeat(3,1fr);gap:15px;padding:16px}.cr-summary-stat:nth-child(3){border:0}.cr-workspace{grid-template-columns:235px minmax(0,1fr);gap:14px}.cr-room-grid{grid-template-columns:1fr}.cr-room-players .cr-player-icon{display:block}.cr-tier-en{display:inline}.cr-room-empty .cr-slot{min-height:40px}.cr-battles-head{align-items:flex-start}.cr-board-actions{flex-direction:column;gap:0;align-items:flex-end}.cr-room-id{display:inline}.cr-room-players .cr-player-name{font-size:12px}}
@media(max-width:620px){.cr-sitebar{padding:0 16px;gap:15px;height:59px}.cr-brand{font-size:13px;letter-spacing:.03em;gap:7px}.cr-brand img{width:25px;height:25px}.cr-sitebar nav{margin-left:auto;font-size:12px}.cr-sitebar nav a:first-child,.cr-account{display:none}.cr-app{padding-block:20px 25px}.cr-breadcrumb{margin-bottom:22px;font-size:11px}.cr-heading{margin-bottom:22px}.cr-heading-mark{display:none}.cr-eyebrow{font-size:9px}.cr-lead{font-size:12px;line-height:1.7;max-width:310px}.cr-toolbar{gap:10px;padding-bottom:15px}.cr-plan-title input{font-size:16px}.cr-toolbar-actions{width:100%;gap:6px}.cr-toolbar-actions .cr-btn{flex:1;padding:8px;font-size:11px;gap:6px}.cr-summary{gap:12px;padding:14px;margin-bottom:18px}.cr-summary-stat{gap:4px}.cr-summary-stat>span{font-size:10px}.cr-summary-stat strong{font-size:23px}.cr-summary-stat small{font-size:10px}.cr-workspace{display:flex;flex-direction:column;gap:23px}.cr-roster{position:static;width:100%}.cr-roster-head{padding:14px}.cr-roster-filters{padding:0 12px 10px}.cr-filter-row select,.cr-search input{font-size:12px}.cr-show-all{font-size:11px}.cr-roster-list{max-height:278px;min-height:100px}.cr-roster-list .cr-player-name{font-size:13px}.cr-roster-list .cr-player-class{font-size:11px}.cr-roster-list .cr-player{padding:10px}.cr-roster-list .cr-player-edit{padding:6px}.cr-roster-footer{font-size:11px;padding:10px 14px}.cr-empty{padding:18px 16px}.cr-empty-mark{display:none}.cr-empty p{margin-bottom:12px}.cr-battles{width:100%;min-width:0}.cr-battles-head{margin-bottom:16px}.cr-battle-group{margin-bottom:24px}.cr-room-grid{gap:8px}.cr-room-head{padding:10px 12px}.cr-room-title{font-size:13px}.cr-room-count{font-size:11px}.cr-room-empty .cr-slot{min-height:47px;font-size:11px}.cr-room-foot{font-size:10px}.cr-room-players .cr-player{padding:9px;gap:8px}.cr-room-players .cr-player-name{font-size:13px}.cr-room-players .cr-player-class{font-size:11px}.cr-room-players .cr-player-power{font-size:12px}.cr-room-players .cr-player-edit{padding:7px}.cr-board-note{font-size:11px;line-height:1.7}.cr-footer{margin:0 15px;padding:18px 0 24px;flex-direction:column;gap:9px;font-size:10px}.cr-banner{align-items:flex-start;flex-direction:column}.cr-dialog{padding:20px}.cr-form-row{grid-template-columns:1fr}.cr-form-row .cr-field{margin-bottom:14px}.cr-toast{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Match the existing Meta Immortal theme. Do not load home.css on this page. */
.cr-language{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid #3a3431;border-radius:6px;font-size:11px;font-weight:700;background:#211d1c}.cr-language img{width:19px;height:13px;object-fit:cover}.cr-chat-link{padding:5px 12px;border:1px solid #503323;border-radius:9px;background:#261b16;color:#e5c697;text-transform:uppercase;font-size:11px;font-weight:700}.cr-export-options{display:grid;gap:12px}.clan-page .cr-app{padding-block:0 35px;overflow:visible}.clan-page .hero__title{font-family:'Diablo',sans-serif}.clan-page .cr-battles-head h2,.clan-page .cr-roster-head h2{font-family:'Diablo',sans-serif;color:#b84438;font-weight:400;font-size:20px;letter-spacing:.025em}.clan-page .cr-roster-head h2 span{font-family:system-ui,sans-serif}.clan-page .cr-tier-head h3{font-family:system-ui,sans-serif;color:#ddc09a;font-size:13px}.clan-page .cr-roster{top:80px}.clan-page .cr-selection{top:75px}.clan-page .cr-battles h2{scroll-margin-top:80px}
@media screen{.clan-page .cr-roster,.clan-page .cr-summary{background:linear-gradient(180deg,rgba(22,22,22,.98),rgba(12,12,12,.98));border:1px solid rgba(255,178,127,.2);border-radius:16px;box-shadow:0 12px 26px rgba(0,0,0,.35),inset 0 0 0 1px rgba(0,0,0,.35)}.clan-page .cr-room{background:linear-gradient(180deg,#191919,#0f0f0f);border-color:#3d2d24;border-radius:9px}.clan-page .cr-btn{border:1px solid #8f2020;border-radius:999px;background:rgba(91,28,28,.25);color:#fff;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:400}.clan-page .cr-btn-primary{background:rgba(143,32,32,.5)}.clan-page .cr-btn:hover:not(:disabled){background:rgba(143,32,32,.55);border-color:rgba(255,178,127,.55);color:#ffd7a1}.clan-page .cr-add{border-radius:8px;color:#e7c799;background:#46231c;border-color:#8f3028}}
@media(max-width:1200px){.cr-chat-link{display:none}.clan-page .topbar__brand-section{gap:10px}}
@media(max-width:620px){.clan-page .cr-app{padding-block:0 25px}.clan-page .hero__title{font-size:clamp(30px,7.5vw,42px);letter-spacing:.03em}.clan-page .cr-roster{position:static}.clan-page .cr-tier-head h3{font-size:12px}.cr-language{display:none}.clan-page .cr-battles-head h2,.clan-page .cr-roster-head h2{font-size:20px}.clan-page .cr-toolbar-actions .cr-btn{font-size:10px}}

/* Header, hero and content inherit the legacy .container width from style.css. */
.clan-page .topbar__row{height:64px;min-height:64px;gap:16px;flex-wrap:nowrap;position:relative;padding-block:0;overflow:visible}
.clan-page .topbar__brand-section{flex:0 0 auto;min-width:0;gap:16px}
.clan-page .brand{flex:0 0 auto;white-space:nowrap}
.clan-page .brand__logo{display:block;width:28px;height:28px;min-width:28px;flex:0 0 28px;object-fit:contain}
.clan-page .lang-switcher,.clan-page .match3-toggle--chat{flex-shrink:0}
.clan-page .topbar .menu{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;margin-left:auto}
.clan-page .topbar .menu>a{margin:0;padding:8px 14px;white-space:nowrap;font-size:inherit;flex:0 0 auto}
.clan-page .menu-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.clan-page .menu-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.clan-page .cr-icon{display:block;width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.clan-page .cr-add,.clan-page .cr-player-edit,.clan-page .cr-dialog-close,.clan-page #cancelSelection{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;flex-shrink:0}
.clan-page .cr-add{width:32px;height:32px}
.clan-page .cr-player-edit{width:24px;height:26px}
.clan-page .cr-player-edit .cr-icon{width:16px;height:16px;flex-basis:16px}
.clan-page .cr-dialog-close,.clan-page #cancelSelection{width:30px;height:30px}
.clan-page .cr-plan-edit{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:1px solid #80603d;border-radius:8px;background:#302319;color:#f0c58a;line-height:1;transition:background .15s,border-color .15s,color .15s}
.clan-page .cr-plan-edit:hover,.clan-page .cr-plan-edit:focus-visible{background:#4a3420;border-color:#e3b571;color:#ffe2b5}
.clan-page .cr-plan-edit .cr-icon{width:18px;height:18px;flex-basis:18px;stroke-width:2.2}
.clan-page .cr-btn>span[aria-hidden]{display:inline-flex}
@media(max-width:1200px){
  .clan-page .topbar{transform:none;will-change:auto;overflow:visible}
  .clan-page .topbar__brand-section{gap:12px}
  .clan-page .menu-toggle{display:flex;margin-left:auto}
  .clan-page .topbar .menu{display:none;position:absolute;top:100%;right:0;left:auto;bottom:auto;width:min(360px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 80px);overflow-y:auto;flex-direction:column;align-items:stretch;gap:8px;padding:12px;margin:0;border:1px solid #50352b;border-radius:0 0 12px 12px;background:linear-gradient(180deg,#191515,#0f0e0e);box-shadow:0 18px 36px #0008;visibility:visible;transform:none;-webkit-transform:none;z-index:10002}
  .clan-page .topbar .menu.active{display:flex;transform:none;-webkit-transform:none}
  .clan-page .topbar .menu>a{display:block;width:100%;text-align:left;margin:0;padding:13px 15px;border-radius:9px;min-height:44px}
}
@media(max-width:620px){
  .clan-page .topbar__row{height:56px;min-height:56px;gap:10px}
  .clan-page .topbar__brand-section{gap:8px}
  .clan-page .brand__text{font-size:14px;letter-spacing:.02em}
  .clan-page .brand__logo{width:24px;height:24px;min-width:24px;flex-basis:24px}
  .clan-page .cr-toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .clan-page .cr-toolbar-actions .cr-btn{min-height:40px;font-size:11px}
  .clan-page .cr-player-edit{width:30px;height:32px}
}

@media(max-width:768px){
  .clan-page .topbar__row{padding-inline:12px}
}
@media(max-width:480px){
  .clan-page .topbar__row{padding-inline:8px}
  .clan-page .brand__text{display:none}
}

/* Larger player cards on the page; PNG has its own compact layout below. */
.clan-page .cr-workspace .cr-player{display:grid;grid-template-columns:32px minmax(0,1fr) auto 28px;grid-template-rows:auto auto;column-gap:8px;row-gap:3px;align-items:center;min-height:66px;padding:10px 9px}
.clan-page .cr-workspace .cr-player-icon{display:block;grid-column:1;grid-row:1/3;width:32px;height:32px;min-width:32px}
.clan-page .cr-workspace .cr-player-info{display:contents}
.clan-page .cr-workspace .cr-player-name{grid-column:2;grid-row:1;min-width:0;white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:15px;line-height:20px;font-weight:600;color:#f5eee5}
.clan-page .cr-workspace .cr-player-class{grid-column:2;grid-row:2;min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:17px}
.clan-page .cr-workspace .cr-player-power{grid-column:3;grid-row:1/3;align-self:center;text-align:right;font-size:14px;line-height:20px;color:#ebc98f}
.clan-page .cr-workspace .cr-player-edit{grid-column:4;grid-row:1/3;align-self:stretch;width:28px;min-height:36px;height:auto;padding:0}
.clan-page .cr-workspace .cr-player-edit .cr-icon{width:18px;height:18px;flex-basis:18px}
.clan-page .cr-workspace .cr-roster-list{gap:8px}
.clan-page .cr-workspace .cr-room-players{gap:7px}
@media(max-width:1100px){
  .clan-page .cr-workspace .cr-room-grid{grid-template-columns:1fr}
}

/* Select a reserve player without leaving the destination room. */
.cr-room-picker{width:min(560px,calc(100% - 28px))}
.cr-room-picker[open]{display:flex;flex-direction:column;overflow:hidden}
.cr-room-picker>.cr-dialog-head,.cr-room-picker>.cr-dialog-copy,.cr-room-picker>.cr-picker-filters,.cr-room-picker>.cr-picker-count,.cr-room-picker>.cr-error,.cr-room-picker>.cr-dialog-actions{flex-shrink:0}
.cr-picker-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.7fr);gap:12px}
.cr-picker-count{margin:0 0 10px;color:#b7a894;font-size:12px}
.cr-picker-list{display:flex;flex-direction:column;gap:8px;max-height:390px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin;scrollbar-color:#715238 #1d1a18}
.cr-picker-option{width:100%;flex-shrink:0;min-height:64px;padding:10px;cursor:pointer;text-align:left}
.cr-picker-option .cr-player-name{font-size:15px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.cr-picker-option .cr-player-class{font-size:12px}
.cr-picker-option .cr-player-power{font-size:14px}
.cr-picker-option>.cr-icon{color:#d5ad70;width:16px;height:16px;flex-basis:16px}
.cr-room-picker .cr-dialog-actions{margin-top:16px}
.cr-room-picker .cr-dialog-copy{margin-bottom:14px}
@media(max-width:480px){.cr-picker-filters{grid-template-columns:1fr;gap:0}.cr-room-picker{padding:16px}.cr-room-picker .cr-dialog-head{margin-bottom:12px}.cr-room-picker h2{font-size:19px}.cr-picker-option{gap:7px;padding:9px}}

/* PNG is a compact table at a fixed width, including every reserve player. */
.cr-tier-points{display:none}
.cr-capture-host{position:fixed;left:-20000px;top:0;pointer-events:none}
.clan-page .cr-app.cr-capture{width:1452px;max-width:none;padding:20px;margin:0;background:#101012;color:#eeeaeb}
.clan-page .cr-capture .cr-capture-heading{margin-bottom:10px}
.clan-page .cr-capture .cr-capture-brand{font:600 12px/1.4 system-ui,sans-serif;color:#c9999f;margin:0 0 4px}
.clan-page .cr-capture .cr-capture-heading h1{font:400 28px/1.3 'Diablo',sans-serif;color:#ce6268;letter-spacing:.025em;max-width:none;margin:0;overflow-wrap:anywhere}
.clan-page .cr-capture .cr-capture-summary{display:flex;align-items:center;gap:24px;padding:9px 12px;margin-bottom:16px;border:1px solid #80505b;border-radius:5px;background:#302126;font:14px/1.4 system-ui,sans-serif;color:#e4dce0}
.clan-page .cr-capture .cr-capture-summary strong{font-size:17px;color:#f5eeee;margin-left:4px}
.clan-page .cr-capture .cr-capture-score{margin-left:auto}
.clan-page .cr-capture .cr-capture-battles{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
.clan-page .cr-capture .cr-battle-group{--tier-color:#df858e;margin:0;min-width:0}
.clan-page .cr-capture .cr-battle-group[data-group="2"]{--tier-color:#8caee0}
.clan-page .cr-capture .cr-battle-group[data-group="3"]{--tier-color:#93c4a5}
.clan-page .cr-capture .cr-battle-group[data-group="4"]{--tier-color:#bba9dd}
.clan-page .cr-capture .cr-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.clan-page .cr-capture .cr-room{border:2px solid #e65b64;border-radius:8px;overflow:hidden;background:#15171b;display:flex;flex-direction:column}
.clan-page .cr-capture .cr-room-head{display:grid;grid-template-columns:54px minmax(0,1fr) 54px;align-items:center;padding:6px 10px;min-height:35px;background:#43272f;border-color:#8b5462;gap:8px}
.clan-page .cr-capture .cr-room-title{display:block;grid-column:2;grid-row:1;min-width:0;text-align:center;font-size:25px;line-height:25px;font-weight:700;color:#fff4f6}
.clan-page .cr-capture .cr-room-id{display:inline;grid-column:1;grid-row:1;justify-self:start;font-size:19px;line-height:20px;color:#dfb7c1}
.clan-page .cr-capture .cr-capture-room-status{display:flex;grid-column:3;grid-row:1;justify-self:end;align-items:center;gap:6px}
.clan-page .cr-capture .cr-room-count{margin:0;font-size:20px;line-height:20px;color:#f3dfe5;background:#25191e;border:1px solid #95616e;border-radius:4px;padding:1px 6px}
.clan-page .cr-capture .cr-tier-head{display:grid;grid-template-columns:160px minmax(0,1fr) 160px;gap:10px;align-items:center;margin-bottom:10px;padding:7px 12px;border-left:4px solid var(--tier-color);border-right:4px solid transparent;border-radius:4px;background:#25272d}
.clan-page .cr-capture .cr-tier-head h3{grid-column:2;grid-row:1;min-width:0;text-align:center;font-size:26px;line-height:26px;color:#f3f1f5}
.clan-page .cr-capture .cr-tier-badge{display:grid;grid-column:1;grid-row:1;justify-self:start;place-items:center;width:28px;height:26px;padding:0 0 3px;font-size:22px;line-height:1;font-weight:700;background:var(--tier-color);border:0;color:#16171c}
.clan-page .cr-capture .cr-tier-points{display:block;grid-column:3;grid-row:1;justify-self:end;white-space:nowrap;font:600 16px/20px system-ui,sans-serif;color:#c9c9cc}
.clan-page .cr-capture .cr-room-players{min-height:34px;padding:4px;gap:3px;flex:1;justify-content:flex-start}
.clan-page .cr-capture .cr-room-empty .cr-room-players::after{content:'Нет назначенных игроков';display:block;align-self:center;margin:auto;font-size:14px;color:#bfb0b4}
.clan-page .cr-capture .cr-player{display:grid;grid-template-columns:minmax(0,1fr) 135px;align-items:center;min-height:38px;padding:5px 16px 5px 18px;gap:10px;border:1px solid #57505c;border-color:color-mix(in srgb,var(--class-color) 45%,#3d424b);border-left:2px solid var(--class-color);border-radius:4px;cursor:default;background:#15171b}
.clan-page .cr-capture .cr-player:nth-child(even){background:#292c33}
.clan-page .cr-capture .cr-player-info{display:contents}
.clan-page .cr-capture .cr-player-name{display:block;margin:0 -5px 0 -18px;padding:0 18px;text-align:center;white-space:nowrap;overflow:visible;font:600 28px/26px system-ui,sans-serif;color:#f2eeee;min-width:0}
.clan-page .cr-capture .cr-player-class{position:relative;display:flex;align-self:stretch;align-items:center;justify-content:center;min-width:0;margin:0 -16px 0 -5px;padding:0 16px;white-space:nowrap;overflow:visible;font:600 20px/20px system-ui,sans-serif;text-align:center;color:var(--class-color)}
.clan-page .cr-capture .cr-player-class::before{content:'';position:absolute;left:0;top:-6px;bottom:-6px;width:1px;background:#616977}
.clan-page .cr-capture .cr-capture-reserve{padding-top:14px}
.clan-page .cr-capture .cr-capture-reserve h2{font:600 26px/26px system-ui,sans-serif;text-align:center;margin:0 0 10px;padding:7px 12px;border-left:4px solid #df858e;border-right:4px solid transparent;border-radius:4px;background:#25272d;color:#f3f1f5}
.clan-page .cr-capture .cr-capture-reserve-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 14px;padding:4px;border:1px solid #71505a;border-radius:5px;overflow:hidden;background:#15171b}
.clan-page .cr-capture .cr-capture-legend{margin:12px 0 0;border-top:1px solid #51363a;padding-top:8px;font:12px/1.6 system-ui,sans-serif;color:#c4b5ba}
@media print{.cr-capture-host{display:none}}

/* Review roster updates before applying them to the current plan. */
.clan-page .cr-reconcile-details{max-height:min(380px,45dvh);overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.clan-page .cr-reconcile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}
.clan-page .cr-reconcile-stats>div{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid #624139;border-radius:6px;background:#291c18}
.clan-page .cr-reconcile-stats strong{font:600 21px/1.2 system-ui,sans-serif;color:#f1c898}
.clan-page .cr-reconcile-stats span{font-size:11px;line-height:1.5;color:#d0bbab}
.clan-page .cr-reconcile-group{margin:16px 0}
.clan-page .cr-reconcile-group h3{margin:0 0 8px;font:600 14px/1.5 system-ui,sans-serif;color:#e6bf95}
.clan-page .cr-reconcile-group ul{list-style:none;margin:0;padding:0;border:1px solid #513830;border-radius:6px;overflow:hidden}
.clan-page .cr-reconcile-group li{display:flex;flex-direction:column;gap:4px;padding:9px 12px;background:#231a17;overflow-wrap:anywhere}
.clan-page .cr-reconcile-group li+li{border-top:1px solid #44312a}
.clan-page .cr-reconcile-group li:nth-child(even){background:#2c201b}
.clan-page .cr-reconcile-group li strong{font:600 13px/1.5 system-ui,sans-serif;color:#f2e6d8}
.clan-page .cr-reconcile-group li span{font:12px/1.6 system-ui,sans-serif;color:#c9b7a5}
@media(max-width:620px){.clan-page .cr-reconcile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Custom form controls follow the existing site's dark, red and gold palette. */
.clan-page .cr-board-actions{flex-wrap:wrap;justify-content:flex-end}
.clan-page .cr-check{gap:9px;min-height:28px;line-height:1.5}
.clan-page .cr-check input[type="checkbox"]{appearance:none;-webkit-appearance:none;display:grid;place-content:center;flex:0 0 17px;width:17px;height:17px;min-height:0;padding:0;margin:0;border:1px solid #70513b;border-radius:4px;background:#151211;cursor:pointer;transition:background .15s,border-color .15s}
.clan-page .cr-check input[type="checkbox"]::before{content:"";width:9px;height:5px;border-left:2px solid #f3d5a4;border-bottom:2px solid #f3d5a4;transform:translateY(-1px) rotate(-45deg);opacity:0}
.clan-page .cr-check:hover input[type="checkbox"]{border-color:#c29259;background:#271b17}
.clan-page .cr-check input[type="checkbox"]:checked{border-color:#b45639;background:linear-gradient(180deg,#713021,#482119);box-shadow:inset 0 1px 0 #f0b46b1a}
.clan-page .cr-check input[type="checkbox"]:checked::before{opacity:1}
.clan-page .cr-select-control{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #503b2e;border-radius:6px;background:linear-gradient(180deg,#241d19,#191513);color:#ded0bf;text-align:left;font:inherit;line-height:1.5;cursor:pointer;transition:border-color .15s,background .15s}
.clan-page .cr-select-control:hover,.clan-page .cr-select-control[aria-expanded="true"]{border-color:#a46743;background:linear-gradient(180deg,#312119,#211714)}
.clan-page .cr-select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.clan-page .cr-select-control .cr-select-chevron{width:14px;height:14px;flex:0 0 14px;color:#d5ad70;transition:transform .15s}
.clan-page .cr-select-control[aria-expanded="true"] .cr-select-chevron{transform:rotate(180deg)}
.clan-page .cr-filter-row .cr-select-control{font-size:10px;padding:8px;gap:5px;min-height:37px}
.clan-page .cr-select-menu{position:fixed;z-index:10020;box-sizing:border-box;margin:0;padding:5px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #886044;border-radius:8px;background:#1b1512;color:#e5d8c6;box-shadow:0 12px 30px #000a,inset 0 1px 0 #edc17b12;font:12px/1.5 system-ui,sans-serif;scrollbar-width:thin;scrollbar-color:#785037 #1b1512}
.clan-page .cr-select-option{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:35px;padding:8px 9px;border:1px solid transparent;border-radius:4px;cursor:pointer;user-select:none}
.clan-page .cr-select-option>span{min-width:0;overflow-wrap:anywhere}
.clan-page .cr-select-option .cr-icon{width:14px;height:14px;flex:0 0 14px;opacity:0;color:#e7bd80}
.clan-page .cr-select-option[aria-selected="true"]{color:#f0cd95;background:#3d231a}
.clan-page .cr-select-option[aria-selected="true"] .cr-icon{opacity:1}
.clan-page .cr-select-option.is-active{border-color:#8b5135;background:#4a281e;color:#f5dec0}
.clan-page .cr-select-option[aria-disabled="true"]{opacity:.38;cursor:not-allowed}
@media(max-width:620px){
  .clan-page .cr-filter-row .cr-select-control{font-size:12px;min-height:42px}
  .clan-page .cr-select-option{min-height:44px}
  .clan-page .cr-check{min-height:34px}
}

/* Readable controls and captions in the planner. */
.clan-page .cr-battles{container:clan-board / inline-size}
.clan-page .cr-battles-head{align-items:center;flex-wrap:nowrap;gap:16px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #342b24}
.clan-page .cr-battles-head>div:first-child{flex:1 1 auto;min-width:0}
.clan-page .cr-battles-head h2{font-size:20px;line-height:1.4;white-space:nowrap}
.clan-page .cr-board-actions{display:flex;width:auto;flex:0 0 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:6px}
.clan-page .cr-board-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;height:36px;min-width:36px;padding:0 9px;margin:0;border:1px solid #4c3b2d;border-radius:7px;background:#211b17;color:#ddcdbb;font:500 13px/1.3 system-ui,sans-serif;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.clan-page .cr-board-action .cr-icon{width:15px;height:15px;flex-basis:15px}
.clan-page .cr-board-action:hover:not(:disabled){background:#35271d;border-color:#9c744c;color:#ffe0b2}
.clan-page .cr-board-action-primary{background:#38291b;border-color:#80603d;color:#f0c58a}
.clan-page .cr-board-action.cr-danger{color:#edaa9d}
.clan-page .cr-board-action.cr-danger:hover:not(:disabled){background:#3a1e1b;border-color:#a55244;color:#ffc3b6}
.clan-page .cr-text-btn{font-size:14px;line-height:1.5;min-height:36px;padding:8px 0}
.clan-page .cr-btn,.clan-page .cr-toolbar-actions .cr-btn{font-size:13px;min-height:40px}
.clan-page .cr-save-status,.clan-page .cr-summary-stat>span,.clan-page .cr-summary-stat small,.clan-page .cr-roster h2 span,.clan-page .cr-roster-head p,.clan-page .cr-battles-head>div>span,.clan-page .cr-show-all,.clan-page .cr-roster-footer,.clan-page .cr-board-note{font-size:13px;line-height:1.5}
.clan-page .cr-search input{font-size:14px}
.clan-page .cr-filter-row .cr-select-control{font-size:13px;min-height:42px}
.clan-page .cr-select-option{font-size:14px;line-height:1.5}
.clan-page .cr-field,.clan-page .cr-dialog-copy,.clan-page .cr-empty,.clan-page .cr-selection,.clan-page .cr-banner{font-size:14px;line-height:1.6}
.clan-page .cr-import-hint,.clan-page .cr-file-field input,.clan-page .cr-error,.clan-page .cr-reconcile-stats span{font-size:13px;line-height:1.6}
.clan-page .cr-file-field input[type=file]{min-height:54px;padding:6px;border:1px solid #4c3b2d;border-radius:9px;background:#151210;color:#ddcdbb;cursor:pointer}
.clan-page .cr-file-field input[type=file]::file-selector-button{min-height:40px;margin:0 12px 0 0;padding:9px 16px;border:1px solid #8f2020;border-radius:999px;background:rgba(143,32,32,.5);color:#fff;font:inherit;line-height:20px;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.clan-page .cr-file-field input[type=file]:hover::file-selector-button,.clan-page .cr-file-field input[type=file]:focus-visible::file-selector-button{background:rgba(143,32,32,.75);border-color:#c28b65;color:#ffd7a1}
.clan-page .cr-workspace .cr-tier-head h3{font-size:15px;line-height:1.5}
.clan-page .cr-workspace .cr-tier-badge,.clan-page .cr-workspace .cr-room-id,.clan-page .cr-workspace .cr-room-count{font-size:13px}
.clan-page .cr-workspace .cr-room-title{font-size:14px;line-height:1.5;flex-wrap:wrap}
.clan-page .cr-workspace .cr-slot{font-size:13px;line-height:1.5;min-height:44px;padding:8px}
.clan-page .cr-workspace .cr-room-foot{font-size:13px;line-height:1.5;flex-wrap:wrap;gap:4px 12px}
.clan-page .cr-workspace .cr-room-foot strong{font-size:13px}
.clan-page .cr-workspace .cr-player-name{font-size:16px;line-height:21px}
.clan-page .cr-workspace .cr-player-class{font-size:13px;line-height:18px}
@media(max-width:1100px){
  .clan-page .cr-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .clan-page .cr-summary .cr-toolbar-actions{grid-column:1/-1;padding-top:12px;border-top:1px solid #373029}
  .clan-page .cr-summary-stat:nth-child(3){border:0}
}
@container clan-board (max-width:860px){
  .clan-page .cr-board-action:not(.cr-board-action-primary){width:36px;padding:0}
  .clan-page .cr-board-action:not(.cr-board-action-primary)>span{display:none}
}
@container clan-board (max-width:690px){
  .clan-page .cr-battles-head h2{font-size:18px}
  .clan-page .cr-board-action-primary{width:36px;padding:0}
  .clan-page .cr-board-action-primary>span{display:none}
}
@container clan-board (max-width:560px){
  .clan-page .cr-battles-head{flex-direction:column;align-items:stretch;gap:12px}
  .clan-page .cr-battles-head>div:first-child{flex:0 0 auto}
  .clan-page .cr-battles-head h2{font-size:clamp(14px,4.3cqi,18px)}
  .clan-page .cr-board-actions{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .clan-page .cr-board-actions .cr-board-action{width:100%;height:40px;padding:0 9px}
  .clan-page .cr-board-actions .cr-board-action>span{display:inline}
}

/* Mark the insertion point without changing card sizes during a drag. */
.clan-page .cr-workspace .cr-player.cr-drop-before{box-shadow:0 -3px 0 #e4bd7f}
.clan-page .cr-workspace .cr-player.cr-drop-after{box-shadow:0 3px 0 #e4bd7f}

/* Room locks keep completed teams unchanged during reset and randomization. */
.clan-page .cr-room.is-locked{border-color:#86643d;box-shadow:inset 0 0 0 1px #5b4329}
.clan-page .cr-room.is-locked .cr-room-head{background:#2a2118}
.clan-page .cr-room.is-locked .cr-player{cursor:default}
.clan-page .cr-room-head-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.clan-page .cr-room-head-actions .cr-room-count{margin-left:0}
.clan-page .cr-room-lock{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;padding:0;border:1px solid #4b4035;border-radius:7px;background:#171513;color:#8f8375;transition:color .15s,border-color .15s,background .15s,box-shadow .15s}
.clan-page .cr-room-lock:hover{color:#f0c37f;border-color:#9a7043;background:#2a2118}
.clan-page .cr-room-lock[aria-pressed=true]{color:#ffd28e;border-color:#b9864f;background:#513820;box-shadow:0 0 12px #ad743644}
.clan-page .cr-room-lock svg{width:17px;height:17px;stroke-width:1.8}
