:root {
  --ink: #17213a;
  --muted: #748097;
  --line: #e5e8ef;
  --canvas: #f6f7fa;
  --white: #ffffff;
  --navy: #111b32;
  --blue: #2563eb;
  --blue-soft: #eef4ff;
  --violet: #6958d7;
  --green: #1c9a6c;
  --orange: #e99a2e;
  --red: #dc5b5b;
  --radius: 16px;
  --shadow: 0 16px 45px rgba(31, 42, 68, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", system-ui, sans-serif; color: var(--ink); background: var(--canvas); }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
.mobile-only { display: none; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .9fr) minmax(480px, 1.1fr); background: white; }
.auth-visual { position: relative; overflow: hidden; min-height: 100vh; padding: 42px clamp(35px, 6vw, 78px); color: white; background: radial-gradient(circle at 15% 80%, rgba(53,105,235,.48), transparent 30%), radial-gradient(circle at 85% 18%, rgba(105,88,215,.28), transparent 28%), var(--navy); display: flex; flex-direction: column; }
.auth-visual::after { content: ""; position: absolute; right: -120px; bottom: -190px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.auth-visual-copy { position: relative; z-index: 1; margin: auto 0; max-width: 550px; }
.auth-eyebrow { color: #83a9ff; }
.auth-visual h1 { margin: 17px 0 20px; font: 800 clamp(42px, 5vw, 68px)/1.08 "Manrope", sans-serif; letter-spacing: -3px; }
.auth-visual-copy p { max-width: 490px; color: #aeb9cf; font-size: 17px; line-height: 1.65; }
.auth-points { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 22px; color: #9eabc1; font-size: 11px; }
.auth-points span::first-letter { color: #70d3ae; }
.auth-panel { min-height: 100vh; display: grid; place-items: center; padding: 50px 28px 25px; background: radial-gradient(circle at 70% 20%, #f3f6ff, transparent 35%), #fbfcfe; }
.auth-card { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.auth-card h2 { margin: 7px 0 8px; font: 800 28px "Manrope"; letter-spacing: -1px; }
.auth-card > div > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 23px; border-radius: 10px; background: #f1f3f7; }
.auth-tabs button { border: 0; border-radius: 7px; padding: 9px; color: #788297; background: transparent; font-size: 11px; font-weight: 700; }
.auth-tabs button.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(25,39,72,.08); }
.auth-form { display: grid; gap: 15px; }
.auth-form .field label { text-transform: none; letter-spacing: 0; color: #566279; font-size: 11px; }
.auth-form .field input { padding: 12px; }
.auth-submit { width: 100%; margin-top: 3px; padding-block: 13px; }
.text-btn { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 700; }
.auth-message { margin-top: 18px; padding: 11px 12px; border-radius: 8px; color: #20694e; background: #edf9f4; border: 1px solid #cceadd; font-size: 11px; line-height: 1.45; }
.auth-message.error { color: #964343; background: #fff2f2; border-color: #f0caca; }
.setup-alert { margin-bottom: 22px; padding: 13px; color: #775518; background: #fff7e7; border: 1px solid #f2dba9; border-radius: 9px; font-size: 11px; line-height: 1.45; }
.setup-alert strong, .setup-alert span { display: block; }.setup-alert strong { margin-bottom: 3px; }.setup-alert code { padding: 1px 4px; background: rgba(255,255,255,.7); border-radius: 3px; }
.auth-legal { align-self: end; color: #9aa3b4; font-size: 9px; }

.generator-shell { min-height: 100vh; background: radial-gradient(circle at 80% 15%, #edf2ff 0, transparent 28%), linear-gradient(180deg, #fbfcfe, #f7f8fb); }
.landing-header { height: 82px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; padding: 0 24px; margin: auto; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 800 22px "Manrope", sans-serif; letter-spacing: -.6px; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; width: 29px; height: 28px; padding: 5px; border-radius: 8px; background: var(--blue); transform: rotate(-2deg); }
.brand-mark i { display: block; flex: 1; border-radius: 2px; background: white; }
.brand-mark i:nth-child(1) { height: 45%; }.brand-mark i:nth-child(2) { height: 80%; }.brand-mark i:nth-child(3) { height: 60%; }
.landing-badge { padding: 8px 13px; border: 1px solid #dce3f1; border-radius: 999px; font-size: 12px; font-weight: 700; color: #5f6d85; background: rgba(255,255,255,.65); }
.generator-main { max-width: 920px; margin: 0 auto; padding: 88px 24px 55px; text-align: center; }
.eyebrow { display: inline-block; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 1.7px; margin-bottom: 20px; }
.hero-copy h1 { font: 800 clamp(38px, 6vw, 62px)/1.08 "Manrope", sans-serif; letter-spacing: -2.7px; margin: 0; }
.hero-copy p { color: var(--muted); font-size: 18px; margin: 20px auto 38px; max-width: 620px; line-height: 1.6; }
.prompt-card { text-align: left; padding: 22px; background: white; border: 1px solid #e1e5ed; border-radius: 18px; box-shadow: var(--shadow); }
.prompt-card:focus-within { border-color: #afc7ff; box-shadow: 0 16px 50px rgba(37,99,235,.12); }
.prompt-card label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.prompt-card textarea { width: 100%; resize: vertical; border: 0; outline: 0; min-height: 100px; color: var(--ink); line-height: 1.55; font-size: 16px; }
.prompt-card textarea::placeholder { color: #a2aabd; }
.prompt-footer { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.privacy-note { font-size: 12px; color: #7f899c; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.primary-btn, .secondary-btn { border: 0; border-radius: 9px; padding: 12px 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.primary-btn { color: white; background: var(--blue); box-shadow: 0 5px 14px rgba(37,99,235,.2); }
.primary-btn:hover { background: #1d55d7; transform: translateY(-1px); }
.primary-btn.compact { padding: 10px 15px; }
.secondary-btn { color: var(--ink); background: white; border: 1px solid var(--line); padding: 9px 14px; }
.examples { margin: 22px 0 55px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 12px; }
.examples button { color: #4e5d76; border: 1px solid #dfe4ed; border-radius: 999px; padding: 7px 11px; background: #fff; }
.examples button:hover { color: var(--blue); border-color: #bcd0ff; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 30px; border-top: 1px solid #e4e7ed; text-align: left; }
.feature-row article { display: flex; align-items: center; justify-content: center; gap: 12px; }
.feature-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.feature-row strong, .feature-row small { display: block; }.feature-row strong { font-size: 13px; }.feature-row small { color: var(--muted); margin-top: 3px; font-size: 11px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { background: var(--navy); color: #d8deeb; height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 22px 14px 16px; z-index: 10; }
.sidebar-head { padding: 0 8px 25px; display: flex; justify-content: space-between; align-items: center; }
.brand-light { color: white; font-size: 20px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-item { width: 100%; text-align: left; background: transparent; border: 0; color: #8f9ab1; border-radius: 8px; padding: 10px 12px; display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; }
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: white; background: #24314c; }
.nav-icon { width: 19px; font-size: 15px; text-align: center; opacity: .9; }
.nav-alert { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; color: white; background: var(--red); font-size: 10px; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.new-event-btn { width: 100%; background: transparent; border: 1px solid #3b4863; color: #c9d1e1; border-radius: 8px; padding: 9px; font-size: 12px; font-weight: 600; }
.user-card { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 8px 4px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #425271; color: white; font-size: 10px; font-weight: 700; }
.user-card div { min-width: 0; flex: 1; }.user-card strong, .user-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.user-card strong { font-size: 11px; color: white; }.user-card small { font-size: 9px; color: #8390a7; margin-top: 2px; }.user-card button { border: 0; background: transparent; color: #7b879d; }
.workspace { min-width: 0; }
.topbar { height: 72px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 8; }
.breadcrumbs { min-width: 0; display: flex; gap: 9px; align-items: center; font-size: 12px; }.breadcrumbs span, .breadcrumbs b { color: #9ba4b4; font-weight: 500; }.breadcrumbs strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 9px; align-items: center; }
.save-state { color: #778195; font-size: 11px; margin-right: 8px; }.save-state span { color: var(--green); }
.content { max-width: 1240px; margin: auto; padding: 30px 34px 60px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { font: 800 clamp(25px, 4vw, 34px)/1.2 "Manrope"; letter-spacing: -1.2px; margin: 0 0 7px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.status-select { border: 1px solid #cfe8dc; color: var(--green); background: #effaf5; border-radius: 8px; padding: 9px 12px; font-size: 12px; font-weight: 700; outline: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card, .card { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 12px rgba(25,39,72,.025); }
.stat-card { padding: 17px 18px; display: flex; align-items: center; gap: 13px; }
.stat-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 16px; }
.stat-icon.purple { color: var(--violet); background: #f1efff; }.stat-icon.green { color: var(--green); background: #eaf8f2; }.stat-icon.orange { color: var(--orange); background: #fff6e7; }
.stat-card small, .stat-card strong { display: block; }.stat-card small { color: var(--muted); font-size: 10px; margin-bottom: 4px; }.stat-card strong { font: 700 17px "Manrope"; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); gap: 18px; }
.stack { display: grid; gap: 18px; align-content: start; }
.card { padding: 19px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.card-head h2 { margin: 0; font: 700 14px "Manrope"; }.card-head a, .link-btn { border: 0; background: none; color: var(--blue); text-decoration: none; font-size: 11px; font-weight: 700; }
.progress-wrap { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; }
.progress-ring { --progress: 0; width: 104px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) calc(var(--progress) * 1%), #e9edf4 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; width: 78px; aspect-ratio: 1; border-radius: 50%; background: white; }
.progress-ring span { z-index: 1; font: 800 20px "Manrope"; }.progress-ring small { font: 500 9px "DM Sans"; display: block; color: var(--muted); text-align: center; }
.progress-details { display: grid; gap: 9px; }.progress-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; color: #6f7a8f; font-size: 11px; }.progress-line b { color: var(--ink); }.mini-bar { grid-column: 1 / -1; height: 4px; border-radius: 5px; background: #eef0f4; overflow: hidden; }.mini-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.agenda-list, .task-list, .budget-list, .detail-list { display: grid; gap: 2px; }
.agenda-item { display: grid; grid-template-columns: 70px 3px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #edf0f4; }.agenda-item:first-child { border-top: 0; }.agenda-item time { font-size: 11px; font-weight: 700; }.agenda-marker { width: 3px; height: 34px; border-radius: 3px; background: var(--blue); }.agenda-item strong { display: block; font-size: 12px; }.agenda-item small { color: var(--muted); font-size: 9px; }.tag { padding: 5px 8px; border-radius: 5px; background: #f0f3f8; color: #69758b; font-size: 9px; font-weight: 700; }
.task-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #edf0f4; }.task-item:first-child { border-top: 0; }.task-item input { accent-color: var(--blue); }.task-item strong { display: block; font-size: 11px; }.task-item small { color: var(--muted); font-size: 9px; }.task-item.done strong { text-decoration: line-through; color: #97a0af; }.priority { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }.priority.high { background: var(--red); }.priority.low { background: var(--green); }
.budget-summary { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }.budget-summary small, .budget-summary strong { display: block; }.budget-summary small { color: var(--muted); font-size: 9px; }.budget-summary strong { font: 800 22px "Manrope"; margin-top: 3px; }.budget-summary span { color: var(--green); font-size: 10px; font-weight: 700; }
.big-bar { height: 7px; background: #edf0f4; border-radius: 9px; overflow: hidden; margin-bottom: 15px; }.big-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #7588f4); border-radius: inherit; }
.budget-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; color: #667287; font-size: 10px; }.budget-item b { color: var(--ink); }.budget-item .mini-bar { grid-column: 1/-1; }
.alert { display: flex; gap: 11px; padding: 11px; border-radius: 8px; background: #fff7e9; border: 1px solid #f7e2bd; color: #8c641e; }.alert-icon { font-size: 16px; }.alert strong { display: block; font-size: 10px; margin-bottom: 3px; }.alert p { margin: 0; font-size: 9px; line-height: 1.4; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.quick-grid button { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 11px 6px; color: #59667d; font-size: 9px; font-weight: 700; }.quick-grid button span { display: block; color: var(--blue); font-size: 16px; margin-bottom: 5px; }

.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.section-grid .wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }.field label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; outline: 0; color: var(--ink); background: white; }.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }.field input:focus, .field textarea:focus { border-color: #9db9f8; box-shadow: 0 0 0 3px #edf3ff; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.editable-list { display: grid; gap: 9px; }.editable-row { display: grid; grid-template-columns: 1fr 130px 105px auto; gap: 8px; align-items: center; }.editable-row input, .editable-row select { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 9px; font-size: 11px; }.remove-btn { border: 0; background: #fff1f1; color: var(--red); width: 30px; height: 30px; border-radius: 7px; }
.add-btn { margin-top: 11px; border: 1px dashed #bdc8da; color: var(--blue); background: #f8faff; border-radius: 8px; padding: 9px 12px; font-size: 11px; font-weight: 700; }
.empty-state { text-align: center; color: var(--muted); padding: 32px; }.empty-state span { font-size: 30px; display: block; margin-bottom: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(9,16,30,.55); display: grid; place-items: center; padding: 20px; }.modal { width: min(480px, 100%); border-radius: 16px; background: white; padding: 28px; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.2); }.modal h2 { margin: 0 0 10px; font: 800 22px "Manrope"; }.modal p { color: var(--muted); line-height: 1.55; font-size: 13px; }.modal-close { position: absolute; right: 15px; top: 12px; border: 0; background: none; font-size: 24px; color: #7b8496; }.share-row { display: flex; gap: 8px; }.share-row input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: #768198; }
.toast { visibility: hidden; opacity: 0; position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 12px); z-index: 100; color: white; background: var(--navy); padding: 10px 16px; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow); transition: .2s; }.toast.show { visibility: visible; opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.stack.secondary { grid-template-columns: repeat(2, 1fr); }.app-shell { grid-template-columns: 210px minmax(0,1fr); }.sidebar { padding-inline: 10px; }
}
@media (max-width: 740px) {
  .auth-shell { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-panel { min-height: 100vh; padding: 24px 16px; }.auth-card { padding: 27px 22px; }
  .mobile-only { display: inline-grid; place-items: center; }.app-shell { display: block; }.sidebar { position: fixed; left: -260px; width: 250px; transition: left .22s ease; box-shadow: 15px 0 40px rgba(0,0,0,.25); }.sidebar.open { left: 0; }.icon-btn { border: 0; background: transparent; color: inherit; font-size: 20px; }.topbar { height: 62px; padding: 0 15px; gap: 10px; }.breadcrumbs span, .breadcrumbs b, .save-state, .secondary-btn { display: none; }.top-actions { margin-left: auto; }.content { padding: 22px 15px 45px; }.stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }.stat-card { padding: 13px; }.stat-icon { width: 33px; height: 33px; }.dashboard-grid, .stack.secondary, .section-grid { grid-template-columns: 1fr; }.section-grid .wide { grid-column: auto; }.progress-wrap { grid-template-columns: 94px 1fr; }.progress-ring { width: 88px; }.feature-row { grid-template-columns: 1fr; max-width: 300px; margin: auto; }.feature-row article { justify-content: flex-start; }.generator-main { padding-top: 55px; }.prompt-footer { align-items: stretch; flex-direction: column; }.prompt-footer .primary-btn { width: 100%; }.privacy-note { justify-content: center; }.editable-row { grid-template-columns: 1fr 90px auto; }.editable-row .row-extra { display: none; }
}
@media (max-width: 430px) {
  .landing-header { height: 68px; }.landing-badge { display: none; }.generator-main { padding-top: 40px; }.hero-copy h1 { font-size: 38px; }.hero-copy p { font-size: 15px; margin-bottom: 28px; }.prompt-card { padding: 17px; }.stats { grid-template-columns: 1fr; }.page-head { flex-direction: column; gap: 12px; }.field-grid { grid-template-columns: 1fr; }.agenda-item { grid-template-columns: 55px 3px 1fr; }.agenda-item .tag { display: none; }.quick-grid { grid-template-columns: 1fr 1fr; }
}
