.profiles-view { --profiles-soft: #f5f2ff; --profiles-warning: #855d1d; --profiles-warning-bg: #fff8e9; --profiles-error: #ad354c; --profiles-error-bg: #fff1f3; }
.profiles-view .page-heading p { max-width: 660px; }
.profiles-import { margin-bottom: 1.4rem; }
.profiles-section-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.profiles-section-heading p { margin: .35rem 0 0; color: var(--muted); font-size: .875rem; }
.profiles-mark { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; color: var(--accent); background: var(--profiles-soft); font-size: 1.7rem; }
.profiles-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(230px, 1fr) auto; align-items: end; gap: 1rem; }
.profiles-form .button { min-height: 46px; }
.profiles-help { color: var(--muted); font-size: .8125rem; margin: 1rem 0; }
.profiles-ai-note { padding: .9rem 1rem; border-radius: 9px; background: var(--surface-raised, #f7f8fb); border: 1px solid var(--border); }
.profiles-ai-note p { font-size: .8125rem; margin: 0 0 .4rem; }
.profiles-ai-note p + p { color: var(--muted); }
.profiles-ai-note .text-button { font-size: .8125rem; padding: .35rem 0 0; }
.profiles-browser-import { margin-bottom: 1.4rem; }
.profiles-browser-import > summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--accent); line-height: 1.5; }
.profiles-browser-import > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.profiles-browser-form { display: grid; gap: 1rem; }
.profiles-browser-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.profiles-browser-form textarea { font-size: .875rem; }
.profiles-browser-counter { margin: .35rem 0 0; text-align: right; color: var(--muted); font-size: .75rem; }
.profiles-browser-form .profiles-help { margin: .4rem 0 0; }
.profiles-browser-actions { display: flex; align-items: center; gap: 1rem; }
.profiles-browser-actions .profiles-help { margin: 0; }
.profiles-browser-form .profiles-message { margin: 0; }
.profiles-evidence { padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised, #f7f8fb); }
.profiles-evidence > strong { font-size: .8125rem; }
.profiles-evidence-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8125rem; margin: .5rem 0; }
.profiles-evidence-links { padding-left: 1.15rem; margin: .6rem 0 0; max-height: 13rem; overflow-y: auto; font-size: .75rem; line-height: 1.7; }
.profiles-evidence-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.profiles-evidence-empty { color: var(--muted); font-size: .75rem; margin: .5rem 0 0; }
.profiles-active { border-color: var(--accent); margin-bottom: 1.8rem; }
.profiles-active-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.profiles-active-heading .eyebrow { margin-bottom: .5rem; }
.profiles-active-source { margin-top: .8rem; }
.profiles-style-snapshot { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; margin: .9rem 0; }
.profiles-active small { color: var(--muted); }
.profiles-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.8rem 0 1rem; }
.profiles-list-heading h2 { display: flex; align-items: center; gap: .5rem; }
.profiles-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.profiles-card { min-width: 0; }
.profiles-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.profiles-card-heading > div { min-width: 0; }
.profiles-username { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.profiles-source { color: var(--muted); font-size: .75rem; margin: 0; }
.profiles-status, .profiles-active-badge { display: inline-block; border: 1px solid var(--border); border-radius: 6px; padding: .3rem .5rem; font-size: .6875rem; line-height: 1.45; flex-shrink: 0; }
.profiles-status[data-status="queued"], .profiles-status[data-status="importing"], .profiles-status[data-status="analyzing"], .profiles-active-badge { color: var(--accent); background: var(--profiles-soft); border-color: transparent; }
.profiles-status[data-status="error"] { color: var(--profiles-error); background: var(--profiles-error-bg); }
.profiles-progress-heading { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.profiles-progress-label { font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.profiles-progress { display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 8px; accent-color: var(--accent); background: var(--border); }
.profiles-progress::-webkit-progress-bar { background: var(--border); border-radius: 8px; }
.profiles-progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
.profiles-progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.profiles-counts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .75rem; color: var(--muted); margin: .65rem 0; }
.profiles-coverage, .profiles-thumbnail-note { color: var(--muted); font-size: .75rem; margin-bottom: 1rem; }
.profiles-job-note, .profiles-job-warning, .profiles-job-error { font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; margin-bottom: .8rem; }
.profiles-job-warning, .profiles-job-error, .profiles-message { padding: .75rem .9rem; border-radius: 8px; border: 1px solid var(--border); }
.profiles-job-warning { color: var(--profiles-warning); background: var(--profiles-warning-bg); }
.profiles-job-error, .profiles-message { color: var(--profiles-error); background: var(--profiles-error-bg); }
.profiles-message { margin-bottom: 1rem; font-size: .875rem; overflow-wrap: anywhere; }
.profiles-style-editor { border-top: 1px solid var(--border); padding-top: 1rem; }
.profiles-style-label { font-size: .8125rem; }
.profiles-style { min-height: 115px; resize: vertical; line-height: 1.55; font-size: .875rem; }
.profiles-style-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; font-size: .6875rem; line-height: 1.5; color: var(--muted); margin: .5rem 0 1rem; }
.profiles-style-count { white-space: nowrap; }
.profiles-card-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.profiles-card-actions .button { font-size: .8125rem; }
.profiles-empty { text-align: center; padding: 2.5rem 1.5rem; }
.profiles-empty-icon { display: block; color: var(--accent); font-size: 2rem; margin-bottom: 1rem; }
.profiles-empty p { max-width: 480px; margin: .65rem auto 0; font-size: .875rem; color: var(--muted); }
:root[data-theme="dark"] .profiles-view { --profiles-soft: #302943; --profiles-warning: #ebc583; --profiles-warning-bg: #332c22; --profiles-error: #ffacb8; --profiles-error-bg: #382633; }
@media (max-width: 1150px) { .profiles-form { grid-template-columns: 1fr 1fr; } .profiles-form .button { justify-self: start; } .profiles-list { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sidebar nav { overflow-x: auto; justify-content: flex-start; } .sidebar .nav-item { flex: 0 0 auto; } .profiles-form, .profiles-browser-fields { grid-template-columns: 1fr; } .profiles-form .button { width: 100%; } .profiles-active-heading, .profiles-list-heading, .profiles-browser-actions { align-items: flex-start; flex-direction: column; } .profiles-browser-actions .button { white-space: normal; } .profiles-card-heading { flex-wrap: wrap; } .profiles-progress-heading { align-items: flex-start; flex-wrap: wrap; } .profiles-card-actions .button { flex: 1 1 auto; } }
