/* CareerLens by Bluecorp Labs: custom design system, no framework.
   Brand colours sampled from the Bluecorp logo: blue #003BF9, navy #000F39. */
:root {
    --brand-blue: #003bf9;
    --brand-navy: #000f39;
    --bg: #f4f6fc;
    --surface: #ffffff;
    --surface-2: #f7f9ff;
    --ink: #000f39;
    --ink-2: #2b3658;
    --muted: #5f6b8a;
    --line: #e3e8f4;
    --primary: #003bf9;
    --primary-2: #3d6bff;
    --primary-soft: #e8eeff;
    --accent: #00b3c7;
    --success: #16a34a;
    --success-soft: #e8f7ee;
    --warn: #d97706;
    --warn-soft: #fdf3e2;
    --danger: #dc2626;
    --danger-soft: #fdecec;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4rem; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
h4 { font-size: .92rem; }
p { margin: .35rem 0; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 .3rem; font-size: .85em; }
h1:focus { outline: none; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.3rem;
    padding: 1.5rem 1rem; color: var(--ink-2);
    background: var(--sidebar-bg, #fff); border-right: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: .2rem .5rem .9rem; border-bottom: 1px solid var(--line); }
.brand a:hover { text-decoration: none; }
.brand-site { display: block; border-radius: 8px; transition: opacity .15s, transform .15s; }
.brand-site:hover { opacity: .85; transform: translateY(-1px); }
.brand-site:focus-visible, .brand-product:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.site-footer a { color: inherit; font-weight: 600; }
.site-footer a:hover { color: var(--primary); }
.brand-logo { width: 200px; max-width: 100%; height: auto; display: block; }
.brand-product { display: flex; align-items: baseline; gap: .45rem; padding-left: .15rem; }
.brand-product strong { color: var(--brand-navy); font-size: .95rem; font-weight: 800; }
.brand-product small { color: var(--muted); font-size: .75rem; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--nav-label, #8a94b0); padding: .9rem .75rem .35rem; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--brand-blue); }
.nav a.active { background: var(--primary-soft); color: var(--brand-blue); box-shadow: inset 3px 0 0 var(--brand-blue); }
.nav .ico { width: 20px; text-align: center; opacity: .85; }
.engine-card { margin-top: auto; display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.engine-card strong { display: block; color: var(--ink); font-size: .85rem; }
.engine-card small { color: var(--muted); font-size: .75rem; }
.site-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .8rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: .35rem; flex: none; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.dot.off { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.content { padding: 2rem 2.4rem 4rem; max-width: 1400px; width: 100%; display: flex; flex-direction: column; gap: 1.25rem; }

/* ---------- Building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.card-head h2 { margin: 0; }
.sub-card { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .8rem; background: var(--surface-2); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .35rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.right { text-align: right; }
.mt { margin-top: .9rem; }
.hidden { display: none; }
.grow { flex: 1; }
.w-auto { width: auto !important; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.row.gap { gap: .6rem; }
.row.gap-sm { gap: .35rem; }
.row.between { justify-content: space-between; gap: .5rem; }
.row.end { justify-content: flex-end; }
.grid { display: grid; gap: 1rem; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.success { color: var(--success); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }

/* ---------- Buttons & inputs ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .45rem; justify-content: center; cursor: pointer;
    font: inherit; font-weight: 600; font-size: .9rem; padding: .6rem 1rem; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: all .15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--line-strong, #cfd4e2); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -8px rgba(0, 59, 249, .75); }
.btn-primary:hover { border-color: transparent; filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #f6caca; }
.btn-sm { padding: .38rem .7rem; font-size: .82rem; border-radius: 8px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; padding: .3rem .5rem; border-radius: 6px; }
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }
.link { font-weight: 600; font-size: .88rem; }

.input {
    width: 100%; font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: 10px; padding: .55rem .75rem; transition: border .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea.input { resize: vertical; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; font-size: .88rem; }
label.check input { accent-color: var(--primary); width: 16px; height: 16px; }
label.inline { min-width: 240px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; padding: 1rem 1.2rem; }
.toolbar > label:not(.check) { min-width: 220px; }
.search-bar { max-width: 460px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin-bottom: .6rem; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- Pills, tags ---------- */
.pill { display: inline-flex; align-items: center; padding: .18rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-neutral { background: var(--primary-soft); color: var(--primary); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-flex; gap: .3rem; align-items: center; padding: .22rem .55rem; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); }
.tag em { font-style: normal; font-size: .68rem; color: var(--primary); font-weight: 700; }
.tag-gap { background: var(--danger-soft); border-color: #f8d4d4; color: #b91c1c; }
.imp { font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; }
.imp-essential { background: #e8eeff; color: #0030d0; }
.imp-important { background: #e0f2fe; color: #0369a1; }
.imp-desirable { background: #f1f5f9; color: #475569; }
.prio { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 6px; }
.prio-high { background: var(--danger-soft); color: var(--danger); }
.prio-medium { background: var(--warn-soft); color: var(--warn); }
.prio-low { background: #f1f5f9; color: var(--muted); }

/* ---------- Hero & stats ---------- */
.hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
    padding: 2.4rem; border-radius: 22px; color: #fff;
    background: radial-gradient(80% 120% at 100% 0%, rgba(0, 179, 199, .45), transparent 60%),
                radial-gradient(70% 110% at 0% 100%, rgba(0, 59, 249, .75), transparent 60%), var(--brand-navy);
}
.hero h1 { font-size: 2.3rem; max-width: 18ch; }
.hero .lead { color: #d3ddff; max-width: 60ch; font-size: 1.02rem; }
.hero .eyebrow { color: #8fe6f2; }
.hero .btn-primary { background: #fff; color: var(--brand-blue); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .row { margin-top: 1.2rem; }
.hero-art { position: relative; height: 220px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.o1 { width: 170px; height: 170px; right: 40px; top: 10px; background: radial-gradient(circle at 30% 30%, #6f93ff, #003bf9); opacity: .9; }
.o2 { width: 90px; height: 90px; right: 210px; top: 110px; background: radial-gradient(circle at 30% 30%, #5eead4, #0ea5a4); }
.o3 { width: 50px; height: 50px; right: 20px; top: 170px; background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b); }
.hero-chip { position: absolute; padding: .45rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); font-weight: 700; font-size: .85rem; }
.c1 { right: 170px; top: 20px; } .c2 { right: 10px; top: 120px; } .c3 { right: 120px; top: 185px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stat strong.small { font-size: 1.4rem; padding: .2rem 0; }
.stat small { color: var(--muted); font-size: .78rem; }

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; counter-reset: s; }
.pipeline li { position: relative; padding: 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.pipeline small { color: var(--muted); font-size: .8rem; }
.step { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .85rem; margin-bottom: .3rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .6rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: var(--row-hover, #fafbff); }
.table.compact td, .table.compact th { padding: .4rem .5rem; }
.detail-row td { background: var(--surface-2); }
.who { display: flex; align-items: center; gap: .7rem; }
.who strong { display: block; }
.who small { color: var(--muted); font-size: .8rem; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.avatar.lg { width: 46px; height: 46px; font-size: .95rem; border-radius: 14px; }
.score-cell { display: flex; align-items: center; gap: .6rem; min-width: 140px; }
.score-cell .meter { flex: 1; }
.num { font-weight: 800; }
.sources { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 420px; }
.src { font-size: .72rem; padding: .15rem .45rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.src-declared { border-color: #c9d6ff; background: #f1f5ff; }
.src-project { border-color: #bae6fd; background: #f0f9ff; }
.src-experience { border-color: #bbf7d0; background: #f0fdf4; }
.src-certification { border-color: #fde68a; background: #fffbeb; }

/* ---------- Meter & ring ---------- */
.meter { position: relative; height: 8px; border-radius: 999px; background: var(--track, #eef0f6); overflow: visible; }
.meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .5s ease; }
.m-strong .meter-fill { background: linear-gradient(90deg, #22c55e, #16a34a); }
.m-partial .meter-fill { background: linear-gradient(90deg, #fbbf24, #d97706); }
.m-missing .meter-fill { background: #f87171; }
.meter-marker { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); border-radius: 2px; opacity: .55; }
.ring { position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--track, #eef0f6); stroke-width: 11; }
.ring-value { fill: none; stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-size: calc(var(--size) * .26); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ring-label small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Analysis page ---------- */
.analysis { display: flex; flex-direction: column; gap: 1.25rem; }
.score-card { display: flex; gap: 1.8rem; align-items: center; background: linear-gradient(120deg, var(--surface) 60%, var(--tint, #eef3ff)); }
.score-card h2 { font-size: 1.4rem; margin-top: .5rem; }
.counts { display: flex; gap: 2rem; margin-top: .8rem; }
.counts div { display: flex; flex-direction: column; }
.counts strong { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.counts small { color: var(--muted); font-size: .8rem; }
.transferable { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.advice-card h3 { margin-top: 1.4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.meta-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.summary { font-size: 1.05rem; color: var(--ink-2); padding: 1rem 1.2rem; border-radius: 12px; background: var(--primary-soft); border-left: 4px solid var(--primary); margin-top: 1rem; }
.rec { padding: 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: .3rem; }
.rec p { font-size: .9rem; color: var(--ink-2); }
.rec.flat { margin-bottom: .6rem; }
.rec.path { gap: .4rem; align-items: flex-start; }
.list { display: flex; flex-direction: column; gap: .5rem; }
.list-row { display: grid; grid-template-columns: 1fr 160px 1fr auto; gap: .5rem; align-items: center; }
.canon { font-size: .78rem; }
.ticks { list-style: none; padding: 0; margin: .4rem 0; display: flex; flex-direction: column; gap: .4rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; font-size: .7rem; font-weight: 900; color: var(--success); background: var(--success-soft); border-radius: 50%; margin-top: .2rem; }
.details { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; background: var(--surface-2); }
.details summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.chunk { margin: .8rem 0 0; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; font-size: .88rem; }
.chunk p { color: var(--ink-2); }
.prompt { white-space: pre-wrap; font-size: .78rem; max-height: 420px; overflow: auto; background: #000f39; color: #d3ddff; padding: 1rem; border-radius: 10px; }

/* ---------- Cards for lists ---------- */
.profile-card { display: flex; flex-direction: column; gap: .7rem; }
.profile-card h3 { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; padding: .7rem; border-radius: 10px; background: var(--surface-2); }
.facts dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; font-weight: 700; font-size: .85rem; }
.role-card { display: flex; flex-direction: column; gap: .2rem; transition: transform .15s; }
.role-card:hover { transform: translateY(-2px); }
.role-card.best { border-color: #b9f0cd; box-shadow: 0 0 0 3px var(--success-soft), var(--shadow); }
.role-card.target { background: linear-gradient(160deg, var(--surface) 70%, var(--tint, #eef3ff)); }
.role-icon { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mini-counts { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.job p { font-size: .9rem; color: var(--ink-2); }

.tabs { display: flex; gap: .3rem; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: fit-content; }
.tabs button { font: inherit; font-weight: 600; font-size: .88rem; border: 0; background: transparent; padding: .5rem .9rem; border-radius: 9px; cursor: pointer; color: var(--muted); }
.tabs button.active { background: var(--primary-soft); color: var(--primary); }

.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.editor .span-all { grid-column: 1 / -1; }

.stars { display: flex; }
.stars button { border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; color: #d7dbe6; padding: 0 1px; }
.stars button.on { color: #f59e0b; }
.defs { display: grid; grid-template-columns: 180px 1fr; gap: .5rem 1rem; margin: 0; }
.defs dt { font-weight: 700; }
.defs dd { margin: 0; color: var(--ink-2); }
.objectives li { margin-bottom: .5rem; }

/* ---------- Feedback ---------- */
.alert { padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; border: 1px solid; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warn { background: var(--warn-soft); border-color: #f5d49a; color: #92400e; margin-bottom: .6rem; }
.alert-danger { background: var(--danger-soft); border-color: #f6caca; color: #991b1b; }
.alert-success { background: var(--success-soft); border-color: #b9e8c9; color: #14532d; }
.alert-dismiss { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.alert-dismiss .icon-btn { color: inherit; opacity: .7; }
.alert-dismiss .icon-btn:hover { opacity: 1; background: rgba(0, 0, 0, .06); color: inherit; }
.empty { padding: 2.2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong, #d4d9e6); border-radius: var(--radius); background: var(--surface); }
.empty.small { padding: 1.4rem; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; border-radius: 10px; }
.blazor-error-boundary::after { content: "An error has occurred." }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .nav { flex-direction: row; flex-wrap: wrap; }
    .nav-label, .engine-card { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .editor { grid-template-columns: 1fr; }
    .content { padding: 1.2rem; }
    .cards-2 { grid-template-columns: 1fr; }
}

/* ---------- Upload ---------- */
.upload-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; }
.dropzone {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    min-height: 210px; padding: 1.5rem; text-align: center; cursor: pointer;
    border: 2px dashed var(--line-strong, #c3cdec); border-radius: var(--radius); background: var(--surface-2);
    font-size: .95rem; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-blue); background: var(--primary-soft); }
.dropzone.busy { cursor: progress; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone small { font-weight: 500; }
.drop-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; font-size: 1.6rem; color: #fff; background: var(--brand-blue); box-shadow: 0 8px 20px -10px rgba(0, 59, 249, .9); }
.spinner.dark { width: 28px; height: 28px; border-width: 3px; border-color: var(--primary-soft); border-top-color: var(--brand-blue); }
.steps-list { padding-left: 1.2rem; margin: .4rem 0; display: flex; flex-direction: column; gap: .5rem; color: var(--ink-2); }
.facts-4 { grid-template-columns: repeat(4, 1fr); margin-top: 1rem; }
@media (max-width: 1000px) { .upload-grid { grid-template-columns: 1fr; } }

/* ---------- Confirm dialog ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 1rem; background: rgba(0, 15, 57, .45); backdrop-filter: blur(2px); animation: fade-in .12s ease; }
.modal { width: min(440px, 100%); background: var(--surface); border-radius: 18px; padding: 1.6rem; box-shadow: 0 24px 60px -20px rgba(0, 15, 57, .5); animation: pop-in .14s ease; }
.modal h2 { margin-top: .8rem; }
.modal p { margin-bottom: 1.3rem; }
.modal-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 1.3rem; background: var(--primary-soft); color: var(--brand-blue); }
.modal-icon.danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-danger:hover { background: #b91c1c; border-color: transparent; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---------- Settings ---------- */
.card.narrow { max-width: 560px; }
.form-stack { display: flex; flex-direction: column; gap: .8rem; margin-top: .8rem; }
.form-stack .btn { align-self: flex-start; }
.engine { display: flex; flex-direction: column; gap: .8rem; }
.engine .card-head { margin-bottom: 0; }
.key-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; padding: .7rem .9rem; border-radius: 10px; background: var(--surface-2); }
.key-facts dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.key-facts dd { margin: 0; font-weight: 600; font-size: .88rem; }
a.engine-card { color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
a.engine-card:hover { border-color: var(--brand-blue); background: var(--primary-soft); text-decoration: none; }

/* Method page lists */
.limits, .improve, .plain-list { list-style: none; padding: 0; margin: .4rem 0; display: flex; flex-direction: column; gap: .45rem; }
.limits li, .improve li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.plain-list li { color: var(--ink-2); }
.limits li::before, .improve li::before { position: absolute; left: 0; top: .15rem; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; font-size: .7rem; font-weight: 900; border-radius: 50%; }
.limits li::before { content: "!"; color: var(--warn); background: var(--warn-soft); }
.improve li::before { content: "→"; color: var(--primary); background: var(--primary-soft); }
