/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --tg-blue:    #1a5276;
    --tg-teal:    #148f77;
    --tg-light:   #eaf4fb;
    --tg-border:  #d5e8f3;
    --tg-text:    #1c2833;
    --tg-muted:   #626d77;
    --tg-bg:      #f5f8fa;
    --tg-white:   #ffffff;
    --tg-card-bg: #ffffff;
    --tg-shadow:  0 2px 12px rgba(26,82,118,.09);
    --tg-radius:  10px;
    --tg-hdr-h:   64px;
    --font:       'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--tg-text);
    background: var(--tg-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--tg-blue); text-decoration: none; }
a:hover { color: var(--tg-teal); }

/* ─── Header ────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--tg-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
    height: var(--tg-hdr-h);
}

.header-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; gap: 20px;
    height: 100%; padding: 0 24px;
}

.logo {
    display: flex; align-items: center; gap: 12px;
    color: #fff; text-decoration: none; flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; line-height: 1; }
.logo-text  { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-size: .95rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
.logo-sub   { font-size: .7rem;  font-weight: 400; color: rgba(255,255,255,.7); }

.search-form {
    flex: 1; display: flex; gap: 8px; max-width: 680px; margin-left: auto;
}

.search-wrap {
    position: relative; flex: 1; display: flex; align-items: center;
}

.search-wrap input {
    width: 100%; height: 40px;
    padding: 0 36px 0 38px;
    border: none; border-radius: 6px;
    font-size: .9rem; font-family: var(--font);
    background: rgba(255,255,255,.15);
    color: #fff;
    transition: background .2s;
}
.search-wrap input::placeholder { color: rgba(255,255,255,.55); }
.search-wrap input:focus {
    outline: none;
    background: rgba(255,255,255,.25);
    box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}

.search-icon { position: absolute; left: 10px; font-size: .95rem; pointer-events: none; opacity: .8; }
.search-clear {
    position: absolute; right: 8px;
    color: rgba(255,255,255,.7); font-size: .8rem;
    padding: 4px 6px; border-radius: 4px;
    transition: color .15s;
}
.search-clear:hover { color: #fff; }

.btn-search {
    height: 40px; padding: 0 18px;
    background: var(--tg-teal); color: #fff;
    border: none; border-radius: 6px;
    font-family: var(--font); font-size: .88rem; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    transition: background .15s;
}
.btn-search:hover { background: #0e7a69; }

/* ─── Autocomplete ──────────────────────────────────────────────── */
.autocomplete-dropdown {
    position: fixed; z-index: 200;
    background: var(--tg-white);
    border: 1px solid var(--tg-border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    max-height: 380px; overflow-y: auto;
    min-width: 360px;
}
.autocomplete-dropdown.hidden, .autocomplete-dropdown[hidden] { display: none; }

.ac-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid #f0f4f8;
    transition: background .1s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.selected { background: var(--tg-light); }
.ac-item-title { font-size: .9rem; font-weight: 500; color: var(--tg-text); }
.ac-item-sub   { font-size: .78rem; color: var(--tg-blue); margin-top: 1px; font-style: italic; }
.ac-item-cat   { font-size: .75rem; color: var(--tg-muted); margin-top: 2px; }

/* ─── Layout ────────────────────────────────────────────────────── */
.layout {
    max-width: 1400px; margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: calc(100vh - var(--tg-hdr-h) - 60px);
    padding: 0 0 48px;
}

.layout-article {
    grid-template-columns: 240px 1fr;
}

/* ─── Sidebar ───────────────────────────────────────────────────── */
.sidebar {
    position: sticky; top: var(--tg-hdr-h);
    height: calc(100vh - var(--tg-hdr-h));
    overflow-y: auto;
    padding: 24px 16px 24px 24px;
    border-right: 1px solid var(--tg-border);
    scrollbar-width: thin;
}

.sidebar-section { margin-bottom: 28px; }

.sidebar-heading {
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--tg-muted); margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tg-border);
}

.cat-list { list-style: none; }
.cat-list li { margin-bottom: 2px; }

.cat-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 6px;
    color: var(--tg-text); font-size: .85rem;
    transition: background .12s; text-decoration: none;
}
.cat-item:hover  { background: var(--tg-light); color: var(--tg-blue); }
.cat-item.active { background: var(--tg-light); color: var(--tg-blue); font-weight: 600; }

.cat-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}
.cat-name { flex: 1; }
.cat-count {
    font-size: .75rem; color: var(--tg-muted);
    background: #f0f4f8; padding: 1px 6px; border-radius: 10px;
}

.cat-list-sm .cat-item { padding: 4px 8px; font-size: .82rem; }
.cat-list-sm .cat-count { display: none; }

.sidebar-info p {
    font-size: .8rem; color: var(--tg-muted); line-height: 1.6;
}

/* ─── Main content ─────────────────────────────────────────────── */
.main-content { padding: 24px 32px; }

.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.results-info { font-size: .9rem; color: var(--tg-muted); }
.results-info strong { color: var(--tg-text); font-weight: 600; }
.results-info em { color: var(--tg-blue); font-style: normal; }

.view-controls { display: flex; gap: 4px; }
.view-btn {
    width: 32px; height: 32px;
    background: var(--tg-white); border: 1px solid var(--tg-border);
    border-radius: 6px; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, border-color .12s;
}
.view-btn.active, .view-btn:hover {
    background: var(--tg-blue); color: #fff; border-color: var(--tg-blue);
}

/* ─── Article Grid ─────────────────────────────────────────────── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.article-grid.list-view {
    grid-template-columns: 1fr;
    gap: 10px;
}
.article-grid.list-view .card {
    flex-direction: row; align-items: center;
    border-radius: 8px;
}
.article-grid.list-view .card-accent {
    width: 4px; height: 100%; border-radius: 4px 0 0 4px; flex-shrink: 0;
}
.article-grid.list-view .card-body { flex: 1; padding: 12px 16px; }
.article-grid.list-view .card-excerpt { display: none; }
.article-grid.list-view .card-footer { padding: 12px 16px 12px 0; border-top: none; }

/* ─── Card ─────────────────────────────────────────────────────── */
.card {
    background: var(--tg-card-bg);
    border-radius: var(--tg-radius);
    box-shadow: var(--tg-shadow);
    border: 1px solid var(--tg-border);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26,82,118,.14);
}

.card-accent {
    height: 4px; width: 100%;
}

.card-body {
    padding: 16px 18px;
    flex: 1;
}

.card-cat {
    display: inline-block;
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 8px;
    text-decoration: none;
}
.card-cat:hover { opacity: .8; }

.card-title {
    font-size: .97rem; font-weight: 600;
    line-height: 1.45; margin-bottom: 8px;
}
.card-title a { color: var(--tg-text); }
.card-title a:hover { color: var(--tg-blue); }

.card-excerpt {
    font-size: .82rem; color: var(--tg-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--tg-border);
    display: flex; align-items: center; justify-content: space-between;
    background: #fafcfe;
}
.card-meta   { display: flex; align-items: center; gap: 8px; }
.card-date   { font-size: .75rem; color: var(--tg-muted); }
.card-sections {
    font-size: .72rem; background: var(--tg-light); color: var(--tg-blue);
    padding: 2px 7px; border-radius: 10px; border: 1px solid var(--tg-border);
    font-weight: 500;
}
.card-link {
    font-size: .8rem; font-weight: 600; color: var(--tg-blue);
    transition: color .12s;
}
.card-link:hover { color: var(--tg-teal); }

/* ─── Empty state ──────────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 80px 24px;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: 8px; color: var(--tg-muted); }
.empty-state p  { color: var(--tg-muted); margin-bottom: 24px; }
.btn-primary {
    display: inline-block; padding: 10px 24px;
    background: var(--tg-blue); color: #fff;
    border-radius: 6px; font-weight: 500;
    transition: background .15s;
}
.btn-primary:hover { background: var(--tg-teal); color: #fff; }

/* ─── Pagination ───────────────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; gap: 4px;
    justify-content: center; margin-top: 32px; flex-wrap: wrap;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border: 1px solid var(--tg-border); border-radius: 6px;
    background: var(--tg-white); color: var(--tg-text);
    font-size: .87rem; transition: all .12s;
}
.page-btn:hover, .page-btn.active {
    background: var(--tg-blue); color: #fff; border-color: var(--tg-blue);
}
.page-dots { color: var(--tg-muted); padding: 0 4px; }

/* ─── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb-bar {
    background: var(--tg-white); border-bottom: 1px solid var(--tg-border);
}
.breadcrumb-inner {
    max-width: 1400px; margin: 0 auto; padding: 10px 24px;
    font-size: .82rem; color: var(--tg-muted);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--tg-blue); }
.breadcrumb-inner a:hover { color: var(--tg-teal); }
.bc-sep     { color: #c0cdd8; }
.bc-current { color: var(--tg-text); font-weight: 500; }

/* ─── Article page ─────────────────────────────────────────────── */
.sidebar-article {
    padding: 20px 16px;
}

.toc-nav { font-size: .82rem; }
.toc-nav a {
    display: block; padding: 5px 0 5px 10px;
    border-left: 2px solid var(--tg-border);
    color: var(--tg-muted); font-size: .82rem;
    transition: color .12s, border-color .12s; line-height: 1.4;
}
.toc-nav a:hover, .toc-nav a.toc-active {
    color: var(--tg-blue); border-color: var(--tg-blue);
}
.toc-nav a.toc-h2 { font-weight: 500; }
.toc-nav a.toc-h3 { padding-left: 20px; font-size: .76rem; }

.related-list { list-style: none; }
.related-list li { margin-bottom: 6px; }
.related-list a {
    font-size: .82rem; color: var(--tg-blue); line-height: 1.4;
    display: block;
}
.related-list a:hover { color: var(--tg-teal); }

.article-main { padding: 24px 32px; min-width: 0; }

.article-body {
    background: var(--tg-white);
    border-radius: var(--tg-radius);
    box-shadow: var(--tg-shadow);
    overflow: hidden;
}

.article-header {
    padding: 28px 36px;
    border-bottom: 1px solid var(--tg-border);
}

.article-cat-badge {
    display: inline-block;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    padding: 3px 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    margin-bottom: 14px;
    text-decoration: none;
}

.article-title {
    font-size: 1.75rem; font-weight: 700;
    line-height: 1.3; color: var(--tg-text);
    margin-bottom: 16px;
}

.article-meta {
    display: flex; align-items: center; gap: 20px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.meta-item { font-size: .83rem; color: var(--tg-muted); display: flex; align-items: center; gap: 5px; }
.meta-icon { font-size: .9rem; }

.article-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action {
    padding: 6px 14px;
    background: var(--tg-bg); border: 1px solid var(--tg-border);
    border-radius: 6px; font-family: var(--font); font-size: .8rem;
    cursor: pointer; color: var(--tg-text);
    transition: all .12s;
}
.btn-action:hover { background: var(--tg-blue); color: #fff; border-color: var(--tg-blue); }

/* ─── Clinical notice ───────────────────────────────────────────── */
.clinical-notice {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 0 36px; padding: 12px 16px;
    background: #fef9e7; border: 1px solid #f9ca24;
    border-radius: 8px; margin-top: 20px;
    font-size: .82rem; color: #856404;
}
.notice-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.clinical-notice p { line-height: 1.5; }

/* ─── Article content ──────────────────────────────────────────── */
.article-content {
    padding: 32px 36px;
    font-size: .95rem;
    line-height: 1.75;
    color: #2c3e50;
    max-width: 860px;
}

.article-content p    { margin-bottom: 1em; }
.article-content h2   { font-size: 1.25rem; font-weight: 700; margin: 1.8em 0 .6em; color: var(--tg-blue); }
.article-content h3   { font-size: 1.07rem; font-weight: 600; margin: 1.4em 0 .5em; color: var(--tg-text); }
.article-content h4   { font-size: .97rem; font-weight: 600; margin: 1.2em 0 .4em; }

.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.article-content li  { margin-bottom: .35em; }

.article-content .dita-list { margin-bottom: 1em; }
.article-content .dita-dl   { margin-bottom: 1em; }
.article-content dt { font-weight: 600; margin-top: .7em; }
.article-content dd { padding-left: 1.5em; color: var(--tg-muted); margin-bottom: .3em; }

.article-content code.inline-code {
    background: #f0f4f8; border: 1px solid #dce5ee;
    padding: 1px 6px; border-radius: 4px;
    font-size: .87em; font-family: 'Consolas', monospace;
}

.article-content pre {
    background: #1e2d3d; color: #e0e9f2;
    padding: 16px 20px; border-radius: 8px;
    overflow-x: auto; margin-bottom: 1em;
    font-size: .85rem;
}

.article-content a { color: var(--tg-blue); border-bottom: 1px dotted var(--tg-blue); }
.article-content a:hover { color: var(--tg-teal); border-color: var(--tg-teal); }

.article-content .shortdesc {
    font-size: 1.02rem; color: var(--tg-muted);
    border-left: 3px solid var(--tg-teal);
    padding-left: 14px; margin-bottom: 1.5em;
}

/* Tables */
.table-responsive { overflow-x: auto; margin-bottom: 1.4em; }
.tg-table {
    width: 100%; border-collapse: collapse;
    font-size: .87rem;
}
.tg-table th {
    background: var(--tg-blue); color: #fff;
    padding: 10px 14px; text-align: left;
    font-weight: 600; font-size: .82rem;
    border: 1px solid rgba(255,255,255,.15);
}
.tg-table td {
    padding: 9px 14px; border: 1px solid #dce5ee;
    vertical-align: top;
}
.tg-table tbody tr:nth-child(even) { background: #f8fafc; }
.tg-table tbody tr:hover { background: var(--tg-light); }

/* Notes */
.dita-note {
    padding: 12px 16px; border-radius: 8px;
    margin-bottom: 1em; font-size: .88rem;
}
.note-label {
    display: inline-block; font-weight: 700;
    margin-right: 6px; text-transform: uppercase;
    font-size: .75rem; letter-spacing: .05em;
}
.note-note      { background: #e8f4f8; border: 1px solid #b8d9ed; color: #1a5276; }
.note-caution   { background: #fef9e7; border: 1px solid #f9ca24; color: #856404; }
.note-warning   { background: #fef5e7; border: 1px solid #f39c12; color: #7d4001; }
.note-danger    { background: #fdedec; border: 1px solid #f1948a; color: #78281f; }
.note-important { background: #f4ecf7; border: 1px solid #bb8fce; color: #4a235a; }
.note-tip       { background: #eafaf1; border: 1px solid #82e0aa; color: #145a32; }

/* Sections */
.dita-section { margin-bottom: 1.5em; }
.section-title { font-size: 1.07rem; font-weight: 600; color: var(--tg-blue); margin-bottom: .5em; }

/* Figures */
.dita-fig { margin: 1.2em 0; text-align: center; }
.dita-img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--tg-border); }
figcaption { font-size: .82rem; color: var(--tg-muted); margin-top: 6px; font-style: italic; }

/* ─── Multi-section article ─────────────────────────────────────── */
.topic-section {
    padding-top: 8px;
}
.topic-section + .topic-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid var(--tg-border);
}
.topic-section-title {
    font-size: 1.25rem; font-weight: 700;
    color: var(--tg-blue); margin-bottom: 1rem;
    line-height: 1.3;
    scroll-margin-top: 80px;
}
.article-content .topic-section h3 { scroll-margin-top: 80px; }

/* ─── Article footer ────────────────────────────────────────────── */
.article-footer {
    padding: 24px 36px;
    background: #f8fafc; border-top: 1px solid var(--tg-border);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
}
.article-footer-meta { font-size: .82rem; color: var(--tg-muted); }
.article-footer-meta p { margin-bottom: 4px; }
.article-footer-meta strong { color: var(--tg-text); }

.btn-back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: var(--tg-blue); color: #fff;
    border-radius: 6px; font-size: .87rem; font-weight: 500;
    transition: background .15s;
}
.btn-back:hover { background: var(--tg-teal); color: #fff; }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--tg-blue); color: rgba(255,255,255,.7);
    padding: 24px; margin-top: 48px;
    text-align: center;
}
.footer-inner p { font-size: .82rem; margin-bottom: 4px; }
.footer-sub { font-size: .75rem; opacity: .65; }

/* ─── Search highlight ──────────────────────────────────────────── */
mark {
    background: #fff176; color: #1a1a1a; padding: 0 2px; border-radius: 2px;
}

/* ─── Scrollbar ─────────────────────────────────────────────────── */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #c0cdd8; border-radius: 4px; }

/* ─── Print ─────────────────────────────────────────────────────── */
@media print {
    .site-header, .sidebar, .breadcrumb-bar,
    .article-actions, .clinical-notice, .site-footer { display: none !important; }
    .layout { display: block; }
    .article-main { padding: 0; }
    .article-body { box-shadow: none; border: none; }
    .article-content { padding: 0; max-width: 100%; font-size: 11pt; }
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        position: static; height: auto;
        border-right: none; border-bottom: 1px solid var(--tg-border);
        padding: 16px 20px;
    }
    .cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
    .cat-item { padding: 4px 10px; background: var(--tg-bg); border-radius: 20px; }
    .cat-count { display: none; }
    .sidebar-info { display: none; }
    .main-content { padding: 16px 20px; }
    .article-main { padding: 12px 16px; }
    .article-header  { padding: 20px; }
    .article-content { padding: 20px; }
    .article-footer  { padding: 16px 20px; }
    .clinical-notice { margin: 0 20px; }
}

@media (max-width: 600px) {
    .header-inner { padding: 0 14px; gap: 10px; }
    .logo-text { display: none; }
    .search-form { max-width: 100%; }
    .btn-search { display: none; }
    .article-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 1.3rem; }
    .article-meta { gap: 10px; }
}

/* ─── Recommendation boxes (tgl_blueBox) ───────────────────────── */
.rec-box {
    background: #eaf4fb;
    border-left: 4px solid var(--tg-blue);
    border-radius: 0 var(--tg-radius) var(--tg-radius) 0;
    padding: 14px 18px;
    margin: 14px 0;
}
.rec-box p { margin: 6px 0; }
.rec-box p:first-child { margin-top: 0; }
.rec-box p:last-child  { margin-bottom: 0; }

/* Recommendation rank badge: [1], [2], etc. */
.rec-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--tg-blue);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 5px;
    vertical-align: middle;
    line-height: 1;
}

/* Internal article cross-references */
a.internal-link {
    color: var(--tg-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}
a.internal-link:hover { color: var(--tg-blue); }

/* ─── Pregnancy / Breastfeeding pills ──────────────────── */
.gloss-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 10px 5px;
    border-radius: 6px;
    font-size: 0.80rem;
    margin: 2px 3px;
    max-width: 100%;
    box-sizing: border-box;
}
.gloss-breast {
    background: #fde8f0;
    border: 1px solid #f0a8c8;
    color: #7a1040;
}
.gloss-preg {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}
.gloss-main {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-wrap: nowrap;
}
.gloss-icon  { font-size: 0.88rem; line-height: 1; flex-shrink: 0; }
.gloss-label { font-weight: 700; flex-shrink: 0; }
.gloss-text  { font-weight: 400; }
.gloss-note {
    display: block;
    font-size: 0.76rem;
    font-style: italic;
    line-height: 1.4;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: normal;
    word-break: break-word;
}
.gloss-breast .gloss-note { background: rgba(214,51,132,0.12); }
.gloss-preg   .gloss-note { background: rgba(46,125,50,0.12);  }

/* ─── Header user bar ──────────────────────────────────────── */
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.user-name {
    font-size: .82rem;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
}
.user-plan {
    font-size: .72rem;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.hdr-link {
    font-size: .82rem;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background .15s;
}
.hdr-link:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}
