:root {
  color-scheme: light;
  --snap-home-ink: #17212b;
  --snap-home-muted: #667085;
  --snap-home-line: #d4deea;
  --snap-home-panel: #ffffff;
  --snap-home-soft: #f4f8fc;
  --snap-home-accent: #2563eb;
  --snap-home-accent-soft: #e7f0ff;
  --snap-home-shadow: 0 18px 45px rgb(17 24 39 / 10%);
  --snap-home-sidebar-width: 360px;
  --snap-home-font-sans: Arial, sans-serif;
  --snap-home-font-ui: "Segoe UI", Arial, sans-serif;
  --snap-home-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  color: var(--snap-home-ink);
  font-family: var(--snap-home-font-sans);
}

.snap-home {
  --snap-home-sidebar-column: clamp(280px, var(--snap-home-sidebar-width), min(620px, 52vw, calc(100vw - 430px)));
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: var(--snap-home-sidebar-column) minmax(0, 1fr);
  direction: rtl;
}

.snap-home.instructions-open {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(0, 1fr);
}

.snap-home-sidebar,
.snap-home-chat,
.snap-home-project-instructions {
  min-width: 0;
  min-height: 0;
  background: var(--snap-home-panel);
}

.snap-home-sidebar {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto auto minmax(0, 1fr);
  border-left: 1px solid var(--snap-home-line);
  background: #eef4fb;
  box-shadow: 8px 0 26px rgb(17 24 39 / 4%);
  z-index: 2;
}

.snap-home-sidebar-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - var(--snap-home-sidebar-column) - 5px);
  width: 10px;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
  z-index: 12;
}

.snap-home-sidebar-resizer:focus-visible {
  outline: 1px solid var(--snap-home-line);
  outline-offset: -2px;
}

.snap-home.sidebar-resizing {
  cursor: col-resize;
  user-select: none;
}

.snap-home-sidebar-head,
.snap-home-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--snap-home-line);
  background: rgb(255 255 255 / 94%);
}

.snap-home-sidebar-head {
  justify-content: space-between;
  background: #eef4fb;
}

.snap-home-head-actions {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  flex: 0 0 auto;
}

.snap-home-sidebar h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

#scopeCount {
  display: none;
}

.snap-home-muted,
.snap-home-active-path {
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.snap-home-text-button {
  display: inline-grid;
  place-items: center;
  min-width: 68px;
  height: 38px;
  padding: 0 10px;
  flex: 0 0 auto;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.snap-home-icon-button:hover,
.snap-home-icon-button:focus,
.snap-home-text-button:hover,
.snap-home-text-button:focus {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-icon-button.active {
  border-color: rgb(37 99 235 / 44%);
  background: #dbeafe;
  color: #1d4ed8;
}

.snap-home-text-button.danger {
  border-color: rgb(185 28 28 / 24%);
  color: #b91c1c;
}

.snap-home-text-button.danger:hover,
.snap-home-text-button.danger:focus {
  border-color: #b91c1c;
  color: #991b1b;
}

.snap-home-text-button:disabled {
  cursor: default;
  opacity: 0.52;
}

.snap-home-icon-button:disabled {
  cursor: default;
  opacity: 0.52;
}

.snap-home-global-settings-button {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 80;
}

.snap-home-icon-button.update-available {
  position: relative;
  border-color: rgb(37 99 235 / 44%);
  color: #1d4ed8;
}

.snap-home-icon-button.update-available::after {
  content: "";
  position: absolute;
  inset-block-start: 6px;
  inset-inline-end: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px #fff;
}

.snap-home-header-update-button {
  border-radius: 50%;
  font-size: 19px;
}

.snap-home-header-update-button:hover,
.snap-home-header-update-button:focus {
  border-color: #1d4ed8;
  color: #1d4ed8;
}

#newChatButton {
  border-color: rgb(37 99 235 / 24%);
  border-radius: 50%;
  background: #2f7df6;
  color: #fff;
  box-shadow: 0 8px 18px rgb(37 99 235 / 20%);
}

#newChatButton:hover,
#newChatButton:focus {
  border-color: #1d4ed8;
  background: #1d6ff0;
  color: #fff;
}

.snap-home-auth-icon,
.snap-home-support-icon,
.snap-home-restart-icon,
.snap-home-settings-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.snap-home-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px;
  padding: 0 10px;
  height: 40px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: var(--snap-home-soft);
}

.snap-home-search[hidden] {
  display: none;
}

.snap-home-search-icon {
  color: var(--snap-home-muted);
  font-size: 18px;
}

.snap-home-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 14px;
}

.snap-home-conversation-find {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 8px 16px 0;
  padding: 0 10px;
  height: 38px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: var(--snap-home-soft);
}

.snap-home-conversation-find[hidden] {
  display: none;
}

.snap-home-conversation-find input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 14px;
}

.snap-home-find-count {
  min-width: 42px;
  color: var(--snap-home-muted);
  font-size: 12px;
  text-align: end;
}

.snap-home-project-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px 36px;
  gap: 8px;
  align-items: center;
  margin: 0 12px 8px;
  color: var(--snap-home-muted);
  font-size: 13px;
  line-height: 1.3;
  direction: ltr;
}

.snap-home-project-list {
  min-width: 0;
  position: relative;
  direction: rtl;
}

.snap-home-project-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px;
  border-radius: 7px;
  color: var(--snap-home-ink);
}

.snap-home-project-item.active {
  background: #eef5ff;
  color: #1d4ed8;
}

.snap-home-project-trigger,
.snap-home-project-option,
.snap-home-project-delete {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.snap-home-project-trigger {
  width: 100%;
  height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  text-align: right;
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}

.snap-home-project-trigger span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-project-trigger-caret {
  color: var(--snap-home-muted);
  font-size: 13px;
}

.snap-home-project-trigger:hover,
.snap-home-project-trigger:focus {
  border-color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-menu {
  position: absolute;
  z-index: 45;
  inset-block-start: 38px;
  inset-inline: 0;
  max-height: min(320px, 52vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(15 23 42 / 18%);
}

.snap-home-project-menu[hidden] {
  display: none;
}

.snap-home-settings-action-parking[hidden] {
  display: none;
}

.snap-home-project-actions-wrap {
  position: relative;
  min-width: 0;
  direction: rtl;
}

.snap-home-project-actions-button,
.snap-home-project-archive,
.snap-home-project-labels {
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.snap-home-project-archive,
.snap-home-project-labels {
  width: 36px;
}

.snap-home-project-actions-button {
  width: 36px;
}

.snap-home-project-actions-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.snap-home-project-actions-button:hover,
.snap-home-project-actions-button:focus,
.snap-home-project-archive:hover,
.snap-home-project-archive:focus,
.snap-home-project-labels:hover,
.snap-home-project-labels:focus,
#projectActionsButton[aria-expanded="true"] {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-action-menu {
  position: absolute;
  z-index: 48;
  inset-block-start: 38px;
  inset-inline-start: 0;
  width: 188px;
  padding: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(15 23 42 / 18%);
}

.snap-home-project-action-menu[hidden] {
  display: none;
}

.snap-home-project-action-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
  cursor: pointer;
}

.snap-home-project-action-menu button[hidden] {
  display: none;
}

.snap-home-project-action-menu button:hover,
.snap-home-project-action-menu button:focus {
  background: #eef5ff;
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-action-menu button:disabled {
  cursor: default;
  opacity: 0.5;
}

.snap-home-project-action-menu button:disabled:hover,
.snap-home-project-action-menu button:disabled:focus {
  background: transparent;
  color: var(--snap-home-ink);
  outline: none;
}

.snap-home-project-option {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}

.snap-home-project-delete {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: #64748b;
}

.snap-home-project-option:hover,
.snap-home-project-option:focus,
.snap-home-project-delete:hover,
.snap-home-project-delete:focus {
  background: #eef5ff;
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-delete:hover,
.snap-home-project-delete:focus {
  background: #fee2e2;
  color: #b91c1c;
}

.snap-home-project-filter[hidden] {
  display: none;
}

.snap-home-project-filter select {
  min-width: 0;
  width: 100%;
  height: 34px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  padding: 0 8px;
}

.snap-home-label-filter-panel {
  margin: -2px 12px 8px;
  padding: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}

.snap-home-label-filter-panel[hidden] {
  display: none;
}

.snap-home-label-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.snap-home-label-add-pill,
.snap-home-label-pill,
.snap-home-label-menu-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.snap-home-label-add-pill {
  min-width: 26px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px dashed rgb(37 99 235 / 38%);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--snap-home-accent);
  font-size: 12px;
  font-weight: 800;
}

.snap-home-label-pill-wrap {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: minmax(0, auto) 22px;
  align-items: center;
  max-width: 154px;
  border-radius: 999px;
  background: var(--snap-label-bg, #eef2f7);
  color: var(--snap-label-text, #475569);
  overflow: hidden;
}

.snap-home-label-pill-wrap.system-label {
  grid-template-columns: minmax(0, auto);
  max-width: 220px;
}

.snap-home-label-pill-wrap.active {
  background: var(--snap-label-color, #2563eb);
  color: var(--snap-label-active-text, #fff);
  box-shadow: 0 0 0 2px rgb(37 99 235 / 34%), 0 2px 7px rgb(15 23 42 / 14%);
}

.snap-home-label-pill {
  min-width: 0;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.snap-home-label-pill-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-label-pill-count {
  flex: 0 0 auto;
  opacity: 0.72;
  font-size: 11px;
}

.snap-home-label-pill-check {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgb(255 255 255 / 22%);
  color: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.snap-home-label-menu-button {
  width: 22px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: inherit;
  font-size: 15px;
  line-height: 1;
  opacity: 0.72;
}

.snap-home-label-pill-wrap.active .snap-home-label-menu-button,
.snap-home-label-pill-wrap.active .snap-home-label-pill-count {
  opacity: 0.9;
}

.snap-home-label-add-pill:hover,
.snap-home-label-add-pill:focus,
.snap-home-label-pill:hover,
.snap-home-label-pill:focus,
.snap-home-label-menu-button:hover,
.snap-home-label-menu-button:focus {
  outline: none;
  filter: brightness(0.96);
}

.snap-home-label-empty {
  padding: 4px 6px;
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-project-archive[hidden],
.snap-home-project-labels[hidden] {
  display: none;
}

.snap-home-project-archive:disabled {
  cursor: default;
  opacity: 0.46;
  color: var(--snap-home-muted);
}

.snap-home-project-archive:disabled:hover,
.snap-home-project-archive:disabled:focus {
  border-color: var(--snap-home-line);
  color: var(--snap-home-muted);
}

.snap-home-project-archive.active {
  border-color: rgb(37 99 235 / 44%);
  background: #dbeafe;
  color: #1d4ed8;
}

.snap-home-project-labels.active {
  border-color: rgb(37 99 235 / 44%);
  background: #dbeafe;
  color: #1d4ed8;
}

.snap-home-project-archive-icon,
.snap-home-project-labels-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.snap-home-project-reasoning-menu {
  position: absolute;
  z-index: 72;
  inset-block-start: 38px;
  inset-inline-start: 0;
  width: 128px;
  padding: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(15 23 42 / 18%);
}

.snap-home-project-reasoning-menu[hidden] {
  display: none;
}

.snap-home-project-reasoning-option {
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.snap-home-project-reasoning-option:hover,
.snap-home-project-reasoning-option:focus,
.snap-home-project-reasoning-option.active {
  background: #eef5ff;
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-status {
  min-height: 0;
  margin: 0 12px 8px;
  padding: 7px 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-muted);
  font-size: 13px;
  line-height: 1.3;
}

.snap-home-status[hidden] {
  display: none;
}

.snap-home-status[data-state="error"] {
  border-color: #f0b8b8;
  background: #fff4f4;
  color: #b42318;
}

.snap-home-status[data-state="success"] {
  border-color: #a7d7bc;
  background: #f2fbf5;
  color: #10713d;
}

.snap-home-toast {
  position: fixed;
  z-index: 260;
  left: 50%;
  right: auto;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 9px 12px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 18px 42px rgb(15 23 42 / 22%);
  pointer-events: none;
}

.snap-home-toast[hidden] {
  display: none;
}

.snap-home-channel-list {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 0;
  background: transparent;
  direction: ltr;
}

.snap-home-project {
  margin-top: 8px;
}

.snap-home-project-name {
  padding: 9px 8px 5px;
  color: var(--snap-home-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.snap-home-channel {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 0;
  align-items: center;
  min-height: 82px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #eef0f2;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: right;
  direction: rtl;
  cursor: pointer;
}

.snap-home.bulk-select .snap-home-channel {
  grid-template-columns: 28px minmax(0, 1fr) 34px;
}

.snap-home-channel:hover,
.snap-home-channel:focus-within {
  background: #f4f8ff;
  outline: none;
}

.snap-home-channel.is-severance {
  padding-right: 5px;
  border-right: 3px solid var(--snap-severance-accent, #7e22ce);
  background: var(--snap-severance-bg, #f3e8ff);
}

.snap-home-channel.is-severance:hover,
.snap-home-channel.is-severance:focus-within {
  background: color-mix(in srgb, var(--snap-severance-bg, #f3e8ff) 78%, #fff);
}

.snap-home-channel.active {
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px rgb(37 99 235 / 42%);
  z-index: 1;
}

.snap-home-channel.is-severance.active {
  border-right-color: transparent;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--snap-severance-accent, #7e22ce) 42%, #fff);
}

.snap-home-channel.is-pinned {
  background: #f7fbff;
}

.snap-home-channel.is-snoozed {
  background: #fbfaff;
}

.snap-home-channel.is-snooze-ready {
  background: #f3e8ff;
}

.snap-home-channel.is-snooze-ready.active {
  box-shadow: inset 0 0 0 3px #c4b5fd;
}

.snap-home-channel.is-automation {
  background: #f0fbf7;
}

.snap-home-channel.is-automation:hover,
.snap-home-channel.is-automation:focus-within {
  background: #e8f8f1;
}

.snap-home-channel.is-automation.active {
  box-shadow: inset 0 0 0 3px rgb(5 150 105 / 42%);
}

.snap-home-channel.is-severance.is-pinned {
  background: var(--snap-severance-bg, #f3e8ff);
}

.snap-home-channel.bulk-selected {
  background: #eef5ff;
}

.snap-home-channel-bulk-check {
  width: 14px;
  height: 14px;
  margin: 0;
  justify-self: center;
  accent-color: var(--snap-home-accent);
  cursor: pointer;
}

.snap-home-channel.search-current {
  outline: 2px solid rgb(37 99 235 / 36%);
  outline-offset: -2px;
}

.snap-home-channel-select {
  min-width: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.snap-home-channel-select:focus {
  outline: none;
}

.snap-home-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.snap-home-channel.active .snap-home-avatar {
  background: var(--snap-home-accent);
  color: #fff;
}

.snap-home-channel.is-automation .snap-home-avatar {
  background: #ccf5e3;
  color: #065f46;
}

.snap-home-channel.is-automation.active .snap-home-avatar {
  background: #059669;
  color: #fff;
}

.snap-home-channel.is-severance .snap-home-avatar {
  background: var(--snap-severance-badge-bg, #ede9fe);
  color: var(--snap-severance-text, #5b21b6);
}

.snap-home-channel.is-severance.active .snap-home-avatar {
  background: var(--snap-severance-accent, #7e22ce);
  color: #fff;
}

.snap-home-channel-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.snap-home-channel-top,
.snap-home-channel-bottom {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.snap-home-channel-name {
  min-width: 0;
  overflow: hidden;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.snap-home-channel-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-severance-badge {
  max-width: 108px;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--snap-severance-badge-bg, #ede9fe);
  color: var(--snap-severance-text, #5b21b6);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.snap-home-channel-labels {
  min-width: 0;
  width: 100%;
  display: flex;
  gap: 4px;
  align-items: center;
  overflow: hidden;
}

.snap-home-label-chip,
.snap-home-label-more {
  min-width: 0;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  max-width: 112px;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--snap-label-bg, #eef2f7);
  color: var(--snap-label-text, #475569);
  box-shadow: inset 0 0 0 1px rgb(15 23 42 / 8%);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.snap-home-label-chip.system-label {
  max-width: 178px;
  direction: ltr;
  unicode-bidi: isolate;
}

.snap-home-label-chip[data-filter-label] {
  cursor: pointer;
}

.snap-home-label-chip[data-filter-label]:hover {
  box-shadow: inset 0 0 0 1px var(--snap-label-color, #475569);
}

.snap-home-label-more {
  flex: 0 0 auto;
  background: #f1f5f9;
  color: #64748b;
}

.snap-home-channel-time {
  color: var(--snap-home-muted);
  direction: ltr;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.snap-home-channel-preview {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  color: var(--snap-home-muted);
  font-size: 13px;
  line-height: 1.3;
}

.snap-home-channel.has-unread .snap-home-channel-name,
.snap-home-channel.has-unread .snap-home-channel-preview {
  color: var(--snap-home-ink);
  font-weight: 700;
}

.snap-home-channel-badges {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: end;
  min-width: 0;
}

.snap-home-unread-badge,
.snap-home-muted-badge,
.snap-home-turn-badge,
.snap-home-pinned-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.snap-home-unread-badge {
  background: var(--snap-home-accent);
  color: #fff;
}

.snap-home-unread-badge.manual {
  min-width: 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #e8f1ff;
}

.snap-home-turn-badge {
  background: #1f2937;
  color: #fff;
}

.snap-home-turn-badge.queued {
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.snap-home-muted-badge {
  background: #eef2f7;
  color: #475467;
  font-size: 10px;
}

.snap-home-pinned-badge {
  min-width: 20px;
  width: 20px;
  padding: 0;
  border-radius: 50%;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
}

.snap-home-channel-actions {
  position: relative;
  display: inline-grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.snap-home.bulk-select .snap-home-channel-actions {
  opacity: 0;
  pointer-events: none;
}

.snap-home-channel:hover .snap-home-channel-actions,
.snap-home-channel:focus-within .snap-home-channel-actions {
  opacity: 1;
}

.snap-home.bulk-select .snap-home-channel:hover .snap-home-channel-actions,
.snap-home.bulk-select .snap-home-channel:focus-within .snap-home-channel-actions {
  opacity: 0;
  pointer-events: none;
}

.snap-home-channel-action {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--snap-home-muted);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.snap-home-channel-menu {
  position: absolute;
  z-index: 30;
  top: 28px;
  right: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(17 24 39 / 16%);
}

.snap-home-channel-menu.open-up {
  top: auto;
  bottom: 28px;
}

.snap-home-channel-menu[hidden] {
  display: none;
}

.snap-home-channel-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  text-align: start;
  cursor: pointer;
}

.snap-home-channel-menu button:hover,
.snap-home-channel-menu button:focus {
  background: #eef5ff;
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-channel-action:hover,
.snap-home-channel-action:focus {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-bulk-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  margin: 0 12px 8px;
  padding: 6px 8px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
  color: var(--snap-home-muted);
  font-size: 13px;
}

.snap-home-bulk-bar[hidden] {
  display: none;
}

.snap-home-label-actions-menu,
.snap-home-label-color-menu,
.snap-home-label-picker {
  z-index: 80;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(15 23 42 / 18%);
}

.snap-home-label-actions-menu {
  width: 132px;
  padding: 6px;
}

.snap-home-label-actions-menu button {
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  text-align: start;
  cursor: pointer;
}

.snap-home-label-actions-menu button:hover,
.snap-home-label-actions-menu button:focus {
  background: #eef5ff;
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-label-actions-menu button.danger:hover,
.snap-home-label-actions-menu button.danger:focus {
  background: #fee2e2;
  color: #b91c1c;
}

.snap-home-label-color-menu {
  width: 176px;
  display: grid;
  grid-template-columns: repeat(6, 22px);
  gap: 6px;
  padding: 8px;
}

.snap-home-label-color-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.snap-home-label-color-swatch:hover,
.snap-home-label-color-swatch:focus,
.snap-home-label-color-swatch.active {
  border-color: #0f172a;
  outline: none;
}

.snap-home-label-picker {
  width: 238px;
  max-height: min(360px, 70vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.snap-home-label-picker-title {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--snap-home-line);
  color: var(--snap-home-ink);
  font-size: 13px;
  font-weight: 800;
}

.snap-home-label-picker-list {
  min-height: 0;
  overflow: auto;
  padding: 6px;
}

.snap-home-label-picker-row {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 7px;
  cursor: pointer;
}

.snap-home-label-picker-row:hover,
.snap-home-label-picker-row:focus-within {
  background: #eef5ff;
}

.snap-home-label-picker-create {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--snap-home-line);
  background: #fff;
  color: var(--snap-home-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: start;
  cursor: pointer;
}

.snap-home-label-picker-create:hover,
.snap-home-label-picker-create:focus {
  background: #eef5ff;
  outline: none;
}

.snap-home-dialog-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(15 23 42 / 32%);
}

.snap-home-dialog {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  box-shadow: 0 24px 70px rgb(15 23 42 / 24%);
}

.snap-home-dialog h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.snap-home-dialog p {
  margin: 0;
  color: var(--snap-home-muted);
  font-size: 13px;
  line-height: 1.45;
}

.snap-home-settings-dialog {
  width: min(1120px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.snap-home-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--snap-home-line);
}

.snap-home-settings-close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.snap-home-settings-close:hover,
.snap-home-settings-close:focus {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: var(--snap-home-soft);
}

.snap-home-settings-tabs[hidden] {
  display: none;
}

.snap-home-settings-tab {
  min-width: 0;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--snap-home-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.snap-home-settings-tab.active {
  background: #fff;
  color: var(--snap-home-ink);
  box-shadow: 0 1px 3px rgb(15 23 42 / 10%);
}

.snap-home-settings-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.snap-home-settings-body.global {
  overflow: hidden;
  padding: 0;
}

.snap-home-settings-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  direction: rtl;
}

.snap-home-settings-sidebar {
  min-width: 0;
  overflow: auto;
  padding: 16px 12px;
  border-left: 1px solid var(--snap-home-line);
  background: #f6f8fb;
}

.snap-home-settings-sidebar-title {
  padding: 8px 10px 7px;
  color: #8a94a3;
  font-size: 12px;
  line-height: 1.2;
}

.snap-home-settings-nav-button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  text-align: right;
  cursor: pointer;
}

.snap-home-settings-nav-button svg {
  width: 17px;
  height: 17px;
}

.snap-home-settings-nav-button.active,
.snap-home-settings-nav-button:hover,
.snap-home-settings-nav-button:focus {
  background: #e9edf2;
  outline: none;
}

.snap-home-settings-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 26px;
  align-content: start;
  padding: 54px min(72px, 7vw) 64px;
  background: #fff;
}

.snap-home-settings-section {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.snap-home-settings-section[hidden] {
  display: none;
}

.snap-home-settings-section-title {
  color: var(--snap-home-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

.snap-home-settings-section-subtitle {
  margin-top: -7px;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-settings-section-subtitle.usage-resets {
  color: #b42318;
}

.snap-home-settings-actions-stack {
  display: grid;
  gap: 10px;
}

.snap-home-settings-actions-stack[hidden] {
  display: none;
}

.snap-home-settings-actions {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-settings-actions-title {
  padding: 12px 12px 0;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-settings-actions-list {
  display: grid;
  gap: 0;
}

.snap-home-settings-actions-list button {
  min-height: 36px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--snap-home-line);
  border-radius: 0;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  text-align: right;
  cursor: pointer;
}

.snap-home-settings-actions-list button[hidden] {
  display: none;
}

.snap-home-settings-actions-list button:hover,
.snap-home-settings-actions-list button:focus {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-settings-actions-list button:disabled {
  cursor: default;
  opacity: 0.5;
}

.snap-home-settings-actions-list button.update-available {
  border-color: rgb(37 99 235 / 44%);
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 750;
}

.snap-home-settings-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 260px) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-settings-usage-panel {
  display: grid;
  gap: 12px;
}

.snap-home-cloud-access-panel {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.snap-home-cloud-access-invite {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-cloud-access-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.snap-home-cloud-access-field > span,
.snap-home-cloud-access-group-title {
  color: var(--snap-home-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.snap-home-cloud-access-field input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
}

.snap-home-cloud-access-field input:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-cloud-access-note {
  grid-column: 1 / -1;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.45;
}

.snap-home-cloud-access-group {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.snap-home-cloud-access-list {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-cloud-access-row {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--snap-home-line);
}

.snap-home-cloud-access-row:last-child {
  border-bottom: 0;
}

.snap-home-cloud-access-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.snap-home-cloud-access-identity strong,
.snap-home-cloud-access-identity span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-cloud-access-identity strong {
  color: var(--snap-home-ink);
  font-size: 13px;
  font-weight: 750;
}

.snap-home-cloud-access-identity span {
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-cloud-access-row-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.snap-home-cloud-access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.snap-home-cloud-access-badge.ready {
  background: #ecfdf3;
  color: #166534;
}

.snap-home-cloud-access-badge.pending {
  background: #fffbeb;
  color: #92400e;
}

.snap-home-cloud-access-badge.expired {
  background: #f8fafc;
  color: #64748b;
}

.snap-home-cloud-access-action {
  min-width: 92px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.snap-home-cloud-access-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.snap-home-cloud-access-action.primary {
  border-color: var(--snap-home-accent);
  background: var(--snap-home-accent);
  color: #fff;
}

.snap-home-cloud-access-action.danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.snap-home-cloud-access-action:hover,
.snap-home-cloud-access-action:focus {
  border-color: var(--snap-home-accent);
  outline: none;
}

.snap-home-cloud-access-action.danger:hover,
.snap-home-cloud-access-action.danger:focus {
  border-color: #b91c1c;
}

.snap-home-cloud-access-action:disabled {
  cursor: default;
  opacity: 0.5;
}

.snap-home-cloud-access-message {
  padding: 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-muted);
  font-size: 13px;
  line-height: 1.45;
}

.snap-home-cloud-access-message.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.snap-home-cloud-codex-panel,
.snap-home-cloud-composio-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.snap-home-cloud-codex-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-cloud-codex-head,
.snap-home-cloud-codex-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.snap-home-cloud-codex-head {
  justify-content: space-between;
}

.snap-home-cloud-codex-identity {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.snap-home-cloud-codex-identity strong {
  color: var(--snap-home-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.snap-home-cloud-codex-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.3;
}

.snap-home-cloud-codex-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.snap-home-cloud-codex-status.ready {
  color: #166534;
}

.snap-home-cloud-codex-status.ready i {
  background: #22c55e;
}

.snap-home-cloud-codex-status.pending {
  color: #92400e;
}

.snap-home-cloud-codex-status.pending i {
  background: #f59e0b;
}

.snap-home-cloud-codex-status.error {
  color: #b91c1c;
}

.snap-home-cloud-codex-status.error i {
  background: #ef4444;
}

.snap-home-cloud-codex-description,
.snap-home-cloud-codex-meta {
  color: var(--snap-home-muted);
  font-size: 13px;
  line-height: 1.5;
}

.snap-home-cloud-codex-meta {
  font-size: 12px;
}

.snap-home-cloud-codex-challenge {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.snap-home-cloud-codex-challenge code {
  min-width: 0;
  color: #1e3a8a;
  font-family: var(--snap-home-font-mono);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.snap-home-cloud-codex-challenge span {
  flex: 0 0 auto;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.snap-home-cloud-codex-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.snap-home-cloud-codex-action {
  min-width: 104px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.snap-home-cloud-codex-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.snap-home-cloud-codex-action.primary {
  border-color: var(--snap-home-accent);
  background: var(--snap-home-accent);
  color: #fff;
}

.snap-home-cloud-codex-action.danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.snap-home-cloud-codex-action:hover,
.snap-home-cloud-codex-action:focus {
  border-color: var(--snap-home-accent);
  outline: none;
}

.snap-home-cloud-codex-action.danger:hover,
.snap-home-cloud-codex-action.danger:focus {
  border-color: #b91c1c;
}

.snap-home-cloud-codex-action:disabled {
  cursor: default;
  opacity: 0.5;
}

.snap-home-cloud-composio-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.snap-home-cloud-composio-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--snap-home-muted);
  font-size: 12px;
  font-weight: 700;
}

.snap-home-cloud-composio-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font-family: var(--snap-home-font-mono);
  font-size: 13px;
  letter-spacing: 0;
}

.snap-home-cloud-composio-field input:focus {
  border-color: var(--snap-home-accent);
  outline: 2px solid rgb(37 99 235 / 18%);
  outline-offset: 1px;
}

.snap-home-cloud-composio-field input:disabled {
  background: #f8fafc;
  cursor: default;
  opacity: 0.7;
}

.snap-home-cloud-browser-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.snap-home-cloud-browser-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-cloud-browser-head,
.snap-home-cloud-browser-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.snap-home-cloud-browser-identity {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.snap-home-cloud-browser-identity strong {
  overflow: hidden;
  color: var(--snap-home-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-cloud-browser-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.3;
}

.snap-home-cloud-browser-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.snap-home-cloud-browser-status.ready {
  color: #166534;
}

.snap-home-cloud-browser-status.ready i {
  background: #22c55e;
}

.snap-home-cloud-browser-status.pending {
  color: #92400e;
}

.snap-home-cloud-browser-status.pending i {
  background: #f59e0b;
}

.snap-home-cloud-browser-status.error {
  color: #b91c1c;
}

.snap-home-cloud-browser-status.error i {
  background: #ef4444;
}

.snap-home-cloud-browser-form {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.snap-home-cloud-browser-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.snap-home-cloud-browser-field > span {
  color: var(--snap-home-ink);
  font-size: 13px;
  font-weight: 750;
}

.snap-home-cloud-browser-field select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
}

.snap-home-cloud-browser-field select:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-cloud-browser-consent {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.snap-home-cloud-browser-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: var(--snap-home-accent);
}

.snap-home-cloud-browser-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.snap-home-cloud-browser-action {
  min-width: 104px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.snap-home-cloud-browser-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.snap-home-cloud-browser-action.primary {
  border-color: var(--snap-home-accent);
  background: var(--snap-home-accent);
  color: #fff;
}

.snap-home-cloud-browser-action:hover,
.snap-home-cloud-browser-action:focus {
  border-color: var(--snap-home-accent);
  outline: none;
}

.snap-home-cloud-browser-action:disabled {
  cursor: default;
  opacity: 0.5;
}

.snap-home-cloud-browser-error {
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.snap-home-whatsapp-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.snap-home-whatsapp-preferences,
.snap-home-whatsapp-routes,
.snap-home-whatsapp-account {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-whatsapp-owner {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.snap-home-whatsapp-owner span,
.snap-home-whatsapp-block-title,
.snap-home-whatsapp-account-title strong,
.snap-home-whatsapp-route-main strong,
.snap-home-whatsapp-route-form span {
  color: var(--snap-home-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.snap-home-whatsapp-owner input,
.snap-home-whatsapp-route-form input,
.snap-home-whatsapp-route-form select {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
}

.snap-home-whatsapp-owner input:focus,
.snap-home-whatsapp-route-form input:focus,
.snap-home-whatsapp-route-form select:focus {
  border-color: rgb(37 99 235 / 50%);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.snap-home-whatsapp-owner small,
.snap-home-whatsapp-preference-text span,
.snap-home-whatsapp-account-title span,
.snap-home-whatsapp-route-main span,
.snap-home-whatsapp-policy,
.snap-home-whatsapp-qr span {
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-whatsapp-preference-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--snap-home-line);
}

.snap-home-whatsapp-preference-text,
.snap-home-whatsapp-account-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.snap-home-whatsapp-preference-text strong {
  color: var(--snap-home-ink);
  font-size: 13px;
  line-height: 1.3;
}

.snap-home-whatsapp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.snap-home-whatsapp-button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.snap-home-whatsapp-button.primary {
  border-color: rgb(37 99 235 / 35%);
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 750;
}

.snap-home-whatsapp-button.danger {
  border-color: rgb(180 35 24 / 22%);
  color: #b42318;
}

.snap-home-whatsapp-button:hover,
.snap-home-whatsapp-button:focus {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-whatsapp-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.snap-home-whatsapp-route-list {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.snap-home-whatsapp-route,
.snap-home-whatsapp-route-empty {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.snap-home-whatsapp-route-empty {
  display: block;
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-whatsapp-route-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.snap-home-whatsapp-route-main code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  direction: ltr;
}

.snap-home-whatsapp-route-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.snap-home-whatsapp-route-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.snap-home-whatsapp-route-kind-field,
.snap-home-whatsapp-route-sender-field {
  grid-column: 1 / -1;
  max-width: 220px;
}

.snap-home-whatsapp-route-group-field {
  align-self: stretch;
}

.snap-home-whatsapp-route-target-field {
  align-self: stretch;
}

.snap-home-whatsapp-group-picker,
.snap-home-whatsapp-target-picker {
  min-width: 0;
  min-height: 270px;
  max-height: min(44vh, 430px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-whatsapp-route-form .snap-home-whatsapp-picker-search {
  min-width: 0;
  height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--snap-home-line);
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
}

.snap-home-whatsapp-route-form .snap-home-whatsapp-picker-search:focus {
  border-color: rgb(37 99 235 / 50%);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.snap-home-whatsapp-target-picker.disabled {
  opacity: 0.65;
  pointer-events: none;
}

.snap-home-whatsapp-group-list,
.snap-home-whatsapp-target-list {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-inline-end: 2px;
}

.snap-home-whatsapp-group-option,
.snap-home-whatsapp-target-option {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--snap-home-ink);
  text-align: start;
  font: inherit;
  cursor: pointer;
}

.snap-home-whatsapp-group-option:hover,
.snap-home-whatsapp-group-option:focus,
.snap-home-whatsapp-group-option.selected,
.snap-home-whatsapp-target-option:hover,
.snap-home-whatsapp-target-option:focus,
.snap-home-whatsapp-target-option.selected {
  border-color: rgb(37 99 235 / 35%);
  background: #eff6ff;
  outline: none;
}

.snap-home-whatsapp-group-main,
.snap-home-whatsapp-target-option {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.snap-home-whatsapp-target-option {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.snap-home-whatsapp-group-main strong,
.snap-home-whatsapp-group-main span,
.snap-home-whatsapp-target-option strong,
.snap-home-whatsapp-target-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-whatsapp-group-main strong,
.snap-home-whatsapp-target-option strong {
  font-size: 13px;
}

.snap-home-whatsapp-group-main span,
.snap-home-whatsapp-target-option span {
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-whatsapp-group-main span {
  direction: ltr;
}

.snap-home-whatsapp-group-badges {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.snap-home-whatsapp-group-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.snap-home-whatsapp-route-form .snap-home-whatsapp-actions {
  grid-column: 1 / -1;
}

.snap-home-whatsapp-accounts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.snap-home-whatsapp-account {
  align-content: start;
}

.snap-home-whatsapp-account-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.snap-home-whatsapp-status-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--snap-home-muted);
  font-size: 12px;
  white-space: nowrap;
}

.snap-home-whatsapp-status-pill.connected {
  background: #dcfce7;
  color: #166534;
}

.snap-home-whatsapp-status-pill.qr {
  background: #dbeafe;
  color: #1d4ed8;
}

.snap-home-whatsapp-status-pill.off {
  background: #f1f5f9;
  color: #64748b;
}

.snap-home-whatsapp-policy {
  display: grid;
  gap: 4px;
}

.snap-home-whatsapp-warning {
  padding: 10px;
  border: 1px solid rgb(180 83 9 / 18%);
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-whatsapp-account-message {
  padding: 9px 10px;
  border: 1px solid rgb(37 99 235 / 18%);
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-whatsapp-account-message.error {
  border-color: rgb(180 35 24 / 18%);
  background: #fff7f7;
  color: #b42318;
}

.snap-home-whatsapp-unavailable {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.snap-home-whatsapp-unavailable strong {
  color: var(--snap-home-ink);
  font-size: 13px;
  line-height: 1.3;
}

.snap-home-whatsapp-unavailable span,
.snap-home-whatsapp-unavailable small {
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-whatsapp-qr {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.snap-home-whatsapp-qr img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.snap-home-usage-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-usage-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.snap-home-usage-card-title {
  font-size: 13px;
  font-weight: 750;
}

.snap-home-usage-card-value {
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-usage-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.snap-home-usage-bar-fill {
  width: var(--snap-usage-percent, 0%);
  height: 100%;
  border-radius: inherit;
  background: #3b82f6;
}

.snap-home-usage-bar-fill.warning {
  background: #f59e0b;
}

.snap-home-usage-bar-fill.danger {
  background: #ef4444;
}

.snap-home-usage-reset {
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-usage-message {
  padding: 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--snap-home-muted);
  font-size: 13px;
}

.snap-home-automation-center {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.snap-home-automation-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.snap-home-automation-summary {
  min-width: 0;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-automation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.snap-home-automation-filters button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.snap-home-automation-filters button.has-fault {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.snap-home-automation-fault-badge {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 2px #fff;
}

.snap-home-automation-filters button.active,
.snap-home-automation-filters button:hover,
.snap-home-automation-filters button:focus {
  border-color: rgb(37 99 235 / 42%);
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

.snap-home-automation-inactive-toggle {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.snap-home-automation-inactive-toggle:hover,
.snap-home-automation-inactive-toggle:focus {
  border-color: rgb(37 99 235 / 42%);
  color: #1d4ed8;
  outline: none;
}

.snap-home-automation-hint {
  grid-column: 1 / -1;
  min-height: 16px;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-automation-hint:empty {
  display: none;
}

.snap-home-automation-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.snap-home-automation-list,
.snap-home-automation-detail {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.snap-home-automation-list {
  max-height: 620px;
  overflow: auto;
}

.snap-home-automation-list-tools {
  display: flex;
  justify-content: flex-start;
}

.snap-home-automation-item {
  width: 100%;
  min-width: 0;
  min-height: 92px;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.snap-home-automation-item:hover,
.snap-home-automation-item:focus,
.snap-home-automation-item.active {
  border-color: rgb(37 99 235 / 42%);
  background: #fbfdff;
  outline: none;
}

.snap-home-automation-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.snap-home-automation-badges,
.snap-home-automation-item-controls {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.snap-home-automation-item-controls {
  flex: 0 0 auto;
}

.snap-home-automation-kind,
.snap-home-automation-state {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #4b5563;
  font-size: 11px;
  line-height: 1;
}

.snap-home-automation-state {
  background: #dcfce7;
  color: #166534;
}

.snap-home-automation-state.off {
  background: #f1f5f9;
  color: #64748b;
}

.snap-home-automation-item strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.25;
}

.snap-home-automation-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.3;
}

.snap-home-automation-icon-button {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--snap-home-line);
  border-radius: 7px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.snap-home-automation-icon-button:hover,
.snap-home-automation-icon-button:focus {
  border-color: rgb(37 99 235 / 46%);
  color: #1d4ed8;
  outline: none;
}

.snap-home-automation-icon-button.danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.snap-home-automation-icon-button.danger:hover,
.snap-home-automation-icon-button.danger:focus {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.snap-home-automation-icon-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.snap-home-automation-icon-button svg {
  width: 16px;
  height: 16px;
}

.snap-home-automation-item .snap-home-automation-kind,
.snap-home-automation-item .snap-home-automation-state {
  color: #4b5563;
}

.snap-home-automation-item .snap-home-automation-state {
  color: #166534;
}

.snap-home-automation-item .snap-home-automation-state.off {
  color: #64748b;
}

.snap-home-automation-meta {
  direction: ltr;
  text-align: right;
}

.snap-home-automation-detail {
  padding: 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
}

.snap-home-automation-detail-head {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.snap-home-automation-detail-head span {
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-automation-detail-head strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.3;
}

.snap-home-automation-title-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.snap-home-automation-title-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  padding: 0 10px;
}

.snap-home-automation-title-input:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-automation-title-field.invalid .snap-home-automation-title-input,
.snap-home-automation-field.invalid input,
.snap-home-automation-field.invalid select,
.snap-home-automation-field.invalid textarea {
  border-color: #dc2626;
}

.snap-home-automation-title-field.invalid .snap-home-automation-title-input:focus,
.snap-home-automation-field.invalid input:focus,
.snap-home-automation-field.invalid select:focus,
.snap-home-automation-field.invalid textarea:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgb(220 38 38 / 12%);
}

.snap-home-automation-form {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snap-home-automation-field {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.3;
}

.snap-home-automation-field[hidden] {
  display: none;
}

.snap-home-automation-field.wide,
.snap-home-automation-schedule-section,
.snap-home-automation-maze-fields {
  grid-column: 1 / -1;
}

.snap-home-automation-field input,
.snap-home-automation-field select,
.snap-home-automation-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
}

.snap-home-automation-field input,
.snap-home-automation-field select {
  height: 34px;
  padding: 0 9px;
}

.snap-home-automation-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
}

.snap-home-automation-field textarea {
  min-height: 86px;
  resize: vertical;
  padding: 8px 9px;
  line-height: 1.4;
}

.snap-home-automation-field-error,
.snap-home-automation-title-field .snap-home-automation-field-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.snap-home-automation-field-error[hidden] {
  display: none;
}

.snap-home-automation-field input:focus,
.snap-home-automation-field select:focus,
.snap-home-automation-field textarea:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-automation-field input[readonly] {
  background: #f8fafc;
  color: var(--snap-home-muted);
}

.snap-home-automation-schedule-section {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.snap-home-automation-schedule-section > strong {
  color: var(--snap-home-ink);
  font-size: 13px;
  line-height: 1.2;
}

.snap-home-automation-schedule-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snap-home-automation-weekday-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.snap-home-automation-weekday-option {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font-size: 13px;
  line-height: 1.2;
}

.snap-home-automation-weekday-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.snap-home-automation-weekday-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-automation-field.invalid .snap-home-automation-weekday-grid {
  padding: 6px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgb(220 38 38 / 12%);
}

.snap-home-automation-schedule-preview {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-automation-maze-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.snap-home-automation-maze-fields[hidden] {
  display: none;
}

.snap-home-automation-advanced {
  grid-column: 1 / -1;
  min-width: 0;
}

.snap-home-automation-advanced summary {
  cursor: pointer;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.3;
}

.snap-home-automation-advanced[open] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snap-home-automation-advanced[open] summary {
  grid-column: 1 / -1;
}

.snap-home-automation-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 8px;
  background: linear-gradient(rgb(255 255 255 / 0%), #fff 18px);
}

.snap-home-automation-actions[hidden] {
  display: none;
}

.snap-home-automation-save {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.snap-home-automation-cancel {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.snap-home-automation-cancel:hover,
.snap-home-automation-cancel:focus {
  border-color: rgb(37 99 235 / 46%);
  color: #1d4ed8;
  outline: none;
}

.snap-home-automation-cancel[hidden] {
  display: none;
}

.snap-home-automation-save:hover,
.snap-home-automation-save:focus {
  border-color: rgb(37 99 235 / 46%);
  color: #1d4ed8;
  outline: none;
}

.snap-home-automation-save.primary {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
  font-weight: 750;
}

.snap-home-automation-save.primary:hover,
.snap-home-automation-save.primary:focus {
  border-color: #1e40af;
  background: #1d4ed8;
  color: #fff;
}

.snap-home-automation-save[hidden] {
  display: none;
}

.snap-home-automation-save:disabled {
  cursor: default;
  opacity: 0.52;
}

.snap-home-automation-maze-meta {
  overflow-wrap: anywhere;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-automation-node-list {
  display: grid;
  gap: 6px;
}

.snap-home-automation-node-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.snap-home-automation-node-item {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.snap-home-automation-node {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--snap-home-ink);
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.snap-home-automation-node:hover,
.snap-home-automation-node:focus,
.snap-home-automation-node-item.expanded .snap-home-automation-node {
  border-color: rgb(37 99 235 / 42%);
  background: #fff;
  outline: none;
}

.snap-home-automation-node-title-wrap {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.snap-home-automation-node strong,
.snap-home-automation-node span {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
}

.snap-home-automation-node strong {
  cursor: text;
}

.snap-home-automation-node span {
  color: var(--snap-home-muted);
}

.snap-home-automation-node-title-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 0 9px;
}

.snap-home-automation-node-title-input[hidden] {
  display: none;
}

.snap-home-automation-node-title-wrap.invalid .snap-home-automation-node-title-input {
  border-color: #dc2626;
}

.snap-home-automation-node-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 0 10px 2px;
}

.snap-home-automation-md-preview {
  min-width: 0;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.snap-home-automation-node-markdown-view {
  border: 0;
  border-inline-start: 3px solid #dbeafe;
  background: #fff;
  cursor: text;
}

.snap-home-automation-node-markdown-view[hidden] {
  display: none;
}

.snap-home-automation-node-markdown-edit {
  width: 100%;
  min-width: 0;
  min-height: 220px;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.snap-home-automation-node-markdown-edit:focus,
.snap-home-automation-node-title-input:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-automation-node-markdown-edit[hidden] {
  display: none;
}

.snap-home-automation-md-content {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.snap-home-automation-md-content h1,
.snap-home-automation-md-content h2,
.snap-home-automation-md-content h3,
.snap-home-automation-md-content h4,
.snap-home-automation-md-content p,
.snap-home-automation-md-content ul,
.snap-home-automation-md-content pre {
  margin: 0;
}

.snap-home-automation-md-content h1 {
  font-size: 18px;
  line-height: 1.25;
}

.snap-home-automation-md-content h2 {
  font-size: 16px;
  line-height: 1.3;
}

.snap-home-automation-md-content h3,
.snap-home-automation-md-content h4 {
  font-size: 14px;
  line-height: 1.35;
}

.snap-home-automation-md-content p,
.snap-home-automation-md-content li {
  color: var(--snap-home-ink);
  font-size: 13px;
  line-height: 1.45;
}

.snap-home-automation-md-content ul {
  padding-inline-start: 20px;
}

.snap-home-automation-md-content pre {
  overflow: auto;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f6f8fa;
  color: #111827;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.snap-home-automation-md-empty {
  color: var(--snap-home-muted);
}

.snap-home-automation-md-content .snap-home-text-block,
.snap-home-automation-md-content .snap-home-code-block-wrap,
.snap-home-automation-md-content .snap-home-table-wrap {
  margin: 0;
}

.snap-home-automation-errors {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-settings-row-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.snap-home-settings-row-title strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 750;
}

.snap-home-settings-row-title span,
.snap-home-settings-state {
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-settings-control {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.snap-home-settings-control select,
.snap-home-settings-control input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
}

.snap-home-settings-control select:focus,
.snap-home-settings-control input[type="text"]:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-settings-toggle {
  width: 50px;
  height: 28px;
  position: relative;
  border: 1px solid var(--snap-home-line);
  border-radius: 999px;
  background: #d9e2ee;
  cursor: pointer;
}

.snap-home-settings-toggle::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 22%);
  transition: transform 120ms ease;
}

.snap-home-settings-toggle[aria-pressed="true"] {
  border-color: rgb(37 99 235 / 55%);
  background: var(--snap-home-accent);
}

.snap-home-settings-toggle[aria-pressed="true"]::after {
  transform: translateX(-22px);
}

.snap-home-settings-row.is-overridden .snap-home-settings-row-title,
.snap-home-settings-row.is-overridden .snap-home-settings-control {
  opacity: 0.62;
}

.snap-home-settings-toggle:disabled,
.snap-home-settings-toggle[aria-pressed="true"]:disabled {
  border-color: #cbd5e1;
  background: #e5e7eb;
  cursor: not-allowed;
}

.snap-home-settings-toggle:disabled::after {
  background: #94a3b8;
  box-shadow: none;
}

.snap-home-settings-reset {
  min-width: 64px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.snap-home-settings-reset:disabled {
  cursor: default;
  opacity: 0.48;
}

.snap-home-settings-status {
  min-height: 18px;
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-settings-status:empty {
  display: none;
}

.snap-home-settings-status.error {
  color: #b91c1c;
}

.snap-home-remote-share-dialog {
  width: min(560px, 100%);
}

.snap-home-remote-share-list {
  display: grid;
  gap: 9px;
}

.snap-home-remote-share-option {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.snap-home-remote-share-option:hover,
.snap-home-remote-share-option:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-remote-share-option:disabled {
  cursor: default;
  opacity: 0.58;
  box-shadow: none;
}

.snap-home-remote-share-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.snap-home-remote-share-text strong {
  color: var(--snap-home-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.snap-home-remote-share-text span {
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.3;
}

.snap-home-remote-share-host {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  color: var(--snap-home-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-remote-share-copy {
  min-width: 48px;
  align-self: center;
  color: var(--snap-home-accent);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.snap-home-remote-share-option:disabled .snap-home-remote-share-copy {
  color: var(--snap-home-muted);
}

.snap-home-remote-share-note[hidden] {
  display: none;
}

.snap-home-shortcuts-list {
  display: grid;
  gap: 8px;
}

.snap-home-shortcut-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 34px;
}

.snap-home-shortcut-row kbd {
  direction: ltr;
  justify-self: start;
  min-width: 92px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-bottom-color: #94a3b8;
  border-radius: 7px;
  background: #f8fafc;
  color: #1f2937;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgb(15 23 42 / 10%);
}

.snap-home-shortcut-row span {
  min-width: 0;
  color: var(--snap-home-ink);
  font-size: 13px;
  line-height: 1.35;
}

.snap-home-dialog-field {
  display: grid;
  gap: 6px;
  color: var(--snap-home-muted);
  font-size: 12px;
  font-weight: 700;
}

.snap-home-dialog-field[hidden] {
  display: none;
}

.snap-home-dialog-field input,
.snap-home-dialog-field select,
.snap-home-dialog-field textarea {
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-weight: 500;
}

.snap-home-dialog-field input,
.snap-home-dialog-field select {
  height: 38px;
}

.snap-home-dialog-field textarea {
  min-height: 104px;
  max-height: 220px;
  padding-block: 9px;
  resize: vertical;
  line-height: 1.45;
}

.snap-home-dialog-field input:focus,
.snap-home-dialog-field select:focus,
.snap-home-dialog-field textarea:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.snap-home-dialog-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--snap-home-ink);
  font-size: 13px;
  line-height: 1.35;
}

.snap-home-dialog-checkbox[hidden] {
  display: none;
}

.snap-home-dialog-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--snap-home-accent);
}

.snap-home-dialog-screenshot {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px dashed var(--snap-home-line);
  border-radius: 8px;
  background: var(--snap-home-soft);
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-dialog-screenshot div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.snap-home-dialog-screenshot strong {
  min-width: 0;
  overflow: hidden;
  color: var(--snap-home-ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-dialog-screenshot button {
  min-width: 46px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.snap-home-dialog-screenshot button[hidden] {
  display: none;
}

.snap-home-dialog-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.snap-home-dialog-actions button {
  min-width: 74px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  cursor: pointer;
}

.snap-home-dialog-actions button.primary {
  border-color: var(--snap-home-accent);
  background: var(--snap-home-accent);
  color: #fff;
}

.snap-home-dialog-actions button.primary.danger {
  border-color: #dc2626;
  background: #dc2626;
}

.snap-home-dialog-actions button:hover,
.snap-home-dialog-actions button:focus {
  border-color: var(--snap-home-accent);
  outline: none;
}

.snap-home-chat {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "chat-head"
    "chat-status"
    "chat-messages";
  background:
    radial-gradient(circle at 18px 18px, rgb(37 99 235 / 7%) 0 1px, transparent 2px),
    radial-gradient(circle at 44px 34px, rgb(14 165 233 / 6%) 0 1.4px, transparent 2.4px),
    linear-gradient(0deg, rgb(245 249 255 / 86%), rgb(245 249 255 / 86%));
  background-size: 64px 64px, 86px 86px, auto;
}

.snap-home.side-chat-open .snap-home-chat {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  grid-template-areas:
    "chat-head side-chat"
    "chat-status side-chat"
    "chat-messages side-chat";
}

.snap-home-chat-head {
  grid-area: chat-head;
  direction: rtl;
  justify-content: space-between;
  min-height: 64px;
  background: #f4f8ff;
}

.snap-home-chat-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.snap-home.no-chat .snap-home-composer {
  display: none;
}

.snap-home.no-chat .snap-home-message-list {
  padding: 0;
}

.snap-home.has-project-overview .snap-home-message-list {
  display: none;
}

.snap-home-project-overview {
  grid-area: chat-messages;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  padding: 18px min(4vw, 48px) 34px;
  direction: rtl;
  background: linear-gradient(180deg, rgb(248 251 255 / 88%), rgb(245 249 255 / 92%));
}

.snap-home-project-overview[hidden] {
  display: none;
}

.snap-home-project-overview-hero {
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 0 18px;
  text-align: center;
}

.snap-home-project-overview-hero h2 {
  max-width: 100%;
  margin: 0 auto;
  overflow-wrap: anywhere;
  color: var(--snap-home-ink);
  font-size: 36px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.snap-home-project-overview-hero h2.snap-home-text-ltr,
.snap-home-project-overview-hero h2.snap-home-text-rtl {
  text-align: center;
}

.snap-home-project-overview-read-more {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.snap-home-project-overview-instructions.expanded .snap-home-project-overview-read-more {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.snap-home-project-overview-read-more:hover,
.snap-home-project-overview-read-more:focus {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-overview-text-action {
  justify-self: start;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--snap-home-accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.snap-home-project-overview-text-action:hover,
.snap-home-project-overview-text-action:focus {
  text-decoration: underline;
  outline: none;
}

.snap-home-project-overview-categories {
  max-width: 1320px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  overflow: hidden;
}

.snap-home-project-overview-automation-panel {
  position: fixed;
  z-index: 260;
  top: 50%;
  left: 50%;
  width: min(1120px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  transform: translate(-50%, -50%);
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--snap-home-line);
  border-radius: 10px;
  background: #fbfdff;
  box-shadow: 0 18px 48px rgb(15 23 42 / 18%);
  direction: rtl;
  overflow: hidden;
}

.snap-home-project-overview-automation-host {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.snap-home-project-overview-automation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.snap-home-project-overview-automation-head strong {
  color: var(--snap-home-ink);
  font-size: 15px;
}

.snap-home-project-overview-automation-head button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  cursor: pointer;
}

.snap-home-project-overview-automation-panel .snap-home-automation-center {
  min-height: 0;
  overflow: auto;
}

.snap-home-project-overview-section {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--snap-home-line);
}

.snap-home-project-overview-section.wide {
  max-width: 1320px;
  width: 100%;
  grid-column: 1 / -1;
  margin: 0 auto 18px;
}

.snap-home-project-overview-section.span-main {
  grid-column: 1 / -1;
}

.snap-home-project-overview-section > header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.snap-home-project-overview-section.instructions-panel > header {
  justify-content: center;
  text-align: center;
}

.snap-home-project-overview-section h3 {
  margin: 0;
  color: var(--snap-home-ink);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

.snap-home-project-overview-section.instructions-panel h3 {
  width: 100%;
  font-family: var(--snap-home-font-ui);
  text-align: center;
}

.snap-home-project-overview-instructions {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  max-height: calc(50vh - 96px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 84%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 68%);
  cursor: pointer;
}

.snap-home-project-overview-instructions-content {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 16px 16px 52px;
}

.snap-home-project-overview-instructions:not(.has-toggle) .snap-home-project-overview-instructions-content {
  padding-bottom: 16px;
}

.snap-home-project-overview-instructions.expanded {
  max-height: calc(100dvh - 168px);
}

.snap-home-project-overview-instructions.expanded .snap-home-project-overview-instructions-content {
  overflow: auto;
}

.snap-home-project-overview-instructions.clamped {
  height: clamp(260px, calc(50vh - 88px), 340px);
}

.snap-home-project-overview-instructions:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-project-overview-instructions.clamped::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0%), rgb(255 255 255 / 92%) 62%, #fff);
}

.snap-home-project-overview-instructions-editor {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: clamp(260px, calc(50vh - 88px), 360px);
  resize: vertical;
  overflow: auto;
  padding: 13px 14px 58px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  unicode-bidi: plaintext;
}

.snap-home-project-overview-instructions-edit-wrap {
  position: relative;
  min-width: 0;
  height: calc(100dvh - 184px);
  max-height: calc(100dvh - 184px);
  min-height: clamp(260px, calc(50vh - 88px), 360px);
}

.snap-home-project-overview-instructions-editor[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.snap-home-project-overview-instructions-editor[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.snap-home-project-overview-instructions-editor:focus {
  border-color: var(--snap-home-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.snap-home-project-overview-instructions-actions {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgb(226 232 240 / 76%);
  border-radius: 10px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 10px 24px rgb(15 23 42 / 10%);
}

.snap-home-project-overview-instructions-actions[hidden] {
  display: none;
}

.snap-home-project-overview-instructions-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.snap-home-project-overview-instructions-actions button:hover,
.snap-home-project-overview-instructions-actions button:focus {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-overview-instructions-actions button.primary {
  border-color: var(--snap-home-accent);
  background: var(--snap-home-accent);
  color: #fff;
}

.snap-home-project-overview-markdown h1,
.snap-home-project-overview-markdown h2,
.snap-home-project-overview-markdown h3,
.snap-home-project-overview-markdown h4,
.snap-home-project-overview-markdown h5,
.snap-home-project-overview-markdown h6,
.snap-home-project-overview-markdown p,
.snap-home-project-overview-markdown ul,
.snap-home-project-overview-markdown ol,
.snap-home-project-overview-markdown blockquote,
.snap-home-project-overview-markdown pre,
.snap-home-project-overview-markdown table {
  margin: 0 0 12px;
}

.snap-home-project-overview-markdown h1 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--snap-home-line);
  font-size: 20px;
  line-height: 1.25;
}

.snap-home-project-overview-markdown h2 {
  padding-bottom: 6px;
  border-bottom: 1px solid rgb(226 232 240 / 82%);
  font-size: 17px;
  line-height: 1.3;
}

.snap-home-project-overview-markdown h3,
.snap-home-project-overview-markdown h4,
.snap-home-project-overview-markdown h5,
.snap-home-project-overview-markdown h6 {
  font-size: 15px;
  line-height: 1.35;
}

.snap-home-project-overview-markdown p,
.snap-home-project-overview-markdown li,
.snap-home-project-overview-markdown blockquote {
  color: var(--snap-home-ink);
  font-size: 13px;
  line-height: 1.55;
}

.snap-home-project-overview-markdown ul,
.snap-home-project-overview-markdown ol {
  padding-inline-start: 22px;
}

.snap-home-project-overview-markdown blockquote {
  padding: 8px 12px;
  border-inline-start: 3px solid var(--snap-home-line);
  background: rgb(248 250 252 / 82%);
}

.snap-home-project-overview-markdown code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eff1f3;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  direction: ltr;
  unicode-bidi: isolate;
}

.snap-home-project-overview-markdown pre {
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #f6f8fa;
}

.snap-home-project-overview-markdown pre code {
  padding: 0;
  background: transparent;
}

.snap-home-project-overview-markdown a {
  color: var(--snap-home-accent);
}

.snap-home-project-overview-markdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.snap-home-project-overview-markdown [dir="ltr"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

.snap-home-project-overview-markdown [dir="rtl"] {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

.snap-home-project-overview-markdown pre[dir="ltr"],
.snap-home-project-overview-markdown code[dir="ltr"] {
  text-align: left;
}

.snap-home-project-overview-markdown th,
.snap-home-project-overview-markdown td {
  padding: 6px 8px;
  border: 1px solid var(--snap-home-line);
}

.snap-home-project-overview-markdown .snap-home-automation-md-content {
  gap: 9px;
}

.snap-home-project-overview-markdown .snap-home-automation-md-content h1 {
  font-size: 18px;
}

.snap-home-project-overview-markdown .snap-home-automation-md-content h2 {
  font-size: 16px;
}

.snap-home-project-overview-markdown .snap-home-automation-md-content h3,
.snap-home-project-overview-markdown .snap-home-automation-md-content h4 {
  font-size: 14px;
}

.snap-home-project-overview-markdown .snap-home-automation-md-content p,
.snap-home-project-overview-markdown .snap-home-automation-md-content li {
  font-size: 13px;
  line-height: 1.55;
}

.snap-home-project-overview-markdown .snap-home-automation-md-content pre {
  max-height: 180px;
}

.snap-home-project-overview-subgroup {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.snap-home-project-overview-subgroup h4 {
  margin: 0;
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

.snap-home-project-overview-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snap-home-project-overview-image-grid a,
.snap-home-project-overview-image-grid button {
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.snap-home-project-overview-image-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.snap-home-project-overview-more-tile {
  display: grid;
  place-items: center;
  color: var(--snap-home-accent);
  font-size: 18px;
  font-weight: 850;
}

.snap-home-project-overview-list {
  min-width: 0;
  max-height: 100%;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.snap-home-project-overview-file-explorer {
  min-width: 0;
  max-height: 100%;
  overflow: auto;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 82%);
}

.snap-home-project-overview-file-head,
.snap-home-project-overview-file-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(52px, auto);
  align-items: center;
  gap: 10px;
}

.snap-home-project-overview-file-head span:nth-child(3),
.snap-home-project-overview-file-source {
  display: none;
}

.snap-home-project-overview-file-head {
  padding: 8px 11px;
  border-bottom: 1px solid var(--snap-home-line);
  background: rgb(248 250 252 / 86%);
  color: var(--snap-home-muted);
  font-size: 11px;
  font-weight: 700;
}

.snap-home-project-overview-file-row {
  width: 100%;
  text-decoration: none;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid rgb(226 232 240 / 76%);
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.snap-home-project-overview-file-row:last-child {
  border-bottom: 0;
}

.snap-home-project-overview-file-row:hover,
.snap-home-project-overview-file-row:focus {
  background: rgb(239 246 255 / 72%);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-overview-file-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.snap-home-project-overview-file-name span:last-child,
.snap-home-project-overview-file-kind,
.snap-home-project-overview-file-source {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-project-overview-file-badge {
  flex: 0 0 auto;
  min-width: 34px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 1px solid rgb(37 99 235 / 18%);
  border-radius: 6px;
  background: rgb(239 246 255 / 82%);
  color: var(--snap-home-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.snap-home-project-overview-file-kind,
.snap-home-project-overview-file-source {
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-project-overview-section.project-explorer-panel {
  min-height: 190px;
  align-self: stretch;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.snap-home-project-file-toolbar {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.snap-home-project-file-breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  direction: ltr;
}

.snap-home-project-file-breadcrumbs button {
  min-width: 0;
  max-width: 190px;
  height: 32px;
  overflow: hidden;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.snap-home-project-file-breadcrumbs button:hover,
.snap-home-project-file-breadcrumbs button:focus {
  background: rgb(239 246 255 / 88%);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-file-breadcrumbs button:disabled {
  cursor: default;
  opacity: 0.62;
}

.snap-home-project-file-breadcrumb-separator {
  flex: 0 0 auto;
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-project-file-toolbar-actions,
.snap-home-project-file-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.snap-home-project-file-toolbar-button,
.snap-home-project-file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 7px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  cursor: pointer;
}

.snap-home-project-file-toolbar-button {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.snap-home-project-file-action {
  width: 30px;
  height: 30px;
  padding: 0;
}

.snap-home-project-file-toolbar-button:hover,
.snap-home-project-file-toolbar-button:focus,
.snap-home-project-file-action:hover,
.snap-home-project-file-action:focus {
  border-color: rgb(37 99 235 / 38%);
  color: var(--snap-home-accent);
  outline: none;
  background: rgb(239 246 255 / 76%);
}

.snap-home-project-file-toolbar-button:disabled,
.snap-home-project-file-action:disabled {
  cursor: default;
  opacity: 0.48;
}

.snap-home-project-file-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.snap-home-project-file-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.snap-home-project-file-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snap-home-project-file-icon.folder {
  color: #b45309;
}

.snap-home-project-file-status {
  min-height: 24px;
  display: flex;
  align-items: center;
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-project-file-status[data-kind="error"] {
  color: #b91c1c;
}

.snap-home-project-file-shell {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 88%);
}

.snap-home-project-file-table-head,
.snap-home-project-file-table-row {
  min-width: 620px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 86px 132px 150px;
  align-items: center;
  gap: 10px;
}

.snap-home-project-file-table-head {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 34px;
  padding: 0 11px;
  border-bottom: 1px solid var(--snap-home-line);
  background: #f8fafc;
  color: var(--snap-home-muted);
  font-size: 11px;
  font-weight: 750;
}

.snap-home-project-file-table-row {
  min-height: 46px;
  padding: 0 11px;
  border-bottom: 1px solid rgb(226 232 240 / 76%);
}

.snap-home-project-file-table-row:last-child {
  border-bottom: 0;
}

.snap-home-project-file-table-row:hover {
  background: rgb(248 250 252 / 92%);
}

.snap-home-project-file-primary {
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.snap-home-project-file-primary:hover,
.snap-home-project-file-primary:focus {
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-file-primary:disabled {
  cursor: default;
  opacity: 0.58;
}

.snap-home-project-file-primary > span:last-child,
.snap-home-project-file-size,
.snap-home-project-file-modified {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-project-file-primary > span:last-child {
  font-size: 13px;
  font-weight: 650;
}

.snap-home-project-file-size,
.snap-home-project-file-modified {
  color: var(--snap-home-muted);
  font-size: 11px;
  direction: ltr;
  text-align: start;
}

.snap-home-project-file-empty {
  min-height: 110px;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.snap-home-project-overview-item {
  --snap-project-overview-accent: var(--snap-home-accent);
  min-width: 0;
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--snap-home-line);
  border-inline-start: 3px solid var(--snap-project-overview-accent);
  border-radius: 8px;
  background: rgb(255 255 255 / 82%);
  color: var(--snap-home-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.snap-home-project-overview-item:hover,
.snap-home-project-overview-item:focus {
  border-color: rgb(37 99 235 / 34%);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-project-overview-item strong,
.snap-home-project-overview-item span,
.snap-home-project-overview-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-project-overview-item strong {
  font-size: 13px;
  line-height: 1.3;
}

.snap-home-project-overview-item span,
.snap-home-project-overview-item small,
.snap-home-project-overview-empty {
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-project-overview-empty {
  padding: 12px 0;
}

.snap-home-project-overview-empty.compact {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px dashed rgb(148 163 184 / 42%);
  border-radius: 8px;
  background: rgb(255 255 255 / 48%);
}

.snap-home-project-overview-empty.cta button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.snap-home-project-overview-empty.cta button:hover,
.snap-home-project-overview-empty.cta button:focus {
  border-color: var(--snap-home-accent);
  outline: none;
}

.snap-home-side-chat {
  grid-area: side-chat;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid var(--snap-home-line);
  background: #fbfdff;
  box-shadow: -10px 0 28px rgb(17 24 39 / 7%);
  z-index: 4;
}

.snap-home-side-chat[hidden] {
  display: none;
}

.snap-home-side-chat-head {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 58px;
  border-bottom: 1px solid var(--snap-home-line);
  background: #eef6ff;
}

.snap-home-side-chat-head > div {
  min-width: 0;
}

.snap-home-side-chat-head .snap-home-icon-button {
  flex: 0 0 auto;
}

.snap-home-side-chat-title {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.snap-home-side-chat-status {
  min-height: 16px;
  margin-top: 3px;
  color: var(--snap-home-muted);
  font-size: 12px;
}

.snap-home-side-chat-messages {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 96px;
  direction: rtl;
}

.snap-home-side-chat-composer {
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 14px;
  display: grid;
}

.snap-home-side-chat-composer textarea {
  min-height: 44px;
  max-height: 160px;
  resize: none;
  overflow: auto;
  padding: 11px 13px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  box-shadow: 0 8px 28px rgb(15 23 42 / 8%);
}

.snap-home-side-chat-composer textarea:focus {
  border-color: var(--snap-home-accent);
}

.snap-home-project-instructions {
  position: relative;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  border-right: 1px solid var(--snap-home-line);
  background: #fbfdff;
  box-shadow: -10px 0 28px rgb(17 24 39 / 6%);
  direction: rtl;
}

.snap-home-project-instructions[hidden] {
  display: none;
}

.snap-home-project-instructions-head {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 58px;
  border-bottom: 1px solid var(--snap-home-line);
  background: #eef6ff;
}

.snap-home-project-instructions-head > div {
  min-width: 0;
}

.snap-home-project-instructions-head .snap-home-icon-button {
  flex: 0 0 auto;
}

.snap-home-project-instructions-title {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.snap-home-project-instructions-status {
  min-height: 16px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--snap-home-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-project-instructions-preview,
.snap-home-project-instructions-editor {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.snap-home-project-instructions-preview {
  overflow: auto;
  padding: 22px 24px 96px;
  background: #fff;
  color: var(--snap-home-ink);
  font-size: 14px;
  line-height: 1.55;
  cursor: text;
}

.snap-home-project-instructions-preview[dir="ltr"],
.snap-home-project-instructions-editor[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.snap-home-project-instructions-preview[dir="rtl"],
.snap-home-project-instructions-editor[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.snap-home-project-instructions-preview:focus {
  outline: inset 2px rgb(37 99 235 / 34%);
  outline-offset: -2px;
}

.snap-home-project-instructions-preview h1,
.snap-home-project-instructions-preview h2,
.snap-home-project-instructions-preview h3,
.snap-home-project-instructions-preview h4 {
  margin: 22px 0 10px;
  line-height: 1.25;
}

.snap-home-project-instructions-preview h1 {
  margin-top: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--snap-home-line);
  font-size: 22px;
}

.snap-home-project-instructions-preview h2 {
  font-size: 18px;
}

.snap-home-project-instructions-preview h3 {
  font-size: 16px;
}

.snap-home-project-instructions-preview p,
.snap-home-project-instructions-preview ul,
.snap-home-project-instructions-preview ol,
.snap-home-project-instructions-preview blockquote,
.snap-home-project-instructions-preview pre {
  margin: 0 0 14px;
}

.snap-home-project-instructions-preview ul,
.snap-home-project-instructions-preview ol {
  padding-inline-start: 24px;
}

.snap-home-project-instructions-preview code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eff4fb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  direction: ltr;
  unicode-bidi: isolate;
}

.snap-home-project-instructions-preview pre {
  overflow: auto;
  padding: 13px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  direction: ltr;
  text-align: left;
}

.snap-home-project-instructions-preview pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.snap-home-project-instructions-preview blockquote {
  padding-inline-start: 12px;
  border-inline-start: 4px solid #cbd5e1;
  color: #475569;
}

.snap-home-project-instructions-editor {
  resize: none;
  overflow: auto;
  padding: 22px 24px 96px;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--snap-home-ink);
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.snap-home-project-instructions-editor[hidden],
.snap-home-project-instructions-preview[hidden] {
  display: none;
}

.snap-home-project-instructions-actions {
  padding: 8px 12px 12px;
  border-top: 1px solid var(--snap-home-line);
  background: #fff;
}

.snap-home-active-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.snap-home-active-avatar[hidden] {
  display: none;
}

.snap-home-active-title {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.snap-home-active-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.snap-home-active-name {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 750;
  text-align: start;
  cursor: pointer;
}

.snap-home-active-name:disabled {
  cursor: default;
}

.snap-home-active-name[hidden] {
  display: none;
}

.snap-home-active-name:not(:disabled):hover,
.snap-home-active-name:not(:disabled):focus {
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-active-settings {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--snap-home-line);
  border-radius: 999px;
  background: #fff;
  color: var(--snap-home-muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.snap-home-active-settings svg {
  width: 16px;
  height: 16px;
  display: block;
}

.snap-home-active-settings[hidden] {
  display: none;
}

.snap-home-active-settings:hover,
.snap-home-active-settings:focus {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-active-path {
  direction: rtl;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-active-meta {
  min-width: 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.snap-home-reasoning-wrap {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.snap-home-workdir-badge,
.snap-home-reasoning-badge {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  background: rgb(37 99 235 / 10%);
  color: #1d4ed8;
  font: inherit;
  font-size: 11px;
  line-height: 1.25;
  direction: ltr;
  cursor: pointer;
}

.snap-home-workdir-badge:hover,
.snap-home-workdir-badge:focus,
.snap-home-reasoning-badge:hover,
.snap-home-reasoning-badge:focus {
  background: rgb(37 99 235 / 16%);
  outline: 1px solid rgb(37 99 235 / 24%);
}

.snap-home-workdir-badge.folder-only {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
}

.snap-home-workdir-badge.folder-only[hidden] {
  display: none;
}

.snap-home-reasoning-badge {
  cursor: pointer;
}

.snap-home-workdir-badge[hidden],
.snap-home-reasoning-badge[hidden],
.snap-home-reasoning-menu[hidden] {
  display: none;
}

.snap-home-reasoning-menu {
  position: absolute;
  z-index: 48;
  inset-block-start: 24px;
  inset-inline-start: 0;
  width: 132px;
  padding: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(15 23 42 / 18%);
}

.snap-home-reasoning-option {
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.snap-home-reasoning-option:hover,
.snap-home-reasoning-option:focus,
.snap-home-reasoning-option.active {
  background: #eef5ff;
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-conversation-status {
  grid-area: chat-status;
  margin: 10px auto 0;
  max-width: min(720px, calc(100% - 32px));
  padding: 7px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 3px 12px rgb(17 24 39 / 8%);
}

.snap-home-conversation-status[hidden] {
  display: none;
}

.snap-home-message-list {
  --snap-home-message-edge-space: min(6vw, 72px);
  --snap-home-scroll-bottom-gutter: 52px;
  grid-area: chat-messages;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding:
    22px
    var(--snap-home-message-edge-space)
    var(--snap-home-composer-space, 108px)
    calc(var(--snap-home-message-edge-space) + var(--snap-home-scroll-bottom-gutter));
  direction: rtl;
  scrollbar-gutter: stable;
}

.snap-home-scroll-bottom {
  position: fixed;
  z-index: 50;
  left: 16px;
  bottom: calc(var(--snap-home-composer-space, 108px) + 16px);
  width: 36px;
  height: 36px;
  border: 1px solid rgb(37 99 235 / 22%);
  border-radius: 999px;
  background: #fff;
  color: var(--snap-home-accent);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 10px 24px rgb(17 24 39 / 14%);
  cursor: pointer;
}

.snap-home-scroll-bottom[hidden] {
  display: none;
}

.snap-home-message-day {
  align-self: center;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgb(255 255 255 / 82%);
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgb(17 24 39 / 6%);
}

.snap-home-unread-marker {
  align-self: center;
  min-width: 140px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(37 99 235 / 12%);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.snap-home-message-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  direction: ltr;
}

.snap-home-message-row.incoming {
  justify-content: flex-start;
}

.snap-home-message-row.outgoing {
  justify-content: flex-end;
}

.snap-home-message {
  max-width: min(760px, 78%);
  min-width: 0;
  flex: 0 1 auto;
  position: relative;
  display: grid;
  gap: 5px;
  padding: 7px 9px 5px;
  border-radius: 8px;
  color: #111827;
  direction: rtl;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgb(17 24 39 / 10%);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snap-home-message-ltr {
  direction: ltr;
}

.snap-home-message.incoming {
  background: #fff;
  border-top-left-radius: 2px;
}

.snap-home-message.outgoing {
  background: #dbeafe;
  border-top-right-radius: 2px;
}

.snap-home-message.note {
  align-self: center;
  max-width: min(700px, 84%);
  background: rgb(255 255 255 / 76%);
  color: var(--snap-home-muted);
  text-align: center;
  box-shadow: none;
}

.snap-home-message.automation {
  border-inline-start: 3px solid var(--snap-home-accent);
}

.snap-home-message.system-notice {
  max-width: min(660px, 82%);
  padding: 7px 10px 6px;
  border: 1px solid rgb(37 99 235 / 16%);
  border-inline-start: 3px solid rgb(37 99 235 / 36%);
  border-radius: 8px;
  background: rgb(248 250 252 / 92%);
  color: #334155;
  box-shadow: none;
  font-size: 13px;
}

.snap-home-message.interrupted {
  opacity: 0.72;
}

.snap-home-message-row.snap-home-message-linked .snap-home-message {
  outline: 2px solid rgb(37 99 235 / 42%);
  box-shadow: 0 0 0 5px rgb(37 99 235 / 12%);
}

.snap-home-search-highlight {
  padding: 0 2px;
  border-radius: 4px;
  background: #fde68a;
  color: inherit;
  box-shadow: 0 0 0 1px rgb(217 119 6 / 18%);
}

.snap-home-search-highlight.active {
  background: #f97316;
  color: #fff;
  box-shadow: 0 0 0 2px rgb(249 115 22 / 25%);
}

.snap-home-message.collapsed .snap-home-message-body,
.snap-home-message.collapsed .snap-home-message-attachments,
.snap-home-message.collapsed .snap-home-image-preview-list,
.snap-home-message.collapsed .snap-home-message-turn-payload {
  display: none;
}

.snap-home-message-actions {
  position: absolute;
  top: -10px;
  inset-inline-end: 8px;
  display: inline-flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.snap-home-message-quote-zone {
  flex: 1 1 0;
  min-width: 44px;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: default;
  touch-action: manipulation;
}

.snap-home-message-quote-zone:hover,
.snap-home-message-quote-zone:focus-visible {
  background: transparent;
  outline: none;
}

.snap-home-message:hover .snap-home-message-actions,
.snap-home-message:focus-within .snap-home-message-actions {
  opacity: 1;
}

.snap-home-message-action {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--snap-home-line);
  border-radius: 999px;
  background: #fff;
  color: var(--snap-home-muted);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.snap-home-copy-button {
  --snap-home-copy-icon-fill: #fff;
}

.snap-home-copy-glyph {
  position: relative;
  width: 12px;
  height: 12px;
  display: block;
  color: currentColor;
}

.snap-home-copy-glyph::before,
.snap-home-copy-glyph::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
  background: var(--snap-home-copy-icon-fill);
}

.snap-home-copy-glyph::before {
  inset-inline-start: 1px;
  top: 3px;
  opacity: 0.72;
}

.snap-home-copy-glyph::after {
  inset-inline-start: 4px;
  top: 0;
}

.snap-home-message-action:hover,
.snap-home-message-action:focus {
  color: var(--snap-home-accent);
  border-color: var(--snap-home-accent);
  outline: none;
}

.snap-home-message-action.message-link {
  color: #1d4ed8;
}

.snap-home-message-action.message-copy {
  color: #475467;
}

.snap-home-message-meta-label {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.snap-home-message-system-label {
  width: fit-content;
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgb(37 99 235 / 10%);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.snap-home-message-text {
  min-width: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snap-home-message.user-input-request {
  width: min(620px, 86%);
}

.snap-home-user-input-request {
  min-width: 0;
  display: grid;
  gap: 12px;
  white-space: normal;
}

.snap-home-user-input-question {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.snap-home-user-input-header {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.snap-home-user-input-prompt {
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
  unicode-bidi: plaintext;
}

.snap-home-user-input-options {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 6px;
  margin-top: 3px;
}

.snap-home-user-input-option {
  min-width: 0;
  min-height: 42px;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.snap-home-user-input-option:hover,
.snap-home-user-input-option:focus-visible {
  border-color: #2563eb;
  background: #eff6ff;
  outline: none;
}

.snap-home-user-input-option:disabled {
  opacity: 0.55;
  cursor: wait;
}

.snap-home-user-input-option.other {
  min-height: 36px;
  color: #475569;
}

.snap-home-user-input-option-label {
  font-weight: 750;
}

.snap-home-user-input-option-description {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.snap-home-user-input-status {
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.snap-home-text-ltr {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

.snap-home-text-rtl {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

.snap-home-message-body,
.snap-home-text-block,
.snap-home-message-text a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snap-home-text-block + .snap-home-text-block {
  margin-top: 8px;
}

.snap-home-text-block,
.snap-home-code-block-wrap,
.snap-home-message-text .snap-home-data-output-block {
  position: relative;
}

.snap-home-text-block {
  padding-inline-end: 28px;
}

.snap-home-block-copy {
  position: absolute;
  z-index: 2;
  top: 4px;
  inset-inline-end: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(17 24 39 / 12%);
  border-radius: 6px;
  background: rgb(255 255 255 / 88%);
  color: #64748b;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease, color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.snap-home-text-block:hover > .snap-home-block-copy,
.snap-home-text-block:focus-within > .snap-home-block-copy,
.snap-home-code-block-wrap:hover > .snap-home-block-copy,
.snap-home-code-block-wrap:focus-within > .snap-home-block-copy,
.snap-home-message-text .snap-home-data-output-block:hover > .snap-home-block-copy,
.snap-home-message-text .snap-home-data-output-block:focus-within > .snap-home-block-copy {
  opacity: 1;
}

.snap-home-block-copy:hover,
.snap-home-block-copy:focus {
  border-color: rgb(37 99 235 / 42%);
  background: #fff;
  color: var(--snap-home-accent);
  outline: none;
}

@media (hover: none) {
  .snap-home-block-copy {
    opacity: 0.86;
  }
}

.snap-home-code-block-wrap {
  max-width: 100%;
  margin: 8px 0;
}

.snap-home-message-text code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgb(15 23 42 / 8%);
  direction: ltr;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.92em;
  unicode-bidi: isolate;
}

.snap-home-math-inline,
.snap-home-math-display {
  max-width: 100%;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  overflow-wrap: normal;
  word-break: normal;
}

.snap-home-math-inline {
  display: inline-block;
  vertical-align: -0.14em;
}

.snap-home-math-inline .katex {
  white-space: nowrap;
}

.snap-home-math-display {
  display: block;
  width: 100%;
  margin: 0.45em 0;
  padding: 0.2em 0;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
}

.snap-home-math-display .katex-display {
  min-width: max-content;
  margin: 0.35em 0;
}

.snap-home-math-fallback {
  border-radius: 4px;
  background: rgb(15 23 42 / 7%);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.92em;
  white-space: pre-wrap;
}

.snap-home-math-display.snap-home-math-fallback {
  padding: 8px 10px;
  text-align: left;
}

.snap-home-message-text pre.snap-home-code-block {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgb(15 23 42 / 7%);
  overflow: auto;
  direction: ltr;
  text-align: left;
  white-space: pre;
}

.snap-home-message-text .snap-home-code-block-wrap pre.snap-home-code-block {
  margin: 0;
  padding-inline-end: 42px;
}

.snap-home-message-text pre.snap-home-code-block.snap-home-plain-text-code-block {
  white-space: pre-wrap;
  unicode-bidi: isolate;
}

.snap-home-message-text pre.snap-home-code-block.snap-home-plain-text-code-block.snap-home-text-rtl {
  direction: rtl;
  text-align: right;
}

.snap-home-message-text pre.snap-home-code-block.snap-home-plain-text-code-block.snap-home-text-ltr {
  direction: ltr;
  text-align: left;
}

.snap-home-message-text .snap-home-data-output-block {
  margin: 8px 0;
  padding: 0;
  border-radius: 6px;
  background: rgb(15 23 42 / 7%);
  direction: ltr;
  overflow: auto;
  text-align: left;
}

.snap-home-message-text .snap-home-data-output-title {
  padding: 8px 12px 4px;
  color: #334155;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.snap-home-message-text .snap-home-data-output-block .snap-home-data-output-title {
  padding-inline-end: 42px;
}

.snap-home-message-text .snap-home-data-output-block pre {
  margin: 0;
  padding: 4px 12px 10px;
  background: transparent;
  overflow: visible;
  direction: ltr;
  text-align: left;
  white-space: pre;
}

.snap-home-message-text pre.snap-home-code-block code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.92em;
  white-space: pre;
}

.snap-home-message-text pre.snap-home-code-block.snap-home-plain-text-code-block code {
  direction: inherit;
  text-align: inherit;
  unicode-bidi: inherit;
  white-space: pre-wrap;
}

.snap-home-message-text .snap-home-data-output-block code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.92em;
  white-space: pre;
}

.snap-home-message-text a,
.snap-home-attachment-link {
  color: #0b63ce;
  text-decoration: none;
}

.snap-home-message-text a:hover,
.snap-home-attachment-link:hover {
  text-decoration: underline;
}

.snap-home-message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.snap-home-push-meta {
  display: grid;
  gap: 2px;
  margin: 0 0 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgb(37 99 235 / 10%);
  border-inline-start: 3px solid var(--snap-home-accent);
  color: #1e3a8a;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.snap-home-message-meta-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.snap-home-message-turn-payload {
  min-width: 0;
  margin: 0;
  display: inline-grid;
  color: #1f2937;
}

.snap-home-message-turn-payload[open] {
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
  margin-top: 2px;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 6px;
  background: rgb(248 250 252 / 58%);
  overflow: hidden;
}

.snap-home-message-turn-summary {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  opacity: 0.68;
  user-select: none;
}

.snap-home-message-turn-summary:hover,
.snap-home-message-turn-summary:focus {
  opacity: 1;
  color: #1d4ed8;
  border-color: rgb(37 99 235 / 16%);
  background: rgb(37 99 235 / 7%);
  outline: none;
}

.snap-home-message-turn-summary::-webkit-details-marker {
  display: none;
}

.snap-home-message-turn-payload[open] .snap-home-message-turn-summary {
  margin: 4px 5px 0;
  opacity: 0.82;
}

.snap-home-message-turn-summary-label {
  display: block;
  line-height: 1;
}

.snap-home-message-turn-copy {
  width: fit-content;
  height: 24px;
  justify-self: start;
  padding: 0 8px;
  border: 1px solid rgb(37 99 235 / 18%);
  border-radius: 6px;
  background: rgb(255 255 255 / 78%);
  color: #1d4ed8;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.snap-home-message-turn-copy:hover,
.snap-home-message-turn-copy:focus {
  border-color: rgb(37 99 235 / 42%);
  background: #fff;
  outline: none;
}

.snap-home-message-turn-content {
  display: grid;
  gap: 8px;
  padding: 5px 7px 7px;
}

.snap-home-message-turn-section {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.snap-home-message-turn-title {
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.snap-home-message-turn-text {
  max-height: 320px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 8px 9px;
  overflow: auto;
  border-radius: 6px;
  background: rgb(15 23 42 / 7%);
  color: #111827;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: start;
  unicode-bidi: plaintext;
}

.snap-home-quoted-context {
  display: grid;
  gap: 3px;
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgb(255 255 255 / 55%);
  border-inline-start: 3px solid rgb(37 99 235 / 65%);
  color: #475467;
}

.snap-home-quoted-context-label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.snap-home-quoted-context-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.35;
}

.snap-home-table-wrap {
  position: relative;
  max-width: 100%;
  overflow: auto;
  margin: 6px 0;
  border: 1px solid rgb(17 24 39 / 10%);
  border-radius: 8px;
  background: rgb(255 255 255 / 72%);
}

.snap-home-table-wrap.expanded {
  position: fixed;
  z-index: 80;
  inset: 22px;
  max-width: none;
  max-height: none;
  background: #fff;
  box-shadow: 0 28px 70px rgb(17 24 39 / 28%);
}

.snap-home-table-expand {
  position: sticky;
  top: 6px;
  inset-inline-start: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 1px solid var(--snap-home-line);
  border-radius: 7px;
  background: #fff;
  color: var(--snap-home-muted);
  cursor: pointer;
}

.snap-home-table-wrap table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  direction: rtl;
  font-size: 13px;
  line-height: 1.35;
}

.snap-home-table-wrap.snap-home-text-ltr table {
  direction: ltr;
}

.snap-home-table-wrap th,
.snap-home-table-wrap td {
  padding: 7px 9px;
  border: 1px solid rgb(17 24 39 / 10%);
  vertical-align: top;
  text-align: start;
}

.snap-home-table-wrap th {
  background: #eef6f3;
  font-weight: 800;
}

.snap-home-attachment-link,
.snap-home-pending-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgb(255 255 255 / 62%);
  color: #344054;
  font-size: 12px;
  line-height: 1.2;
}

.snap-home-message-image {
  max-width: min(400px, 100%);
  max-height: 290px;
  border-radius: 8px;
  object-fit: contain;
  cursor: zoom-in;
}

.snap-home-image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.snap-home-intermediary-group {
  align-self: flex-end;
  width: min(760px, 78%);
  display: grid;
  justify-items: end;
  gap: 6px;
  direction: rtl;
}

.snap-home-intermediary-toggle {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgb(17 24 39 / 8%);
  border-radius: 8px;
  border-top-left-radius: 2px;
  background: #fff;
  color: var(--snap-home-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.snap-home-intermediary-panel {
  width: 100%;
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--snap-home-line);
  border-radius: 10px;
  background: #fff;
  color: var(--snap-home-ink);
  box-shadow: 0 1px 1px rgb(17 24 39 / 8%);
}

.snap-home-intermediary-panel[hidden] {
  display: none;
}

.snap-home-intermediary-note + .snap-home-intermediary-note {
  padding-top: 10px;
  border-top: 1px solid var(--snap-home-line);
}

.snap-home-message-footer {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  color: rgb(102 112 133 / 82%);
}

.snap-home-message-time {
  color: rgb(102 112 133 / 82%);
  direction: ltr;
  font-size: 11px;
  line-height: 1;
}

.snap-home-message-status {
  color: rgb(102 112 133 / 82%);
  font-size: 11px;
  line-height: 1;
}

.snap-home-message-status.seen {
  color: #0b88d5;
}

.snap-home-composer {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  bottom: 0;
  min-width: 0;
  padding: 0 16px 18px;
  background: transparent;
  pointer-events: none;
}

.snap-home.side-chat-open .snap-home-composer {
  left: 42%;
  right: 0;
}

.snap-home-pending {
  width: min(1100px, 100%);
  margin: 0 auto 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  direction: rtl;
  pointer-events: auto;
}

.snap-home-pending[hidden] {
  display: none;
}

.snap-home-pending-chip {
  border: 1px solid rgb(0 0 0 / 8%);
  background: #fff;
}

.snap-home-pending-quote {
  width: min(620px, 100%);
  max-width: 100%;
  justify-content: space-between;
  padding: 7px 9px;
  border-color: rgb(37 99 235 / 18%);
  border-inline-start: 3px solid rgb(37 99 235 / 58%);
  background: rgb(255 255 255 / 86%);
}

.snap-home-pending-quote::before {
  content: "ציטוט";
  flex: 0 0 auto;
  color: #1d4ed8;
  font-weight: 800;
}

.snap-home-pending-quote-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-pending-chip button {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef2f4;
  color: var(--snap-home-muted);
  cursor: pointer;
}

.snap-home-composer-row {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  direction: rtl;
  padding: 8px;
  border: 1px solid rgb(37 99 235 / 14%);
  border-radius: 18px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 16px 42px rgb(15 23 42 / 14%);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.snap-home-attach-wrap {
  position: relative;
  width: 42px;
  height: 42px;
}

.snap-home-composer-row.has-hidden-restore {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.snap-home-composer-button {
  --context-fill: 0%;
  --context-color: #2563eb;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(var(--context-color) var(--context-fill), #d8dee4 0) border-box;
  color: #344054;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 5px rgb(17 24 39 / 9%);
}

.snap-home-composer-button[hidden] {
  display: none;
}

.snap-home-attach-menu {
  position: absolute;
  z-index: 40;
  inset-inline-start: 0;
  bottom: 50px;
  display: grid;
  min-width: 236px;
  padding: 6px;
  border: 1px solid var(--snap-home-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(17 24 39 / 16%);
}

.snap-home-attach-menu[hidden] {
  display: none;
}

.snap-home-attach-menu button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
}

.snap-home-attach-menu button:hover,
.snap-home-attach-menu button:focus {
  background: #eef5ff;
  color: var(--snap-home-accent);
  outline: none;
}

.snap-home-composer-button.turn-stop {
  background: #fff1f2;
  color: #b91c1c;
  border: 1px solid #fecdd3;
  font-size: 16px;
  font-weight: 800;
}

.snap-home-image-lightbox {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(2 6 23 / 84%);
}

.snap-home-image-lightbox[hidden] {
  display: none;
}

.snap-home-image-lightbox img {
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 36%);
}

.snap-home-link-back-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 8px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.snap-home-link-back-button:hover {
  border-color: var(--snap-home-accent);
  color: var(--snap-home-accent);
}

.snap-home-link-back-button[hidden] {
  display: none;
}

.snap-home-file-preview-modal {
  position: fixed;
  z-index: 280;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgb(2 6 23 / 72%);
}

.snap-home-file-preview-modal[hidden] {
  display: none;
}

.snap-home-file-preview-shell {
  width: calc(100vw - 28px);
  height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgb(0 0 0 / 34%);
  direction: rtl;
}

.snap-home-file-preview-modal[data-size="dialog"] .snap-home-file-preview-shell {
  width: min(1120px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
}

.snap-home-file-preview-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid var(--snap-home-line);
  background: #fbfcfe;
}

.snap-home-file-preview-title {
  min-width: 0;
  overflow: hidden;
  color: var(--snap-home-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}

.snap-home-file-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.snap-home-file-preview-frame[hidden],
.snap-home-file-preview-content[hidden] {
  display: none;
}

.snap-home-file-preview-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: clamp(20px, 4vw, 48px);
  background: #fff;
  color: var(--snap-home-ink);
  direction: ltr;
  text-align: left;
}

.snap-home-file-preview-content > .snap-home-automation-md-content {
  width: min(100%, 960px);
  margin: 0 auto;
  gap: 12px;
}

.snap-home-file-preview-content > .snap-home-automation-md-content h1 {
  font-size: 26px;
}

.snap-home-file-preview-content > .snap-home-automation-md-content h2 {
  font-size: 20px;
}

.snap-home-file-preview-content > .snap-home-automation-md-content h3,
.snap-home-file-preview-content > .snap-home-automation-md-content h4 {
  font-size: 16px;
}

.snap-home-file-preview-content > .snap-home-automation-md-content p,
.snap-home-file-preview-content > .snap-home-automation-md-content li {
  font-size: 14px;
  line-height: 1.6;
}

.snap-home-file-preview-content[data-state="loading"] {
  color: var(--snap-home-muted);
}

.snap-home-file-preview-content[data-state="error"] {
  color: #b42318;
}

@media (max-width: 760px) {
  .snap-home-file-preview-modal {
    padding: 0;
  }

  .snap-home-file-preview-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .snap-home-file-preview-content {
    padding: 18px;
  }
}

.snap-home-selection-quote,
.snap-home-selection-side-chat,
.snap-home-composer-snippet-save {
  position: fixed;
  z-index: 140;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--snap-home-line);
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgb(17 24 39 / 24%);
}

.snap-home-selection-side-chat {
  min-width: 134px;
  background: #1d4ed8;
}

.snap-home-composer-snippet-save {
  min-width: 178px;
  background: #0f766e;
}

.snap-home-selection-quote[hidden],
.snap-home-selection-side-chat[hidden],
.snap-home-composer-snippet-save[hidden] {
  display: none;
}

.snap-home-snippet-menu {
  position: fixed;
  z-index: 145;
  display: grid;
  gap: 4px;
  max-height: min(320px, calc(100vh - 24px));
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgb(15 118 110 / 22%);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(15 23 42 / 18%);
  direction: rtl;
}

.snap-home-snippet-menu[hidden] {
  display: none;
}

.snap-home-snippet-menu-hint {
  padding: 4px 7px 2px;
  color: var(--snap-home-muted);
  font-size: 11px;
  font-weight: 800;
}

.snap-home-snippet-option {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--snap-home-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.snap-home-snippet-option:hover,
.snap-home-snippet-option:focus,
.snap-home-snippet-option.active {
  background: #e9f8f6;
  color: #0f766e;
  outline: none;
}

.snap-home-snippet-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.snap-home-snippet-delete {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--snap-home-muted);
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.snap-home-snippet-delete:hover,
.snap-home-snippet-delete:focus {
  background: #fde2e2;
  color: #b91c1c;
  outline: none;
}

.snap-home-snippet-title,
.snap-home-snippet-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snap-home-snippet-title {
  font-size: 13px;
  font-weight: 800;
}

.snap-home-snippet-preview {
  color: var(--snap-home-muted);
  font-size: 12px;
  line-height: 1.25;
}

.snap-home-composer textarea {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  max-height: 150px;
  display: block;
  resize: none;
  overflow-y: hidden;
  border: 1px solid #cbd8e6;
  border-radius: 12px;
  outline: none;
  padding: 12px 16px;
  background: #fff;
  color: var(--snap-home-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgb(37 99 235 / 10%);
}

.snap-home-composer textarea:focus {
  border-color: var(--snap-home-accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 13%);
}

.snap-home-composer textarea:disabled {
  background: #f8fbff;
  color: var(--snap-home-muted);
}

.snap-home-empty {
  padding: 18px 10px;
  color: var(--snap-home-muted);
  font-size: 14px;
  line-height: 1.45;
}

.snap-home-mobile-only,
.snap-home-mobile-composer-button,
.snap-home-mobile-sheet-backdrop {
  display: none;
}

.snap-home-mobile-sheet-backdrop[hidden] {
  display: none;
}

.snap-home-back {
  display: none;
}

@media (max-width: 760px) {
  html,
  body {
    min-height: 100dvh;
    overflow: hidden;
    background: #fff;
    overscroll-behavior: none;
  }

  .snap-home {
    height: 100dvh;
    grid-template-columns: 1fr;
    background: #fff;
  }

  .snap-home-sidebar-resizer {
    display: none;
  }

  .snap-home.instructions-open {
    grid-template-columns: 1fr;
  }

  .snap-home-sidebar {
    border-left: 0;
    background: #fff;
    box-shadow: none;
    grid-template-rows: auto auto auto auto auto auto auto minmax(0, 1fr);
    padding-top: env(safe-area-inset-top, 0);
  }

  .snap-home-sidebar-head {
    min-height: 124px;
    align-items: end;
    padding: 18px 18px 12px;
    border-bottom: 0;
    background: #fff;
  }

  .snap-home-global-settings-button {
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 12px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #f3f6fb;
    box-shadow: 0 8px 24px rgb(15 23 42 / 8%);
  }

  .snap-home-sidebar h1 {
    font-size: 38px;
    line-height: 1;
    font-weight: 850;
  }

  .snap-home-head-actions {
    align-self: start;
    gap: 10px;
    padding-top: 6px;
    padding-left: 56px;
  }

  .snap-home-head-actions .snap-home-icon-button {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #f3f6fb;
    box-shadow: 0 8px 24px rgb(15 23 42 / 8%);
    font-size: 24px;
  }

  .snap-home-settings-dialog {
    width: 100%;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 14px;
  }

  .snap-home-settings-head {
    padding: 0 0 12px;
  }

  .snap-home-settings-body {
    padding: 12px 0 0;
  }

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

  .snap-home-settings-sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 10px;
    border-left: 0;
    border-bottom: 1px solid var(--snap-home-line);
    background: transparent;
  }

  .snap-home-settings-sidebar-title {
    display: none;
  }

  .snap-home-settings-nav-button {
    width: auto;
    min-width: max-content;
    grid-template-columns: 18px auto;
    border: 1px solid var(--snap-home-line);
    background: #fff;
  }

  .snap-home-settings-main {
    padding: 16px 0 0;
  }

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

  .snap-home-settings-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 9px;
  }

  .snap-home-settings-control {
    justify-content: stretch;
  }

  .snap-home-settings-reset {
    width: 100%;
  }

  .snap-home-usage-grid {
    grid-template-columns: 1fr;
  }

  .snap-home-cloud-access-invite,
  .snap-home-cloud-access-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .snap-home-cloud-access-row-controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .snap-home-cloud-access-invite > .snap-home-cloud-access-action {
    width: 100%;
  }

  .snap-home-cloud-codex-challenge {
    align-items: flex-start;
    flex-direction: column;
  }

  .snap-home-cloud-codex-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .snap-home-cloud-codex-action {
    width: 100%;
  }

  .snap-home-cloud-composio-form {
    grid-template-columns: 1fr;
  }

  .snap-home-cloud-composio-form > .snap-home-cloud-codex-action {
    width: 100%;
  }

  .snap-home-cloud-browser-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .snap-home-cloud-browser-action {
    width: 100%;
  }

  .snap-home-whatsapp-accounts,
  .snap-home-whatsapp-account-head,
  .snap-home-whatsapp-route,
  .snap-home-whatsapp-route-form,
  .snap-home-whatsapp-preference-row {
    grid-template-columns: 1fr;
  }

  .snap-home-whatsapp-actions {
    align-items: stretch;
  }

  .snap-home-whatsapp-button {
    flex: 1 1 150px;
  }

  .snap-home-automation-head {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .snap-home-automation-filters {
    justify-content: stretch;
  }

  .snap-home-automation-filters button {
    flex: 1 1 auto;
  }

  .snap-home-automation-shell {
    grid-template-columns: 1fr;
  }

  .snap-home-automation-list {
    max-height: 320px;
  }

  .snap-home-automation-form,
  .snap-home-automation-schedule-grid,
  .snap-home-automation-maze-fields,
  .snap-home-automation-advanced[open] {
    grid-template-columns: 1fr;
  }

  .snap-home-automation-weekday-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #newChatButton {
    background: var(--snap-home-accent);
    color: #fff;
  }

  #conversationNewChatButton {
    background: var(--snap-home-accent);
    color: #fff;
  }

  .snap-home-search {
    margin: 0 16px 12px;
    border: 0;
    border-radius: 999px;
    background: #f1f3f5;
    min-height: 48px;
  }

  .snap-home-project-row {
    margin: 0 16px 6px;
    overflow: visible;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .snap-home-project-row::-webkit-scrollbar {
    display: none;
  }

  .snap-home-project-list,
  .snap-home-project-trigger,
  .snap-home-project-archive,
  .snap-home-project-labels,
  .snap-home-project-actions-button {
    min-height: 36px;
    border-radius: 999px;
  }

  .snap-home-project-trigger {
    max-width: 180px;
    background: #eef5ff;
    color: var(--snap-home-accent);
  }

  .snap-home-project-menu {
    position: fixed;
    z-index: 230;
    inset-block-start: calc(env(safe-area-inset-top, 0px) + 178px);
    inset-inline: 16px;
    max-height: min(360px, 58vh);
    border-radius: 14px;
  }

  .snap-home-label-filter-panel {
    margin: 0 16px 6px;
  }

  .snap-home-label-list {
    max-height: 94px;
    overflow: auto;
  }

  .snap-home-bulk-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 16px 8px;
  }

  .snap-home-bulk-bar span:first-child {
    grid-column: 1 / -1;
  }

  .snap-home-bulk-bar .snap-home-text-button {
    min-width: 0;
    height: 34px;
    padding: 0 6px;
    font-size: 12px;
  }

  .snap-home-chat {
    display: none;
  }

  .snap-home-project-instructions {
    display: none;
  }

  .snap-home.chat-open .snap-home-sidebar {
    display: none;
  }

  .snap-home.has-project-overview .snap-home-sidebar {
    display: none;
  }

  .snap-home.chat-open .snap-home-chat {
    display: grid;
    height: 100dvh;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .snap-home.has-project-overview .snap-home-chat {
    display: grid;
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .snap-home-project-overview {
    padding: 18px 16px calc(28px + env(safe-area-inset-bottom, 0));
  }

  .snap-home-project-overview-hero {
    text-align: center;
  }

  .snap-home-project-overview-hero h2 {
    font-size: 32px;
  }

  .snap-home-project-overview-categories {
    grid-template-columns: 1fr;
  }

  .snap-home-project-overview-instructions:not(.expanded) {
    max-height: 260px;
  }

  .snap-home-project-overview-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .snap-home-project-overview-file-head,
  .snap-home-project-overview-file-row {
    grid-template-columns: minmax(0, 1fr) minmax(52px, auto);
  }

  .snap-home-project-overview-file-head span:nth-child(3),
  .snap-home-project-overview-file-source {
    display: none;
  }

  .snap-home-project-overview-section.project-explorer-panel {
    min-height: 250px;
  }

  .snap-home-project-file-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .snap-home-project-file-breadcrumbs {
    min-height: 32px;
    overflow-x: auto;
  }

  .snap-home-project-file-toolbar-actions {
    width: 100%;
  }

  .snap-home-project-file-toolbar-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .snap-home-project-file-table-head,
  .snap-home-project-file-table-row {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 142px;
  }

  .snap-home-project-file-table-head span:nth-child(2),
  .snap-home-project-file-table-head span:nth-child(3),
  .snap-home-project-file-size,
  .snap-home-project-file-modified {
    display: none;
  }

  .snap-home-project-file-actions {
    gap: 4px;
  }

  .snap-home-project-file-action {
    width: 30px;
    height: 30px;
  }

  .snap-home.instructions-open .snap-home-sidebar,
  .snap-home.instructions-open .snap-home-chat {
    display: none;
  }

  .snap-home.instructions-open .snap-home-project-instructions {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100dvh;
    border-right: 0;
    box-shadow: none;
  }

  .snap-home-project-instructions-head {
    height: auto;
    min-height: 72px;
    padding: calc(10px + env(safe-area-inset-top, 0)) 10px 10px 58px;
  }

  .snap-home.side-chat-open .snap-home-chat {
    grid-template-columns: 1fr;
    grid-template-areas:
      "side-chat"
      "side-chat"
      "side-chat";
  }

  .snap-home.side-chat-open .snap-home-chat-head,
  .snap-home.side-chat-open .snap-home-conversation-status,
  .snap-home.side-chat-open .snap-home-message-list,
  .snap-home.side-chat-open .snap-home-composer {
    display: none;
  }

  .snap-home-side-chat {
    border-right: 0;
    box-shadow: none;
  }

  .snap-home-side-chat-head {
    min-height: 72px;
    padding: calc(10px + env(safe-area-inset-top, 0)) 10px 10px 58px;
  }

  .snap-home-mobile-only {
    display: inline-grid;
  }

  .snap-home-chat-head {
    min-height: 72px;
    padding: calc(10px + env(safe-area-inset-top, 0)) 10px 10px 70px;
    border-bottom: 1px solid rgb(17 24 39 / 8%);
    background: rgb(248 250 252 / 94%);
    backdrop-filter: blur(14px);
  }

  .snap-home-chat-actions #forceRestartButton,
  .snap-home-chat-actions #supportButton {
    display: none;
  }

  .snap-home-chat-head .snap-home-icon-button {
    border: 0;
    background: #fff;
    box-shadow: 0 6px 18px rgb(15 23 42 / 7%);
  }

  .snap-home-back {
    display: inline-grid;
  }

  .snap-home-active-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .snap-home-active-name {
    font-size: 17px;
    font-weight: 800;
  }

  .snap-home-active-meta {
    max-height: 18px;
    overflow: hidden;
    color: var(--snap-home-muted);
    font-size: 12px;
  }

  .snap-home-workdir-badge,
  .snap-home-reasoning-badge {
    display: none;
  }

  .snap-home-conversation-find {
    margin: 8px 10px 0;
  }

  .snap-home-conversation-status {
    max-width: calc(100% - 24px);
    margin-top: 8px;
    padding: 5px 10px;
    box-shadow: none;
  }

  .snap-home-message-list {
    gap: 6px;
    padding: 14px 10px calc(var(--snap-home-composer-space, 98px) + env(safe-area-inset-bottom, 0));
    background:
      radial-gradient(circle at 18px 18px, rgb(37 99 235 / 5%) 0 1px, transparent 2px),
      radial-gradient(circle at 45px 36px, rgb(15 23 42 / 4%) 0 1.3px, transparent 2.2px),
      #f8fafc;
    background-size: 58px 58px, 82px 82px, auto;
    scrollbar-gutter: auto;
  }

  .snap-home-message {
    max-width: 86%;
    padding: 7px 9px 5px;
    border-radius: 13px;
    font-size: 15px;
    line-height: 1.42;
    box-shadow: 0 1px 1px rgb(15 23 42 / 8%);
  }

  .snap-home-message.incoming {
    border-top-left-radius: 3px;
  }

  .snap-home-message.outgoing {
    border-top-right-radius: 3px;
    background: #dbeafe;
  }

  .snap-home-message.system-notice {
    max-width: 92%;
  }

  .snap-home-message-actions {
    display: none;
  }

  .snap-home-message-text pre.snap-home-code-block,
  .snap-home-message-text .snap-home-data-output-block pre {
    max-width: calc(100vw - 62px);
    overflow-x: auto;
  }

  .snap-home-intermediary-group {
    width: calc(100% - 22px);
    align-self: center;
    justify-items: center;
  }

  .snap-home-intermediary-toggle {
    width: 100%;
    min-height: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgb(102 112 133 / 78%);
    font-size: 11px;
    position: relative;
  }

  .snap-home-intermediary-toggle::before,
  .snap-home-intermediary-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    border-top: 1px solid rgb(102 112 133 / 22%);
  }

  .snap-home-intermediary-toggle::before {
    right: 0;
  }

  .snap-home-intermediary-toggle::after {
    left: 0;
  }

  .snap-home-intermediary-panel {
    max-height: 180px;
    font-size: 12px;
  }

  .snap-home-selection-side-chat {
    display: none;
  }

  .snap-home-channel-list {
    direction: rtl;
    scrollbar-gutter: auto;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
  }

  .snap-home-channel {
    min-height: 78px;
    padding: 0 10px;
    grid-template-columns: minmax(0, 1fr) 34px;
    touch-action: pan-y;
    transition: transform 0.16s ease, background 0.16s ease;
  }

  .snap-home-channel.mobile-swiping {
    transform: translateX(var(--snap-mobile-swipe-x, 0));
    transition: none;
    background: #eef5ff;
  }

  .snap-home-channel.mobile-swipe-ready {
    background: #dbeafe;
  }

  .snap-home-channel-select {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 7px 0;
  }

  .snap-home-avatar {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

  .snap-home-channel-name {
    font-size: 17px;
    font-weight: 800;
  }

  .snap-home-channel-preview {
    -webkit-line-clamp: 1;
    font-size: 14px;
  }

  .snap-home-channel-time {
    font-size: 12px;
  }

  .snap-home-channel-actions {
    opacity: 1;
  }

  .snap-home-channel-action {
    width: 32px;
    height: 32px;
  }

  .snap-home-composer {
    padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0));
    background: rgb(248 250 252 / 96%);
    backdrop-filter: blur(14px);
  }

  .snap-home-pending {
    width: calc(100% - 10px);
    margin-bottom: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .snap-home-composer-row,
  .snap-home-composer-row.has-hidden-restore {
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    direction: ltr;
    gap: 7px;
    padding: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .snap-home-composer-row.has-hidden-restore {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .snap-home-attach-wrap {
    width: 42px;
    height: 42px;
  }

  .snap-home-composer-button {
    width: 42px;
    height: 42px;
  }

  .snap-home-composer-row.mobile-turn-active .snap-home-attach-wrap {
    display: none;
  }

  .snap-home-composer-row.mobile-turn-active {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .snap-home-composer-row.mobile-turn-active.has-hidden-restore {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .snap-home-mobile-composer-button {
    display: inline-grid;
    background:
      linear-gradient(var(--snap-home-accent), var(--snap-home-accent)) padding-box,
      linear-gradient(var(--snap-home-accent), var(--snap-home-accent)) border-box;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgb(37 99 235 / 24%);
  }

  .snap-home-mobile-composer-button[hidden] {
    display: none;
  }

  #mobileMicButton.recording,
  #mobileSendButton.turn-stop {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 4px 12px rgb(220 38 38 / 24%);
  }

  .snap-home-composer textarea {
    min-height: 42px;
    max-height: 118px;
    border-radius: 22px;
    padding: 11px 14px;
    font-size: 15px;
    direction: rtl;
    text-align: right;
    box-shadow: inset 0 1px 2px rgb(15 23 42 / 8%);
  }

  #restoreHiddenButton {
    display: none;
  }

  .snap-home-attach-menu {
    display: none;
  }

  .snap-home-mobile-sheet-backdrop {
    position: fixed;
    z-index: 210;
    inset: 0;
    display: grid;
    align-items: end;
    background: rgb(15 23 42 / 16%);
  }

  .snap-home-mobile-sheet-backdrop[hidden] {
    display: none;
  }

  .snap-home-mobile-sheet {
    width: 100%;
    min-height: 250px;
    padding: 10px 18px calc(28px + env(safe-area-inset-bottom, 0));
    border-radius: 28px 28px 0 0;
    background: #e5e7eb;
    box-shadow: 0 -22px 54px rgb(15 23 42 / 18%);
    direction: rtl;
  }

  .snap-home-mobile-sheet.compact {
    min-height: 0;
    background: #fff;
  }

  .snap-home-mobile-sheet-handle {
    width: 44px;
    height: 5px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: rgb(100 116 139 / 45%);
  }

  .snap-home-mobile-sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 16px;
  }

  .snap-home-mobile-sheet-item {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .snap-home-mobile-sheet-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--snap-home-accent);
    font-size: 28px;
    box-shadow: 0 10px 24px rgb(15 23 42 / 9%);
  }

  .snap-home-mobile-sheet-icon.camera {
    color: #334155;
  }

  .snap-home-mobile-sheet-icon.document {
    color: #0ea5e9;
  }

  .snap-home-mobile-sheet-icon.voice {
    color: #1d4ed8;
  }

  .snap-home-mobile-action-list {
    display: grid;
    gap: 8px;
  }

  .snap-home-mobile-action-list button {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--snap-home-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    text-align: start;
    padding: 0 14px;
    cursor: pointer;
  }

  .snap-home-mobile-action-list button.danger {
    color: #b91c1c;
    background: #fff1f2;
  }

  .snap-home.mobile-chat-dragging .snap-home-chat {
    transform: translateX(var(--snap-mobile-chat-drag-x, 0));
    transition: none;
  }

  .snap-home-scroll-bottom {
    left: 12px;
    bottom: calc(var(--snap-home-composer-space, 98px) + env(safe-area-inset-bottom, 0) + 8px);
  }

  .snap-home-toast {
    bottom: calc(var(--snap-home-composer-space, 98px) + env(safe-area-inset-bottom, 0) + 12px);
  }

  .snap-home-mobile-sheet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .snap-home-mobile-sheet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .snap-home-mobile-sheet-icon {
    width: 60px;
    height: 60px;
  }
}
