/* Shared interaction components. This file owns semantics; experience.css owns composition. */
:root{--ui-radius:10px;--ui-control-height:42px;--ui-surface-shadow:0 8px 28px #16214514;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-xl:20px}
html[data-ui-theme] *,html[data-ui-theme] *::before,html[data-ui-theme] *::after{box-sizing:border-box}html[data-ui-theme] body{font-size:15px;line-height:1.65}html[data-ui-theme] button,html[data-ui-theme] input,html[data-ui-theme] select,html[data-ui-theme] textarea{font:inherit}html[data-ui-theme] button,html[data-ui-theme] input,html[data-ui-theme] select,html[data-ui-theme] textarea,html[data-ui-theme] details{max-width:100%}html[data-ui-theme] h1,html[data-ui-theme] h2,html[data-ui-theme] h3,html[data-ui-theme] h4,html[data-ui-theme] p{overflow-wrap:anywhere}html[data-ui-theme] h1,html[data-ui-theme] h2,html[data-ui-theme] h3,html[data-ui-theme] h4{color:var(--text-primary);letter-spacing:-.015em}html[data-ui-theme] h1{font-size:28px;line-height:1.3}html[data-ui-theme] h2{font-size:23px}html[data-ui-theme] h3{font-size:18px}html[data-ui-theme] h4{font-size:16px}html[data-ui-theme] p{line-height:1.85}html[data-ui-theme] small{font-size:12px}html[data-ui-theme] a{color:var(--primary);text-underline-offset:3px}
/* Never reset transform on hover: some original controls use it for positioning. */
html[data-ui-theme] body button,html[data-ui-theme] body [role="button"],html[data-ui-theme] body input[type="submit"]{min-height:var(--ui-control-height);border:0;border-radius:var(--ui-radius);padding:10px 15px;background:var(--bg-tertiary);color:var(--text-primary);font-size:14px;font-weight:500;line-height:1.45;box-shadow:none;cursor:pointer;vertical-align:middle;transition:background .15s,color .15s,border-color .15s;max-width:100%}
html[data-ui-theme] body button[data-control-kind="primary"],html[data-ui-theme] body input[type="submit"]{background:var(--primary) !important;color:var(--bg-secondary) !important;font-weight:650 !important;border:1px solid transparent !important}
html[data-ui-theme] body button[data-control-kind="secondary"]{background:var(--bg-tertiary) !important;color:var(--text-primary) !important;border:1px solid transparent !important}
html[data-ui-theme] body button[data-control-kind="danger"]{background:transparent !important;color:var(--error) !important;border:1px solid transparent !important}
html[data-ui-theme] body button[data-control-kind="icon"]{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:38px;min-height:38px;padding:8px;background:transparent !important;color:var(--text-secondary) !important;border:0 !important}
html[data-ui-theme] body button[data-control-kind="navigation"]{display:flex;align-items:center;gap:9px;background:transparent !important;color:var(--text-secondary) !important;border:0 !important}
html[data-ui-theme] body button[data-control-kind="tab"]{background:transparent !important;color:var(--text-secondary) !important;border:0 !important;border-radius:8px !important;min-height:39px}
html[data-ui-theme] body button[data-control-kind]:hover{background-color:var(--primary-bg) !important;color:var(--primary) !important;box-shadow:none}html[data-ui-theme] body button[data-control-kind="primary"]:hover{background:var(--primary-dark) !important;color:var(--bg-secondary) !important}html[data-ui-theme] body button[data-control-kind="danger"]:hover{background:var(--bg-tertiary) !important;color:var(--error) !important}
html[data-ui-theme] body button[data-control-kind="tab"].active,html[data-ui-theme] body button[aria-selected="true"],html[data-ui-theme] body button[aria-pressed="true"],html[data-ui-theme] body button[aria-current="page"]{background:var(--primary-bg) !important;color:var(--primary) !important;font-weight:650 !important}
html[data-ui-theme] body button:focus-visible,html[data-ui-theme] body [role="button"]:focus-visible,html[data-ui-theme] body input:focus-visible,html[data-ui-theme] body select:focus-visible,html[data-ui-theme] body textarea:focus-visible,html[data-ui-theme] body summary:focus-visible{outline:3px solid var(--primary-light);outline-offset:3px}
html[data-ui-theme] body button:disabled,html[data-ui-theme] body input:disabled,html[data-ui-theme] body [aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:none!important}html[data-ui-theme] body button svg{width:20px;max-width:22px;height:20px;max-height:22px;flex-shrink:0}
html[data-ui-theme] body button[data-action-pending="true"]{cursor:progress;position:relative;padding-right:35px!important}html[data-ui-theme] body button[data-action-pending="true"]::after{content:"";position:absolute;right:12px;top:calc(50% - 6px);width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ui-spin .7s linear infinite}@keyframes ui-spin{to{transform:rotate(360deg)}}
html[data-ui-theme] body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]),html[data-ui-theme] body select,html[data-ui-theme] body textarea{min-height:42px;max-width:100%;background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.65;box-shadow:none}html[data-ui-theme] body input::placeholder,html[data-ui-theme] body textarea::placeholder{color:var(--text-placeholder)}html[data-ui-theme] body input[type="checkbox"],html[data-ui-theme] body input[type="radio"]{accent-color:var(--primary);width:17px;height:17px;vertical-align:middle;flex-shrink:0}html[data-ui-theme] body input[type="range"]{accent-color:var(--primary)}html[data-ui-theme] body .error-msg,html[data-ui-theme] .ui-form-error{color:var(--error);font-size:13px;line-height:1.75}html[data-ui-theme] body label{color:var(--text-secondary)}
/* Pages share an aligned title and a spacious, flat working surface. */
html[data-ui-theme] .workspace-main :is(.admin-container,.profile-page-container,.research-page-container){width:100%;max-width:none;margin:0;background:var(--bg-primary);color:var(--text-primary);min-height:100%;border:0;border-radius:0;padding:0;box-shadow:none;overflow:visible;height:auto}
html[data-ui-theme] .workspace-main :is(.admin-container,.profile-page-container,.research-page-container)::before{background-image:var(--dynamic-bg-image)!important;opacity:.08;pointer-events:none}
html[data-ui-theme] .workspace-main :is(.admin-header,.profile-header,.research-header){position:relative;background:var(--bg-secondary);border:0;border-bottom:1px solid var(--border);padding:24px 32px;min-height:94px;display:flex;flex-direction:row;align-items:center;gap:18px;flex-wrap:wrap;box-shadow:none}
html[data-ui-theme] .workspace-main :is(.admin-header,.profile-header,.research-header) h1{font-size:26px;line-height:1.35;margin:0;font-weight:700}html[data-ui-theme] .workspace-main .admin-heading-block{min-width:0;flex:1}html[data-ui-theme] .workspace-main .admin-heading-block p{font-size:13px;color:var(--text-muted);margin:8px 0 0}html[data-ui-theme] .workspace-main .back-btn{background:transparent;color:var(--text-muted);font-size:13px;white-space:nowrap;min-height:38px;padding:8px 10px}html[data-ui-theme] .workspace-main .admin-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
html[data-ui-theme] .workspace-main :is(.profile-main,.daily-schedule-layout,.wrongbook-layout,.csp-practice-main,.achievements-main,.leaderboard-main){padding:26px 32px;gap:22px;min-width:0}html[data-ui-theme] .workspace-main :is(.profile-left,.profile-right){min-width:0;gap:22px}html[data-ui-theme] .workspace-main :is(.profile-card,.admin-card,.training-panel,.daily-schedule-panel,.wrongbook-panel,.csp-filter-panel,.csp-info-panel,.csp-history-panel,.csp-contest-preview-panel,.csp-contest-active-panel,.csp-scoreboard-panel,.csp-explain-panel,.leaderboard-section,.achievement-card,.message-card){background:var(--bg-secondary);color:var(--text-primary);border:0;border-radius:16px;box-shadow:none;padding:24px;min-width:0}
html[data-ui-theme] .workspace-main :is(.profile-card,.admin-card,.daily-schedule-panel) h3{font-size:17px;margin:0 0 18px;border:0;padding:0}html[data-ui-theme] .workspace-main :is(.profile-card,.admin-card) h3>svg{width:19px;height:19px;color:var(--primary)}html[data-ui-theme] .workspace-main [class*="-toolbar"],html[data-ui-theme] .workspace-main [class*="-filters"],html[data-ui-theme] .workspace-main [class$="-actions"]{gap:8px;align-items:center}html[data-ui-theme] .workspace-main [class*="-toolbar"]{flex-wrap:wrap}html[data-ui-theme] .workspace-main :is(.admin-eyebrow,.csp-eyebrow,.message-modal-eyebrow,.favorite-detail-eyebrow){display:none}
html[data-ui-theme] body table{width:100%;border-collapse:collapse;background:var(--bg-secondary);font-size:13px;color:var(--text-primary)}html[data-ui-theme] body th{background:var(--bg-tertiary);color:var(--text-secondary);font-size:12px;font-weight:600;text-align:left}html[data-ui-theme] body th,html[data-ui-theme] body td{padding:13px 14px;border-bottom:1px solid var(--border-light);vertical-align:middle}html[data-ui-theme] body tbody tr:hover{background:var(--primary-bg)}html[data-ui-theme] body table button{min-height:33px;padding:6px 10px;font-size:12px}html[data-ui-theme] body [class*="table-wrapper"],html[data-ui-theme] body [class*="table-wrap"]{overflow:auto;border:0;border-radius:10px}html[data-ui-theme] body [class*="badge"],html[data-ui-theme] body .status-tag{font-size:11px;font-weight:550;padding:3px 7px;border-radius:6px;background:var(--primary-bg);color:var(--primary)}
/* Progressive disclosure keeps business controls intact, not deleted. */
html[data-ui-theme] .ui-disclosure,html[data-ui-theme] .ui-inline-settings{grid-column:1/-1;background:var(--bg-secondary);border:0;border-radius:13px;min-width:0}html[data-ui-theme] .ui-disclosure>summary,html[data-ui-theme] .ui-inline-settings>summary{display:flex;align-items:center;gap:12px;padding:16px 20px;color:var(--text-secondary);font-size:14px;line-height:1.5;cursor:pointer;list-style:none}html[data-ui-theme] .ui-disclosure>summary::-webkit-details-marker,html[data-ui-theme] .ui-inline-settings>summary::-webkit-details-marker{display:none}html[data-ui-theme] .ui-disclosure>summary::after,html[data-ui-theme] .ui-inline-settings>summary::after{content:"";margin-left:auto;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .15s}html[data-ui-theme] .ui-disclosure[open]>summary::after,html[data-ui-theme] .ui-inline-settings[open]>summary::after{transform:rotate(225deg)}html[data-ui-theme] .ui-disclosure[open]>summary,html[data-ui-theme] .ui-inline-settings[open]>summary{border-bottom:1px solid var(--border-light)}html[data-ui-theme] .ui-disclosure>.ui-disclosure-body{padding:20px;min-width:0}html[data-ui-theme] .ui-disclosure>.ui-disclosure-body>:first-child{margin-top:0}html[data-ui-theme] .ui-disclosure>.ui-disclosure-body>section,html[data-ui-theme] .ui-disclosure>.ui-disclosure-body>.profile-card{padding:0!important;margin:0!important;border:0!important}html[data-ui-theme] .ui-disclosure:has(>.ui-disclosure-body>.hidden:only-child),html[data-ui-theme] .ui-inline-settings:has(>.hidden){display:none}html[data-ui-theme] .ui-inline-settings .wrongbook-privacy-card{margin:0;padding:20px;border:0;background:transparent}html[data-ui-theme] .ui-help-detail{font-size:13px;color:var(--text-muted);margin:10px 0}html[data-ui-theme] .ui-help-detail>summary{cursor:pointer;list-style-position:inside;width:fit-content}html[data-ui-theme] .ui-help-detail p{margin:10px 0!important;font-size:13px!important;line-height:1.85}
html[data-ui-theme] .ui-settings-layout{display:block!important;max-width:1060px;margin:auto!important}html[data-ui-theme] .ui-settings-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 25px;border-bottom:1px solid var(--border);padding:0 0 15px}html[data-ui-theme] .ui-settings-tabs button{min-height:42px;padding:9px 18px;background:transparent;color:var(--text-secondary);font-size:15px}html[data-ui-theme] .ui-settings-tabs button[aria-selected="true"]{background:var(--primary-bg);color:var(--primary)}html[data-ui-theme] .ui-settings-panel{display:grid;grid-template-columns:1fr;gap:22px}html[data-ui-theme] .ui-settings-panel>.profile-card{margin:0}html[data-ui-theme] .ui-settings-panel[data-settings-panel="account"]{grid-template-columns:1fr 1fr}html[data-ui-theme] .ui-settings-panel[data-settings-panel="records"]{grid-template-columns:1fr 1fr}html[data-ui-theme] .ui-settings-panel[data-settings-panel="records"] .problems-card{grid-column:1/-1}html[data-ui-theme] .ui-settings-panel.hidden{display:none!important}html[data-ui-theme] .ui-settings-panel .appearance-card{max-width:800px;width:100%;margin:auto}
html[data-ui-theme] .wrongbook-layout>.ui-disclosure{order:5}html[data-ui-theme] .wrongbook-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}html[data-ui-theme] .wrongbook-summary-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:14px;background:var(--bg-primary)!important;text-align:left;min-width:0}html[data-ui-theme] .wrongbook-summary-card strong{font-family:'OI Grotesk',sans-serif;font-size:28px;font-weight:600}html[data-ui-theme] .wrongbook-summary-card small{display:none}html[data-ui-theme] .wrongbook-insights{margin-top:15px}html[data-ui-theme] .wrongbook-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;border:0;background:transparent;min-width:0}html[data-ui-theme] .wrongbook-sidebar{padding:20px;background:var(--bg-secondary);border:0;border-radius:15px;min-width:0}html[data-ui-theme] .wrongbook-detail{padding:24px;background:var(--bg-secondary);border:0;border-radius:15px;min-width:0}html[data-ui-theme] .wrongbook-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:12px}html[data-ui-theme] .wrongbook-tabs button{padding:8px 10px;font-size:13px;background:transparent}html[data-ui-theme] .wrongbook-tabs button.active{color:var(--primary);background:var(--primary-bg);font-weight:650}html[data-ui-theme] .wrongbook-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}html[data-ui-theme] .wrongbook-filters input{grid-column:1/-1}html[data-ui-theme] .wrongbook-mode-switch{display:flex;gap:3px;background:var(--bg-tertiary);border:0;border-radius:11px;padding:4px}html[data-ui-theme] .wrongbook-mode-switch button{font-size:12px;padding:8px 11px;min-height:36px;background:transparent}html[data-ui-theme] .wrongbook-mode-switch button.active{background:var(--bg-secondary);color:var(--primary)}html[data-ui-theme] .wrongbook-empty h2,html[data-ui-theme] .wrongbook-empty h3{font-size:22px}html[data-ui-theme] .wrongbook-empty p{font-size:14px!important;max-width:35em;margin-left:auto;margin-right:auto}html[data-ui-theme] .wrongbook-item{background:var(--bg-primary);border:1px solid transparent;border-radius:10px;padding:14px}html[data-ui-theme] .wrongbook-item.active{border-color:var(--primary)}
html[data-ui-theme] .plan-settings-bar{display:flex;flex-wrap:wrap;gap:18px;background:transparent}html[data-ui-theme] .daily-schedule-layout{display:flex!important;flex-direction:column!important}html[data-ui-theme] .daily-schedule-layout>section{width:100%}html[data-ui-theme] .daily-schedule-layout .training-loop-panel{order:0}html[data-ui-theme] .daily-schedule-layout .training-plan-panel{order:1}html[data-ui-theme] .daily-schedule-layout .luogu-watch-card{order:2}html[data-ui-theme] .daily-schedule-layout>.ui-disclosure{order:3}html[data-ui-theme] .daily-schedule-layout .daily-schedule-overview{order:4}html[data-ui-theme] .training-loop-actions{display:flex;gap:7px;flex-wrap:wrap}html[data-ui-theme] .csp-info-panel p,html[data-ui-theme] .csp-info-panel li{font-size:14px;line-height:1.85}html[data-ui-theme] .csp-track-tabs{display:flex;gap:8px;flex-wrap:wrap}html[data-ui-theme] .csp-track-btn.active{background:var(--primary-bg);color:var(--primary)}
/* Dialog surfaces and states, with stable position for close controls. */
html[data-ui-theme] body :is(.mini-modal-overlay,.custom-modal-overlay,.chatroom-pass-overlay,.favorite-detail-overlay,.message-modal-overlay,.wrongbook-modal,.practice-judge-overlay,.task-planner-overlay,.daily-welcome-overlay,.node-chat-modal,.model-config-modal){background:#111a3599;backdrop-filter:none}
html[data-ui-theme] body :is(.mini-modal,.custom-modal,.favorite-detail-dialog,.message-modal,.wrongbook-modal-dialog,.task-planner-panel,.daily-welcome-panel,.mc-dialog,.modal-content,.node-chat-panel,.model-config-content,.practice-judge-dialog){background:var(--bg-secondary);color:var(--text-primary);border:0;border-radius:20px;box-shadow:0 20px 70px #111a3535;max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);overflow:auto}
html[data-ui-theme] body [class$="modal-header"],html[data-ui-theme] body .modal-header,html[data-ui-theme] body .custom-modal-header,html[data-ui-theme] body .wrongbook-modal-dialog>header,html[data-ui-theme] body .favorite-detail-dialog>header{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:22px 24px}html[data-ui-theme] body [class$="modal-header"] h2,html[data-ui-theme] body [class$="modal-header"] h3{font-size:21px;margin:0;color:var(--text-primary)}html[data-ui-theme] body [class$="modal-body"],html[data-ui-theme] body .modal-body{padding:24px;line-height:1.85}html[data-ui-theme] body [class$="modal-footer"],html[data-ui-theme] body .modal-footer,html[data-ui-theme] body .wrongbook-modal-dialog>footer{padding:18px 24px;border-top:1px solid var(--border);background:var(--bg-secondary);display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}html[data-ui-theme] .wrongbook-manual-grid{padding:22px 24px}html[data-ui-theme] .wrongbook-modal-dialog>p{margin:12px 24px}html[data-ui-theme] .ui-dialog{width:min(470px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;background:var(--bg-secondary);color:var(--text-primary);border:0;border-radius:20px;padding:28px;overflow:auto;box-shadow:0 20px 65px #111a3540}html[data-ui-theme] .ui-dialog::backdrop{background:#111a3599}html[data-ui-theme] .ui-dialog h2{font-size:22px;margin:0 0 15px}html[data-ui-theme] .ui-dialog-message{font-size:15px;line-height:1.85;white-space:pre-line;color:var(--text-secondary);margin:0 0 24px}html[data-ui-theme] .ui-dialog input{width:100%}html[data-ui-theme] .ui-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
html[data-ui-theme] .ui-toast-region{position:fixed;top:20px;right:20px;z-index:2147483000;display:grid;gap:10px;max-width:min(450px,calc(100vw - 32px));pointer-events:none}html[data-ui-theme] .ui-toast{pointer-events:auto;display:flex;align-items:center;gap:15px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;padding:13px 15px;color:var(--text-primary);font-size:14px;line-height:1.7;box-shadow:var(--ui-surface-shadow)}html[data-ui-theme] .ui-toast[data-tone="error"]{border-color:var(--error)}html[data-ui-theme] .ui-toast[data-tone="warning"]{border-color:var(--warning)}html[data-ui-theme] .ui-toast>button{margin-left:auto;flex-shrink:0}html[data-ui-theme] .ui-page-status{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;margin:20px 32px;border:1px solid var(--warning);border-radius:12px;background:var(--bg-secondary);color:var(--text-secondary);font-size:14px}
html[data-ui-theme] .chatroom-panel{background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border);border-radius:18px}html[data-ui-theme] .chatroom-panel::before{display:none}html[data-ui-theme] .chatroom-header{background:var(--bg-secondary);border-bottom:1px solid var(--border)}html[data-ui-theme] .cr-msg-bubble{background:var(--bg-secondary);color:var(--text-primary);border:0;border-radius:12px;padding:11px 14px;font-size:14px}html[data-ui-theme] .cr-msg-me .cr-msg-bubble{background:var(--primary-bg)}html[data-ui-theme] .message-content{font-size:15px;line-height:1.9;color:var(--text-primary)}html[data-ui-theme] .message-content pre{overflow:auto;max-width:100%}html[data-ui-theme] .message-content code{font-family:Consolas,monospace}html[data-ui-theme] .message-bubble{border:0;border-radius:16px}html[data-ui-theme] .message.user .message-content,html[data-ui-theme] .message.user .message-bubble{background:var(--primary-bg)}
@container(max-width:900px){html[data-ui-theme] .ui-settings-panel[data-settings-panel="account"],html[data-ui-theme] .ui-settings-panel[data-settings-panel="records"]{grid-template-columns:1fr}html[data-ui-theme] .wrongbook-workspace{grid-template-columns:280px minmax(0,1fr)}html[data-ui-theme] .wrongbook-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-ui-theme] .workspace-main :is(.profile-main,.daily-schedule-layout,.wrongbook-layout){padding:22px}html[data-ui-theme] .workspace-main .admin-header-actions{margin-left:0}}
@container(max-width:700px){html[data-ui-theme] .wrongbook-workspace{grid-template-columns:1fr}html[data-ui-theme] .workspace-main :is(.admin-header,.profile-header,.research-header){padding:20px;gap:12px}html[data-ui-theme] .workspace-main :is(.profile-main,.daily-schedule-layout,.wrongbook-layout){padding:16px;gap:16px}html[data-ui-theme] .workspace-main .admin-header h1{font-size:24px}html[data-ui-theme] .workspace-main .admin-heading-block{flex-basis:calc(100% - 100px)}html[data-ui-theme] .wrongbook-mode-switch{margin-left:0}html[data-ui-theme] .wrongbook-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-ui-theme] .wrongbook-mode-switch button{font-size:12px}html[data-ui-theme] .wrongbook-detail{padding:20px}}
@media(max-width:768px){html[data-ui-theme] body{font-size:14px}html[data-ui-theme] .workspace-main :is(.profile-card,.admin-card,.daily-schedule-panel,.csp-filter-panel,.csp-history-panel){padding:20px;border-radius:14px}html[data-ui-theme] .workspace-main :is(.profile-main,.daily-schedule-layout,.wrongbook-layout){padding:16px}html[data-ui-theme] .ui-settings-tabs{gap:3px}html[data-ui-theme] .ui-settings-tabs button{padding:9px 12px;font-size:14px}html[data-ui-theme] .ui-disclosure>summary,html[data-ui-theme] .ui-inline-settings>summary{padding:16px}html[data-ui-theme] .ui-disclosure>.ui-disclosure-body{padding:16px}html[data-ui-theme] .ui-toast-region{top:12px;right:12px}html[data-ui-theme] .ui-dialog{padding:24px}html[data-ui-theme] .ui-page-status{margin:15px 16px}html[data-ui-theme] .chatroom-panel{border-radius:0}html[data-ui-theme] body table{font-size:12px}html[data-ui-theme] body th,html[data-ui-theme] body td{padding:10px}html[data-ui-theme] .wrongbook-manual-grid{padding:18px}html[data-ui-theme] .wrongbook-manual-grid{grid-template-columns:1fr}html[data-ui-theme] .wrongbook-manual-grid .wide{grid-column:1}html[data-ui-theme] .ui-settings-panel[data-settings-panel="account"],html[data-ui-theme] .ui-settings-panel[data-settings-panel="records"]{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html[data-ui-theme] body button,html[data-ui-theme] body [role="button"],html[data-ui-theme] .ui-disclosure>summary::after{transition:none}html[data-ui-theme] body button[data-action-pending="true"]::after{animation:none;border-style:dotted}}

html[data-ui-theme] .studio-filter-controls{display:grid;grid-template-columns:1fr;gap:10px}html[data-ui-theme] .wrongbook-filters>.ui-disclosure{grid-column:1/-1;background:transparent}html[data-ui-theme] .wrongbook-filters>.ui-disclosure>summary{padding:8px 0;font-size:13px}html[data-ui-theme] .wrongbook-filters .ui-disclosure-body{padding:12px 0}html[data-ui-theme] .wrongbook-bulk-bar{margin:12px 0 0;padding:12px 0;border:0;border-top:1px solid var(--border);background:transparent;display:flex;gap:8px;flex-wrap:wrap}html[data-ui-theme] .wrongbook-bulk-bar button{font-size:12px;min-height:35px}html[data-ui-theme] .ui-tool-menu{position:relative;background:transparent}html[data-ui-theme] .ui-tool-menu>summary{padding:9px 12px;font-size:13px;gap:20px}html[data-ui-theme] .ui-tool-menu>.ui-disclosure-body{position:absolute;right:0;top:calc(100% + 4px);min-width:175px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;padding:8px;z-index:50;box-shadow:var(--ui-surface-shadow)}html[data-ui-theme] .studio-inline-tools{display:flex;flex-direction:column;align-items:stretch;gap:4px}html[data-ui-theme] .studio-inline-tools button{width:100%;min-height:38px;justify-content:flex-start;font-size:13px;background:transparent!important;color:var(--text-primary)!important}html[data-ui-theme] .workspace-main .admin-header{flex-direction:row!important;text-align:left!important}html[data-ui-theme] .workspace-main .admin-heading-block{align-items:flex-start;text-align:left}html[data-ui-theme] .workspace-main .profile-header{justify-content:flex-start}html[data-ui-theme] .workspace-main .profile-header h1{flex:1}html[data-ui-theme] .workspace-main .admin-header .admin-header-actions{align-self:center}html[data-ui-theme] .workspace-main .admin-heading-block p{line-height:1.6}html[data-ui-theme] .workspace-main .csp-page-layout{padding:26px 32px;gap:22px}html[data-ui-theme] .workspace-main .training-loop-stats{margin-top:20px}html[data-ui-theme] .workspace-main .points-display{box-shadow:none;border-radius:10px;background:var(--bg-secondary);border:1px solid var(--border);color:var(--text-secondary)}html[data-ui-theme] .workspace-main .points-display::before{display:none}
@media(max-width:768px){html[data-ui-theme] .workspace-main .csp-page-layout{padding:16px}html[data-ui-theme] .workspace-main .admin-header{gap:12px}html[data-ui-theme] .workspace-main .admin-header .back-btn{padding:7px;min-height:34px}html[data-ui-theme] .workspace-main .admin-header .admin-heading-block{flex:1}html[data-ui-theme] .workspace-main .admin-header .admin-heading-block h1{font-size:23px}html[data-ui-theme] .workspace-main .admin-header .wrongbook-mode-switch{order:3}html[data-ui-theme] .workspace-main .admin-header .admin-header-actions{order:4;margin-left:auto}html[data-ui-theme] .workspace-main .admin-header .admin-header-actions button{font-size:12px;padding:9px 12px}html[data-ui-theme] .sidebar-top{max-height:58%}}
