/* Lightweight visual refinement. No fonts, images, or runtime dependencies. */
.catgpt-status-row { display: flex; align-items: center; flex-shrink: 0; flex-wrap: wrap; gap: 8px; padding: 4px 12px; border-bottom: 1px solid #34445b; background: #141d29; }
.catgpt-status-row > .help { margin: 0; flex: 1; min-width: 180px; }
.catgpt-status-row .btn { min-height: 44px; }
:root {
  --surface: #12161c;
  --line: #303947;
  --accent: #94beff;
  --muted: #a0acbc;
  --ui-fast: 120ms;
}
::selection { background: #345b87; color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #465466 #11151b; }
.sidebar { background: #0d1117; }
.brand-mark { display: grid; place-content: center; width: 25px; height: 25px; border: 1px solid #405778; border-radius: 5px; background: #19273a; }
.brand-mark span { display: none; }
.nav-link { position: relative; border-radius: 5px; }
.nav-link.active { border-color: #3b5372; background: #1b2b40; box-shadow: inset 3px 0 #87b8ff; }
.nav-link.active svg { color: #9bc5ff; }
.nav-link .count { background: #142033; border: 1px solid #425979; border-radius: 4px; padding: 2px 5px; }
.topbar, .chat-toolbar, .gx-toolbar { background: #131922; box-shadow: inset 0 -1px #182330; }
.topbar .slash { color: #6f8aac; }
.status-pill { color: #b7c6d8; }
.status-pill[data-state="online"] { color: #97d6af; }
.status-pill[data-state="offline"] { color: #e8bd7e; }
.intro { border-left: 2px solid #536f93; padding-left: 12px; }
.intro h1 { letter-spacing: -.4px; }
.eyebrow { color: #9aaec8; letter-spacing: .8px; }
.section-heading h2 { display: flex; align-items: center; gap: 8px; }
.section-heading h2::before { content: ""; width: 5px; height: 5px; background: #7395c1; border-radius: 1px; }
.panel, .aside-panel { border-radius: 6px; box-shadow: inset 0 1px #ffffff05; }
.panel { background: var(--surface); }
.aside-panel { background: #111720; border-color: #303d4e; }
.metrics { border-radius: 6px; overflow: hidden; background: #111821; }
.metric { box-shadow: inset 0 2px #33465d; }
.metric strong { color: #d9e7fa; font-variant-numeric: tabular-nums; }
.metric span { color: #a4b3c7; }
.tool-card { border-radius: 6px; background: linear-gradient(145deg, #171e28, #11161d); }
.tool-card .tool-icon { width: 27px; height: 27px; border: 1px solid #384c68; border-radius: 5px; background: #1b2a3d; color: #a6ccff; }
.tool-card .tool-icon.blue { background: #1c2c3d; border-color: #3a5672; }
.tool-card .tool-icon.orange { background: #30291f; color: #e1bc8b; border-color: #554633; }
.tool-card .tool-icon.rose { background: #30232b; color: #e5aab9; border-color: #593946; }
.tool-card .tool-icon.lilac { background: #292638; color: #c5b5e7; border-color: #49405f; }
.tool-card .tool-icon.teal { background: #1b2d2f; color: #99d0c8; border-color: #335653; }
.card-top { margin-bottom: 8px; }
.tool-card p { color: #aab7c9; }
.card-arrow { top: 46px; color: #839fc3; }
.badge { border-radius: 4px; letter-spacing: .1px; }
.badge.completed, .badge.failed, .badge.running, .badge.uploading { gap: 5px; }
.badge.completed::before, .badge.failed::before, .badge.running::before, .badge.uploading::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.btn, .tab { border-radius: 5px; border-color: #445268; background: #202a37; box-shadow: inset 0 1px #ffffff09; }
.btn.primary { background: #315f96; border-color: #5684b9; color: #fff; }
.btn.danger { background: #2b2028; }
.btn:disabled { box-shadow: none; }
.tab.active { color: #dbeaff; background: #203653; border-color: #52759f; box-shadow: inset 0 -2px #8dbaff; }
.tabs { gap: 5px; }
.field input, .field textarea, .field select, .search-input { border-radius: 5px; border-color: #3c485b; background: #0c1118; box-shadow: inset 0 1px 2px #0003; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7fa9e1; outline: 2px solid #3a5d88; outline-offset: 1px; }
.field:focus-within { color: #c6defd; }
input[type="checkbox"] { cursor: pointer; }
.check:has(input:disabled) { color: var(--muted); }
summary { border-radius: 4px; }
summary::before { color: #8fb7ea; }
.error { border-radius: 5px; border-left: 3px solid #dd8995; background: #2a1c25; }
.connection-notice { border-left: 3px solid #bd9455; }
.empty { border: 1px dashed #354256; border-radius: 5px; background: #10161e; }
.empty h3 { color: #bfcee1; }
.progress-line { height: 4px; border-radius: 2px; background: #273445; }
.progress-line span { border-radius: inherit; background: #83b2ed; }
.job-row { border-bottom-color: #2b3645; }
.job-row > .tool-icon { color: #8fb4e6; }
.job-meta { color: #a6b4c7; }
.job-title { color: #d5e1f1; }
.service-row > .tool-icon { border: 1px solid #3b4d65; border-radius: 4px; background: #1b283a; width: 28px; height: 28px; color: #9dc2f3; }
.capabilities .badge { background: #19232f; color: #b6cce6; }
.usage-controls { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.usage-controls .field { min-width: 220px; }
.usage-controls .help { margin: 0 0 10px; }
.usage-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; }
.usage-table-wrap { overflow: hidden; }
.usage-table-scroll { overflow-x: auto; }
.usage-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.usage-table th { text-align: left; background: #202c3d; color: #c4d5eb; font: 11px var(--mono); white-space: nowrap; }
.usage-table th, .usage-table td { padding: 9px 10px; border: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.usage-table td:nth-child(n+4) { font-variant-numeric: tabular-nums; text-align: right; }
.usage-table tbody tr:nth-child(even) { background: #151d28; }
@media (max-width: 1100px) { .usage-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .usage-controls .field { min-width: 100%; } }

/* Reading surfaces stay quiet and keep their original usable dimensions. */
.chat-view .chat-panel { background: #0d1219; border-radius: 0; }
.chat-view .chat-toolbar h1 { color: #cddcf0; }
.chat-view .composer { background: #141c27; border-top-color: #3a4b61; }
.chat-view .composer textarea { background: #0b111a; }
.chat-view .message { border-bottom-color: #293544; }
.message-role { display: flex; align-items: center; gap: 6px; letter-spacing: .7px; }
.message-role::before { content: ""; width: 4px; height: 4px; background: #768ca8; border-radius: 1px; }
.assistant .message-role { color: #a6c7f6; }
.assistant .message-role::before { background: #92baff; }
.markdown-body code { border-radius: 3px; }
.code-block, .gx-diff { border-radius: 5px; border-color: #40516a; }
.copy-code { border-top-right-radius: 4px; border-bottom-left-radius: 5px; }
.markdown-body blockquote { background: #141e2b; border-radius: 0 4px 4px 0; }
.settings-popover, .chat-view .history { border-color: #506681; background: #161f2c; box-shadow: 0 8px 20px #0005; }
.chat-view .empty { border: 0; background: transparent; }
.gx-search { background: #141c26; border-bottom-color: #39495f; }
.gx-search .gx-query:focus-within input { background: #101d2e; }
.gx-results { background: #0e141d; }
.gx-pane-heading, .gx-list-filter { background: #18212e; border-bottom-color: #36465d; }
.gx-repo-header { background: #121a25; }
.gx-repo-tabs { background: #121a25; border-bottom-color: #3c4d64; }
.gx-repo.selected, .gx-discussion.selected { background: #1d3048; border-left-color: #9bc8ff; }
.gx-repo.selected strong, .gx-discussion.selected strong { color: #e1efff; }
.gx-content, .gx-thread { background: #0e141c; }
.gx-document-heading { background: #151e2a; border-bottom-color: #32425a; }
.gx-thread-body { padding: 12px; border: 1px solid #34445b; border-radius: 5px; background: #131c28; }
.gx-comment { padding: 12px; border: 1px solid #303e53; border-radius: 5px; margin: 10px 0; background: #121a25; }
.gh-table th { background: #202c3d; color: #c4d5eb; }
.gh-table th, .gh-table td { border-color: #354359; }
.gh-table tbody tr:nth-child(even) { background: #17202c; }
.gh-cache { border-bottom: 1px solid #2d3b4f; margin-bottom: 8px; }
.login-panel { border-color: #415674; box-shadow: 0 8px 24px #0004; }
#toast { border-color: #6984a8; background: #24344a; box-shadow: 0 4px 16px #0004; }

/* Short, local feedback only. No list staggering or streaming-message effects. */
@media (prefers-reduced-motion: no-preference) {
  .btn, .tab, .nav-link, .tool-card, .history-item, .gx-repo, .gx-discussion, summary {
    transition: background-color var(--ui-fast) ease, border-color var(--ui-fast) ease, color var(--ui-fast) ease;
  }
  .field input, .field textarea, .field select { transition: border-color var(--ui-fast) ease, background-color var(--ui-fast) ease; }
  .btn:not(:disabled):active, .tab:active { transform: translateY(1px); }
  .progress-line span { transition: width 180ms ease-out; }
  .intro { animation: ui-fade 150ms ease-out; }
  .settings-popover, .chat-view .history:not([hidden]) { animation: ui-panel 130ms ease-out; }
  #toast:not([hidden]) { animation: ui-toast 140ms ease-out; }
  form[aria-busy="true"] button[type="submit"]::before,
  #gx-search button[type="submit"]:disabled::before {
    content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid #ffffff40;
    border-top-color: currentColor; border-radius: 50%; animation: ui-spin 850ms linear infinite; flex-shrink: 0;
  }
}
@media (hover: hover) {
  .btn:not(:disabled):hover { background: #2c3c52; border-color: #6882a5; }
  .btn.primary:not(:disabled):hover { background: #3b70ad; border-color: #8bb8ec; }
  .tool-card:hover { border-color: #6884a8; }
  .tab:hover, summary:hover { background: #24354b; }
  .nav-link:hover { background: #1b2b40; }
  .gx-repo:hover, .gx-discussion:hover { background: #1c2a3d; }
  .gx-repo.selected:hover, .gx-discussion.selected:hover { background: #253b57; }
  .gh-table tbody tr:hover { background: #203049; }
}
@keyframes ui-fade { from { opacity: .65; } to { opacity: 1; } }
@keyframes ui-panel { from { opacity: .65; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ui-toast { from { opacity: 0; transform: translate(-50%, 5px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ui-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tablet reading mode: search and results never reserve space beside a repo. */
.gx-search { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.gx-search .gx-query { grid-column: auto; }
.gx-filters { position: relative; margin: 0; }
.gx-filters summary { min-height: 44px; padding: 0 12px; border: 1px solid #445268; background: #202a37; }
.gx-filter-fields { position: absolute; z-index: 12; right: 0; top: 49px; width: min(340px, calc(100vw - 24px)); display: grid; gap: 12px; padding: 14px; border: 1px solid #506681; border-radius: 5px; background: #161f2c; box-shadow: 0 8px 20px #0005; }
.gx-search .gx-filter-fields .field { min-width: 0; }
.gx-repo-step { display: flex; gap: 4px; }
.gx-browse-toggle { display: none; }
@media (max-width: 1366px), (pointer: coarse) {
  .gx-browse-toggle { display: inline-flex; }
  .gx-toolbar { gap: 6px; min-height: 52px; }
  .gx-toolbar #gx-health { display: none; }
  .gx-toolbar > strong { font-size: 12px; }
  .gx-results-back { display: none; }
  .gx-has-repo:not(.gx-browsing) > .gx-search { display: none; }
  .gx-has-repo:not(.gx-browsing) .gx-results { display: none; }
  .gx-has-repo:not(.gx-browsing) .gx-inspector { display: flex; width: 100%; }
  .gx-browsing .gx-results { display: block; width: 100%; border-right: 0; }
  .gx-browsing.gx-has-repo .gx-inspector { display: none; }
  .gx-browsing:not(.gx-has-repo) .gx-results { width: 38%; }
  .gx-browsing:not(.gx-has-repo) .gx-inspector { display: flex; }
  .gx-repo-header { padding: 9px 16px 4px; }
  .gx-repo-header h1 { font-size: 17px; margin: 0 0 4px; }
  .gx-repo-header p { font-size: 13px; margin: 4px 0; }
  .gx-repo-header > div { width: 100%; }
  .gx-repo-tabs { padding: 4px 16px; }
  .gx-document-heading { padding: 6px 20px; }
  .gx-document { width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px 24px; font-size: 16px; line-height: 1.75; }
  .gx-thread-body { font-size: 16px; }
  .gx-discussion-list { width: 100%; border: 0; }
  .gx-thread { display: none; }
  .gx-thread-open .gx-discussion-list { display: none; }
  .gx-thread-open .gx-thread { display: block; }
  .gx-list-back { display: inline-flex; }
}
@media (max-width: 620px) {
  .gx-toolbar > strong { display: none; }
  .gx-toolbar { padding-inline: 6px; gap: 4px; }
  .gx-toolbar .btn { padding-inline: 7px; }
  .gx-browsing:not(.gx-has-repo) .gx-results { display: none; }
  .gx-browsing:not(.gx-has-repo) .gx-inspector { width: 100%; }
  .gx-browsing.gx-search-started .gx-results { display: block; width: 100%; }
  .gx-browsing.gx-search-started .gx-inspector { display: none; }
  .gx-document { padding: 14px 16px; }
}

/* CatGPT is a first-class workspace, while its messages still use the existing chat surface. */
.catgpt-view main { padding: 0; overflow: hidden; }
.catgpt-workspace { display: flex; flex: 1; min-width: 0; min-height: 0; width: 100%; background: #0b1016; }
.catgpt-sidebar { display: flex; flex-direction: column; width: 264px; min-width: 230px; padding: 14px 10px 10px; border-right: 1px solid #2e3b4d; background: #101720; overflow: auto; }
.catgpt-sidebar-head { display: flex; align-items: center; gap: 10px; padding: 0 6px 16px; }
.catgpt-sidebar-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.catgpt-sidebar-head strong { color: #e1edfc; font-size: 15px; }
.catgpt-sidebar-head span { color: #8f9fb3; font: 10px var(--mono); overflow-wrap: anywhere; }
.catgpt-back { color: #9fc4f2; font: 11px var(--mono); white-space: nowrap; }
.catgpt-back:hover { color: #fff; }
.catgpt-new { width: 100%; margin-bottom: 8px; }
.catgpt-search { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; margin-bottom: 14px; border: 1px solid #3b4b61; border-radius: 5px; background: #0b1119; color: #8fa8c5; }
.catgpt-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.catgpt-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e1e9f4; font: 12px var(--mono); }
.catgpt-search:focus-within { border-color: #7fa9e1; outline: 2px solid #3a5d88; outline-offset: 1px; }
.catgpt-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 6px 5px; color: #a5b5c9; font: 10px var(--mono); letter-spacing: .7px; text-transform: uppercase; }
.catgpt-icon-button { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #9fc4f2; cursor: pointer; }
.catgpt-icon-button svg { width: 14px; height: 14px; }
.catgpt-icon-button:hover { border-color: #506987; background: #1c2d43; }
.catgpt-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.catgpt-nav-item, .catgpt-chat-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 7px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #b8c6d7; text-align: left; cursor: pointer; }
.catgpt-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; color: #93b6df; }
.catgpt-nav-item span, .catgpt-chat-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catgpt-nav-item small { margin-left: auto; color: #7f91a8; font: 10px var(--mono); }
.catgpt-nav-item:hover, .catgpt-chat-item:hover { border-color: #405571; background: #182536; color: #e5f0ff; }
.catgpt-nav-item.active, .catgpt-chat-item.active { border-color: #496b95; background: #1d3450; color: #edf5ff; }
.catgpt-chat-item { align-items: flex-start; flex-direction: column; gap: 2px; min-height: 47px; font-size: 12px; }
.catgpt-chat-item small { color: #8194ab; font: 10px var(--mono); }
.catgpt-count { color: #8194ab; font-size: 10px; }
.catgpt-sidebar-empty, .catgpt-sidebar-error { padding: 8px 9px; margin: 0; font-size: 10px; }
.catgpt-sidebar-error { color: #ffb5b5; }
.catgpt-chat-list { overflow: auto; }
.catgpt-secondary-nav { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 14px; }
.catgpt-secondary-nav a { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 8px; border-radius: 5px; color: #9eafc4; font-size: 11px; }
.catgpt-secondary-nav a:hover { background: #182536; color: #e5f0ff; }
.catgpt-secondary-nav svg { width: 15px; height: 15px; color: #86a6cf; }
.catgpt-stage { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.catgpt-header { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; border-bottom: 1px solid #2d3b4e; background: #111923; }
.catgpt-header-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.catgpt-header-title strong { color: #e4effe; font-size: 14px; }
.catgpt-header-title span { color: #8fa2b9; font: 10px var(--mono); }
.catgpt-header .actions { margin-left: auto; }
.catgpt-mobile-menu { display: none; min-width: 40px; min-height: 40px; border: 1px solid #40546e; border-radius: 5px; background: #1a293b; color: #dbeaff; font-size: 18px; cursor: pointer; }
.catgpt-chat-surface { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.catgpt-chat-surface .chat-toolbar { min-height: 46px; }
.catgpt-chat-surface .chat-layout { flex: 1; min-height: 0; }

@media (max-width: 720px) {
  .catgpt-sidebar { position: fixed; z-index: 12; inset: 0 auto 0 0; width: min(290px, 88vw); transform: translateX(-102%); transition: transform 160ms ease; box-shadow: 10px 0 30px #0008; }
  .catgpt-nav-open .catgpt-sidebar { transform: translateX(0); }
  .catgpt-mobile-menu { display: inline-grid; place-items: center; }
  .catgpt-header { padding-inline: 8px; }
  .catgpt-header .btn.small { padding-inline: 8px; }
  .catgpt-header .badge { display: none; }
  .catgpt-chat-surface .chat-toolbar { padding-inline: 8px; }
}

/* Repo reading uses one scroll surface, including every top control. */
.github-view main.gx-has-repo:not(.gx-browsing) {
  display: block;
  overflow: auto;
  overscroll-behavior-y: contain;
}
.github-view main.gx-has-repo:not(.gx-browsing) > .gx-workspace {
  height: auto;
  min-height: 0;
  overflow: visible;
  align-items: flex-start;
}
.github-view main.gx-has-repo:not(.gx-browsing) .gx-inspector {
  display: block;
  min-height: 0;
}
.github-view main.gx-has-repo:not(.gx-browsing) .gx-content {
  height: auto;
  overflow: visible;
}
.github-view main.gx-has-repo:not(.gx-browsing) .gx-discussions {
  height: auto;
  align-items: flex-start;
}
.github-view main.gx-has-repo:not(.gx-browsing) .gx-thread {
  overflow: visible;
}
.github-view main.gx-has-repo:not(.gx-browsing) .gx-results {
  max-height: calc(var(--app-height, 100dvh) - 60px);
}
/* Account editing is a focused, keyboard-accessible dialog. */
.accounts{max-width:1200px;margin-inline:auto}.account-password{margin-bottom:18px}.account-password summary{font-weight:600}
.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.account-row:first-child{padding-top:0}.account-row:last-child{padding-bottom:0;border:0}.account-row>div:first-child{min-width:0;overflow-wrap:anywhere}.account-row .help{margin:6px 0 0}.account-row .actions{flex-shrink:0}
.account-dialog{color:#dce1e9;background:#111419;border:1px solid #424a59;border-radius:12px;padding:0;width:min(780px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);box-shadow:0 24px 90px #0009;overflow:hidden}
.account-dialog::backdrop{background:#040608c4;backdrop-filter:blur(3px)}
.account-editor{display:flex;flex-direction:column;max-height:calc(100dvh - 42px);margin:0}
.account-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #303642;background:#151921;flex:none}.account-editor-heading h2{font-size:22px;margin:5px 0}.account-editor-heading p{margin:0;color:#aab5c7;font-size:13px}.account-close{font-size:23px;width:44px;padding:0;background:transparent}
.account-editor-body{padding:22px 24px;overflow:auto;min-height:0}.account-editor-body>.field{margin-bottom:14px}.account-editor .field input{font-family:inherit}
.account-roles{border:0;margin:22px 0;padding:0;min-width:0}.account-roles legend{margin-bottom:10px;font-weight:600}.account-role-options{display:flex;gap:8px}.account-role{display:flex;align-items:flex-start;gap:9px;flex:1;min-width:0;border:1px solid #363e4c;border-radius:7px;padding:13px 10px;cursor:pointer;background:#171b22}.account-role input{width:17px;height:17px;margin:1px 0;flex:none;accent-color:#a6b2ff}.account-role strong,.account-role small{display:block}.account-role small{font-size:10px;line-height:1.5;color:#a0aabc;margin-top:5px}.account-role:has(:checked){background:#252c43;border-color:#8798e0}.account-role:has(:focus-visible),.account-feature:has(:focus-visible){outline:2px solid #aabaff;outline-offset:2px}
.account-access-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-access-heading h3{font-size:16px;margin:0}.account-access-heading .help{margin:6px 0 0}.account-access-heading .badge{padding:6px 9px;color:#bfcaff;border-color:#404b6c;white-space:nowrap}
.account-presets{display:flex;gap:7px;margin:14px 0 20px}.account-presets .btn{background:#1b202b;border-color:#3f4859}.account-presets .btn:last-child{margin-left:auto;color:var(--muted)}
.account-permissions{border:0;padding:0;margin:18px 0 0;min-width:0}.account-permissions legend{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#99a5b8;margin-bottom:9px}.account-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.account-feature{display:flex;align-items:center;gap:10px;padding:11px 12px;min-height:70px;border:1px solid #303745;border-radius:6px;cursor:pointer;background:#151921;transition:background 120ms,border-color 120ms}.account-feature input{width:18px;height:18px;flex:none;accent-color:#a6b2ff;margin:0}.account-feature>span:nth-child(2){flex:1;min-width:0}.account-feature strong{font-size:12px;display:block;color:#d3d9e6}.account-feature small{display:block;font-size:10px;line-height:1.5;color:#95a0b3;margin-top:4px}.account-feature-state{width:6px;height:6px;border-radius:50%;background:#454b58;flex:none}.account-feature:has(:checked){background:#1c2438;border-color:#50628e}.account-feature:has(:checked) .account-feature-state{background:#a6baff}.account-feature:hover{border-color:#8c9dbc}
.account-all-access{border:1px solid #4a5a80;background:#1c253a;border-radius:8px;padding:20px;margin-top:18px}.account-all-access p{font-size:12px;line-height:1.6;color:#acb9ce;margin:8px 0 0}
.account-editor-footer{display:block;padding:14px 24px;border-top:1px solid #343d4d;background:#171c25;flex:none}.account-editor-footer>.help{margin:0;color:#b0b9c9}.account-editor-footer .actions{justify-content:flex-end;margin-top:10px}.account-editor-footer .btn{min-width:100px}.account-editor-footer [data-feedback]:empty{display:none}.account-editor-footer [data-feedback]{margin-top:10px}
.account-dialog [hidden]{display:none!important}
@media(max-width:600px){.account-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:8px}.account-editor{max-height:calc(100dvh - 18px)}.account-editor-heading,.account-editor-body,.account-editor-footer{padding:16px}.account-permission-grid{grid-template-columns:minmax(0,1fr)}.account-role-options{flex-direction:column}.account-role{align-items:center;padding:10px}.account-role small{margin:2px 0 0}.account-editor .form-grid{grid-template-columns:minmax(0,1fr)}.account-editor .field input{font-size:16px}.account-row{align-items:flex-start;flex-direction:column}}

.account-editor-footer{font:inherit}.account-editor-footer .actions .btn{font-family:inherit}
