/* Shared layout for reference material and account entry flows. */
.ref-wrap { width: min(100% - 64px, 1536px); margin-inline: auto; padding: 64px 0 56px; }
.page-inline-bar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.page-inline-bar .select { width: auto; height: 34px; min-width: 116px; }
.ref-wrap--narrow { max-width: 640px; }
.ref-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--fg-3); font-size: var(--fs-sm); }
.ref-crumbs a:hover, .ref-link:hover { text-decoration: underline; }
.ref-crumbs .i { width: 13px; height: 13px; }
.ref-heading { margin-bottom: 26px; }
.ref-heading h1 { margin: 0 0 7px; font-size: clamp(20px, 2.2vw, var(--fs-2xl)); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.ref-heading p { margin: 0; color: var(--fg-2); }
.ref-search { width: min(100%, 560px); position: relative; }
.ref-search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.ref-search input { width: 100%; padding-inline-start: 38px; }
.ref-pills { display: flex; gap: 7px; flex-wrap: wrap; margin: 19px 0; }
.ref-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ref-panel, .ref-card { border: 1px solid var(--line-hairline); border-radius: var(--r-lg); background: var(--bg-surface); box-shadow: none; }
.ref-panel { padding: 22px; }
.ref-card { display: flex; flex-direction: column; gap: 10px; padding: 17px; min-width: 0; text-align: start; transition: background var(--dur), border-color var(--dur), box-shadow var(--dur), transform var(--dur-fast) var(--ease-out); }
a.ref-card:hover { background: var(--bg-surface); border-color: var(--line-strong); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.ref-card h2, .ref-card h3, .ref-panel h2 { margin: 0; font-size: var(--fs-lg); letter-spacing: var(--ls-normal); }
.ref-card p, .ref-panel p { margin: 0; color: var(--fg-2); font-size: var(--fs-sm); }
.ref-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ref-card-top > .i { width: 17px; height: 17px; color: var(--fg-3); }
.ref-icon { display: inline-grid; place-items: center; height: 35px; width: 35px; flex: none; border-radius: var(--r-md); background: var(--bg-muted); }
.ref-icon .i { width: 18px; height: 18px; }
.ref-card-lg { padding: 28px; }
.ref-checkout-card { display: grid; gap: 14px; }
.ref-kv-row { display: flex; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.ref-kv-row.is-baseline { align-items: baseline; }
.ref-kv-row.is-center { align-items: center; }
.ref-checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ref-legacy-note { padding: 18px; margin-bottom: 16px; }
.ref-legacy-row { padding: 16px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.ref-legacy-time { color: var(--fg-3); font-size: var(--fs-xs); white-space: nowrap; }
.ref-dir-card { padding: 20px; display: block; text-decoration: none; }
.ref-dir-summary { margin: 0; font-size: var(--fs-sm); color: var(--fg-2); line-height: var(--lh-normal); }
.ref-api-quick { padding: 24px; margin-bottom: 20px; }
.ref-api-quick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ref-device-card { display: grid; gap: 14px; }
.ref-split { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: 28px; }
.ref-menu { display: grid; gap: 3px; position: sticky; top: 16px; padding: 10px; background: var(--bg-surface); box-shadow: none; border: 1px solid var(--line-hairline); border-radius: var(--r-lg); }
.ref-menu a { padding: 8px 10px; border-radius: var(--r-sm); color: var(--fg-2); font-size: var(--fs-sm); }
.ref-menu a:hover { background: var(--bg-hover); }
.ref-menu a[aria-current] { background: var(--bg-active); color: var(--fg); font-weight: var(--fw-semibold); }
.ref-article { min-width: 0; }
.ref-article h2 { margin: 25px 0 9px; font-size: var(--fs-xl); }
.ref-article h2:first-child { margin-top: 0; }
.ref-article p, .ref-article li { color: var(--fg-2); line-height: var(--lh-relaxed); }
.ref-article p { margin: 8px 0 13px; }
.ref-article :where(ol,ul) { margin: 10px 0 18px; padding-left: 24px; }
.ref-article li { margin: 5px 0; }
.ref-callout { padding: 13px 15px; border: 0; background: var(--bg-subtle); border-radius: var(--r-md); color: var(--fg-2); font-size: var(--fs-sm); }
.ref-empty { padding: 36px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; color: var(--fg-2); }
.ref-empty > .i { width: 24px; height: 24px; color: var(--fg-3); }
.ref-empty h2 { margin: 10px 0 4px; font-size: var(--fs-lg); color: var(--fg); }
.ref-empty p { margin: 0 0 12px; font-size: var(--fs-sm); }
.ref-link { color: var(--accent); }
.ref-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.ref-rail { display: grid; gap: 8px; }
.ref-field { display: grid; gap: 6px; min-width: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.ref-field :where(input,textarea,select) { width: 100%; font: inherit; font-weight: var(--fw-regular); }
.ref-field textarea { min-height: 106px; padding: 10px 12px; resize: vertical; }
.ref-field small { font-weight: var(--fw-regular); color: var(--fg-3); }
.ref-form { display: grid; gap: 14px; }
.ref-form > .seg { justify-self: start; }
.ref-form [hidden], .ref-panel [hidden] { display: none; }
.ref-error { color: var(--danger, #a93736); font-size: var(--fs-sm); min-height: 1em; }
.ref-code { margin: 16px 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--bg-subtle); }
.ref-code-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 11px 6px 14px; border-bottom: 1px solid var(--line-hairline); font-size: var(--fs-xs); color: var(--fg-3); }
.ref-code pre { padding: 14px; margin: 0; overflow-x: auto; font-family: var(--mono); font-size: var(--fs-xs); line-height: var(--lh-normal); }
.ref-meta { color: var(--fg-3); font-size: var(--fs-xs); }
.ref-footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-hairline); display: flex; gap: 12px 20px; flex-wrap: wrap; color: var(--fg-3); font-size: var(--fs-xs); }
.ref-footer a:hover { color: var(--fg); }
.ref-payment-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.65fr); gap: 16px; align-items: start; }
.ref-total { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); font-variant-numeric: tabular-nums; }
.ref-pay-choice { display: flex; align-items: center; gap: 10px; border: 1.5px solid transparent; background: var(--bg-subtle); border-radius: var(--r-md); padding: 12px; }
.ref-pay-choice:has(:checked) { border-color: var(--accent); background: var(--accent-weak); }
.ref-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--bg-muted); }
.ref-gallery > article { gap: 8px; }
.ref-gallery .ref-cta { margin-top: 4px; }
.ref-gallery .ref-meta { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .ref-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .ref-wrap { width: min(100% - 32px, 640px); padding-top: 24px; }
  .ref-split, .ref-payment-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .ref-menu { position: static; display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 6px; }
  .ref-menu::-webkit-scrollbar { display: none; }
  .ref-menu a { flex: none; }
  .ref-panel, .ref-card, .ref-card-lg, .ref-legacy-note, .ref-legacy-row, .ref-dir-card, .ref-api-quick { padding: 15px; }
  .ref-dir-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ref-checkout-actions .btn-primary { width: 100%; }
  .ref-heading { margin-bottom: 19px; }
  .ref-crumbs { margin-bottom: 13px; }
}
@media (max-width: 470px) {
  .ref-grid { grid-template-columns: minmax(0,1fr); }
  .ref-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .ref-gallery > article { padding: 8px; }
}

/* Auth 2-column showcase */
.ref-auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 24px; max-width: 960px; margin-inline: auto; align-items: stretch; }
.ref-auth-hero {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 26px;
  border: 1px solid var(--line-hairline); border-radius: var(--r-lg); background: var(--bg-surface); box-shadow: none;
}
.ref-auth-hero h2 { font-size: var(--fs-2xl); letter-spacing: var(--ls-tight); }
.ref-auth-hero p { color: var(--fg-2); font-size: var(--fs-sm); margin-top: 6px; }
.ref-auth-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ref-auth-mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }
.ref-auth-list { display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--fg-2); }
.ref-auth-list li { display: flex; align-items: center; gap: 8px; }
.ref-auth-list .i { width: 15px; height: 15px; color: var(--accent); flex: none; }
.ref-pw-wrap { position: relative; display: flex; align-items: center; }
.ref-pw-wrap .input { padding-right: 40px; }
.ref-pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.ref-pw-meter { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--fg-3); }
.ref-pw-bars { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 4px; }
.ref-pw-bars i { border-radius: 4px; background: var(--bg-muted); display: block; }
.ref-pw-bars[data-level="1"] i:nth-child(1) { background: var(--danger); }
.ref-pw-bars[data-level="2"] i:nth-child(-n+2) { background: var(--warning); }
.ref-pw-bars[data-level="3"] i { background: var(--success); }
.ref-divider { display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: var(--fs-xs); margin: 4px 0; }
.ref-divider::before, .ref-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ref-oauth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ref-inline-row { display: flex; gap: 8px; align-items: center; }
.ref-inline-row .input { flex: 1; min-width: 0; }

/* Checkout QR, coupon, receipt */
.ref-pay-brand { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; color: #fff; font-size: var(--fs-2xs); font-weight: var(--fw-bold); flex: none; }
.ref-pay-brand.alipay { background: #1677ff; }
.ref-pay-brand.wxpay { background: #07c160; }
.ref-pay-brand.stripe { background: #635bff; }
.ref-pay-brand.paypal { background: #003087; }
.ref-pay-brand.creem { background: #6d28d9; }
.ref-pay-brand.nowpayments { background: #059669; }
.ref-qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border: 0; border-radius: var(--r-md); background: var(--bg-subtle); text-align: center; }
.ref-qr-frame { padding: 10px; background: #fff; border: 1px solid var(--line-hairline); border-radius: var(--r-sm); box-shadow: none; }
.ref-qr-frame svg { display: block; width: 148px; height: 148px; }
.ref-countdown { font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); color: var(--accent); }
.ref-summary-lines { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-hairline); font-size: var(--fs-sm); }
.ref-summary-line { display: flex; justify-content: space-between; gap: 8px; color: var(--fg-2); }
.ref-summary-line.total { font-weight: var(--fw-semibold); color: var(--fg); padding-top: 6px; border-top: 1px solid var(--line-hairline); }

/* Asset Library multimedia & batch bar */
.ref-storage-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--line-hairline); border-radius: var(--r-lg); background: var(--bg-surface); box-shadow: none; }
.ref-storage-bar { width: min(100%, 260px); height: 6px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; margin-top: 6px; }
.ref-storage-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.ref-asset-card { position: relative; }
.ref-asset-check { position: absolute; top: 10px; left: 10px; z-index: 2; width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.ref-asset-kind { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(20,20,24,.7); color: #fff; font-size: var(--fs-2xs); backdrop-filter: blur(4px); }
.ref-gallery video, .ref-gallery .ref-audio-tile { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--bg-muted); }
.ref-audio-tile { display: grid; place-items: center; gap: 6px; color: var(--accent); background: linear-gradient(135deg, var(--accent-weak), var(--bg-muted)); padding: 14px; }
.ref-drop-zone.is-dragover { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: var(--r-lg); }

/* Help & API docs & Membership matrix */
.ref-hot-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: var(--fs-xs); color: var(--fg-3); }
.ref-hot-searches button { padding: 4px 11px; border-radius: var(--r-full); background: var(--bg-surface); box-shadow: none; border: 1px solid var(--line-hairline); font-size: var(--fs-xs); color: var(--fg-2); }
.ref-hot-searches button:hover { background: var(--bg-active); border-color: var(--line-strong); color: var(--fg); box-shadow: none; }
.ref-dev-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 22px; border: 1px solid var(--line-hairline); border-radius: var(--r-lg); background: var(--bg-surface); box-shadow: none; }
.ref-dev-endpoint { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--r-sm); background: var(--bg-subtle); border: 0; font-family: var(--mono); font-size: var(--fs-xs); }
.ref-method { display: inline-block; padding: 2px 7px; border-radius: 5px; font-family: var(--mono); font-size: var(--fs-2xs); font-weight: var(--fw-bold); background: var(--accent-weak); color: var(--accent-text); }
.ref-method[data-m="POST"] { background: var(--success-weak); color: var(--success); }
.ref-code-tabs { display: flex; gap: 4px; }
.ref-code-tabs button { padding: 4px 9px; border-radius: 6px; font-size: var(--fs-xs); color: var(--fg-2); }
.ref-code-tabs button[aria-pressed="true"] { background: var(--bg-surface); color: var(--fg); font-weight: var(--fw-semibold); box-shadow: var(--shadow-sm); }
.ref-try-box { margin-top: 16px; padding: 16px; border: 0; border-radius: var(--r-md); background: var(--bg-subtle); display: grid; gap: 12px; }
.ref-try-res { margin: 0; padding: 12px; border-radius: var(--r-sm); background: var(--bg-surface); border: 1px solid var(--line-hairline); font-family: var(--mono); font-size: var(--fs-xs); line-height: var(--lh-normal); overflow-x: auto; max-height: 240px; }
.ref-matrix-wrap { border: 1px solid var(--line-hairline); border-radius: var(--r-lg); background: var(--bg-surface); box-shadow: none; overflow: auto; margin-top: 22px; }
.ref-matrix { width: 100%; border-collapse: collapse; min-width: 620px; font-size: var(--fs-sm); }
.ref-matrix th, .ref-matrix td { padding: 12px 14px; border-bottom: 1px solid var(--line-hairline); text-align: center; }
.ref-matrix th:first-child, .ref-matrix td:first-child { text-align: left; }
.ref-matrix th { background: var(--bg-subtle); font-weight: var(--fw-semibold); }
.ref-matrix .is-current { background: var(--accent-weak); }
.ref-matrix .group-row td { background: var(--bg-subtle); font-weight: var(--fw-semibold); text-align: left; color: var(--fg); }
.ref-faq { border-top: 1px solid var(--line-hairline); margin-top: 12px; }
.ref-faq details { border-bottom: 1px solid var(--line-hairline); }
.ref-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; font-weight: var(--fw-medium); font-size: var(--fs-md); }
.ref-faq summary::-webkit-details-marker { display: none; }
.ref-faq details p { padding: 0 2px 12px; margin: 0; font-size: var(--fs-sm); }
.ref-tickets { margin-top: 18px; display: grid; gap: 10px; }
.ref-ticket { padding: 12px 14px; border: 1px solid var(--line-hairline); border-radius: var(--r-md); background: var(--bg-surface); box-shadow: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ref-ticket:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card-hover); }
.ref-ticket[aria-current] { border-color: var(--accent); box-shadow: none; background: var(--accent-weak); }
.ref-ticket-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.ref-ticket-detail, .ref-ticket { overflow-wrap: anywhere; }
.ref-auth-tabs { flex-wrap: wrap; }
.ref-auth-tabs > button { flex: 1 0 auto; }
.ref-doc { padding: clamp(15px, 3vw, 28px); overflow-wrap: anywhere; }
.ref-doc h2 { font-size: clamp(16px, 2vw, var(--fs-xl)); }
.ref-doc .tag { align-self: start; }
.ref-doc pre { max-width: 100%; overflow-x: auto; }
.ref-qr-box canvas { display: block; max-width: 100%; height: auto; }
.ref-task-preview { margin-top: 12px; }
.ref-task-preview :is(img, video) { display: block; max-width: 100%; max-height: 240px; border-radius: var(--r-sm); }
.ref-task-preview audio { max-width: 100%; }
.ref-task-preview button { cursor: zoom-in; }
.ref-library-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.ref-library-asset { gap: 4px; padding: 8px; }
.ref-library-media { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-muted); }
.ref-library-media video { width: 100%; height: 100%; }
.ref-library-media audio { width: 100%; }
.ref-library-image { width: 100%; height: 100%; cursor: zoom-in; }
.ref-library-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ref-library-caption { display: flex; align-items: center; gap: 4px; }
.ref-library-caption span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 899px) {
  .ref-auth-grid { grid-template-columns: 1fr; }
  .ref-auth-hero { order: 2; }
}
@media (max-width: 767px) {
  .ref-ticket-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ref-responsive-head { flex-wrap: wrap; height: auto; min-height: 52px; padding-block: 8px; }
  .ref-responsive-head h1 { white-space: normal; }
}

/* Notifications center page */
.notif-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.notif-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.notif-cat-pill {
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-hairline);
  background: var(--bg-surface);
  box-shadow: none;
  color: var(--fg-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.notif-cat-pill:hover { color: var(--fg); border-color: var(--line-strong); box-shadow: none; }
.notif-cat-pill.is-active {
  background: var(--bg-active);
  border-color: transparent;
  color: var(--fg);
  box-shadow: none;
  font-weight: var(--fw-semibold);
}
.notif-page-summary { font-size: var(--fs-xs); color: var(--fg-3); }
.notif-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 20px;
  align-items: start;
}
.notif-list { display: grid; gap: 10px; }
.notif-list-more { margin-top: 14px; display: flex; justify-content: center; }
.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  box-shadow: none;
  cursor: pointer;
  transition: background var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.notif-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card-hover); }
.notif-card.is-unread { border-left: 3px solid var(--accent); }
.notif-card.is-selected {
  background: var(--accent-weak);
  border-color: var(--accent);
  box-shadow: none;
}
.notif-card-main { flex: 1; min-width: 0; }
.notif-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.notif-card-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--fg);
  overflow-wrap: anywhere;
}
.notif-card.is-unread .notif-card-title { font-weight: var(--fw-semibold); }
.notif-card-time { flex: none; font-size: var(--fs-xs); color: var(--fg-3); white-space: nowrap; }
.notif-card-body {
  margin: 5px 0 10px;
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: var(--lh-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.notif-card-jump {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent);
}
.notif-card-jump:hover { text-decoration: underline; }
.notif-detail-pane {
  position: sticky;
  top: 72px;
  padding: 22px;
  min-height: 280px;
}
.notif-detail-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 56px 16px;
  text-align: center;
  color: var(--fg-3);
}
.notif-detail-empty .i { width: 28px; height: 28px; opacity: .55; }
.notif-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-hairline);
}
.notif-detail-badges { display: inline-flex; align-items: center; gap: 8px; }
.notif-detail-time { font-size: var(--fs-xs); color: var(--fg-3); }
.notif-detail-title {
  margin: 14px 0 10px;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  overflow-wrap: anywhere;
}
.notif-detail-body {
  font-size: var(--fs-md);
  color: var(--fg-2);
  line-height: var(--lh-relaxed);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notif-detail-media { margin-top: 14px; }
.notif-detail-media img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: var(--r-md);
  border: 0;
}
.notif-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-hairline);
}
.notif-mobile-dialog {
  max-width: 520px;
  width: 92vw;
  border-radius: var(--r-xl);
  padding: 20px;
  border: 0;
  box-shadow: var(--shadow-pop);
  background: var(--bg-elevated);
}
.notif-mobile-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.notif-mobile-dialog-head h3 { margin: 0; font-size: var(--fs-lg); }
@media (max-width: 767px) {
  .notif-page-layout { grid-template-columns: minmax(0, 1fr); }
  .notif-detail-pane { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ref-card,
  a.ref-card:hover {
    transition: none;
    transform: none;
  }
}
