:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #172343;
  background: #eef4ff;
  font-synthesis: none;
  font-size: 14px;
  --blue: #3677ff;
  --muted: #7785a1;
  --line: #e7ecf7;
  --shadow: 0 12px 45px #5576af0c;
  --viewport-height: 100vh;
  --viewport-height: 100dvh;
  --viewport-top: 0px;
  --keyboard-inset: 0px;
  --composer-bottom: max(20px, env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 48% 40%, #def1ff99, transparent 50%),
    linear-gradient(128deg, #f1f3ff, #edf7ff 52%, #f1f0ff);
  background-attachment: fixed;
}
:root.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}
:root.modal-open body {
  position: fixed;
  top: var(--modal-scroll-top);
  left: 0;
  right: var(--modal-scrollbar-gap);
  width: auto;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #6fa5ff;
  outline-offset: 4px;
}
button {
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
.ambient {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}
.ambient-one {
  width: 650px;
  height: 650px;
  left: -420px;
  top: -150px;
  background: linear-gradient(120deg, #cbd3ff, #ceecff);
  box-shadow: 10px 20px 80px #bbd4ff66;
}
.ambient-two {
  width: 850px;
  height: 850px;
  right: -680px;
  top: 15vh;
  background: linear-gradient(160deg, #dcd9ff, #cce8ff);
  box-shadow: -40px 0 100px #d4dbff66;
}
.orbit {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border: 2px solid #ffffffc9;
  border-radius: 50%;
  transform: rotate(-32deg);
}
.orbit-one {
  width: 750px;
  height: 270px;
  left: -530px;
  top: 100px;
}
.orbit-two {
  width: 800px;
  height: 320px;
  right: -660px;
  top: 50vh;
}
.topbar {
  height: 94px;
  max-width: 1440px;
  padding: 0 54px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand-symbol {
  font-size: 37px;
  line-height: 1;
  color: var(--blue);
}
.brand-dot {
  color: var(--blue);
}
.brand small {
  display: block;
  font-size: 10px;
  color: #7283a5;
  letter-spacing: 1.8px;
  margin-top: 3px;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.campus-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #7b89a7;
  letter-spacing: 1px;
}
.campus-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ba4fa;
}
.quiet-button {
  background: transparent;
  padding: 8px;
  color: #72819d;
  font-size: 12px;
}
.quiet-button:hover {
  color: var(--blue);
}
.avatar-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #70baff, #8384f7);
  box-shadow: 0 3px 12px #5086ec20;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.chat-page {
  max-width: 930px;
  margin: 0 auto;
  padding: 32px 28px calc(var(--composer-space, 150px) + var(--composer-bottom) + var(--keyboard-inset));
}
.hero {
  text-align: center;
  margin: 12px 0 62px;
  transition: margin 0.3s;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #93a4c6;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 3.5vw, 46px);
  letter-spacing: 1px;
  margin: 0 0 20px;
  font-weight: 750;
  line-height: 1.4;
}
.hero h1 span {
  color: var(--blue);
  font-style: normal;
  position: relative;
}
.hero h1 span:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 5px;
  background: #8ab7ff44;
  border-radius: 100%;
}
.hero p {
  font-size: 15px;
  color: #7687a7;
  letter-spacing: 1px;
  margin: 0;
}
.hero-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  color: #9ba8bf;
  font-size: 11px;
}
.hero-meta b {
  font-weight: 400;
}
.glass {
  background: #ffffffb3;
  border: 1px solid #ffffffd9;
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.login-panel {
  max-width: 390px;
  margin: -16px auto 0;
  padding: 29px 32px;
}
.login-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}
.mini-spark {
  font-size: 36px;
  color: #7ca5ff;
}
.login-heading h2 {
  font-size: 18px;
  margin: 0 0 6px;
}
.login-heading p {
  margin: 0;
  color: #8b99b1;
  font-size: 12px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6f7d97;
  margin: 16px 0;
}
input {
  width: 100%;
  display: block;
  border: 1px solid #e1e8f5;
  background: #f8faffb3;
  border-radius: 12px;
  padding: 13px 14px;
  margin-top: 8px;
  color: #253354;
  outline: none;
  min-width: 0;
}
input:focus {
  border-color: #8ab4ff;
  box-shadow: 0 0 0 3px #d8e8ff66;
}
input::placeholder {
  color: #a4afc2;
}
.primary-button {
  padding: 13px 19px;
  background: linear-gradient(135deg, #52aaff, #3677ff 75%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 16px #3677ff24;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  font-size: 13px;
}
.primary-button:hover {
  box-shadow: 0 7px 20px #3677ff35;
}
.primary-button span {
  margin-left: auto;
}
.login-note {
  text-align: center;
  color: #9da9be;
  font-size: 10px;
  margin: 18px 0 0;
}
.form-error {
  color: #c3606c;
  font-size: 12px;
  line-height: 1.6;
  min-height: 0;
  margin: 8px 0;
}
.form-error:empty {
  display: none;
}
.assistant-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.assistant-row > div:last-child {
  flex: 1;
  min-width: 0;
}
.bot {
  width: 41px;
  height: 39px;
  flex: 0 0 41px;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #c3d7ff);
  border: 3px solid #e9f2ff;
  box-shadow: 0 4px 12px #7096da25;
  position: relative;
  margin-top: 4px;
  display: grid;
  place-items: center;
}
.bot:before {
  content: "";
  height: 8px;
  width: 3px;
  background: #8aaeff;
  position: absolute;
  top: -9px;
  left: 17px;
  border-radius: 3px;
}
.bot-face {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 27px;
  height: 17px;
  border-radius: 8px;
  background: #173566;
  box-shadow: inset 0 2px 4px #041a38;
}
.bot-face i {
  width: 5px;
  height: 6px;
  border-radius: 3px;
  background: #81e5ff;
  box-shadow: 0 0 5px #81e5ff80;
}
.hello-bubble {
  border-radius: 5px 20px 20px;
  background: #ffffffbf;
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 17px 22px;
  box-shadow: var(--shadow);
  font-weight: 550;
  font-size: 15px;
}
.hello-bubble span {
  color: #92affc;
}
.hello-bubble .hello-copy {
  color: inherit;
  min-width: 0;
  line-height: 1.7;
}
.hello-copy em {
  color: #92affc;
  font-style: normal;
  white-space: nowrap;
}
.try-label {
  font-size: 11px;
  color: #9aa8bf;
  margin: 26px 0 12px 2px;
  letter-spacing: 0.5px;
}
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 24px;
}
.prompt-grid button {
  text-align: left;
  border: 1px solid #ffffffd9;
  background: #ffffff70;
  border-radius: 17px;
  padding: 17px 16px;
  position: relative;
  color: #445879;
  box-shadow: 0 5px 22px #5576af04;
}
.prompt-grid button:hover {
  background: #fff;
  box-shadow: 0 7px 25px #709ce215;
}
.prompt-grid button > span {
  display: block;
  font-size: 24px;
  color: #6a98f5;
  margin-bottom: 16px;
  line-height: 1;
}
.prompt-grid button:nth-child(2) > span {
  color: #a08beb;
}
.prompt-grid button:nth-child(3) > span {
  color: #57b6b1;
}
.prompt-grid strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.prompt-grid small {
  display: block;
  margin-top: 8px;
  color: #99a5b9;
  font-size: 10px;
}
.prompt-grid b {
  position: absolute;
  top: 17px;
  right: 17px;
  font-weight: 400;
  color: #9aaacd;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.messages:empty {
  display: none;
}
.message-user {
  align-self: flex-end;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 85%;
}
.user-bubble {
  padding: 15px 22px;
  background: linear-gradient(140deg, #56b5ff, #3a82ff);
  color: white;
  border-radius: 20px 5px 20px 20px;
  line-height: 1.7;
  box-shadow: 0 5px 20px #3c90ff19;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-assistant {
  width: 100%;
}
.answer-box {
  background: #ffffffb8;
  border: 1px solid #ffffffc9;
  border-radius: 6px 23px 23px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.answer-text {
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.answer-text + .opportunity-list {
  margin-top: 18px;
}
.markdown-body {
  white-space: normal;
  min-width: 0;
}
.markdown-body > :first-child {
  margin-top: 0;
}
.markdown-body > :last-child {
  margin-bottom: 0;
}
.markdown-body p {
  margin: 0 0 0.7em;
}
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-size: 1.08em;
  line-height: 1.6;
  margin: 1em 0 0.45em;
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5em;
  margin: 0.5em 0;
}
.markdown-body li + li {
  margin-top: 0.3em;
}
.markdown-body li > p {
  margin-bottom: 0.2em;
}
.markdown-body a {
  color: #3578cf;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.user-bubble a {
  color: inherit;
}
.markdown-body blockquote {
  margin: 0.65em 0;
  padding-left: 1em;
  border-left: 3px solid #a8c8fa;
  opacity: 0.85;
}
.markdown-body code {
  font:
    0.9em/1.6 ui-monospace,
    monospace;
  background: #7894bd15;
  border-radius: 5px;
  padding: 0.12em 0.35em;
}
.markdown-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px;
  background: #7894bd10;
  border-radius: 10px;
  white-space: pre;
}
.markdown-body pre code {
  padding: 0;
  background: none;
}
.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1em 0;
}
.markdown-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 0.75em 0;
}
.markdown-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}
.markdown-table th,
.markdown-table td {
  border: 1px solid #dce6f4;
  padding: 7px 10px;
  text-align: left;
  white-space: normal;
}
.markdown-table th {
  background: #eaf2ff80;
}
.message-assistant > div:last-child {
  min-width: 0;
  max-width: 100%;
  flex: 1;
}
.streaming-answer {
  margin-top: 12px;
}
.streaming-answer .answer-text::after {
  content: "▍";
  color: #5896ef;
}
.opportunity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opportunity-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 17px;
  background: #fff;
  border: 1px solid #eef2fa;
  border-radius: 17px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.opportunity-card:hover,
.opportunity-card:focus-within {
  border-color: #bed5ff;
  box-shadow: 0 4px 16px #5576af12;
}
.company-icon {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #eef2ff;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.company-icon--brand {
  background: #fff;
  border: 1px solid #e8edf5;
  padding: 3px;
}
.company-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.card-content {
  min-width: 0;
  overflow-wrap: anywhere;
}
.card-heading {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.card-title {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
  font-weight: 650;
}
.type-tag {
  font-size: 10px;
  color: #7d8caa;
  background: #f4f6fc;
  border-radius: 5px;
  padding: 3px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.type-tag--major,
.type-tag--startup {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 7px;
  color: #fff;
}
.type-tag--major {
  background: #2563eb;
  box-shadow: 0 2px 6px #2563eb26;
}
.type-tag--startup {
  background: #b45309;
  box-shadow: 0 2px 6px #b4530926;
}
.card-meta {
  color: #95a1b7;
  font-size: 10px;
  margin: 7px 0;
  line-height: 1.6;
}
.card-match {
  font-size: 12px;
  color: #7c8aa5;
  line-height: 1.7;
  margin: 0;
}
.detail-button {
  border-radius: 18px;
  color: #4e85ec;
  font-weight: 550;
  font-size: 10px;
  white-space: nowrap;
  background: #eff5ff;
  padding: 9px 12px;
  align-self: center;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.suggestions button {
  color: #5c87d9;
  background: #e8f2ff;
  border-radius: 20px;
  padding: 9px 15px;
  font-size: 12px;
}
.suggestions button:nth-child(2) {
  color: #9880d8;
  background: #efe9ff;
}
.suggestions button:nth-child(3) {
  color: #529e9b;
  background: #e0f6f3;
}
.status-bubble {
  background: #ffffffab;
  padding: 16px 20px;
  border-radius: 5px 20px 20px;
  color: #8c9bb3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: fit-content;
  font-size: 12px;
}
.spinner {
  height: 14px;
  width: 14px;
  border: 2px solid #d8e9ff;
  border-top-color: #62abff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-bubble {
  color: #ad6d7a;
}
.composer-wrap {
  position: fixed;
  bottom: calc(var(--keyboard-inset) + var(--composer-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, calc(100% - 48px));
  z-index: 5;
}
.composer {
  padding: 10px 11px 10px 22px;
  background: #fffffff0;
  border: 1px solid #fff;
  border-radius: 32px;
  box-shadow: 0 10px 40px #6b85bf14;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(20px);
}
.composer-spark {
  color: #99b1ff;
  font-size: 27px;
}
.composer textarea {
  border: 0;
  outline: none;
  background: transparent;
  resize: none;
  line-height: 1.6;
  max-height: 135px;
  min-height: 25px;
  flex: 1;
  min-width: 0;
  width: 0;
  padding: 0;
  color: #384865;
  font-size: 14px;
}
.composer textarea::placeholder {
  color: #9da9bf;
}
.composer > button[type="submit"] {
  background: linear-gradient(140deg, #59aeff, #346cff);
  color: white;
  box-shadow: 0 4px 10px #558bff25;
  font-size: 22px;
  border: 4px solid #eff5ff;
  border-radius: 50%;
  width: 49px;
  height: 49px;
  flex-shrink: 0;
  transform: rotate(-25deg);
  padding-bottom: 2px;
}
.composer-footer {
  display: flex;
  justify-content: space-between;
  margin: 10px 20px 0;
  color: #97a6be;
  font-size: 10px;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.composer-error {
  font-size: 12px;
  color: #b56371;
  text-align: center;
  margin: 8px 0 0;
}
.stop-button {
  border-radius: 20px;
  background: #eef3ff;
  color: #6b84b1;
  padding: 12px 18px;
}
.chat-page.has-conversation .hero {
  margin: 0 0 35px;
}
.chat-page.has-conversation .hero h1 {
  font-size: 27px;
  margin-bottom: 8px;
}
.chat-page.has-conversation .hero .eyebrow,
.chat-page.has-conversation .hero-meta {
  display: none;
}
.chat-page.has-conversation .hero p {
  font-size: 12px;
}
.chat-page.has-conversation {
  padding-top: 5px;
}
dialog {
  position: fixed;
  inset: calc(var(--viewport-top) + var(--viewport-height) / 2) 0 auto;
  margin: 0 auto;
  transform: translateY(-50%);
  border: 1px solid #fff;
  border-radius: 24px;
  padding: 28px;
  background: #fdfefe;
  color: #273653;
  width: min(440px, calc(100vw - 32px));
  max-height: min(85vh, calc(var(--viewport-height) - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 100px #253b6a24;
}
dialog::backdrop {
  background: #26385b30;
  backdrop-filter: blur(7px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
}
.dialog-header h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 5px 0;
}
.dialog-header small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #9aabc7;
}
.close-button {
  border-radius: 50%;
  background: #f1f5fb;
  color: #91a0ba;
  font-size: 23px;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  line-height: 1;
}
.detail-dialog {
  width: min(720px, calc(100vw - 32px));
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}
.detail-dialog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.detail-dialog::backdrop {
  touch-action: none;
}
.detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #8293ae;
  font-size: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.original-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.95;
  margin-top: 24px;
  color: #4a5972;
}
.detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #9ca9bd;
  font-size: 10px;
}
.secondary-button {
  background: #edf3ff;
  color: #5e88cd;
  border: 1px solid #e4ecfc;
  border-radius: 11px;
  padding: 11px 16px;
  font-size: 12px;
  white-space: nowrap;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.original-link-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.comments-title {
  font-size: 12px;
  color: #8797b0;
  margin-top: 28px;
}
.comment {
  background: #f4f7fc;
  padding: 14px;
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #728099;
  font-size: 12px;
  line-height: 1.8;
  margin: 8px 0;
}
.side-dialog {
  position: fixed;
  inset: var(--viewport-top) auto auto 0;
  margin: 12px;
  height: calc(var(--viewport-height) - 24px);
  max-height: calc(var(--viewport-height) - 24px);
  width: min(360px, calc(100vw - 48px));
  overflow: hidden;
  transform: none;
}
.side-dialog[open] {
  display: flex;
  flex-direction: column;
}
.side-dialog .dialog-header,
.side-dialog > .primary-button {
  flex-shrink: 0;
}
.side-dialog::backdrop {
  touch-action: none;
}
.history-list {
  margin-top: 22px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  flex: 1;
}
.history-list::-webkit-scrollbar {
  display: none;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #eff3fa;
}
.history-open {
  background: transparent;
  text-align: left;
  padding: 13px 5px;
  flex: 1;
  min-width: 0;
  color: #617491;
  min-height: 56px;
}
.history-open strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.history-open small {
  font-size: 10px;
  display: block;
  color: #a3afc1;
  margin-top: 6px;
}
.history-delete {
  background: none;
  color: #aab6c9;
  font-size: 16px;
  min-width: 44px;
  min-height: 44px;
}
.empty-note {
  font-size: 12px;
  color: #a0acc0;
  text-align: center;
  padding: 30px 0;
}
.logout {
  display: block;
  margin: 20px auto 0;
}
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #334669;
  color: white;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 12px;
  z-index: 30;
  max-width: 90vw;
  box-shadow: 0 10px 30px #243c6a20;
}
.admin-page {
  max-width: 1200px;
  margin: 25px auto 80px;
  padding: 0 35px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.admin-heading h1 {
  margin: 0;
  font-size: 32px;
}
.admin-heading .eyebrow {
  margin-bottom: 12px;
}
.admin-heading p {
  color: #8a9ab3;
  font-size: 12px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.stat-card {
  background: #ffffffb5;
  padding: 24px;
  border: 1px solid #fff;
  border-radius: 20px;
}
.stat-card small {
  font-size: 11px;
  color: #8d9eb8;
}
.stat-card strong {
  font-size: 29px;
  letter-spacing: -1px;
  display: block;
  margin: 15px 0 7px;
  color: #416394;
  font-weight: 600;
}
.stat-card p {
  font-size: 10px;
  color: #a2aec1;
  margin: 0;
}
.admin-section {
  margin-top: 22px;
  padding: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 16px;
  margin: 0;
}
.section-heading > span {
  font-size: 10px;
  color: #96a4bb;
}
.compact {
  width: auto;
  padding: 10px 15px;
  font-size: 11px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: #97a6bc;
  font-size: 11px;
  padding: 13px 10px;
  background: #f4f7fc88;
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid #edf1f8;
  color: #677992;
  font-size: 11px;
}
td small {
  display: block;
  color: #a2aec0;
  font-size: 10px;
  margin-top: 4px;
}
.table-action {
  background: none;
  color: #628bd5;
  font-size: 10px;
  padding: 5px;
}
.table-action.danger {
  color: #b6858e;
}
.badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 6px;
  background: #e8f5f1;
  color: #62a396;
  font-size: 10px;
}
.badge.off {
  background: #f7edef;
  color: #b78691;
}
.quota-unlimited {
  color: #286b60;
  font-weight: 650;
}
td .quota-bonus {
  color: #3973c6;
}
.quota-note {
  color: #7a89a4;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 18px;
}
.quota-target {
  color: #445879;
  font-weight: 600;
}
.service-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: #8091ab;
}
.service-status strong {
  color: #5b7192;
  font-weight: 500;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.credential {
  padding: 18px;
  background: #eef4ff;
  border-radius: 12px;
  font:
    13px/1.9 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 20px 0;
}
#credential-dialog > p {
  font-size: 12px;
  color: #8999b1;
  line-height: 1.8;
}
#account-info {
  font-size: 12px;
  color: #91a0b6;
  line-height: 1.7;
}
.avatar-editor {
  margin: 20px 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.avatar-edit-row,
.avatar-edit-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar-edit-actions {
  flex-wrap: wrap;
  gap: 8px;
}
.avatar-edit-row .profile-avatar {
  width: 64px;
  height: 64px;
}
.avatar-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
#avatar-status:empty,
#avatar-error:empty {
  display: none;
}
@media (min-width: 1500px) {
  .chat-page {
    padding-top: 55px;
  }
  .hero {
    margin-bottom: 72px;
  }
}
@media (max-width: 800px) {
  :root {
    --composer-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .topbar {
    padding: 0 24px;
    height: 80px;
  }
  .top-actions {
    gap: 8px;
  }
  .campus-badge {
    font-size: 9px;
  }
  .chat-page {
    padding: 28px 24px calc(var(--composer-space, 145px) + var(--composer-bottom) + var(--keyboard-inset));
  }
  .hero {
    margin: 15px 0 42px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 13px;
  }
  .assistant-row {
    gap: 12px;
  }
  .prompt-grid {
    gap: 8px;
  }
  .prompt-grid button {
    padding: 15px 12px;
  }
  .prompt-grid small {
    font-size: 9px;
  }
  .admin-page {
    padding: 0 20px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card strong {
    font-size: 24px;
  }
  .admin-section {
    padding: 18px;
  }
  .detail-button {
    padding: 8px 10px;
  }
}
@media (max-width: 560px) {
  .topbar {
    padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    min-height: calc(66px + env(safe-area-inset-top));
    height: auto;
    gap: 8px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
  }
  .brand-symbol {
    font-size: 29px;
  }
  .brand small {
    font-size: 8px;
  }
  .campus-badge {
    display: none;
  }
  .quiet-button {
    font-size: 12px;
    padding: 6px;
    min-height: 44px;
  }
  .avatar-button {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
  .chat-page {
    padding: 24px max(12px, env(safe-area-inset-right)) calc(var(--composer-space, 145px) + var(--composer-bottom) + var(--keyboard-inset)) max(12px, env(safe-area-inset-left));
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 17px;
  }
  .hero h1 {
    font-size: clamp(23px, 6.5vw, 28px);
    letter-spacing: 0;
  }
  .hero p {
    font-size: 12px;
    letter-spacing: 0;
  }
  .hero-meta {
    font-size: 9px;
    gap: 10px;
    margin-top: 17px;
  }
  .hero {
    margin-bottom: 42px;
  }
  .login-panel {
    padding: 25px;
    max-width: 350px;
  }
  .welcome .bot {
    display: none;
  }
  .message-assistant > .bot {
    display: none;
  }
  .hello-bubble {
    font-size: 14px;
    padding: 16px 18px;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
  }
  .try-label {
    margin-top: 22px;
  }
  .prompt-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 20px;
  }
  .prompt-grid button {
    padding: 17px;
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 10px;
    align-items: center;
  }
  .prompt-grid button > span {
    grid-row: span 2;
    font-size: 24px;
    margin: 0;
  }
  .prompt-grid small {
    margin-top: 5px;
    font-size: 10px;
  }
  .prompt-grid b {
    top: 25px;
  }
  .prompt-grid strong {
    font-size: 12px;
  }
  .composer-wrap {
    width: auto;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    transform: none;
  }
  .composer {
    gap: 10px;
    padding: 7px 8px 7px 17px;
  }
  .composer textarea {
    font-size: 16px;
  }
  .composer-spark {
    font-size: 23px;
  }
  .composer > button[type="submit"] {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .composer-footer {
    font-size: 10px;
    margin: 8px 8px 0;
  }
  .bot {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-width: 2px;
    border-radius: 11px;
  }
  .bot:before {
    left: 12px;
    top: -7px;
    height: 6px;
    width: 2px;
  }
  .bot-face {
    width: 22px;
    height: 15px;
  }
  .bot-face i {
    width: 4px;
    height: 5px;
  }
  .assistant-row {
    gap: 9px;
  }
  .answer-box {
    padding: 16px 12px;
    border-radius: 5px 18px 18px;
  }
  .answer-text {
    font-size: 14px;
  }
  .opportunity-card {
    padding: 13px 11px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }
  .company-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 14px;
  }
  .card-title {
    font-size: 14px;
  }
  .type-tag {
    font-size: 8px;
  }
  .type-tag--major,
  .type-tag--startup {
    font-size: 11px;
    padding: 3px 8px;
  }
  .card-match {
    font-size: 12px;
  }
  .card-meta {
    font-size: 11px;
  }
  .detail-button {
    grid-column: 2;
    justify-self: start;
    font-size: 12px;
    min-height: 40px;
  }
  .message-user {
    max-width: 90%;
    gap: 8px;
  }
  .user-bubble {
    font-size: 14px;
    padding: 12px 16px;
  }
  .suggestions {
    gap: 6px;
  }
  .suggestions button {
    font-size: 12px;
    min-height: 40px;
    padding: 8px 10px;
  }
  .chat-page.has-conversation .hero h1 {
    font-size: 22px;
  }
  .chat-page.has-conversation .hero p {
    font-size: 10px;
  }
  .messages {
    gap: 22px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-heading h1 {
    font-size: 27px;
  }
  .admin-page {
    padding: 0 16px;
  }
  .section-heading > span {
    display: none;
  }
  .service-status {
    grid-template-columns: 1fr;
  }
  .detail-dialog {
    padding: 22px;
  }
  .original-text {
    font-size: 14px;
  }
  .detail-footer {
    flex-wrap: wrap;
  }
  dialog {
    padding: 20px;
    max-height: calc(var(--viewport-height) - 24px);
    position: fixed;
    inset: var(--viewport-top) 0 auto;
    margin: 12px auto;
    transform: none;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  .close-button {
    width: 44px;
    height: 44px;
  }
  .side-dialog {
    inset: var(--viewport-top) auto auto 0;
    margin: 12px 0 12px max(8px, env(safe-area-inset-left));
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    border-radius: 20px;
  }
  .history-open strong {
    font-size: 14px;
  }
  .history-open small {
    font-size: 12px;
  }
  .history-list {
    margin-top: 16px;
  }
  .service-status {
    overflow-wrap: anywhere;
  }
  .form-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 800px), (pointer: coarse) {
  /* Keep focus from enlarging small form controls on mobile browsers. */
  input,
  textarea,
  .composer textarea {
    font-size: 16px;
  }
  :root.keyboard-open {
    --composer-bottom: 8px;
  }
  .keyboard-open .composer-footer {
    display: none;
  }
  .toast {
    bottom: calc(var(--keyboard-inset) + var(--composer-space, 100px) + 12px);
    max-width: calc(100% - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
