:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f8fafc;
  --white: #fff;
  --forest: #e11d48;
  --green: #ffe4e6;
  --line: #e2e8f0;
  --radius: 16px;
  --focus: #be123c;
}

body { min-width: 280px; }
#site-header, #site-footer, #site-shortcuts { display: contents; }
#main { min-height: 52vh; }
#danh-ba { scroll-margin-top: 130px; }
[hidden] { display: none !important; }
button:not(:disabled), select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.wrap { width: min(100% - 48px, 1216px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%); background: white; padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }
.initial-state, .connection-error { padding-block: 58px; }
.connection-error h1 { font-size: 30px; font-weight: 800; }
.connection-error p { color: var(--muted); margin: 9px 0 24px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.button-dark { color: white; background: #f43f5e; }
.button-dark:hover { background: #e11d48; }
.button-lime, .button-outline { color: #be123c; background: #fff1f2; border: 1px solid #fecdd3; }

.reference-brand-mark, .reference-footer-mark { border-radius: 8px; }
.reference-compact-nav { scrollbar-width: thin; scrollbar-color: #cbd5e1 #f1f5f9; }
.reference-compact-nav::-webkit-scrollbar { height: 6px; }
.reference-compact-nav::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 20px; }
.reference-notice { background: #fff4f4; }
.reference-notice-list { list-style: decimal; padding-left: 21px; margin-top: 14px; }
.reference-notice-list li::marker { font-weight: 700; }
.reference-notice-list strong { color: #dc2626; }
.reference-notice-footer { margin-top: 14px; }
.reference-dynamic-notice { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 70px; }
.reference-verified-label { display: inline-flex; padding: 2px 8px; line-height: 16px; border: 1px solid #a7f3d0; border-radius: 4px; color: #047857; background: #ecfdf5; font-size: 11px; font-weight: 600; white-space: nowrap; letter-spacing: 0; }
.reference-directory-description { margin-top: 2px; }
.reference-categories { max-width: 100%; }
.reference-directory-empty { min-height: 143px; }
.reference-empty-icon { display: inline-grid; place-items: center; color: #94a3b8; }
.reference-avatar { display: grid; position: relative; place-items: center; font-size: 24px; font-weight: 800; }
.reference-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #f1f5f9; }
.reference-card-details { overflow-wrap: anywhere; }
.reference-stage-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; font-size: 14px; font-weight: 800; border: 1px solid; }
.reference-stage-amber { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.reference-stage-sky { color: #075985; background: #e0f2fe; border-color: #bae6fd; }
.reference-stage-emerald { color: #065f46; background: #d1fae5; border-color: #a7f3d0; }

.reference-community {
  position: fixed; z-index: 56; bottom: 24px; left: 24px;
  width: min(350px, calc(100vw - 32px)); overflow: hidden;
  padding: 16px; border: 1px solid #bae6fd; border-radius: 16px;
  background: #fff; box-shadow: 0 18px 38px #082f4919; line-height: 1.55;
}
.reference-community::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #38bdf8, #3b82f6, #fb7185); }
.reference-community-title { display: flex; align-items: center; gap: 8px; }
.reference-community-title strong { display: block; color: #0284c7; font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.reference-community-title h2 { color: #0f172a; font-size: 12px; font-weight: 800; }
.reference-community-icon { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; color: #0284c7; border: 1px solid #bae6fd; border-radius: 11px; background: #f0f9ff; }
.reference-community-icon::after { content: ''; position: absolute; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; top: -3px; right: -3px; background: #34d399; }
.reference-community-title button { color: #94a3b8; width: 23px; height: 24px; border-radius: 4px; margin-left: auto; }
.reference-community-title button:hover { color: #475569; background: #f1f5f9; }
.reference-community p { margin-top: 10px; font-size: 11px; color: #475569; min-height: 58px; }
.reference-community-links { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reference-community-links a { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; background: #0ea5e9; color: white; font-size: 11px; font-weight: 800; white-space: nowrap; }
.reference-community-links a:first-child:hover { background: #0284c7; }
.reference-community-links a:last-child { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.reference-community-links a:last-child:hover { background: #dbeafe; }
.reference-community-links a span { display: grid; place-items: center; height: 14px; width: 14px; border: 1px solid #60a5fa; border-radius: 50%; font-size: 8px; line-height: 1; background: white; }
.reference-feedback { position: fixed; z-index: 57; right: 32px; bottom: 32px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 15px; border-radius: 99px; background: linear-gradient(110deg, #fbbf24, #f59e0b); color: #16120a; font-size: 12px; font-weight: 850; box-shadow: 0 14px 26px #f59e0b33; }
.reference-feedback::before { content: ''; position: absolute; inset: 6px auto auto 25px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px #ef44442e; }
.reference-feedback:hover { background: #fbbf24; }
.reference-feedback[aria-expanded='true']::before { display: none; }
.reference-feedback-panel {
  position: fixed; z-index: 58; bottom: 80px; right: 32px;
  width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 107px); overflow: auto;
  border: 1px solid #202938; border-radius: 16px; background: #0f141f; color: #cbd5e1;
  box-shadow: 0 24px 44px #0f172a33; font-size: 12px;
}
.feedback-header { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid #232d3a; background: #111724; }
.feedback-header h2 { font-weight: 800; color: #eef2f7; }
.feedback-header p { color: #94a3b8; font-size: 10px; }
.feedback-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fbbf24; border: 1px solid #654d1c; background: #352b17; }
.feedback-header button { margin-left: auto; width: 24px; height: 24px; color: #94a3b8; }
.feedback-header button:hover { color: #f1f5f9; }
.feedback-form { padding: 21px 16px 16px; display: grid; gap: 18px; }
.feedback-form legend, .feedback-form > label { font-size: 11px; font-weight: 700; }
.feedback-form > label > span { color: #fbbf24; }
.feedback-form :is(input:not([type='radio']), textarea) { display: block; width: 100%; margin-top: 6px; padding: 6px 11px; background: #0c111a; border: 1px solid #243041; border-radius: 8px; color: #f1f5f9; font-size: 12px; font-weight: 400; }
.feedback-form input::placeholder, .feedback-form textarea::placeholder { color: #8291a6; }
.feedback-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.feedback-categories label { position: relative; cursor: pointer; }
.feedback-categories input { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; }
.feedback-categories span { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 3px; border: 1px solid #273345; border-radius: 8px; background: #0c111a; color: #a5b4c7; font-size: 11px; font-weight: 700; white-space: nowrap; }
.feedback-categories input:checked + span { color: #fcd34d; background: #30291b; border-color: #9d7020; }
.feedback-categories input:focus-visible + span { outline: 2px solid #ffd353; outline-offset: 2px; }
.feedback-categories label:nth-child(2) svg { color: #fb7185; }
.feedback-categories label:nth-child(3) svg { color: #34d399; }
.feedback-submit { display: inline-flex; width: 100%; justify-content: center; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: 8px; color: #1c1503; background: #fbbf24; font-size: 12px; font-weight: 800; }
.feedback-submit:disabled { opacity: .49; cursor: default; }
.feedback-result { color: #86efac; font-size: 11px; }
.feedback-result.feedback-error { color: #fda4af; }

@media (min-width: 768px) and (max-width: 1040px) {
  .reference-wide-nav { display: none; }
  .reference-compact-nav { display: flex; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 32px); }
  .reference-brand-mark { width: 36px; height: 36px; }
  .reference-compact-nav { justify-content: flex-start; padding-bottom: 12px; }
  .reference-notice { padding: 20px; }
  .reference-community { bottom: 20px; left: 16px; }
  .reference-feedback { right: 24px; bottom: 24px; width: 46px; padding: 7px; }
  .reference-feedback span { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .reference-feedback::before { inset: 6px auto auto 25px; }
  .reference-feedback-panel { right: 16px; bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
