:root {
  color-scheme: dark;
  --bg: #101116;
  --panel: #15161d;
  --panel-raised: #191a23;
  --panel-soft: #1d1e28;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f3ff;
  --muted: #9999a8;
  --dim: #6f7080;
  --violet: #a394ff;
  --violet-bright: #b8aaff;
  --cyan: #7ed8d2;
  --mint: #99e0c2;
  --danger: #ff9fa8;
  --radius: 18px;
  --sidebar: 256px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: radial-gradient(
      ellipse at 69% 34%,
      rgba(94, 75, 165, 0.08),
      transparent 35%
    ),
    var(--bg);
  color: var(--text);
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 15px 15px;
  background: rgba(18, 19, 25, 0.9);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(24px);
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  padding: 0 10px;
  margin-bottom: 31px;
}
.brand-mark,
.auth-logo {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #252333, #141922);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 24px rgba(116, 96, 210, 0.12);
}
.brand-mark svg,
.auth-logo svg {
  width: 31px;
  height: 31px;
  overflow: visible;
}
.brand-mark circle,
.auth-logo circle {
  fill: #ad9cff;
}
.brand-mark ellipse,
.auth-logo ellipse {
  fill: none;
  stroke: #a99cff;
  stroke-width: 1.7;
}
.brand-mark .brand-spark,
.auth-logo .brand-spark {
  fill: #83ddd4;
}
.brand-copy {
  display: grid;
  gap: 1px;
}
.brand-copy strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brand-copy small {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #777989;
  font-weight: 700;
}
.new-chat {
  height: 43px;
  border: 1px solid rgba(171, 155, 255, 0.19);
  border-radius: 12px;
  background: linear-gradient(
    110deg,
    rgba(130, 110, 220, 0.14),
    rgba(90, 82, 153, 0.06)
  );
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
}
.new-chat:hover {
  border-color: rgba(180, 166, 255, 0.4);
  background: rgba(139, 122, 229, 0.16);
}
.plus-icon {
  font-size: 19px;
  color: var(--violet-bright);
  line-height: 1;
}
.new-chat kbd {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 9px;
  color: #9b9bab;
}
.side-label {
  font-size: 10px;
  font-weight: 650;
  color: #717282;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 11px;
  margin: 30px 0 11px;
}
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a7a7b5;
  text-align: left;
  padding: 11px 12px;
  margin: 2px 0;
  font-size: 12px;
  font-weight: 530;
  cursor: pointer;
  transition: 0.15s;
}
.side-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #eceaf4;
}
.side-link.active {
  background: linear-gradient(
    90deg,
    rgba(143, 124, 237, 0.17),
    rgba(143, 124, 237, 0.065)
  );
  color: #e7e0ff;
}
.side-link.active:before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 18px;
  border-radius: 3px;
  background: #ad9bff;
  box-shadow: 0 0 12px #9881ff;
}
.side-icon {
  font-size: 17px;
  color: #b5a7ff;
  width: 16px;
  text-align: center;
}
.telegram-mark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(126, 216, 210, 0.4);
  color: var(--cyan);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.sidebar-spacer {
  flex: 1;
}
.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  margin: 0 0 14px;
}
.privacy-icon {
  font-size: 16px;
  color: var(--mint);
}
.privacy-card strong {
  font-size: 10px;
  font-weight: 620;
}
.privacy-card p {
  font-size: 9px;
  line-height: 1.5;
  color: #858595;
  margin: 5px 0 0;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 15px 6px 3px;
}
.avatar {
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #a48fff, #7162cb);
  color: #171524;
  font-weight: 750;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(137, 117, 236, 0.18);
}
.avatar.small {
  width: 31px;
  height: 31px;
  border-radius: 11px;
}
.profile-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.profile-copy strong {
  font-size: 10px;
  font-weight: 600;
}
.profile-copy small {
  font-size: 9px;
  color: #7b7c8a;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #898997;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f4f2ff;
}
.profile-row .icon-button {
  margin-left: auto;
}
.main-panel {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.topbar {
  height: 66px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 22, 0.68);
  backdrop-filter: blur(18px);
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.crumb-muted {
  color: #797a89;
}
.crumb-slash {
  color: #464752;
}
.breadcrumb strong {
  font-weight: 600;
  color: #d6d5de;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.browser-button {
  height: 29px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(126, 216, 210, 0.25);
  border-radius: 9px;
  background: rgba(126, 216, 210, 0.08);
  color: #bfe9e4;
  font-size: 10px;
  cursor: pointer;
}
.browser-button:hover {
  background: rgba(126, 216, 210, 0.17);
}
.browser-button > span:first-child {
  color: var(--cyan);
  font-size: 15px;
}
.connection-status {
  height: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0 10px;
  color: #999aa8;
  font-size: 9px;
}
.connection-status i {
  width: 6px;
  height: 6px;
  background: #dfba74;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(223, 186, 116, 0.55);
}
.connection-status.online i {
  background: #82d6b4;
  box-shadow: 0 0 8px rgba(130, 214, 180, 0.6);
}
.connection-status.offline i {
  background: #ed8990;
}
.install-button {
  height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(164, 147, 255, 0.25);
  border-radius: 9px;
  background: rgba(152, 132, 244, 0.12);
  font-size: 10px;
  cursor: pointer;
}
.install-button:hover {
  background: rgba(152, 132, 244, 0.21);
}
.install-button span {
  margin-right: 5px;
  color: var(--violet-bright);
}
.theme-button {
  font-size: 18px;
}
.mobile-menu {
  display: none;
}
.conversation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #383844 transparent;
  padding: 25px max(22px, calc((100% - 790px) / 2)) 32px;
  position: relative;
}
.welcome {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 0 20px;
  animation: fade-up 0.65s both;
}
.welcome-orbit {
  width: 108px;
  height: 108px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 19px;
}
.orbit-core {
  width: 50px;
  height: 50px;
  z-index: 1;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #d9d1ff;
  font-size: 25px;
  background: radial-gradient(circle at 35% 25%, #3a3555, #20212b 70%);
  box-shadow:
    0 0 36px rgba(157, 132, 247, 0.2),
    inset 0 0 0 1px rgba(203, 190, 255, 0.15);
}
.ring {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(170, 150, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-30deg) scaleY(0.58);
}
.ring-two {
  inset: 0;
  transform: rotate(56deg) scaleY(0.58);
  border-color: rgba(116, 215, 207, 0.18);
}
.ring-three {
  inset: 17px;
  transform: rotate(85deg) scaleY(0.67);
  border-color: rgba(205, 185, 255, 0.17);
}
.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #87ddd2;
  box-shadow: 0 0 11px #7cdbd2;
  top: 18px;
  right: 16px;
}
.dot-b {
  width: 4px;
  height: 4px;
  left: 16px;
  top: 73px;
  background: #c1adff;
  box-shadow: 0 0 10px #ac94ff;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a496e8;
  font-size: 9px;
  letter-spacing: 1.65px;
  font-weight: 680;
  margin: 0 0 15px;
}
.eyebrow-line {
  width: 17px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ab98ff);
}
.welcome h1 {
  font-size: clamp(38px, 5.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -2.7px;
  font-weight: 640;
  margin: 0;
  background: linear-gradient(145deg, #fff 15%, #e6e0ff 57%, #9cdbd2 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.welcome h1 span {
  background: linear-gradient(90deg, #a897ff, #89d9d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.welcome-copy {
  font-size: 13px;
  line-height: 1.7;
  color: #9b9ba9;
  margin: 15px 0 28px;
}
.mobile-break {
  display: none;
}
.suggestion-grid {
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: left;
}
.suggestion-card {
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 15px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.suggestion-card:hover {
  transform: translateY(-3px);
  border-color: rgba(162, 145, 255, 0.35);
  background: linear-gradient(
    145deg,
    rgba(150, 128, 241, 0.105),
    rgba(255, 255, 255, 0.02)
  );
}
.suggestion-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 14px;
}
.suggestion-icon.violet {
  color: #c7b8ff;
  background: rgba(151, 129, 255, 0.13);
}
.suggestion-icon.blue {
  color: #9ecaff;
  background: rgba(104, 157, 226, 0.13);
}
.suggestion-icon.mint {
  color: #99e1cd;
  background: rgba(110, 202, 174, 0.13);
}
.suggestion-card strong {
  font-size: 10px;
  font-weight: 620;
  display: block;
  margin: 0 0 6px;
}
.suggestion-card small {
  color: #858694;
  font-size: 9px;
  line-height: 1.5;
  display: block;
}
.card-arrow {
  position: absolute;
  right: 13px;
  top: 14px;
  color: #717181;
  font-size: 12px;
}
.message-list {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.message-list:empty {
  display: none;
}
.welcome:has(~ .message-list:not(:empty)) {
  display: none;
}
.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fade-up 0.3s both;
}
.message.user {
  justify-content: flex-end;
}
.message-avatar {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #a48fff, #7162cb);
  color: #171524;
  font-size: 12px;
  font-weight: 700;
}
.message-body {
  min-width: 0;
  max-width: min(86%, 650px);
}
.message.user .message-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 7px;
  color: #90909f;
  font-size: 9px;
}
.message-meta strong {
  color: #cccbd6;
  font-size: 10px;
  font-weight: 620;
}
.message.user .message-meta {
  justify-content: flex-end;
}
.message-bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
  color: #dbdae4;
}
.message.user .message-bubble {
  white-space: pre-wrap;
  padding: 10px 14px;
  border: 1px solid rgba(166, 150, 255, 0.16);
  border-radius: 15px 4px 15px 15px;
  background: linear-gradient(
    145deg,
    rgba(131, 112, 225, 0.18),
    rgba(99, 84, 168, 0.12)
  );
  color: #f1effa;
}
.message-bubble a {
  color: #b6a6ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.message-bubble strong {
  color: #fff;
  font-weight: 650;
}
.message-bubble code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.94em;
}
.typing .message-bubble {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 30px;
}
.typing-dot {
  width: 5px;
  height: 5px;
  background: #aaa2d8;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.17s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.34s;
}
.composer-area {
  flex: 0 0 auto;
  padding: 0 max(22px, calc((100% - 790px) / 2))
    max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, #101116 67%, rgba(16, 17, 22, 0));
  z-index: 1;
}
.composer {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(30, 31, 41, 0.97),
    rgba(23, 24, 32, 0.98)
  );
  box-shadow:
    0 12px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  padding: 14px 14px 10px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.composer:focus-within {
  border-color: rgba(169, 151, 255, 0.38);
  box-shadow:
    0 0 0 3px rgba(141, 120, 235, 0.08),
    0 15px 44px rgba(0, 0, 0, 0.26);
}
.composer textarea {
  display: block;
  width: 100%;
  min-height: 33px;
  max-height: 145px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f3ff;
  font-size: 13px;
  line-height: 1.55;
  padding: 0 2px 5px;
}
.composer textarea::placeholder {
  color: #797a89;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
}
.composer-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #777988;
  font-size: 9px;
}
.hint-spark {
  color: #aa98ff;
  font-size: 13px;
}
.composer-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}
.char-count {
  color: #737483;
  font-size: 8px;
}
.send-button {
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #b2a1ff, #8978e4);
  color: #171523;
  cursor: pointer;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.send-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
.send-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}
.send-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footnote {
  display: flex;
  justify-content: center;
  gap: 7px;
  color: #626371;
  font-size: 8px;
  margin-top: 9px;
}
.footnote-divider {
  color: #484955;
}
.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(
      ellipse at 52% 40%,
      rgba(82, 64, 145, 0.15),
      transparent 48%
    ),
    rgba(12, 13, 18, 0.94);
  backdrop-filter: blur(18px);
}
.auth-layer[hidden] {
  display: none;
}
.browser-layer {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 18px;
  background: rgba(8, 9, 14, 0.88);
  backdrop-filter: blur(14px);
}
.browser-card {
  width: min(100%, 980px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(145deg, #1c1d27, #14151b);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}
.browser-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}
.browser-heading .eyebrow {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 1.1px;
}
.browser-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}
.browser-safety {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 216, 210, 0.2);
  border-radius: 10px;
  background: rgba(126, 216, 210, 0.06);
  color: #a9d7d1;
  font-size: 10px;
  line-height: 1.6;
}
.browser-address,
.browser-type-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.browser-address input,
.browser-type-form input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  background: #101117;
  color: #f3f0ff;
  font-size: 11px;
}
.browser-address input:focus,
.browser-type-form input:focus {
  border-color: rgba(172, 154, 255, 0.55);
}
.browser-address button,
.browser-type-form button,
.browser-key-row button {
  height: 36px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 10px;
  cursor: pointer;
}
.browser-address button:hover,
.browser-type-form button:hover,
.browser-key-row button:hover {
  background: rgba(255, 255, 255, 0.12);
}
.browser-viewport {
  min-height: 180px;
  max-height: 52dvh;
  overflow: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #090a0e;
}
.browser-screen {
  display: block;
  max-width: 100%;
  max-height: 52dvh;
  width: auto;
  height: auto;
  margin: auto;
  cursor: crosshair;
}
.browser-placeholder {
  padding: 26px 16px;
  color: #9999a8;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
.browser-page-status {
  min-height: 26px;
  padding: 7px 2px 4px;
  color: #a5a5b3;
  font-size: 9px;
  overflow-wrap: anywhere;
}
.browser-type-form {
  margin: 3px 0 8px;
}
.browser-type-form button[type="submit"] {
  border-color: rgba(173, 156, 255, 0.28);
  background: rgba(152, 132, 244, 0.15);
}
.browser-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.browser-key-row button {
  min-width: 44px;
  height: 32px;
}
.browser-key-row .browser-end-button {
  margin-left: auto;
  border-color: rgba(255, 159, 168, 0.3);
  color: var(--danger);
}
.browser-footnote {
  margin: 10px 1px 0;
  color: #888896;
  font-size: 9px;
  line-height: 1.6;
}
.auth-card {
  width: min(100%, 410px);
  padding: 37px 34px 27px;
  border: 1px solid var(--line-strong);
  border-radius: 23px;
  background: linear-gradient(
    145deg,
    rgba(29, 29, 39, 0.98),
    rgba(19, 20, 27, 0.98)
  );
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
  animation: fade-up 0.36s both;
}
.auth-logo {
  width: 45px;
  height: 45px;
  margin-bottom: 22px;
}
.auth-logo svg {
  width: 36px;
  height: 36px;
}
.auth-card .eyebrow {
  font-size: 8px;
  margin-bottom: 10px;
}
.auth-card h2 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0;
  color: #f3f0ff;
}
.auth-copy {
  font-size: 11px;
  line-height: 1.7;
  color: #9695a6;
  margin: 12px 0 24px;
}
.auth-card label {
  display: block;
  margin: 0 0 7px;
  font-size: 10px;
  color: #c4c1d2;
}
.password-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #14151c;
  padding-right: 8px;
}
.password-field:focus-within {
  border-color: rgba(172, 154, 255, 0.5);
}
.password-field input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f3f0ff;
  font-size: 13px;
}
.password-field button {
  border: 0;
  background: transparent;
  color: #9995ad;
  font-size: 9px;
  cursor: pointer;
  padding: 7px;
}
.login-button {
  width: 100%;
  height: 43px;
  margin-top: 13px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(105deg, #ad9cff, #8875e2);
  color: #191624;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.login-button:hover {
  filter: brightness(1.09);
}
.login-button span {
  margin-left: 7px;
  font-size: 15px;
}
.auth-error {
  min-height: 16px;
  color: var(--danger);
  font-size: 10px;
  margin: 8px 0 2px;
}
.auth-footnote {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 15px 0 0;
  text-align: center;
  color: #777887;
  font-size: 9px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 30;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  max-width: min(90vw, 440px);
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #22232d;
  color: #eeeafa;
  font-size: 10px;
  line-height: 1.5;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mobile-break {
  display: none;
}
body.light {
  color-scheme: light;
  --bg: #f6f5fa;
  --panel: #fff;
  --panel-raised: #fff;
  --line: rgba(41, 40, 56, 0.085);
  --line-strong: rgba(41, 40, 56, 0.14);
  --text: #242332;
  --muted: #737384;
  background: radial-gradient(
      ellipse at 69% 34%,
      rgba(135, 112, 227, 0.09),
      transparent 35%
    ),
    var(--bg);
  color: var(--text);
}
body.light .sidebar {
  background: rgba(252, 251, 255, 0.92);
}
body.light .topbar {
  background: rgba(246, 245, 250, 0.83);
}
body.light .crumb-muted,
body.light .connection-status {
  color: #777786;
}
body.light .welcome h1 {
  background: linear-gradient(145deg, #29263b 15%, #605789 57%, #2b9287 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.light .welcome h1 span {
  background: linear-gradient(90deg, #7462c9, #2d9589);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.light .suggestion-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.55)
  );
}
body.light .composer-area {
  background: linear-gradient(0deg, #f6f5fa 67%, rgba(246, 245, 250, 0));
}
body.light .composer {
  background: #fff;
  box-shadow: 0 12px 42px rgba(48, 42, 78, 0.08);
}
body.light .composer textarea {
  color: #252435;
}
body.light .message-bubble {
  color: #424150;
}
body.light .message.user .message-bubble {
  color: #302a48;
  background: linear-gradient(
    145deg,
    rgba(139, 118, 223, 0.18),
    rgba(142, 129, 198, 0.12)
  );
}
body.light .auth-layer {
  background: radial-gradient(
      ellipse at 52% 40%,
      rgba(143, 119, 227, 0.14),
      transparent 48%
    ),
    rgba(246, 245, 250, 0.96);
}
body.light .browser-layer {
  background: rgba(236, 235, 243, 0.9);
}
body.light .browser-card {
  background: linear-gradient(145deg, #fff, #f9f8fd);
}
body.light .browser-heading h2 {
  color: #282639;
}
body.light .browser-safety {
  color: #356d69;
}
body.light .browser-address input,
body.light .browser-type-form input {
  background: #fff;
  color: #282639;
}
body.light .auth-card {
  background: linear-gradient(145deg, #fff, #faf9fd);
}
body.light .auth-card h2 {
  color: #282639;
}
body.light .password-field {
  background: #fff;
}
body.light .password-field input {
  color: #282639;
}
body.light .toast {
  background: #252435;
  color: #fff;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  65%,
  100% {
    opacity: 0.32;
    transform: scale(0.8);
  }
  32% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@media (min-width: 1440px) {
  :root {
    --sidebar: 276px;
  }
  .topbar {
    height: 72px;
  }
  .conversation,
  .composer-area {
    padding-left: max(30px, calc((100% - 850px) / 2));
    padding-right: max(30px, calc((100% - 850px) / 2));
  }
  .suggestion-grid {
    width: min(100%, 750px);
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 230px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    padding: 0 22px;
  }
  .conversation {
    padding-left: 22px;
    padding-right: 22px;
  }
  .composer-area {
    padding-left: 22px;
    padding-right: 22px;
  }
  .suggestion-grid {
    width: min(100%, 630px);
    gap: 8px;
  }
  .suggestion-card {
    padding: 13px 12px;
    min-height: 112px;
  }
  .suggestion-card strong {
    font-size: 9px;
  }
  .suggestion-card small {
    font-size: 8px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(83vw, 290px);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.25);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open:after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.43);
    z-index: 2;
  }
  .topbar {
    height: 57px;
    padding: 0 13px;
    gap: 9px;
  }
  .mobile-menu {
    display: grid;
    flex: 0 0 auto;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px;
  }
  .connection-status {
    height: 25px;
    padding: 0 8px;
    font-size: 8px;
  }
  .top-actions {
    gap: 5px;
  }
  .theme-button {
    width: 30px;
    height: 30px;
  }
  .browser-button {
    width: 30px;
    height: 30px;
    justify-content: center;
    padding: 0;
  }
  .browser-button-label {
    display: none;
  }
  .browser-layer {
    place-items: stretch;
    padding: 0;
  }
  .browser-card {
    width: 100%;
    max-height: 100dvh;
    padding: 12px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .browser-heading h2 {
    font-size: 17px;
  }
  .browser-safety {
    font-size: 9px;
  }
  .browser-viewport {
    min-height: 155px;
    max-height: 42dvh;
  }
  .browser-screen {
    max-height: 42dvh;
  }
  .browser-address input,
  .browser-type-form input {
    height: 36px;
    font-size: 10px;
  }
  .browser-key-row button {
    min-width: 39px;
    height: 30px;
    padding: 0 8px;
  }
  .conversation {
    padding: 15px 16px 21px;
  }
  .welcome {
    justify-content: center;
    padding: 20px 0;
  }
  .welcome-orbit {
    width: 91px;
    height: 91px;
    margin-bottom: 15px;
  }
  .orbit-core {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }
  .welcome .eyebrow {
    font-size: 8px;
    margin-bottom: 12px;
  }
  .welcome h1 {
    font-size: 40px;
    line-height: 1.14;
    letter-spacing: -2px;
  }
  .welcome-copy {
    font-size: 11px;
    margin: 12px 0 23px;
  }
  .mobile-break {
    display: block;
  }
  .suggestion-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 7px;
  }
  .suggestion-card {
    min-height: 67px;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .suggestion-icon {
    flex: 0 0 auto;
  }
  .suggestion-card span:nth-child(2) {
    min-width: 0;
  }
  .suggestion-card strong {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .suggestion-card small {
    font-size: 8px;
  }
  .card-arrow {
    top: 25px;
  }
  .composer-area {
    padding: 0 12px max(18px, env(safe-area-inset-bottom));
  }
  .composer {
    padding: 11px 11px 8px;
    border-radius: 15px;
  }
  .composer textarea {
    font-size: 13px;
    min-height: 31px;
  }
  .composer-hint {
    font-size: 8px;
  }
  .send-button {
    width: 32px;
    height: 32px;
  }
  .footnote {
    font-size: 7px;
    margin-top: 7px;
  }
  .message-list {
    gap: 19px;
  }
  .message-bubble {
    font-size: 12px;
  }
  .message-body {
    max-width: 88%;
  }
  .auth-card {
    padding: 31px 25px 22px;
  }
  .auth-card h2 {
    font-size: 24px;
  }
  .install-button {
    height: 27px;
    font-size: 9px;
    padding: 0 8px;
  }
  .toast {
    bottom: calc(91px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 380px) {
  .welcome h1 {
    font-size: 35px;
  }
  .welcome-orbit {
    margin-bottom: 12px;
  }
  .suggestion-card small {
    font-size: 7px;
  }
  .composer-hint {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .footnote {
    font-size: 6.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessible keyboard focus and iOS visual-viewport sizing */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
body,
.app-shell {
  height: var(--app-height, 100dvh);
  min-height: 0;
}
@media (max-width: 700px) {
  .sidebar {
    height: var(--app-height, 100dvh);
  }
}

/* Compact mobile header and honor semantic hidden states */
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .breadcrumb {
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
  }
  .crumb-muted,
  .crumb-slash {
    display: none;
  }
  .breadcrumb strong {
    white-space: nowrap;
  }
  .connection-status {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    justify-content: center;
  }
  .connection-status > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .install-button {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 0;
  }
  .install-button span {
    margin: 0;
    font-size: 18px;
  }
}

.agent-capability {
  margin: -12px 0 20px;
  color: #888899;
  font-size: 9px;
  letter-spacing: 0.1px;
}
.approval-card {
  width: 100%;
  max-width: 760px;
  margin: 4px auto 22px;
  padding: 18px;
  border: 1px solid rgba(255, 190, 112, 0.3);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(75, 54, 31, 0.5), rgba(31, 28, 28, 0.92));
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.18);
  animation: fade-up 0.3s both;
}
.approval-card[hidden] { display: none; }
.approval-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.approval-heading .eyebrow { margin: 0 0 6px; color: #e2b675; font-size: 8px; }
.approval-heading h2 { margin: 0; color: #fff1d9; font-size: 15px; line-height: 1.45; }
.approval-lock { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255, 190, 112, 0.4); border-radius: 50%; color: #f3c582; font-weight: 700; }
.approval-site { margin: 14px 0 12px; padding: 9px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.18); color: #f1d7ac; font-size: 10px; overflow-wrap: anywhere; }
.approval-summary, .approval-fields dl { margin: 0; }
.approval-summary > div, .approval-fields dl > div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.approval-summary dt, .approval-fields dt { color: #a9a0a0; font-size: 9px; }
.approval-summary dd, .approval-fields dd { margin: 0; color: #eee8e1; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.approval-fields { margin-top: 10px; }
.approval-fields h3 { margin: 0 0 2px; color: #d9c8b1; font-size: 10px; font-weight: 650; }
.approval-page-details { margin-top: 11px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 9px; }
.approval-page-details summary { color: #d8b981; cursor: pointer; font-size: 10px; }
.approval-page-details pre { max-height: 190px; overflow: auto; margin: 8px 0 0; padding: 9px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 8px; background: rgba(0,0,0,0.22); color: #d7d1c9; font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.approval-expiry { margin: 12px 0 10px; color: #c6a978; font-size: 9px; }
.approval-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.approval-actions button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(255,255,255,0.055); color: var(--text); font-size: 10px; cursor: pointer; }
.approval-actions button:hover { background: rgba(255,255,255,0.12); }
.approval-actions button:disabled { cursor: wait; opacity: 0.5; }
.approval-confirm-button { border-color: rgba(153, 224, 194, 0.38) !important; background: rgba(109, 196, 160, 0.14) !important; color: #b9ead5 !important; }
.approval-cancel-button { border-color: rgba(255, 159, 168, 0.3) !important; color: var(--danger) !important; }
.approval-help { margin: 11px 0 0; color: #9d9792; font-size: 9px; line-height: 1.6; }
@media (max-width: 700px) {
  .agent-capability { margin-bottom: 14px; }
  .approval-card { padding: 14px; }
  .approval-actions { justify-content: stretch; }
  .approval-actions button { flex: 1 1 30%; }
}
