/* XProfile — presentation layer. Routes, permissions, data and handlers stay in index.html. */
:root {
  --xp-canvas: #080d11;
  --xp-surface: #0d131a;
  --xp-raised: #111922;
  --xp-line: #1b2530;
  --xp-muted: #a7b6ca;
  --xp-red: #f01425;
  --xp-sidebar: 266px;
}
body { background: var(--xp-canvas); color: #f5f7fa; }
body #app-shell { background: var(--xp-canvas); }
body #app-shell > main {
  background: radial-gradient(ellipse at 60% 100%, #0b141b55, transparent 60%), var(--xp-canvas);
}
body #main-sidebar {
  width: var(--xp-sidebar);
  isolation: isolate;
  border-right: 1px solid #3d1920;
  border-radius: 14px 14px 0 0;
  background: radial-gradient(ellipse at 0 0, #49162366, transparent 28%), #080b0f;
}
body #main-sidebar > .flex { position: relative; z-index: 1; }
body .xp-sidebar-waves {
  position: absolute; z-index: 0; left: 0; bottom: 155px;
  width: 100%; height: 360px; object-fit: fill; pointer-events: none;
}
body #sidebar-header { height: 134px; padding: 16px 26px 26px; background: none; border: 0; }
body #sidebar-header img { width: 190px; max-width: 100%; height: auto; max-height: none; }
body #sidebar-header .xp-sidebar-symbol { display: none; }
body #sidebar-collapse-toggle { display: none; }
body #sidebar-nav-tooltip {
  position: fixed; z-index: 100; transform: translateY(-50%);
  padding: 9px 13px; border: 1px solid #38404a; border-radius: 9px;
  background: #151d27; color: #f5f7fa; font-size: 13px;
  font-weight: 600; line-height: 20px; white-space: nowrap;
  box-shadow: 0 6px 20px #0006; pointer-events: none;
}
body #sidebar-nav-tooltip[hidden] { display: none; }
@media (min-width: 768px) {
  body #main-sidebar { transition: width 200ms ease, transform 300ms ease; }
  body #sidebar-header { padding-left: 18px; padding-right: 12px; }
  body .xp-sidebar-brand { gap: 10px; }
  body #sidebar-header .xp-sidebar-logo { width: 180px; min-width: 0; margin: 0; }
  body #sidebar-collapse-toggle {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 32px; padding: 0; border: 1px solid #29313d;
    border-radius: 9px; color: #a7b6ca; background: #111922; cursor: pointer;
  }
  body #sidebar-collapse-toggle:hover { color: #fff; border-color: #9d1423; }
  html.xp-sidebar-collapsed body #main-sidebar { width: 80px; }
  html.xp-sidebar-collapsed body #sidebar-header { height: 134px; padding: 36px 8px 12px; }
  html.xp-sidebar-collapsed body .xp-sidebar-brand { flex-direction: column; gap: 8px; }
  html.xp-sidebar-collapsed body #sidebar-header .xp-sidebar-logo { display: none; }
  html.xp-sidebar-collapsed body #sidebar-header .xp-sidebar-symbol { display: block; width: 34px; height: 34px; object-fit: contain; }
  html.xp-sidebar-collapsed body #sidebar-collapse-toggle { height: 26px; }
  html.xp-sidebar-collapsed body #sidebar-collapse-toggle svg { transform: rotate(180deg); }
  html.xp-sidebar-collapsed body .xp-sidebar-nav { padding-left: 12px; padding-right: 12px; }
  html.xp-sidebar-collapsed body .xp-sidebar-nav > div > div:first-child,
  html.xp-sidebar-collapsed body #main-sidebar .sidebar-nav-btn > span,
  html.xp-sidebar-collapsed body .xp-sidebar-account > [onclick] > svg,
  html.xp-sidebar-collapsed body .xp-sidebar-account > [onclick] > div > div:last-child,
  html.xp-sidebar-collapsed body #sidebar-trial-badge,
  html.xp-sidebar-collapsed body .xp-sidebar-footer img { display: none; }
  html.xp-sidebar-collapsed body #main-sidebar .sidebar-nav-btn { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
  html.xp-sidebar-collapsed body .xp-sidebar-account { padding: 12px; }
  html.xp-sidebar-collapsed body .xp-sidebar-account > [onclick] { padding: 8px; min-height: 52px; }
  html.xp-sidebar-collapsed body .xp-sidebar-account > [onclick] > div { justify-content: center; }
  html.xp-sidebar-collapsed body .xp-sidebar-footer { padding-left: 0; padding-right: 0; justify-content: center; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  body #main-sidebar { transition: none; }
}
body .xp-sidebar-nav { padding: 12px 19px 20px; background: transparent; }
body #main-sidebar .xp-sidebar-nav > div + div { margin-top: 28px; }
body .xp-sidebar-nav > div > div:first-child {
  padding: 4px 8px 11px; font-size: 11px; font-weight: 400;
  letter-spacing: 0; color: #8f9fb5; line-height: 14px;
}
body .xp-sidebar-nav nav { display: flex; flex-direction: column; gap: 3px; }
body #main-sidebar .xp-sidebar-nav nav > * + * { margin-top: 0; }
body #main-sidebar .sidebar-nav-btn {
  min-height: 46px; padding: 11px 12px; border-radius: 11px;
  gap: 16px; font-size: 14px; line-height: 22px; font-weight: 600;
  color: #b9c8da; box-shadow: none; background: transparent;
}
body #main-sidebar .sidebar-nav-btn > svg { width: 24px; height: 24px; color: #afc1d9; stroke-width: 1.7; }
body #main-sidebar .sidebar-nav-btn > span.absolute { display: none; }
body #main-sidebar .sidebar-nav-btn:has(> span.absolute) {
  color: #fff; border-color: #9d1423;
  background: linear-gradient(110deg, #591921a6, #260e1466);
  box-shadow: inset 0 1px #ff677411;
}
body #main-sidebar .sidebar-nav-btn:has(> span.absolute) > svg { color: #fff; }
body #main-sidebar .sidebar-nav-btn:hover { background-color: #ffffff05; border-color: #38404a; }
body .xp-sidebar-account { padding: 12px 19px; border: 0; background: none; flex-shrink: 0; }
body .xp-sidebar-account > [onclick] {
  min-height: 64px; padding: 12px 13px; border-radius: 11px;
  background: linear-gradient(130deg, #111219, #0b1117); border-color: #1c222c;
}
body #sidebar-user-avatar { width: 36px; height: 36px; border-radius: 50%; font-size: 13px; font-weight: 500; box-shadow: none; }
body #sidebar-user-name { font-size: 12px; font-weight: 600; line-height: 20px; }
body #sidebar-user-email { font-family: inherit; font-size: 10px; color: #b2bfd0; line-height: 17px; }
body .xp-sidebar-footer {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; flex-shrink: 0; padding: 0 26px 16px 30px;
  border-top: 1px solid #181d26; color: #8d9eb4; font-size: 13px;
}
body .xp-sidebar-footer img { width: 112px; height: auto; }
body #app-shell > main > header {
  height: 64px; min-height: 64px; padding: 0 29px;
  border-color: #20252e; border-radius: 0 0 0 14px;
  background: linear-gradient(110deg, #27111670, #111b2499 66%, #090d12);
  overflow: visible; backdrop-filter: none;
}
body #app-shell > main > header > div:last-child { gap: 17px; }
body #wifi-status-btn, body #logout-button, body #app-shell > main > header > div:last-child > div:last-child {
  height: 42px; border: 1px solid #293644; border-radius: 11px;
  background: linear-gradient(145deg, #141e29, #0b1219);
  color: #c4d1e3; font-size: 13px; font-weight: 400; letter-spacing: 0;
}
body #wifi-status-btn { width: 44px; padding: 0; }
body #wifi-status-btn svg { width: 22px; height: 22px; }
body #logout-button { min-width: 105px; justify-content: center; gap: 10px; }
body #logout-button svg { width: 20px; height: 20px; }
body #app-shell > main > header > div:last-child > div:last-child { min-width: 125px; padding: 0 12px; gap: 9px; }
body #app-shell > main > header > div:last-child > div:last-child > svg:first-child { width: 23px; height: 18px; }
body #app-shell > main > header > div:last-child > div:last-child > span { font-size: 13px; font-weight: 400; }
body #page-title { font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -.5px; margin-left: 4px; }
body .xp-profile-tabs { height: 42px; margin: 18px 29px 0; padding: 0; background: none; border-color: #1b252d; align-items: end; }
body .xp-profile-tabs > div { gap: 28px; padding: 0; font-size: 14px; }
body .xp-profile-tabs button { padding-bottom: 9px; font-weight: 400; }
body .xp-profile-tabs button[class*="border-[#ff242b]"] { color: #ff2135; box-shadow: 0 5px 9px -7px #ff001f; }
body .xp-profile-toolbar {
  min-height: 90px; padding: 20px 29px; gap: 16px; border: 0;
  flex-direction: row; flex-wrap: wrap; background: none;
}
body .xp-profile-toolbar > div { gap: 16px; flex-wrap: wrap; }
body .xp-profile-toolbar button, body .xp-profile-toolbar select {
  min-height: 43px; border-radius: 11px; padding: 0 16px; font-size: 13px;
  font-weight: 500; letter-spacing: -.2px; white-space: nowrap;
  background: linear-gradient(135deg, #151e29, #0c131b); border: 1px solid #263340;
  box-shadow: inset 0 1px #ffffff03, 0 3px 7px #0002;
}
body .xp-profile-toolbar button svg { width: 19px; height: 19px; color: #b7c7da; }
body .xp-profile-toolbar #btn-batch-launch {
  background: linear-gradient(135deg, #ed2634, #b40012); border-color: #ff4050;
  box-shadow: inset 0 0 12px #ff617033, 0 0 18px #f0132330; min-width: 92px;
}
body .xp-profile-toolbar #btn-batch-launch svg { color: white; }
body .xp-profile-toolbar #btn-create-profile { min-width: 123px; }
body #batch-create-wrapper > button { min-width: 160px; justify-content: space-between; }
body .xp-profile-toolbar #btn-batch-delete { min-width: 102px; }
body #app-shell .xp-profile-toolbar > div:last-child > :is(button, select) { min-height: 48px; color: #becbde; font-weight: 400; }
body #app-shell .xp-profile-toolbar #filter-tag {
  min-height: 48px; width: 124px; min-width: 124px; flex: 0 0 124px;
  padding-left: 12px; padding-right: 30px; background-color: #0b1219;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px 14px;
}
body .xp-profile-toolbar button[title="Criar e Gerenciar Tags"] { min-width: 103px; justify-content: center; }
body .xp-profile-toolbar #refresh-panel-btn { min-width: 154px; justify-content: center; gap: 18px; }
body .xp-profile-table,
body #view-proxies > div:has(> table),
body #view-team > div:has(> table),
body #view-admin > div:has(> table) {
  position: relative; min-height: 0; margin: 0 20px 15px;
  border: 1px solid #18232c; border-radius: 12px; isolation: isolate;
  background: radial-gradient(ellipse at 60% 90%, #0d1b241b, transparent 55%), linear-gradient(140deg, #0a1116, #070c10 65%);
}
body #app-shell main table { font-size: 12px; }
body #app-shell main thead { background: #0d141b; color: #adbed4; font-size: 13px; letter-spacing: -.2px; }
body #app-shell main th { height: 60px; padding: 14px 12px; font-weight: 500; border-color: #1c2631; white-space: nowrap; }
body #app-shell main td { padding: 18px 12px; border-color: #1b2530; }
body #app-shell main tbody > tr { background-color: transparent; transition: background-color .15s; }
body #app-shell main tbody > tr:hover { background-color: #ffffff03; }
body #profiles-table-body > tr:nth-child(even) { background-color: #ffffff02; }
body #profiles-table-body > tr:hover, body #profiles-table-body > tr:hover > td.sticky { background-color: #111a23 !important; }
body #profiles-table-body td.text-slate-500 { color: #91a1b6; }
body #profiles-table-body [data-profile-action="change-proxy"] { min-width: 220px; padding-left: 0; padding-right: 0; white-space: nowrap; }
body #profiles-table-body [id^="proxy-flag-"]:empty { display: none; }
body #profiles-table-header > th:first-child { width: 58px; padding-left: 19px; padding-right: 19px; }
body #profiles-table-body > tr > td:first-child { padding-left: 19px; padding-right: 19px; }
body #profiles-table-header > th:nth-child(2) { color: #f5f7fa; }
body #app-shell main :is(th, td).sticky { background-color: #0b1218; box-shadow: -10px 0 16px -10px #0009; }
/* Keep the pinned operation column opaque, with the same surface as its row. */
body #app-shell .xp-profile-table { background: var(--xp-canvas); }
body #app-shell #profiles-table-body > tr { background-color: var(--xp-canvas); }
body #app-shell #profiles-table-body > tr:nth-child(even) { background-color: #0b1015; }
body #app-shell #profiles-table-body > tr > td.sticky,
body #app-shell #profiles-table-body > tr:hover > td.sticky {
  background-color: inherit !important;
  box-shadow: none;
  border-left-color: transparent;
}
body #app-shell #profiles-table-header > th.sticky {
  background-color: #0d141b;
  box-shadow: none;
  border-left-color: transparent;
}
body #app-shell input[type="checkbox"]:not(.sr-only) {
  appearance: none; width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid #a8b9cd; border-radius: 4px; vertical-align: middle;
  background: #0b131b; cursor: pointer;
}
body #app-shell input[type="checkbox"]:not(.sr-only):checked {
  background: #de1124 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/16px;
  border-color: #ff3b4a;
}
body #app-shell [id$="pagination-bar"] {
  min-height: 94px; padding: 20px 29px 27px; border-color: #1a242e;
  background: linear-gradient(110deg, #0c131a77, #080d11); font-size: 13px; gap: 16px;
}
body #app-shell [id$="pagination-bar"] :is(button, select) {
  height: 42px; min-width: 100px; padding: 0 16px; border-radius: 10px;
  background: linear-gradient(135deg, #121b26, #0a1118); border-color: #25313f; font-size: 13px; font-weight: 400;
}
body #app-shell [id$="pagination-bar"] select { min-width: 112px; }
body #app-shell [id$="pagination-bar"] .font-mono { font-family: inherit; font-weight: 500; min-width: 80px; text-align: center; }
body #app-shell [id$="pagination-bar"] .text-xs { font-size: 13px; }
body .xp-profile-table:has(.xp-empty-row) table { height: 100%; }
body .xp-empty-row { height: 100%; }
body #profiles-table-body .xp-empty-row td { padding: 20px; }
body .xp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding-bottom: 190px; gap: 8px; }
body .xp-empty-art { position: relative; width: 325px; max-width: 70%; height: 240px; }
body .xp-empty-art > img:first-child { width: 100%; height: 100%; object-fit: contain; }
body .xp-empty-art > img:last-child { position: absolute; width: 46px; height: 46px; object-fit: contain; left: 48%; top: 48%; }
body .xp-empty-state > span { font-size: 22px; font-weight: 650; color: #fafafa; letter-spacing: -.5px; }
/* Shared panel components; retain permission-driven hidden classes and semantic status colors. */
body #app-shell main :is(#view-tasks, #view-admin, #view-settings, #view-profile) { background-color: transparent; }
body #view-proxies > div:first-child, body #view-extensions > div:first-child, body #view-team > div:first-child, body #view-admin > div:first-child {
  min-height: 80px; padding: 16px 29px; border: 0; background: none; gap: 14px;
}
body #view-proxies > div:first-child > button, body #view-extensions > div:first-child > button, body #view-team > div:first-child button, body #view-admin > div:first-child button {
  min-height: 43px; border-radius: 11px; font-size: 13px; padding: 10px 17px;
}
body #view-extensions > div:has(> #extensions-list) { padding: 0 29px 28px; }
body #extensions-list { gap: 20px; }
body #extensions-list > div { border-radius: 14px; border-color: #24303b; background-color: #0c131b; box-shadow: 0 8px 28px #0002; }
body #extensions-list h3 { white-space: normal; font-size: 14px; line-height: 21px; }
body #extensions-list p { font-size: 13px; line-height: 21px; color: #a7b6ca; }
body #extensions-list > div > div:last-child { color: #8f9fb4; }
body #view-admin > .grid { padding: 0 29px 24px; gap: 18px; background: none; border: none; }
body #view-admin > .grid > div { background: linear-gradient(140deg, #111b25, #0b1219); border-color: #25313e; padding: 20px; border-radius: 13px; }
body #view-settings > .flex-1 { margin: 0 20px 20px; border: 1px solid #1c2732; border-radius: 13px; background: #0a1016; }
body #view-settings .w-56 { background: #0c131a; border-color: #202b36; padding: 20px 14px; width: 222px; }
body #view-settings .w-56 button { font-size: 13px; min-height: 43px; padding-left: 14px; }
body #view-settings .w-56 button > span.absolute { display: none; }
body #settings-scroll-container { padding: 28px 32px; }
body #view-profile > div { padding: 0 29px 32px; max-width: 1120px; }
body #view-profile .rounded-2xl, body #settings-scroll-container .rounded-2xl { background-color: #0e161f; border-color: #26313c; }
body #kanban-overview-view { padding: 12px 29px 28px; }
body #kanban-overview-view > .grid { gap: 20px; }
body #kanban-overview-view [onclick^="switchKanbanBoard"] { border-radius: 14px; box-shadow: 0 10px 24px #0003; }
body #kanban-overview-view [onclick^="switchKanbanBoard"]:hover { border-color: #a52636; }
body #kanban-overview-view [onclick^="switchKanbanBoard"]:focus-within > div > div { opacity: 1; }
body #kanban-overview-view > div > .grid { gap: 20px; }
body #kanban-overview-view [onclick="openNewBoardModal()"] { border-color: #2d3947; background: #0e161f; }
body #kanban-overview-view [onclick="openNewBoardModal()"]:hover > div { background: #8e1022; }
body #kanban-board-toolbar {
  padding: 14px 20px 0; border: 0; background: none;
}
body #kanban-board-toolbar button {
  min-height: 38px; border-radius: 11px; padding: 0 14px; font-size: 12px;
  background: linear-gradient(135deg, #151e29, #0c131b); border: 1px solid #263340;
  color: #c4d1e3;
}
body #kanban-board-toolbar button:hover {
  border-color: #384858; color: #fff;
}
body #kanban-board-view {
  margin: 0 20px 20px; padding: 24px; gap: 20px; border-radius: 14px; border: 1px solid #25303c;
  background-color: #35404c !important; background-blend-mode: multiply;
}
body #kanban-board-view [id^="kanban-col-"] { background: #0d141c; border-color: #2a3541; box-shadow: 0 10px 28px #0002; border-radius: 13px; }
body #kanban-board-view [id^="kanban-col-"] > div:first-child { background: #111b25; border-color: #2a3541; padding: 17px 16px; }
body #kanban-board-view [draggable="true"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--xp-card-color) 12%, #131b25), #111923) !important;
  border: 1px solid #303b48; border-top: 3px solid var(--xp-card-color); padding: 16px 14px;
  border-radius: 10px; box-shadow: 0 3px 10px #0002;
}
body #kanban-board-view [draggable="true"]:hover { border-right-color: #647083; border-bottom-color: #647083; border-left-color: #647083; }
body #kanban-board-view [id^="quick-add-container"] button { min-height: 42px; font-weight: 400; }
body #kanban-board-view button[onclick="openNewColumnModal()"] { background: #101820; border-color: #354354; min-height: 51px; }
body #kanban-board-view button[onclick="openNewBoardModal()"], body #kanban-board-view button[onclick="openNewColumnModal()"].mt-4 { background: linear-gradient(135deg, #e82133, #b8071b); border-color: #ec394a; }
/* Fields, dialogs and popovers use the same graphite surfaces as the panel. */
body :is(#app-shell, [id^="modal-"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="hidden"]), select, textarea) {
  background-color: #0b1219; border-color: #2a3643; color: #e0e8f3; border-radius: 9px; font-size: 13px;
}
body :is(#app-shell, [id^="modal-"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="hidden"]), select) { min-height: 40px; }
body :is(#app-shell, [id^="modal-"]) :is(input, textarea)::placeholder { color: #77889f; }
body :is(#app-shell, [id^="modal-"]) button[class~="bg-[#ff242b]"], body [id^="modal-"] button[type="submit"] {
  background: linear-gradient(135deg, #f02234, #bc071b); border: 1px solid #ff4050;
  box-shadow: inset 0 1px #ffffff19, 0 4px 15px #e30f2522;
}
body [id^="modal-"].fixed { background-color: #020509bf; backdrop-filter: blur(9px); padding: 24px; }
body [id^="modal-"].fixed > div {
  background-color: #0c131b; border-color: #2c3846; border-radius: 17px;
  box-shadow: 0 24px 100px #000a, inset 0 1px #ffffff06; max-height: calc(100dvh - 48px);
}
body [id^="modal-"].fixed > div > [class*="border-b"] { background: linear-gradient(120deg, #30121c66, #121c27); border-color: #26313f; }
body [id^="modal-"] :is(h2, h3) { letter-spacing: -.4px; }
body [id^="modal-"].fixed > div > div:first-child h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
body [id^="modal-"] :is(button, label).text-xs { font-size: 13px; }
body [id^="modal-"] button[id^="btn-submit"], body [id^="modal-"] button[onclick^="save"] { min-height: 40px; }
body :is(#app-shell, [id^="modal-"]) [class~="bg-[#101522]"] { background-color: #111a24; }
body :is(#app-shell, [id^="modal-"]) [class~="bg-[#0b0f19]"] { background-color: #0c141c; }
body :is(#app-shell, [id^="modal-"]) [class~="bg-[#06080d]"] { background-color: #080d12; }
body :is(#app-shell, [id^="modal-"]) [class~="border-[#1c2333]"] { border-color: #26313e; }
body #app-auth-screen { background-color: #080d11; }
body #app-auth-screen .auth-input { border-color: #2a3542; background: #0b121a; border-radius: 10px; }
body #app-auth-screen [class~="bg-[#0c121e]/95"] { background-color: #0d151df2; }
body #app-auth-screen button[type="submit"] { background: linear-gradient(135deg, #ef2234, #bb061b); border: 1px solid #fa4150; box-shadow: 0 5px 20px #ef172521; }
body [id^="modal-"] button[type="submit"] { min-height: 42px; }
body #batch-dropdown, body #wifi-popup, body #columns-dropdown {
  background: #101923; border-color: #2b3948; border-radius: 12px; box-shadow: 0 18px 50px #0008;
}
body .xp-profile-toolbar #batch-dropdown button { min-height: 38px; background: none; border: none; box-shadow: none; font-size: 12px; justify-content: flex-start; }
body :is(button, a, select, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid #fa5262 !important; outline-offset: 3px !important;
}
body button:disabled { cursor: not-allowed; }
@media (min-width: 768px) {
  body #main-sidebar { position: relative; }
  body #app-shell [id$="pagination-bar"] {
    box-sizing: border-box;
    height: 88px; min-height: 88px; flex-shrink: 0;
    padding-top: 0; padding-bottom: 16px;
  }
}
@media (max-width: 1023px) {
  body #modal-profile > div > .grid { display: block; }
  body #modal-profile > div > .grid > div { overflow-y: visible; }
}
@media (max-width: 1420px) and (min-width: 768px) {
  body .xp-profile-toolbar { gap: 14px; padding-top: 15px; padding-bottom: 15px; }
  body .xp-profile-toolbar > div { gap: 9px; }
  body .xp-profile-toolbar > div:last-child { margin-left: auto; }
  body .xp-profile-toolbar button, body .xp-profile-toolbar select { padding-left: 12px; padding-right: 12px; }
}
@media (max-height: 780px) and (min-width: 768px) {
  body #sidebar-header { height: 110px; }
  body .xp-sidebar-nav { padding-top: 0; }
  body .xp-sidebar-nav > div + div { margin-top: 15px; }
  body #main-sidebar .sidebar-nav-btn { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
  body .xp-sidebar-footer { height: 65px; padding-bottom: 0; }
  body #app-shell [id$="pagination-bar"] {
    height: 65px; min-height: 65px; padding-top: 0; padding-bottom: 0;
  }
}
@media (max-width: 767px) {
  body #main-sidebar { border-radius: 0 14px 14px 0; }
  body #sidebar-header { height: 112px; }
  body .xp-sidebar-nav { padding-top: 0; }
  body .xp-sidebar-nav > div + div { margin-top: 15px; }
  body .xp-sidebar-footer { height: 65px; padding-bottom: 0; }
  body #app-shell > main > header { height: 62px; min-height: 62px; padding: 0 16px; flex-wrap: nowrap; }
  body #app-shell > main > header > div:last-child { gap: 8px; }
  body #logout-button { min-width: 72px; padding: 0 9px; }
  body #app-shell > main > header > div:last-child > div:last-child { min-width: 100px; padding: 0 8px; gap: 6px; }
  body #page-title { font-size: 18px; line-height: 26px; }
  body .xp-profile-tabs { margin: 14px 18px 0; }
  body .xp-profile-toolbar { padding: 16px 14px; gap: 12px; }
  body .xp-profile-toolbar > div { width: 100%; gap: 8px; flex-wrap: wrap; }
  body .xp-profile-toolbar button { padding: 0 10px; min-width: 0 !important; flex: 1; }
  body #app-shell .xp-profile-toolbar #filter-tag { min-height: 42px; }
  body .xp-profile-toolbar #refresh-panel-btn { gap: 7px; }
  body #app-shell .xp-profile-toolbar > div:last-child > :is(button, select) { min-height: 42px; font-size: 11px; }
  body #batch-create-wrapper { flex: 1; }
  body .xp-profile-table, body #view-proxies > div:has(> table), body #view-team > div:has(> table), body #view-admin > div:has(> table) { margin: 0 12px 12px; }
  body #app-shell [id$="pagination-bar"] { min-height: 80px; padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  body #app-shell [id$="pagination-bar"] :is(button, select) { min-width: 65px; height: 38px; padding: 0 8px; font-size: 12px; }
  body #app-shell [id$="pagination-bar"] .font-mono { min-width: 48px; padding: 0 4px; }
  body #app-shell [id$="pagination-bar"] > div:last-child { gap: 10px; }
  body #app-shell main :is(th, td).sticky { position: static; box-shadow: none; }
  body .xp-profile-toolbar button svg { flex-shrink: 0; width: 16px; height: 16px; }
  body .xp-empty-state { min-height: 200px; padding-bottom: 0; }
  body .xp-empty-art { height: 160px; }
  body .xp-empty-art > img:last-child { width: 32px; height: 32px; }
  body #view-settings > .flex-1 { margin: 12px; }
  body #settings-scroll-container { padding: 20px 16px; }
  body #view-profile > div, body #kanban-overview-view { padding: 12px 16px 24px; }
  body [id^="modal-"].fixed { padding: 12px; }
  body [id^="modal-"].fixed > div { max-height: calc(100dvh - 24px); }
  body #modal-profile button[onclick="saveProfile()"] { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  body #app-shell *, body [id^="modal-"] { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
