:root {
  --bg: #e8f2ef;
  --bg2: #f7fbfa;
  --ink: #0b2f2b;
  --muted: #5a736e;
  --teal: #0a5c54;
  --teal-deep: #064039;
  --accent: #1a8a7a;
  --line: #c5d8d3;
  --danger: #b42318;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(6, 64, 57, 0.12);
  --radius: 16px;
  font-family: "IBM Plex Sans", "Source Han Sans SC", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #cfe8e2 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #d9efe8 0%, transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg2) 40%, #f4f8f7);
}

.hidden { display: none !important; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 251, 250, 0.88);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #fff; font-weight: 700; letter-spacing: 0.02em;
}
.brand__name { font-weight: 700; font-size: 1.05rem; }
.brand__sub { color: var(--muted); font-size: 0.78rem; }
.top__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-label { color: var(--muted); font-size: 0.85rem; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.lang-switch__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.lang-select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230a5c54' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.2 0 2.3z'/%3E%3C/svg%3E")
    no-repeat right 0.65rem center;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.38rem 1.85rem 0.38rem 0.7rem;
  min-width: 7.5rem;
  cursor: pointer;
}
.lang-select:hover,
.lang-select:focus {
  border-color: var(--teal);
  outline: none;
}

.main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 64px; }

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 28px 24px 22px;
}
.hero h1 {
  margin: 0 0 8px;
  font-family: "IBM Plex Serif", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}
.hero__desc { margin: 0 0 18px; color: var(--muted); line-height: 1.55; max-width: 62ch; }

.search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}
.opts {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}
.opt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.opt select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
  color: var(--ink);
}
.opt--check { gap: 6px; }

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.input:focus { outline: 2px solid rgba(10, 92, 84, 0.25); border-color: var(--teal); }

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--teal-deep); }
.btn--secondary { background: #e2f0ec; color: var(--teal-deep); }
.btn--ghost { background: transparent; color: var(--teal); border: 1px solid transparent; }
.btn--ghost:hover { border-color: var(--line); background: #fff; }
.btn--block { width: 100%; }

.status { min-height: 1.2em; margin: 12px 0 0; color: var(--muted); }
.error { margin: 8px 0 0; color: var(--danger); }

.result {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.result.is-history {
  outline: 2px solid rgba(26, 138, 122, 0.35);
  outline-offset: 2px;
}
.history-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef7f4;
  border: 1px solid var(--line);
}
.history-banner strong { margin-right: 8px; }
.history-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.history-table td:nth-child(2) {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-table th:last-child,
.history-table td.history-actions {
  position: sticky;
  right: 0;
  z-index: 2;
  text-align: right;
  white-space: nowrap;
  width: 1%;
  min-width: 9.5rem;
  vertical-align: middle;
  background: #fff;
  box-shadow: -6px 0 8px -6px rgba(20, 40, 30, 0.18);
}
.history-table tbody tr:hover td.history-actions {
  background: #f3f8f6;
}
.history-table .history-actions__btns {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.history-table .btn-view,
.history-table .btn-delete {
  display: inline-block;
  font-size: 0.82rem;
  padding: 4px 10px;
  flex: 0 0 auto;
}
.history-table .btn-delete {
  color: #9b2c2c;
}
.history-table .btn-delete:hover {
  background: #fde8e8;
  color: #7a1f1f;
}
.result__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.result__head h2 { margin: 0 0 6px; font-size: 1.35rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2f0ec;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge--ai { background: #fff3cd; color: #7a5b00; }
.badge--db { background: #d8f3dc; color: #146c2e; }
.struct {
  width: 140px; height: 110px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.struct img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.struct--zoomable,
.chart-card--zoomable {
  cursor: zoom-in;
}
.struct--zoomable:hover,
.chart-card--zoomable:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(10, 92, 84, 0.12);
}
.struct--zoomable:focus-visible,
.chart-card--zoomable:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.struct--zoomable:hover .zoom-hint,
.chart-card--zoomable:hover .zoom-hint {
  opacity: 1;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfc;
  padding: 8px;
  min-height: 280px;
  position: relative;
}
.chart-host { width: 100%; height: 280px; }
.chart-host svg { width: 100%; height: 100%; display: block; }
.chart-empty { padding: 24px; text-align: center; }

.method-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.88rem;
}
.chip--on { background: var(--teal); color: #fff; border-color: var(--teal); }

.modal--zoom .modal__panel--zoom {
  width: min(96vw, 1100px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
}
.zoom-body {
  flex: 1;
  min-height: 0;
  padding: 12px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7faf9;
  overflow: auto;
}
.zoom-img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.zoom-chart {
  width: 100%;
  height: min(70vh, 520px);
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 8px;
}
.zoom-chart svg { width: 100%; height: 100%; display: block; }

.peaks-card { margin-top: 16px; }
.peaks-card h3 { margin: 0 0 8px; font-size: 1rem; }
.table-wrap { overflow: auto; max-height: 260px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #eef6f4; position: sticky; top: 0; }

.disclaimer { margin-top: 14px; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 30, 28, 0.45);
  display: grid; place-items: center;
  padding: 16px;
}
.modal__panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.login-gate__msg {
  margin: 8px 0 16px;
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.95rem;
}
.login-gate__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.modal__panel--wide {
  width: min(960px, 100%);
}
.modal__panel--profile {
  display: flex;
  flex-direction: column;
  max-width: min(1080px, 96vw);
  width: min(1080px, 96vw);
  max-height: min(90vh, 880px);
  overflow: hidden;
  padding-bottom: 0;
}
.modal__panel--profile > .modal__bar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.profile-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 2px 20px;
}
.profile-account {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf9;
}
.profile-account__info { min-width: 0; }
.profile-user {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.profile-section-title {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}
.membership {
  margin: 4px 0 12px;
}
.membership__quota {
  margin: 0 0 10px;
}
.membership__plans {
  display: block;
  margin-bottom: 10px;
}
.membership__plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.membership__interval {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 12px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f0f4f3;
}
.membership-interval-btn.is-on {
  background: var(--accent, #2a7a6a);
  color: #fff;
  border-color: transparent;
}
.membership-card__cycle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.membership-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f7faf9;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 140px;
}
.membership-card--current {
  border-color: var(--accent, #2a7a6a);
  box-shadow: inset 0 0 0 1px rgba(42, 122, 106, 0.25);
}
.membership-card__name {
  margin: 0;
  font-weight: 650;
  font-size: 1rem;
}
.membership-card__price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.membership-card__limits {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.membership-card .btn {
  width: 100%;
  margin-top: auto;
}
.membership__paypal {
  min-height: 45px;
  margin: 4px 0 8px;
}
.membership__paypal.hidden { display: none; }
.profile-password {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
}
.profile-password > summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.profile-password > summary::-webkit-details-marker { display: none; }
.profile-password > summary::after {
  content: '▾';
  float: right;
  color: var(--muted);
}
.profile-password[open] > summary::after { content: '▴'; }
.profile-password__form {
  padding-bottom: 12px;
}
.profile-password__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.table-wrap { overflow: auto; max-height: min(52vh, 420px); }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.history-table th, .history-table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.history-table th { color: var(--muted); font-weight: 500; }
.history-table tbody tr { cursor: pointer; }
.history-table tbody tr:hover { background: #f3f8f6; }
.modal--wide .modal__panel--ketcher {
  width: min(1100px, 100%);
  height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.modal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 0.88rem; color: var(--muted); }
.captcha-row, .code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.captcha-input, .code-input { flex: 1; min-width: 0; }
.captcha-btn {
  flex: 0 0 128px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf4f2;
  cursor: pointer;
  overflow: hidden;
}
.captcha-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 42px;
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}
.captcha-img svg,
.captcha-img img {
  width: 128px;
  height: 42px;
  display: block;
}
.code-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 7.5rem;
}
.tip { margin: 10px 0 0; font-size: 0.8rem; }
.ketcher-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
#ketcherFrame {
  flex: 1;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-height: 420px;
}
.ketcher-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(247, 250, 249, 0.96);
  border: 1px solid var(--line);
}
.ketcher-loading.hidden { display: none; }
.ketcher-loading__title {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.ketcher-loading__pct {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--teal);
}
.ketcher-loading__detail { margin: 0; text-align: center; }
.ketcher-progress {
  width: min(360px, 86%);
  height: 10px;
  border-radius: 999px;
  background: #e2eeea;
  overflow: hidden;
}
.ketcher-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep, #0a5c54));
  transition: width 0.18s ease-out;
}
.ketcher-progress--indeterminate .ketcher-progress__bar {
  width: 36% !important;
  animation: ketcher-indeterminate 1.1s ease-in-out infinite;
}
@keyframes ketcher-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (max-width: 780px) {
  .search-row { grid-template-columns: 1fr; }
  .result__head { flex-direction: column; }
  .struct { width: 100%; height: 160px; }
  .ref-layout { grid-template-columns: 1fr; }
  .imp-grid { grid-template-columns: 1fr; }
  .ref-side { order: -1; }
}

/* —— 溶剂 / 杂质速查（对齐主站 NMR 页） —— */
.ref-workspace {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 18px 18px 22px;
}
.ref-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ref-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.ref-tab--on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.ref-search {
  position: relative;
  margin-bottom: 14px;
  max-width: 420px;
}
.ref-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.ref-search .input { padding-left: 34px; }
.ref-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 14px;
  align-items: start;
}
.cardish {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfc;
  padding: 12px;
}
.ref-side { position: sticky; top: 78px; }
.ref-panel.hidden { display: none !important; }
.table-wrap--tall { max-height: 440px; }
.ref-table th, .ref-table td {
  padding: 8px 10px;
  font-size: 0.88rem;
  vertical-align: top;
}
.ref-table tbody tr.is-active {
  background: #e2f0ec;
}
.ref-table tbody tr { cursor: default; }
.ref-table--compact td:last-child,
.ref-table--compact th:last-child { white-space: normal; }
.ref-note {
  margin: 10px 2px 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.imp-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.imp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.solvent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.solvent-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.86rem;
  color: var(--teal-deep);
}
.solvent-chip--on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.solvent-focus {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.solvent-focus__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.solvent-focus__meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 10px;
}
.solvent-focus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.solvent-focus__card {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #f7fbfa;
}
.solvent-focus__card strong {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.solvent-focus__imp {
  margin-top: 10px;
}
.solvent-focus__imp table td:last-child {
  font-variant-numeric: tabular-nums;
}

.table-wrap--matrix {
  max-height: 520px;
  overflow: auto;
}
.ref-table--matrix {
  min-width: 920px;
}
.ref-table--matrix th {
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ref-table--matrix th:first-child,
.ref-table--matrix td:first-child {
  position: sticky;
  left: 0;
  background: #eef6f4;
  z-index: 2;
}
.ref-table--matrix th:first-child {
  z-index: 3;
}
.ref-table--matrix tr.is-solvent-row {
  background: #e8f3f0;
  font-weight: 650;
}
.ref-table--matrix td.is-highlight {
  background: #fff6d8;
}

.case-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.case-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 12px;
  min-height: 420px;
}
.case-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: auto;
  max-height: 520px;
}
.case-list__item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.case-list__item:hover { background: #f0f7f5; }
.case-list__item.is-active { background: #e2f0ec; }
.case-list__name { display: block; font-weight: 650; font-size: 0.9rem; color: var(--ink); }
.case-list__meta { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
.case-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  overflow: auto;
  max-height: 520px;
}
.case-detail__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
}
.case-detail__cat {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2f0ec;
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 700;
}
.case-block { margin-top: 14px; }
.case-block h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--teal-deep);
}
.by {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fbfcfc;
}
.by__name { display: block; font-weight: 700; margin-bottom: 4px; }
.by__line { display: block; font-size: 0.86rem; color: var(--ink); line-height: 1.45; margin-top: 2px; }
.by__line .muted { color: var(--muted); }
.case-bullets { margin: 0; padding-left: 18px; }
.case-bullets li { margin: 4px 0; font-size: 0.88rem; line-height: 1.45; }

@media (max-width: 900px) {
  .case-layout { grid-template-columns: 1fr; }
}
