/* ============================================================
   SQL × Gen AI demo
   Stage is a fixed 1600×900 canvas scaled to fit the window,
   so the layout looks the same on a laptop and a projector.
   ============================================================ */

@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; src: url("assets/fonts/Poppins-Bold.ttf") format("truetype"); }

:root {
  --slate-0: #0f172a;
  --slate-1: #1e293b;
  --slate-2: #253449;
  --ink-light: #f1f5f9;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --gold: #c8a45c;

  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  /* Slide fonts. The Canva decks use Canva Sans, which is licensed for use inside Canva only, so
     the Mac's Avenir Next stands in (no download, works offline). */
  --display: "Avenir Next", system-ui, sans-serif;
  /* Big titles: Poppins semibold, bundled in assets/fonts (SIL Open Font License) so it works offline */
  --title: "Poppins", "Avenir Next", system-ui, sans-serif;
  --nav: "Avenir Next", system-ui, sans-serif;
  --serif: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #0b1120; color: var(--ink-light); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* ---------- Presenter chrome ---------- */
#chrome {
  position: fixed; inset: 0 0 auto 0; height: 48px; z-index: 10;
  display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: var(--slate-0); border-bottom: 1px solid var(--slate-1); font-size: 13px;
}
body.no-chrome #chrome { display: none; }
body[data-mode="slides"] .demo-only { display: none; }
body[data-mode="demo"] .slides-only { display: none; }
.slide-btns, .progress { flex: none; }
.slide-btns { display: flex; gap: 6px; }
.slide-btns button { white-space: nowrap; }
.slide-btns button { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--slate-2); color: #e2e8f0; font-weight: 600; }
.slide-btns button:hover { border-color: var(--accent); color: #fff; }
.slide-btns button:disabled { opacity: .35; cursor: default; border-color: var(--slate-2); }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }

.seg { display: inline-flex; background: var(--slate-1); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { padding: 5px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: background .15s, color .15s; }
.seg button.is-on { background: var(--ink-light); color: var(--slate-0); }
.seg-sm button { padding: 4px 11px; font-size: 12px; }

.uc-pills { display: flex; gap: 6px; }
.uc-pill { display: flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border-radius: 999px; border: 1px solid var(--slate-1); color: var(--muted); }
.uc-pill b { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--slate-1); font-size: 11px; color: #cbd5e1; }
.uc-pill.is-on { border-color: var(--accent); color: var(--ink-light); }
.uc-pill.is-on b { background: var(--accent); color: #fff; }

.hint { flex: 1; text-align: right; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { display: flex; gap: 5px; }
.progress i { width: 6px; height: 6px; border-radius: 50%; background: var(--slate-2); }
.progress i.done { background: #64748b; }
.progress i.cur { background: var(--accent); }
.progress.is-slides { gap: 4px; }
.progress button { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--slate-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.progress button:hover { border-color: var(--accent); color: #fff; }
.progress button.cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.progress button.is-demo { margin: 0 6px; padding: 0 10px; border-style: dashed; }
.uc-pill-slides { padding: 4px 12px; }
.icon-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--slate-2); color: var(--muted); font-weight: 600; }

#help { position: fixed; inset: 0; z-index: 20; background: rgba(2,6,23,.6); display: grid; place-items: center; }
#help[hidden] { display: none; }
.help-card { width: 460px; background: var(--slate-0); border: 1px solid var(--slate-2); border-radius: 12px; padding: 24px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.help-card h3 { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.help-card dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0; font-size: 14px; }
.help-card dt { font-family: var(--mono); font-size: 12px; color: var(--ink-light); white-space: nowrap; }
.help-card dd { margin: 0; color: #cbd5e1; }
.help-card p { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Stage ---------- */
#viewport { position: fixed; inset: 48px 0 0 0; }
body.no-chrome #viewport { top: 0; }
#stage {
  position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px;
  transform-origin: center; overflow: hidden; border-radius: 6px;
  background: var(--slate-0); box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
#slides, #demo { position: absolute; inset: 0; }
body[data-mode="slides"] #demo, body[data-mode="demo"] #slides { visibility: hidden; }

/* ---------- Slides ----------
   Michael's user-group look: white page, navy capitals, a cyan-to-blue
   title pill top left, Home · About me · talk tabs top right, one orange
   label at most per slide. Grey is a step darker than the Canva decks so
   it holds up on a projector or a shared screen. */
#slides { background: #fff; }
.slide {
  --navy: #0c2d5e; --sky: #5ad6e4; --blue: #1466c8; --deep: #0a47a8; --orange: #e8521f; --grey: #7d8796;
  position: absolute; inset: 0; background: #fff; color: var(--navy); font-family: var(--display);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

.sl-nav {
  position: absolute; top: 38px; right: 36px; height: 68px; display: flex; padding: 5px; z-index: 5;
  border: 2px solid transparent; border-radius: 999px; font-family: var(--nav); font-size: 19px; color: #1e3a66;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, var(--sky), var(--blue)) border-box;
}
.sl-nav span { display: flex; align-items: center; padding: 0 36px; border-radius: 999px; }
.sl-nav span.is-on { font-weight: 700; color: var(--navy); background: linear-gradient(90deg, #dcf5f9, #bcd5f4); }
.sl-banner {
  position: absolute; top: 18px; left: 0; height: 104px; min-width: 940px; padding: 0 90px 0 74px; z-index: 5;
  display: flex; align-items: center; border-radius: 0 999px 999px 0; color: #fff; font-size: 60px; font-family: var(--title); font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--sky), var(--blue) 62%, var(--deep));
}
.sl-label { font-size: 36px; font-family: var(--title); font-weight: 600; letter-spacing: -.01em; color: var(--orange); }
.sl-note { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; white-space: nowrap; font-size: 22px; font-weight: 500; color: #4b5563; }
.sl-nessie { position: absolute; right: 36px; bottom: 66px; width: 200px; color: var(--blue); opacity: .2; pointer-events: none; }
.sl-foot { position: absolute; right: 80px; bottom: 44px; font-size: 25px; font-weight: 500; color: var(--grey); }

/* Big capitals: solid navy, outlined wherever a gradient pill runs behind them */
.mx { position: absolute; left: 0; right: 0; font-size: var(--mx, 150px); font-family: var(--title); font-weight: 600; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.mx-line { position: relative; height: 1.12em; display: flex; align-items: center; justify-content: var(--mx-justify, flex-start); padding: 0 var(--mx-right, 0) 0 var(--mx-left, 130px); }
.mx-solid { position: relative; z-index: 1; white-space: nowrap; }
.mx-outline {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: var(--mx-justify, flex-start);
  padding: 0 var(--mx-right, 0) 0 var(--mx-left, 130px); white-space: nowrap;
  color: transparent; -webkit-text-stroke: var(--mx-stroke, 2.5px) var(--navy);
}
.mx-pill { position: absolute; top: .08em; bottom: .04em; z-index: 2; border-radius: 999px; background: linear-gradient(90deg, var(--sky), var(--blue) 70%, var(--deep)); }
.mx-pill.from-left { border-radius: 0 999px 999px 0; background: linear-gradient(90deg, var(--deep), var(--blue) 30%, var(--sky)); }
.mx-pill.to-right { border-radius: 999px 0 0 999px; }

/* Cover */
.cv-by { position: absolute; top: 150px; left: 130px; font-size: 25px; font-weight: 500; }
.cv-by b { display: block; font-size: 28px; font-family: var(--title); font-weight: 600; letter-spacing: -.01em; }
.cv-title { top: 236px; font-weight: 700; }   /* bold on the cover only */
.cv-rule { position: absolute; top: 648px; left: 150px; right: 90px; height: 2px; background: linear-gradient(90deg, var(--navy), #9cc0ec); }
.cv-sub { position: absolute; top: 668px; right: 90px; font-size: 54px; font-weight: 500; }
.cv-event { position: absolute; top: 748px; right: 90px; font-size: 26px; font-weight: 500; color: var(--grey); }

/* About me */
.ab-band { position: absolute; left: 0; top: 335px; width: 430px; height: 300px; background: linear-gradient(90deg, var(--deep), var(--blue) 45%, var(--sky)); }
.ab-photo { position: absolute; left: 135px; top: 215px; width: 540px; height: 540px; border-radius: 50%; overflow: hidden; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-name { --mx: 84px; --mx-justify: flex-end; --mx-left: 0; --mx-right: 90px; --mx-stroke: 2px; top: 166px; }
.ab-text { position: absolute; right: 90px; top: 286px; width: 820px; text-align: right; }
.ab-title { font-size: 50px; font-family: var(--title); font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.ab-role { font-size: 31px; font-weight: 500; line-height: 1.4; }
.ab-fact { margin-top: 26px; font-size: 27px; font-weight: 500; color: var(--grey); }
.ab-fact strong { color: var(--orange); }
.sl-qr { position: absolute; right: 120px; bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sl-qr-box { width: 190px; height: 190px; display: grid; place-items: center; border: 2px dashed #c3cbd6; border-radius: 10px; color: #a3adbb; font-size: 28px; font-weight: 700; }
.sl-qr-box.has-img { border: 0; }
.sl-qr-box img { width: 100%; height: 100%; }
.sl-qr b { display: flex; align-items: center; gap: 10px; font-size: 24px; font-family: var(--title); font-weight: 600; letter-spacing: -.01em; }
.sl-qr-icon { width: 1.2em; height: 1.2em; flex: none; }
.sl-qr.is-big { right: 90px; bottom: 40px; gap: 14px; }
.sl-qr.is-big .sl-qr-box { width: 270px; height: 270px; }
.sl-qr.is-big b { font-size: 30px; }

/* Statements: a picture or code on the left, three navy headings with grey lines on the right */
.st-side { position: absolute; left: 70px; top: 170px; bottom: 70px; width: 720px; display: flex; align-items: center; justify-content: center; }
.sl-pic { margin: 0; }
.sl-pic img { display: block; max-width: 720px; max-height: 590px; border-radius: 10px; box-shadow: 0 14px 44px rgba(15,23,42,.18); }
.sl-pic figcaption { margin-top: 16px; text-align: center; font-size: 22px; font-weight: 500; color: var(--grey); }
.sl-code { width: 720px; border-radius: 12px; overflow: hidden; background: #1e1f22; box-shadow: 0 14px 44px rgba(15,23,42,.25); }
.sl-code-bar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #2b2d30; font-family: var(--mono); font-size: 14px; color: #9da3ad; }
.sl-code-bar .e-lights { position: static; }
.sl-code { position: relative; }
.sl-code::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #1e1f22); }
.sl-code pre { margin: 0; padding: 18px 22px; max-height: 540px; overflow: hidden; font-family: var(--mono); font-size: 15px; line-height: 1.55; white-space: pre; }
.sl-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.sl-brand b { font-size: 220px; font-family: var(--title); font-weight: 600; letter-spacing: -.01em; line-height: 1; background: linear-gradient(90deg, var(--sky), var(--blue) 60%, var(--deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-brand span { font-size: 38px; font-weight: 700; }
.sl-brand span strong { color: var(--blue); font-weight: 800; }
.sl-brand em { font-size: 34px; font-weight: 600; color: var(--orange); }
.sl-brand.has-map { flex-direction: row; align-items: center; gap: 30px; text-align: left; margin-top: -30px; }
.sl-map { height: 440px; width: auto; flex: none; }
.sl-brand-text { display: flex; flex-direction: column; gap: 8px; }
.sl-brand.has-map b { font-size: 118px; }
.sl-brand.has-map span { font-size: 24px; white-space: nowrap; }
.sl-brand.has-map em { font-size: 32px; font-weight: 700; margin-top: 2px; }
.sl-brand.has-map small { font-size: 18px; white-space: nowrap; }
.sl-brand small { margin-top: 18px; font-size: 24px; font-weight: 500; color: var(--grey); }
.st-list { position: absolute; left: 860px; right: 80px; top: 180px; bottom: 110px; display: flex; flex-direction: column; justify-content: center; gap: 46px; }
.st-item { display: block; text-align: left; color: inherit; }
.st-item b { display: block; font-size: 62px; font-family: var(--title); font-weight: 600; letter-spacing: -.01em; line-height: 1.05; }
.st-item span { display: block; margin-top: 10px; font-size: 30px; font-weight: 500; color: var(--grey); }
.st-item.is-link b { transition: color .2s; }
.st-item.is-link:hover b { color: var(--blue); }
.st-list .sl-label { margin-bottom: -26px; }
.slide.is-flip .st-side { left: auto; right: 70px; }
.slide.is-flip .st-list { left: 110px; right: 830px; }
.st-list.is-dense { top: 160px; bottom: 120px; gap: 34px; }
.st-list.is-dense .st-item b { font-size: 56px; }
.st-list.is-dense .st-item span { font-size: 28px; line-height: 1.3; }

/* Statement: two lines of big capitals and the rules under them */
.sm-wrap { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-38%); }
.sm-title { --mx: 136px; --mx-justify: flex-end; --mx-left: 0; --mx-right: 90px; position: relative; }
.sm-label { margin: 46px 90px 0 0; text-align: right; }
.sm-sub { margin: 48px 90px 0 0; text-align: right; font-size: 46px; font-weight: 500; color: var(--grey); }
.sm-rules { margin: 40px 90px 0 0; padding: 0; list-style: none; text-align: right; }
.sm-rules li { font-size: 31px; font-weight: 500; color: var(--grey); line-height: 1.55; }
.sm-rules strong { color: var(--navy); }

/* Thanks */
.sl-thanks .sl-qr { left: 200px; right: auto; top: 250px; bottom: auto; gap: 18px; }
.sl-thanks .sl-qr-box { width: 380px; height: 380px; }
.th-next { position: absolute; left: 820px; right: 90px; top: 340px; display: flex; flex-direction: column; gap: 10px; }
.th-next b { font-size: 120px; font-family: var(--title); font-weight: 600; letter-spacing: -.01em; line-height: 1.05; }
.th-next span { font-size: 36px; font-weight: 500; color: var(--grey); line-height: 1.3; }
.th-next.is-center { left: 0; right: 0; top: 0; bottom: 0; align-items: center; justify-content: center; text-align: center; }
.th-next.is-center b { font-size: 160px; }
.th-pair { position: absolute; left: 0; right: 180px; top: 130px; bottom: 60px; display: flex; align-items: center; justify-content: center; gap: 140px; }
.th-photo { width: 470px; height: 470px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 10px #fff, 0 0 0 16px var(--blue); }
.th-photo img { width: 100%; height: 100%; object-fit: cover; }
.sl-thanks .th-pair .sl-qr { position: static; gap: 18px; }
.sl-thanks .th-pair .sl-qr-box { width: 340px; height: 340px; }
.sl-thanks .th-pair .sl-qr b { font-size: 34px; }
.th-brand { position: absolute; right: 60px; bottom: 50px; transform: scale(.36); transform-origin: bottom right; }
.th-brand .sl-brand.has-map { margin-top: 0; }

/* ---------- Demo screens ---------- */
.screen {
  position: absolute; inset: 0; opacity: 0; transform: translateX(28px); pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.screen.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* Presenter cue: a soft pulse on whatever to click next. C toggles it. */
.cue { animation: cue 1.7s ease-in-out infinite; }
.e-editor.cue { animation: cue-inset 1.7s ease-in-out infinite; }
body.no-cues .cue { animation: none; }
@keyframes cue { 0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); } 50% { box-shadow: 0 0 0 7px rgba(59,130,246,.3); } }
@keyframes cue-inset { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(59,130,246,0); } 50% { box-shadow: inset 0 0 0 3px rgba(59,130,246,.45); } }

@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* SQL syntax colors */
.code-dark { color: #dfe1e5; }
.code-dark .k { color: #6aa7ff; font-weight: 600; }
.code-dark .f { color: #e5c07b; }
.code-dark .s { color: #98c379; }
.code-dark .n { color: #d19a66; }
.code-dark .c { color: #848b98; font-style: italic; }
.code-light { color: #2b2a27; }
.code-light .k { color: #2759c2; font-weight: 600; }
.code-light .f { color: #95600a; }
.code-light .s { color: #2f7d32; }
.code-light .n { color: #b45309; }
.code-light .c { color: #8a897f; font-style: italic; }

/* ---------- Claude chat ---------- */
.screen-chat { display: flex; background: #faf9f5; color: #1f1e1d; font-family: var(--sans); }
.spark { display: block; }

.c-rail { width: 64px; flex: none; border-right: 1px solid #ebe9e0; background: #f5f4ee; display: flex; flex-direction: column; align-items: center; padding: 18px 0; gap: 12px; }
.c-rail > .spark { width: 26px; height: 26px; color: #d97757; margin-bottom: 10px; }
.c-rail-btn { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #73726c; }
.c-rail-btn svg { width: 20px; height: 20px; }
.c-rail-spacer { flex: 1; }
.c-avatar { width: 34px; height: 34px; border-radius: 50%; background: #3d3d3a; color: #faf9f5; font-size: 12px; font-weight: 600; display: grid; place-items: center; }

.c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-header { height: 58px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #3d3d3a; border-bottom: 1px solid #efede5; }
.c-project { display: inline-flex; align-items: center; gap: 7px; color: #73726c; }
.c-project svg { width: 15px; height: 15px; }
.c-sep { margin: 0 10px; color: #b9b7ae; }
.c-main.is-empty { justify-content: center; padding-bottom: 80px; }
.c-main.is-empty .c-header, .c-main.is-empty .c-thread { display: none; }
.c-greeting { display: none; align-items: center; justify-content: center; gap: 18px; font-family: var(--serif); font-size: 48px; color: #3d3d3a; margin-bottom: 38px; }
.c-greeting .spark { width: 42px; height: 42px; color: #d97757; }
.c-main.is-empty .c-greeting { display: flex; }

.c-thread { flex: 1; overflow-y: auto; }
.c-thread-inner { max-width: 940px; margin: 0 auto; padding: 28px 28px 36px; display: flex; flex-direction: column; gap: 30px; }

.c-composer-wrap { flex: none; padding: 0 28px 26px; }
.c-composer {
  max-width: 940px; margin: 0 auto; background: #fff; border: 1px solid #e3e1d8; border-radius: 20px;
  box-shadow: 0 4px 20px rgba(31,30,29,.06); padding: 18px 18px 12px; cursor: text;
  transition: border-color .2s;
}
.c-composer.is-focused { border-color: #cfccc0; }
.c-input { font-size: 20px; line-height: 1.5; min-height: 60px; padding: 2px 4px; }
.c-placeholder { color: #9b9a93; }
.c-placeholder[hidden] { display: none; }
.c-caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -.2em; background: #1f1e1d; margin-left: 1px; opacity: 0; }
.c-composer.is-focused .c-caret { opacity: 1; animation: blink 1s steps(1) infinite; }
.c-attachments { display: flex; gap: 10px; }
.c-attachments:not(:empty) { margin: 8px 0 2px; }
.c-chip { display: flex; align-items: center; gap: 10px; border: 1px solid #e3e1d8; border-radius: 12px; padding: 10px 16px 10px 12px; background: #faf9f5; animation: pop .3s ease; }
.c-chip svg { width: 22px; height: 22px; color: #73726c; }
.c-chip b { display: block; font-size: 14px; font-weight: 600; }
.c-chip span { font-size: 12px; color: #73726c; }
.c-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.c-tool { width: 34px; height: 34px; border: 1px solid #e3e1d8; border-radius: 10px; display: grid; place-items: center; color: #73726c; }
.c-tool svg { width: 18px; height: 18px; }
.c-flex { flex: 1; }
.c-sources { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 6px 12px; border-radius: 999px; background: #f0eee6; font-size: 13px; color: #5e5d59; }
.c-sources svg { width: 15px; height: 15px; color: #d97757; }
.c-sources b { font-weight: 600; color: #3d3d3a; }
.c-sources span + span::before { content: "·"; margin-right: 8px; color: #b9b7ae; }
.c-model { font-size: 14px; color: #73726c; display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.c-model svg { width: 14px; height: 14px; }
.c-send { width: 38px; height: 38px; border-radius: 10px; background: #e9c7b8; color: #fff; display: grid; place-items: center; transition: background .2s, transform .1s; }
.c-send.is-ready { background: #d97757; }
.c-send.is-pressed { transform: scale(.92); }
.c-send svg { width: 20px; height: 20px; }

.c-msg-user { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; animation: fadein .3s ease; }
.c-bubble { background: #f0eee6; border-radius: 16px; padding: 14px 20px; font-size: 19px; line-height: 1.5; max-width: 740px; }
.c-attach { width: 660px; border: 1px solid #e3e1d8; border-radius: 14px; background: #fff; overflow: hidden; cursor: pointer; }
.c-attach-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid #efede5; color: #3d3d3a; }
.c-attach-head svg { width: 18px; height: 18px; color: #73726c; }
.c-attach-head span { margin-left: auto; color: #8a897f; font-size: 12px; }
.c-attach pre {
  position: relative; margin: 0; padding: 12px 16px; max-height: 150px; overflow: hidden; font-family: var(--mono); font-size: 13px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
.c-attach.is-open pre { max-height: none; -webkit-mask-image: none; mask-image: none; }
.c-attach + .c-attach { margin-top: -2px; }
.c-attach .ln { display: block; margin: 0 -16px; padding: 0 16px; }
.c-attach.kind-email pre { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: #3d3d3a; }
.c-attach .ln.is-marked { background: rgba(217,119,87,.16); box-shadow: inset 3px 0 0 #d97757; }

.c-msg-ai { display: flex; gap: 18px; animation: fadein .3s ease; }
.c-ai-spark { flex: none; padding-top: 2px; }
.c-ai-spark .spark { width: 28px; height: 28px; color: #d97757; }
.c-msg-ai.is-working .c-ai-spark .spark { animation: spin 2.4s linear infinite; }
.c-ai-body { flex: 1; min-width: 0; font-family: var(--serif); font-size: 20px; line-height: 1.6; }

.c-thinking { font-family: var(--sans); font-size: 15px; color: #73726c; margin-bottom: 14px; }
.c-think-head { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.c-think-head svg { width: 14px; height: 14px; transition: transform .2s; }
.c-thinking.is-collapsed .c-think-head svg { transform: rotate(-90deg); }
.c-thinking:not(.is-done) .c-think-label { background: linear-gradient(90deg, #73726c 30%, #c9c6ba 50%, #73726c 70%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.c-think-steps { list-style: none; margin: 10px 0 0; padding: 0 0 0 16px; border-left: 2px solid #ebe9e0; display: grid; gap: 8px; }
.c-thinking.is-collapsed .c-think-steps { display: none; }
.c-think-steps li { display: flex; align-items: center; gap: 10px; animation: fadein .3s ease; }
.c-think-steps .dot { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid #ddd9cc; border-top-color: #d97757; animation: spin .8s linear infinite; }
.c-think-steps li.done .dot { border: 0; animation: none; background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788c5d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

.c-response p { margin: 0 0 14px; }
.c-response h4 { font-family: var(--sans); font-size: 17px; font-weight: 650; margin: 22px 0 8px; }
.c-response ul, .c-response ol { margin: 0 0 14px; padding-left: 26px; }
.c-quote { margin: 0 0 16px; padding: 14px 20px; border-left: 3px solid #d97757; background: #f5f4ee; border-radius: 0 10px 10px 0; }
.c-quote p { margin: 0 0 10px; }
.c-quote p:last-child { margin-bottom: 0; }
.c-blank { background: #fbe9d0; color: #8a4b12; border-radius: 4px; padding: 0 5px; font-family: var(--sans); font-size: .88em; font-weight: 600; }
.c-response li { margin: 6px 0; }
.c-response li:not(:has(.on)) { visibility: hidden; }
.c-response :not(pre) > code { font-family: var(--mono); font-size: .8em; background: #f0eee6; border: 1px solid #e3e1d8; border-radius: 5px; padding: 1px 6px; color: #a8452e; }
.c-response :not(pre) > code:not(:has(.on)) { visibility: hidden; }
.w { opacity: 0; transition: opacity .2s ease; }
.w.on { opacity: 1; }

.c-code { margin: 18px 0; border-radius: 12px; background: #1e1f22; }
.c-code-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 8px 18px; background: #2b2d30; border-radius: 12px 12px 0 0; font-family: var(--sans); font-size: 13px; color: #a8adb5;
}
.c-copy { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #c9ccd1; padding: 5px 10px; border-radius: 7px; transition: background .15s; }
.c-copy:hover { background: #393b40; }
.c-copy svg { width: 15px; height: 15px; }
.c-copy.is-copied { color: #7ec699; }
.c-code pre { margin: 0; padding: 16px 20px 18px; font-family: var(--mono); font-size: 14.5px; line-height: 1.55; overflow: auto; max-height: 460px; border-radius: 0 0 12px 12px; }
.c-cites { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; font-family: var(--sans); animation: fadein .3s ease; }
.c-cite { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 11px; border: 1px solid #e3e1d8; border-radius: 10px; background: #fff; }
.c-cite svg { width: 18px; height: 18px; color: #8a897f; flex: none; }
.c-cite b { display: block; font-size: 13.5px; font-weight: 600; color: #3d3d3a; }
.c-cite span { font-size: 12.5px; color: #73726c; }
.c-actions { display: flex; gap: 4px; color: #8a897f; animation: fadein .3s ease; }
.c-actions span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.c-actions svg { width: 17px; height: 17px; }

/* ---------- SQL editor (Coginiti-style) ---------- */
.screen-editor { display: flex; flex-direction: column; background: #1e1f22; color: #dfe1e5; font-family: var(--sans); font-size: 13px; }
.e-titlebar { height: 38px; flex: none; display: flex; align-items: center; justify-content: center; position: relative; background: #2b2d30; border-bottom: 1px solid #393b40; color: #a8adb5; }
.e-lights { position: absolute; left: 14px; display: flex; gap: 8px; }
.e-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.e-lights i:nth-child(2) { background: #febc2e; }
.e-lights i:nth-child(3) { background: #28c840; }

.e-toolbar { height: 50px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #2b2d30; border-bottom: 1px solid #393b40; }
.e-run { display: flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 6px; background: #2a5e37; color: #e6f4ea; font-weight: 600; transition: background .2s, transform .1s; }
.e-run.is-ready { background: #3a8a4f; color: #fff; }
.e-run.is-pressed { transform: scale(.95); }
.e-run svg { width: 13px; height: 13px; }
.e-run-all { background: #2b2d30; border: 1px solid #43454a; color: #c9ccd1; font-weight: 500; }
.e-run-all.is-ready { background: #3a8a4f; border-color: #3a8a4f; color: #fff; font-weight: 600; }
.e-tbtn { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 6px; color: #c9ccd1; border: 1px solid #43454a; }
.e-tbtn svg { width: 14px; height: 14px; }
.e-sep { width: 1px; height: 24px; background: #43454a; margin: 0 4px; }
.e-conn { display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 6px; background: #1e1f22; border: 1px solid #43454a; }
.e-conn-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fb865; }
.e-ctx { color: #8c9099; font-family: var(--mono); font-size: 12px; }
.e-flex { flex: 1; }

.e-body { flex: 1; display: flex; min-height: 0; }
.e-tree { width: 290px; flex: none; background: #2b2d30; border-right: 1px solid #393b40; overflow: auto; padding: 10px 0; transition: width .3s ease; }
.screen-editor.no-tree .e-tree { width: 0; border-right: 0; }
.e-tree-head { padding: 4px 16px 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8c9099; font-weight: 600; }
.e-node { display: flex; align-items: center; gap: 7px; height: 27px; padding-left: calc(12px + var(--d) * 16px); padding-right: 14px; color: #c9ccd1; white-space: nowrap; }
.e-node .tw { width: 10px; flex: none; color: #8c9099; font-size: 9px; }
.e-node svg { width: 14px; height: 14px; color: #8c9099; flex: none; }
.e-node.is-col { color: #9aa0a8; }
.e-node .type { margin-left: auto; color: #6f737a; font-size: 11px; font-family: var(--mono); }

.e-main { flex: 1; min-width: 0; display: grid; grid-template-rows: 36px 1fr 0px; transition: grid-template-rows .45s ease; }
.e-main.has-results { grid-template-rows: 36px 1fr 340px; }
.e-tabs { display: flex; background: #2b2d30; border-bottom: 1px solid #393b40; }
.e-tab { display: flex; align-items: center; gap: 8px; padding: 0 16px; color: #8c9099; border-right: 1px solid #393b40; }
.e-tab svg { width: 14px; height: 14px; }
.e-tab.is-active { background: #1e1f22; color: #dfe1e5; box-shadow: inset 0 2px 0 #3574f0; }
.e-tab i { font-style: normal; color: #6f737a; margin-left: 4px; }

.e-editor { position: relative; overflow: auto; display: grid; grid-template-columns: auto 1fr; align-content: start; font-family: var(--mono); font-size: 16px; line-height: 1.6; cursor: text; min-height: 0; }
.e-gutter { padding: 14px 14px 14px 20px; text-align: right; color: #6f737a; user-select: none; white-space: pre; border-right: 1px solid #2b2d30; }
.e-code { margin: 0; padding: 14px 20px; white-space: pre; min-height: 100%; }
.e-cursor { display: inline-block; width: 2px; height: 1.2em; background: #dfe1e5; vertical-align: -.25em; animation: blink 1s steps(1) infinite; }
.e-cursor[hidden] { display: none; }
.e-editor.is-flash .e-code { animation: paste-flash 1s ease; }

@keyframes paste-flash { from { background: rgba(53,116,240,.28); } to { background: transparent; } }
.e-key {
  position: absolute; top: 18px; right: 24px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.e-key.on { opacity: 1; transform: none; }
.e-key kbd { font-family: var(--sans); font-size: 18px; min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 8px; background: #393b40; border: 1px solid #4e5157; box-shadow: 0 3px 0 #141518; color: #fff; }

.e-results { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-top: 1px solid #393b40; }
.e-rtabs { height: 34px; flex: none; display: flex; align-items: center; padding: 0 10px; background: #2b2d30; border-bottom: 1px solid #393b40; }
.e-rtabs > span { padding: 0 12px; height: 100%; display: flex; align-items: center; color: #8c9099; }
.e-rtabs > span.is-active { color: #dfe1e5; box-shadow: inset 0 -2px 0 #3574f0; }
.e-rtabs > .e-rstatus { margin-left: auto; color: #a8adb5; gap: 6px; }
.e-rstatus .ok { color: #5fb865; }
.e-rbody { flex: 1; overflow: auto; min-height: 0; }
.e-exec { display: flex; align-items: center; gap: 10px; padding: 18px; color: #a8adb5; }
.e-spin { width: 14px; height: 14px; border: 2px solid #43454a; border-top-color: #3574f0; border-radius: 50%; animation: spin .8s linear infinite; }
.e-grid { border-collapse: collapse; font-family: var(--mono); font-size: 14px; width: max-content; min-width: 100%; }
.e-grid th { position: sticky; top: 0; background: #2b2d30; color: #c9ccd1; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-align: left; padding: 8px 14px; border-right: 1px solid #393b40; border-bottom: 1px solid #393b40; }
.e-grid td { padding: 7px 14px; border-right: 1px solid #2b2d30; border-bottom: 1px solid #2b2d30; white-space: nowrap; }
.e-grid tbody tr { animation: fadein .3s ease both; }
.e-grid tbody tr:nth-child(even) td { background: #232427; }
.e-grid .num { text-align: right; }
.e-grid tr.is-bold td:not(.rn) { font-weight: 700; color: #fff; }
.e-grid .rn { color: #6f737a; text-align: right; width: 44px; }
.e-grid td.is-null { color: #6f737a; font-style: italic; }

.e-msgs { padding: 10px 0; font-family: var(--mono); font-size: 14px; }
.e-msg { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 3px 22px 3px 18px; animation: fadein .25s ease both; }
.e-msg .ok { color: #5fb865; }
.e-msg .stmt { color: #dfe1e5; }
.e-msg .rows { color: #a8adb5; text-align: right; }
.e-msg-done { display: block; margin-top: 8px; padding-top: 10px; border-top: 1px solid #2b2d30; color: #a8adb5; font-family: var(--sans); font-size: 13px; }

.e-status { height: 26px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 14px; background: #2b2d30; border-top: 1px solid #393b40; color: #8c9099; font-size: 12px; }

/* ---------- VS Code + Claude Code panel (Demo 3) ---------- */
body[data-agent="1"] #screen-toggle { display: none; }
.screen-vscode { display: flex; flex-direction: column; background: #1e1f22; color: #dfe1e5; font-family: var(--sans); font-size: 13px; }
.v-titlebar { height: 36px; flex: none; display: flex; align-items: center; justify-content: center; position: relative; background: #2b2d30; border-bottom: 1px solid #393b40; color: #a8adb5; }
.v-body { flex: 1; display: flex; min-height: 0; }
.v-flex { flex: 1; }

.v-activity { width: 48px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 6px 0; background: #2b2d30; border-right: 1px solid #393b40; }
.v-activity > span { width: 48px; height: 46px; display: grid; place-items: center; color: #6f737a; }
.v-activity > span.is-on { color: #dfe1e5; box-shadow: inset 2px 0 0 #3574f0; }
.v-activity svg { width: 22px; height: 22px; }
.v-activity .v-act-claude .spark { width: 20px; height: 20px; color: #d97757; }

.v-explorer { width: 220px; flex: none; background: #25262a; border-right: 1px solid #393b40; overflow: auto; }
.v-head { padding: 12px 16px 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8c9099; font-weight: 600; }
.v-ws { padding: 4px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #c9ccd1; }
.v-file { display: flex; align-items: center; gap: 7px; height: 26px; padding-left: calc(20px + var(--d) * 16px); padding-right: 10px; color: #c9ccd1; cursor: pointer; white-space: nowrap; }
.v-file:hover { background: #2e3035; }
.v-file.is-active { background: #2f3a52; }
.v-file.is-folder { color: #a8adb5; cursor: default; padding-left: 12px; }
.v-file svg { width: 14px; height: 14px; flex: none; }
.v-file.sql svg, .v-tab.sql svg { color: #6aa7ff; }
.v-file.md svg, .v-tab.md svg { color: #a8adb5; }
.v-file.sh svg, .v-tab.sh svg { color: #5fb865; }

.v-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v-tabs { height: 36px; flex: none; display: flex; background: #2b2d30; border-bottom: 1px solid #393b40; }
.v-tab { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #8c9099; border-right: 1px solid #393b40; white-space: nowrap; }
.v-tab svg { width: 14px; height: 14px; }
.v-tab.is-active { background: #1e1f22; color: #dfe1e5; box-shadow: inset 0 2px 0 #3574f0; }
.v-tab i { font-style: normal; color: #6f737a; margin-left: 2px; }
.v-badge { font-style: normal; font-size: 11px; color: #e5c07b; }
.v-badge:empty { display: none; }
/* Blank VS Code: no file open yet */
.v-blank { display: none; }
.screen-vscode.is-blank .v-blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans, system-ui); font-size: 13px; color: #6f737a; }
.v-blank div { display: grid; grid-template-columns: 160px 90px; gap: 18px; }
.v-blank div span { text-align: right; }
.v-blank kbd { font: inherit; letter-spacing: .08em; color: #8c9099; }
.screen-vscode.is-blank .v-crumbs,
.screen-vscode.is-blank .v-lang { visibility: hidden; }
.screen-vscode.is-blank .v-chip { display: none; }
.v-crumbs { height: 26px; flex: none; display: flex; align-items: center; padding: 0 18px; color: #8c9099; font-size: 12px; white-space: pre; }
.v-editor { position: relative; flex: 1; overflow: auto; min-height: 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.v-lines { padding: 2px 0 60px; min-width: max-content; }
.v-ln { display: grid; grid-template-columns: 58px 1fr; }
.v-g { text-align: right; padding-right: 18px; color: #6f737a; user-select: none; }
.v-t { white-space: pre; padding-right: 24px; }
.v-ln.is-add { background: rgba(95,184,101,.15); }
.v-ln.is-add .v-g { color: #5fb865; box-shadow: inset 3px 0 0 #5fb865; }
.v-ln.is-del { background: rgba(229,83,75,.16); }
.v-ln.is-del .v-g { box-shadow: inset 3px 0 0 #e5534b; }
.v-ln.is-del .v-t { opacity: .75; }
.v-ln.is-new { animation: v-new 2.6s ease both; }
@keyframes v-new { from { background: rgba(95,184,101,.3); } to { background: transparent; } }

.v-claude { width: 640px; flex: none; display: flex; flex-direction: column; min-height: 0; background: #1a1b1e; border-left: 1px solid #393b40; }
.v-claude-head { height: 40px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid #2b2d30; font-size: 13px; }
.v-claude-head .spark { width: 16px; height: 16px; color: #d97757; }
.v-claude-head b { font-weight: 600; }
.v-hbtn { display: grid; place-items: center; width: 26px; }
.v-hbtn svg { width: 16px; height: 16px; color: #8c9099; }
.v-thread { flex: 1; overflow: auto; min-height: 0; }
.v-thread-inner { padding: 18px 22px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.55; }
.v-empty { margin-top: 210px; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #8c9099; font-size: 17px; }
.v-empty .spark { width: 36px; height: 36px; color: #d97757; }
.v-user { background: #2b2d30; border: 1px solid #393b40; border-radius: 10px; padding: 10px 14px; color: #eef0f3; animation: fadein .3s ease; }

.v-text p { margin: 0; }
.v-text h4 { margin: 4px 0 0; font-size: 15px; font-weight: 650; }
.v-text ul, .v-text ol { margin: 0; padding-left: 22px; }
.v-text li + li { margin-top: 4px; }
.v-text strong { color: #fff; }
.v-text :not(pre) > code { font-family: var(--mono); font-size: .85em; background: #2b2d30; border-radius: 4px; padding: 1px 5px; color: #e5c07b; }

.v-tool { display: grid; grid-template-columns: 12px 1fr; gap: 8px; font-size: 14px; animation: fadein .25s ease; }
.v-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: #5fb865; }
.v-dot.run { background: #8c9099; animation: blink 1s steps(1) infinite; }
.v-tool-main { min-width: 0; }
.v-tool b { font-weight: 650; margin-right: 8px; }
.v-arg { font-family: var(--mono); font-size: 13px; color: #c9ccd1; }
.v-sub { color: #8c9099; font-size: 13px; }
.v-sub::before { content: "⎿  "; color: #6f737a; }
.v-out { margin: 6px 0 0; padding: 8px 12px; border-left: 2px solid #393b40; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; color: #c9ccd1; overflow-x: auto; }
.v-out .hit { color: #e5c07b; background: rgba(229,192,123,.13); }
.v-running { color: #8c9099; }
.v-note { margin-top: 4px; color: #8c9099; font-size: 12px; font-style: italic; }

.v-perm { border: 1px solid #3574f0; border-radius: 10px; padding: 12px 14px; background: #1f2533; font-size: 14px; animation: pop .25s ease; }
.v-perm-title { font-weight: 650; margin-bottom: 8px; }
.v-cmd { margin: 0; padding: 8px 12px; background: #131417; border: 1px solid #2b2d30; border-radius: 6px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; color: #dfe1e5; }
.v-perm-file { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.v-perm-file svg { width: 14px; height: 14px; color: #6aa7ff; }
.v-perm-file .add { color: #5fb865; }
.v-perm-file .del { color: #e5534b; }
.v-perm-desc { margin-top: 8px; color: #a8adb5; font-size: 13px; }
.v-perm-q { margin: 12px 0 8px; }
.v-opts { display: flex; flex-direction: column; gap: 3px; }
.v-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 6px 10px; border-radius: 6px; color: #a8adb5; font-size: 13.5px; }
.v-opt kbd { font-family: var(--mono); font-size: 11px; color: #8c9099; border: 1px solid #43454a; border-radius: 4px; padding: 0 5px; }
.v-opt code { font-family: var(--mono); font-size: 12px; }
.v-perm-yes { background: #2a3b5c; color: #fff; }
.v-perm-yes.is-chosen { background: #3574f0; }

.v-working { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #a8adb5; }
.v-working .spark { width: 14px; height: 14px; color: #d97757; animation: spin 2.4s linear infinite; }

.v-input-wrap { flex: none; padding: 10px 14px 14px; border-top: 1px solid #2b2d30; }
.v-input { border: 1px solid #43454a; border-radius: 10px; background: #232428; transition: border-color .2s; cursor: text; }
.v-input.is-focused { border-color: #3574f0; }
.v-field { min-height: 66px; padding: 12px 14px 4px; font-size: 15px; line-height: 1.5; color: #eef0f3; }
.v-placeholder { color: #6f737a; }
.v-caret { display: none; width: 2px; height: 1.15em; vertical-align: -.2em; background: #dfe1e5; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.v-input.is-focused .v-caret { display: inline-block; }
.v-input-bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px 10px; font-size: 12px; color: #8c9099; }
.v-chip { display: flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid #393b40; border-radius: 6px; color: #c9ccd1; }
.v-chip svg { width: 12px; height: 12px; }
.v-mode { padding: 2px 8px; border-radius: 6px; background: #2b2d30; color: #c9ccd1; }
.v-send { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #393b40; color: #8c9099; transition: background .2s, transform .1s; }
.v-send svg { width: 16px; height: 16px; }
.v-send.is-ready { background: #d97757; color: #fff; }
.v-send.is-pressed { transform: scale(.92); }

.v-status { height: 24px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 14px; background: #2b2d30; border-top: 1px solid #393b40; color: #8c9099; font-size: 12px; }

/* ---------- Attaching a file: Claude's + menu and a macOS open dialog ---------- */
.c-composer { position: relative; }
.c-tool.is-on { background: #f0eee6; color: #1f1e1d; }
.c-menu {
  position: absolute; left: 6px; bottom: calc(100% + 8px); width: 290px; z-index: 5; padding: 6px;
  background: #fff; border: 1px solid #e3e1d8; border-radius: 14px; box-shadow: 0 12px 32px rgba(31,30,29,.14);
  animation: pop .2s ease; cursor: default;
}
.c-menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 15px; color: #3d3d3a; }
.c-menu-item svg { width: 18px; height: 18px; color: #73726c; }
.c-menu-item:not(.c-menu-upload) { color: #9b9a93; }
.c-menu-item:not(.c-menu-upload) svg { color: #b4b2a9; }
.c-menu-upload.is-pressed, .c-menu-upload.cue { background: #f0eee6; }

.f-layer { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(31,30,29,.16); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
/* A Finder window to drag from: no dimming, no dialog buttons, clear of the message box */
.f-layer.is-window { background: none; place-items: start center; padding-top: 50px; pointer-events: none; }
.f-layer.is-window .f-win { height: 400px; pointer-events: auto; }
.f-layer.is-window .f-foot { display: none; }
.f-win {
  width: 940px; height: 560px; display: flex; overflow: hidden; border-radius: 12px; background: #fff; color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, var(--sans); font-size: 14px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.14), 0 24px 60px rgba(0,0,0,.28); animation: pop .25s ease;
}
.f-side { width: 200px; flex: none; background: #ecebf0; border-right: 1px solid #dcdbe0; padding: 14px 10px; }
.f-lights { display: flex; gap: 8px; padding: 0 6px 18px; }
.f-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.f-lights i:nth-child(2) { background: #febc2e; }
.f-lights i:nth-child(3) { background: #28c840; }
.f-sec { font-size: 11px; font-weight: 600; color: #8e8e93; padding: 10px 8px 4px; }
.f-side-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: #1d1d1f; }
.f-side-item svg { width: 16px; height: 16px; color: #3478f6; }
.f-side-item.is-on { background: #d4d3d9; }
.f-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.f-bar { height: 52px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid #e5e5ea; }
.f-nav { display: flex; gap: 14px; font-size: 22px; line-height: 1; color: #c7c7cc; }
.f-nav .f-back.is-on { color: #6e6e73; }
.f-title { font-size: 15px; font-weight: 600; }
.f-flex { flex: 1; }
.f-search { display: flex; align-items: center; gap: 6px; width: 190px; height: 28px; padding: 0 8px; border-radius: 7px; background: #ececf0; color: #8e8e93; }
.f-search svg { width: 14px; height: 14px; }
.f-head, .f-row { display: grid; grid-template-columns: 1fr 190px 80px 120px; align-items: center; padding: 0 16px; }
.f-head { height: 28px; flex: none; font-size: 12px; color: #6e6e73; border-bottom: 1px solid #e5e5ea; }
.f-list { flex: 1; overflow: auto; padding: 4px 8px; }
.f-row { height: 30px; padding: 0 8px; border-radius: 6px; color: #3c3c43; font-size: 13px; cursor: default; }
.f-row:nth-child(even) { background: #f5f5f7; }
.f-row .f-name { display: flex; align-items: center; gap: 8px; color: #1d1d1f; font-size: 14px; min-width: 0; }
.f-row svg { width: 20px; height: 20px; flex: none; }
.f-row.is-sel, .f-row.is-sel:nth-child(even) { background: #0a64d8; color: #fff; }
.f-row.is-sel .f-name { color: #fff; }
.f-row.cue { animation: cue-inset 1.7s ease-in-out infinite; }
.f-foot { height: 58px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-top: 1px solid #e5e5ea; }
.f-btn { height: 28px; padding: 0 16px; display: grid; place-items: center; border-radius: 7px; background: #fff; border: 1px solid #d1d1d6; font-size: 13px; color: #1d1d1f; }
.f-open { background: #e5e5ea; color: #a1a1a6; border-color: transparent; }
.f-open.is-ready { background: #0a64d8; color: #fff; }
.f-open.is-pressed { background: #0852b4; }

/* ---------- Code folding in the editor ---------- */
.e-code code { display: block; }
.e-gl, .e-cl { height: 1.6em; }
.e-gl { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.e-fold { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; color: #9a9ea6; cursor: pointer; }
.e-fold:empty { cursor: default; }
.e-fold svg { width: 18px; height: 18px; }
.e-fold:not(:empty):hover { background: #393b40; color: #fff; }
.e-gl.is-folded .e-fold { color: #dfe1e5; }
.e-gl:has(svg) { cursor: pointer; }
.e-gl:has(svg):hover .e-fold { background: #393b40; color: #fff; }
.e-gl.is-hidden, .e-cl.is-hidden { display: none; }
.e-dots { display: none; font-style: normal; margin-left: 8px; padding: 0 6px; border-radius: 4px; background: #393b40; color: #a8adb5; font-size: .8em; vertical-align: .1em; }
.e-cl.is-folded .e-dots { display: inline-block; }
.e-cl.is-folded { background: rgba(53,116,240,.08); }
.e-editor.is-selected .e-cl > span { background: #214283; }

/* ---------- An email arrives: macOS notification and a Mail window ---------- */
.n-notice {
  position: absolute; right: 28px; bottom: 28px; z-index: 30; width: 400px; padding: 14px 16px 15px;
  border-radius: 16px; background: rgba(246,246,248,.96); color: #1d1d1f; cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, var(--sans); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 14px 40px rgba(0,0,0,.28);
  animation: n-in .45s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes n-in { from { transform: translateX(440px); opacity: 0; } to { transform: none; opacity: 1; } }
.n-notice.is-pressed { transform: scale(.97); }
.n-notice.cue { animation: n-in .45s cubic-bezier(.2,.9,.3,1.2) both, cue 1.7s ease-in-out .5s infinite; }
.n-app { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #6e6e73; margin-bottom: 6px; }
.n-app svg { width: 18px; height: 18px; }
.n-app i { margin-left: auto; font-style: normal; }
.n-notice b { display: block; font-size: 15px; }
.n-subject { font-size: 14px; font-weight: 600; margin: 1px 0 3px; }
.n-preview { font-size: 14px; color: #3c3c43; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.m-win {
  position: absolute; left: 50%; top: 70px; z-index: 25; width: 820px; transform: translateX(-50%);
  border-radius: 12px; overflow: hidden; background: #fff; color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, var(--sans);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 30px 80px rgba(0,0,0,.35); animation: m-in .3s ease both;
}
@keyframes m-in { from { opacity: 0; transform: translate(-50%, 12px) scale(.97); } to { opacity: 1; transform: translateX(-50%); } }
.m-win.is-closing { opacity: 0; transition: opacity .2s; }
.m-win.cue { cursor: pointer; animation: m-in .3s ease both, cue 1.7s ease-in-out .4s infinite; }
.m-bar { height: 42px; display: flex; align-items: center; padding: 0 16px; background: #ececee; border-bottom: 1px solid #dcdce0; }
.m-lights { display: flex; gap: 8px; }
.m-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.m-lights i:nth-child(2) { background: #febc2e; }
.m-lights i:nth-child(3) { background: #28c840; }
.m-title { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: #4a4a4f; margin-right: 52px; }
.m-head { display: flex; align-items: center; gap: 14px; padding: 22px 30px 0; }
.m-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #8e8e93; color: #fff; font-weight: 600; font-size: 16px; flex: none; }
.m-head b { display: block; font-size: 16px; }
.m-head span { font-size: 13px; color: #6e6e73; }
.m-head i { margin-left: auto; align-self: flex-start; font-style: normal; font-size: 13px; color: #6e6e73; }
.m-subject { padding: 16px 30px 0; font-size: 20px; font-weight: 700; }
.m-body { padding: 14px 30px 4px; font-size: 16px; line-height: 1.55; color: #2c2c2e; }
.m-body p { margin: 0 0 12px; }
.m-attach { display: flex; align-items: center; gap: 12px; margin: 6px 30px 26px; padding: 12px 16px; width: max-content; border: 1px solid #e0e0e5; border-radius: 10px; background: #f7f7f9; }
.m-attach svg { width: 26px; height: 26px; color: #1d8348; }
.m-attach b { display: block; font-size: 14px; }
.m-attach span { font-size: 12px; color: #6e6e73; }
.m-attach.cue { cursor: grab; }
.m-attach.is-dragged { opacity: .4; }
.m-ghost { position: absolute; z-index: 40; margin: 0; color: #1d1d1f; pointer-events: none; font-family: -apple-system, BlinkMacSystemFont, var(--sans); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.c-composer.is-drop { outline: 2px dashed #d97757; outline-offset: 4px; }
/* Export, reply, send */
.e-rexport { display: flex; align-items: center; gap: 6px; margin-left: 10px; padding: 0 10px !important; height: 24px !important; border: 1px solid #4a4d52; border-radius: 5px; color: #dfe1e5 !important; font-size: 12px; cursor: default; }
.e-rexport svg { width: 14px; height: 14px; }
.e-rexport.is-pressed { background: #3574f0; border-color: #3574f0; }
.n-dl .n-file { margin: 6px 0 0; }
.m-cattach .m-attach { margin: 0; }
.n-sent { animation: n-in .45s cubic-bezier(.2,.9,.3,1.2) both, n-out .4s ease 1.8s forwards; }
@keyframes n-out { to { opacity: 0; } }
.m-compose .m-bar { position: relative; }
.m-send { position: absolute; right: 12px; top: 7px; display: flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 7px; background: #d1d1d6; color: #fff; font-size: 13px; font-weight: 600; }
.m-send svg { width: 14px; height: 14px; }
.m-send.is-ready { background: #1e88f5; }
.m-send.is-pressed { transform: scale(.95); }
.m-field { display: flex; gap: 10px; padding: 11px 30px; border-bottom: 1px solid #ececee; font-size: 14px; }
.m-field span { color: #8e8e93; width: 60px; }
.m-field b { font-weight: 500; }
.m-cbody { min-height: 120px; padding-top: 18px; }
.m-cattach { margin: 0 20px 6px; padding: 10px; border-radius: 10px; }
.m-cattach:empty:not(.is-drop) { display: none; }
.m-cattach.is-drop { min-height: 82px; outline: 2px dashed #1e88f5; outline-offset: -2px; background: rgba(30,136,245,.06); }
.m-quote { margin: 14px 30px 24px; padding-left: 14px; border-left: 3px solid #d1d1d6; font-size: 14px; line-height: 1.5; color: #8e8e93; }

/* A pull request, as the last thing Claude Code shows (Demo 3) */
.v-pr { margin: 4px 0 10px; padding: 14px 16px; border: 1px solid #3d4048; border-radius: 10px; background: #26282c; }
.v-pr-top { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #e6e8eb; }
.v-pr-top svg { width: 18px; height: 18px; color: #3fb950; flex: none; }
.v-pr-no { color: #8c9099; font-weight: 400; }
.v-pr-meta { margin: 8px 0 6px; color: #a8adb5; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v-pr-meta code { font-family: var(--mono); font-size: 12px; background: #1e1f22; padding: 1px 6px; border-radius: 4px; color: #c9ccd1; }
.v-pr-state { background: #238636; color: #fff; border-radius: 12px; padding: 2px 10px; font-weight: 600; font-size: 12px; }
.v-pr-stats { display: flex; gap: 12px; font-size: 13px; color: #a8adb5; }
.v-pr-stats .add { color: #3fb950; } .v-pr-stats .del { color: #f85149; }
.v-pr-url { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: #58a6ff; }

/* A command the project pre-approved: no prompt, a quiet label */
.v-tool.is-auto .v-sub { color: #7ee2a8; }
