@import url("/fonts.css");
:root {
  color-scheme: dark;
  --bg: #101817;
  --panel: #151e1c;
  --line: #2b3531;
  --text: #e6ece4;
  --muted: #909d95;
  --green: #c8e4bd;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
button {
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover {
  filter: brightness(1.12);
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.brand-mark {
  font-size: 60px;
  letter-spacing: -8px;
  line-height: 1;
  color: var(--green);
  font-weight: 600;
}
.brand-mark span {
  font-weight: 300;
}
.brand-mark.small {
  font-size: 39px;
  letter-spacing: -5px;
}
.eyebrow,
.section-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
}
.eyebrow {
  color: var(--green);
  margin-top: 38px;
}
.primary {
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #17231a;
  padding: 14px 18px;
  font-weight: 600;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 70% 30%, #26372b66, transparent 55%);
}
.login-card {
  width: 420px;
  max-width: calc(100% - 48px);
  padding: 36px 0;
}
.login-card h1 {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -2px;
  margin: 20px 0;
}
.login-card label {
  display: block;
  margin: 34px 0 10px;
  color: #b4c2b8;
  font-size: 12px;
}
.login-card input {
  width: 100%;
  background: #19231f;
  border: 1px solid #3a473e;
  border-radius: 10px;
  padding: 15px;
  color: var(--text);
}
.login-card .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.login-card .local-badge {
  justify-content: center;
  margin-top: 32px;
}
#login-error {
  color: #f0b6a5;
  min-height: 18px;
}
.workspace {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}
aside {
  width: 260px;
  flex-shrink: 0;
  background: #141d1a;
  border-right: 1px solid var(--line);
  padding: 29px 22px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 17px;
}
.brand > span {
  font-size: 11px;
  color: #afb9b0;
  margin-top: 10px;
}
.new-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #3a493e;
  background: #263429;
  border-radius: 9px;
  padding: 13px 12px;
  margin: 36px 0;
  color: #dbe9d5;
  text-align: left;
}
.new-chat kbd {
  margin-left: auto;
  color: var(--muted);
}
.section-label {
  color: #7f9083;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
#history {
  overflow: auto;
  flex: 1;
}
#history button {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 10px;
  border-radius: 7px;
  color: #aab7ad;
  font-size: 12px;
}
#history button.active {
  background: #233128;
  color: #d8e5d2;
}
#history .empty {
  color: #78877d;
  font-size: 12px;
  line-height: 1.6;
  padding: 0 9px;
}
.sidebar-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.machine {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 4px 18px;
}
.machine strong {
  font-size: 11px;
  font-weight: 400;
}
.machine small {
  display: block;
  font-size: 10px;
  color: #839386;
  margin-top: 6px;
}
.status-dot,
.local-badge i {
  width: 6px;
  height: 6px;
  background: #b1d9a4;
  border-radius: 50%;
  box-shadow: 0 0 8px #a7d79933;
}
.quiet {
  background: none;
  border: 0;
  color: #a5b2a8;
  padding: 10px 6px;
  font-size: 12px;
}
.sidebar-bottom .quiet {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.quiet:hover {
  color: var(--text);
}
main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 52% 38%, #26302730, transparent 65%);
}
header {
  height: 79px;
  border-bottom: 1px solid #27312c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  flex-shrink: 0;
  gap: 15px;
}
.header-title {
  font-size: 12px;
  color: #8c9a90;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-title span {
  margin: 0 14px;
  color: #536359;
}
.header-title strong {
  font-weight: 400;
  color: #c8d1c8;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #acbba9;
  white-space: nowrap;
}
.icon {
  background: none;
  border: 0;
  font-size: 23px;
  padding: 6px;
  color: #aebcac;
}
.mobile {
  display: none;
}
#scroll-area {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}
#welcome,
#messages {
  max-width: 910px;
  margin: 0 auto;
  padding: 54px 44px 25px;
}
.welcome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 39px;
}
.pill {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #b9d3b0;
  border: 1px solid #3c4c3f;
  border-radius: 20px;
  padding: 8px 11px;
}
.tiny {
  font-size: 10px;
  color: #76897b;
}
#welcome h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.3vw, 64px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -2px;
  margin: 0 0 24px;
}
#welcome h1 em {
  font-weight: 400;
  color: var(--green);
}
#welcome > p {
  color: #99a99d;
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 39px;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.suggestions button {
  text-align: left;
  position: relative;
  min-height: 156px;
  padding: 21px 17px;
  background: linear-gradient(125deg, #222d25, #1a241e);
  border: 1px solid #354336;
  border-radius: 12px;
}
.suggestions button:hover {
  transform: translateY(-3px);
  border-color: #728568;
}
.card-icon {
  display: block;
  color: #c4d7b8;
  font-size: 24px;
  margin-bottom: 25px;
}
.suggestions strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.suggestions small {
  display: block;
  color: #8d9f8f;
  font-size: 10px;
  margin-top: 9px;
  line-height: 1.6;
}
.arrow {
  position: absolute;
  top: 22px;
  right: 18px;
  color: #8ca081;
}
.welcome-note {
  display: flex;
  gap: 10px;
  color: #728376;
  font-size: 10px;
  line-height: 1.8;
  margin-top: 25px;
}
.welcome-note > span {
  font-size: 19px;
}
.composer-area {
  max-width: 910px;
  width: 100%;
  margin: auto;
  padding: 15px 44px 20px;
}
#composer {
  background: #1e2821;
  border: 1px solid #41503e;
  border-radius: 14px;
  padding: 16px 16px 10px;
  box-shadow: 0 8px 30px #0002;
}
textarea {
  display: block;
  resize: none;
  background: none;
  border: none;
  color: var(--text);
  width: 100%;
  min-height: 35px;
  max-height: 150px;
  font-size: 13px;
  line-height: 1.6;
}
textarea:focus {
  outline: none;
}
textarea::placeholder {
  color: #93a28e;
}
.composer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.composer-hint {
  font-size: 9px;
  color: #6f826e;
  margin-right: auto;
}
.composer-hint span {
  margin: 0 4px;
}
.read-aloud {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: #9dac94;
  white-space: nowrap;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.voice-button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #2b372a;
  border: 1px solid #44513c;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 11px;
  color: #d1dec4;
}
.voice-button svg {
  width: 15px;
  height: 15px;
}
.send {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #23351b;
  width: 34px;
  height: 34px;
  font-size: 22px;
}
.send#stop {
  font-size: 13px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 9px;
  color: #748370;
}
#activity {
  font-size: 11px;
  min-height: 23px;
  color: #a6c296;
  padding: 0 3px 7px;
}
.message {
  margin-bottom: 28px;
  line-height: 1.75;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.message .author {
  font-size: 10px;
  color: #a9c399;
  letter-spacing: 1px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.message.user {
  background: #212d24;
  border: 1px solid #344132;
  border-radius: 13px;
  padding: 15px 20px;
  margin-left: 15%;
}
.message.user .author {
  color: #8fa28a;
}
.message .content {
  white-space: pre-wrap;
}
.message a {
  color: #c7e1b5;
  text-underline-offset: 3px;
}
.message.error {
  color: #f4b8a7;
}
.message.assistant .author:before {
  content: "al";
  font-size: 18px;
  letter-spacing: -2px;
  color: #c7e1b5;
}
#messages:empty {
  display: none;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #2b3829;
  border: 1px solid #627453;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.notice strong {
  font-size: 12px;
}
.notice p {
  font-size: 11px;
  line-height: 1.5;
  color: #b0c2a7;
}
.notice .primary {
  font-size: 11px;
  white-space: nowrap;
  padding: 10px;
}
.voice-panel {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #485c40;
  background: #22301f;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.voice-panel strong {
  font-size: 12px;
  color: #cfe6bf;
}
.voice-panel p {
  font-size: 11px;
  margin: 7px 0 0;
  color: #9caf90;
  max-width: 450px;
  max-height: 44px;
  overflow: auto;
}
.voice-panel > div:nth-child(2) {
  flex: 1;
}
.voice-orb {
  width: 43px;
  height: 43px;
  border: 1px solid #67815a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #30472a;
}
.voice-orb span {
  height: 12px;
  width: 3px;
  background: #badaaa;
  border-radius: 4px;
  animation: wave 1s infinite alternate;
}
.voice-orb span:nth-child(2n) {
  height: 22px;
  animation-delay: 0.4s;
}
@keyframes wave {
  to {
    height: 5px;
  }
}
dialog {
  background: #1b261e;
  border: 1px solid #4a5c41;
  color: var(--text);
  border-radius: 18px;
  padding: 32px;
  width: 460px;
  max-width: calc(100% - 32px);
}
dialog::backdrop {
  background: #060d09bb;
  backdrop-filter: blur(6px);
}
dialog > .icon {
  float: right;
}
dialog h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
}
dialog .eyebrow {
  margin-top: 10px;
}
dialog .muted {
  font-size: 12px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #364330;
  font-size: 12px;
}
.status-row .ok {
  color: #bbdba4;
}
.status-row .bad {
  color: #e7b991;
}
.place-card {
  border: 1px solid #3a4933;
  border-radius: 9px;
  padding: 13px 16px;
  margin: 10px 0;
  font-size: 12px;
}
.place-card p {
  margin: 4px 0;
  color: #a0b092;
}
.places-attribution {
  font-size: 10px;
  color: #90a186;
}
.message .metrics {
  font-size: 10px;
  color: #75896e;
  margin-top: 12px;
}
@media (min-width: 1500px) {
  #welcome {
    padding-top: 100px;
  }
}
@media (max-width: 1050px) {
  aside {
    width: 222px;
    padding: 24px 16px;
  }
  #welcome,
  #messages {
    padding: 35px 27px 20px;
  }
  .composer-area {
    padding: 15px 27px 20px;
  }
  .tiny {
    display: none;
  }
  header {
    padding: 0 27px;
  }
  .composer-hint {
    display: none;
  }
  .read-aloud {
    margin-right: auto;
  }
  .suggestions {
    gap: 8px;
  }
  .suggestions button {
    padding: 18px 12px;
  }
  .suggestions small {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  .mobile {
    display: block;
  }
  aside {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: 280px;
    box-shadow: 15px 0 60px #0008;
    transform: translateX(-110%);
    transition: transform 0.2s;
  }
  aside.open {
    transform: translateX(0);
  }
  .brand .mobile {
    margin-left: auto;
  }
  header {
    height: 62px;
    padding: 0 16px;
  }
  .header-title {
    flex: 1;
  }
  .header-title > span {
    margin: 0 7px;
  }
  .header-right .local-badge {
    font-size: 0;
    gap: 0;
  }
  #welcome,
  #messages {
    padding: 28px 22px 20px;
  }
  .welcome-top {
    margin: 10px 0 29px;
  }
  #welcome h1 {
    font-size: 43px;
    letter-spacing: -1.6px;
  }
  #welcome > p {
    font-size: 12px;
    margin-bottom: 27px;
  }
  #welcome > p br {
    display: none;
  }
  .suggestions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .suggestions button {
    min-height: 76px;
    padding: 18px 18px 18px 59px;
  }
  .card-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    margin: 0;
  }
  .suggestions small {
    font-size: 10px;
    margin-top: 6px;
  }
  .arrow {
    top: 29px;
  }
  .welcome-note {
    margin-top: 19px;
    font-size: 9px;
  }
  .composer-area {
    padding: 8px 14px max(14px, env(safe-area-inset-bottom));
  }
  #composer {
    padding: 12px;
  }
  .composer-controls {
    gap: 9px;
    margin-top: 5px;
  }
  footer {
    font-size: 8px;
    justify-content: center;
  }
  footer > span:first-child {
    display: none;
  }
  .message.user {
    margin-left: 8%;
  }
  .notice {
    flex-wrap: wrap;
  }
  .notice > div {
    width: 100%;
  }
  .voice-panel {
    gap: 9px;
    padding: 10px;
  }
  .voice-panel .quiet {
    font-size: 10px;
  }
  .voice-orb {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }
  textarea {
    font-size: 16px;
  }
  .read-aloud {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
