:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#1b3230;background:#f6f8f7;font-synthesis:none}
*{box-sizing:border-box}body{--bg:#f6f8f7;--panel:#fff;--text:#1b3230;--sub:#687c79;--border:#e5eeeb;--primary:#176a5e;--primary-hover:#115349;--soft:#e8f5f0;--input:#fff;--shadow:0 16px 46px rgba(24,66,59,.045);background:var(--bg);color:var(--text);margin:0;min-height:100vh;transition:background .15s,color .15s}
body[data-theme=dark]{--bg:#101c1c;--panel:#1a2929;--text:#eef6f3;--sub:#9eb0ac;--border:#344543;--primary:#69c4a9;--primary-hover:#8ddcc3;--soft:#223e38;--input:#1f3030;--shadow:0 15px 48px rgba(0,0,0,.16)}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}
a{color:var(--primary)}a:hover{text-decoration:none}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.052em;line-height:1.13}h2{letter-spacing:-.035em}h3{letter-spacing:-.02em}p{line-height:1.62}
[hidden]{display:none!important}:focus-visible{outline:3px solid #8dbfc3;outline-offset:3px}
.site-header{max-width:1320px;margin:auto;padding:25px 40px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:21px;letter-spacing:-.06em;color:var(--text);text-decoration:none;white-space:nowrap}
.brand-symbol{width:37px;height:37px;border-radius:12px;background:#176a5e;display:grid;place-items:center}
.brand-symbol span{width:19px;height:15px;border-bottom:3px solid #fff;border-left:3px solid #fff;transform:rotate(-45deg) translateY(-2px);border-radius:2px}
.brand-accent{color:var(--primary)}.site-tagline{font-size:13px;color:var(--sub);margin-top:2px}.header-account{margin-left:auto;display:flex;align-items:center;gap:15px;font-size:13px;color:var(--sub)}
.link-button{border:0;background:none;color:var(--primary);font-weight:650;padding:6px 2px}.link-button:hover{text-decoration:underline}
.auth-layout{max-width:1190px;margin:55px auto 110px;padding:0 34px;display:grid;grid-template-columns:1.09fr .91fr;gap:80px;align-items:center}
.auth-intro{padding:12px 0 35px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;color:var(--primary);font-size:11px;font-weight:800;margin-bottom:13px}
.auth-intro h1{font-size:clamp(38px,4.2vw,64px);max-width:660px;margin-bottom:24px}.auth-intro>p{font-size:17px;line-height:1.8;color:var(--sub);max-width:530px}
.auth-benefits{display:grid;gap:14px;margin:31px 0;font-size:14px;font-weight:600}.benefit-icon{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--soft);color:var(--primary);font-size:12px;margin-right:9px}
.intro-art{height:210px;background:linear-gradient(120deg,#dcece3,#c9e6df 65%,#e8f2e9);border-radius:25px;margin-top:35px;overflow:hidden;padding:25px 32px;display:flex;flex-direction:column;justify-content:center}
.intro-bars{height:100px;display:flex;align-items:flex-end;gap:12px}.intro-bars i{display:block;flex:1;background:#2b8774;border-radius:8px 8px 3px 3px;height:40%;opacity:.4}.intro-bars i:nth-child(2){height:61%;opacity:.55}.intro-bars i:nth-child(3){height:49%}.intro-bars i:nth-child(4){height:77%;opacity:.7}.intro-bars i:nth-child(5){height:55%;opacity:.55}.intro-bars i:nth-child(6){height:84%;opacity:.76}.intro-bars i:nth-child(7){height:59%}.intro-bars i:nth-child(8){height:74%;opacity:.8}.intro-bars i:nth-child(9){height:92%;opacity:.9}.intro-bars i:nth-child(10){height:71%;opacity:.6}
.intro-caption{color:#235f52;font-size:13px;font-weight:700;margin-top:15px}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:23px;box-shadow:var(--shadow)}
.auth-card{padding:38px 38px 42px;max-width:470px;width:100%;justify-self:center}
.auth-switch{display:flex;background:var(--bg);padding:5px;border-radius:13px;gap:5px;margin-bottom:37px}.auth-switch button{border:0;background:transparent;color:var(--sub);font-weight:700;font-size:13px;padding:12px 8px;flex:1;border-radius:10px}.auth-switch button.active{background:var(--panel);color:var(--text);box-shadow:0 2px 10px #0000000b}
.auth-form{display:flex;flex-direction:column;gap:11px}.auth-form h2{font-size:28px;margin:0}.auth-form>p.muted{margin:0 0 19px}.muted{color:var(--sub)}.tiny{font-size:12px}.fine-print,.hint{font-size:12px;line-height:1.65;color:var(--sub)}.fine-print{margin:7px 0 0}
label{font-size:13px;font-weight:700}input:not([type=checkbox]):not([type=range]),textarea,select{background:var(--input);color:var(--text);border:1px solid var(--border);border-radius:11px;padding:12px 14px;width:100%;min-width:0;outline:none}
input:focus,textarea:focus,select:focus{border-color:#6cb99f;box-shadow:0 0 0 3px rgba(84,174,145,.13)}textarea{resize:vertical}
input::placeholder,textarea::placeholder{color:#93a6a1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:11px;padding:12px 17px;font-weight:750;border:1px solid transparent;min-height:44px;transition:background .15s,transform .15s;text-decoration:none;font-size:13px}
.btn:active{transform:translateY(1px)}.btn.primary{background:var(--primary);color:var(--panel)}.btn.primary:hover{background:var(--primary-hover)}.btn.secondary{background:var(--panel);border-color:var(--border);color:var(--text)}.btn.secondary:hover{background:var(--soft)}.btn.danger{background:#fff0ec;color:#a13228;border-color:#f3c6bd}.full{width:100%;margin-top:18px}
.check-row{font-size:12px;font-weight:500;display:flex;align-items:flex-start;gap:9px;line-height:1.5;margin-top:8px}.check-row input{margin-top:3px;flex-shrink:0}.small-link{align-self:center;font-size:12px;margin-top:6px}
.app-container{max-width:1260px;margin:25px auto 100px;padding:0 34px}.app-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:30px}.app-heading h1{font-size:clamp(34px,3vw,47px);margin:0 0 11px}.app-heading p{margin:0;font-size:14px}.heading-dot{color:#6dae94}.date-badge{padding:12px 20px;border:1px solid var(--border);border-radius:50px;font-size:13px;color:var(--sub);background:var(--panel)}
.tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);margin-bottom:28px;overflow-x:auto}.tabs button{color:var(--sub);background:transparent;border:0;border-bottom:3px solid transparent;font-size:14px;padding:14px 19px 15px;white-space:nowrap;font-weight:700}.tabs button.active{border-color:var(--primary);color:var(--primary)}
.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:22px;align-items:start}.dashboard-side{display:grid;gap:20px}
.entry-panel{padding:33px 36px 37px}.panel-heading{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:27px}.panel-heading h2,.side-panel h2,.large-panel h2{font-size:26px;margin:0}.soft-badge{font-size:11px;font-weight:700;color:var(--primary);background:var(--soft);padding:9px 11px;border-radius:30px;white-space:nowrap}
.entry-panel form{display:grid;gap:11px}.entry-panel label{margin-top:4px}.entry-panel input[type=datetime-local]{width:min(270px,100%)}
.field-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-top:19px}.field-heading h3,h3{font-size:17px;margin:0}.mood-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:2px}
.mood-choice{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;padding:15px 3px 13px;color:var(--sub);background:var(--bg);border:2px solid transparent;border-radius:14px;font-size:10px;font-weight:700;min-height:90px}
.mood-choice .mood-face{border:2px solid currentColor;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;font-size:22px;line-height:1;padding-bottom:3px}
.mood-choice[data-mood="1"]{--mood:#bf7166}.mood-choice[data-mood="2"]{--mood:#c99c6e}.mood-choice[data-mood="3"]{--mood:#779caa}.mood-choice[data-mood="4"]{--mood:#64a48a}.mood-choice[data-mood="5"]{--mood:#348a78}
.mood-choice:hover,.mood-choice.selected{color:var(--mood);background:var(--soft)}.mood-choice.selected{border-color:var(--mood)}
.section-divider{height:1px;background:var(--border);margin:17px 0}
.sliders{display:grid;gap:14px}.slider-row{display:grid;gap:10px}.slider-row>span{display:flex;justify-content:space-between;gap:12px;align-items:center}.slider-row output{font-size:12px;color:var(--primary);background:var(--soft);width:26px;height:24px;border-radius:7px;display:grid;place-items:center}
input[type=range]{accent-color:var(--primary);height:6px;width:100%;cursor:pointer}.hint{margin:3px 0 0}
.tag-options{display:flex;flex-wrap:wrap;gap:8px}.tag-button{background:var(--bg);border:1px solid var(--border);border-radius:20px;color:var(--sub);padding:9px 12px;font-size:12px;font-weight:650}.tag-button.selected{background:var(--soft);border-color:#7bbda6;color:var(--primary)}
.custom-tag{display:flex;gap:8px}.custom-tag .btn{min-height:41px;padding:9px 14px}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:10px}.two-fields>div{display:grid;gap:9px}
.entry-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:15px}.entry-actions .muted{margin-left:auto}
.side-panel{padding:30px}.summary-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 12px}.stat{background:var(--bg);border-radius:12px;padding:14px}.stat-value{font-size:25px;font-weight:800;letter-spacing:-.04em}.stat-label{font-size:11px;color:var(--sub);margin-top:5px}
.chart-wrap{width:100%;margin-top:22px}.chart-wrap svg{width:100%;height:auto;min-height:120px;overflow:visible}.chart-empty{padding:50px 0;text-align:center;font-size:13px;color:var(--sub)}
.note-panel{background:#e3f0eb;color:#315e52;padding:30px;box-shadow:none;border-color:#d4e9e0}.note-panel h3{line-height:1.5;margin-bottom:10px}.note-panel p{font-size:13px;line-height:1.7;margin-bottom:0}.note-decor{font-size:35px;opacity:.6;margin-bottom:22px}
.large-panel{padding:32px 36px 42px}.month-filter{display:flex;align-items:center;gap:8px;color:var(--sub);font-size:12px}.month-filter input{width:165px!important}
.mood-calendar{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:8px;margin:15px 0 12px}.calendar-cell{min-width:0;aspect-ratio:1;border-radius:9px;background:var(--bg);display:flex;align-items:center;justify-content:center;color:var(--sub);font-size:11px;font-weight:700}.calendar-cell.level-1,.calendar-key .level-1{background:#e8aaa4;color:#753a32}.calendar-cell.level-2,.calendar-key .level-2{background:#f1d2a9;color:#7d5a31}.calendar-cell.level-3,.calendar-key .level-3{background:#c1dce4;color:#395c68}.calendar-cell.level-4,.calendar-key .level-4{background:#b2dfc7;color:#33644b}.calendar-cell.level-5,.calendar-key .level-5{background:#79c7b0;color:#184f41}
.calendar-key{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:11px;color:var(--sub);margin-bottom:30px}.calendar-key i{height:12px;width:12px;border-radius:3px}
.history-list{display:grid;gap:12px;margin:17px 0}.history-item{background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:17px 19px}.history-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-date{font-weight:750;font-size:13px}.history-mood{display:inline-block;font-size:12px;border-radius:20px;padding:6px 10px;background:var(--soft);color:var(--primary);font-weight:700}
.history-note{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}.history-detail{font-size:12px;color:var(--sub);line-height:1.6;margin-top:9px}.history-actions{display:flex;gap:18px;margin-top:13px}.history-actions button{border:0;background:none;color:var(--primary);padding:0;font-size:12px;font-weight:750}.history-actions button.delete-link{color:#b36056}
.empty{border:1px dashed var(--border);padding:35px 20px;text-align:center;border-radius:13px;color:var(--sub);font-size:13px}
.range-selector{display:flex;border:1px solid var(--border);border-radius:10px;padding:3px;gap:2px}.range-selector button{font-size:12px;font-weight:700;background:transparent;border:0;color:var(--sub);border-radius:8px;padding:9px 11px}.range-selector button.active{background:var(--soft);color:var(--primary)}
.insight-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.insight-numbers .stat{padding:19px}.insight-numbers .stat-value{font-size:29px}.large-chart{margin:15px 0 25px}.insights-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.insight-box{border:1px solid var(--border);border-radius:15px;padding:21px}.insight-box h3{margin-bottom:18px}.insight-box p{font-size:12px;color:var(--sub);margin:0}.insight-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;font-size:13px}.insight-disclaimer{margin-top:20px}
.settings-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:20px;align-items:start}.settings-grid p{font-size:13px}.button-row{display:flex;flex-wrap:wrap;gap:10px}.theme-select{max-width:260px;margin-top:10px}.delete-form{display:grid;gap:12px;max-width:380px;margin-top:13px}.delete-form button{justify-self:start}
.footer{padding:30px 15px 45px;text-align:center;color:var(--sub);font-size:12px}.footer span{margin:0 8px}.toast{position:fixed;bottom:28px;right:28px;z-index:20;background:var(--text);color:var(--panel);padding:14px 21px;border-radius:13px;max-width:min(400px,calc(100vw - 36px));box-shadow:0 9px 35px #0002;font-size:13px}
.recovery-dialog{border:1px solid var(--border);border-radius:23px;background:var(--panel);color:var(--text);width:min(480px,calc(100% - 24px));padding:35px;box-shadow:0 40px 100px #0003}.recovery-dialog::backdrop{background:#07161299}.recovery-dialog p{font-size:13px;color:var(--sub)}.recovery-dialog h2{font-size:26px}.recovery-dialog label{display:block;margin:23px 0 8px}.recovery-dialog textarea{font-family:monospace;font-size:14px;overflow-wrap:anywhere}.dialog-symbol{font-size:35px;color:var(--primary);margin-bottom:15px}
.legal{max-width:760px;padding:65px 30px;margin:auto}.legal h1{font-size:40px;margin-top:30px}.legal p{line-height:1.85;font-size:15px}
@media(max-width:980px){.auth-layout{gap:35px}.dashboard-layout{grid-template-columns:minmax(0,1fr) 300px}.site-header{padding:24px 30px}.app-container{padding:0 24px}.entry-panel{padding:26px}.settings-grid{grid-template-columns:1fr}.mood-options{gap:5px}.mood-choice{font-size:9px}}
@media(max-width:760px){.site-header{padding:17px 19px}.site-tagline{display:none}.auth-layout{grid-template-columns:1fr;margin:24px auto 60px;gap:22px;padding:0 18px}.auth-intro{padding:0}.auth-intro h1{font-size:35px}.auth-intro>p{font-size:14px}.intro-art{display:none}.auth-benefits{margin-bottom:5px;font-size:12px}.auth-card{padding:27px 22px}.app-container{padding:0 13px;margin-top:25px}.app-heading{padding:0 8px}.app-heading h1{font-size:32px}.date-badge{display:none}.tabs{gap:0;justify-content:space-between}.tabs button{padding:12px 8px;font-size:12px}.dashboard-layout{grid-template-columns:1fr}.dashboard-side{grid-template-columns:1fr}.entry-panel,.large-panel,.side-panel{padding:21px 17px;border-radius:18px}.panel-heading h2,.large-panel h2,.side-panel h2{font-size:23px}.mood-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.mood-choice{padding:12px 2px;font-size:9px;min-height:82px;gap:8px}.mood-choice .mood-face{width:30px;height:30px;font-size:20px}.two-fields{grid-template-columns:1fr}.mood-calendar{grid-template-columns:repeat(7,minmax(0,1fr))}.insights-grid{grid-template-columns:1fr}.insight-numbers{gap:5px}.insight-numbers .stat{padding:10px}.insight-numbers .stat-value{font-size:22px}.month-filter{flex-wrap:wrap;justify-content:end}.month-filter input{width:135px!important}.entry-actions .muted{margin-left:0}.footer{line-height:1.8}}
@media print{body{background:white!important;color:black!important}.site-header,.tabs,.footer,.entry-actions,.button-row,.delete-form,.auth-layout,.note-panel{display:none!important}.tab-view{display:none!important}.app-heading{margin:0 0 25px}.app-container{max-width:100%;padding:0}.panel{box-shadow:none;border:0}.large-panel{padding:5px}#view-insights{display:block!important}.insights-grid{grid-template-columns:1fr 1fr}.chart-wrap{break-inside:avoid}}
