:root {
  color-scheme: light;
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: #252525;
  background: #f7f7f7;
  font-synthesis: none;
  --ink: #242424;
  --muted: #686868;
  --line: #dedede;
  --paper: #fff;
  --soft: #f4f4f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #686868;
}
button svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  vertical-align: middle;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.loading {
  display: grid;
  place-items: center;
  height: 100dvh;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  font-size: 24px;
  letter-spacing: -1.4px;
  white-space: nowrap;
}
.brand b {
  font-weight: 480;
}
.school-mark {
  display: block;
  width: 194px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-name {
  border-left: 1px solid #d5d5d5;
  padding-left: 15px;
}
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.mast,
.auth-foot {
  width: min(1400px, 100%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5.5vw, 88px);
}
.mast {
  height: 83px;
  flex-shrink: 0;
}
.mast-left {
  display: flex;
  align-items: center;
  gap: 23px;
}
.quiet,
.iconbtn,
.textlink,
.pill,
.primary,
.outline,
.toolbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.quiet,
.textlink {
  font-size: 14px;
}
.quiet:hover,
.textlink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.iconbtn:hover,
.toolbtn:hover {
  background: #ededed;
}
.auth-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 18px clamp(24px, 5.5vw, 88px) 20px;
}
.auth-card {
  width: min(1150px, 100%);
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 49% 51%;
  box-shadow: 0 12px 40px #00000006;
}
.auth-form-pane {
  padding: clamp(35px, 4.2vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}
.auth-form-pane h1 {
  font-size: clamp(29px, 2.7vw, 42px);
  letter-spacing: -0.055em;
  line-height: 1.25;
  font-weight: 620;
}
.sub {
  margin: 12px 0 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}
.auth-form-pane h1:focus {
  outline: none;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 17px;
}
.field label,
.field-head {
  font-size: 14px;
  font-weight: 575;
}
.field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field-head .textlink {
  color: var(--muted);
  font-weight: 400;
}
.inputbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid #d8d8d8;
  border-radius: 9px;
  background: #fff;
  color: #777777;
}
.inputbox:focus-within {
  border-color: #636363;
  box-shadow: 0 0 0 3px #00000010;
}
.inputbox input,
.inputbox select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #808080;
}
.inputbox button {
  padding: 3px;
  color: #707070;
}
.primary,
.outline {
  border-radius: 10px;
  min-height: 43px;
  font-size: 15px;
  font-weight: 560;
  padding: 9px 16px;
}
.primary {
  background: #252525;
  color: white;
}
.primary:hover:not(:disabled) {
  background: #3d3d3d;
}
.outline {
  border: 1px solid #d7d7d7;
  background: #fff;
}
.outline:hover {
  background: var(--soft);
}
.full {
  width: 100%;
}
.auth-submit {
  margin-top: 3px;
  min-height: 46px;
}
.account-password-hint {
  margin: -8px 0 15px;
}
.local-login-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 0 0 14px;
}
.local-login-choice input {
  accent-color: var(--ink);
}
.inputbox .native-password {
  flex: 1;
  align-self: stretch;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}
.auth-aside {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #626456;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}
.gallery-frame,
.gallery-images,
.gallery-images img,
.gallery-frame::after {
  position: absolute;
  inset: 0;
}
.gallery-frame {
  margin: 0;
}
.gallery-images img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: var(--focus);
}
.gallery-frame::after {
  content: "";
  background: linear-gradient(
    180deg,
    transparent 51%,
    #0b111c17 61%,
    #0b111cbf 100%
  );
  pointer-events: none;
}
.photo-caption {
  position: absolute;
  bottom: 22px;
  left: 30px;
  right: 24px;
  color: white;
  z-index: 1;
}
.photo-caption small {
  font-size: 13px;
  letter-spacing: 0.08em;
  display: flex;
  gap: 7px;
  align-items: center;
  opacity: 0.9;
}
.photo-caption strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(23px, 2.3vw, 34px);
  letter-spacing: -0.045em;
  font-weight: 550;
}
.gallery-bar,
.gallery-controls,
.gallery-dots {
  display: flex;
  align-items: center;
}
.gallery-bar {
  margin-top: 8px;
  justify-content: space-between;
  gap: 10px;
}
.gallery-dots button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 36px;
  padding: 0 2px;
}
.gallery-dots button::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 4px;
  background: #ffffff62;
}
.gallery-dots button[aria-current="true"]::after {
  background: white;
}
.gallery-controls {
  border: 1px solid #ffffff68;
  border-radius: 24px;
  background: #10151f64;
}
.gallery-controls button {
  width: 36px;
  height: 34px;
  padding: 0;
  border-radius: 20px;
  display: grid;
  place-items: center;
}
.gallery-controls button:hover {
  background: #ffffff29;
}
.photo-caption button:focus-visible {
  outline-color: white;
}
.auth-foot {
  min-height: 57px;
  color: #727272;
  font-size: 13px;
  gap: 15px;
}
.foot-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.error {
  font-size: 14px;
  line-height: 1.65;
  color: #983e32;
  margin-top: 9px;
}
.hint {
  font-size: 13px;
  color: #6e6e6e;
  line-height: 1.7;
}
.auth-secondary {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.auth-secondary button {
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  padding: 4px;
}
.workspace {
  height: 100dvh;
  display: flex;
  background: white;
}
.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-right: 1px solid #e4e4e4;
  padding: 20px 15px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidehead,
.chathead,
.dialog-head,
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sidehead {
  padding: 0 1px 19px 7px;
}
.sidebar .brand {
  font-size: 19px;
  gap: 8px;
  flex-direction: column;
  align-items: flex-start;
}
.sidebar .school-mark {
  width: 152px;
}
.sidebar .brand-name {
  padding: 0;
  border: 0;
}
.new-chat {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 9px;
  background: #252525;
  color: white;
  border-radius: 10px;
  padding: 11px;
  font-size: 15px;
}
.new-chat svg {
  justify-self: end;
}
.new-chat span {
  grid-column: 2;
  text-align: center;
}
.navs {
  padding: 15px 0;
  display: grid;
  gap: 3px;
}
.auth-links { display:flex; align-items:center; gap:8px; }
.research-links { display:grid; justify-items:start; gap:1px; }
.research-links .quiet { min-height:24px; padding-block:2px; }
.auth-links a,.navs a { text-decoration:none; }
@media(max-width:680px){ .auth-links{flex-direction:column;align-items:flex-end;gap:0}.auth-links .quiet{font-size:12px;padding:3px 4px} }
.navs a,
.navs button,
.chat-item .pick {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  min-width: 0;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 14px;
}
.navs a:hover,
.navs button:hover,
.chat-item:hover {
  background: #ebebeb;
}
.side-tag {
  font-size: 13px;
  color: #727272;
  margin: 13px 11px 9px;
}
.chat-list {
  flex: 1;
  overflow: auto;
}
.chat-item {
  border-radius: 9px;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}
.chat-item.active {
  background: #e5e5e5;
}
.chat-item .pick {
  flex: 1;
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-item .iconbtn {
  width: 30px;
  height: 29px;
  flex-shrink: 0;
  margin-right: 3px;
}
.empty-side {
  padding: 3px 11px;
  color: #727272;
  font-size: 13px;
  line-height: 1.6;
}
.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.chathead {
  height: 65px;
  flex-shrink: 0;
  padding: 0 clamp(15px, 2.8vw, 42px);
  border-bottom: 1px solid #ededed;
}
.head-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.head-brand {
  display: none;
}
.collapsed .head-brand {
  display: flex;
}
.head-brand .brand {
  font-size: 19px;
  gap: 8px;
}
.head-brand .brand-name {
  padding-left: 8px;
}
.head-brand .school-mark {
  width: 154px;
}
@media (max-width: 500px) {
  .chathead .model #model-title,
  .chathead .model svg:last-child {
    display: none;
  }
  .chathead .model {
    padding: 6px;
  }
}
.model {
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  color: #4b4b4b;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 550;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #464646;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.conversation {
  flex: 1;
  overflow: auto;
  scroll-behavior: auto;
  padding: 24px clamp(16px, 3vw, 48px) 12px;
}
.empty-chat {
  max-width: 740px;
  min-height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px 0 35px;
}
.empty-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  border: 1px solid #dedede;
  background: #f3f3f3;
  color: #5d5d5d;
  margin-bottom: 22px;
}
.empty-chat h1 {
  font-size: clamp(28px, 3.2vw, 45px);
  font-weight: 580;
  letter-spacing: -0.055em;
}
.empty-chat .sub {
  margin: 12px 0 28px;
  text-align: center;
}
.suggestions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
}
.suggestions button {
  padding: 10px 13px;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid #dedede;
  border-radius: 13px;
  font-size: 14px;
}
.suggestions button:hover {
  background: #f4f4f4;
}
.composer-area {
  padding: 6px 20px 15px;
  max-width: 830px;
  width: 100%;
  align-self: center;
}
.composer {
  border: 1px solid #d2d2d2;
  border-radius: 19px;
  box-shadow: 0 3px 14px #0000000a;
  padding: 13px 13px 9px;
  background: var(--paper);
}
.composer:focus-within {
  border-color: #999;
}
.composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  min-height: 48px;
  max-height: 160px;
  padding: 3px 6px;
  font-size: 16px;
  line-height: 1.5;
  background: transparent;
}
.toolsbar {
  display: flex;
  align-items: center;
  gap: 5px;
}
.toolbtn {
  height: 32px;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 13px;
  color: #505050;
}
.toolbtn.on {
  background: #ebebeb;
  color: #434343;
}
.send {
  margin-left: auto;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #242424;
  color: white;
}
.composer-note {
  text-align: center;
  color: #707070;
  font-size: 12px;
  margin-top: 8px;
}
.files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.school-file {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 13px;
}
.school-file .school-link {
  color: inherit;
  text-underline-offset: 2px;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 13px;
  color: #555555;
  max-width: 100%;
  text-decoration: none;
}
.file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-chip img {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border-radius: 3px;
}
.file-chip button {
  padding: 2px;
}
.messages {
  max-width: 775px;
  margin: 0 auto;
}
.bubble {
  margin: 15px 0 28px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.msg-user {
  text-align: right;
}
.msg-user .msg-body {
  display: inline-block;
  text-align: left;
  border-radius: 17px;
  background: #f2f2f2;
  padding: 9px 16px;
  max-width: 88%;
}
.msg-user .files {
  justify-content: flex-end;
  margin: 5px 0;
}
.msg-assistant .speaker {
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #525252;
  font-size: 13px;
  font-weight: 600;
}
.msg-body p + p {
  margin-top: 11px;
}
.msg-body pre {
  overflow: auto;
  color: #ededed;
  background: #252525;
  border-radius: 10px;
  padding: 14px;
  line-height: 1.55;
}
.msg-body h3 {
  font-size: 1.04em;
  line-height: 1.5;
  margin: 1em 0 0.35em;
}
.msg-body h3:first-child {
  margin-top: 0;
}
.msg-body ul,
.msg-body ol {
  margin: 0.45em 0 0.75em;
  padding-inline-start: 1.6em;
}
.msg-body li + li {
  margin-top: 0.25em;
}
.reply-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 0.65em 0;
}
.reply-table table {
  border-collapse: collapse;
  font-size: 0.94em;
}
.reply-table th,
.reply-table td {
  border: 1px solid var(--line);
  padding: 0.4em 0.7em;
  text-align: left;
}
.reply-table th {
  background: var(--soft);
  font-weight: 600;
}
.reply-table-group > summary {
  width: fit-content;
  margin-block: 0.6em 0.3em;
  cursor: pointer;
  color: #565656;
  font-size: 0.88em;
}
.reply-table-group[open] .when-closed,
.reply-table-group:not([open]) .when-open {
  display: none;
}
.msg-body a {
  color: #454545;
}
.activity {
  color: #666666;
  font-size: 13px;
  margin: 8px 0;
}
.msg-actions {
  margin-top: 8px;
}
.msg-actions button {
  font-size: 13px;
  color: #626262;
}
.actionbox {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f7f7;
  padding: 13px;
  margin: 12px 0;
}
.actionbox p {
  margin: 7px 0 11px;
}
.actionbox button {
  margin-right: 8px;
}
.booking-schedule {
  border-left: 3px solid #555;
  padding: 2px 0 2px 12px;
  margin: 10px 0 14px;
  font-size: .9rem;
}
.booking-schedule.checked {
  border-left-color: #bdbdbd;
}
.actionbox .booking-schedule p {
  margin: 3px 0;
}
.booking-schedule a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.actionbox .print-records {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}
.order-choices button {
  display: block;
  margin-top: 6px;
  text-align: left;
  overflow-wrap: anywhere;
}
.collapsed .sidebar {
  display: none;
}
.shade {
  display: none;
}
dialog {
  border: 1px solid #d8d8d8;
  border-radius: 18px;
  padding: 0;
  width: min(560px, calc(100vw - 28px));
  max-height: 88dvh;
  box-shadow: 0 18px 85px #00000030;
  background: white;
  color: var(--ink);
}
dialog::backdrop {
  background: #2222225e;
  backdrop-filter: blur(2px);
}
.dialog-head {
  padding: 20px 23px 14px;
  border-bottom: 1px solid #e8e8e8;
}
.dialog-head h2 {
  font-size: 21px;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.dialog-body {
  padding: 20px 23px 23px;
}
.dialog-body h3 {
  font-size: 16px;
  margin-bottom: 13px;
}
.dialog-body .hint {
  margin-bottom: 13px;
}
.dialog-body .primary,
.dialog-body .outline {
  min-height: 38px;
  font-size: 14px;
}
.settingnav {
  display: flex;
  overflow: auto;
  gap: 5px;
  padding: 12px 22px 0;
}
.settingnav button {
  font-size: 14px;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 8px;
  color: #626262;
}
.settingnav .active {
  background: #eeeeee;
  color: var(--ink);
  font-weight: 600;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 14px;
}
.setting-row input[type="checkbox"] {
  accent-color: #505050;
  width: 18px;
  height: 18px;
}
.setting-row select,
.plaininput {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 8px;
  background: white;
  max-width: 100%;
}
.plaininput {
  width: 100%;
}
.buttonrow {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 15px;
}
.group + .group {
  margin-top: 18px;
  border-top: 1px solid #e8e8e8;
  padding-top: 17px;
}
.challenge-help {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.challenge-help summary {
  cursor: pointer;
}
.challenge-help p {
  margin-top: 8px;
}
.service-list {
  display: grid;
  gap: 7px;
}
.service {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  border-radius: 9px;
  padding: 9px;
}
.service:hover {
  background: var(--soft);
}
.service > i {
  background: #f0f0f0;
  color: #585858;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.service > span {
  flex: 1;
}
.service strong {
  display: block;
  font-size: 15px;
}
.service small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.service > svg {
  color: #707070;
}
.memitem {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.memitem strong {
  font-size: 14px;
}
.memitem p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 4px;
}
.big-avatar {
  width: 46px;
  height: 46px;
  font-size: 20px;
}
#toast {
  position: fixed;
  z-index: 12;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  padding: 9px 16px;
  background: #292929;
  color: white;
  font-size: 14px;
  max-width: 90vw;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
.danger {
  color: #993e34;
}
.mono {
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}
.linkline {
  overflow-wrap: anywhere;
}
@media (min-width: 1450px) {
  .auth-form-pane {
    min-height: 610px;
  }
}
@media (max-width: 880px) {
  .auth-form-pane {
    padding: 35px;
    min-height: 510px;
  }
  .auth-card {
    grid-template-columns: 54% 46%;
  }
  .photo-caption {
    left: 22px;
    right: 20px;
  }
  .sidebar {
    width: 225px;
  }
}
@media (max-width: 680px) {
  .mast {
    height: 67px;
  }
  .mast-left {
    gap: 10px;
  }
  .mast .school-mark {
    width: clamp(112px, 32vw, 160px);
  }
  .mast .brand {
    font-size: 19px;
    gap: 9px;
  }
  .mast .brand-name {
    padding-left: 9px;
  }
  .auth-stage {
    padding: 10px 15px 16px;
    align-content: center;
  }
  .auth-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
  }
  .auth-form-pane {
    padding: 26px 24px 27px;
    min-height: 0;
    order: 2;
  }
  .auth-aside {
    height: clamp(196px, 60vw, 285px);
    min-height: 0;
    order: 1;
  }
  .gallery-images img {
    object-position: var(--mobile-focus);
  }
  .photo-caption {
    bottom: 12px;
    left: 18px;
    right: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2px 8px;
  }
  .photo-caption strong {
    font-size: 19px;
    margin-top: 0;
    grid-column: 1;
  }
  .photo-caption small {
    font-size: 12px;
  }
  .gallery-bar {
    margin: 0;
    grid-column: 2;
    grid-row: 1 / 3;
    flex-direction: column-reverse;
    gap: 1px;
  }
  .gallery-dots button {
    width: 22px;
    height: 18px;
  }
  .gallery-controls button {
    width: 32px;
    height: 30px;
  }
  .auth-foot {
    font-size: 12px;
    min-height: 42px;
    padding: 0 18px;
  }
  .auth-foot .foot-desktop {
    display: none;
  }
  .auth-form-pane .sub {
    margin: 8px 0 15px;
  }
  .field {
    margin-bottom: 13px;
  }
  .sidebar {
    display: none;
  }
  .workspace.mobile-side .sidebar {
    position: absolute;
    display: flex;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    width: min(280px, 84vw);
    box-shadow: 3px 0 25px #0002;
  }
  .workspace.mobile-side .shade {
    position: fixed;
    inset: 0;
    display: block;
    background: #2225;
    z-index: 4;
  }
  .chathead {
    height: 56px;
  }
  .head-brand {
    display: flex;
  }
  .head-group {
    gap: 7px;
  }
  .head-brand .school-mark {
    width: clamp(100px, 27vw, 134px);
  }
  .head-brand .brand {
    font-size: 16px;
    gap: 6px;
  }
  .head-brand .brand-name {
    padding-left: 6px;
  }
  .conversation {
    padding: 12px 13px;
  }
  .composer-area {
    padding: 6px 10px max(10px, env(safe-area-inset-bottom));
  }
  .composer-note {
    font-size: 12px;
  }
  .account .account-name {
    display: none;
  }
  .empty-chat {
    padding: 18px 0;
  }
  .empty-chat .sub {
    margin-bottom: 17px;
  }
  .suggestions {
    gap: 6px;
  }
  .suggestions button {
    font-size: 13px;
    padding: 8px;
  }
  .dialog-body {
    padding: 17px;
  }
  .settingnav,
  .dialog-head {
    padding-left: 17px;
    padding-right: 17px;
  }
  .toolsbar {
    gap: 2px;
  }
  .toolbtn {
    padding: 3px 6px;
  }
  .toolbtn .optional {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.model-connect .setting-row select,
.model-picker select {
  min-width: 0;
  max-width: 100%;
}
.model-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
}
.model-picker label {
  grid-column: 1/-1;
  font-size: 14px;
}
.model-picker select {
  font: inherit;
  font-size: 14px;
}
.model-picker .quiet {
  font-size: 13px;
}
.reply-model {
  font-size: 11px;
  font-weight: 400;
  color: #686868;
  margin-left: 5px;
  overflow-wrap: anywhere;
}
.generated-image {
  display: block;
  max-width: min(100%, 460px);
}
.generated-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 540px;
  border-radius: 12px;
}
.files audio,
.msg-actions audio {
  max-width: 100%;
  height: 36px;
}
.option-detail textarea {
  display: block;
  margin-top: 5px;
  resize: vertical;
}
#live-text {
  white-space: pre-wrap;
  max-height: 35vh;
  overflow: auto;
  line-height: 1.65;
}
@media (max-width: 500px) {
  .model-picker {
    grid-template-columns: minmax(0, 1fr);
  }
  .model-picker .quiet {
    justify-self: start;
  }
  .reply-model {
    font-size: 10px;
  }
}
