/* teemto pagalies was robbed */
:root {
  color-scheme: dark;
  font:
    14px/1.5 "Segoe UI Variable",
    "Segoe UI",
    sans-serif;
  --bg: #141518;
  --panel: #191b20;
  --editor: #111216;
  --hover: #24272e;
  --border: #2d3038;
  --text: #e8e9ee;
  --muted: #a5aab7;
  --accent: #ff5a40;
  --ok: #83c7a3;
  --error: #ef8585;
  --explorer: 230px;
  --output: 180px;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select {
  background: var(--editor);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 9px;
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
button:hover:not(:disabled) {
  background: var(--hover);
}
[hidden] {
  display: none !important;
}
svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: none;
}
button svg,
span[data-icon] {
  pointer-events: none;
}
kbd {
  font:
    11px "Segoe UI",
    sans-serif;
  opacity: 0.7;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.spacer,
.rail-spacer {
  flex: 1;
}
.count {
  font-size: 11px;
  border-radius: 4px;
  background: #ffffff08;
  color: var(--muted);
  padding: 1px 6px;
  font-weight: 500;
}
.icon-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 5px;
  color: var(--muted);
}
.icon-button:hover {
  color: var(--text);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 29px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
  background: #ffffff04;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #23160f;
  font-weight: 650;
}
.button.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 85%, white);
}
.text-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 13px;
}
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.titlebar {
  height: 44px;
  flex: none;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand strong {
  font-size: 14px;
  letter-spacing: -0.2px;
  font-weight: 650;
}
.brand .edition {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #7f8592;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  margin-left: 3px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.connection .attach {
  margin-left: 3px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d8492;
  display: inline-block;
  flex: none;
}
.connected .status-dot,
.status-dot.connected {
  background: var(--ok);
}
.status-dot.busy {
  background: var(--accent);
  animation: pulse 1.3s infinite;
}
.status-dot.failed {
  background: var(--error);
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #30241f;
  border-bottom: 1px solid #624333;
  color: #f5c5ae;
  padding: 5px 16px;
  font-size: 13px;
}
.notice span {
  flex: 1;
}
.shell {
  flex: 1;
  min-height: 0;
  display: flex;
}
.activity {
  width: 44px;
  flex: none;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
}
.rail-button {
  height: 36px;
  width: 36px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #7f8592;
  position: relative;
}
.rail-button svg {
  width: 19px;
  height: 19px;
}
.rail-button.active {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--accent);
}
.rail-button.active:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.explorer {
  width: var(--explorer);
  flex: none;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel-heading {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
}
.panel-heading h2 {
  font-size: 13px;
  letter-spacing: 0.2px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--editor);
  margin: 0 12px 18px;
  padding: 0 8px;
  color: #7f8592;
}
.search-field input {
  width: 100%;
  border: 0;
  padding: 7px 0;
  background: none;
  font-size: 13px;
}
.search-field:focus-within {
  border-color: var(--accent);
}
.search-field input:focus-visible {
  outline: 0;
}
.search-field svg {
  width: 14px;
  height: 14px;
}
.tree-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1px;
  padding: 0 14px 8px;
  color: var(--muted);
}
.tree-heading svg {
  width: 11px;
  height: 11px;
}
.tree-heading .count {
  margin-left: auto;
  letter-spacing: 0;
}
.script-list {
  flex: 1;
  overflow: auto;
  padding: 0 7px;
}
.script-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
  height: 31px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.script-item.active {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: #f4b298;
}
.script-item > button:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  text-align: left;
  height: 100%;
  padding: 0;
  background: none;
}
.script-item > button:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.script-item svg {
  width: 14px;
  height: 14px;
  color: #8f96a4;
}
.script-item .delete {
  opacity: 0;
  width: 22px;
  height: 22px;
}
.script-item:hover .delete,
.script-item:focus-within .delete {
  opacity: 1;
}
.script-item:hover {
  background: var(--hover);
}
.explorer-footer {
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #9198a6;
  border-top: 1px solid var(--border);
  padding: 0 12px;
}
.explorer-footer > svg {
  width: 13px;
}
.explorer-footer .icon-button {
  margin-left: auto;
}
.empty {
  color: #858d9d;
  font-size: 13px;
  padding: 18px 12px;
}
.empty strong {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 500;
}
.empty button {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  padding: 6px 0;
}
.empty > span {
  display: block;
  line-height: 1.6;
}
.resize {
  flex: none;
  position: relative;
  background: var(--border);
  touch-action: none;
  z-index: 3;
}
.resize:hover,
.resize:focus-visible {
  background: var(--accent);
}
.resize.vertical {
  width: 1px;
  cursor: col-resize;
}
.resize.vertical:after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 0;
  bottom: 0;
}
.resize.horizontal {
  height: 1px;
  cursor: row-resize;
}
.resize.horizontal:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  bottom: -3px;
}
.workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.editor-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--editor);
}
.tabstrip {
  display: flex;
  height: 37px;
  flex: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.document-tabs {
  display: flex;
  align-self: stretch;
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.document-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  min-width: 120px;
  border-right: 1px solid #252830;
  border-top: 2px solid transparent;
  color: #9299a8;
  padding: 0 8px 0 12px;
  flex: none;
  font-size: 13px;
}
.document-tab.active {
  border-top-color: var(--accent);
  background: var(--editor);
  color: var(--text);
}
.document-tab > button:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  height: 100%;
  background: none;
}
.document-tab .tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-tab svg {
  width: 13px;
  height: 13px;
  color: #858d9e;
}
.document-tab .close-tab {
  width: 22px;
  height: 22px;
  font-size: 14px;
  color: #858d9e;
  border-radius: 4px;
}
.document-tab .dirty {
  color: var(--accent);
  font-size: 11px;
}
.tabstrip > #newTab {
  margin-left: 5px;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 39px;
  flex: none;
  border-bottom: 1px solid #ffffff05;
  padding: 0 12px;
}
.document-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 12px;
  min-width: 0;
  color: #8f97a5;
  font-size: 12px;
}
.document-label span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.document-label svg {
  width: 13px;
  height: 13px;
}
.draft-status {
  font-size: 11px;
  color: #747d8d;
  margin-right: 10px;
  white-space: nowrap;
}
.editor-host {
  flex: 1;
  min-height: 0;
  position: relative;
}
#fallbackEditor {
  height: 100%;
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  background: var(--editor);
  padding: 16px 24px;
  font:
    14px/1.65 "Cascadia Mono",
    Consolas,
    monospace;
  color: var(--text);
  tab-size: 4;
}
.editor-host:focus-within {
  outline: 0;
}
.output-panel {
  height: var(--output);
  flex: none;
  min-height: 95px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.output-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  flex: none;
  padding: 0 10px 0 15px;
  border-bottom: 1px solid #ffffff05;
}
.output-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
}
.output-title:hover {
  background: none !important;
}
.error-count {
  font-size: 11px;
  color: var(--error);
}
.log-search {
  width: 150px;
  height: 25px;
  font-size: 12px;
}
.output-toolbar select {
  height: 25px;
  font-size: 11px;
  padding: 2px 6px;
}
.autoscroll {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.autoscroll input {
  width: 12px;
  height: 12px;
}
.log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  font:
    12px/1.7 "Cascadia Mono",
    Consolas,
    monospace;
  padding: 7px 16px;
}
.log-entry {
  display: grid;
  grid-template-columns: 64px 57px minmax(0, 1fr);
  gap: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.log-entry time {
  color: #737c8e;
}
.log-entry .level {
  color: #8e9bae;
  font-size: 11px;
}
.log-entry.error .message,
.log-entry.error .level {
  color: var(--error);
}
.log-entry.inject .level {
  color: var(--accent);
}
.log-summary {
  font-size: 11px;
  color: #858d9d;
  padding: 0 16px;
}
.log-summary:empty {
  display: none;
}
footer {
  height: 25px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 13px;
  border-top: 1px solid var(--border);
  color: #929aa9;
  font-size: 11px;
}
footer button {
  font-size: 11px;
  color: inherit;
  padding: 2px 0;
}
.footer-connection {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-divider {
  height: 10px;
  width: 1px;
  background: var(--border);
}
#unreadErrors {
  color: var(--error);
}
.settings-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 36px;
  background: var(--editor);
}
.settings-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 12px;
}
.settings-top h1 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-bottom: 6px;
}
.settings-top p.muted {
  font-size: 13px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 7px;
}
.settings-section {
  max-width: 760px;
  border-top: 1px solid var(--border);
  padding: 19px 0;
}
.settings-section > h2 {
  margin-bottom: 12px;
}
.settings-section > p {
  font-size: 13px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}
.setting-row strong {
  font-size: 13px;
  font-weight: 500;
}
.setting-row p,
.settings-note {
  font-size: 12px;
  color: #8992a3;
  margin-top: 3px;
}
.setting-row select {
  width: 75px;
}
.field-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 5px;
}
.path-row {
  display: flex;
  gap: 8px;
}
.path-row input {
  flex: 1;
  font:
    12px "Cascadia Mono",
    monospace;
}
.component-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-top: 16px;
  color: var(--muted);
}
.component-line span:last-child {
  color: var(--accent);
}
summary {
  cursor: pointer;
  font-size: 13px;
}
.diagnostics {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  margin: 15px 0;
  font-size: 13px;
}
.diagnostics span {
  color: var(--muted);
}
.diagnostics code {
  font-size: 12px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #41454f;
  border-radius: 9px;
  width: 400px;
  padding: 24px;
  box-shadow: 0 20px 80px #0008;
}
dialog::backdrop {
  background: #08090cb3;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-bottom: 7px;
}
dialog p.muted {
  font-size: 13px;
}
#dialogInput {
  width: 100%;
}
.dialog-error {
  min-height: 22px;
  font-size: 12px;
  color: var(--error);
  margin: 6px 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#app.explorer-hidden .explorer,
#app.explorer-hidden #explorerResize {
  display: none;
}
#app.output-hidden #outputPanel,
#app.output-hidden #outputResize {
  display: none;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1000px) {
  .draft-status {
    display: none;
  }
  .output-toolbar {
    gap: 5px;
  }
  .log-search {
    width: 115px;
  }
  .document-label {
    display: none;
  }
  .brand .edition {
    display: none;
  }
}
@media (max-width: 760px) {
  .explorer {
    width: 180px;
  }
  .autoscroll {
    display: none;
  }
  .settings-page {
    padding: 22px;
  }
  .output-toolbar .log-search {
    width: 100px;
  }
  .connection {
    font-size: 12px;
  }
  .titlebar {
    padding: 0 10px;
  }
}
::-webkit-scrollbar {
  width: 9px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #414650;
  border: 2px solid var(--bg);
  border-radius: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* Keep client selection visible without turning status into a headline. */
#clientSelect {
  max-width: 270px;
  height: 29px;
  font-size: 13px;
  padding: 3px 24px 3px 9px;
}
.connection-label {
  color: var(--muted);
  font-size: 12px;
}
.tree-heading {
  letter-spacing: 0;
  font-size: 12px;
}
.eyebrow {
  letter-spacing: 0;
  font-size: 12px;
}
.log-entry {
  grid-template-columns: 64px 75px minmax(0, 1fr);
}
@media (max-width: 1000px) {
  #clientSelect {
    max-width: 200px;
  }
}
/* A quieter shell, with settings kept in their own workspace. */
:root {
  --accent: #ff5a40;
  --border: #282a30;
  --bg: #121315;
  --panel: #161719;
  --hover: #202226;
}
:root[data-theme="ember"],
#app[data-theme="ember"] {
  --accent: #ff5a40;
}
:root[data-theme="blue"],
#app[data-theme="blue"] {
  --accent: #91b6ee;
}
:root[data-theme="graphite"],
#app[data-theme="graphite"] {
  --accent: #e4e7ed;
}
.button.primary {
  color: #17181b;
}
.button.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 85%, white);
}
.script-item.active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.rail-button.active {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.editor-toolbar {
  order: 3;
  height: 43px;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  gap: 8px;
  padding: 0 12px;
}
.editor-toolbar #execute {
  order: -1;
}
.document-label {
  display: none;
}
.document-tab.active {
  border-top-color: transparent;
  box-shadow: inset 0 -1px 0 var(--accent);
}
.document-tab {
  border-right-color: #ffffff04;
}
.editor-toolbar .text-button {
  border: 1px solid var(--border);
  height: 29px;
  padding: 0 10px;
}
#app.explorer-right .activity {
  order: 0;
}
#app.explorer-right .workspace {
  order: 1;
}
#app.explorer-right #explorerResize {
  order: 2;
}
#app.explorer-right .explorer {
  order: 3;
}
#app.status-hidden > footer {
  display: none;
}
#app.timestamps-hidden .log-entry {
  grid-template-columns: 75px minmax(0, 1fr);
}
#app.timestamps-hidden .log-entry time {
  display: none;
}
#app.reduce-motion * {
  animation: none !important;
  scroll-behavior: auto !important;
}
#app.compact .script-item {
  height: 27px;
}
#app.compact .setting-row {
  padding: 10px 0;
}
.notice {
  position: fixed;
  bottom: 38px;
  right: 16px;
  z-index: 15;
  max-width: 420px;
  background: #202226;
  border: 1px solid #3c3f47;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  box-shadow: 0 8px 30px #0005;
}
.settings-page {
  padding: 0;
  overflow: hidden;
  display: flex;
  background: var(--bg);
}
.settings-nav {
  width: 172px;
  flex: none;
  border-right: 1px solid var(--border);
  padding: 22px 12px;
  overflow: auto;
}
.settings-nav-title {
  font-size: 14px;
  font-weight: 600;
  padding: 0 8px 16px;
}
.settings-nav > input {
  width: 100%;
  font-size: 12px;
  padding: 7px 8px;
  margin-bottom: 15px;
}
.settings-nav nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.settings-nav nav button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}
.settings-nav nav button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.settings-content {
  min-width: 0;
  flex: 1;
  overflow: auto;
  padding: 27px 30px 40px;
}
.settings-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.settings-heading h1 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 5px;
}
.settings-heading p {
  color: #858d9c;
  font-size: 12px;
}
.settings-content .setting-row {
  padding: 16px 0;
  border-bottom: 1px solid #ffffff06;
  gap: 20px;
}
.settings-content .setting-row strong {
  font-size: 13px;
  font-weight: 500;
}
.settings-content .setting-row p {
  font-size: 12px;
  color: #858d9c;
  max-width: 370px;
  line-height: 1.6;
  margin-top: 3px;
}
.settings-content .setting-row select {
  width: 150px;
  flex: none;
  font-size: 13px;
  padding: 5px 8px;
}
.settings-content input.setting-switch {
  appearance: none;
  width: 30px;
  height: 17px;
  background: #24262b;
  border: 1px solid #34373f;
  border-radius: 10px;
  position: relative;
  padding: 0;
  flex: none;
  margin: 0;
  cursor: pointer;
}
.settings-content input.setting-switch:after {
  content: "";
  width: 11px;
  height: 11px;
  background: #7f8590;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
}
.settings-content input.setting-switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.settings-content input.setting-switch:checked:after {
  background: #23252a;
  left: 15px;
}
.settings-content .path-row input {
  width: 100%;
  min-width: 0;
}
.settings-content > .muted,
#settingsConnection > .muted {
  font-size: 12px;
  line-height: 1.7;
}
.diagnostics-heading {
  margin-top: 30px;
}
.keybind-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.keybind-table td {
  border-bottom: 1px solid #ffffff08;
  padding: 14px 0;
}
.keybind-table td:last-child {
  text-align: right;
  color: var(--muted);
  font-family: "Cascadia Mono", monospace;
  font-size: 12px;
}
@media (max-width: 1050px) {
  .settings-nav {
    width: 145px;
    padding: 18px 10px;
  }
  .settings-content {
    padding: 23px 20px;
  }
  .settings-content .setting-row p {
    max-width: 245px;
  }
  .settings-content .setting-row select {
    width: 135px;
  }
}

#app.settings-open .explorer,
#app.settings-open #explorerResize,
#app.settings-open #outputPanel,
#app.settings-open #outputResize {
  display: none;
}

/* Menu text gets a little breathing room. */
.document-tab,
.settings-nav nav button,
.settings-content .setting-row strong {
  font-size: 14px;
}
.output-toolbar select {
  font-size: 12px;
  height: 28px;
}
.log-search {
  height: 28px;
  padding: 3px 8px;
}
.settings-heading h1 {
  font-size: 20px;
}
.settings-nav-title {
  font-size: 15px;
}

/* Phoenix owns the frame; Windows owns moving and resizing it. */
.titlebar { height: 50px; padding: 0 0 0 16px; gap: 24px; user-select: none; app-region: drag; background: #141518; }
.titlebar button, .titlebar a, .titlebar input, .titlebar select { app-region: no-drag; }
.titlebar .brand { flex: none; }
.titlebar .brand-logo { width: 28px; height: 28px; }
.top-navigation { display: flex; align-self: stretch; align-items: stretch; gap: 4px; }
.top-nav { position: relative; min-width: 82px; padding: 0 16px; font-size: 14px; color: var(--muted); }
.top-nav.active { color: var(--text); }
.top-nav.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--accent); }
.top-nav:hover:not(:disabled) { background: #ffffff04; }
.titlebar-space { flex: 1; min-width: 40px; height: 100%; cursor: default; }
.window-controls { display: flex; align-self: stretch; flex: none; }
.window-control { width: 46px; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 0; }
.window-control svg { width: 13px; height: 13px; }
.window-control:hover:not(:disabled) { color: var(--text); background: #ffffff0d; }
.close-window:hover:not(:disabled) { color: white; background: #b93636; }
.client-toolbar { display: flex; align-items: center; gap: 14px; min-height: 42px; padding: 6px 12px; border-top: 1px solid var(--border); flex: none; }
.client-toolbar-label { color: var(--muted); font-size: 13px; flex: none; }
.client-toolbar .connection { flex: 1; min-width: 0; justify-content: flex-end; }
.client-toolbar .connection-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-toolbar #clientSelect { flex: 1; min-width: 100px; max-width: 340px; width: auto; }
#app.accounts-open .explorer, #app.accounts-open #explorerResize, #app.accounts-open #outputPanel, #app.accounts-open #outputResize { display: none; }
@media (max-width: 1000px) { .titlebar { gap: 16px; } .top-nav { min-width: 74px; padding: 0 12px; } .client-toolbar .connection-label { max-width: 100px; } }
