/* First-run permission primer (KL-52, extracted to features/ in KL-121).
   Heavier overlay so it visually "owns" the screen — the dashboard
   behind it is unusable until the user clicks through, and the dimmer
   overlay reinforces that. */
@layer features {

.welcome-overlay {
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
}
.welcome-dialog {
    max-width: 520px;
    padding: 1.6rem 1.6rem 1.4rem;
}
.welcome-title {
    color: var(--accent);
    font-size: 1.4rem;
    margin: 0 0 0.6rem;
    letter-spacing: 0.01em;
}
.welcome-intro {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1rem;
}
.welcome-intro strong { color: var(--accent); }
.welcome-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.welcome-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.7rem 0.8rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 0.4rem;
}
.welcome-list strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.welcome-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.45;
}
.welcome-glyph {
    font-size: 1.4rem;
    line-height: 1.1;
    flex: 0 0 auto;
}
.welcome-footnote {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1rem;
}
/* KL-177: early-access reminder on the welcome modal. Same magenta
   the sidebar pill and About-panel strip use, so the visual link
   reads consistently across surfaces. */
.welcome-ea {
    font-style: normal;
    color: var(--text-dim);
    padding: 0.55rem 0.75rem;
    border-left: 3px solid #ff2d8a;
    background: rgba(255, 45, 138, 0.08);
    border-radius: 0 4px 4px 0;
}
.welcome-ea-tag {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0.05rem 0.4rem;
    background: #ff2d8a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}
/* Lumi-attribution line on the welcome modal — subtler still than
   the warning footnote above. Quiet presence, not a callout. */
.welcome-lumi {
    color: var(--accent);
    opacity: 0.55;
    margin-bottom: 1.2rem;
}
.welcome-actions {
    justify-content: flex-end;
}
.welcome-actions .action-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
}

/* KL-182: BYOK setup modal — post-activation, separate trigger from the
   first-run permission primer. Reuses .welcome-overlay/.welcome-dialog
   shapes for visual consistency; these classes layer on top. */
.byok-setup-dialog {
    max-width: 540px;
}
.byok-setup-steps {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.byok-setup-steps li strong { color: var(--accent); }
.byok-setup-steps li a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}
.byok-setup-steps li a:hover { border-bottom-style: solid; }
.byok-setup-input-row {
    margin: 0 0 0.4rem;
}
.byok-setup-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
}
.byok-setup-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201, 70, 255, 0.18);
}
.byok-setup-status {
    min-height: 1.1rem;
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.3;
}
.byok-setup-status.checking { color: var(--text-dim); font-style: italic; }
.byok-setup-status.pending  { color: var(--text-dim); font-style: italic; }
.byok-setup-status.ok       { color: #4ade80; }
.byok-setup-status.err      { color: #f87171; }
.byok-setup-actions {
    justify-content: space-between;
}
.byok-setup-more {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 0.9rem;
    line-height: 1.5;
}
.byok-setup-more a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}
.byok-setup-more a:hover { border-bottom-style: solid; }

/* KL-182: empty-state explainer that lives inside the Director-tab BYOK
   card when no key is set. Same 3-step shape as the post-activation
   modal so users who dismissed the modal see consistent instructions
   when they navigate to the Director tab. */
.director-byok-empty-state {
    margin: 0.6rem 0 1rem;
    padding: 0.8rem 0.9rem;
    background: rgba(201, 70, 255, 0.06);
    border: 1px solid rgba(201, 70, 255, 0.18);
    border-left: 3px solid var(--accent);
    border-radius: 0.4rem;
}
.director-byok-empty-title {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0 0 0.5rem;
}
.director-byok-empty-state .byok-setup-steps {
    margin: 0;
    color: var(--text);
    font-size: 0.85rem;
}

} /* end @layer features */
