/* ─── Design tokens ─────────────────────────────────────────── */
:root {
    /* Brand */
    --color-brand:          #074684;
    --color-brand-teal:     #0ea5c6;
    --color-brand-accent:   #a0edf7;

    /* Health state colours — semantic, not brand */
    --color-healthy:        #22c55e;
    --color-degraded:       #f59e0b;
    --color-down:           #ef4444;
    --color-unknown:        #94a3b8;

    /* Dark text variants for health states (WCAG-safe on white) */
    --color-healthy-text:   #166534;
    --color-processing-text:#0e7490;
    --color-degraded-text:  #92400e;
    --color-down-text:      #991b1b;

    /* Surfaces */
    --color-surface:        #ffffff;
    --color-surface-raised: #f8fafc;
    --color-border:         #e2e8f0;

    /* Text */
    --color-text-primary:   #0f172a;
    --color-text-secondary: #64748b;

    /* Typography */
    --font-title:    'Roboto', system-ui, sans-serif;
    --font-subtitle: 'Hind', system-ui, sans-serif;
    --font-body:     'Open Sans', system-ui, sans-serif;

    --radius:        0.5rem;
    --shadow-card:   0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ─── Base reset ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    background: var(--color-surface-raised);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
}

/* ─── Shared page header ─────────────────────────────────────── */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.375rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-family: var(--font-subtitle);
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ─── Page back link (above title) ──────────────────────────── */
.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin: 0 0 0.625rem;
    transition: color 0.15s;
}

.page-back-link:hover {
    color: var(--color-brand-teal);
    text-decoration: none;
}

.page-back-link svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* ─── Page header with action ───────────────────────────────── */
.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header-row .page-header {
    margin-bottom: 0;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.25;
}

.btn-primary {
    background: var(--color-brand);
    color: #fff;
    border-color: var(--color-brand);
}

.btn-primary:hover {
    background: #05376a;
    border-color: #05376a;
    color: #fff;
    text-decoration: none;
}

.btn-primary:disabled,
.btn-primary[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-brand);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-raised);
    border-color: var(--color-brand-teal);
    color: var(--color-brand);
    text-decoration: none;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
    text-decoration: none;
}

/* ─── Shared save-success banner ─────────────────────────────── */
.form-save-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius);
    color: #166534;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-save-success-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: #166534;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.6;
}

.form-save-success-dismiss:hover {
    opacity: 1;
}

/* ─── Refresh bar ────────────────────────────────────────────── */
.refresh-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.refresh-time {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}

.refresh-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.25rem 0.625rem;
    cursor: pointer;
    line-height: 1.4;
}

.refresh-btn:hover {
    border-color: var(--color-brand-teal);
    color: var(--color-brand);
}

/* ─── Empty state ────────────────────────────────────────────── */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--color-text-secondary);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
}

/* ─── Shared form styles (used by SiteEdit, ClientEdit, Settings, etc.) ── */

.form-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin: 0;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-raised);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 1.25rem;
}

.form-field {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
    padding-right: 1.5rem;
}

.form-field:nth-child(even) {
    padding-right: 0;
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-border);
}

.form-field:last-child,
.form-field:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.form-field--full {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-left: 0;
    border-left: none !important;
}

.form-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
}

.form-required {
    color: #dc2626;
    font-size: 0.75rem;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.form-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) * 0.75);
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: border-color 0.1s, box-shadow 0.1s;
}

.form-input:focus {
    border-color: var(--color-brand-teal);
    box-shadow: 0 0 0 3px rgba(14, 165, 198, 0.15);
}

.form-input--error {
    border-color: #dc2626;
}

.form-input--error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 4rem;
}

.form-error {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #dc2626;
    margin-top: 0.3rem;
}

.form-field--checkbox {
    grid-column: 1 / -1;
    border-left: none !important;
    padding-left: 0;
    padding-right: 0;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.form-save-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    color: #991b1b;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.form-disable-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
}

.form-disable-text {
    margin: 0.375rem 0 0;
    font-weight: 400;
}

.form-disable-actions {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.75rem;
}

.form-leave-warning {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: var(--radius);
    color: #1e3a5f;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-leave-actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 2rem;
}

.not-found {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.not-found-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.75rem;
}

.not-found-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin: 0 0 1.5rem;
}

.not-found-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-border);
}

.not-found-link:hover {
    text-decoration-color: var(--color-text-secondary);
}


/* ═══════════════════════════════════════════════════════════════
   Login / Splash page — canvas-driven wave animation
   CSS here is minimal; all visuals rendered by canvas JS.
   ═══════════════════════════════════════════════════════════════ */

/* Canvas fills the entire splash container */
.splash-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Full-screen splash */
.splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000a14;
    overflow: hidden;
}

/* Vertical neon beams — cheap CSS, run on compositor */
.tron-beam {
    position: absolute;
    width: 1px;
    top: 0;
    bottom: 0;
    pointer-events: none;
    will-change: opacity;
}

.tron-beam--1 {
    left: 15%;
    background: linear-gradient(180deg, transparent 0%, rgba(14,165,198,0.55) 35%, rgba(14,165,198,0.15) 65%, transparent 100%);
    box-shadow: 0 0 8px 1px rgba(14,165,198,0.35);
    animation: beam-fade 8s ease-in-out infinite 0s;
}

.tron-beam--2 {
    left: 52%;
    background: linear-gradient(180deg, transparent 0%, rgba(14,165,198,0.30) 40%, rgba(14,165,198,0.08) 70%, transparent 100%);
    animation: beam-fade 11s ease-in-out infinite 3.5s;
}

.tron-beam--3 {
    right: 14%;
    background: linear-gradient(180deg, transparent 0%, rgba(14,165,198,0.45) 42%, rgba(14,165,198,0.12) 62%, transparent 100%);
    box-shadow: 0 0 7px 1px rgba(14,165,198,0.28);
    animation: beam-fade 9.5s ease-in-out infinite 1.5s;
}

@keyframes beam-fade {
    0%, 20%, 80%, 100% { opacity: 0; }
    40%, 60%            { opacity: 1; }
}

/* Login card — solid dark glass, no backdrop-filter */
.login-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 440px;
    max-width: calc(100vw - 2rem);
    background: rgba(0, 12, 26, 0.92);
    border: 1px solid rgba(14, 165, 198, 0.5);
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(14, 165, 198, 0.1),
        0 0 40px rgba(14, 165, 198, 0.2),
        0 40px 100px rgba(0, 0, 0, 0.65);
    padding: 3rem 2.5rem 2.5rem;
    animation: login-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Tron corner brackets */
.login-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 28px; height: 28px;
    border-top: 2px solid rgba(14, 165, 198, 0.95);
    border-left: 2px solid rgba(14, 165, 198, 0.95);
}

.login-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 28px; height: 28px;
    border-bottom: 2px solid rgba(14, 165, 198, 0.95);
    border-right: 2px solid rgba(14, 165, 198, 0.95);
}

@keyframes login-card-enter {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 28px)) scale(0.97); }
    to   { opacity: 1; transform: translate(-50%, -50%)              scale(1);    }
}

/* Card header */
.login-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: rgba(14, 165, 198, 0.07);
    border: 1px solid rgba(14, 165, 198, 0.38);
    border-radius: 4px;
    margin-bottom: 1.25rem;
    animation: login-logo-glow 3.5s ease-in-out infinite;
}

@keyframes login-logo-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(14,165,198,0.22); }
    50%       { box-shadow: 0 0 42px rgba(14,165,198,0.52); }
}

.login-subtitle {
    font-family: var(--font-subtitle);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(14, 165, 198, 0.72);
    margin: 0;
}

/* Error banner */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(252, 165, 165, 0.35);
    border-radius: 3px;
    color: #fca5a5;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(14, 165, 198, 0.78);
}

.login-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #d4f0f8;
    background: rgba(0, 22, 44, 0.85);
    border: 1px solid rgba(14, 165, 198, 0.38);
    border-radius: 3px;
    padding: 0.75rem 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.login-input:focus {
    background: rgba(0, 28, 55, 0.95);
    border-color: rgba(14, 165, 198, 0.88);
    box-shadow: 0 0 0 3px rgba(14, 165, 198, 0.16), 0 0 18px rgba(14, 165, 198, 0.1);
}

.login-input::placeholder {
    color: rgba(14, 165, 198, 0.28);
}

/* Submit button */
.login-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: #e0f7ff;
    background: rgba(14, 165, 198, 0.12);
    border: 1px solid rgba(14, 165, 198, 0.6);
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow: hidden;
    transition: background 0.22s, border-color 0.22s, box-shadow 0.22s, transform 0.12s;
    box-shadow: 0 0 18px rgba(14, 165, 198, 0.15);
}

/* Shimmer sweep */
.login-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(14,165,198,0.25) 50%, transparent 100%);
    transition: left 0.48s ease;
}

.login-btn:hover {
    background: rgba(14, 165, 198, 0.22);
    border-color: rgba(14, 165, 198, 1);
    box-shadow: 0 0 32px rgba(14,165,198,0.5), 0 0 60px rgba(14,165,198,0.18);
    transform: translateY(-1px);
}

.login-btn:hover::before { left: 100%; }

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 14px rgba(14, 165, 198, 0.28);
}

/* DocMX identity provider button — styled as an <a> tag */
.login-btn--docmx {
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.login-btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Divider between identity login and password fallback */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(14, 165, 198, 0.2);
}

.login-divider-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: rgba(14, 165, 198, 0.55);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 0.25rem 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.login-divider-toggle:hover {
    color: rgba(14, 165, 198, 0.85);
}

.login-divider-arrow {
    transition: transform 0.25s ease;
}

.login-divider-arrow--open {
    transform: rotate(180deg);
}

/* Collapsible password section */
.login-pw--hidden {
    display: none;
}

/* ─── Shared classification styles ──────────────────────────── */
/* Used by both the helpdesk list preview and ticket detail page */

.hd-classify-summary {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    margin: 0 0 1rem;
    padding: 0.6rem 0.75rem;
    background: color-mix(in srgb, var(--color-brand-teal) 6%, transparent);
    border-left: 3px solid var(--color-brand-teal);
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
}

.hd-classify-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.hd-classify-site-select {
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
}

.hd-classify-site-select:focus {
    outline: none;
    border-color: var(--color-brand-teal);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-brand-teal) 20%, transparent);
}

.hd-classify-site-method {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.hd-classify-push-result { font-family: var(--font-body); font-size: 0.8rem; }
.hd-classify-push-ok     { color: var(--color-healthy); }
.hd-classify-push-err    { color: var(--color-down); }

.hd-classify-permission-yes { color: var(--color-healthy); font-weight: 600; }
.hd-classify-permission-no  { color: var(--color-down); font-weight: 600; }

.hd-classify-difficulty {
    display: inline-flex;
    gap: 0.2rem;
    align-items: center;
}

.hd-classify-pip {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 2px;
    background: var(--color-border);
}

.hd-classify-pip--filled {
    background: var(--color-brand-teal);
}

.hd-classify-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hd-classify-keyword {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface-raised);
    color: var(--color-text-muted);
}

.hd-classify-notes {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.45;
    margin: 0;
}

.hd-classify-operator-notes {
    width: 100%;
    resize: vertical;
    min-height: 3rem;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
}

.hd-classify-operator-notes:focus {
    outline: none;
    border-color: var(--color-brand-teal);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-brand-teal) 20%, transparent);
}

/* ─── Skill chips ───────────────────────────────────────────── */

.hd-classify-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hd-skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.3rem 0.5rem 0.3rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text);
    line-height: 1.4;
}

.hd-skill-chip--ai {
    background: color-mix(in srgb, var(--color-brand-teal) 10%, white);
    border-color: color-mix(in srgb, var(--color-brand-teal) 35%, white);
}

.hd-skill-chip-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-brand-teal);
    letter-spacing: 0.03em;
}

.hd-skill-remove {
    background: none;
    border: none;
    padding: 0 0.15rem;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.hd-skill-remove:hover {
    color: var(--color-down);
}

.hd-skill-add-wrap {
    position: relative;
}

.hd-skill-add-btn {
    background: none;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 0.3rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-brand);
    cursor: pointer;
    white-space: nowrap;
}

.hd-skill-add-btn:hover {
    border-color: var(--color-brand-teal);
    color: var(--color-brand-teal);
}

.hd-skill-picker {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    z-index: 50;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    width: 22rem;
    display: flex;
    flex-direction: column;
    max-height: 22rem;
}

.hd-skill-picker-search {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.hd-skill-picker-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--color-text);
    background: var(--color-surface);
    outline: none;
}

.hd-skill-picker-input:focus {
    border-color: var(--color-brand-teal);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-brand-teal) 20%, transparent);
}

.hd-skill-picker-list {
    overflow-y: auto;
    flex: 1;
    padding: 0.25rem 0;
}

.hd-skill-picker-empty {
    padding: 0.6rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.hd-skill-picker-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    gap: 0.1rem;
}

.hd-skill-picker-item:hover {
    background: var(--color-surface-raised);
}

.hd-skill-picker-name {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
}

.hd-skill-picker-desc {
    font-family: var(--font-body);
    font-size: 0.73rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-skill-picker-tags {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--color-text-muted);
    font-style: italic;
}
