#assistantView {
  --assistant-red: #c90012;
  --assistant-red-dark: #97000d;
  --assistant-ink: #101828;
  --assistant-muted: #667085;
  --assistant-border: #e4e9f0;
  --assistant-surface: #ffffff;
  --assistant-soft: #f6f8fb;
  background: #f4f6f9;
  font-family: "Be Vietnam Pro", "Inter", sans-serif;
  padding: 20px 0 34px;
}

#assistantView *,
#assistantView *::before,
#assistantView *::after {
  box-sizing: border-box;
}

#assistantView button,
#assistantView input {
  font: inherit;
}

.assistant-modern-shell {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.assistant-left-panel,
.assistant-right-panel,
.assistant-main-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.assistant-side-card,
.chat-box-card,
.assistant-hero {
  border: 1px solid var(--assistant-border);
  background: var(--assistant-surface);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(16, 24, 40, 0.055);
  overflow: hidden;
}

.assistant-side-card {
  padding: 18px;
}

.assistant-side-card h2,
.assistant-side-card h3 {
  margin: 0;
  color: var(--assistant-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.assistant-side-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--assistant-border);
  font-size: 15px;
  line-height: 1.35;
}

.assistant-side-card h2 > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #df0016, #a30010);
}

.assistant-side-card h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--assistant-border);
  font-size: 15px;
}

.assistant-side-card h3 i {
  margin-right: 8px;
  color: #f2a900;
}

.assistant-nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  margin-top: 7px;
  border-radius: 10px;
  text-align: left;
  color: var(--assistant-ink);
  cursor: pointer;
  transition: 0.2s ease;
}

.assistant-nav-item:hover,
.assistant-nav-item.is-active {
  color: #b50011;
  background: #fff0f1;
}

.assistant-nav-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #edf0f4;
  border-radius: 50%;
  background: #fff;
  font-size: 17px;
}

.assistant-nav-item strong,
.assistant-nav-item small,
.assistant-topic-card button strong,
.assistant-topic-card button small,
.assistant-tools-card button strong,
.assistant-tools-card button small {
  display: block;
}

.assistant-nav-item strong {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 750;
}

.assistant-nav-item small {
  color: var(--assistant-muted);
  font-size: 11px;
  line-height: 1.35;
}

.assistant-topic-card button {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  color: var(--assistant-ink);
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.assistant-topic-card button:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.assistant-topic-card button > i {
  color: #98a2b3;
  font-size: 10px;
}

.assistant-topic-card button strong {
  font-size: 12px;
  line-height: 1.4;
}

.assistant-topic-card button small {
  margin-top: 3px;
  color: var(--assistant-muted);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-icon,
.preset-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.topic-icon {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.topic-red,
.preset-red { background: #c90012; }
.topic-gold,
.preset-gold { background: #e5a12b; }
.topic-green,
.preset-green { background: #2da560; }
.topic-blue { background: #2563b9; }
.topic-purple,
.preset-purple { background: #7543b9; }

.assistant-hero {
  min-height: 206px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 16%, rgba(255,255,255,.98) 0 3%, transparent 30%),
    linear-gradient(115deg, #fffaf6 0%, #fff5ee 52%, #ffd9d7 100%);
}

.assistant-hero::before,
.assistant-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(201, 0, 18, 0.12);
}

.assistant-hero::before {
  width: 310px;
  height: 310px;
  left: -105px;
  top: -100px;
}

.assistant-hero::after {
  width: 230px;
  height: 230px;
  right: -70px;
  bottom: -105px;
}

.assistant-hero-copy {
  padding: 30px 12px 30px 48px;
}

.assistant-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a90010;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.assistant-hero-copy h1 {
  margin: 8px 0 9px;
  color: #ad0011;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.assistant-hero-copy > strong {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(100deg, #a90010, #d2091b);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.assistant-hero-copy p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.assistant-hero-art {
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ab0011;
}

.assistant-hero-art > i {
  position: relative;
  z-index: 2;
  font-size: 92px;
  filter: drop-shadow(0 12px 18px rgba(151, 0, 13, 0.18));
}

.hero-emblem {
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 23px;
  width: 70px;
  height: 70px;
  padding: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 22px rgba(151, 0, 13, .12);
}

.hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(201, 0, 18, .18);
  border-radius: 50%;
}

.hero-orbit-one { width: 180px; height: 180px; }
.hero-orbit-two { width: 245px; height: 245px; }

#assistantView .chat-box-card {
  height: auto;
  min-height: 680px;
  display: flex;
  flex-direction: column;
}

#assistantView .chat-header {
  min-height: 68px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--assistant-border);
  background: #fff;
  color: var(--assistant-ink);
}

#assistantView .chat-header-logo {
  width: 42px;
  height: 42px;
  padding: 3px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f1d5d8;
}

#assistantView .chat-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#assistantView .chat-header-title-row h3 {
  color: #b00012 !important;
  -webkit-text-fill-color: #b00012 !important;
  font-size: 14px;
}

#assistantView .chat-header-subtitle {
  color: var(--assistant-muted);
  font-size: 11px;
}

#assistantView .chat-header-status-badge {
  background: #e7f8ee;
  color: #16824a;
  font-size: 9px;
}

#assistantView .chat-header-refresh-btn {
  background: #d30000 !important;
  color: #ffffff !important;
  border: 1px solid #b00012 !important;
  padding: 5px 11px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(211, 0, 0, 0.2) !important;
}

#assistantView .chat-header-refresh-btn:hover {
  background: #b00012 !important;
  color: #ffffff !important;
}

#assistantView .chat-feed {
  min-height: 250px;
  max-height: 460px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

#assistantView .chat-message-row {
  align-items: flex-start;
}

#assistantView .chat-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 0;
  background: linear-gradient(145deg, #d50015, #9e000f);
  box-shadow: 0 8px 18px rgba(201, 0, 18, .18);
}

#assistantView .chat-bubble {
  max-width: min(82%, 700px);
  padding: 16px 18px;
  border-color: #e1e6ed;
  border-radius: 12px 12px 12px 3px;
  background: #fff;
  color: #253047;
  font-size: 13px;
  line-height: 1.75;
  box-shadow: 0 7px 20px rgba(16, 24, 40, .045);
}

#assistantView .chat-presets-section {
  padding: 18px 22px 20px;
  border-top: 1px solid var(--assistant-border);
  background: #fff;
}

#assistantView .chat-presets-title {
  margin: 0 0 13px;
  color: #bd0012;
  font-size: 13px;
  font-weight: 800;
}

#assistantView .chat-presets-title i {
  margin-right: 7px;
  color: #f0a400;
}

#assistantView .chat-presets-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#assistantView .chat-preset-btn {
  min-height: 86px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
  background: #fff;
  color: var(--assistant-ink);
  text-align: left;
  box-shadow: none;
}

#assistantView .chat-preset-btn:hover {
  border-color: #ef9ba4;
  background: #fff8f8;
  transform: translateY(-1px);
}

#assistantView .chat-preset-btn > span:nth-child(2) {
  min-width: 0;
}

#assistantView .chat-preset-btn strong,
#assistantView .chat-preset-btn small {
  display: block;
}

#assistantView .chat-preset-btn strong {
  margin-bottom: 5px;
  font-size: 11px;
}

#assistantView .chat-preset-btn small {
  color: var(--assistant-muted);
  font-size: 10px;
  line-height: 1.45;
}

#assistantView .chat-preset-btn > i {
  color: #98a2b3;
  font-size: 10px;
}

.preset-icon {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

#assistantView .chat-input-container {
  margin-top: auto;
  padding: 0 20px 14px;
  border-top: 0;
  background: #fff;
}

#assistantView .chat-input-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px 48px;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid #d8dee7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 24, 40, .05);
}

#assistantView .chat-input-field {
  height: 44px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.chat-utility-btn,
#assistantView .chat-send-btn-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  cursor: pointer;
}

.chat-utility-btn {
  border: 1px solid #e1e6ed;
  color: #667085;
  background: #fff;
}

#assistantView .chat-send-btn-icon {
  width: 48px;
  background: linear-gradient(145deg, #d50015, #a30010);
  box-shadow: 0 7px 14px rgba(201, 0, 18, .18);
}

.assistant-disclaimer {
  margin: 10px 0 0;
  color: #7b8494;
  text-align: center;
  font-size: 9.5px;
}

.assistant-disclaimer i {
  margin-right: 5px;
}

.assistant-tools-card h3,
.assistant-note-card h3 {
  margin-bottom: 4px;
}

.assistant-tools-card button {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
  color: var(--assistant-ink);
  text-align: left;
  cursor: pointer;
}

.assistant-tools-card button:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.assistant-tools-card button > span:first-child,
.assistant-note-card > div > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #d10014;
  background: #fff0f1;
  font-size: 16px;
}

.assistant-tools-card button strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.assistant-tools-card button small {
  color: var(--assistant-muted);
  font-size: 10px;
  line-height: 1.45;
}

.assistant-note-card > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px 0;
}

.assistant-note-card p {
  margin: 0;
}

.assistant-note-card strong,
.assistant-note-card small {
  display: block;
}

.assistant-note-card strong {
  margin-bottom: 4px;
  color: var(--assistant-ink);
  font-size: 11px;
}

.assistant-note-card small {
  color: var(--assistant-muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.assistant-brand-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #a60010, #d40b1e);
  box-shadow: 0 8px 22px rgba(151, 0, 13, .16);
}

.assistant-brand-card img {
  width: 48px;
  height: 48px;
  padding: 4px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.assistant-brand-card strong,
.assistant-brand-card small {
  display: block;
}

.assistant-brand-card strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.assistant-brand-card small {
  color: rgba(255,255,255,.82);
  font-size: 8.5px;
  line-height: 1.45;
}

@media (max-width: 1220px) {
  .assistant-modern-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .assistant-right-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  #assistantView {
    padding: 14px 0 24px;
  }

  .assistant-modern-shell {
    width: min(100% - 24px, 720px);
    grid-template-columns: 1fr;
  }

  .assistant-main-column { order: 1; }
  .assistant-left-panel { order: 2; grid-template-columns: 1fr 1fr; }
  .assistant-right-panel { order: 3; grid-template-columns: 1fr 1fr; }
  .assistant-brand-card { grid-column: 1 / -1; }

  .assistant-hero {
    grid-template-columns: 1fr 180px;
  }

  .assistant-hero-copy {
    padding-left: 28px;
  }
}

@media (max-width: 640px) {
  #assistantView {
    background: #f4f6f9;
    padding-top: 10px;
  }

  .assistant-modern-shell {
    width: calc(100% - 16px);
    gap: 12px;
  }

  .assistant-left-panel,
  .assistant-right-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .assistant-hero {
    min-height: 210px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .assistant-hero-copy {
    position: relative;
    z-index: 2;
    padding: 25px 18px 22px;
  }

  .assistant-hero-copy h1 {
    font-size: 25px;
  }

  .assistant-hero-copy > strong {
    padding: 7px 10px;
    font-size: 9px;
  }

  .assistant-hero-copy p {
    font-size: 11px;
    line-height: 1.55;
  }

  .assistant-hero-art {
    position: absolute;
    inset: 0;
    opacity: .09;
  }

  .assistant-hero-art > i {
    font-size: 120px;
  }

  .hero-emblem {
    display: none;
  }

  #assistantView .chat-box-card {
    min-height: 620px;
  }

  #assistantView .chat-header {
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  #assistantView .chat-header-logo {
    width: 28px !important;
    height: 28px !important;
    padding: 2px !important;
    flex-shrink: 0 !important;
  }

  #assistantView .chat-header-title-row {
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  #assistantView .chat-header-title-row h3 {
    font-size: 11px !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
  }

  #assistantView .chat-header-status-badge {
    font-size: 8px !important;
    padding: 1px 4px !important;
    flex-shrink: 0 !important;
  }

  #assistantView .chat-header-subtitle {
    display: none !important;
  }

  #assistantView .chat-header-refresh-btn {
    width: auto !important;
    height: auto !important;
    padding: 3px 7px !important;
    font-size: 10px !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }

  #assistantView .chat-header-refresh-btn span {
    display: inline !important;
    font-size: 10px !important;
  }

  #assistantView .chat-feed {
    min-height: 260px;
    max-height: 420px;
    padding: 16px 12px;
  }

  #assistantView .chat-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  #assistantView .chat-bubble {
    max-width: calc(100% - 47px);
    padding: 13px;
    font-size: 11px;
    line-height: 1.65;
  }

  #assistantView .chat-presets-section {
    padding: 15px 12px;
  }

  #assistantView .chat-presets-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #assistantView .chat-preset-btn {
    min-height: 72px;
  }

  #assistantView .chat-input-container {
    padding: 0 10px 12px;
  }

  #assistantView .chat-input-form {
    grid-template-columns: minmax(0, 1fr) 38px 44px;
    padding: 7px;
  }

  #assistantView .chat-input-field {
    min-width: 0;
    font-size: 10.5px;
  }

  .chat-utility-btn {
    width: 38px;
    height: 38px;
  }

  .chat-utility-btn:first-of-type {
    display: none;
  }

  #assistantView .chat-send-btn-icon {
    width: 44px;
    height: 40px;
  }

  .assistant-disclaimer {
    padding: 0 8px;
    font-size: 8px;
    line-height: 1.45;
  }

  .assistant-side-card {
    padding: 15px;
  }

  .assistant-topic-card button small {
    white-space: normal;
  }
}
