#inline-detail-host{display:none}
#detail-id{display:none!important}
#detail>details:not(#booster-info),#order-info-panel>details:not(#booster-info){display:none!important}
.message-form textarea{flex:1;resize:vertical;min-height:48px;max-height:140px}
.message.outgoing{margin-left:auto;border-color:#8054a3;background:linear-gradient(125deg,#3d2355,#24172f)}
.message-day{color:#8f7b9f;font-size:10px;text-align:center;margin:12px 0}
.message{max-width:85%;width:fit-content}.message:not(.outgoing){margin-right:auto}
.booster-mode .guild-banner,.booster-mode main>header,.booster-mode .metrics,.booster-mode #publication-summary,.booster-mode #sync-status{display:none!important}
.booster-mode aside{margin:16px auto 0;width:calc(100% - 40px);padding:10px 18px;gap:18px;grid-template-columns:185px minmax(0,1fr) 220px}
.booster-mode .brand{font-size:26px}.booster-mode .brand span{font-size:13px}
.booster-mode nav{gap:6px}.booster-mode nav button{min-height:43px;padding:10px 12px;font-size:11px}
.booster-mode .aside-bottom{font-size:0}.booster-mode .aside-bottom p{font-size:11px}.booster-mode .aside-bottom .dot{display:none}
.booster-mode .aside-bottom button{font-size:10px;padding:6px 9px}
.booster-mode main{max-width:none;padding:18px 20px 20px}
.booster-mode #workspace{height:calc(100dvh - 128px);min-height:460px}
.booster-mode #workbench{height:100%;display:grid;grid-template-columns:clamp(240px,20vw,320px) minmax(0,1fr);gap:10px;min-height:0}
.booster-mode #order-sidebar{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#130d1de8;border:1px solid #5b3d68;border-radius:6px}
.booster-mode .toolbar{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:16px 14px 0;margin:0}
.booster-mode .toolbar>div{justify-content:space-between}.booster-mode .toolbar h2{font:19px Georgia,serif;margin:0}
.booster-mode:not(.staff-workbench) #list-count{display:none!important}
.booster-mode .toolbar input{display:none!important}
.booster-mode .category-sections{padding:10px 14px 4px;margin:0;gap:6px;flex-wrap:nowrap;overflow-x:auto;flex-shrink:0;scrollbar-width:thin;scrollbar-color:#664379 #150d1b}
.booster-mode:not(.staff-workbench) #category-sections{display:none!important}
.booster-mode .category-sections button{flex-shrink:0;font-size:10px;padding:7px 9px}
.booster-mode .queue-filters{display:block;margin:0;padding:8px 14px 12px;border-bottom:1px solid #49304f}
.booster-mode .queue-filters label{font-size:10px;min-width:0}.booster-mode .queue-filters select{font-size:11px;padding:8px;margin-top:5px}
.booster-mode.simple-pool .toolbar input,.booster-mode.simple-pool .queue-filters{display:none!important}
.booster-mode.simple-pool .toolbar{padding-bottom:10px}
.booster-mode #orders{display:flex;flex:1;flex-direction:column;gap:7px;overflow-y:auto;padding:10px;min-height:0;scrollbar-width:thin;scrollbar-color:#70488c #130d1b}
.booster-order{display:flex;flex-direction:column;gap:7px;flex-shrink:0;text-align:left;white-space:normal;min-width:0;padding:14px;border:1px solid #483251;border-radius:5px;background:linear-gradient(120deg,#23162d,#160f20);color:#d9c8e4;box-shadow:none}
.booster-order:hover{border-color:#9b70b7;background:#2d1b3a}
.booster-order.selected{border-color:#bf89e1;background:linear-gradient(120deg,#422550,#24162e);box-shadow:inset 3px 0 #c389ec,0 0 12px #963dba20}
.booster-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%}.booster-card-top strong{font:12px ui-monospace,monospace;color:#dfc38d;overflow-wrap:anywhere}.booster-card-top time{font-size:10px;color:#a38aaf}
.booster-card-game{font-size:12px;color:#eee0f6;font-weight:600}.booster-card-description{font-size:11px;line-height:1.5;color:#a48db1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.booster-card-state{font-size:10px;color:#bc94d6}
.booster-mode #inline-detail-host{display:flex;flex-direction:column;position:relative;min-width:0;min-height:0;background:transparent;overflow:hidden}
#conversation-empty{display:grid;place-content:center;flex:1;text-align:center;padding:35px;color:#a088b1;line-height:1.8}#conversation-empty h2{font-size:25px;color:#e1c697;margin:8px 0}#conversation-empty p{font-size:12px;margin:0;max-width:400px}
.booster-mode #detail.inline-detail{display:none}
.booster-mode #detail.inline-detail[open]{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:10px;position:relative;inset:auto;top:auto;left:auto;margin:0;padding:0;width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none;background:transparent;min-width:0;min-height:0}
#order-chat-panel,#order-info-panel{display:flex;min-width:0;min-height:0;flex-direction:column;border:1px solid #72513f;border-radius:6px;background:#140d1ce8;overflow:hidden}
#order-chat-panel{grid-column:1}#order-info-panel{grid-column:2}
#order-chat-panel .chat-heading span{display:none!important}
#order-info-panel .dialog-heading>div:before{content:"Информация о заказе";display:block;color:#a788ba;font-size:10px;letter-spacing:.5px}
#order-info-panel #booster-info{flex:1;max-height:none!important}
#order-chat-panel #messages,#order-chat-panel .message,#order-chat-panel .message>div{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.booster-mode .dialog-heading{flex-shrink:0;padding:16px 20px;border-bottom:1px solid #54345d;background:#21132bea}
.booster-mode .dialog-heading h2{font:21px Georgia,serif;margin:5px 0 0}.booster-mode .dialog-heading small{font-size:11px}.booster-mode .dialog-heading button{font-size:11px;padding:8px 11px}
.booster-mode #booster-info{margin:0;padding:12px 20px;border-bottom:1px solid #422c4b;max-height:220px;overflow:auto;flex-shrink:0;background:#140d1b}
.booster-mode #booster-info summary{cursor:pointer;font-size:12px;color:#d5b784}.booster-mode #order-body{margin-top:8px;font-size:12px;line-height:1.7}.booster-mode #order-body p{margin:7px 0}
.booster-mode #actions{padding:10px 20px;margin:0;gap:7px;flex-shrink:0;max-height:110px;overflow:auto;border-bottom:1px solid #422c4b}
.booster-mode #actions button{font-size:11px;padding:8px 12px}
.booster-mode .chat-heading{padding:0 20px;border-top:0;flex-shrink:0}.booster-mode .chat-heading h3{font-size:15px;margin:11px 0}.booster-mode .chat-heading span{font-size:10px}
.booster-mode #messages{display:flex;flex-direction:column;flex:1;min-height:110px;max-height:none;margin:0 14px;padding:14px;border-radius:5px;background:#0d0914d9;border:1px solid #38223e;scrollbar-width:thin;scrollbar-color:#71478e #100b16}
.booster-mode .message{max-width:78%;border-radius:9px;padding:10px 13px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px;margin-bottom:4px}.booster-mode .message small{font-size:10px;color:#be9bd1;margin-bottom:5px}
.booster-mode .message-form{flex-shrink:0;margin:0;padding:12px 14px;gap:10px;align-items:flex-end}.booster-mode .message-form textarea{resize:none;min-height:58px;font-size:12px;line-height:1.6;padding:10px 12px;border-radius:5px}.booster-mode .message-form button{height:58px;border-radius:5px;padding:12px 20px}
.booster-mode .message-form{position:relative}.booster-mode .message-form>label{display:none!important}.chat-image-status{position:absolute;left:14px;bottom:76px;max-width:calc(100% - 28px);padding:5px 9px;border:1px solid #79559a;background:#25152f;color:#dfc6ef;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-form.has-image{padding-top:31px}.message-form.drag-image{outline:2px dashed #bc75ec;outline-offset:-6px;background:#2b17357a}
.booster-mode #detail>details:not(#booster-info){margin:0 20px 10px;flex-shrink:0;max-height:110px;overflow:auto;font-size:10px}
.conversation-note{margin:auto;text-align:center;max-width:400px;color:#9981aa;font-size:12px;line-height:1.8;padding:30px 20px}
.booster-mode #booster-info{flex-shrink:1;min-height:38px}
@media(max-height:700px){.booster-mode #workspace{min-height:420px}.booster-mode #booster-info{max-height:120px}.booster-mode #messages{min-height:70px}}
@media(min-width:1700px){.booster-mode #workbench{grid-template-columns:350px minmax(0,1fr)}}
@media(max-width:1180px){.booster-mode #detail.inline-detail[open]{grid-template-columns:minmax(0,1fr) minmax(240px,.72fr)}}
@media(max-width:900px){.booster-mode #detail.inline-detail[open]{display:flex;overflow-y:auto}#order-chat-panel,#order-info-panel{min-height:520px;flex:0 0 auto}}
@media(max-width:1200px){.booster-mode aside{grid-template-columns:155px 1fr}.booster-mode .aside-bottom{grid-column:1/-1;justify-content:flex-end}.booster-mode #workspace{height:calc(100dvh - 164px)}.booster-mode nav button{padding:8px;font-size:10px}.booster-mode #workbench{grid-template-columns:285px minmax(0,1fr)}}
@media(max-width:760px){.booster-mode aside{width:calc(100% - 24px);margin-top:12px;padding:10px;display:block}.booster-mode .brand{justify-content:flex-start;font-size:22px}.booster-mode .brand small{display:none}.booster-mode nav{margin-top:10px;padding-bottom:5px}.booster-mode nav button{min-height:34px}.booster-mode .aside-bottom{display:flex;margin-top:7px;padding-top:7px}.booster-mode main{padding:12px}.booster-mode #workspace{height:calc(100dvh - 186px);min-height:430px}.booster-mode #workbench{display:block;position:relative}.booster-mode #order-sidebar{height:100%}.booster-mode #inline-detail-host{display:none;height:100%}.booster-mode .workbench-open #order-sidebar{display:none}.booster-mode .workbench-open #inline-detail-host{display:flex}.booster-mode .dialog-heading{padding:12px}.booster-mode .dialog-heading h2{font-size:18px}.booster-mode #booster-info{padding:10px 12px;max-height:170px}.booster-mode #actions{padding:9px 12px}.booster-mode .chat-heading{padding:0 12px}.booster-mode #messages{margin:0 8px;padding:10px}.booster-mode .message{max-width:92%;font-size:12px}.booster-mode .message-form{padding:9px 8px;gap:7px}.booster-mode .message-form button{padding:9px 12px}.booster-mode #detail>details:not(#booster-info){margin:0 12px 8px}}
body.booster-mode{height:100dvh;overflow:hidden;display:flex;flex-direction:column}body.booster-mode>aside{flex-shrink:0}.booster-mode main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column}.booster-mode #workspace{height:auto;min-height:0;flex:1}.booster-mode #workbench{flex:1;min-height:0}
@media(max-width:760px){body.booster-mode{height:auto;min-height:100dvh;overflow:auto}.booster-mode #workspace{height:calc(100dvh - 186px);min-height:460px;flex:none}.booster-mode main{flex:none}}

.message img { display:block; max-width:min(100%, 320px); max-height:220px; object-fit:contain; }
.discord-image-link{display:block;margin-top:8px;color:#c7a1df;font-size:10px}.discord-image-link img{min-width:120px;border:1px solid #684a79;background:#09070c}

.booster-mode #workbench.list-only { grid-template-columns:minmax(0,1fr); }
.booster-mode #workbench.list-only #inline-detail-host { display:none; }
.list-detail .chat-heading,.list-detail #messages,.list-detail #message-form { display:none!important; }
.order-list-category { padding:.5rem 1rem;color:#e1c697; }
.load-more{align-self:center;flex-shrink:0;margin:10px;padding:10px 22px}

.staff-workbench #staff-tools:not([hidden]) { display:flex;flex-wrap:wrap;gap:6px;padding:12px 14px 0; }
.staff-workbench #staff-tools button { font-size:11px;padding:7px 9px; }
.staff-workbench #workbench.list-only.workbench-open { grid-template-columns:320px minmax(0,1fr); }
.staff-workbench #workbench.list-only.workbench-open #inline-detail-host { display:flex; }
.staff-workbench #detail.list-detail #actions { overflow:auto; }

#detail.chat-private .chat-heading,#detail.chat-private #messages,#detail.chat-private #message-form{display:none!important}

#admin-section-tabs:not([hidden]){display:flex;flex-wrap:wrap;gap:7px;margin:0 0 10px}
.admin-section-tab{display:inline-flex;border:1px solid #5b3d68;border-radius:6px;background:#21152b}
.admin-section-tab button:not([hidden]),.admin-section-tab a{padding:8px 10px;color:#e6cda7;font-size:12px}
.admin-section-tab button:not([hidden]){border:0;background:transparent;box-shadow:none}
.admin-section-tab a{border-left:1px solid #5b3d68;text-decoration:none}
.admin-section-tab a:hover,.admin-section-tab button:hover{background:#382247}
.staff-workbench #workspace{display:flex;flex-direction:column}
.staff-workbench #workbench{flex:1;min-height:0}

.staff-workbench #workbench[hidden],#admin-page-host[hidden]{display:none!important}
#admin-page-host:not([hidden]){display:block;flex:1 1 0;height:0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #5b3d68;border-radius:8px;background:#140e1d}
dialog.admin-full-page[open]{display:block;position:static;inset:auto;margin:0;width:100%;max-width:none;max-height:none;min-height:100%;padding:0 18px 18px;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible}
dialog.admin-full-page .dialog-heading{margin:0 -18px 14px}
#admin-section-tabs button.active-page{color:#f0dbff;border-color:#c48be8;background:linear-gradient(#522469,#251232);box-shadow:inset 0 0 0 2px #1b0b24,0 0 14px #9a40dc45;text-shadow:0 0 10px #dc9eff}
