:root {
  --page: #f7f7f8;
  --surface: #ffffff;
  --sidebar: #ebebec;
  --panel: #ffffff;
  --text: #333333;
  --muted: #666666;
  --faint: #92929d;
  --border: #d9d9e3;
  --divider: #c4c4ce;
  --hover: #dedee5;
  --accent: #5436da;
  --accent-soft: #ebe8fb;
  --user: #e7e7eb;
  --user-text: #333333;
  --success: #19c37d;
  --warning: #b7791f;
  --danger: #c04b4b;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

[data-theme="dark"] {
  --page: #343541;
  --surface: #343541;
  --sidebar: #202123;
  --panel: #40414f;
  --text: #ececf1;
  --muted: #c5c5d2;
  --faint: #8e8ea0;
  --border: #4d4d4f;
  --divider: #5d5d66;
  --hover: #2a2b32;
  --accent: #8b7cf6;
  --accent-soft: #443d68;
  --user: #484955;
  --user-text: #f0f0f3;
  --success: #19c37d;
  --warning: #e0a95b;
  --danger: #ef7b78;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.login-page {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 360px);
}

.login-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.login-heading {
  margin-bottom: 30px;
}

.login-heading h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.login-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  margin: 0 0 7px;
  font-weight: 650;
}

.login-form input {
  width: 100%;
  height: 42px;
  margin-bottom: 18px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.login-form button {
  height: 42px;
  margin-top: 4px;
  border: 0;
  border-radius: 7px;
  background: var(--text);
  color: var(--surface);
  cursor: pointer;
  font-weight: 650;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.login-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
}

html {
  background: var(--page);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 160ms;
  animation-timing-function: ease-out;
}

html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out !important;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0s;
  }
}

body {
  background: var(--page);
  color: var(--text);
  cursor: default;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button *,
a * {
  cursor: inherit;
}

a {
  cursor: pointer;
}

button:disabled,
button:disabled * {
  cursor: not-allowed;
}

input,
textarea,
[contenteditable="true"] {
  cursor: text;
}

.app-shell {
  --sidebar-width: clamp(250px, 22vw, 280px);
  --inspector-width: clamp(320px, 28vw, 360px);
  --main-left-radius: 12px;
  --main-right-radius: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) 0;
  width: 100%;
  height: 100vh;
  min-height: 0;
  background: var(--sidebar);
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-closed {
  --main-left-radius: 0;
  grid-template-columns: 0 minmax(0, 1fr) 0;
}

.app-shell.inspector-open {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--inspector-width);
}

.app-shell.sidebar-closed.inspector-open {
  grid-template-columns: 0 minmax(0, 1fr) var(--inspector-width);
}

.sidebar,
.inspector {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100%;
  padding: 14px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.sidebar-search-drawer,
.sidebar-primary-action,
.sidebar-footer {
  flex: 0 0 auto;
}

.sidebar-search-drawer {
  display: none;
}

.sidebar-search-drawer.open {
  display: block;
}

.sidebar-search-drawer.open > label {
  margin-bottom: 8px;
}

.sidebar-primary-action {
  padding-bottom: 0;
}

.sidebar-navigation {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}

.sidebar-navigation::-webkit-scrollbar {
  width: 8px;
}

.sidebar-navigation::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--faint);
  background-clip: padding-box;
}

.sidebar-section {
  min-width: 0;
}

.sidebar-section.resource-home-drop-target,
.sidebar-section.resource-home-drop-busy,
.sidebar-section.resource-home-drop-success,
.sidebar-section.resource-home-drop-error {
  position: relative;
  border-radius: 8px;
}

.sidebar-section.resource-home-drop-target {
  outline: 1px dashed var(--accent);
  background: var(--accent-soft);
}

.sidebar-section.resource-home-drop-busy {
  outline: 1px solid var(--accent);
  background: var(--accent-soft);
}

.sidebar-section.resource-home-drop-success {
  outline: 1px solid var(--success);
}

.sidebar-section.resource-home-drop-error {
  outline: 1px solid var(--danger);
}

.resource-home-drop-hint {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
}

.resource-home-drop-success .resource-home-drop-hint {
  color: var(--success);
}

.resource-home-drop-error .resource-home-drop-hint {
  color: var(--danger);
}

.application-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 8px;
}

.application-shortcut-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.application-shortcut,
.new-chat-button {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.application-shortcut:hover,
.application-shortcut.active {
  background: var(--hover);
}

.application-shortcut svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.application-shortcut span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-header,
.inspector-header,
.topbar,
.sidebar-footer {
  display: flex;
  align-items: center;
}

.sidebar-header {
  min-height: 40px;
  gap: 10px;
  margin-bottom: 8px;
}

.agent-mark,
.empty-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.agent-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.agent-name {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.25;
}

.agent-name strong,
.conversation-heading strong,
.inspector-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-name span,
.conversation-heading span,
.inspector-header span {
  color: var(--muted);
  font-size: 12px;
}

#conversationStatus.thinking-status {
  width: fit-content;
  color: transparent;
  background:
    linear-gradient(
      100deg,
      var(--muted) 0%,
      var(--muted) 36%,
      var(--text) 48%,
      var(--muted) 60%,
      var(--muted) 100%
    );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: thinking-sweep 1.45s ease-in-out infinite;
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--hover);
}

.icon-button svg,
.new-chat-button svg,
.sidebar-search svg,
.composer-action-button svg,
.send-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.new-chat-button:hover {
  background: var(--hover);
}

.sidebar-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
}

.sidebar-search {
  height: 36px;
  gap: 8px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
}

.sidebar-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px 8px;
  border-bottom: 1px solid var(--divider);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.conversation-list {
  padding-top: 6px;
}

.messages {
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}

.messages::-webkit-scrollbar {
  width: 8px;
}

.messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--faint);
  background-clip: padding-box;
}

.conversation-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  margin-bottom: 3px;
  overflow: hidden;
  border-radius: 6px;
  background: transparent;
}

.conversation-item:hover,
.conversation-item.active {
  background: var(--hover);
}

.conversation-item.dragging {
  opacity: 0.55;
}

.conversation-select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 70px 8px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.conversation-edit,
.conversation-archive {
  position: absolute;
  top: 9px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease, background-color 140ms ease;
}

.conversation-edit {
  right: 35px;
}

.conversation-archive {
  right: 7px;
}

.conversation-edit svg,
.conversation-archive svg {
  width: 14px;
  height: 14px;
}

.conversation-item:hover .conversation-edit,
.conversation-item:hover .conversation-archive,
.conversation-item.active .conversation-edit,
.conversation-item.active .conversation-archive,
.conversation-item:focus-within .conversation-edit,
.conversation-item:focus-within .conversation-archive {
  opacity: 1;
}

.conversation-edit:hover,
.conversation-archive:hover {
  background: transparent;
  color: var(--text);
}

.conversation-item.editing {
  padding: 6px;
  background: var(--panel);
}

.conversation-item.editing .conversation-select,
.conversation-item.editing .conversation-edit,
.conversation-item.editing .conversation-archive {
  display: none;
}

.conversation-title-input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.conversation-select strong,
.conversation-select span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-select strong {
  font-size: 13px;
  font-weight: 600;
}

.conversation-select span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.sidebar-footer {
  min-height: 44px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.sidebar-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.user-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-user-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.account-menu-anchor {
  position: relative;
  display: flex;
}

.account-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: 204px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 96%, var(--surface));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.account-menu[hidden] { display: none; }

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.account-menu-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.account-menu-item:hover, .account-menu-item:focus-visible { background: var(--hover); }
.account-menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.account-menu-item:disabled { opacity: 0.6; cursor: wait; }
.account-menu-logout { color: var(--danger); }
.account-menu-divider { height: 1px; margin: 5px 8px; background: var(--border); }
.account-menu-error { margin: 6px 10px; color: var(--danger); font-size: 12px; }
.account-menu-shortcuts:not([hidden]) {
  max-height: min(320px, 50vh);
  overflow-y: auto;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.connection-state {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
}

.status-dot.online {
  background: var(--success);
}

.status-dot.offline {
  background: var(--danger);
}

.main-panel {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border-radius: var(--main-left-radius) var(--main-right-radius)
    var(--main-right-radius) var(--main-left-radius);
  background: var(--surface);
  transition: border-radius 180ms ease;
}

.application-restore-veil {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--text-muted);
  background: var(--surface);
}


.restoring-application .application-restore-veil {
  display: grid;
}

.application-restore-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: application-restore-spin 760ms linear infinite;
}

@keyframes application-restore-spin {
  to {
    transform: rotate(360deg);
  }
}

.workspace-host {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.workspace-view {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

.workspace-view[hidden] {
  display: none;
}

.conversation-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.balance-alert {
  display: grid;
  min-height: 40px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 10px 18px 0;
  padding: 5px 8px 5px 12px;
  border: 1px solid color-mix(in srgb, #e9ad38 48%, var(--border));
  border-radius: 13px;
  background: color-mix(in srgb, #e9ad38 12%, var(--panel));
  color: var(--text);
  font-size: 12px;
}

.balance-alert[hidden] { display: none; }
.balance-alert > svg { width: 17px; color: #e9ad38; }
.balance-alert[data-tone="danger"] {
  border-color: color-mix(in srgb, var(--danger) 48%, var(--border));
  background: color-mix(in srgb, var(--danger) 10%, var(--panel));
}
.balance-alert[data-tone="danger"] > svg { color: var(--danger); }
.balance-alert-settings,
.balance-alert-close {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.balance-alert-settings { height: 28px; padding: 0 9px; background: var(--hover); transition: background 120ms ease, color 120ms ease; }
.balance-alert-settings:hover,
.balance-alert-settings:focus-visible { outline: 0; background: var(--accent-soft); color: var(--accent); }
.balance-alert-close { display: grid; width: 28px; height: 28px; place-items: center; transition: background 120ms ease, color 120ms ease; }
.balance-alert-close:hover,
.balance-alert-close:focus-visible { outline: 0; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.balance-alert-close svg { width: 15px; }

@media (max-width: 620px) {
  .balance-alert { margin-inline: 10px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .balance-alert-settings { display: none; }
}

.topbar-actions-slot {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
}

.workspace-history-navigation {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
}

.workspace-history-navigation .icon-button {
  width: 30px;
  height: 30px;
  color: var(--muted);
}

.workspace-history-navigation .icon-button:not(:disabled):hover {
  color: var(--text);
}

.workspace-history-navigation .icon-button:disabled {
  opacity: 0.28;
}

.workspace-history-navigation svg {
  width: 16px;
  height: 16px;
}

.topbar-title-slot {
  display: flex;
  min-width: 0;
  flex: 1;
}

.topbar-title-slot > [hidden],
.topbar-actions-slot > [hidden],
.topbar-actions-slot[hidden],
.current-title-edit[hidden] {
  display: none;
}

.conversation-topbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.workspace-header-extension-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.application-launcher {
  overflow-y: auto;
  background: var(--surface);
}

.application-launcher-content {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 54px clamp(24px, 5vw, 72px);
}

.application-launcher-content header > span {
  color: var(--muted);
  font-size: 13px;
}

.application-launcher-content h1 {
  margin: 6px 0 28px;
  font-size: 30px;
  font-weight: 600;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.application-tile {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease;
}

.application-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.application-tile-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.application-tile-icon svg {
  width: 21px;
  height: 21px;
}

.application-tile > strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.application-tile > span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.application-launcher-empty {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.application-launcher-empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
}

.application-launcher-empty strong {
  color: var(--text);
  font-size: 15px;
}

.application-launcher-empty span {
  font-size: 12px;
}

.topbar {
  z-index: 5;
  height: 58px;
  flex: 0 0 58px;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.open-sidebar-button {
  display: none;
}

.sidebar-closed .open-sidebar-button {
  display: inline-grid;
}

.conversation-heading {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.current-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.current-title-row > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-title-edit {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease;
}

.current-title-row:hover .current-title-edit,
.current-title-row:focus-within .current-title-edit {
  opacity: 1;
}

.current-title-edit:hover {
  color: var(--text);
}

.current-title-edit svg {
  width: 14px;
  height: 14px;
}

.current-title-row.editing > strong,
.current-title-row.editing .current-title-edit {
  display: none;
}

.current-title-input {
  width: min(100%, 360px);
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
}

.inspector-button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.inspector-open .inspector-button {
  display: none;
}

#conversationSettingsBtn.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.messages {
  display: flex;
  width: 100%;
  height: 0;
  min-height: 0;
  flex: 1 1 0;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px max(24px, calc((100% - 800px) / 2)) 150px;
  scroll-behavior: smooth;
}

.messages.restoring-scroll-position {
  scroll-behavior: auto;
}

.empty-state {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 100px;
  transition: padding-bottom 220ms ease;
}

.empty-state.hidden {
  display: none;
}

.empty-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.empty-state h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 580;
  letter-spacing: 0;
}

.message {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  margin-bottom: 24px;
}

.message.user {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.message.assistant {
  flex-direction: column;
}

.message-content {
  min-width: 0;
  max-width: 760px;
  cursor: text;
  line-height: 1.7;
  word-break: break-word;
}

.message-content * {
  cursor: inherit;
}

.message-content a,
.message-content a * {
  cursor: pointer;
}

.message.user .message-content {
  max-width: min(72%, 680px);
  padding: 10px 14px;
  border-radius: 8px 8px 2px 8px;
  background: var(--user);
  color: var(--user-text);
  white-space: pre-wrap;
}

.message-attachments {
  display: flex;
  max-width: min(72%, 680px);
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 7px;
}

.message-attachment-card {
  display: grid;
  max-width: 260px;
  min-width: 0;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 88%, var(--surface));
  color: var(--text);
}

.message-attachment-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.message-attachment-main {
  min-width: 0;
}

.message-attachment-name {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-attachment-meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message.assistant .message-content {
  width: 100%;
  padding: 2px 4px;
}

.tool-runtime {
  width: 100%;
  padding: 2px 4px;
}

.tool-runtime:empty {
  display: none;
}

.tool-execution-note {
  margin-bottom: 7px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}

.tool-execution-note.failed {
  color: var(--danger);
}

.message.assistant p {
  margin: 0 0 12px;
}

.message.assistant p:last-child {
  margin-bottom: 0;
}

.message.assistant pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
}

.message.assistant code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.thinking-text {
  display: inline-block;
  color: transparent;
  background:
    linear-gradient(
      100deg,
      var(--muted) 0%,
      var(--muted) 36%,
      var(--text) 48%,
      var(--muted) 60%,
      var(--muted) 100%
    );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: thinking-sweep 1.45s ease-in-out infinite;
}

@keyframes thinking-sweep {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.message.error .message-content {
  color: var(--danger);
}

.composer-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px max(24px, calc((100% - 820px) / 2)) 20px;
  background: var(--surface);
  border-top: 0;
  transition: bottom 220ms ease, background-color 220ms ease;
}

.workspace-action-requests {
  position: absolute;
  z-index: 18;
  right: max(24px, calc((100% - 820px) / 2));
  bottom: 94px;
  left: max(24px, calc((100% - 820px) / 2));
  pointer-events: none;
}

.workspace-action-requests[hidden] {
  display: none;
}

.workspace-action-requests > * {
  pointer-events: auto;
}

.main-panel:has(.workspace-action-requests:not([hidden])) .messages {
  padding-bottom: 240px;
}

.main-panel.empty-conversation .empty-state {
  position: absolute;
  top: 0;
  right: 0;
  bottom: calc(38% + var(--conversation-composer-height, 132px) + 36px);
  left: 0;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  pointer-events: none;
}

.main-panel.empty-conversation .empty-mark {
  display: none;
}

.main-panel.empty-conversation .empty-state h1 {
  font-size: 32px;
  font-weight: 500;
}

.main-panel.empty-conversation .composer-wrap {
  bottom: 38%;
  padding-right: max(24px, calc((100% - 800px) / 2));
  padding-left: max(24px, calc((100% - 800px) / 2));
  border-top-color: transparent;
  background: transparent;
}

.composer {
  display: flex;
  width: 100%;
  min-height: 52px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.composer-actions-slot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.composer-attachments {
  display: none;
  width: 100%;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 2px 0;
  scrollbar-width: none;
}

.composer.has-attachments .composer-attachments {
  display: flex;
}

.composer-attachments::-webkit-scrollbar {
  display: none;
}

.composer-attachments::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
}

.composer-attachments.can-scroll {
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 22px,
    #000 calc(100% - 22px),
    transparent
  );
}

.composer-attachments.can-scroll.at-scroll-start {
  mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
}

.composer-attachments.can-scroll.at-scroll-end {
  mask-image: linear-gradient(to right, transparent, #000 22px);
}

.attachment-card {
  position: relative;
  display: grid;
  width: min(280px, calc(100vw - 88px));
  flex: 0 0 min(280px, calc(100vw - 88px));
  grid-template-columns: 12px minmax(0, 1fr) 20px;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 88%, var(--surface));
}

.attachment-card.ready {
  border-color: color-mix(in srgb, var(--success) 32%, var(--border));
}

.attachment-card.error {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--border));
}

.attachment-status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--muted);
}

.attachment-card.uploading .attachment-status-dot,
.attachment-card.extracting .attachment-status-dot {
  background: var(--accent);
  animation: pulse 1.15s ease-in-out infinite;
}

.attachment-card.ready .attachment-status-dot {
  background: var(--success);
}

.attachment-card.error .attachment-status-dot {
  background: var(--danger);
}

.attachment-main {
  min-width: 0;
}

.attachment-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-meta,
.attachment-error {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.attachment-error {
  color: var(--danger);
}

.attachment-progress {
  position: relative;
  height: 2px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--divider);
}

.attachment-progress span {
  position: absolute;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: attachment-progress 1.1s ease-in-out infinite;
}

@keyframes attachment-progress {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(260%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.attachment-remove {
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.attachment-remove:hover {
  background: var(--divider);
  color: var(--text);
}

.attachment-remove svg {
  display: block;
  width: 14px;
  height: 14px;
}

.composer:focus-within {
  border-color: var(--accent);
}

.composer textarea {
  width: 100%;
  min-height: 34px;
  max-height: 160px;
  flex: 1;
  padding: 7px 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  line-height: 1.45;
}

.send-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--user);
  color: var(--user-text);
  cursor: pointer;
}

.composer-action-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.composer-action-button:hover {
  background: var(--divider);
  color: var(--text);
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.composer-status {
  min-height: 16px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.inspector {
  display: flex;
  width: var(--inspector-width);
  height: 100%;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.panel-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 12;
  display: block;
  width: 8px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.panel-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transition: opacity 120ms ease;
}

.panel-resizer:hover::after,
.panel-resizer:focus-visible::after,
.sidebar-resizing .sidebar-resizer::after,
.inspector-resizing .inspector-resizer::after {
  opacity: 0.55;
}

.sidebar-close-preview .sidebar-resizer::after,
.inspector-close-preview .inspector-resizer::after {
  background: var(--danger);
  opacity: 0.85;
}

.sidebar-resizer {
  right: 0;
}

.inspector-resizer {
  left: 0;
}

.sidebar-closed .sidebar-resizer,
.app-shell:not(.inspector-open) .inspector-resizer {
  display: none;
}

.app-shell.panel-resizing {
  cursor: col-resize;
  user-select: none;
  transition: none;
}

.app-shell.panel-resizing * {
  cursor: col-resize !important;
}

.inspector-header {
  height: 58px;
  gap: 12px;
  padding: 0 14px 0 18px;
}

.inspector-header-slot {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.inspector-header-slot > [hidden],
.inspector-content > [hidden] {
  display: none !important;
}

.inspector-application-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.inspector-application-heading svg {
  width: 18px;
  height: 18px;
}

.inspector-application-launcher {
  padding: 18px;
}

.inspector-application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 14px 10px;
}

.inspector-application-grid button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
}

.inspector-application-grid button:hover {
  background: var(--hover);
}

.inspector-application-grid button > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--accent);
}

.inspector-application-grid svg {
  width: 22px;
  height: 22px;
}

.inspector-application-grid strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-application-empty {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}

.inspector-navigation {
  display: flex;
  min-width: 0;
  min-height: 42px;
  gap: 6px;
  align-items: stretch;
  padding: 2px 10px 8px;
}

.inspector-navigation[hidden] {
  display: none;
}

.inspector-navigation-slot {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.inspector-more-button {
  display: inline-flex;
  height: 100%;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  margin: 2px 0;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.inspector-more-button:hover {
  background: var(--hover);
}

.inspector-more-button svg {
  width: 17px;
  height: 17px;
}

.inspector-content {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.conversation-settings-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.conversation-settings-dialog::backdrop {
  background: rgba(12, 16, 13, 0.38);
}

.conversation-settings-form {
  display: flex;
  max-height: min(720px, calc(100vh - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  flex-direction: column;
}

.conversation-settings-header,
.conversation-settings-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.conversation-settings-header {
  min-height: 62px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--border);
}

.conversation-settings-header > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.conversation-settings-header strong {
  font-size: 16px;
}

.conversation-settings-header span,
.settings-section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.conversation-settings-body {
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
}

/* Keep scroll controls available without drawing a contrasting system rail. */
.sidebar-navigation,
.messages,
.application-launcher,
.inspector-content,
.conversation-settings-body {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 38%, transparent) transparent;
}

.sidebar-navigation::-webkit-scrollbar,
.messages::-webkit-scrollbar,
.application-launcher::-webkit-scrollbar,
.inspector-content::-webkit-scrollbar,
.conversation-settings-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: transparent;
}

.sidebar-navigation::-webkit-scrollbar-track,
.messages::-webkit-scrollbar-track,
.application-launcher::-webkit-scrollbar-track,
.inspector-content::-webkit-scrollbar-track,
.conversation-settings-body::-webkit-scrollbar-track,
.sidebar-navigation::-webkit-scrollbar-corner,
.messages::-webkit-scrollbar-corner,
.application-launcher::-webkit-scrollbar-corner,
.inspector-content::-webkit-scrollbar-corner,
.conversation-settings-body::-webkit-scrollbar-corner {
  background: transparent;
}

.sidebar-navigation::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb,
.application-launcher::-webkit-scrollbar-thumb,
.inspector-content::-webkit-scrollbar-thumb,
.conversation-settings-body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 38%, transparent);
  background-clip: padding-box;
}

.sidebar-navigation::-webkit-scrollbar-thumb:hover,
.messages::-webkit-scrollbar-thumb:hover,
.application-launcher::-webkit-scrollbar-thumb:hover,
.inspector-content::-webkit-scrollbar-thumb:hover,
.conversation-settings-body::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--muted) 58%, transparent);
  background-clip: padding-box;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-field > span,
.settings-section-heading strong {
  font-weight: 650;
}

.settings-field input,
.settings-field textarea,
.settings-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.settings-field input,
.settings-field select {
  height: 40px;
  padding: 0 11px;
}

.settings-field textarea {
  min-height: 176px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.55;
}

.settings-field input:focus,
.settings-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.settings-field textarea:disabled {
  background: var(--page);
  color: var(--faint);
  cursor: not-allowed;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.settings-grid .settings-field,
.settings-grid .settings-switch {
  min-width: 0;
}

.settings-inline-switch {
  margin-top: 12px;
}

.settings-readonly-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.settings-readonly-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
}

.settings-readonly-list dt {
  color: var(--muted);
}

.settings-readonly-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.settings-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.settings-section-heading > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.settings-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.settings-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.settings-switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: var(--faint);
  transition: background 140ms ease;
}

.settings-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
  transition: transform 140ms ease;
}

.settings-switch input:checked + .settings-switch-track {
  background: var(--accent);
}

.settings-switch input:checked + .settings-switch-track::after {
  transform: translateX(14px);
}

.settings-switch input:focus-visible + .settings-switch-track {
  outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.settings-reset-button,
.settings-secondary-button,
.settings-primary-button {
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
}

.settings-reset-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.settings-reset-button:hover {
  color: var(--text);
}

.settings-reset-button svg {
  width: 15px;
  height: 15px;
}

.conversation-settings-actions {
  justify-content: flex-end;
  gap: 8px;
  min-height: 64px;
  padding: 0 20px;
  border-top: 1px solid var(--border);
}

.settings-secondary-button,
.settings-primary-button {
  min-width: 76px;
  padding: 0 16px;
}

.settings-secondary-button {
  border: 1px solid var(--border);
  background: transparent;
}

.settings-primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.settings-primary-button.danger {
  border-color: var(--danger);
  background: var(--danger);
}
.scrim {
  display: none;
}

@media (min-width: 695px) {
  .sidebar {
    border-right: 0;
  }
}

/* Below 695px, even one 320px side panel plus a 375px workspace cannot fit. */
@media (max-width: 694px) {
  .app-shell,
  .app-shell.sidebar-closed,
  .app-shell.inspector-open,
  .app-shell.sidebar-closed.inspector-open {
    --main-left-radius: 0;
    --main-right-radius: 0;
    display: block;
  }

  .sidebar,
  .inspector {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 30;
    box-shadow: var(--shadow);
    transition: transform 180ms ease;
  }

  .panel-resizer {
    display: none;
  }

  .sidebar {
    left: 0;
    border-radius: 0 12px 12px 0;
    transform: translateX(0);
  }

  .sidebar-closed .sidebar {
    transform: translateX(-100%);
  }

  .inspector {
    right: 0;
    border-radius: 12px 0 0 12px;
    transform: translateX(100%);
  }

  .inspector-open .inspector {
    transform: translateX(0);
  }

  .open-sidebar-button {
    display: inline-grid;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(12, 16, 13, 0.38);
  }

  .sidebar-closed.inspector-open + .scrim,
  .inspector-open + .scrim,
  .app-shell:not(.sidebar-closed) + .scrim {
    display: block;
  }
}

@media (max-width: 640px) {
  .sidebar,
  .inspector {
    width: min(88vw, 360px);
  }

  .messages {
    padding: 22px 16px 138px;
  }

  .message.user .message-content {
    max-width: 86%;
  }

  .composer-wrap {
    padding: 12px 12px 14px;
  }

  .workspace-action-requests {
    right: 12px;
    bottom: 86px;
    left: 12px;
  }

  .main-panel.empty-conversation .empty-state {
    bottom: calc(
      38% + var(--conversation-composer-height, 116px) + 26px
    );
  }

  .main-panel.empty-conversation .composer-wrap {
    bottom: 38%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .conversation-heading span {
    display: none;
  }

  .conversation-settings-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .conversation-settings-form {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .conversation-settings-body {
    padding: 18px 16px;
  }

  .settings-section-heading {
    align-items: flex-start;
  }

  .conversation-settings-actions {
    padding: 0 16px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}
