* { box-sizing: border-box; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(67, 148, 255, .35), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0d1424 48%, #111827 100%);
  color: #eef6ff;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    linear-gradient(rgba(115, 211, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 211, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.14));
  animation: gridDrift 18s linear infinite;
}
body::after {
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 0 36%, rgba(105, 210, 255, .14) 48%, transparent 62%),
    linear-gradient(68deg, transparent 0 58%, rgba(138, 92, 255, .10) 68%, transparent 78%);
  background-size: 210% 210%;
  filter: blur(1px);
  opacity: .78;
  animation: scanSweep 9s ease-in-out infinite;
}
.app-shell, .container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #eef6ff;
  text-decoration: none;
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(37, 137, 255, .22), 0 0 22px rgba(105, 210, 255, .18);
  animation: logoPulse 4.8s ease-in-out infinite;
}
.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1.1;
}
.brand-lockup strong {
  font-size: 18px;
  letter-spacing: 0;
}
.brand-lockup small,
.brand-domain {
  color: #9fb5d7;
  font-size: 13px;
}
.mobile-brand-tagline {
  display: none;
}
.brand-domain {
  padding: 7px 10px;
  border: 1px solid rgba(148, 190, 255, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.workspace {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 24px;
  align-items: stretch;
  min-height: 520px;
}
.hidden { display: none !important; }
.assistant-hero {
  max-width: 780px;
  margin: 12px auto 14px;
  text-align: center;
}
.assistant-hero h1 {
  margin: 0 0 6px;
  font-size: 34px;
  text-shadow: 0 0 26px rgba(105, 210, 255, .22);
}
.assistant-hero h1 span {
  color: #9ed0ff;
  font-size: .58em;
  font-weight: 700;
  vertical-align: middle;
}
.assistant-hero p {
  font-size: 15px;
  line-height: 1.5;
}
.composer-panel {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(148, 190, 255, .2);
  border-radius: 8px;
  background: rgba(9, 20, 38, .76);
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
  backdrop-filter: blur(16px);
}
.composer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg, rgba(105,210,255,.75), rgba(255,255,255,0) 28%, rgba(137,92,255,.62) 56%, rgba(45,255,196,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .66;
  animation: borderFlow 7s linear infinite;
}
.composer-panel::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  top: -22%;
  height: 42%;
  background: linear-gradient(105deg, transparent, rgba(105,210,255,.10), transparent);
  transform: translateX(-35%) rotate(2deg);
  pointer-events: none;
  animation: panelSweep 7.5s ease-in-out infinite;
}
.composer-panel > * {
  position: relative;
  z-index: 1;
}
.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.composer-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}
.composer-head label {
  margin: 0;
}
.vip-toggle {
  min-width: 50px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(105, 210, 255, .38);
  background: rgba(37,137,255,.16);
  color: #dff5ff;
  font-size: 14px;
}
.composer-panel textarea {
  min-height: 170px;
}
.attachment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}
.file-pick-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgba(164, 198, 255, .22);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.13);
  color: #eaf4ff;
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.attachment-input-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .001;
  cursor: pointer;
  font-size: 100px;
}
.output-format-control {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin: 0;
  min-height: 44px;
  border: 1px solid rgba(164, 198, 255, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.output-format-control span {
  padding: 0 10px;
  color: #9fb9dc;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.attachment-panel select {
  height: 44px;
  min-width: 0;
  border: 0;
  border-left: 1px solid rgba(164, 198, 255, .14);
  border-radius: 0;
  padding: 9px 10px;
  background-color: transparent;
}
.file-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px 6px 10px;
  border: 1px solid rgba(148, 190, 255, .22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dbeaff;
  font-size: 13px;
}
.file-chip span {
  max-width: min(320px, 48vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-thumb {
  position: relative;
  width: 82px;
  min-height: 98px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(148, 190, 255, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #dbeaff;
  overflow: hidden;
  cursor: pointer;
}
.file-thumb img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: rgba(3, 9, 19, .58);
}
.file-thumb span {
  display: block;
  padding: 5px 7px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
}
.file-remove {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  color: #dbeaff;
  font-size: 17px;
  line-height: 1;
}
.file-thumb .file-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(3, 9, 19, .7);
}
.composer-foot {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.composer-foot button {
  margin: 0;
}
.usage-block strong,
.usage-block span {
  display: block;
}
.usage-block span {
  margin-top: 4px;
  color: #9fb5d7;
  font-size: 14px;
}
.assistant-meta {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.assistant-meta span,
.model-select {
  padding: 7px 10px;
  border: 1px solid rgba(148, 190, 255, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #b8c9e8;
  font-size: 13px;
  box-shadow: inset 0 0 18px rgba(105, 210, 255, .06);
}
.assistant-meta span {
  white-space: nowrap;
}
.model-select {
  max-width: 210px;
  min-width: 0;
  min-height: 34px;
  padding-right: 28px;
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #b8c9e8 50%) calc(100% - 16px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #b8c9e8 50%, transparent 50%) calc(100% - 11px) 50% / 6px 6px no-repeat,
    rgba(255,255,255,.06);
}
.assistant-results {
  grid-template-columns: 1.2fr 1fr;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.answer-card {
  grid-column: 1 / -1;
}
