:root {
  --ink: #17211d;
  --muted: #748078;
  --soft: #f6f7f3;
  --line: #e5e9e3;
  --paper: #ffffff;
  --green: #285f49;
  --green-dark: #1f4d3b;
  --mint: #dcece3;
  --peach: #f2d3bd;
  --gold: #e8b25d;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --shadow: 0 16px 50px rgba(28, 45, 36, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--soft); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.app-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 30px 20px 20px; background: #1e4f3d; color: white; display: flex; flex-direction: column; z-index: 20; }
.brand { border: 0; background: transparent; display: flex; align-items: center; gap: 11px; color: white; cursor: pointer; padding: 0 10px 28px; }
.brand-mark { width: 32px; height: 36px; display: grid; place-items: center; background: var(--peach); color: #214f3e; font: 24px var(--serif); border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; transform: rotate(-5deg); }
.brand-name { font: 25px var(--serif); letter-spacing: .2px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-label { margin: 26px 12px 8px; font-size: 10px; letter-spacing: 1.8px; color: rgba(255,255,255,.48); font-weight: 700; }
.nav-item { border: 0; background: transparent; color: rgba(255,255,255,.68); display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; border-radius: 9px; padding: 11px 12px; text-align: left; cursor: pointer; transition: .2s; font-size: 14px; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active { background: rgba(255,255,255,.13); color: white; font-weight: 600; }
.nav-icon { font-size: 18px; text-align: center; font-family: Georgia, serif; }
.nav-check { color: #95b9a7; font-size: 12px; }
.sidebar-bottom { margin-top: auto; }
.usage-card { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.usage-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 9px; }
.usage-track { height: 4px; background: rgba(255,255,255,.15); border-radius: 4px; overflow: hidden; }
.usage-fill { width: 12%; height: 100%; background: var(--peach); }
.usage-card small { display: block; color: rgba(255,255,255,.45); font-size: 9px; margin-top: 7px; }
.profile-button { width: 100%; border: 0; background: transparent; color: white; display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; text-align: left; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #e6c2a8; color: #224d3d; font-size: 10px; font-weight: 700; }
.profile-copy { display: flex; flex-direction: column; flex: 1; }
.profile-copy strong { font-size: 11px; }.profile-copy small { color: rgba(255,255,255,.45); font-size: 9px; margin-top: 2px; }
.main-content { grid-column: 2; min-width: 0; }
.topbar { height: 84px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 0 40px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.project-switcher { display: flex; gap: 11px; align-items: center; cursor: pointer; }
.project-switcher div { display: flex; flex-direction: column; }.project-switcher small { color: #909892; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }.project-switcher strong { font: 15px var(--serif); margin-top: 2px; }
.project-dot { width: 29px; height: 34px; border: 1px solid #dac6b7; background: #efe0d5; box-shadow: inset -5px 0 #2a5947; border-radius: 2px; }.chevron { color: #9aa19c; }
.top-actions { display: flex; align-items: center; gap: 15px; }.saved-state { color: #89928c; font-size: 11px; }.saved-state span { color: var(--green); }
.plans-button { border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; padding: 9px 4px; }
.icon-button { position: relative; width: 34px; height: 34px; border-radius: 50%; background: transparent; border: 1px solid var(--line); cursor: pointer; }.notification-dot { position: absolute; width: 5px; height: 5px; background: #d97850; border-radius: 50%; right: 7px; top: 7px; }
.primary-button { background: var(--green); color: white; border: 0; border-radius: 8px; padding: 11px 16px; font-weight: 600; font-size: 12px; cursor: pointer; transition: .2s; }.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.mobile-brand { display: none; align-items: center; gap: 8px; }
.view-container { padding: 48px 54px 70px; max-width: 1450px; margin: 0 auto; }
.eyebrow { font-size: 10px; letter-spacing: 1.7px; font-weight: 700; color: #a06d50; text-transform: uppercase; margin: 0 0 12px; }
h1 { font: 42px/1.1 var(--serif); margin: 0; font-weight: 400; letter-spacing: -.3px; } h2 { font: 25px/1.2 var(--serif); font-weight: 400; margin: 0; } h3 { margin: 0; font-size: 13px; }
.page-lead { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 12px; max-width: 560px; }
.overview-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }.date-pill { font-size: 11px; color: var(--muted); padding: 8px 12px; background: white; border: 1px solid var(--line); border-radius: 30px; }
.progress-panel { display: grid; grid-template-columns: 1.2fr .8fr; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); background: var(--green); color: white; margin-bottom: 25px; }
.progress-copy { padding: 34px 38px; }.progress-copy .eyebrow { color: #b7d6c5; }.progress-copy h2 { font-size: 30px; }.progress-copy p { color: rgba(255,255,255,.64); font-size: 12px; line-height: 1.6; max-width: 480px; }.progress-copy button { margin-top: 10px; background: white; color: var(--green); }
.progress-visual { padding: 30px 35px; display: flex; align-items: center; gap: 24px; background: rgba(0,0,0,.06); }.ring { width: 110px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--peach) 0 42%, rgba(255,255,255,.13) 42%); position: relative; }.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #285b47; }.ring-content { position: relative; text-align: center; }.ring-content strong { font: 25px var(--serif); }.ring-content small { display: block; color: rgba(255,255,255,.5); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.progress-stats { display: grid; gap: 13px; flex: 1; }.stat-row { display: flex; justify-content: space-between; font-size: 11px; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.12); }.stat-row span { color: rgba(255,255,255,.56); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 25px; }.card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 25px; box-shadow: 0 5px 20px rgba(33,50,41,.025); }.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }.text-button { border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.chapter-list { display: grid; }.chapter-row { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #edf0ec; cursor: pointer; }.chapter-row:first-child { border-top: 0; }.chapter-number { font: 17px var(--serif); color: #a6ada8; }.chapter-info strong { display: block; font-size: 12px; }.chapter-info small { color: #9ca49e; font-size: 9px; }.chapter-status { padding: 5px 8px; background: #edf6f0; color: var(--green); border-radius: 12px; font-size: 8px; font-weight: 700; text-transform: uppercase; }.chapter-status.draft { background: #f6efe8; color: #9c7258; }
.quick-actions { display: grid; gap: 11px; }.quick-action { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 12px; text-align: left; cursor: pointer; transition: .2s; }.quick-action:hover { border-color: #aac2b5; transform: translateX(2px); }.action-icon { height: 38px; display: grid; place-items: center; background: #edf3ef; border-radius: 8px; color: var(--green); font-size: 18px; }.quick-action strong { display: block; font-size: 11px; }.quick-action small { color: #9aa19c; font-size: 9px; }
.tip-card { margin-top: 18px; background: #f3e8df; border: 0; position: relative; overflow: hidden; }.tip-card::after { content: "✦"; position: absolute; right: 17px; top: 12px; color: #d4a17e; font-size: 30px; }.tip-card p { font: 16px/1.4 var(--serif); margin: 8px 0 12px; max-width: 220px; }.tip-card small { font-size: 9px; color: #927864; }
.workspace-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }.workspace-actions { display: flex; gap: 9px; }.secondary-button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 10px 14px; font-size: 11px; font-weight: 600; cursor: pointer; }
.outline-layout, .keyword-layout, .cover-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }.builder-card { padding: 0; overflow: hidden; }.builder-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }.builder-toolbar span { color: var(--muted); font-size: 10px; }.outline-items { padding: 12px 20px; }.outline-item { display: grid; grid-template-columns: 24px 35px 1fr auto; align-items: center; gap: 10px; padding: 14px 6px; border-bottom: 1px solid #edf0ec; }.drag { color: #c0c7c2; cursor: grab; }.outline-num { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #f1f4f1; font: 13px var(--serif); }.outline-title { border: 0; width: 100%; color: var(--ink); font-size: 12px; font-weight: 600; outline: 0; background: transparent; }.outline-desc { color: #969f98; font-size: 9px; margin-top: 3px; }.more-button { border: 0; background: transparent; color: #9da49f; cursor: pointer; }.add-chapter { width: 100%; border: 1px dashed #cfd7d1; background: #f9faf8; border-radius: 8px; color: var(--green); padding: 11px; margin: 13px 0; cursor: pointer; font-weight: 600; font-size: 11px; }
.ai-panel { background: #244f3f; color: white; border-radius: 13px; padding: 24px; align-self: start; }.ai-panel .eyebrow { color: #acc8b8; }.ai-panel h2 { font-size: 22px; }.ai-panel p { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.6); }.field { margin-top: 17px; }.field label { display: block; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 7px; color: inherit; }.field input,.field textarea,.field select { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; outline: 0; background: white; color: var(--ink); font-size: 11px; }.ai-panel .field input,.ai-panel .field textarea,.ai-panel .field select { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); color: white; }.ai-panel select option { color: var(--ink); }.ai-panel textarea { resize: vertical; min-height: 80px; }.ai-button { width: 100%; margin-top: 18px; background: var(--peach); color: #274e3f; border: 0; padding: 12px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.editor-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; }.chapter-sidebar { padding: 15px; align-self: start; }.chapter-sidebar h3 { padding: 8px 8px 14px; }.chapter-tab { width: 100%; border: 0; background: transparent; padding: 11px 9px; display: flex; gap: 9px; text-align: left; cursor: pointer; border-radius: 7px; font-size: 10px; color: var(--muted); }.chapter-tab.active { background: #edf3ef; color: var(--green); font-weight: 700; }.chapter-tab span { color: #aeb5b0; }.editor-card { padding: 0; overflow: hidden; }.editor-toolbar { padding: 12px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }.format-tools { display: flex; gap: 5px; }.format-tools button { border: 0; background: transparent; padding: 5px 8px; cursor: pointer; color: #7f8982; font-size: 11px; }.ai-assist { background: #edf3ef !important; color: var(--green) !important; border-radius: 6px; font-weight: 700; }.editor { min-height: 520px; padding: 52px 13%; outline: 0; font: 16px/1.85 Georgia, serif; color: #34423b; }.editor h2 { font: 31px var(--serif); color: var(--ink); margin-bottom: 24px; }.editor-footer { display: flex; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line); color: #9ba29d; font-size: 9px; }
.format-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }.option-group { display: grid; gap: 14px; }.format-choice { border: 2px solid transparent; background: white; border-radius: 12px; padding: 18px; display: flex; gap: 14px; text-align: left; cursor: pointer; box-shadow: 0 2px 12px rgba(20,40,30,.04); }.format-choice.selected { border-color: var(--green); }.format-preview { margin-top: 24px; padding: 35px; background: #dedfd9; border-radius: 13px; display: grid; place-items: center; }.book-page { width: 360px; min-height: 460px; background: #fffdf8; padding: 50px 45px; box-shadow: 0 8px 30px rgba(0,0,0,.12); color: #262b28; }.book-page .chapter-kicker { text-align: center; font-size: 8px; letter-spacing: 2px; }.book-page h2 { text-align: center; margin: 16px 0 36px; }.book-page p { font: 11px/1.8 Georgia,serif; }
.cover-stage { background: #dfe2dc; min-height: 570px; border-radius: 13px; display: grid; place-items: center; padding: 35px; }.book-cover { width: 310px; aspect-ratio: 2/3; box-shadow: 12px 15px 35px rgba(23,35,29,.22); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 38px 33px 30px; background: #173f32; color: white; }.book-cover::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: #e2b68d; right: -125px; top: 130px; }.book-cover::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; right: -66px; top: 156px; }.cover-title { position: relative; font: 39px/1.02 var(--serif); max-width: 210px; z-index: 1; }.cover-subtitle { position: relative; font-size: 9px; line-height: 1.5; letter-spacing: .5px; max-width: 190px; opacity: .7; z-index: 1; }.cover-author { position: relative; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; z-index: 1; }.cover-controls { padding: 22px; }.palette-row { display: flex; gap: 9px; }.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 1px #d9ddd9; cursor: pointer; }
.keyword-table { width: 100%; border-collapse: collapse; }.keyword-table th { text-align: left; font-size: 8px; letter-spacing: 1px; color: #9aa19c; text-transform: uppercase; padding: 11px; border-bottom: 1px solid var(--line); }.keyword-table td { padding: 15px 11px; border-bottom: 1px solid #edf0ec; font-size: 11px; }.score { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e6f1e9; color: var(--green); font-weight: 700; font-size: 9px; }.intent-pill { padding: 4px 7px; background: #f3eee8; border-radius: 10px; font-size: 8px; color: #856b57; }.keyword-check { accent-color: var(--green); }
.toast { position: fixed; right: 28px; bottom: 28px; background: #183d30; color: white; padding: 13px 17px; border-radius: 9px; font-size: 11px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s; z-index: 60; }.toast.show { transform: translateY(0); opacity: 1; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(17,31,24,.55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; }.modal-backdrop[hidden] { display: none; }.modal { width: min(480px, calc(100% - 32px)); background: white; border-radius: 14px; padding: 31px; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.2); }.modal-close { position: absolute; right: 16px; top: 13px; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: #8d968f; }.export-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 24px 0; }.export-option { border: 1px solid var(--line); border-radius: 10px; padding: 18px 10px; background: white; cursor: pointer; text-align: center; }.export-option.selected { border: 2px solid var(--green); background: #f2f7f4; }.export-option strong { display: block; font: 18px var(--serif); }.export-option small { font-size: 8px; color: var(--muted); }
@media (max-width: 980px) { .app-shell { grid-template-columns: 76px 1fr; }.sidebar { width: 76px; padding: 26px 12px; }.brand-name,.nav-item span:not(.nav-icon),.nav-label,.usage-card,.profile-copy,.profile-button>span:last-child { display:none; }.brand { padding-left: 9px; }.nav-item { grid-template-columns: 1fr; padding: 12px; }.sidebar-bottom .profile-button { justify-content:center; }.main-content { grid-column: 2; }.view-container { padding: 40px 30px; }.dashboard-grid,.progress-panel { grid-template-columns:1fr; }.outline-layout,.keyword-layout,.cover-layout { grid-template-columns:1fr; }.ai-panel { order: -1; }.format-options { grid-template-columns:1fr; } }
@media (max-width: 640px) { .app-shell { display:block; }.sidebar { position:fixed; inset:auto 0 0; height:66px; width:auto; padding:7px 10px; flex-direction:row; z-index:30; }.brand,.sidebar-bottom,.nav-label,.nav-item[data-view="dashboard"] { display:none; }.main-nav { flex-direction:row; width:100%; justify-content:space-around; }.nav-item { display:flex; flex-direction:column; gap:2px; font-size:8px; padding:7px 10px; }.nav-item span:not(.nav-icon) { display:block; }.nav-item .nav-check { display:none; }.main-content { padding-bottom:66px; }.topbar { height:67px; padding:0 17px; }.mobile-brand { display:flex; }.mobile-brand .brand-mark { width:26px;height:29px;font-size:18px; }.project-switcher,.saved-state,.icon-button { display:none; }.view-container { padding:30px 17px; }.overview-head { align-items:flex-start; }.date-pill { display:none; } h1 { font-size:34px; }.progress-copy { padding:28px 24px; }.progress-visual { padding:24px; }.dashboard-grid { gap:16px; }.card { padding:20px; }.workspace-header { display:block; }.workspace-actions { margin-top:18px; }.editor-layout { grid-template-columns:1fr; }.chapter-sidebar { display:none; }.editor { padding:35px 24px; }.outline-item { grid-template-columns:20px 30px 1fr auto; }.cover-stage { min-height:480px; }.book-cover { width:250px; }.book-page { width:100%; }.top-actions { margin-left:auto; } }
