/* The live Rize window in the hero. Laid out at the real window's size (1440 × 900 pt) with the
   app's own measurements (crates/rize/src/browser/chrome.rs, chat/*.rs, rize-ui sizes) and scaled
   to fit. Colours come from the theme variables, which themes.js sets.
   Interface type: Geist, rows at 14 px (13 written, scaled by 13.5/12.5). Prose: Inter 16/22. */

@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

.rz {
  --side-w: 250px;
  --chat-w: 400px;
  --inset: 4px;
  --t: 0.26s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: absolute; left: 0; top: 0;
  width: 1440px; height: 900px;
  border-radius: 16px;
  background: hsl(var(--surface));
  color: hsl(var(--sink) / 0.92);
  font: 400 14px/19.5px "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.55),
    inset 0 0 0 1px rgb(255 255 255 / 0.10),
    0 60px 140px -30px rgb(0 0 0 / 0.8),
    0 30px 60px -30px rgb(0 0 0 / 0.65);
  transform-origin: 0 0;
  transition: background-color 0.4s ease;
}
.rz[data-surface-light="true"] { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35), 0 60px 140px -30px rgb(0 0 0 / 0.8), 0 30px 60px -30px rgb(0 0 0 / 0.65); }
.rz * { box-sizing: border-box; }
:where(.rz) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; }
.rz svg.ic { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rz ::-webkit-scrollbar { width: 8px; height: 8px; }
.rz ::-webkit-scrollbar-thumb { background: hsl(var(--ink) / 0.18); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
.rz ::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ traffic lights */
.rz-lights { position: absolute; left: 20px; top: 19px; z-index: 30; display: flex; gap: 9px; }
.rz-lights i { width: 14px; height: 14px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.25); }
.rz-lights i:nth-child(2) { background: #febc2e; }
.rz-lights i:nth-child(3) { background: #28c840; }
.rz:not(.focused) .rz-lights i { background: hsl(var(--sink) / 0.22); box-shadow: none; }

/* ------------------------------------------------------------------ buttons, as Caret's */
.rz-tb { /* tool button: 26 pt with a 14 pt glyph */
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px;
  display: grid; place-items: center;
  color: hsl(var(--ink) / 0.6);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.rz-tb:hover { background: hsl(var(--ink) / 0.07); color: hsl(var(--ink) / 0.92); }
.rz-tb:disabled, .rz-tb.off { color: hsl(var(--ink) / 0.28); background: none; }
.rz-side .rz-tb { color: hsl(var(--sink) / 0.6); }
.rz-side .rz-tb:hover { background: hsl(var(--sink) / 0.07); color: hsl(var(--sink) / 0.92); }
.rz-sb { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: hsl(var(--sink) / 0.42); }
.rz-sb:hover { background: hsl(var(--sink) / 0.08); color: hsl(var(--sink) / 0.8); }
.rz-sb svg.ic { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ sidebar */
.rz-side {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--side-w);
  display: flex; flex-direction: column;
  transition: transform var(--t), opacity var(--t);
}
.rz.side-off .rz-side { transform: translateX(-60px); opacity: 0; pointer-events: none; }
.rz-side-head { height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; }
.rz-side-scroll { flex: 1; min-height: 0; overflow: hidden auto; padding-top: 2px; position: relative; scrollbar-width: none; }
.rz-side-scroll::-webkit-scrollbar { display: none; }
.rz-space { transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.32s ease; }
.rz-space.from-right { transform: translateX(60px); opacity: 0; }
.rz-space.from-left { transform: translateX(-60px); opacity: 0; }

.rz-pins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 10px 6px; }
.rz-pin {
  height: 44px; border-radius: 10px; display: grid; place-items: center; position: relative;
  background: hsl(var(--sink) / 0.05);
  transition: background-color 0.12s ease;
}
.rz-pin:hover { background: hsl(var(--sink) / 0.075); }
.rz-pin.on { background: hsl(var(--sink) / 0.11); }
.rz-pin .fav { width: 18px; height: 18px; }
.rz-pin .badge { position: absolute; top: 5px; right: 7px; min-width: 14px; height: 14px; padding: 0 4px; border-radius: 7px; font-size: 9.5px; line-height: 14px; font-weight: 600; text-align: center; color: #fff; background: #e5484d; }

.rz-row {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  height: 30px; margin: 0 8px; padding: 0 9px 0 8px;
  border-radius: 7px; border: 1px solid transparent;
  color: hsl(var(--sink) / 0.76);
  white-space: nowrap;
  transition: background-color 0.1s ease;
}
.rz-row:hover { background: hsl(var(--sink) / 0.05); }
.rz-row.on { background: hsl(var(--accent) / 0.13); color: hsl(var(--sink) / 0.92); font-weight: 500; }
.rz[data-surface-light="false"][data-light="true"] .rz-row.on { background: hsl(var(--sink) / 0.16); }
.rz-row .lead { width: 14px; flex-shrink: 0; display: flex; justify-content: center; }
.rz-row .fav { width: 14px; height: 14px; }
.rz-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rz-row .x {
  position: absolute; right: 5px; top: 3px; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; color: hsl(var(--sink) / 0.5);
  opacity: 0; transition: opacity 0.1s ease;
}
.rz-row:hover .x { opacity: 1; }
.rz-row .x:hover { background: hsl(var(--sink) / 0.1); color: hsl(var(--sink) / 0.9); }
.rz-row .x svg.ic { width: 12px; height: 12px; }
.rz-row:hover .t { margin-right: 18px; }
.rz-row.in-folder { padding-left: 31px; }
.rz-row.opening { animation: rz-open 0.32s cubic-bezier(0.25, 0.8, 0.25, 1) both; }
.rz-row.closing { animation: rz-close 0.2s ease both; pointer-events: none; }
.rz-row.flash { animation: rz-flash 1.2s ease; }
@keyframes rz-open { from { height: 0; opacity: 0; transform: translateX(-8px); } to { height: 30px; opacity: 1; transform: none; } }
@keyframes rz-close { to { height: 0; opacity: 0; margin-top: 0; margin-bottom: 0; } }
@keyframes rz-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 1.5px hsl(var(--accent) / 0.7), 0 0 14px hsl(var(--accent) / 0.4); } }

.rz-folder-head { color: hsl(var(--sink) / 0.62); gap: 8px; }
.rz-folder-head .lead { width: 16px; }
.rz-folder-head svg.ic { width: 15px; height: 15px; }
.rz-folder-head .count { font-size: 12px; color: hsl(var(--sink) / 0.4); }
.rz-folder-kids { overflow: hidden; transition: height 0.18s ease; }

.rz-label { height: 28px; margin-top: 10px; padding: 0 10px 0 16px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; line-height: 17px; color: hsl(var(--sink) / 0.4); }
.rz-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--space); }
.rz-label .name { flex: 1; }
.rz-clear { font-size: 13.5px; color: hsl(var(--sink) / 0.4); padding: 2px 4px; border-radius: 5px; }
.rz-clear:hover { color: hsl(var(--sink) / 0.75); background: hsl(var(--sink) / 0.06); }
.rz-newtab { color: hsl(var(--sink) / 0.4); }
.rz-newtab:hover { color: hsl(var(--sink) / 0.6); }
.rz-newtab svg.ic { width: 13px; height: 13px; }

.rz-foot { flex-shrink: 0; height: 42px; padding: 4px 8px 8px; display: flex; align-items: center; gap: 2px; }
.rz-dots { flex: 1; display: flex; justify-content: center; align-items: center; gap: 4px; }
.rz-dot { height: 16px; min-width: 9px; display: grid; place-items: center; border-radius: 4px; }
.rz-dot i { width: 5px; height: 5px; border-radius: 3px; background: hsl(var(--sink) / 0.3); transition: width 0.25s ease, background-color 0.25s ease; }
.rz-dot.on i { width: 17px; background: var(--space, hsl(var(--sink) / 0.7)); }
.rz-dot:hover i { background: hsl(var(--sink) / 0.55); }
.rz-dot.on:hover i { background: var(--space, hsl(var(--sink) / 0.7)); }

/* ------------------------------------------------------------------ the page card and the chat card */
.rz-main {
  position: absolute; top: var(--inset); bottom: var(--inset); right: var(--inset);
  left: var(--side-w);
  display: flex; gap: var(--inset);
  transition: left var(--t);
}
.rz.side-off .rz-main { left: var(--inset); }
.rz-card {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  border-radius: 12px;
  background: hsl(var(--body));
  color: hsl(var(--ink) / 0.92);
  overflow: hidden;
  box-shadow: 0 0 0 0.5px hsl(var(--ink) / 0.08), 0 1px 3px rgb(0 0 0 / 0.12);
  transition: border-radius var(--t), background-color 0.4s ease;
}
.rz:not(.chat-off) .rz-card { border-top-right-radius: 7px; border-bottom-right-radius: 7px; }

.rz-bar {
  position: relative; z-index: 3;
  height: 44px; flex-shrink: 0;
  display: flex; align-items: center; gap: 2px;
  padding: 0 8px;
  border-bottom: 1px solid hsl(var(--ink) / 0.055);
  background: hsl(var(--body));
  transition: padding-left var(--t), background-color 0.4s ease;
}
.rz.side-off .rz-bar { padding-left: 78px; }
.rz-bar .side-toggle { display: none; }
.rz.side-off .rz-bar .side-toggle { display: grid; }
.rz-bar .grow { flex: 1; min-width: 4px; }
.rz-bar .gap6 { width: 6px; flex-shrink: 0; }
.rz-tb.spin svg { animation: rz-spin 0.6s ease; }
@keyframes rz-spin { to { transform: rotate(360deg); } }

.rz-addr {
  position: relative;
  width: 620px; min-width: 160px; flex-shrink: 1;
  height: 28px; margin: 0 8px;
  display: flex; align-items: center; gap: 4px;
  padding: 0 3px;
  border-radius: 14px; border: 1px solid transparent;
  background: hsl(var(--ink) / 0.055);
  font-size: 13.5px;
  transition: background-color 0.12s ease;
}
.rz-addr:hover { background: hsl(var(--ink) / 0.075); }
.rz-addr .site {
  height: 22px; display: flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 0 9px 0 8px; border-radius: 11px;
  background: hsl(var(--ink) / 0.065);
  color: hsl(var(--ink) / 0.6);
}
.rz-addr .site svg.ic { width: 11px; height: 11px; color: hsl(var(--ink) / 0.4); }
.rz-addr .title { flex: 1; min-width: 0; text-align: center; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--ink) / 0.92); }
.rz-addr .acts { display: flex; gap: 2px; opacity: 0; transition: opacity 0.12s ease; }
.rz-addr:hover .acts { opacity: 1; }
.rz-addr .acts button { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; color: hsl(var(--ink) / 0.4); }
.rz-addr .acts button:hover { background: hsl(var(--ink) / 0.07); color: hsl(var(--ink) / 0.8); }
.rz-addr .acts button.on { color: hsl(var(--accent)); }
.rz-addr .acts svg.ic { width: 12px; height: 12px; }
.rz-addr.placeholder .title, .rz-addr.editing .title { text-align: left; }
.rz-addr.placeholder { padding-left: 10px; }
.rz-addr.placeholder .title { color: hsl(var(--ink) / 0.4); display: flex; align-items: center; gap: 7px; padding: 0; }
.rz-addr.placeholder .title svg.ic { width: 12px; height: 12px; }
.rz-addr.editing { background: hsl(var(--ink) / 0.07); border-color: hsl(var(--ink) / 0.12); padding-left: 10px; }
.rz-addr input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font: inherit; color: hsl(var(--ink) / 0.92); padding: 0;
  user-select: text; -webkit-user-select: text;
}
.rz-addr input::selection { background: hsl(var(--accent) / 0.35); }
.rz-suggest {
  position: absolute; left: -1px; right: -1px; top: 32px; z-index: 40;
  padding: 4px; border-radius: 12px;
  background: hsl(var(--body)); box-shadow: 0 0 0 1px hsl(var(--ink) / 0.1), 0 16px 40px rgb(0 0 0 / 0.35);
}
.rz-suggest .item { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px; color: hsl(var(--ink) / 0.85); }
.rz-suggest .item .fav { width: 14px; height: 14px; }
.rz-suggest .item .u { color: hsl(var(--ink) / 0.4); margin-left: auto; font-size: 12.5px; }
.rz-suggest .item.on { background: hsl(var(--accent) / 0.16); }
.rz-suggest .item svg.ic { width: 14px; height: 14px; color: hsl(var(--ink) / 0.5); }

.rz-ask {
  height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; border-radius: 7px;
  font-weight: 500; font-size: 13.5px;
  background: hsl(var(--ink) / 0.06); color: hsl(var(--ink) / 0.92);
  transition: background-color 0.12s ease;
}
.rz-ask:hover { background: hsl(var(--ink) / 0.1); }
.rz:not(.chat-off) .rz-ask { background: hsl(var(--ink) / 0.1); }
.rz-ask svg.ic { width: 13px; height: 13px; color: hsl(var(--ink) / 0.6); stroke-width: 2; }

.rz-load { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: hsl(var(--accent)); border-radius: 0 1px 1px 0; opacity: 0; }
.rz-load.go { animation: rz-load 0.55s ease-out; }
@keyframes rz-load { 0% { width: 0; opacity: 1; } 80% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }

.rz-view { position: relative; flex: 1; min-height: 0; }
.rz-page {
  position: absolute; inset: 0; overflow: auto;
  user-select: text; -webkit-user-select: text;
  cursor: auto;
}
.rz-page.enter { animation: rz-page-in 0.22s ease both; }
@keyframes rz-page-in { from { opacity: 0.4; } to { opacity: 1; } }
.rz-page a, .rz-page [data-go], .rz-page [data-act] { cursor: pointer; }
.rz-touch { animation: rz-touch 1.1s ease; border-radius: 4px; }
@keyframes rz-touch {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--accent) / 0); }
  25% { box-shadow: 0 0 0 3px hsl(var(--accent) / 0.75), 0 0 16px hsl(var(--accent) / 0.55); background-color: hsl(var(--accent) / 0.14); }
}

.rz-toast {
  position: absolute; left: 50%; bottom: 18px; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 34px; padding: 0 6px 0 14px; border-radius: 17px;
  background: rgb(28 28 28 / 0.96); color: rgb(255 255 255 / 0.92);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 12px 30px rgb(0 0 0 / 0.35);
  font-size: 13px;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.rz-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.rz-toast button { height: 24px; padding: 0 10px; border-radius: 12px; font-weight: 500; color: #fff; background: rgb(255 255 255 / 0.12); }
.rz-toast button:hover { background: rgb(255 255 255 / 0.2); }

/* menus (… and the downloads button) */
.rz-menu {
  position: absolute; z-index: 50; min-width: 220px;
  padding: 4px; border-radius: 10px;
  background: hsl(var(--body)); color: hsl(var(--ink) / 0.92);
  box-shadow: 0 0 0 1px hsl(var(--ink) / 0.12), 0 18px 44px rgb(0 0 0 / 0.4);
  font-size: 13.5px;
  animation: rz-pop 0.12s ease both;
}
@keyframes rz-pop { from { opacity: 0; transform: translateY(-4px); } }
.rz-menu .item { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 8px; border-radius: 6px; }
.rz-menu .item:hover { background: hsl(var(--accent) / 0.16); }
.rz-menu .item svg.ic { width: 14px; height: 14px; color: hsl(var(--ink) / 0.55); }
.rz-menu .item kbd { margin-left: auto; font: inherit; font-size: 12.5px; color: hsl(var(--ink) / 0.4); background: none; border: 0; padding: 0; }
.rz-menu .sep { height: 1px; margin: 4px 6px; background: hsl(var(--ink) / 0.08); }
.rz-menu .note { padding: 8px 10px 10px; color: hsl(var(--ink) / 0.55); font-size: 13px; line-height: 18px; }
.rz-menu .head { padding: 8px 10px 2px; font-weight: 500; }

/* ------------------------------------------------------------------ the assistant */
.rz-chat {
  position: relative; width: var(--chat-w); flex-shrink: 0;
  border-radius: 7px 12px 12px 7px;
  background: hsl(var(--body));
  color: hsl(var(--ink) / 0.92);
  overflow: hidden;
  box-shadow: 0 0 0 0.5px hsl(var(--ink) / 0.08), 0 1px 3px rgb(0 0 0 / 0.12);
  transition: width var(--t), margin var(--t), opacity var(--t), background-color 0.4s ease;
}
.rz.chat-off .rz-chat { width: 0; margin-left: calc(var(--inset) * -1); opacity: 0; }
.rz-chat-in { position: absolute; top: 0; bottom: 0; right: 0; width: var(--chat-w); display: flex; flex-direction: column; }
.rz-chat-head { height: 44px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; }
.rz-chat-head .name { font-size: 14.5px; font-weight: 500; }
.rz-chat-head .grow { flex: 1; }
.rz-chat-head .cname { font-size: 14px; color: hsl(var(--ink) / 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.rz-chat-head .slash { color: hsl(var(--ink) / 0.4); }
.rz-chat-head .rz-tb { color: hsl(var(--ink) / 0.5); }

.rz-lane {
  flex: 1; min-height: 0; overflow: auto;
  padding: 12px 20px 20px;
  display: flex; flex-direction: column;
  user-select: text; -webkit-user-select: text; cursor: auto;
  scrollbar-width: none;
}
.rz-lane::-webkit-scrollbar { display: none; }
.rz-prose { font: 400 16px/23px "Inter", -apple-system, sans-serif; color: hsl(var(--ink) / 0.92); }
.rz-prose p { margin: 0 0 12px; }
.rz-prose p:last-child { margin-bottom: 0; }
.rz-prose b, .rz-prose strong { font-weight: 600; }
.rz-prose ul, .rz-prose ol { margin: 0 0 12px; padding-left: 22px; }
.rz-prose li { margin: 0 0 6px; }
.rz-prose li::marker { color: hsl(var(--ink) / 0.45); }
.rz-prose a { color: hsl(var(--accent)); text-decoration: none; cursor: pointer; }
.rz-prose a:hover { text-decoration: underline; }
.rz-prose table { border-collapse: collapse; font-size: 14px; line-height: 20px; margin: 4px 0 12px; width: 100%; }
.rz-prose th, .rz-prose td { text-align: left; padding: 6px 8px; border-bottom: 1px solid hsl(var(--ink) / 0.1); vertical-align: top; }
.rz-prose th { font-weight: 600; color: hsl(var(--ink) / 0.92); }

.rz-msg-user { align-self: flex-end; max-width: 86%; margin: 12px 0 6px; padding: 10px 16px; border-radius: 16px; background: hsl(var(--ink) / 0.075); font: 400 16px/22px "Inter", sans-serif; color: hsl(var(--ink) / 0.92); white-space: pre-wrap; animation: rz-rise 0.2s ease both; }
.rz[data-light="true"] .rz-msg-user { background: hsl(var(--ink) / 0.055); }
.rz-quote { align-self: flex-end; max-width: 80%; padding-left: 10px; border-left: 2px solid hsl(var(--ink) / 0.2); font-size: 13.5px; line-height: 19.5px; color: hsl(var(--ink) / 0.6); margin-top: 12px; }
.rz-work { margin: 10px 0 8px; }
.rz-work-head { display: flex; align-items: center; gap: 6px; min-height: 26px; font: 400 14.5px/20px "Inter", sans-serif; color: hsl(var(--ink) / 0.5); cursor: pointer; }
.rz-work-head:hover { color: hsl(var(--ink) / 0.72); }
.rz-work-head .tail { color: hsl(var(--ink) / 0.36); }
.rz-work-head svg.ic { width: 12px; height: 12px; color: hsl(var(--ink) / 0.36); }
.rz-work-steps { margin: 2px 0 4px; padding-left: 14px; display: flex; flex-direction: column; gap: 1px; }
.rz-step { display: flex; align-items: center; gap: 6px; min-height: 26px; font: 400 14px/20px "Inter", sans-serif; color: hsl(var(--ink) / 0.5); }
.rz-step svg.ic { width: 13px; height: 13px; color: hsl(var(--ink) / 0.4); }
.rz-step .what { color: hsl(var(--ink) / 0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-spin { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid hsl(var(--ink) / 0.18); border-top-color: hsl(var(--ink) / 0.65); animation: rz-spin 0.8s linear infinite; flex-shrink: 0; }
.rz-reply { animation: rz-rise 0.2s ease both; }
.rz-reply .caret::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: hsl(var(--ink) / 0.6); animation: rz-blink 0.9s ease infinite; }
.rz-signed { margin-top: 4px; font-size: 13px; color: hsl(var(--ink) / 0.4); }
@keyframes rz-blink { 50% { opacity: 0.2; } }
@keyframes rz-rise { from { opacity: 0; transform: translateY(4px); } }

.rz-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 20px; }
.rz-empty h4 { margin: 0 0 6px; font: 400 20.5px/27px "Inter", sans-serif; color: hsl(var(--ink) / 0.92); }
.rz-empty p { margin: 0 0 16px; font-size: 14px; line-height: 20.5px; color: hsl(var(--ink) / 0.6); }
.rz-starters { display: flex; flex-direction: column; gap: 6px; }
.rz-starter { width: 100%; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border-radius: 9px; background: hsl(var(--ink) / 0.04); text-align: left; transition: background-color 0.1s ease; }
.rz-starter:hover { background: hsl(var(--ink) / 0.075); }
.rz-starter > svg.ic:first-child { color: hsl(var(--ink) / 0.6); }
.rz-starter .l { flex: 1; color: hsl(var(--ink) / 0.92); }
.rz-starter > svg.ic:last-child { width: 11px; height: 11px; color: hsl(var(--ink) / 0.4); }

.rz-composer {
  position: relative; flex-shrink: 0;
  margin: 0 14px 14px;
  border-radius: 16px;
  background: hsl(var(--ink) / 0.055);
}
.rz[data-light="true"] .rz-composer { background: hsl(var(--ink) / 0.04); }
.rz-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 0; }
.rz-chips:empty { display: none; }
.rz-chip { height: 24px; max-width: 230px; display: flex; align-items: center; gap: 6px; padding: 0 2px 0 8px; border-radius: 7px; background: hsl(var(--ink) / 0.06); }
.rz-chip .fav { width: 12px; height: 12px; }
.rz-chip .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: hsl(var(--ink) / 0.6); }
.rz-chip button { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; color: hsl(var(--ink) / 0.4); flex-shrink: 0; }
.rz-chip button:hover { background: hsl(var(--ink) / 0.08); }
.rz-chip button svg.ic { width: 10px; height: 10px; }
.rz-input {
  display: block; width: 100%; min-height: 36px; max-height: 140px; resize: none;
  padding: 12px 12px 2px 9px; margin: 0; border: 0; outline: none; background: transparent;
  font: 400 15px/22px "Inter", sans-serif; color: hsl(var(--ink) / 0.92);
  user-select: text; -webkit-user-select: text;
  overflow: hidden auto;
}
.rz-input-wrap { padding-left: 5px; }
.rz-input::placeholder { color: hsl(var(--ink) / 0.4); }
.rz-cfoot { height: 42px; display: flex; align-items: center; gap: 2px; padding: 0 7px; }
.rz-fchip { height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 14px; font-size: 13.5px; color: hsl(var(--ink) / 0.6); }
.rz-fchip:hover { background: hsl(var(--ink) / 0.06); color: hsl(var(--ink) / 0.92); }
.rz-fchip svg.ic { width: 13px; height: 13px; color: hsl(var(--ink) / 0.4); }
.rz-fchip.round { width: 28px; padding: 0; justify-content: center; }
.rz-fchip.round svg.ic { width: 15px; height: 15px; color: hsl(var(--ink) / 0.6); }
.rz-fchip .mark { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--accent)); }
.rz-cfoot .grow { flex: 1; }
.rz-send { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-left: 4px; background: hsl(var(--ink) / 0.08); color: hsl(var(--ink) / 0.35); transition: background-color 0.12s ease, color 0.12s ease; }
.rz-send svg.ic { width: 14px; height: 14px; stroke-width: 2.2; }
.rz-send.ready { background: hsl(var(--ink) / 0.92); color: hsl(var(--body)); }
.rz-send.stop { background: hsl(var(--ink) / 0.92); color: hsl(var(--body)); }
.rz-picker {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 30;
  padding: 6px; border-radius: 12px;
  background: hsl(var(--body)); box-shadow: 0 0 0 1px hsl(var(--ink) / 0.1), 0 -10px 36px rgb(0 0 0 / 0.3);
  animation: rz-pop 0.12s ease both;
}
.rz-picker { max-height: 380px; overflow: auto; scrollbar-width: none; }
.rz-picker .head { padding: 4px 8px 6px; font-size: 12.5px; color: hsl(var(--ink) / 0.4); }
.rz-picker .item { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; }
.rz-picker .item.on, .rz-picker .item:hover { background: hsl(var(--accent) / 0.16); }
.rz-picker .item .fav { width: 14px; height: 14px; }
.rz-picker .item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-picker .item .d { color: hsl(var(--ink) / 0.4); font-size: 12.5px; }
.rz-picker .item svg.ic { color: hsl(var(--ink) / 0.55); }

/* the hint that the window is real */
.demo-hint {
  margin: 26px auto 0; max-width: 640px; text-align: center; text-wrap: balance;
  font-size: 14px; line-height: 1.6; color: var(--text-3);
}
.demo-hint .pulse { display: inline-block; vertical-align: 1px; margin-right: 9px; }
@media (max-width: 640px), (hover: none) { .demo-hint .keys-hint { display: none; } }
@media (max-width: 640px) { .wrap.wide { padding: 0 10px; } }
.demo-hint kbd { font-size: 11.5px; }
.demo-hint .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-2); box-shadow: 0 0 0 0 rgb(249 166 90 / 0.6); animation: demo-pulse 2s ease infinite; }
@keyframes demo-pulse { 70% { box-shadow: 0 0 0 8px rgb(249 166 90 / 0); } 100% { box-shadow: 0 0 0 0 rgb(249 166 90 / 0); } }

@media (prefers-reduced-motion: reduce) {
  .rz *, .rz { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* dragging a tab */
.rz-row.drop-above { box-shadow: inset 0 2px 0 hsl(var(--accent)); }
.rz-row.drop-below { box-shadow: inset 0 -2px 0 hsl(var(--accent)); }

/* Until someone clicks in, scrolling over the window scrolls the website (see demo.js). */
.rz:not(.engaged) .rz-page, .rz:not(.engaged) .rz-lane, .rz:not(.engaged) .rz-side-scroll { overflow: hidden; }
