:root {
  --ink: #101827;
  --muted: #718096;
  --muted-2: #98a2b3;
  --line: #e8ecf2;
  --surface: #ffffff;
  --canvas: #f7f8fb;
  --purple: #6d5dfc;
  --purple-dark: #5546e9;
  --purple-soft: #f0eeff;
  --blue-soft: #eaf3ff;
  --green: #1aa879;
  --green-soft: #e7f8f1;
  --orange: #e98b48;
  --shadow: 0 12px 36px rgba(20, 29, 56, .06);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; background: var(--ink); color: white; padding: 28px 16px 22px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 42px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #8e7dff, #5d4df1); font: 700 21px 'Space Grotesk'; box-shadow: 0 7px 18px rgba(109, 93, 252, .3); }
.brand strong { display: block; font: 600 16px 'Space Grotesk'; letter-spacing: -.3px; }
.brand span { display: block; margin-top: 3px; color: #8490a6; font-size: 11px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { border: 0; background: transparent; border-radius: 10px; color: #aeb7c7; padding: 13px 12px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 14px; transition: .2s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.is-active { color: white; background: linear-gradient(90deg, rgba(109,93,252,.28), rgba(109,93,252,.12)); box-shadow: inset 3px 0 var(--purple); }
.nav-icon { width: 18px; text-align: center; font-size: 18px; color: #8d98ad; }
.nav-item.is-active .nav-icon { color: #a69dff; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 99px; background: #293248; color: #bdc6d6; font-size: 11px; text-align: center; }
.sidebar-footer { margin-top: auto; padding: 15px 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.status-dot { display: flex; align-items: center; gap: 8px; color: #bec8d8; font-size: 12px; }
.status-dot span { width: 7px; height: 7px; border-radius: 50%; background: #49d09e; box-shadow: 0 0 0 4px rgba(73,208,158,.12); }
.sidebar-footer small { display: block; margin-top: 13px; color: #6d788d; font-size: 10px; }
.main-content { min-width: 0; flex: 1; }
.topbar { height: 76px; padding: 0 44px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--muted-2); font-size: 13px; }
.breadcrumb b { color: #d0d5dd; font-weight: 400; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.icon-button { width: 29px; height: 29px; border: 1px solid #dfe4ec; border-radius: 50%; color: #8290a5; background: white; font-size: 13px; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #ebe9ff; color: var(--purple-dark); font-size: 11px; font-weight: 700; }
.content-wrap { max-width: 1220px; margin: 0 auto; padding: 50px 44px 72px; }
.view { display: none; animation: appear .25s ease; }
.view.is-visible { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 9px; color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font: 600 clamp(28px, 4vw, 42px)/1.08 'Space Grotesk', sans-serif; letter-spacing: -1.8px; }
h2 { margin-bottom: 6px; font: 600 18px 'Space Grotesk', sans-serif; letter-spacing: -.45px; }
h3 { font: 600 16px 'Space Grotesk'; }
.lead { max-width: 600px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.heading-badge { margin-top: 8px; padding: 9px 13px; border: 1px solid #e3e0ff; border-radius: 99px; background: var(--purple-soft); color: #6557dc; white-space: nowrap; font-size: 11px; font-weight: 600; }
.spark { margin-right: 6px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.intake-card, .flow-card { padding: 30px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.card-header p { color: var(--muted); margin-bottom: 0; font-size: 12px; line-height: 1.5; }
.card-header.compact { margin-bottom: 23px; }
.step-number { color: #c4cad6; font: 600 12px 'Space Grotesk'; }
.mini-spark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--purple-soft); color: var(--purple); }
.field-label { display: block; margin: 0 0 9px; color: #3e4a5e; font-size: 12px; font-weight: 700; }
.field-label span { color: var(--purple); }
.field-label em { color: #a0a8b6; font-style: normal; font-weight: 400; }
.input-with-icon { display: flex; align-items: center; border: 1px solid #dfe4ec; border-radius: 9px; background: #fff; transition: .2s; }
.input-with-icon:focus-within { border-color: #8f85ff; box-shadow: 0 0 0 3px rgba(109,93,252,.1); }
.input-with-icon span { padding-left: 14px; color: var(--purple); }
input, textarea { outline: none; border: 0; width: 100%; background: transparent; color: var(--ink); }
input { padding: 13px 14px 13px 10px; font-size: 13px; }
textarea { resize: vertical; padding: 13px 14px; border: 1px solid #dfe4ec; border-radius: 9px; line-height: 1.6; font-size: 13px; }
textarea:focus { border-color: #8f85ff; box-shadow: 0 0 0 3px rgba(109,93,252,.1); }
.field-hint { margin: 8px 0 24px; color: #9aa3b1; font-size: 11px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; }
.secure-note { color: #9aa3b1; font-size: 10px; white-space: nowrap; }
.secure-note span { color: var(--green); margin-right: 4px; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; border: 0; border-radius: 9px; padding: 13px 17px; font-size: 12px; font-weight: 700; transition: .2s; }
.primary-button { background: var(--purple); color: white; box-shadow: 0 7px 16px rgba(109,93,252,.21); }
.primary-button:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 9px 20px rgba(109,93,252,.28); }
.primary-button b { font-size: 17px; line-height: 10px; font-weight: 400; }
.primary-button.small { padding: 11px 15px; }
.secondary-button { border: 1px solid #dfe4ec; background: white; color: #536074; }
.secondary-button:hover { background: #f8f9fb; }
.flow-card { background: linear-gradient(145deg, #fff, #fbfbff); }
.flow-list { padding: 1px 0 3px; }
.flow-item { display: flex; align-items: flex-start; gap: 13px; }
.flow-icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font: 700 10px 'Space Grotesk'; }
.flow-icon.purple { color: #695af1; background: var(--purple-soft); }.flow-icon.blue { color: #4881cb; background: var(--blue-soft); }.flow-icon.green { color: #16936a; background: var(--green-soft); }
.flow-item strong { display: block; margin: 2px 0 4px; color: #344054; font-size: 12px; }
.flow-item p { max-width: 230px; margin: 0; color: #909aaa; font-size: 11px; line-height: 1.45; }
.flow-line { height: 19px; margin: 1px 0 1px 15px; border-left: 1px dashed #dce1ea; }
.tip-box { display: flex; gap: 9px; margin-top: 27px; padding: 12px; border-radius: 9px; background: #fff9ef; color: #a27037; }
.tip-box span { color: var(--orange); }.tip-box p { margin: 0; font-size: 10px; line-height: 1.5; }.tip-box strong { font-weight: 700; }
.recent-section { margin-top: 52px; }.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }.section-heading h2 { margin-bottom: 0; }.text-button { border: 0; background: transparent; color: var(--purple); font-size: 12px; font-weight: 700; }.text-button span { margin-left: 6px; font-size: 16px; }
.recent-grid, .mosaic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 14px; transition: .2s; }.job-card:hover { border-color: #d4d0ff; box-shadow: 0 10px 22px rgba(28,34,62,.08); transform: translateY(-2px); }
.job-art { height: 115px; position: relative; overflow: hidden; background: linear-gradient(135deg, #d9e1e9, #f8efe7); }.job-art::before { content: ''; position: absolute; left: 12%; bottom: -15%; width: 76%; height: 80%; background: rgba(255,255,255,.7); transform: skew(-15deg); border-radius: 5px 5px 0 0; box-shadow: 27px -9px 0 rgba(175,195,203,.45), -25px 14px 0 rgba(215,224,224,.5); }.job-art::after { content: ''; position: absolute; top: 18px; right: 20px; width: 54px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.35); filter: blur(8px); }.art-two { background: linear-gradient(135deg, #b8cbd6, #eee3ce); }.art-three { background: linear-gradient(135deg, #e7d4c8, #f7f5ec); }.art-four { background: linear-gradient(135deg, #cadacb, #e8e2cc); }.art-five { background: linear-gradient(135deg, #c6d0e5, #e9e5d9); }.art-six { background: linear-gradient(135deg, #dfc7cb, #efe8d7); }
.job-status { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 8px; border-radius: 99px; background: rgba(255,255,255,.88); color: #5c687a; font-size: 9px; font-weight: 700; }.job-status.ready { color: #168c64; }.job-status.processing { color: #8a651a; }
.job-body { padding: 14px; }.job-title { display: block; overflow: hidden; color: #263247; font: 600 13px 'Space Grotesk'; text-overflow: ellipsis; white-space: nowrap; }.job-title a { color: inherit; text-decoration: none; }.job-title a:hover { color: var(--purple); }.job-date { display: flex; justify-content: space-between; margin-top: 8px; color: #9ba4b2; font-size: 10px; }.drive-link { color: var(--purple); text-decoration: none; font-weight: 700; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }.search-box { display: flex; align-items: center; width: min(360px, 100%); border: 1px solid #e0e5ec; border-radius: 9px; background: white; }.search-box span { padding-left: 12px; color: #8b96a7; font-size: 20px; }.search-box input { padding: 11px 12px 11px 8px; }.library-meta { color: var(--muted-2); font-size: 11px; }.mosaic-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); }.mosaic-grid .job-art { height: 170px; }.empty-state { margin-top: 30px; padding: 60px 20px; text-align: center; border: 1px dashed #dce1ea; border-radius: 14px; background: rgba(255,255,255,.55); }.empty-icon { margin-bottom: 12px; color: #aba5ff; font-size: 32px; }.empty-state h3 { margin-bottom: 6px; }.empty-state p { color: var(--muted); font-size: 13px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 22px; }.settings-card, .preview-card { padding: 30px; }.prompt-area { min-height: 260px; color: #46546a; }.prompt-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }.prompt-tags button { padding: 5px 9px; border: 1px solid #e3e0ff; border-radius: 99px; background: var(--purple-soft); color: var(--purple-dark); font-size: 10px; }.prompt-tags button:hover { background: #e4e1ff; }.save-confirmation { display: none; margin-top: 14px; color: var(--green); font-size: 11px; }.save-confirmation.show { display: block; }.prompt-preview { min-height: 260px; padding: 17px; border-radius: 10px; background: #f7f7fc; color: #667085; white-space: pre-wrap; font: 12px/1.75 'DM Sans'; }.preview-note { display: flex; gap: 8px; margin-top: 15px; color: #9aa3b1; font-size: 10px; line-height: 1.5; }.preview-note span { color: var(--purple); }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(16,24,39,.55); backdrop-filter: blur(4px); }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(580px, 100%); max-height: 90vh; overflow: auto; padding: 33px; border-radius: 18px; background: white; box-shadow: 0 25px 70px rgba(16,24,39,.22); }.modal-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; color: #9ba4b2; font-size: 25px; }.modal-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; background: var(--purple-soft); color: var(--purple); font-size: 20px; }.modal h2 { font-size: 24px; }.modal-intro { margin-bottom: 23px; color: var(--muted); font-size: 13px; }.result-block { margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }.result-label { display: flex; justify-content: space-between; color: #99a2b0; font-size: 9px; font-weight: 700; letter-spacing: .9px; }.result-label button { border: 0; background: transparent; color: var(--purple); font-size: 10px; font-weight: 700; }.result-block pre { max-height: 180px; overflow: auto; margin: 10px 0 0; color: #46546a; white-space: pre-wrap; font: 12px/1.65 'DM Sans'; }.drive-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.drive-result strong { display: block; margin-top: 7px; color: #354258; font-size: 12px; }.drive-result a { color: var(--purple); text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; padding: 12px 16px; border-radius: 9px; background: var(--ink); color: white; box-shadow: 0 10px 25px rgba(16,24,39,.2); font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: none; }
@media (max-width: 930px) { .sidebar { width: 78px; flex-basis: 78px; padding-left: 9px; padding-right: 9px; }.brand { justify-content: center; padding: 0 0 42px; }.brand > div:last-child, .nav-item span:not(.nav-icon):not(.nav-count), .sidebar-footer { display: none; }.nav-item { justify-content: center; padding: 13px 8px; }.nav-count { position: absolute; margin: -25px 0 0 28px; }.topbar { padding: 0 28px; }.content-wrap { padding: 42px 28px 65px; } }
@media (max-width: 700px) { .topbar { height: 64px; padding: 0 18px; }.content-wrap { padding: 32px 18px 50px; }.page-heading { display: block; }.heading-badge { display: inline-block; margin-top: 21px; }.work-grid, .settings-layout { grid-template-columns: 1fr; }.recent-grid, .mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.mosaic-grid .job-art { height: 130px; }.intake-card, .flow-card, .settings-card, .preview-card { padding: 22px; }.form-footer { align-items: flex-start; flex-direction: column; }.primary-button { width: 100%; }.library-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }.search-box { width: 100%; }.modal { padding: 26px 20px; } }
@media (max-width: 430px) { .sidebar { width: 58px; flex-basis: 58px; }.recent-grid, .mosaic-grid { grid-template-columns: 1fr; }.recent-grid .job-art { height: 150px; } h1 { font-size: 31px; } }
