:root {
  --brand: #003a81;
  --brand-mid: #0055b8;
  --brand-light: #0078d4;
  --glow: #00b4ff;
  --glow-soft: rgba(0, 180, 255, 0.22);
  --bg-base: #e4edf6;
  --text: #0c1a2e;
  --muted: #526580;
  --bubble-user: linear-gradient(135deg, #003a81 0%, #0055b8 55%, #0078d4 100%);
  --bubble-bot: rgba(255, 255, 255, 0.52);
  --line: rgba(0, 58, 129, 0.1);
  --line-strong: rgba(0, 58, 129, 0.16);
  --line-glow: rgba(0, 180, 255, 0.35);
  --surface: rgba(255, 255, 255, 0.42);
  --surface-strong: rgba(255, 255, 255, 0.68);
  --blur: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 32px rgba(0, 40, 90, 0.08);
  --shadow-glow: 0 0 0 1px rgba(0, 180, 255, 0.12), 0 12px 40px rgba(0, 58, 129, 0.1);
  --font: "PingFang TC", "蘋方-繁", "Hiragino Sans GB", "Microsoft JhengHei",
    sans-serif;
  /* legacy aliases */
  --accent: var(--brand);
  --bg1: var(--bg-base);
  --bg2: #f0f6fc;
  --bg3: #d8e8f6;
}

* { box-sizing: border-box; }

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  position: relative;
  isolation: isolate;
  background-color: var(--bg-base);
}

/* Futuristic mesh + aurora backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(0, 180, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 18%, rgba(0, 58, 129, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 120, 200, 0.1) 0%, transparent 55%),
    linear-gradient(165deg, #dceaf6 0%, #f2f7fc 38%, #e8f2fa 68%, #d0e4f4 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(0, 58, 129, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 58, 129, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
}

.app {
  max-width: 960px;
  width: 100%;
  flex: 1;
  min-height: 0;
  margin: 0 auto;
  padding: 18px 20px 24px;
  display: grid;
  grid-template-rows: auto auto minmax(280px, 1fr) auto auto;
  gap: 14px 0;
  row-gap: 14px;
}

.topbar {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(
    90deg,
    #002855 0%,
    rgb(0, 58, 129) 42%,
    #004a9f 100%
  );
  box-shadow:
    0 4px 28px rgba(0, 40, 90, 0.22),
    inset 0 -1px 0 rgba(0, 200, 255, 0.35);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 200, 255, 0.7) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(0, 200, 255, 0.7) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.hero {
  position: relative;
  text-align: left;
  padding: 4px 0 2px;
  overflow: visible;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-light);
  opacity: 0.55;
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
}

.hero::before,
.hero::after {
  display: none;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 72px;
  min-height: 36px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  line-height: 1;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease;
}

.site-nav a:hover {
  color: #fff;
  border-color: rgba(0, 200, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.2);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Staff links (自動更新 / 管理員): only after dashboard login */
.site-nav a.nav-staff[hidden] {
  display: none !important;
}

.site-nav .nav-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-nav .nav-user-menu[hidden] {
  display: none !important;
}

.site-nav .nav-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.site-nav .nav-user:hover,
.site-nav .nav-user-menu.is-open .nav-user {
  color: #fff;
  border-color: rgba(0, 200, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.site-nav .nav-user-caret {
  font-size: 0.7rem;
  opacity: 0.85;
}

.site-nav .nav-user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  z-index: 40;
}

.site-nav .nav-user-dropdown a {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  color: #1a2b3c;
  background: transparent;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0;
}

.site-nav .nav-user-dropdown a:hover {
  background: rgba(0, 90, 140, 0.08);
  color: #0b4f6c;
  box-shadow: none;
}

.brand {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1.35rem;
  color: var(--accent);
}

.brand-logo-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-link:hover .brand-logo,
.brand-logo-link:focus-visible .brand-logo {
  opacity: 0.88;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  margin: 0;
  object-fit: contain;
}

h1 {
  margin: 0 0 4px;
  font-family: var(--font);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 55%, var(--glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.new-conversation-btn {
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
}

.new-conversation-btn:hover {
  border-color: var(--brand-light);
}

.chat {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 4px 16px;
  background: transparent;
  min-height: 280px;
}

.chat:has(> .hint:only-child) {
  justify-content: center;
  min-height: 320px;
}

.hint {
  align-self: center;
  margin: 0;
  max-width: 22em;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: pre-line;
  padding: 16px 12px;
  background: transparent;
  animation:
    hintEnter 700ms ease-out both,
    hintFloat 4.5s ease-in-out 700ms infinite;
}

@keyframes hintEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hintFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hint {
    animation: hintEnter 700ms ease-out both;
  }
}

.msg {
  max-width: 92%;
  padding: 12px 16px;
  border-radius: var(--radius);
  line-height: 1.55;
  white-space: pre-wrap;
  animation: rise 240ms ease-out;
}

.msg.user {
  align-self: flex-end;
  background: var(--bubble-user);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 58, 129, 0.22);
}

.msg.assistant {
  align-self: flex-start;
  background: var(--bubble-bot);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
}

.msg-body {
  white-space: pre-wrap;
  line-height: 1.55;
}

.msg-sources {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.msg-sources-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  user-select: none;
}

.msg-sources-summary::-webkit-details-marker {
  display: none;
}

.msg-sources-summary::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
  flex-shrink: 0;
}

.msg-sources[open] > .msg-sources-summary::before {
  transform: rotate(45deg);
}

.msg-sources-list {
  margin: 10px 0 0;
  padding: 0 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text);
}

.msg-sources-list a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
  cursor: pointer;
}

.msg-sources-list a:hover {
  color: var(--glow);
}

.related-links {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.related-links-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.related-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

a.related-link {
  color: var(--brand-light);
  text-decoration: none;
  word-break: break-word;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color 160ms ease;
}

a.related-link:hover {
  color: var(--glow);
}

.feedback {
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-right: 4px;
}

.feedback-btn {
  border: 0;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 36px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.feedback-btn:hover:not(:disabled) {
  background: rgba(0, 58, 129, 0.08);
  transform: translateY(-1px);
}

.feedback-btn.selected {
  background: rgba(0, 58, 129, 0.12);
}

.feedback-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.feedback-status {
  color: var(--muted);
  font-size: 0.8rem;
}

.feedback-done {
  min-height: 28px;
  justify-content: flex-start;
}

.feedback-updated {
  display: inline-block;
  color: #1f7a4a;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: feedbackUpdated 700ms ease-out both;
}

@keyframes feedbackUpdated {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  55% {
    opacity: 1;
    transform: translateY(-2px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feedback-reason {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.feedback-reason[hidden] {
  display: none;
}

.feedback-reason-input {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  color: #1b2430;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feedback-reason-input:focus {
  box-shadow: 0 0 0 2px rgba(0, 58, 129, 0.18);
}

.feedback-reason-submit {
  border: 0;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feedback-reason-submit:hover:not(:disabled) {
  background: rgba(0, 58, 129, 0.08);
}

.feedback-reason-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 640px) {
  .feedback-reason {
    grid-template-columns: 1fr;
  }
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 0 0;
  background: transparent;
}

.composer input {
  width: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: box-shadow 200ms ease;
}

.composer input::placeholder {
  color: #7a8fa8;
}

.composer input:focus {
  box-shadow:
    0 0 0 3px rgba(0, 180, 255, 0.15),
    0 0 20px rgba(0, 180, 255, 0.12);
}

.composer button {
  border: 0;
  border-radius: 10px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(0, 58, 129, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.composer button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 6px 24px rgba(0, 58, 129, 0.35),
    0 0 20px rgba(0, 180, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.composer button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.suggestions {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.expert-header {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-light, #4a7ab5);
  letter-spacing: 0.02em;
}

.expert-disclosure {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7a3b00;
  background: rgba(255, 186, 73, 0.14);
  border: 1px solid rgba(180, 110, 20, 0.22);
}

.expert-info-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0 2px;
  line-height: 1;
}

.expert-cards {
  display: grid;
  gap: 0;
}

.expert-cards-note {
  display: none;
}

.expert-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
}

.expert-card {
  border: 1px solid rgba(0, 58, 129, 0.12);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.45);
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.expert-card:hover {
  border-color: rgba(0, 120, 212, 0.35);
  transform: translateY(-1px);
}

.expert-card.is-active {
  border-color: var(--glow, #0078d4);
  background: rgba(0, 120, 212, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 120, 212, 0.1);
}

.expert-card-name {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand);
  margin-bottom: 0;
  line-height: 1.2;
}

.expert-card-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.25;
}

.expert-card-focus,
.expert-card-cta {
  display: none;
}

.expert-switch-notice {
  display: none !important;
}

.expert-conversation-notice {
  margin: 0 auto 8px;
  max-width: 36rem;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 58, 129, 0.05);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.expert-info-dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 18px 50px rgba(0, 30, 60, 0.28);
}

.expert-info-dialog::backdrop {
  background: rgba(10, 24, 44, 0.45);
}

.expert-info-form {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.expert-info-form h2 {
  margin: 0;
  font-size: 1.05rem;
}

.expert-info-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 0.86rem;
}

.expert-info-dl dt {
  color: var(--muted);
  font-weight: 600;
}

.expert-info-dl dd {
  margin: 0;
}

@media (max-width: 800px) {
  .hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions {
    align-items: flex-start;
  }

  .expert-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: none;
  }

  .expert-card {
    padding: 6px 8px;
  }

  .expert-card-name {
    font-size: 0.76rem;
  }

  .expert-card-title {
    font-size: 0.62rem;
  }

  .app {
    padding: 14px 14px 20px;
    row-gap: 12px;
    grid-template-rows: auto auto minmax(220px, 1fr) auto auto;
  }
}

.expert-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
}

.expert-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.expert-select {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  outline: none;
  cursor: pointer;
  transition: box-shadow 200ms ease;
}

.expert-select:focus {
  box-shadow:
    0 0 0 3px rgba(0, 180, 255, 0.15),
    0 0 20px rgba(0, 180, 255, 0.12);
}

.suggestions-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.suggestion-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.suggestion {
  border: 0;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 200ms ease,
    color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.suggestion:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 58, 129, 0.1),
    0 0 16px rgba(0, 180, 255, 0.12);
}

.suggestion:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.suggestion:disabled {
  opacity: 0.5;
  cursor: wait;
}

.dashboard-login {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.dashboard-login-card {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(0, 58, 129, 0.12);
}

.dashboard-login-card h1,
.dashboard-login-card p {
  margin: 0;
}

.dashboard-login-card label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  outline: none;
}

.dashboard-login-card input:focus {
  box-shadow: 0 0 0 3px rgba(0, 58, 129, 0.14);
}

.dashboard-login-card button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-login-card .dashboard-login-error {
  color: #b42318;
  font-size: 0.88rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .app { padding: 16px 12px 14px; }
  .topbar-inner {
    padding: 12px;
  }
  .hero::after,
  .dash-hero::after {
    display: none;
  }
  .msg { max-width: 100%; }
}
