:root {
  --ink: #18212f;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #ffffff;
  --canvas: #f6f7fb;
  --navy: #17233b;
  --violet: #6d5ce7;
  --violet-dark: #5746ce;
  --violet-soft: #eeebff;
  --coral: #ff6b6b;
  --mint: #32c8a0;
  --yellow: #ffd166;
  --shadow: 0 8px 30px rgba(31, 42, 68, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; background: var(--navy); color: white; padding: 26px 18px 20px; display: flex; flex-direction: column; z-index: 10; }
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 11px; padding: 0 8px 30px; font-family: Manrope, sans-serif; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--yellow); }
.brand-mark svg { width: 100%; }
.brand strong { font-size: 19px; letter-spacing: -.4px; }
.brand em { display: inline-flex; margin-left: 5px; color: var(--yellow); font-style: normal; font-size: 13px; font-weight: 800; }
.step-nav { display: grid; gap: 7px; }
.step-link { border: 0; color: #c8d0df; background: transparent; border-radius: 14px; width: 100%; padding: 12px; text-align: left; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.step-link:hover:not(:disabled), .step-link.active { background: rgba(255,255,255,.1); color: white; }
.step-link.active .step-number { background: var(--yellow); color: var(--navy); }
.step-link.locked { opacity: .55; cursor: default; }
.step-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); font-weight: 700; }
.step-link strong, .step-link small { display: block; }
.step-link strong { font-size: 14px; }
.step-link small { font-size: 12px; color: #8f9aad; margin-top: 3px; }
.sidebar-card { margin-top: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); padding: 15px; border-radius: 14px; }
.sidebar-card .spark { color: var(--yellow); font-size: 20px; }
.sidebar-card strong { display: block; margin: 8px 0 4px; font-size: 13px; }
.sidebar-card p { margin: 0; color: #aeb7c8; font-size: 12px; line-height: 1.45; }
.profile-button { margin-top: 14px; border: 0; color: white; background: transparent; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 8px; text-align: left; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--coral),var(--yellow)); display: grid; place-items: center; color: var(--navy); font-weight: 800; }
.profile-button strong, .profile-button small { display: block; }
.profile-button strong { font-size: 13px; }.profile-button small { font-size: 11px; color: #9ba6b9; margin-top: 2px; }
.main-content { grid-column: 2; min-width: 0; }
.topbar { height: 68px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.project-chip { display: flex; gap: 8px; align-items: center; color: #475467; font-size: 13px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(50,200,160,.12); }
.top-actions { display: flex; align-items: center; gap: 15px; }.save-status { font-size: 12px; color: var(--muted); }
.icon-button, .mobile-menu { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: white; color: #475467; }
.mobile-menu { display: none; }
.screen { display: none; max-width: 1160px; padding: 48px 44px 34px; margin: 0 auto; }.screen.active { display: block; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.eyebrow { display: block; color: var(--violet); font-size: 11px; font-weight: 800; letter-spacing: .13em; margin-bottom: 10px; }
h1,h2,h3,p { margin-top: 0; } h1,h2,h3 { font-family: Manrope, sans-serif; }
h1 { font-size: clamp(30px,4vw,42px); line-height: 1.08; letter-spacing: -1.4px; margin-bottom: 10px; }
.page-heading p { max-width: 680px; color: var(--muted); margin-bottom: 0; line-height: 1.6; }
.progress-ring { position: relative; width: 72px; height: 72px; flex: 0 0 auto; }
.progress-ring svg { width: 100%; transform: rotate(-90deg); }.progress-ring circle { fill: none; stroke: #e9e7f7; stroke-width: 4; }
.progress-ring circle.progress { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 85; }.progress-ring circle.half { stroke-dashoffset: 56.5; }
.progress-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--violet); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.span-2 { grid-column: span 2; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.panel-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 22px; }.panel-heading h2 { margin: 0 0 4px; font-size: 18px; }.panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.panel-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.fields { display: grid; gap: 18px; }.two-col { grid-template-columns: 1fr 1fr; }.field { display: grid; gap: 8px; }.field > span { font-size: 13px; font-weight: 700; }.field b, .required-note b { color: var(--coral); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d8dce5; border-radius: 11px; padding: 12px 13px; color: var(--ink); background: white; outline: none; transition: .2s; }
.field textarea { resize: vertical; line-height: 1.5; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,92,231,.1); }
.field small { text-align: right; color: #98a2b3; font-size: 11px; }
.segmented { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #d8dce5; padding: 4px; border-radius: 11px; gap: 3px; }.segmented button { border: 0; background: transparent; border-radius: 8px; padding: 9px 4px; font-size: 12px; color: var(--muted); }.segmented button.selected { color: var(--violet); background: var(--violet-soft); font-weight: 700; }
.outcomes-list { display: grid; gap: 11px; }.outcome-row { display: grid; grid-template-columns: 32px 1fr 34px; gap: 10px; align-items: center; }.outcome-index { width: 30px; height: 30px; border-radius: 9px; background: #f2f4f7; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #667085; }.outcome-row input { border: 1px solid #d8dce5; border-radius: 10px; padding: 11px 12px; outline: 0; }.outcome-row input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,92,231,.1); }.remove-outcome { border: 0; background: transparent; color: #98a2b3; font-size: 20px; }
.text-button { border: 0; background: transparent; color: var(--violet); font-weight: 700; padding: 10px 0 0; }.text-button.danger { color: var(--coral); padding: 0; font-size: 12px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }.required-note { color: var(--muted); font-size: 12px; }
.primary-button, .secondary-button { border-radius: 12px; padding: 13px 18px; font-weight: 800; border: 1px solid transparent; }.primary-button { color: white; background: var(--violet); box-shadow: 0 8px 18px rgba(109,92,231,.25); }.primary-button:hover { background: var(--violet-dark); transform: translateY(-1px); }.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }.secondary-button { background: white; border-color: #d8dce5; color: #344054; }
.source-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; }.source-main { display: grid; gap: 20px; align-content: start; }.source-sidebar { display: grid; gap: 16px; align-content: start; }
.upload-panel { padding-top: 0; }.source-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 -24px 22px; padding: 0 24px; }.source-tab { border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; padding: 18px 2px 13px; font-weight: 700; }.source-tab.active { color: var(--violet); border-color: var(--violet); }.tab-content { display: none; }.tab-content.active { display: block; }
.drop-zone { min-height: 260px; border: 2px dashed #c9c5ed; background: #faf9ff; border-radius: 16px; display: grid; place-items: center; align-content: center; text-align: center; padding: 28px; transition: .2s; }.drop-zone.dragging { border-color: var(--violet); background: var(--violet-soft); }.upload-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-size: 28px; font-weight: 500; margin-bottom: 14px; }.drop-zone h3 { margin-bottom: 7px; }.drop-zone p { color: var(--muted); margin-bottom: 7px; }.drop-zone strong { color: var(--violet); }.drop-zone small { color: #98a2b3; }
#paste-tab, #url-tab { display: none; gap: 16px; }#paste-tab.active, #url-tab.active { display: grid; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #f8f9fc; color: var(--muted); border-radius: 10px; padding: 12px; font-size: 12px; }.notice span { width: 20px; height: 20px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-weight: 800; }.notice p { margin: 1px 0 0; }
.panel-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }.panel-title-row h2 { margin: 0 0 4px; font-size: 18px; }.panel-title-row p { margin: 0; color: var(--muted); font-size: 12px; }
.source-list { display: grid; gap: 10px; }.empty-state { text-align: center; color: var(--muted); padding: 30px 16px; }.empty-state > span { font-size: 38px; color: #c9ced8; }.empty-state h3 { color: #344054; margin: 10px 0 5px; }.empty-state p { margin: 0; font-size: 13px; }
.source-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 12px; }.file-type { width: 42px; height: 42px; border-radius: 11px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-size: 10px; font-weight: 900; }.source-meta strong, .source-meta small { display: block; }.source-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 430px; }.source-meta small { color: var(--muted); margin-top: 4px; font-size: 11px; }.source-remove { border: 0; background: transparent; color: #98a2b3; font-size: 18px; }
.readiness-card { background: var(--navy); color: white; border-color: var(--navy); }.readiness-label { color: #aeb7c8; font-size: 10px; font-weight: 800; letter-spacing: .12em; }.readiness-score { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 13px; }.readiness-score strong { font-family: Manrope; font-size: 36px; }.readiness-score span { color: #aeb7c8; font-size: 12px; }.readiness-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }.readiness-bar span { display: block; height: 100%; width: 0%; background: var(--yellow); transition: .3s; }.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }.checklist li { color: #9ba6b9; font-size: 12px; display: flex; gap: 8px; }.checklist li span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #667085; display: grid; place-items: center; color: transparent; font-size: 10px; }.checklist li.complete { color: white; }.checklist li.complete span { background: var(--mint); border-color: var(--mint); color: var(--navy); font-weight: 900; }
.tip-card { display: flex; gap: 12px; background: #fff6dd; border: 1px solid #ffe8aa; border-radius: 16px; padding: 16px; }.tip-card > span { color: #c88b00; }.tip-card strong { font-size: 13px; }.tip-card p { margin: 5px 0 0; color: #7a6840; font-size: 12px; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%,20px); background: var(--navy); color: white; border-radius: 12px; padding: 12px 18px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); z-index: 20; font-size: 13px; }.toast.show { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 950px) { .app-shell { grid-template-columns: 1fr; }.sidebar { transform: translateX(-100%); transition: .25s; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }.main-content { grid-column: 1; }.mobile-menu { display: inline-grid; place-items:center; }.topbar { padding: 0 20px; }.screen { padding: 36px 22px 28px; }.source-layout { grid-template-columns: 1fr; }.source-sidebar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .save-status { display:none; }.project-chip { max-width: 175px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.page-heading { align-items: center; }.progress-ring { width:60px;height:60px; }.form-grid, .two-col { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.panel { padding: 18px; border-radius: 16px; }.source-tabs { margin: 0 -18px 18px; padding: 0 18px; gap: 14px; }.source-tab { font-size:12px; }.source-sidebar { grid-template-columns: 1fr; }.page-footer { gap: 12px; flex-wrap:wrap; }.page-footer .primary-button { margin-left:auto; }.source-meta strong { max-width:210px; } }
