/* Braintune Player — shared presentation tokens and application layout. */
.pair-instructions { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.pair-instructions h3 { margin:0; }
#pair-code { font-size:26px; letter-spacing:6px; font-variant-numeric:tabular-nums; }
.screen-location { display:block; color:#8490a2; font-size:11px; margin-top:5px; }
.screen-error { display:block; color:#b95151; font-size:11px; max-width:220px; white-space:normal; margin-top:6px; }
.status-badge.device-online { color:#24714f; background:#e8f7ee; }
.status-badge.device-offline { color:#8b6a29; background:#fff4dd; }
.player-table { margin-top:20px; }
.toolbar-end { margin-left:auto; }
.sidebar-bottom .account-nav { display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:8px; color:#d7deeb; text-decoration:none; }
.sidebar-bottom .account-nav:hover, .sidebar-bottom .account-nav.active { color:white; background:#ffffff13; }
.profile-name small { display:block; margin-top:2px; color:var(--muted); font-size:10px; font-weight:500; }
.accounts-panel h2 { margin:0; font-size:18px; }
.accounts-panel .toolbar p { margin:6px 0 0; }
.accounts-panel .tablewrap { margin-top:15px; }
.account-role-super_admin { background:#efe8ff; color:#6243a6; }
.account-role-manager { background:#e5f2ff; color:#204e91; }
.account-role-user, .status-badge.release-superseded, .status-badge.release-idle { background:#edf0f4; color:#526074; }
.status-badge.release-queued { background:#fff3d9; color:#7e5400; }
.status-badge.release-downloaded { background:#e5f1ff; color:#205396; }
.status-badge.release-playing { background:#e1f6ea; color:#1e6648; }
.status-badge.release-failed { background:#ffebeb; color:#a12c3b; }
.screen-error { color:#a12c3b; }
.segmented { display:flex; flex-wrap:wrap; gap:5px; padding:4px; border-radius:10px; background:#f0f3f8; }
.segmented button { border:0; background:transparent; white-space:nowrap; }
.segmented button[aria-pressed=true] { background:white; color:#163f9e; box-shadow:0 1px 4px #243c671a; }
.segmented button span { color:#536279; font-variant-numeric:tabular-nums; }
.workspace-form .field { align-items:stretch; }
.release-context { display:flex; align-items:center; gap:12px; padding:14px; background:#f2f6ff; border:1px solid #dce6fc; border-radius:10px; margin:5px 0 18px; }
.release-context>span { width:36px; height:36px; display:grid; place-items:center; background:#e2ecff; color:#245bdb; border-radius:8px; flex-shrink:0; }
.release-context small, .target-list small { display:block; margin-top:4px; color:#56647a; }
.publish-targets { padding:12px; margin:0 0 18px; min-width:0; border:1px solid var(--border); border-radius:10px; }
.publish-targets legend { padding:0 6px; font-weight:650; }
.target-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.target-tools button { min-height:30px; padding:4px 9px; font-size:12px; }
.target-list { max-height:min(255px,32vh); overflow:auto; display:grid; gap:7px; }
.target-list label { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; border:1px solid var(--border); border-radius:8px; cursor:pointer; }
.target-list label:has(input:checked) { border-color:#789deb; background:#f3f7ff; }
.target-list strong { overflow-wrap:anywhere; }
.history-intro { margin:7px 0 15px; color:var(--muted); }
.release-history { margin-bottom:14px; }
.log-filter { display:flex; align-items:center; gap:10px; }
.quick-control-grid a { display:flex; align-items:center; gap:9px; padding:10px; border:1px solid var(--border); border-radius:7px; color:#344052; text-decoration:none; font-size:12px; }
.quick-control-grid a:hover { background:#f4f7fd; color:#173e9b; }
.canvas { container-type:inline-size; font-family:Arial,system-ui,sans-serif; }
.dialog .canvas .widget { cursor:default; }
@media(max-width:760px) {
 .sidebar-bottom .account-nav { justify-content:center; padding-inline:6px; }
 .sidebar-bottom .account-nav span { display:none; }
}
:root {
  --blue: #245bdb;
  --ink: #192130;
  --muted: #6b7585;
  --border: #e1e5ec;
  --bg: #f5f6f8;
  --sidebar: #181d27;
  --cyan: #08b9dc;
  --magenta: #dc279f;
  --sidebar-width: 228px;
  font-size: 14px;
  color: var(--ink);
}
body { background: var(--bg); }
button, input, select, textarea { border-radius: 6px; font-size: 14px; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 13px; border-color: #d8dee8; color: #344052; transition: background .15s, border-color .15s; }
button:hover { background: #f4f7fd; border-color: #a3b5d9; color: #173e9b; }
button.primary { background: var(--blue); border-color: var(--blue); box-shadow: 0 1px 2px #102e6512; }
button.primary:hover { background: #194bc4; border-color: #194bc4; color:#fff; }
button:disabled { opacity: .43; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #83b1ff; outline-offset: 3px; }
input, select, textarea { border-color: #d8dee8; padding: 10px 12px; color: #344052; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #a5c3ff; outline-offset: 1px; }
input[type=checkbox] { width: 16px; height: 16px; }
select { padding-right: 30px; }
a { color: var(--blue); }
.icon { flex-shrink: 0; vertical-align: middle; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); background: var(--sidebar); color: #d1d7e2; padding: 23px 12px 12px; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 30px; padding: 0 16px; }
.sidebar-brand img { width: 170px; height: 65px; object-fit: contain; }
.sidebar-brand .logo-mark { display: none; }
.sidebar-brand>span { font-size: 10px; font-weight: 600; color: #929bac; letter-spacing: 2.4px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 7px; }
.sidebar-nav>a, .sidebar-nav summary, .sidebar-bottom>button { display: flex; align-items: center; gap: 14px; border-radius: 6px; padding: 12px 14px; color: #d7deeb; font-size: 14px; line-height: 20px; }
.sidebar-nav>a:hover, .sidebar-nav summary:hover, .sidebar-bottom>button:hover { background: #252d3c; color: white; }
.sidebar-nav>a.active { color: white; background: #2b4065; box-shadow: inset 3px 0 0 #42c5ea; font-weight: 600; }
.sidebar-nav details { position: static; }
.sidebar-nav summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.sidebar-nav summary>.icon:last-child { margin-left: auto; }
.sidebar-nav details>div { position: static; background: transparent; box-shadow: none; padding: 4px 0 4px 40px; min-width: 0; }
.sidebar-nav details>div a { color: #a6b1c3; padding: 9px 10px; display: block; border-radius: 5px; font-size: 13px; }
.sidebar-nav details>div a.active { color: white; background: #2b4065; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.sidebar-bottom::before { content: ''; display: block; height: 1px; background: #353d4c; margin: 0 10px 12px; }
.sidebar-bottom>button { justify-content: flex-start; border: 0; width: 100%; background: transparent; text-align: left; }
.sidebar-bottom small { display: block; margin: 18px 14px 6px; color: #818da3; font-size: 11px; }
.workspace-topbar { position: sticky; top: 0; height: 68px; margin-left: var(--sidebar-width); background: white; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 22px; padding: 0 28px; z-index: 35; }
.workspace-name { color: #253047; font-weight: 650; font-size: 15px; white-space: nowrap; }
.global-search { display: flex; align-items: center; gap: 10px; margin-left: auto; background: #fafbfc; border: 1px solid #dce2ec; border-radius: 6px; padding: 0 11px; color: #8490a3; width: min(390px,38vw); }
.global-search input { border: 0; background: transparent; padding: 9px 0; width: 100%; min-width: 0; font-size: 13px; }
.global-search:focus-within { outline: 2px solid #a5c3ff; }
.global-search input:focus { outline: 0; }
.icon-button { padding: 7px; background: transparent; border-color: transparent; }
.avatar { display: inline-flex; align-items: center; justify-content: center; background: #e9edf5; color: #34425a; font-weight: 650; border-radius: 50%; width: 34px; height: 34px; font-size: 12px; flex-shrink: 0; }
.profile-menu summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.profile-name { max-width: 105px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: 13px; }
.profile-menu>div { top: 43px; border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 5px 24px #17213b18; }
.profile-menu>div button { justify-content: flex-start; }
.main { margin: 0 0 0 var(--sidebar-width); padding: 26px 28px 18px; min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.page-heading h1 { margin: 0; font-size: 27px; font-weight: 670; letter-spacing: -.6px; line-height: 1.3; }
.page-heading p { color: var(--muted); margin: 7px 0 0; font-size: 14px; line-height: 1.5; }
.heading-actions { display: flex; gap: 12px; flex-shrink: 0; }
.panel, .dashboard-panel { border: 1px solid var(--border); background: white; border-radius: 8px; box-shadow: 0 1px 3px #172c4910; }
.panel { min-height: calc(100vh - 240px); padding: 24px; }
.workspace-footer { display: flex; gap: 20px; justify-content: space-between; margin: 23px 0 0; color: #8590a1; font-size: 11px; }
.toolbar { gap: 9px; margin-bottom: 22px; }
.toolbar .search { min-width: 130px; max-width: 220px; }
.toolbar button { font-size: 13px; }
.tabs { gap: 20px; border-color: var(--border); }
.tabs button { color: #657087; font-weight: 500; padding: 12px 5px; min-height: 42px; }
.tabs button:hover { background: #f7f9fd; color: var(--blue); }
table { font-size: 13px; }
th { background: #f3f5f8; padding: 13px 12px; color: #4b566a; font-weight: 550; }
td { padding: 14px 12px; border-color: #e9edf3; color: #3b4659; }
tbody tr:hover { background: #fafbfe; }
td button { min-height: 30px; padding: 5px 9px; font-size: 12px; margin: 2px; }
.tablewrap { overflow-x: auto; }
.tablewrap td { white-space: nowrap; }
.tablewrap th:last-child, .tablewrap td:last-child { position: sticky; right: 0; box-shadow: -4px 0 8px #253b5a08; }
.tablewrap th:last-child { background: #f3f5f8; }
.tablewrap td:last-child { background: white; }
.tablewrap tbody tr:hover td:last-child { background: #fafbfe; }
.empty { min-height: 200px; color: #748096; gap: 14px; padding: 26px 18px; font-size: 14px; text-align: center; }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; border: 1px solid #e1e7f0; border-radius: 12px; background: #f7f9fc; color: #8c9ab1; }
.empty .hint { max-width: 320px; margin: 0; }
.hint { color: #798397; font-size: 13px; line-height: 1.6; }
.pager { font-size: 12px; gap: 10px; border-top: 1px solid #edf0f5; padding-top: 18px; }
.pager input { padding: 7px; }
.pager button { min-height: 30px; }
.workspace-dashboard { display: flex; flex-direction: column; gap: 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.summary-card { border: 1px solid var(--border); background: white; border-radius: 7px; display: flex; align-items: center; gap: 18px; padding: 20px; min-height: 102px; box-shadow: 0 1px 2px #182e4810; }
.summary-icon { color: #426196; }
.summary-card>div>span { color: #69748a; font-size: 13px; display: block; }
.summary-card strong { color: #1b263b; font-size: 30px; line-height: 1.15; display: block; font-weight: 650; margin-top: 5px; }
.summary-card.green .summary-icon { color: #319267; }
.summary-card.amber .summary-icon { color: #cd952f; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(290px,1fr); gap: 20px; }
.dashboard-panel { padding: 20px; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-heading h2, .activity-section h2 { margin: 0; font-size: 17px; font-weight: 620; letter-spacing: -.3px; }
.section-heading>a { font-size: 12px; font-weight: 550; }
.section-heading>button { min-height: 31px; padding: 5px 10px; font-size: 12px; }
.screen-filters { display: flex; gap: 25px; border-bottom: 1px solid var(--border); margin-bottom: 15px; color: #7c879a; font-size: 12px; }
.screen-filters>span { padding: 8px 0 12px; white-space: nowrap; }
.screen-filters .active { color: var(--blue); font-weight: 600; border-bottom: 2px solid var(--blue); }
.screens-overview .empty { min-height: 233px; }
.quick-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-control-grid button { justify-content: flex-start; font-size: 12px; padding: 10px; gap: 9px; }
.activity-section { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; }
.activity-section h2 { font-size: 15px; margin-bottom: 10px; }
.activity-item { display: flex; gap: 10px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid #edf0f5; }
.activity-item:last-child { border: 0; padding-bottom: 0; }
.activity-item>.icon { margin-top: 2px; color: #738198; }
.activity-item>div { min-width: 0; flex: 1; }
.activity-item strong { font-size: 12px; font-weight: 550; display: block; }
.activity-item span { display: block; font-size: 11px; color: #8992a2; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; margin-top: 3px; }
.activity-item time { color: #8690a1; font-size: 10px; white-space: nowrap; margin-top: 2px; }
.lower-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 20px; }
.recent-solutions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.recent-solutions>.empty { grid-column: 1/-1; }
.recent-solution { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.solution-preview { height: 120px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: white; padding: 15px; }
.solution-preview>span { font-size: 15px; font-weight: 500; text-align: center; overflow: hidden; text-overflow: ellipsis; width: 100%; white-space: nowrap; }
.solution-preview>small { opacity: .6; font-size: 10px; }
.recent-solution-info { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.recent-solution-info>div { overflow: hidden; }
.recent-solution-info strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-solution-info small { display: block; font-size: 10px; color: #8a94a5; margin-top: 5px; }
.recent-solution-info button { min-height: 29px; font-size: 11px; padding: 5px 8px; }
.upcoming-item { display: flex; gap: 14px; padding: 17px 0; border-top: 1px solid var(--border); }
.upcoming-item>.icon { color: #79859b; }
.upcoming-item strong { font-size: 13px; display: block; font-weight: 550; }
.upcoming-item span { font-size: 12px; color: #778398; display: block; margin-top: 6px; }
.status-badge { border-radius: 4px; background: #edf5ff; color: #3467ad; padding: 4px 7px; font-size: 11px; }
.control-grid { padding: 0; gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.control-tile { background: white; border: 1px solid var(--border); height: 125px; display: flex; flex-direction: column; justify-content: center; font-size: 14px; }
.control-tile:hover { background: #f6f9ff; border-color: #b6c8e9; }
.control-tile i { display: block; font-style: normal; color: var(--blue); margin-bottom: 7px; }
.split { grid-template-columns: 220px minmax(0,1fr); gap: 24px; }
.split aside { min-width: 0; border-color: var(--border); }
.split aside>input { width: 100%; margin-bottom: 12px; }
.split>div { min-width: 0; }
.control-body { padding: 0 8px; }
.control-body h3 { color: #34415a; font-weight: 550; font-size: 15px; }
.formrow { gap: 15px; }
.formrow>label { font-size: 13px; color: #627089; }
.stat-card { border-radius: 7px; border-color: var(--border); }
.stat-card h3 { font-size: 16px; font-weight: 550; }
.stat-card h3 select { margin-top: 10px; font-size: 12px; }
.stat-card .toolbar input { min-width: 0; flex: 1; }
.metrics strong { color: var(--ink); font-weight: 600; }
.media-card { border-radius: 7px; border-color: var(--border); min-width: 0; }
.media-card:hover { border-color: #b7c9e9; }
.media-card img, .media-card video { border-radius: 4px; }
.media-card audio { width: 100%; }
.media-card>div { margin-top: 13px; }
.media-card small { color: #8490a2; }
.schedule-list button { display: block; text-overflow: ellipsis; overflow: hidden; }
.calendar-grid { overflow-x: auto; }
.calendar-grid>div { min-width: 40px; font-size: 12px; }
.calendar-grid small { border-left: 2px solid var(--blue); font-size: 10px; overflow: hidden; }
.modal-shade { background: #111c3659; backdrop-filter: blur(2px); padding: 18px; }
.dialog { border: 1px solid #dce2ee; border-radius: 9px; box-shadow: 0 20px 70px #101d3d29; }
.dialog-body .error:empty { display:none; }
.dialog-head { padding: 20px 24px; color: var(--ink); font-weight: 600; font-size: 17px; }
.dialog-head>button { min-height: 24px; width: 28px; color: #8691a4; font-size: 23px; }
.dialog-body { padding: 15px 24px 18px; }
.dialog-footer { background: #fafbfc; padding: 16px 24px; }
.field { margin: 17px 0; color: #4c5a71; font-size: 13px; font-weight: 500; }
.field input, .field textarea, .field select { font-weight: 400; margin-top: 8px; }
.notice { border: 1px solid #d8e7ff; background: #f0f6ff; color: #48668d; border-radius: 6px; }
.warning { border: 1px solid #f0e2ba; background: #fffaf0; color: #957133; border-radius: 6px; line-height: 1.6; }
.search-result { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 5px; }
.search-result:hover { background: #f1f5fd; }
.dialog h3 { font-size: 14px; font-weight: 600; margin-top: 24px; }
#toast { border: 1px solid #dce4f0; color: #34435b; top: 82px; border-radius: 7px; box-shadow: 0 4px 20px #192b4c1a; font-size: 13px; max-width: 90vw; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,.85fr) 1.15fr; }
.login-brand-panel { background: var(--sidebar); color: white; padding: 48px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 50px; }
.login-logo { display: block; }
.login-logo img { width: 210px; height: 84px; object-fit: contain; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 650; color: #6580ae; }
.login-brand-panel .eyebrow { color: #aabbd5; }
.login-brand-panel h1 { font-size: 45px; letter-spacing: -1.3px; line-height: 1.18; font-weight: 600; margin: 22px 0; }
.login-brand-panel p { color: #a5b0c4; max-width: 330px; font-size: 15px; line-height: 1.8; }
.login-brand-panel>small { color: #7d8aa2; font-size: 12px; }
.login-features { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.login-features>span { display: flex; align-items: center; gap: 13px; color: #cbd6e8; font-size: 13px; }
.login-features .icon { color: #5dbee0; }
.login-content { display: flex; justify-content: center; align-items: center; padding: 48px 30px; }
.login { width: 390px; max-width: 100%; margin: 0; padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.login h2 { font-weight: 650; font-size: 29px; letter-spacing: -.7px; margin: 16px 0 10px; }
.login-intro { color: #7b879b; font-size: 14px; line-height: 1.6; margin-bottom: 32px; }
.login .primary { width: 100%; min-height: 43px; margin-top: 0; }
#toggle-registration { display: block; margin: 16px auto 0; }
.login-footnote { text-align: center; margin-top: 30px; color: #95a0b2; font-size: 11px; }
.editor-header { height: 68px; padding: 0 20px 0 0; border-color: var(--border); gap: 13px; }
.editor-brand { background: var(--sidebar); padding: 10px 18px; height: 68px; display: flex; align-items: center; flex-shrink: 0; }
.editor-brand img { width: 110px; height: 43px; object-fit: contain; }
.editor-back { color: #7b879a; }
.editor-header>span { max-width: 190px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 550; }
.editor-header>button { font-size: 12px; min-height: 32px; }
.widget-tools { gap: 2px; }
.widget-tools button { font-size: 10px; display: flex; flex-direction: column; gap: 3px; padding: 6px 7px; }
.widget-tools i { color: #6d7f9c; display: block; margin: 0; }
.editor-layout { grid-template-columns: 215px minmax(200px,1fr) 270px; height: calc(100vh - 68px); }
.editor-sidebar { border-right: 1px solid var(--border); }
.editor-sidebar:last-child { border-right: 0; border-left: 1px solid var(--border); }
.editor-sidebar .tabs { padding: 0 12px; gap: 15px; }
.editor-sidebar .tabs button { font-size: 12px; padding: 15px 0; white-space: normal; }
.editor-strip { padding: 10px 15px; gap: 6px; background: white; }
.editor-strip button { font-size: 11px; min-height: 28px; padding: 5px 7px; }
.editor-strip button .icon { width: 14px; height: 14px; }
.editor-center { background: #e9edf3; }
.canvas-area { padding: 55px 36px; }
.widget-row { font-size: 12px; color: #63708a; }
.properties { padding: 0 18px; }
.properties .field { font-size: 12px; }
.properties input { font-size: 12px; }
.editor-sidebar .empty { height: auto; min-height: 290px; padding: 20px; font-size: 12px; }
@media(min-width:1600px) {
  .main { padding: 32px 40px; }
  .workspace-dashboard { gap: 24px; }
  .dashboard-panel { padding: 24px; }
}
@media(max-width:1200px) {
  :root { --sidebar-width: 205px; }
  .workspace-topbar { gap: 15px; padding: 0 22px; }
  .profile-name { display: none; }
  .main { padding: 24px 22px; }
  .overview-grid { grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 16px; }
  .dashboard-panel { padding: 17px; }
  .summary-card { padding: 17px; gap: 12px; }
  .recent-solutions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recent-solution:nth-child(3) { display: none; }
  .editor-header { gap: 8px; }
  .editor-header>span { max-width: 135px; }
  .widget-tools button { padding: 5px; }
}
@media(max-width:1000px) {
  :root { --sidebar-width: 190px; }
  .sidebar-brand img { width: 150px; }
  .sidebar-nav>a, .sidebar-nav summary, .sidebar-bottom>button { gap: 10px; padding: 11px 9px; font-size: 13px; }
  .overview-grid { grid-template-columns: 1fr; }
  .quick-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 25px; }
  .quick-panel>.section-heading { grid-column: 1; }
  .quick-panel>.quick-control-grid { grid-column: 1; align-self: start; }
  .quick-panel>.activity-section { grid-column: 2; grid-row: 1/3; margin-top: 0; border-top: 0; border-left: 1px solid var(--border); padding: 0 0 0 20px; }
  .summary-card { padding: 15px 12px; gap: 10px; }
  .summary-icon .icon { width: 21px; }
  .summary-card strong { font-size: 26px; }
  .summary-card>div>span { font-size: 11px; }
  .global-search { width: 250px; }
  .workspace-name { font-size: 13px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { gap: 7px; }
  .heading-actions button { font-size: 12px; padding: 8px 10px; }
  .split { grid-template-columns: 170px minmax(0,1fr); gap: 18px; }
  .control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .statistics { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 155px minmax(180px,1fr) 225px; }
  .editor-brand img { width: 80px; }
  .editor-header>span { max-width: 100px; }
  .widget-tools button { font-size: 9px; padding: 4px; }
  .editor-header>button { padding: 6px 8px; font-size: 11px; }
  .canvas-area { padding: 35px 20px; }
  .login-brand-panel { padding: 40px; }
}
@media(max-width:760px) {
  :root { --sidebar-width: 68px; }
  .app-sidebar { padding: 14px 7px; }
  .sidebar-brand { padding: 0; margin-bottom: 20px; align-items: center; justify-content: center; width: 54px; height: 44px; }
  .sidebar-brand .logo-full { display: none; }
  .sidebar-brand .logo-mark { display: block; width: 38px; height: 38px; }
  .sidebar-brand>span { display: none; }
  .sidebar-nav>a, .sidebar-nav summary, .sidebar-bottom>button { justify-content: center; padding: 13px; }
  .sidebar-nav>a>span, .sidebar-nav summary>span, .sidebar-bottom>button>span { display: none; }
  .sidebar-nav summary>.icon:last-child { display: none; }
  .sidebar-nav details { position: relative; }
  .sidebar-nav details>div { position: absolute; left: 54px; top: 0; background: var(--sidebar); padding: 7px; width: 155px; border-radius: 0 6px 6px 0; }
  .sidebar-bottom small { display: none; }
  .sidebar-bottom::before { margin: 0 7px 12px; }
  .workspace-topbar { height: 60px; padding: 0 15px; gap: 10px; }
  .workspace-name { font-size: 12px; }
  .global-search { width: 190px; }
  .profile-menu summary>.icon { display: none; }
  .avatar { width: 29px; height: 29px; font-size: 10px; }
  .main { padding: 22px 17px 15px; }
  .page-heading { flex-wrap: wrap; margin-bottom: 20px; gap: 16px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { font-size: 13px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .summary-card>div>span { font-size: 12px; }
  .lower-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split aside { min-height: auto; border-right: 0; padding: 0 0 15px; border-bottom: 1px solid var(--border); }
  .panel { padding: 17px; }
  .formrow>label { text-align: left; width: auto; }
  .formrow { flex-wrap: wrap; margin: 18px 0; }
  .formrow>input, .formrow>select { width: 100%; }
  .panel .toolbar[style] { margin-left: 0!important; }
  .login-layout { grid-template-columns: 1fr; }
  .login-brand-panel { padding: 25px; gap: 0; }
  .login-logo img { width: 160px; height: 60px; }
  .login-brand-panel>div, .login-brand-panel>small { display: none; }
  .login-content { padding: 40px 28px; }
  .editor-header { height: auto; flex-wrap: wrap; padding: 0 10px 10px 0; gap: 10px; }
  .editor-brand { height: 52px; }
  .editor-brand img { width: 80px; height: 34px; }
  .editor-header>span { max-width: 150px; flex: 1; }
  .widget-tools { order: 3; width: 100%; justify-content: center; }
  .widget-tools button { font-size: 11px; padding: 5px 10px; }
  .editor-layout { grid-template-columns: 130px minmax(150px,1fr); height: auto; min-height: 80vh; }
  .editor-sidebar:last-child { grid-column: 1/-1; max-height: none; border-top: 1px solid var(--border); }
  .editor-sidebar .empty { min-height: 180px; }
  .editor-sidebar:last-child .properties form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .editor-center { min-height: 350px; }
  .properties button { align-self: end; margin-bottom: 18px; }
}
@media(max-width:520px) {
  .workspace-topbar { gap: 9px; padding: 0 12px; }
  .global-search { display: none; }
  .workspace-name { margin-right: auto; }
  .main { padding: 19px 12px; }
  .heading-actions { width: 100%; }
  .heading-actions>button { flex: 1; }
  .summary-card { min-height: 88px; gap: 12px; }
  .quick-panel { display: block; }
  .quick-panel>.activity-section { border-left: 0; border-top: 1px solid var(--border); margin-top: 22px; padding: 18px 0 0; }
  .screen-filters { gap: 15px; font-size: 10px; }
  .section-heading h2 { font-size: 15px; }
  .recent-solutions { grid-template-columns: 1fr; }
  .recent-solution:nth-child(3) { display: block; }
  .control-grid { gap: 10px; }
  .control-tile { font-size: 12px; padding: 10px; }
  .toolbar .search { width: 100%; max-width: none; margin-left: 0; }
  .workspace-footer>span:last-child { display: none; }
  .dialog-footer button { font-size: 12px; margin-left: 5px; }
  .dialog-body { padding: 12px 18px; }
  .editor-header>span { max-width: 90px; }
  .editor-header>button { font-size: 10px; padding: 5px; }
  .editor-header>button .icon { display: none; }
  .widget-tools button { padding: 5px 7px; font-size: 10px; }
  .editor-layout { grid-template-columns: 100px minmax(150px,1fr); }
  .canvas-area { padding: 30px 12px; }
}
