:root {
  color-scheme: light;
  --ink: #322d2b;
  --ink-soft: #665d58;
  --muted: #8b817b;
  --cream: #fffaf4;
  --paper: #ffffff;
  --line: #eee4da;
  --orange: #f36b21;
  --orange-dark: #d84417;
  --orange-soft: #fff0e2;
  --gold: #ffad22;
  --red: #c91e16;
  --shadow: 0 22px 60px rgba(125, 64, 22, 0.1);
  --sidebar-width: 256px;
  font-family: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--cream); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(243,107,33,.26); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(480px, 1.12fr) minmax(420px, .88fr); background: #fff; }
.login-art { min-height: 100vh; overflow: hidden; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #fff5e7 0, #ffe2bd 35%, #ffc26c 72%, #f9842d 100%); }
.login-art::before { content: ""; position: absolute; inset: 6%; border: 1px solid rgba(255,255,255,.55); border-radius: 36px; }
.login-art__glow { position: absolute; border-radius: 50%; filter: blur(4px); background: rgba(255,255,255,.28); }
.login-art__glow--one { width: 330px; height: 330px; top: -90px; left: -90px; }
.login-art__glow--two { width: 260px; height: 260px; right: -60px; bottom: -50px; }
.login-brand { width: min(430px, 62%); position: relative; z-index: 2; text-align: center; }
.brand-lockup { display: flex; align-items: center; }
.brand-lockup--hero { flex-direction: column; gap: 4px; animation: float 5s ease-in-out infinite; }
.login-logo { display: block; width: 78%; filter: drop-shadow(0 24px 24px rgba(165,69,8,.16)); }
.wordmark { font: 700 3.4rem/1 "Space Grotesk", sans-serif; letter-spacing: .08em; color: #4a4543; }
.login-brand p { margin: 20px 0 0; font: 600 1.05rem/1.5 "Space Grotesk", sans-serif; color: #833714; letter-spacing: .01em; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; }
.orbit--one { width: 520px; height: 520px; }
.orbit--two { width: 680px; height: 680px; border-style: dashed; opacity: .58; animation: spin 40s linear infinite; }
.floating-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.72); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 16px 40px rgba(127,55,15,.14); backdrop-filter: blur(16px); color: #794022; font-size: .76rem; }
.floating-note b { display: block; margin-bottom: 2px; color: #3f2d25; font-size: .83rem; }
.floating-note__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--orange); }
.floating-note__icon svg { width: 18px; height: 18px; }
.floating-note--one { top: 18%; right: 8%; animation: drift 6s ease-in-out infinite; }
.floating-note--two { bottom: 16%; left: 8%; animation: drift 7s ease-in-out infinite reverse; }

.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 48px; background: linear-gradient(150deg, #fff 0, #fff 60%, #fff8f1 100%); }
.login-card { width: min(420px, 100%); }
.mobile-brand { display: none; align-items: center; gap: 10px; }
.eyebrow { margin: 0 0 7px; color: var(--orange-dark); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-card h1 { margin: 0; font: 700 clamp(2rem, 3vw, 2.7rem)/1.08 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.login-copy { margin: 13px 0 34px; color: var(--ink-soft); font-size: 1rem; }
.field { display: grid; gap: 9px; margin: 0 0 19px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.field input { width: 100%; height: 56px; padding: 0 17px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field input:focus { border-color: #f2a067; box-shadow: 0 0 0 4px rgba(243,107,33,.08); outline: none; }
.field input::placeholder { color: #b0a49c; }
.primary-button { width: 100%; height: 58px; margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 15px; background: linear-gradient(135deg, var(--orange) 0, var(--orange-dark) 100%); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 16px 30px rgba(217,73,21,.22); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(217,73,21,.28); }
.primary-button svg { transition: transform .2s; }
.primary-button:hover svg { transform: translateX(3px); }
.demo-hint { margin: 17px 0 0; text-align: center; color: var(--muted); font-size: .79rem; }

.app-view { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) 1fr; background: var(--cream); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 26px 17px 20px; border-right: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(20px); }
.sidebar__brand { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 10px; }
.brand-lockup--sidebar { gap: 8px; }
.brand-lockup--sidebar img { width: 43px; height: 43px; object-fit: contain; }
.brand-lockup--sidebar .wordmark { font-size: 1.35rem; letter-spacing: .06em; }
.sidebar__nav { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; padding-top: 14px; }
.nav-label { margin: 19px 13px 7px; color: #aaa09a; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { min-height: 45px; width: 100%; display: flex; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 13px; background: transparent; color: #675e59; font-size: .89rem; font-weight: 650; text-align: left; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item:hover { background: #fff5eb; color: var(--orange-dark); transform: translateX(2px); }
.nav-item.active { background: linear-gradient(110deg, #fff0e1, #fff7ef); color: var(--orange-dark); box-shadow: inset 3px 0 var(--orange); }
.nav-badge { min-width: 22px; margin-left: auto; padding: 3px 6px; border-radius: 20px; background: #ffe7d5; color: var(--orange-dark); font-size: .68rem; font-weight: 800; text-align: center; }
.settings-button { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.close-menu, .open-menu { display: none; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 10; top: 0; min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 15px clamp(22px, 3.5vw, 54px); border-bottom: 1px solid rgba(238,228,218,.85); background: rgba(255,250,244,.84); backdrop-filter: blur(18px); }
.topbar__title { display: flex; align-items: center; gap: 13px; }
.topbar__title span { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.topbar__title h2 { margin: 2px 0 0; font: 700 1.16rem/1.2 "Space Grotesk", sans-serif; }
.account-wrap { position: relative; }
.account-button { display: flex; align-items: center; gap: 11px; padding: 7px 9px 7px 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); cursor: pointer; }
.account-avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--orange), #ffaf27); color: #fff; font-weight: 800; box-shadow: 0 7px 16px rgba(236,97,27,.18); }
.account-text { min-width: 112px; display: grid; text-align: left; }
.account-text small { color: var(--muted); font-size: .66rem; }
.account-text strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: .84rem; white-space: nowrap; }
.account-button > svg { width: 16px; height: 16px; color: var(--muted); }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 180px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.account-menu button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font-size: .82rem; cursor: pointer; }
.account-menu button:hover { background: #fff4ea; color: var(--orange-dark); }

.content-area { width: min(1180px, 100%); margin: 0 auto; padding: clamp(22px, 3.2vw, 46px) clamp(22px, 3.5vw, 54px) 58px; }
.hero-panel { min-height: 285px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px clamp(30px, 5vw, 66px); border-radius: 30px; background: linear-gradient(118deg, #cf2b17 0%, #f05b1d 48%, #ff9e24 100%); box-shadow: 0 24px 50px rgba(182,58,13,.17); color: #fff; }
.hero-panel::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(157,35,8,.08)); }
.hero-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.hero-orb--one { width: 220px; height: 220px; top: -110px; left: 34%; }
.hero-orb--two { width: 150px; height: 150px; bottom: -65px; left: 8%; }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.eyebrow--light { color: #ffdfc0; }
.hero-copy h1 { margin: 0 0 12px; font: 700 clamp(2.3rem, 5vw, 4.2rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.hero-copy p:last-child { max-width: 470px; margin: 0; color: #fff7ef; font-size: clamp(.95rem, 1.5vw, 1.08rem); line-height: 1.6; }
.hero-logo-wrap { width: clamp(185px, 24vw, 270px); aspect-ratio: 1; position: relative; z-index: 2; flex: 0 0 auto; display: grid; place-items: center; }
.hero-logo { position: relative; z-index: 2; width: 84%; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(108,22,0,.18)); animation: float 4.5s ease-in-out infinite; }
.hero-ring { position: absolute; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.hero-ring--one { inset: 1%; animation: spin 28s linear infinite; border-style: dashed; }
.hero-ring--two { inset: 13%; }
.summary-section { padding-top: 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 19px; }
.section-heading h3 { margin: 0; font: 700 clamp(1.45rem, 2.2vw, 1.85rem)/1.2 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 340px; margin: 0; color: var(--muted); font-size: .85rem; text-align: right; }
.summary-grid { display: grid; grid-template-columns: 1.15fr .85fr .9fr; gap: 17px; }
.summary-card { min-height: 224px; position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.86); box-shadow: 0 12px 34px rgba(96,63,40,.055); transition: transform .2s, box-shadow .2s; }
.summary-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(96,63,40,.09); }
.summary-card--wide { grid-row: span 2; min-height: 465px; display: flex; flex-direction: column; justify-content: flex-start; padding: 28px; background: linear-gradient(160deg, #fff 0, #fffaf5 100%); }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }
.card-icon svg { width: 20px; height: 20px; }
.card-icon--orange { background: #ffeadb; color: var(--orange-dark); }
.card-icon--red { background: #ffe6e2; color: var(--red); }
.card-icon--gold { background: #fff2c9; color: #cc7800; }
.card-icon--peach { background: #fff0e8; color: #dd5f2c; }
.status-pill { padding: 6px 10px; border-radius: 20px; background: #fff0e2; color: var(--orange-dark); font-size: .69rem; font-weight: 800; }
.status-pill--soft { background: #fff8dc; color: #9a6b00; }
.muted { color: var(--muted); font-size: .72rem; font-weight: 650; }
.event-time { margin: 50px 0 6px; display: flex; align-items: baseline; gap: 9px; }
.event-time strong { font: 700 3rem/1 "Space Grotesk", sans-serif; letter-spacing: -.06em; color: var(--orange-dark); }
.event-time span { color: var(--muted); font-size: .75rem; }
.summary-card h4 { margin: 12px 0 7px; font: 700 1.06rem/1.25 "Space Grotesk", sans-serif; }
.summary-card--wide h4 { margin-top: 24px; font-size: 1.5rem; }
.summary-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.text-link, .solid-link { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--orange-dark); font-size: .76rem; font-weight: 800; cursor: pointer; }
.text-link { margin: auto 0 0; padding: 10px 0 0; }
.text-link svg, .solid-link svg { width: 15px; height: 15px; transition: transform .2s; }
.text-link:hover svg, .solid-link:hover svg { transform: translateX(3px); }
.solid-link { width: fit-content; margin-top: 17px; padding: 9px 12px; border-radius: 10px; background: #fff4dc; color: #a15b00; }
.progress { height: 7px; margin: 20px 0 10px; overflow: hidden; border-radius: 10px; background: #f3e9e4; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--gold)); }
.agenda-card ul { list-style: none; display: grid; gap: 8px; padding: 0; margin: 17px 0 0; }
.agenda-card li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #fff9f4; }
.agenda-card li span { width: 55px; color: var(--orange-dark); font-size: .69rem; font-weight: 800; }
.agenda-card li b { font-size: .74rem; font-weight: 700; }

.placeholder-view { min-height: calc(100vh - 180px); display: grid; place-items: center; text-align: center; }
.placeholder-card { width: min(560px, 100%); padding: 48px 34px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.placeholder-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 22px; background: linear-gradient(135deg, #fff0e2, #ffe0c4); color: var(--orange-dark); }
.placeholder-icon svg { width: 31px; height: 31px; }
.placeholder-card h1 { margin: 0 0 10px; font: 700 2rem/1.15 "Space Grotesk", sans-serif; }
.placeholder-card p { max-width: 410px; margin: 0 auto; color: var(--muted); line-height: 1.7; }

/* Interactive demos */
.demo-page { min-height: calc(100vh - 180px); }
.demo-page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.demo-page__header h1 { margin: 0; font: 700 clamp(2rem, 3.5vw, 3rem)/1.05 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.demo-page__header > div > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: .92rem; }
.demo-primary, .composer button, .stack-form button, .add-strip > button, .board-toolbar button, .reminder-form button, .new-post > button { min-height: 44px; padding: 0 17px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; font-size: .84rem; font-weight: 800; cursor: pointer; box-shadow: 0 9px 20px rgba(211,70,18,.14); }
.demo-page input, .demo-page textarea, .demo-page select { border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; color: var(--ink); }
.demo-page input:focus, .demo-page textarea:focus, .demo-page select:focus { border-color: #f29b63; box-shadow: 0 0 0 4px rgba(243,107,33,.08); outline: 0; }
.demo-toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 13px; background: #352c28; color: #fff; box-shadow: 0 16px 40px rgba(35,21,14,.22); font-size: .85rem; font-weight: 700; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.demo-toast.visible { opacity: 1; transform: translateY(0); }

/* Chat */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; }
.chat-panel { min-height: 590px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 15px 38px rgba(90,56,32,.06); }
.chat-messages { flex: 1; display: flex; flex-direction: column; gap: 18px; max-height: 500px; overflow-y: auto; padding: 28px; }
.chat-message { display: flex; align-items: flex-start; gap: 10px; max-width: 78%; }
.chat-message--user { align-self: flex-end; }
.chat-message > div { padding: 13px 16px; border-radius: 8px 18px 18px; background: #fff2e7; }
.chat-message--user > div { border-radius: 18px 8px 18px 18px; background: linear-gradient(135deg, #ee6422, #d84518); color: #fff; }
.chat-message small { display: block; margin-bottom: 5px; color: var(--orange-dark); font-size: .7rem; font-weight: 800; }
.chat-message--user small { color: #ffe5d5; text-align: right; }
.chat-message p { margin: 0; font-size: .88rem; line-height: 1.6; white-space: pre-wrap; }
.chat-avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #ffead7; color: var(--orange-dark); }
.chat-avatar svg { width: 18px; height: 18px; }
.composer { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line); background: #fffaf6; }
.composer input { min-width: 0; flex: 1; height: 48px; padding: 0 15px; font-size: .9rem; }
.composer button { display: flex; align-items: center; gap: 7px; }
.composer button svg { width: 16px; height: 16px; }
.quick-panel { height: fit-content; padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, #fff, #fff8f0); }
.quick-panel h3 { margin: 0 0 16px; font: 700 1.15rem/1.2 "Space Grotesk", sans-serif; }
.quick-prompt { width: 100%; margin-bottom: 9px; padding: 12px 13px; border: 1px solid #f0dfd1; border-radius: 12px; background: #fff; color: var(--ink-soft); font-size: .78rem; font-weight: 650; line-height: 1.35; text-align: left; cursor: pointer; }
.quick-prompt:hover { border-color: #f3a273; color: var(--orange-dark); }
.demo-notice { margin-top: 16px; padding: 11px 12px; border-radius: 10px; background: #fff0df; color: #8e4a24; font-size: .7rem; line-height: 1.5; }
.typing p { display: flex; gap: 4px; padding: 4px 1px; }
.typing p span { width: 6px; height: 6px; border-radius: 50%; background: #d99670; animation: typing 1s infinite alternate; }
.typing p span:nth-child(2) { animation-delay: .2s; }
.typing p span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { to { opacity: .25; transform: translateY(-3px); } }

/* Calendar */
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .7fr); gap: 18px; }
.calendar-card, .day-panel { padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 14px 35px rgba(90,56,32,.05); }
.calendar-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.calendar-month h3 { margin: 0; font: 700 1.35rem/1 "Space Grotesk", sans-serif; }
.calendar-month button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: #fffaf6; color: var(--orange-dark); font-size: 1.4rem; cursor: pointer; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.calendar-week { margin-bottom: 8px; color: var(--muted); font-size: .68rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendar-day { min-height: 66px; position: relative; display: grid; place-items: center; border: 1px solid transparent; border-radius: 13px; background: #fffaf6; color: var(--ink-soft); cursor: pointer; }
.calendar-day:hover { border-color: #f4b18a; color: var(--orange-dark); }
.calendar-day.selected { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; box-shadow: 0 10px 22px rgba(213,72,20,.18); }
.calendar-day.today:not(.selected) { border-color: #f28b51; color: var(--orange-dark); }
.calendar-day i { width: 5px; height: 5px; position: absolute; bottom: 9px; border-radius: 50%; background: var(--orange); }
.calendar-day.selected i { background: #fff; }
.calendar-day--empty { background: transparent; }
.day-panel h3 { margin: 0 0 20px; font: 700 1.55rem/1.15 "Space Grotesk", sans-serif; }
.day-events { display: grid; gap: 9px; min-height: 190px; }
.day-event { display: flex; gap: 12px; padding: 13px; border-left: 3px solid var(--orange); border-radius: 10px; background: #fff8f1; }
.day-event time { color: var(--orange-dark); font-size: .78rem; font-weight: 800; }
.day-event div { display: grid; gap: 3px; }
.day-event span { color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.day-event strong { font-size: .82rem; }
.empty-mini { display: grid; place-items: center; border: 1px dashed #e5d8cf; border-radius: 13px; color: var(--muted); font-size: .8rem; }
.stack-form { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.stack-form > input { height: 43px; padding: 0 12px; }
.stack-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.stack-form > div input { min-width: 0; padding: 0 10px; }
.stack-form button { min-height: 42px; }

/* Materials */
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search-box { min-width: 260px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--muted); }
.search-box svg { width: 17px; height: 17px; }
.search-box input { width: 100%; height: 46px; padding: 0; border: 0; background: transparent; }
.search-box input:focus { box-shadow: none; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.filter-chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink-soft); font-size: .72rem; font-weight: 750; cursor: pointer; }
.filter-chip.active { border-color: transparent; background: #ffe9d8; color: var(--orange-dark); }
.material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.material-card { overflow: hidden; padding: 13px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 10px 28px rgba(90,56,32,.045); }
.file-preview { height: 112px; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px; border-radius: 13px; background: linear-gradient(145deg, #fff0df, #ffd3ae); color: var(--orange-dark); }
.file-preview span { padding: 5px 7px; border-radius: 7px; background: rgba(255,255,255,.72); font-size: .64rem; font-weight: 800; }
.file-preview svg { width: 32px; height: 32px; opacity: .72; }
.subject-tag { display: inline-block; margin-top: 13px; color: var(--orange-dark); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.material-card h3 { min-height: 43px; margin: 6px 0 13px; font: 700 .98rem/1.35 "Space Grotesk", sans-serif; }
.material-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.material-meta button { display: flex; align-items: center; gap: 3px; padding: 5px; border: 0; background: transparent; color: var(--orange-dark); font-size: .7rem; font-weight: 800; cursor: pointer; }
.material-meta svg { width: 14px; height: 14px; }
.add-strip { display: grid; grid-template-columns: 1fr minmax(180px, 1.2fr) 150px auto; align-items: center; gap: 10px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.add-strip div { display: grid; gap: 3px; }
.add-strip div strong { font-size: .82rem; }
.add-strip div span { color: var(--muted); font-size: .68rem; }
.add-strip input, .add-strip select { min-width: 0; height: 42px; padding: 0 11px; }
.add-strip > button { min-height: 42px; }
.empty-state { grid-column: 1 / -1; padding: 55px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }

/* Forum */
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.new-post { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; margin-bottom: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.account-avatar--small { width: 38px; height: 38px; border-radius: 12px; }
.new-post textarea { min-height: 72px; padding: 12px; resize: vertical; }
.new-post > button { margin-top: 4px; }
.post-list { display: grid; gap: 13px; }
.post-card { padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.post-card header { display: flex; align-items: center; gap: 11px; }
.user-bubble { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #ffead8; color: var(--orange-dark); font-size: .74rem; font-weight: 800; }
.post-card header div { display: grid; gap: 3px; }
.post-card header strong { font-size: .83rem; }
.post-card header small { color: var(--muted); font-size: .68rem; }
.post-card > p { margin: 17px 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }
.post-card footer { display: flex; gap: 9px; padding-top: 13px; border-top: 1px solid #f4ece6; }
.post-card footer button { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 700; cursor: pointer; }
.post-card footer button:hover, .post-card footer button.active { background: #fff0e5; color: var(--orange-dark); }
.post-card footer svg { width: 15px; height: 15px; }
.community-card { height: fit-content; padding: 26px; border-radius: 22px; background: linear-gradient(145deg, #d83d18, #fa7e25); color: #fff; text-align: center; box-shadow: 0 18px 40px rgba(187,56,12,.16); }
.community-card .placeholder-icon { margin-bottom: 15px; background: rgba(255,255,255,.18); color: #fff; }
.community-card h3 { margin: 0; font: 700 1.25rem/1.2 "Space Grotesk", sans-serif; }
.community-card > p { margin: 10px 0 20px; color: #ffe7da; font-size: .8rem; line-height: 1.6; }
.community-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.community-card > div span { padding: 10px 5px; border-radius: 11px; background: rgba(255,255,255,.12); color: #ffe7da; font-size: .62rem; }
.community-card b { display: block; margin-bottom: 3px; color: #fff; font-size: 1rem; }

/* Notes */
.notes-layout { min-height: 540px; display: grid; grid-template-columns: 285px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: 0 15px 38px rgba(90,56,32,.05); }
.note-list { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-right: 1px solid var(--line); background: #fffaf6; }
.note-list__item { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.note-list__item:hover, .note-list__item.active { background: #fff; box-shadow: 0 5px 16px rgba(80,51,31,.06); }
.note-list__item > span { min-width: 0; display: grid; gap: 4px; }
.note-list__item strong, .note-list__item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-list__item strong { font-size: .8rem; }
.note-list__item small { color: var(--muted); font-size: .68rem; }
.note-dot { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; }
.note-dot--orange { background: var(--orange); }
.note-dot--yellow { background: #f0ad1f; }
.note-dot--red { background: #c83824; }
.note-editor { display: flex; flex-direction: column; padding: 28px; }
.editor-status { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); }
.note-editor > input { height: auto; padding: 12px 0; border: 0; border-radius: 0; background: transparent; font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.2 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.note-editor > input:focus { box-shadow: none; }
.note-editor > textarea { flex: 1; min-height: 390px; padding: 18px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; font-size: .95rem; line-height: 1.8; resize: none; }
.note-editor > textarea:focus { box-shadow: none; }

/* Board */
.board-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-bottom: 13px; }
.board-toolbar input { height: 47px; padding: 0 14px; }
.board-canvas { min-height: 500px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 22px; padding: 38px; overflow: hidden; border: 1px solid #eadccf; border-radius: 24px; background-color: #fffdf8; background-image: radial-gradient(#e7d9cd 1px, transparent 1px); background-size: 22px 22px; }
.sticky { min-height: 180px; position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 5px 5px 18px 5px; box-shadow: 0 13px 24px rgba(80,51,31,.11); cursor: grab; transform: rotate(-1deg); transition: transform .2s, opacity .2s; }
.sticky:nth-child(even) { transform: rotate(1.3deg); }
.sticky:hover { transform: rotate(0) translateY(-3px); }
.sticky.dragging { opacity: .45; }
.sticky--orange { background: #ffd7b7; }
.sticky--yellow { background: #ffeaa6; }
.sticky--pink { background: #ffd2ca; }
.sticky > span { color: rgba(80,51,31,.35); font-size: 1rem; letter-spacing: -.2em; }
.sticky p { margin: 22px 0; color: #553e31; font: 700 1.05rem/1.5 "Space Grotesk", sans-serif; }
.delete-sticky { width: 28px; height: 28px; position: absolute; top: 10px; right: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.48); color: #7a5040; font-size: 1.1rem; cursor: pointer; }
.board-tip { grid-column: 1 / -1; align-self: end; padding-top: 35px; color: var(--muted); font-size: .7rem; text-align: center; }

/* Reminders */
.reminder-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
.reminder-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.reminder-form { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); background: #fffaf6; }
.reminder-form input, .reminder-form select { min-width: 0; height: 43px; padding: 0 11px; }
.reminder-list { display: grid; }
.reminder-item { display: flex; align-items: center; gap: 13px; padding: 17px 20px; border-bottom: 1px solid #f3ebe5; cursor: pointer; }
.reminder-item:last-child { border-bottom: 0; }
.reminder-item input { position: absolute; opacity: 0; }
.custom-check { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid #dfd3ca; border-radius: 8px; color: transparent; }
.custom-check svg { width: 15px; height: 15px; }
.reminder-check:checked + .custom-check { border-color: var(--orange); background: var(--orange); color: #fff; }
.reminder-item > span:last-child { display: grid; gap: 4px; }
.reminder-item strong { font-size: .84rem; }
.reminder-item small { color: var(--muted); font-size: .7rem; }
.reminder-item.done strong { color: var(--muted); text-decoration: line-through; }
.reminder-summary { height: fit-content; padding: 28px; border-radius: 22px; background: linear-gradient(145deg, #fff0e1, #ffd5b2); text-align: center; }
.reminder-summary > span { display: block; color: var(--orange-dark); font: 700 4rem/1 "Space Grotesk", sans-serif; }
.reminder-summary h3 { margin: 4px 0 12px; font: 700 1.15rem/1 "Space Grotesk", sans-serif; }
.reminder-summary p { color: #7c5a45; font-size: .79rem; line-height: 1.6; }
.reminder-summary button { margin-top: 10px; padding: 8px 10px; border: 0; background: transparent; color: var(--orange-dark); font-size: .72rem; font-weight: 800; cursor: pointer; }

/* Goals */
.goal-overview { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; padding: 23px 28px; border-radius: 22px; background: linear-gradient(120deg, #d53a17, #f97c24); color: #fff; }
.goal-overview .eyebrow { color: #ffd8c0; }
.goal-overview h2 { margin: 0 0 5px; font: 700 1.55rem/1.2 "Space Grotesk", sans-serif; }
.goal-overview p:last-child { margin: 0; color: #ffe6d7; font-size: .8rem; }
.goal-ring { width: 92px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#fff var(--progress), rgba(255,255,255,.2) 0); }
.goal-ring::before { content: ""; width: 70px; height: 70px; grid-area: 1/1; border-radius: 50%; background: #e9541d; }
.goal-ring span { z-index: 1; grid-area: 1/1; font-weight: 800; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.goal-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.goal-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.goal-card h3 { min-height: 42px; margin: 18px 0 7px; font: 700 1rem/1.35 "Space Grotesk", sans-serif; }
.goal-card > p { margin: 0; color: var(--muted); font-size: .76rem; }
.goal-card > p strong { color: var(--ink); font-size: 1.1rem; }
.goal-card footer { display: grid; grid-template-columns: 40px 1fr; gap: 7px; margin-top: 15px; }
.goal-card footer button { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fffaf6; color: var(--ink-soft); font-weight: 800; cursor: pointer; }
.goal-card footer .goal-change--add { border-color: transparent; background: #fff0e2; color: var(--orange-dark); font-size: .72rem; }

.settings-dialog { width: min(500px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(80,47,24,.22); color: var(--ink); }
.settings-dialog::backdrop { background: rgba(47,34,26,.32); backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font: 700 1.7rem/1 "Space Grotesk", sans-serif; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 24px; border-bottom: 1px solid #f3ece6; }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong, .setting-row span { display: block; }
.setting-row strong { font-size: .9rem; }
.setting-row div > span { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.switch { flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch > span { width: 45px; height: 26px; position: relative; border-radius: 30px; background: #ddd4ce; transition: background .2s; }
.switch > span::after { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s; }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(19px); }

.compact .content-area { padding-top: 24px; padding-bottom: 34px; }
.compact .hero-panel { min-height: 225px; }
.compact .summary-card { min-height: 190px; padding: 18px; }
.compact .summary-card--wide { min-height: 395px; }
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-13px) rotate(.5deg); } }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .login-view { grid-template-columns: .9fr 1.1fr; }
  .login-art { min-width: 0; }
  .floating-note { display: none; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card--wide { grid-row: auto; min-height: 260px; }
  .event-time { margin-top: 28px; }
  .agenda-card { grid-column: 2; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .add-strip { grid-template-columns: 1fr 1fr; }
  .add-strip > button { width: 100%; }
  .goal-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .login-view { display: block; background: linear-gradient(155deg, #fffaf4, #fff 58%, #fff3e5); }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; padding: 28px 22px; background: transparent; }
  .mobile-brand { display: flex; width: fit-content; margin: 0 0 30px; }
  .mobile-brand img { width: 58px; height: 58px; object-fit: contain; }
  .mobile-brand .wordmark { font-size: 1.8rem; }
  .app-view { display: block; }
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(59,36,19,.12); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 15; inset: 0; background: rgba(49,35,26,.25); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sidebar-overlay.visible { opacity: 1; pointer-events: auto; }
  .close-menu, .open-menu { display: grid; }
  .workspace { width: 100%; }
  .topbar { min-height: 76px; padding: 12px 17px; }
  .topbar__title span { display: none; }
  .account-text { min-width: 0; }
  .account-text small { display: none; }
  .account-text strong { max-width: 100px; }
  .account-button { border: 0; background: transparent; }
  .account-button > svg { display: none; }
  .content-area { padding: 18px 16px 40px; }
  .hero-panel { min-height: 370px; display: block; padding: 28px; border-radius: 24px; }
  .hero-copy h1 { font-size: 2.75rem; }
  .hero-logo-wrap { position: absolute; right: 12px; bottom: -20px; width: 190px; opacity: .68; }
  .summary-section { padding-top: 28px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; text-align: left; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card--wide, .summary-card { min-height: 230px; }
  .agenda-card { grid-column: auto; }
  .demo-page { min-height: calc(100vh - 135px); }
  .demo-page__header { align-items: flex-start; margin-bottom: 20px; }
  .demo-page__header h1 { font-size: 2rem; }
  .demo-page__header > div > p:last-child { max-width: 280px; font-size: .82rem; line-height: 1.5; }
  .demo-primary { min-width: max-content; padding: 0 12px; }
  .chat-layout, .calendar-layout, .forum-layout, .reminder-layout { grid-template-columns: 1fr; }
  .chat-panel { min-height: 520px; }
  .chat-messages { max-height: 430px; padding: 18px; }
  .chat-message { max-width: 92%; }
  .composer { padding: 11px; }
  .composer button { width: 46px; padding: 0; font-size: 0; }
  .composer button svg { width: 18px; height: 18px; }
  .quick-panel { display: none; }
  .calendar-card, .day-panel { padding: 16px; border-radius: 18px; }
  .calendar-week, .calendar-grid { gap: 4px; }
  .calendar-day { min-height: 46px; border-radius: 10px; font-size: .78rem; }
  .calendar-day i { bottom: 5px; }
  .day-events { min-height: 120px; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .filter-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-chip { flex: 0 0 auto; }
  .material-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .material-card { padding: 10px; }
  .file-preview { height: 90px; }
  .material-card h3 { font-size: .86rem; }
  .add-strip { grid-template-columns: 1fr; }
  .add-strip > div { margin-bottom: 2px; }
  .community-card { display: none; }
  .new-post { grid-template-columns: auto 1fr; }
  .new-post > button { grid-column: 2; justify-self: end; }
  .notes-layout { min-height: 570px; grid-template-columns: 1fr; }
  .note-list { max-width: calc(100vw - 32px); flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .note-list__item { min-width: 190px; }
  .note-editor { padding: 20px; }
  .note-editor > textarea { min-height: 340px; }
  .board-canvas { min-height: 540px; grid-template-columns: 1fr 1fr; gap: 13px; padding: 22px; }
  .sticky { min-height: 155px; padding: 15px; }
  .sticky p { font-size: .88rem; }
  .reminder-form { grid-template-columns: 1fr; }
  .reminder-form button { width: 100%; }
  .reminder-summary { order: -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 12px; padding: 18px; text-align: left; }
  .reminder-summary > span { grid-row: span 2; font-size: 3rem; }
  .reminder-summary h3 { margin: 0; }
  .reminder-summary p { grid-column: 1 / -1; }
  .reminder-summary button { grid-column: 1 / -1; justify-self: start; }
  .goal-overview { gap: 16px; padding: 18px; }
  .goal-ring { width: 74px; height: 74px; }
  .goal-ring::before { width: 56px; height: 56px; }
  .goal-overview h2 { font-size: 1.2rem; }
  .goal-grid { grid-template-columns: 1fr; }
  .demo-toast { right: 16px; bottom: 16px; }
}

@media (max-width: 410px) {
  .material-grid, .board-canvas { grid-template-columns: 1fr; }
  .demo-page__header { display: block; }
  .demo-page__header .demo-primary { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
