@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --background: var(--identity-paper);
  --foreground: var(--identity-ink);
  --primary: var(--identity-jade);
  --primary-foreground: #fff;
  --muted: var(--identity-soft);
  --muted-foreground: var(--identity-secondary);
  --border: var(--identity-border);
  --sidebar: var(--identity-rail);
  --radius: 10px;
  font-family: Geist, "Segoe UI", sans-serif;
  color: var(--foreground);
  background: var(--background);
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button,
input,
textarea,
select {
  outline: none;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
button {
  border: 0;
  background: transparent;
}
svg {
  flex-shrink: 0;
}
a {
  color: var(--primary);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted-foreground);
}
small {
  font-size: 12px;
}
input,
textarea,
select {
  background: var(--background);
  color: inherit;
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
label {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
input[type="checkbox"] {
  accent-color: var(--primary);
}
input[type="range"] {
  padding: 0;
  accent-color: var(--primary);
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #8884;
  border-radius: 20px;
}
.boot {
  height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  color: #777;
}
.brand-symbol {
  font-size: 40px;
  color: var(--primary);
}
.btn {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
.btn:hover {
  background: var(--muted);
}
.btn.primary {
  background: var(--action);
  color: var(--action-foreground);
  border-color: var(--action);
  box-shadow: 0 1px 2px #00000012;
}
.btn.primary:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}
.btn.danger {
  color: #c33;
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.icon-btn:hover {
  background: var(--muted);
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: grid;
  gap: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--muted);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted-foreground);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a173;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
kbd {
  font-family: inherit;
  font-size: 10px;
  white-space: nowrap;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 5px;
  color: var(--muted-foreground);
}
.shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 216px 1fr;
  overflow: hidden;
}
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 26px 14px 14px;
}
.brand {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.9px;
  padding: 0 12px;
  gap: 9px;
  margin-bottom: 36px;
  -webkit-app-region: drag;
}
.brand svg {
  color: var(--primary);
}
.nav-label {
  font-size: 10px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 0 12px;
  margin: 18px 0 8px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  border-radius: 10px;
  font-size: 13px;
  margin: 2px 0;
  color: var(--muted-foreground);
}
.nav:hover {
  background: var(--muted);
}
.nav.selected {
  background: var(--selected);
  color: var(--selected-foreground);
  font-weight: 550;
}
.nav svg {
  width: 17px;
}
.sidebar .spacer {
  flex: 1;
}
.user-card {
  border-top: 1px solid var(--border);
  padding: 17px 8px 3px;
  margin-top: 15px;
  gap: 10px;
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--selected);
  color: var(--selected-foreground);
  font-weight: 600;
  font-size: 11px;
}
.workspace {
  min-width: 0;
  overflow: auto;
  background: var(--background);
}
.titlebar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  border-bottom: 1px solid var(--border);
  -webkit-app-region: drag;
}
.titlebar small {
  font-size: 11px;
}
.window-controls {
  -webkit-app-region: no-drag;
}
.window-controls .icon-btn {
  width: 35px;
  height: 26px;
}
.window-controls .icon-btn:last-child:hover {
  background: #e85454;
  color: white;
}
.content {
  max-width: 940px;
  margin: 0 auto;
  padding: 38px 42px 45px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 9px;
}
.subtitle {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 9px;
  max-width: 650px;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}
.mode-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  background: var(--background);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.mode-card:hover {
  border-color: #67a8c9;
  transform: translateY(-2px);
}
.mode-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf4f9;
  color: #1681b1;
  margin-bottom: 28px;
}
.mode-card.technical .mode-icon {
  background: #eeeef1;
  color: #494853;
}
.mode-card .subtitle {
  font-size: 12px;
  min-height: 48px;
}
.mode-card .card-bottom {
  margin-top: 28px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 550;
}
.mode-card .mode-tag {
  position: absolute;
  top: 24px;
  right: 21px;
  font-size: 10px;
  background: var(--muted);
  color: var(--muted-foreground);
  border-radius: 5px;
  padding: 4px 6px;
}
.onboarding-strip {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 32px;
}
.strip-icon {
  color: var(--primary);
  background: #edf5f8;
  padding: 10px;
  border-radius: 8px;
  display: flex;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head .btn {
  height: 30px;
  border: 0;
  padding: 0 5px;
  color: var(--muted-foreground);
  font-size: 12px;
}
.session-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.session-row {
  display: flex;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.session-row:last-child {
  border-bottom: 0;
}
.session-icon {
  background: var(--muted);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #71717a;
}
.session-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.session-row small {
  font-size: 11px;
}
.session-row .actions {
  opacity: 0;
  transition: opacity 0.1s;
}
.session-row:hover .actions,
.session-row:focus-within .actions {
  opacity: 1;
}
.empty {
  padding: 38px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.7;
}
.empty svg {
  margin-bottom: 14px;
  opacity: 0.5;
}
.search {
  position: relative;
  margin: 24px 0;
}
.search input {
  width: 100%;
  padding-left: 36px;
}
.search svg {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #999;
}
.settings-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
}
.settings-nav .nav {
  font-size: 12px;
  padding: 10px;
}
.settings-body .group {
  margin-bottom: 28px;
}
.settings-body h2 {
  margin-bottom: 6px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row p {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
}
.setting-row small {
  display: block;
  line-height: 1.5;
  max-width: 350px;
}
.toggle {
  width: 34px;
  height: 20px;
  background: #c4c6ca;
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0002;
}
.toggle.on {
  background: var(--primary);
}
.toggle.on:after {
  left: 17px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field textarea,
.field select {
  width: 100%;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.document {
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 9px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.document p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-top: 7px;
  white-space: pre-wrap;
  max-height: 48px;
  overflow: hidden;
}
.prompt-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.prompt-row p {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 5px;
}
.notice {
  background: #edf5f8;
  border: 1px solid #deedf4;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #427489;
  margin: 16px 0;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.help-card {
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 9px;
}
.help-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 9px 0;
}
.read-transcript {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
}
body.overlay,
body.control {
  background: transparent;
  color: #f0f1f4;
  color-scheme: dark;
  --background: #202127;
  --muted: #ffffff0b;
  --border: #ffffff14;
  --muted-foreground: #9699a5;
  --primary: var(--identity-mint);
}
.overlay-shell {
  height: 100vh;
  padding: 6px;
  background: transparent;
}
.assistant {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgb(20 29 24 / var(--surface-alpha, 1));
  border: 1px solid #749c803d;
  box-shadow: 0 6px 20px #0003;
}
.overlay-top {
  height: 47px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  -webkit-app-region: drag;
  user-select: none;
}
.overlay-top button,
.overlay-top select,
.overlay-top a {
  -webkit-app-region: no-drag;
}
.overlay-top .wordmark {
  font-weight: 600;
  letter-spacing: -0.45px;
  font-size: 13px;
}
.overlay-top select {
  font-size: 11px;
  padding: 4px 7px;
  background: #ffffff08;
  border: 1px solid #ffffff0c;
  border-radius: 6px;
  width: 145px;
}
.overlay-top .icon-btn {
  width: 25px;
  height: 26px;
  color: #9296a3;
}
.overlay-top .protected {
  color: var(--identity-mint);
}
.live-status {
  padding: 0 15px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #a8adba;
}
.live-status .dot {
  background: #55c8a2;
  box-shadow: none;
}
.live-status kbd {
  font-size: 9px;
  border-color: #ffffff1a;
}
.live-status .btn {
  height: 25px;
  font-size: 10px;
  padding: 0 8px;
  background: #ffffff05;
  border-color: #ffffff14;
  color: #b8bdc7;
}
.overlay-tabs {
  display: flex;
  border-bottom: 1px solid #ffffff0c;
  padding: 0 15px;
  gap: 20px;
}
.overlay-tab {
  padding: 9px 0;
  color: #969aa7;
  font-size: 11px;
  position: relative;
}
.overlay-tab.selected {
  color: #e9ecf3;
}
.overlay-tab.selected:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--identity-mint);
}
.overlay-tab span {
  margin-left: 4px;
  font-size: 9px;
  color: #8a909f;
}
.answer-area {
  flex: 1;
  overflow: auto;
  padding: 18px;
  position: relative;
}
.answer-welcome {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 17px 25px;
}
.answer-mark {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #224a3526;
  color: #a3dbb9;
  border: 1px solid #7cc49d29;
  margin-bottom: 19px;
}
.answer-welcome h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.answer-welcome > p {
  font-size: 12px;
  color: #9199a7;
  line-height: 1.65;
  margin: 9px 0 21px;
}
.suggestion {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 11px 13px;
  margin: 3px 0;
  width: 100%;
  border-radius: 9px;
  color: #d1d8e2;
  background: #ffffff03;
  border: 1px solid #ffffff09;
  font-size: 12px;
}
.suggestion:hover {
  background: #ffffff0a;
  border-color: #7cc49d38;
}
.suggestion svg {
  color: #939fb2;
}
.suggestion kbd {
  margin-left: auto;
  font-size: 9px;
}
.user-message {
  margin: 0 0 18px 40px;
  padding: 11px 14px;
  background: #ffffff09;
  border: 1px solid #ffffff0b;
  border-radius: 12px 12px 3px 12px;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.65;
  color: #d1d5dd;
}
.response-card {
  margin: 0 0 23px;
  position: relative;
}
.response-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a1b0c5;
  font-size: 10px;
  margin-bottom: 10px;
}
.response-meta svg {
  color: #91b4dc;
}
.response-meta .icon-btn {
  margin-left: auto;
  width: 24px;
  height: 20px;
}
.markdown {
  line-height: 1.75;
  font-size: 12.5px;
  color: #e0e3eb;
  overflow-wrap: anywhere;
}
.markdown p {
  margin: 0 0 12px;
}
.markdown h1,
.markdown h2,
.markdown h3 {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
  margin: 19px 0 10px;
}
.markdown h1:first-child,
.markdown h2:first-child,
.markdown h3:first-child {
  margin-top: 0;
}
.markdown ul,
.markdown ol {
  padding-left: 21px;
}
.markdown li {
  margin: 5px 0;
}
.markdown pre {
  position: relative;
  border: 1px solid #ffffff12;
  background: #12151b;
  padding: 32px 14px 14px;
  border-radius: 9px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.7;
  color: #bccfe4;
}
.markdown pre .copy-code {
  position: absolute;
  top: 6px;
  right: 7px;
  background: #ffffff06;
  color: #9ea9b8;
  font-size: 10px;
  border-radius: 4px;
  padding: 3px 7px;
}
.markdown code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  background: #ffffff07;
  padding: 2px 4px;
  border-radius: 3px;
}
.markdown pre code {
  padding: 0;
  background: none;
}
.markdown table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  margin-bottom: 15px;
}
.markdown th,
.markdown td {
  border: 1px solid #ffffff15;
  padding: 7px 9px;
  text-align: left;
}
.markdown a {
  color: #90c9f4;
}
.markdown blockquote {
  margin: 10px 0;
  padding: 4px 12px;
  border-left: 2px solid #517294;
  color: #abb4c3;
}
.markdown hr {
  border: 0;
  border-top: 1px solid #ffffff12;
  margin: 18px 0;
}
.transcript-line {
  padding: 12px 0;
  border-bottom: 1px solid #ffffff08;
}
.transcript-line .who {
  display: flex;
  gap: 9px;
  font-size: 10px;
  color: #9eb5d2;
  margin-bottom: 6px;
}
.transcript-line .who small {
  margin-left: auto;
  font-size: 9px;
}
.transcript-line p {
  font-size: 12px;
  line-height: 1.65;
  color: #cbd2de;
}
.transcript-form {
  margin-top: 16px;
  border-top: 1px solid #ffffff0c;
  padding-top: 12px;
}
.transcript-form textarea {
  width: 100%;
  background: #ffffff05;
  font-size: 11px;
}
.transcript-form .flex {
  margin-top: 8px;
}
.transcript-form select {
  font-size: 11px;
  padding: 5px;
}
.transcript-form .btn {
  margin-left: auto;
  height: 29px;
  font-size: 11px;
}
.context-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.thumb {
  position: relative;
  border: 1px solid #ffffff16;
  border-radius: 8px;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.thumb .icon-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #161a23cc;
  color: white;
}
.thumb small {
  padding: 5px 8px;
  display: block;
  font-size: 9px;
}
.context-note {
  font-size: 11px;
  color: #9da8b9;
  line-height: 1.65;
  margin: 15px 0;
}
.capture-tray {
  display: flex;
  gap: 6px;
  padding: 0 16px 8px;
  overflow: auto;
}
.capture-tray img {
  width: 50px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ffffff20;
}
.quick-actions {
  padding: 4px 16px 9px;
  display: flex;
  gap: 5px;
  overflow: auto;
}
.chip {
  flex-shrink: 0;
  display: flex;
  gap: 5px;
  align-items: center;
  border: 1px solid #ffffff0e;
  background: #ffffff04;
  border-radius: 6px;
  color: #acb6c6;
  font-size: 10px;
  padding: 6px 8px;
}
.chip:hover {
  background: #ffffff0b;
  color: #dde6f4;
}
.composer-wrap {
  padding: 0 13px 12px;
}
.composer {
  padding: 11px 12px 8px;
  background: linear-gradient(#ffffff08, #ffffff04);
  border: 1px solid #ffffff21;
  border-radius: 12px;
  box-shadow: 0 2px 5px #0002;
}
.composer textarea {
  border: 0;
  background: transparent;
  width: 100%;
  color: #e4eaf4;
  resize: none;
  padding: 0;
  font-size: 12px;
  min-height: 38px;
  max-height: 110px;
  line-height: 1.5;
  outline: none;
}
.composer textarea::placeholder {
  color: #798393;
}
.composer-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 6px;
}
.composer-footer .icon-btn {
  color: #8f9fb5;
  width: 25px;
  height: 25px;
}
.composer-footer .icon-btn:hover {
  background: #ffffff0b;
}
.send {
  margin-left: auto;
  color: #edf5ff;
  background: var(--action);
  width: 28px;
  height: 27px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  box-shadow: none;
  border: 1px solid var(--action);
}
.composer-footer small {
  font-size: 9px;
  color: #778397;
  margin-left: 4px;
}
.footer-tip {
  text-align: center;
  color: #626d7e;
  font-size: 9px;
  margin-top: 8px;
}
.thinking {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}
.thinking i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #93b1d6;
  animation: pulse 1.2s infinite;
}
.thinking i:nth-child(2) {
  animation-delay: 0.15s;
}
.thinking i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes pulse {
  50% {
    opacity: 0.2;
    transform: translateY(-2px);
  }
}
.control-shell {
  padding: 3px;
  height: 100vh;
}
.control-pill {
  height: 100%;
  border-radius: 8px;
  border: 1px solid #749c804d;
  background: rgb(20 29 24 / var(--surface-alpha, 1));
  box-shadow: none;
  display: flex;
  align-items: center;
  padding: 5px 9px;
  gap: 7px;
  -webkit-app-region: drag;
}
.control-pill .control-brand {
  margin-right: auto;
  color: #edf4ff;
  padding: 0 6px;
  display: flex;
}
.control-pill button {
  -webkit-app-region: no-drag;
  color: #eef4ff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  border-radius: 8px;
  background: #2b3930;
  box-shadow: none;
  padding: 0 11px;
}
.control-pill button.blue {
  background: var(--action);
  box-shadow: none;
}
.control-pill button.round {
  width: 32px;
  padding: 0;
}
.control-pill button:hover {
  filter: brightness(1.1);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0005;
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  width: 580px;
  max-width: 100%;
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: 14px;
  box-shadow: 0 22px 90px #0004;
  padding: 24px;
}
.overlay .modal {
  --foreground: #e3e8f0;
  --background: #19221c;
  --border: #ffffff18;
  --muted-foreground: #a8b8ad;
  font-size: 12px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.modal h2 {
  font-size: 18px;
}
.modal p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.modal .fields {
  margin-top: 20px;
}
.modal .field label {
  font-size: 12px;
}
.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.source-choice {
  text-align: left;
  border: 1px solid var(--border);
  padding: 7px;
  border-radius: 8px;
  background: var(--muted);
  overflow: hidden;
}
.source-choice:hover {
  border-color: var(--primary);
}
.source-choice img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  background: #0001;
  border-radius: 4px;
}
.source-choice small {
  display: block;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
}
.crop-wrap {
  position: relative;
  margin-top: 12px;
  user-select: none;
  touch-action: none;
}
.crop-wrap img {
  width: 100%;
  display: block;
}
.crop-selection {
  position: absolute;
  border: 2px solid var(--primary);
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  pointer-events: none;
}
.crop-wrap .crop-selection {
  box-shadow: 0 0 0 1px #0009;
}
.shortcut-input {
  font-size: 11px;
  width: 200px;
  padding: 7px 9px;
}
#toast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  border: 1px solid #cbd1db40;
  background: #19251ff5;
  color: #ecf2ed;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 85%;
  text-align: center;
  box-shadow: 0 3px 10px #0002;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dark-panel {
  --background: var(--identity-charcoal);
  --foreground: var(--identity-light);
  --muted: var(--identity-charcoal-soft);
  --muted-foreground: var(--identity-light-secondary);
  --border: var(--identity-dark-border);
  --sidebar: var(--identity-charcoal-rail);
  --primary: var(--identity-mint);
  --primary-foreground: #102a20;
  color-scheme: dark;
}
.dark-panel .nav.selected {
  background: var(--selected);
  color: var(--selected-foreground);
}
.dark-panel .mode-icon,
.dark-panel .strip-icon {
  background: #2b7d5c24;
}
.dark-panel .notice {
  background: #2b7d5c18;
  border-color: #4db58638;
  color: #aad8be;
}
.dark-panel .technical .mode-icon {
  background: #ffffff12;
  color: #c3c1cc;
}
@media (max-width: 900px) {
  .content {
    padding: 30px 25px;
  }
  .shell {
    grid-template-columns: 185px 1fr;
  }
  .sidebar {
    padding-left: 8px;
    padding-right: 8px;
  }
  .settings-layout {
    grid-template-columns: 130px 1fr;
    gap: 20px;
  }
  .mode-card {
    padding: 20px;
  }
  .mode-card .mode-tag {
    right: 16px;
    top: 20px;
  }
}
@media (max-width: 680px) {
  .shell {
    grid-template-columns: 60px 1fr;
  }
  .brand {
    padding: 0 5px;
  }
  .brand span,
  .nav span,
  .sidebar .nav-label,
  .sidebar .user-card {
    display: none;
  }
  .sidebar .nav {
    padding: 12px;
    justify-content: center;
  }
  .content {
    padding: 24px 20px;
  }
  .mode-grid,
  .fields,
  .help-grid {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    display: block;
  }
  .settings-nav {
    display: flex;
    overflow: auto;
    gap: 4px;
    margin-bottom: 25px;
  }
  .settings-nav .nav {
    width: auto;
    white-space: nowrap;
  }
  .onboarding-strip {
    flex-wrap: wrap;
  }
  .mode-icon {
    margin-bottom: 15px;
  }
  .session-row .actions {
    opacity: 1;
  }
  .session-row > .badge {
    display: none;
  }
}

body {
  color: var(--foreground);
}
body.overlay,
body.control {
  color: #f0f1f4;
}

body.browser-preview {
  background: #0e1118;
}
.browser-preview .overlay-shell {
  max-width: 560px;
  height: min(710px, calc(100vh - 24px));
  margin: 12px auto;
  padding: 0;
}
.browser-preview .assistant {
  box-shadow: 0 10px 70px #0005;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
  color: #d4a5ee;
}
.hljs-string,
.hljs-regexp {
  color: #a8cfab;
}
.hljs-number,
.hljs-symbol {
  color: #e1bb94;
}
.hljs-title,
.hljs-title.function_,
.hljs-built_in {
  color: #8ac2ed;
}
.hljs-comment {
  color: #727e90;
  font-style: italic;
}
.hljs-params,
.hljs-variable {
  color: #c6d3e5;
}
.modal .markdown {
  color: inherit;
}
.followup-preview { max-height:240px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; background:var(--muted); border:1px solid var(--border); border-radius:8px; font:inherit; }
.modal:has(#followup-draft),.modal:has(.followup-preview) { max-width:560px; }
.modal:has(.followup-preview) dl { display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px 12px; }
.modal:has(.followup-preview) dd { margin:0;overflow-wrap:anywhere; }
/* Shared assistant interaction timing, independently implemented from the motion inventory. */
.assistant :is(button,textarea,select), .control-pill button {
  transition: background-color 150ms cubic-bezier(.4,0,.2,1),color 150ms cubic-bezier(.4,0,.2,1),border-color 150ms cubic-bezier(.4,0,.2,1),box-shadow 150ms cubic-bezier(.4,0,.2,1),transform 200ms ease-out;
}
.control-pill button:hover { transform:scale(1.03); }
.control-pill button:active,.assistant button:active { transform:scale(.97); }
.assistant .overlay-menu { transform-origin:bottom center; }
.assistant :is(button,textarea,select):focus-visible { outline:0; box-shadow:0 0 0 3px #6cddb480; }
@media(prefers-reduced-motion:reduce) {
  .assistant *, .control-pill *, #dialogs * { animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important; }
  .control-pill button:hover,.control-pill button:active,.assistant button:active { transform:none; }
}
:root {
  --identity-paper: #fbfaf7;
  --identity-ink: #252a27;
  --identity-soft: #f1f2ee;
  --identity-secondary: #626a65;
  --identity-border: #dedfda;
  --identity-rail: #f5f5f1;
  --identity-jade: #126c50;
  --identity-jade-hover: #095c4a;
  --identity-mint: #71cba2;
  --identity-charcoal: #121416;
  --identity-charcoal-soft: #242628;
  --identity-charcoal-rail: #191b1d;
  --identity-light: #ecf2ed;
  --identity-light-secondary: #adb3af;
  --identity-dark-border: #34383a;
  --identity-control-border: #7d8b80;
  --identity-dark-control-border: #737c75;
  --control-border: var(--identity-control-border);
  --action: var(--identity-jade);
  --action-hover: var(--identity-jade-hover);
  --action-foreground: #fff;
  --selected: #deeee3;
  --selected-foreground: #08553f;
  --radius: 10px;
  --radius-panel: 12px;
  --font: Geist, "Segoe UI", sans-serif;
}
.dark-panel,
body.dark,
html.dark,
[data-theme="dark"],
body.overlay,
body.control {
  --control-border: var(--identity-dark-control-border);
  --selected: #203c2f;
  --selected-foreground: #a3edc8;
}
body.overlay,
body.control {
  --background: #19221c;
  --foreground: var(--identity-light);
  --muted: #ffffff0b;
  --muted-foreground: #a8b8ad;
  --border: #ffffff24;
  --primary: var(--identity-mint);
  --primary-foreground: #102a20;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: var(--primary);
}
::selection {
  background: #63cba66b;
  color: inherit;
}
