:root {
    color-scheme: light;
    --ink: #10231f;
    --muted: #6e7a76;
    --cream: #f4f3ed;
    --paper: #fffefb;
    --line: #e5e8e3;
    --green: #a8df6d;
    --green-dark: #75b238;
    --orange: #ff8a5b;
    --violet: #8e78e8;
    --blue: #75b9de;
    --shadow: 0 24px 70px rgba(21, 42, 36, .12);
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(117, 178, 56, .35); outline-offset: 3px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Manrope", sans-serif; font-size: 16px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 11px; background: var(--green); transform: rotate(-4deg); box-shadow: inset -5px -5px 0 rgba(16, 35, 31, .1); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--ink); border-radius: 999px; }
.brand-mark::before { width: 5px; height: 15px; left: 10px; top: 9px; transform: rotate(-24deg); }
.brand-mark::after { width: 5px; height: 15px; right: 10px; top: 9px; transform: rotate(24deg); }

.login-page { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(420px, .9fr); background: var(--paper); }
.login-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 46px 56px; background: var(--ink); color: #fff; }
.login-visual::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -250px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.018); }
.login-visual .brand { position: relative; z-index: 1; }
.visual-copy { position: relative; z-index: 1; max-width: 600px; margin: 70px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.visual-copy .eyebrow { color: var(--green); }
.visual-copy h1 { max-width: 650px; margin: 0; font: 700 clamp(42px, 5.2vw, 78px)/1.04 "Manrope", sans-serif; letter-spacing: -.055em; }
.visual-copy p { max-width: 520px; margin: 24px 0 0; color: rgba(255,255,255,.63); font-size: 17px; line-height: 1.7; }
.visual-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.58); font-size: 13px; }
.avatar-stack { display: flex; }
.mini-avatar { width: 32px; height: 32px; display: grid; place-items: center; margin-left: -8px; border: 3px solid var(--ink); border-radius: 50%; color: var(--ink); font-weight: 700; font-size: 10px; }
.mini-avatar:first-child { margin-left: 0; }
.mini-avatar:nth-child(1) { background: var(--orange); }
.mini-avatar:nth-child(2) { background: var(--green); }
.mini-avatar:nth-child(3) { background: var(--blue); }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 54px clamp(28px, 6vw, 92px); background: radial-gradient(circle at 90% 10%, rgba(168,223,109,.19), transparent 24%), var(--paper); }
.login-card { width: 100%; max-width: 420px; }
.login-card .mobile-brand { display: none; margin-bottom: 50px; }
.login-heading h2 { margin: 0; font: 800 clamp(30px, 4vw, 44px)/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.login-heading p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pin-wrap { position: relative; margin-top: 36px; cursor: text; }
.pin-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pin-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pin-slot { height: 68px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: #fff; font: 800 26px/1 "Manrope", sans-serif; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.pin-slot.active { border-color: var(--green-dark); box-shadow: 0 0 0 4px rgba(168,223,109,.16); transform: translateY(-2px); }
.pin-slot.filled::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.pin-slots.shake { animation: shake .32s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.error-message { min-height: 22px; margin: 12px 2px 0; color: #b43b2d; font-size: 13px; font-weight: 600; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.key { min-height: 52px; border: 0; border-radius: 14px; background: #f2f3ef; font: 700 17px/1 "Manrope", sans-serif; cursor: pointer; transition: transform .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.key:hover { background: #e9ece5; }
.key:active { transform: scale(.96); }
.key.blank { visibility: hidden; }
.key svg { width: 20px; height: 20px; }
.login-button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; border: 0; border-radius: 17px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 12px 28px rgba(16,35,31,.18); transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; }
.login-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16,35,31,.24); }
.login-button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.login-button svg { width: 18px; height: 18px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; color: #87908d; font-size: 12px; }
.security-note svg { width: 15px; height: 15px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 32px 24px 24px; background: var(--ink); color: #fff; }
.sidebar .brand { padding: 0 8px; }
.nav-label { margin: 52px 10px 13px; color: rgba(255,255,255,.36); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.side-nav { display: grid; gap: 7px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 0; border-radius: 13px; background: transparent; color: rgba(255,255,255,.58); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-button.active { background: #fff; color: var(--ink); box-shadow: 0 8px 28px rgba(0,0,0,.13); }
.nav-button svg { width: 19px; height: 19px; flex: none; }
.nav-badge { min-width: 22px; margin-left: auto; padding: 3px 6px; border-radius: 999px; background: var(--green); color: var(--ink); font-size: 10px; font-weight: 800; text-align: center; }
.sidebar-spacer { flex: 1; }
.sidebar-tip { margin: 24px 0; padding: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.045); }
.tip-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 10px; background: var(--green); color: var(--ink); }
.tip-icon svg { width: 18px; height: 18px; }
.sidebar-tip strong { display: block; font: 700 13px/1.35 "Manrope", sans-serif; }
.sidebar-tip p { margin: 7px 0 0; color: rgba(255,255,255,.47); font-size: 11px; line-height: 1.5; }
.profile-row { display: flex; align-items: center; gap: 11px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); }
.profile-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--orange); color: var(--ink); font: 800 13px/1 "Manrope", sans-serif; }
.profile-meta { min-width: 0; flex: 1; }
.profile-meta strong { display: block; font-size: 12px; }
.profile-meta span { color: rgba(255,255,255,.42); font-size: 10px; }
.logout-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.45); cursor: pointer; }
.logout-button:hover { background: rgba(255,255,255,.08); color: #fff; }
.logout-button svg { width: 18px; height: 18px; }

.main { min-width: 0; padding: 32px clamp(24px, 4vw, 60px) 54px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.greeting p { margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.greeting h1 { margin: 0; font: 800 clamp(25px, 3vw, 34px)/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-box { width: min(250px, 24vw); height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.65); }
.search-box svg { width: 17px; color: #89928e; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.icon-button { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.65); cursor: pointer; }
.icon-button svg { width: 18px; }
.notification-dot { position: absolute; width: 7px; height: 7px; right: 9px; top: 8px; border: 2px solid var(--cream); border-radius: 50%; background: var(--orange); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr); gap: 20px; margin-top: 32px; }
.hero-card { position: relative; min-height: 255px; overflow: hidden; display: flex; align-items: center; padding: clamp(27px, 4vw, 46px); border-radius: 26px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -74px; top: -105px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 72px rgba(255,255,255,.018); }
.hero-copy { position: relative; z-index: 1; max-width: 390px; }
.hero-copy .eyebrow { margin-bottom: 15px; color: var(--green); }
.hero-copy h2 { margin: 0; font: 700 clamp(25px, 3vw, 38px)/1.13 "Manrope", sans-serif; letter-spacing: -.04em; }
.hero-copy p { margin: 15px 0 24px; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.65; }
.hero-action { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border: 0; border-radius: 12px; background: var(--green); color: var(--ink); font-size: 12px; font-weight: 800; cursor: pointer; }
.hero-action svg { width: 16px; }
.progress-orbit { position: absolute; right: clamp(24px, 5vw, 72px); top: 50%; width: 130px; height: 130px; transform: translateY(-50%); }
.progress-orbit svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-orbit circle { fill: none; stroke-width: 9; }
.progress-track { stroke: rgba(255,255,255,.1); }
.progress-value { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 108.6; }
.progress-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.progress-text strong { font: 800 25px/1 "Manrope", sans-serif; }
.progress-text span { margin-top: 5px; color: rgba(255,255,255,.46); font-size: 9px; text-transform: uppercase; letter-spacing: .11em; }

.focus-card { min-height: 255px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-heading h3 { margin: 0; font: 700 15px/1.3 "Manrope", sans-serif; }
.more-button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f2f3ef; cursor: pointer; }
.more-button svg { width: 17px; }
.focus-time { margin: 18px 0; }
.focus-time strong { display: block; font: 800 clamp(35px, 4vw, 48px)/1 "Manrope", sans-serif; letter-spacing: -.055em; }
.focus-time span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.bar-chart { height: 67px; display: flex; align-items: end; gap: 7px; }
.bar { flex: 1; min-width: 7px; border-radius: 4px 4px 2px 2px; background: #e5e8e2; transition: height .4s ease; }
.bar.active { background: var(--green); }
.days { display: flex; justify-content: space-between; margin-top: 8px; color: #9ca4a0; font-size: 8px; font-weight: 700; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); }
.stat-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; }
.stat-icon svg { width: 19px; }
.stat-card:nth-child(1) .stat-icon { background: #e6f6d5; color: #4e8422; }
.stat-card:nth-child(2) .stat-icon { background: #eee9ff; color: #7159d2; }
.stat-card:nth-child(3) .stat-icon { background: #fff0e8; color: #c95c31; }
.stat-copy strong { display: block; font: 800 19px/1 "Manrope", sans-serif; }
.stat-copy span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 20px; margin-top: 20px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.7); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-header h3 { margin: 0; font: 700 15px/1.3 "Manrope", sans-serif; }
.text-button { border: 0; background: transparent; color: var(--green-dark); font-size: 11px; font-weight: 700; cursor: pointer; }
.task-list { display: grid; gap: 9px; }
.task { display: flex; align-items: center; gap: 13px; min-height: 51px; padding: 9px 12px; border-radius: 14px; transition: background .16s ease; }
.task:hover { background: #f4f5f1; }
.task-check { width: 21px; height: 21px; flex: none; display: grid; place-items: center; border: 1px solid #cdd3cd; border-radius: 7px; background: #fff; cursor: pointer; }
.task-check.done { border-color: var(--green); background: var(--green); }
.task-check svg { width: 13px; opacity: 0; }
.task-check.done svg { opacity: 1; }
.task-copy { min-width: 0; flex: 1; }
.task-copy strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.task-copy strong.done { color: #9aa19e; text-decoration: line-through; }
.task-copy span { display: block; margin-top: 4px; color: #99a09d; font-size: 9px; }
.task-tag { padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tag-work { background: #eee9ff; color: #6f57ca; }
.tag-personal { background: #fff0e8; color: #b85630; }
.tag-health { background: #e5f4fa; color: #337b9f; }

.activity-list { display: grid; gap: 17px; }
.activity { display: flex; gap: 12px; }
.activity-dot { width: 33px; height: 33px; flex: none; display: grid; place-items: center; border-radius: 11px; }
.activity-dot svg { width: 15px; }
.activity:nth-child(1) .activity-dot { background: #e6f6d5; color: #548529; }
.activity:nth-child(2) .activity-dot { background: #eee9ff; color: #7058c9; }
.activity:nth-child(3) .activity-dot { background: #fff0e8; color: #bd5b36; }
.activity-copy strong { display: block; margin-top: 1px; font-size: 11px; line-height: 1.4; }
.activity-copy span { color: #99a09d; font-size: 9px; }

.section-card { margin-top: 32px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.section-intro { max-width: 580px; }
.section-intro h2 { margin: 0; font: 800 clamp(26px, 3vw, 38px)/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.section-intro p { color: var(--muted); line-height: 1.7; }
.empty-illustration { width: 96px; height: 96px; display: grid; place-items: center; margin: 44px auto 20px; border-radius: 30px; background: #e8f5d9; color: #588a2d; transform: rotate(-4deg); }
.empty-illustration svg { width: 42px; height: 42px; }
.empty-copy { max-width: 420px; margin: 0 auto 40px; text-align: center; }
.empty-copy h3 { font: 700 18px/1.3 "Manrope", sans-serif; }
.empty-copy p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
    .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .sidebar { padding-left: 17px; padding-right: 17px; }
    .progress-orbit { width: 110px; height: 110px; right: 28px; }
    .hero-copy { max-width: 330px; }
}
@media (max-width: 880px) {
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; min-height: 100svh; padding: 34px 24px; }
    .login-card { max-width: 390px; }
    .login-card .mobile-brand { display: inline-flex; }
    .app-shell { display: block; padding-bottom: 76px; }
    .sidebar { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 24px; }
    .sidebar .nav-label, .side-nav, .sidebar-tip, .profile-meta, .sidebar-spacer { display: none; }
    .profile-row { padding: 0; border: 0; }
    .profile-avatar { display: none; }
    .main { padding-top: 25px; }
    .mobile-nav { position: fixed; z-index: 20; left: 14px; right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid rgba(255,255,255,.65); border-radius: 19px; background: rgba(16,35,31,.94); box-shadow: 0 18px 45px rgba(16,35,31,.25); backdrop-filter: blur(16px); }
    .mobile-nav .nav-button { justify-content: center; padding: 10px 6px; }
    .mobile-nav .nav-button span, .mobile-nav .nav-badge { display: none; }
    .mobile-nav .nav-button.active { background: var(--green); }
}
@media (max-width: 740px) {
    .search-box { display: none; }
    .dashboard-grid, .content-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(3, 1fr); }
    .progress-orbit { right: 36px; }
}
@media (max-width: 540px) {
    .main { padding: 22px 16px 35px; }
    .sidebar { padding: 16px; }
    .dashboard-grid { margin-top: 24px; }
    .hero-card { min-height: 310px; align-items: flex-start; padding: 28px; }
    .hero-copy { max-width: none; }
    .hero-copy p { max-width: 280px; }
    .progress-orbit { width: 88px; height: 88px; right: 25px; top: auto; bottom: 20px; transform: none; }
    .progress-text strong { font-size: 20px; }
    .stats-row { gap: 8px; }
    .stat-card { display: block; padding: 13px; }
    .stat-icon { width: 35px; height: 35px; margin-bottom: 17px; }
    .stat-copy strong { font-size: 16px; }
    .stat-copy span { font-size: 8px; }
    .panel { padding: 19px 15px; }
    .task-tag { display: none; }
    .login-panel { align-items: flex-start; padding-top: max(32px, env(safe-area-inset-top)); }
    .login-card .mobile-brand { margin-bottom: 34px; }
    .pin-slot { height: 62px; border-radius: 16px; }
    .key { min-height: 49px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

