@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #202a27;
  --muted: #75817a;
  --line: #e7ebe5;
  --paper: #ffffff;
  --canvas: #f3f5ef;
  --green: #3e755f;
  --deep-green: #244b3d;
  --mint: #dce9dc;
  --coral: #e78670;
  --yellow: #eccb67;
  font-family: 'DM Sans', 'Avenir Next', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.login-page { background: #f3f5ef; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 0.94fr) minmax(500px, 1.06fr); }
.login-intro { position: relative; overflow: hidden; min-height: 100vh; padding: 42px 8.2%; display: flex; flex-direction: column; justify-content: space-between; background: #244b3d; color: #f8f8ef; }
.wordmark, .sidebar-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font: 800 19px 'Manrope', sans-serif; letter-spacing: 0; color: inherit; text-decoration: none; position: relative; z-index: 1; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px 9px 9px 3px; background: #e5cc74; color: #284b3d; font: 800 17px 'Manrope', sans-serif; }
.intro-copy { position: relative; z-index: 1; margin-top: -8vh; }
.eyebrow { margin: 0 0 14px; color: #849088; font: 700 10px 'DM Sans', sans-serif; letter-spacing: 1.3px; }
.login-intro .eyebrow { color: #b8c9bb; }
.intro-copy h1 { margin: 0; font: 600 clamp(48px, 5vw, 72px)/1.03 'Manrope', sans-serif; letter-spacing: 0; }
.intro-copy h1 span { color: #e5cc74; }
.intro-note { max-width: 310px; margin: 24px 0 0; color: #c0cec2; font-size: 14px; line-height: 1.7; }
.intro-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #bdcbbf; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b6d099; box-shadow: 0 0 0 4px #ffffff12; }
.intro-orbit { position: absolute; border: 1px solid #ffffff11; border-radius: 50%; pointer-events: none; }
.orbit-one { width: 390px; height: 390px; right: -222px; top: 25%; }
.orbit-two { width: 560px; height: 560px; right: -305px; top: 16%; }
.login-side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px 40px 22px; }
.login-card { width: min(100%, 390px); animation: rise-in .45s ease-out both; }
.mobile-wordmark { display: none; color: var(--ink); }
.login-card > .eyebrow { margin-bottom: 8px; color: var(--green); }
.login-card h2 { margin: 0; font: 700 30px/1.2 'Manrope', sans-serif; letter-spacing: 0; }
.form-subtitle { margin: 9px 0 31px; color: var(--muted); font-size: 14px; }
.login-form { display: flex; flex-direction: column; }
.login-form > label, .label-row label { margin: 0 0 9px; color: #36413b; font-size: 12px; font-weight: 700; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; }
.text-link { color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.input-wrap { height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid #dfe5dc; border-radius: 5px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.input-wrap:focus-within { border-color: #61917a; box-shadow: 0 0 0 3px #3e755f17; }
.input-icon { color: #86938a; font-size: 15px; font-weight: 600; }
.lock-icon { font-size: 17px; }
.input-wrap input { min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.input-wrap input::placeholder { color: #a8b0aa; }
.show-password { flex: none; padding: 5px 0 5px 8px; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.remember-row { display: flex; align-items: center; gap: 9px; width: max-content; margin-top: 19px; color: #5d6962; font-size: 12px; cursor: pointer; }
.remember-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #cbd4cb; border-radius: 3px; background: white; }
.remember-row input:checked + .custom-check { border-color: var(--green); background: var(--green); }
.remember-row input:checked + .custom-check::after { content: ''; width: 7px; height: 4px; border-bottom: 1.5px solid white; border-left: 1.5px solid white; transform: rotate(-45deg) translateY(-1px); }
.remember-row input:focus-visible + .custom-check { outline: 3px solid #3e755f33; }
.form-message { min-height: 18px; margin: 13px 0 0; color: #b64032; font-size: 12px; }
.primary-button { height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 18px; border: 0; border-radius: 5px; background: var(--deep-green); color: white; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s, transform .18s; }
.primary-button:hover { background: #32634e; transform: translateY(-1px); }
.primary-button:disabled { opacity: .7; cursor: wait; transform: none; }
.button-arrow { font-size: 18px; font-weight: 400; }
.login-footnote { margin: 21px 0 0; color: #909991; font-size: 10px; line-height: 1.6; }
.login-footnote strong { color: #68766d; font-weight: 600; }
.login-footer { width: min(100%, 390px); display: flex; justify-content: space-between; margin-top: auto; padding-top: 40px; color: #9aa39d; font-size: 10px; }

.dashboard-page { background: var(--canvas); }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { min-height: 100vh; background: #fff; border-right: 1px solid var(--line); }
.sidebar-inner { min-height: 100vh; display: flex; flex-direction: column; padding: 26px 16px 15px; }
.sidebar-brand { margin: 0 0 30px 8px; font-size: 17px; }
.sidebar-brand .brand-mark { width: 29px; height: 29px; font-size: 16px; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.workspace-avatar, .profile-avatar { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 5px; background: #e7eee4; color: #48735e; font: 700 14px 'Manrope', sans-serif; }
.workspace-copy, .profile-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.workspace-copy strong, .profile-copy strong { overflow: hidden; color: #2b3630; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-copy small, .profile-copy small { overflow: hidden; color: #8c968f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.switcher-caret { color: #7b887e; font-size: 18px; }
.nav-label { margin: 29px 8px 10px; color: #98a199; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.nav-label-spaced { margin-top: 28px; }
.side-nav { display: grid; gap: 3px; }
.nav-item { width: 100%; min-height: 39px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: #69766e; text-align: left; font-size: 12px; cursor: pointer; transition: background .15s, color .15s; }
.nav-item:hover { background: #f5f7f2; color: #34483b; }
.nav-item.is-active { background: #eaf1e9; color: #35634f; font-weight: 700; }
.nav-icon { width: 17px; color: #89958d; text-align: center; font-size: 15px; }
.nav-item.is-active .nav-icon { color: #3e755f; }
.nav-count { margin-left: auto; color: #9aa39c; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-bottom > .nav-item { margin-bottom: 13px; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 13px 4px 0; border-top: 1px solid var(--line); }
.profile-avatar { background: #f4e7d9; color: #9b674e; font-size: 10px; }
.more-button { width: 25px; height: 30px; border: 0; background: transparent; color: #828e86; font-size: 18px; cursor: pointer; }
.module-panel { min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #8a958e; font-size: 11px; }
.breadcrumbs strong { color: #35433a; font-weight: 600; }
.crumb-slash { color: #c0c8c1; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.today-label { color: #7e8982; font-size: 11px; }
.icon-button { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #65736a; font-size: 18px; cursor: pointer; }
.icon-button:hover { background: #f1f4ef; }
.notification-button i { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: var(--coral); }
.logout-button { display: flex; align-items: center; gap: 6px; padding: 7px 0 7px 10px; border: 0; border-left: 1px solid var(--line); background: transparent; color: #65736a; font-size: 11px; cursor: pointer; }
.logout-button:hover { color: var(--deep-green); }
.logout-button span { font-size: 15px; }
.dashboard-content { width: min(100%, 1320px); margin: 0 auto; padding: 40px 38px 22px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.welcome-row .eyebrow { margin-bottom: 8px; color: #7a8b7d; }
.welcome-row h1 { margin: 0; font: 700 26px/1.25 'Manrope', sans-serif; letter-spacing: 0; }
.sun-mark { color: #d2a83c; font-size: 18px; vertical-align: 3px; }
.welcome-subtitle { margin: 8px 0 0; color: #818c84; font-size: 12px; }
.create-button { display: flex; align-items: center; gap: 9px; height: 37px; padding: 0 13px; border: 0; border-radius: 4px; background: var(--deep-green); color: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.create-button:hover { background: #32634e; }
.create-button span { font-size: 18px; font-weight: 400; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #dfe5dc; border-bottom: 1px solid #dfe5dc; background: #fff; }
.stat-block { min-height: 153px; padding: 18px 22px 15px; border-right: 1px solid var(--line); }
.stat-block:last-child { border-right: 0; }
.stat-heading { display: flex; align-items: center; justify-content: space-between; color: #748078; font-size: 11px; }
.stat-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 5px; font-size: 14px; }
.green-icon { background: #e8f0e7; color: #4b8062; }
.coral-icon { background: #fbebe6; color: #ce7763; }
.yellow-icon { background: #f8f1dc; color: #b29134; }
.stat-block > strong { display: block; margin-top: 10px; font: 700 30px/1 'Manrope', sans-serif; }
.stat-unit { margin-left: 2px; color: #77847b; font-size: 17px; }
.stat-foot { margin-top: 9px; color: #909a92; font-size: 10px; }
.trend-up { margin-right: 4px; color: #4c8964; font-weight: 700; }
.trend-neutral { margin-right: 4px; color: #ba8650; font-weight: 700; }
.capacity-track { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #edf0eb; }
.capacity-track span { display: block; width: 86%; height: 100%; border-radius: inherit; background: #779b74; }
.capacity-track + .stat-foot { margin-top: 7px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 34px; margin-top: 34px; }
.content-section { min-width: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.section-heading h2 { margin: 0; font: 700 17px/1.3 'Manrope', sans-serif; }
.quiet-button { display: flex; align-items: center; gap: 8px; padding: 5px 0; border: 0; background: transparent; color: #527763; font-size: 10px; font-weight: 700; cursor: pointer; }
.quiet-button:hover { color: #244b3d; }
.quiet-button span { font-size: 15px; }
.project-list, .task-list { border-top: 1px solid #dfe5dc; }
.project-row { min-height: 74px; display: grid; grid-template-columns: 34px minmax(120px, 1fr) minmax(84px, 110px) 42px; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.project-color { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 5px; font: 700 12px 'Manrope', sans-serif; }
.project-green { background: #e2eee5; color: #4c8061; }
.project-coral { background: #fae7e0; color: #c87560; }
.project-blue { background: #e3ebee; color: #64808c; }
.project-info, .task-row > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.project-info strong, .task-row strong { overflow: hidden; color: #364239; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.project-info span, .task-row div > span { overflow: hidden; color: #8a958e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.project-info span b { padding: 0 3px; color: #b8c0ba; }
.project-progress { display: flex; align-items: center; gap: 6px; }
.progress-line { flex: 1; height: 4px; overflow: hidden; border-radius: 3px; background: #edf0eb; }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: #7fa185; }
.project-progress small { color: #819087; font-size: 9px; }
.project-date { color: #8f9992; text-align: right; font-size: 9px; }
.task-row { min-height: 63px; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.task-check { width: 15px; height: 15px; border: 1px solid #c8d2c8; border-radius: 50%; }
.task-row time { color: #828e85; font-size: 9px; }
.task-row time.due-soon { color: #c3745d; font-weight: 700; }
.dashboard-footer { display: flex; justify-content: space-between; margin-top: 49px; padding-top: 14px; border-top: 1px solid #e2e7e0; color: #9aa39c; font-size: 9px; }
.dashboard-footer i { padding: 0 3px; font-style: normal; color: #bdc5be; }
.module-placeholder { grid-column: 1 / -1; min-height: 310px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 34px; border-top: 1px solid #dfe5dc; border-bottom: 1px solid #dfe5dc; background: #fff; }
.placeholder-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 24px; border-radius: 6px; background: #e8f0e7; color: #4b8062; font-size: 18px; }
.module-placeholder h2 { margin: 0; font: 700 21px 'Manrope', sans-serif; }
.module-placeholder > p:last-child { max-width: 420px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.promo-embed { width: 100%; min-width: 0; }
.promo-embed iframe { display: block; width: 100%; min-height: 700px; border: 0; background: #f5f5f5; }
.promo-embed #wobbler-frame { background: #f2f3f5; }
@keyframes rise-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(300px, .8fr) minmax(430px, 1.2fr); }
  .login-intro { padding-left: 7%; padding-right: 7%; }
  .intro-copy h1 { font-size: 54px; }
  .dashboard-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .topbar { padding: 0 24px; }
  .dashboard-content { padding: 34px 24px 20px; }
  .dashboard-columns { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 650px) {
  .login-layout { min-height: 100svh; display: block; }
  .login-intro { display: none; }
  .login-side { min-height: 100svh; padding: 28px 24px 20px; }
  .mobile-wordmark { display: inline-flex; margin-bottom: 44px; font-size: 17px; }
  .login-card { width: min(100%, 390px); }
  .login-card h2 { font-size: 27px; }
  .form-subtitle { margin-bottom: 27px; }
  .login-footer { width: min(100%, 390px); padding-top: 34px; }
  .dashboard-shell { display: block; }
  .sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-inner { min-height: auto; padding: 12px 14px 10px; }
  .sidebar-brand { margin: 0 0 11px 2px; }
  .workspace-switcher, .nav-label, .sidebar-bottom { display: none; }
  .sidebar-inner > .side-nav + .nav-label { display: none; }
  .side-nav { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 1px; }
  .nav-item { flex: none; width: auto; min-height: 35px; gap: 7px; padding: 0 9px; white-space: nowrap; }
  .nav-icon { width: auto; }
  .nav-count { margin-left: 0; }
  .topbar { height: 52px; padding: 0 16px; }
  .today-label, .notification-button { display: none; }
  .topbar-actions { gap: 12px; }
  .dashboard-content { padding: 27px 17px 18px; }
  .welcome-row { align-items: flex-start; margin-bottom: 22px; }
  .welcome-row h1 { font-size: 22px; }
  .welcome-subtitle { max-width: 270px; line-height: 1.5; }
  .create-button { flex: none; height: 34px; padding: 0 9px; font-size: 10px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-block { min-height: 112px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-block:last-child { border-bottom: 0; }
  .stat-block > strong { margin-top: 5px; font-size: 25px; }
  .stat-foot { margin-top: 5px; }
  .dashboard-columns { margin-top: 26px; }
  .project-row { grid-template-columns: 32px minmax(90px, 1fr) minmax(72px, 90px); gap: 8px; }
  .project-date { display: none; }
  .dashboard-footer { gap: 10px; margin-top: 35px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}