.ro-hgt{--ro-accent:#2563eb;--ro-bg:#f6f8fc;--ro-card:#fff;--ro-text:#172033;--ro-muted:#64748b;--ro-border:#e2e8f0;color:var(--ro-text);background:var(--ro-bg);padding:clamp(14px,3vw,30px);border-radius:24px;font:inherit;line-height:1.45;box-sizing:border-box}.ro-hgt *{box-sizing:border-box}.ro-hgt.dark{--ro-bg:#101827;--ro-card:#182235;--ro-text:#f1f5f9;--ro-muted:#b6c2d3;--ro-border:#334155}.ro-hgt-head,.ro-hgt-panel-head,.ro-hgt-actions,.ro-hgt-modal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.ro-hgt-head{margin-bottom:22px;align-items:flex-start}.ro-hgt-kicker{font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--ro-accent);margin-bottom:8px}.ro-hgt h2{font-size:clamp(25px,4vw,36px);line-height:1.15;margin:0 0 8px;color:var(--ro-text)}.ro-hgt h3{font-size:17px;margin:0 0 4px;color:var(--ro-text)}.ro-hgt p{margin:0;color:var(--ro-muted);font-size:13px}.ro-hgt-btn,.ro-hgt-icon-btn{border:1px solid var(--ro-accent);background:var(--ro-accent);color:#fff!important;padding:10px 14px;border-radius:10px;font-weight:700;cursor:pointer;transition:.18s ease;font-size:13px}.ro-hgt-btn:hover,.ro-hgt-icon-btn:hover{filter:brightness(.9);color:#fff!important;transform:translateY(-1px)}.ro-hgt-btn.ghost{background:transparent;color:var(--ro-text)!important;border-color:var(--ro-border)}.ro-hgt-btn.ghost:hover{background:var(--ro-text);color:var(--ro-card)!important}.ro-hgt-icon-btn{padding:4px 11px;font-size:21px}.ro-hgt-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.ro-hgt-stat,.ro-hgt-panel{background:var(--ro-card);border:1px solid var(--ro-border);border-radius:16px;padding:18px;min-width:0}.ro-hgt-stat span,.ro-hgt-stat small{display:block;color:var(--ro-muted);font-size:12px}.ro-hgt-stat strong{display:block;font-size:27px;margin:6px 0;color:var(--ro-text)}.ro-hgt-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:16px}.ro-hgt-main,.ro-hgt-side{display:grid;align-content:start;gap:16px;min-width:0}.ro-hgt-panel-head{margin-bottom:15px}.ro-hgt-habit{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--ro-border)}.ro-hgt-check{width:23px;height:23px;accent-color:var(--ro-accent);cursor:pointer}.ro-hgt-habit strong{display:block;font-size:14px}.ro-hgt-habit small{display:block;color:var(--ro-muted);font-size:12px;margin-top:3px}.ro-hgt-habit.done strong{text-decoration:line-through;opacity:.7}.ro-hgt-habit-actions{display:flex;gap:6px}.ro-hgt-mini{border:1px solid var(--ro-border);background:transparent;color:var(--ro-text);border-radius:8px;padding:6px 8px;cursor:pointer}.ro-hgt-mini:hover{border-color:var(--ro-accent)}.ro-hgt-empty{color:var(--ro-muted);font-size:13px;padding:12px 0}.ro-hgt-empty[hidden]{display:none}.ro-hgt-chart{height:160px;display:flex;align-items:end;justify-content:space-around;gap:10px;padding:10px 4px 0}.ro-hgt-bar-wrap{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:7px;min-width:0}.ro-hgt-bar{width:min(34px,75%);min-height:3px;background:linear-gradient(180deg,var(--ro-accent),#60a5fa);border-radius:8px 8px 3px 3px;position:relative}.ro-hgt-bar-wrap span{font-size:11px;color:var(--ro-muted)}.ro-hgt-bar-wrap small{font-size:10px;color:var(--ro-muted)}.ro-hgt-month{font-size:12px;color:var(--ro-muted)}.ro-hgt-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.ro-hgt-day{aspect-ratio:1;border-radius:7px;background:var(--ro-bg);display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ro-muted);border:1px solid transparent}.ro-hgt-day.head{background:transparent;font-weight:700}.ro-hgt-day.active{background:color-mix(in srgb,var(--ro-accent) 22%,var(--ro-card));border-color:color-mix(in srgb,var(--ro-accent) 35%,transparent);color:var(--ro-text)}.ro-hgt-day.today{outline:2px solid var(--ro-accent);outline-offset:-2px}.ro-hgt-goal{padding:12px 0;border-top:1px solid var(--ro-border)}.ro-hgt-goal-row{display:flex;justify-content:space-between;gap:10px;font-size:13px}.ro-hgt-goal-row strong{font-weight:700}.ro-hgt-goal-row small{color:var(--ro-muted)}.ro-hgt-progress{height:7px;background:var(--ro-bg);border-radius:99px;overflow:hidden;margin:10px 0}.ro-hgt-progress span{display:block;height:100%;background:var(--ro-accent);border-radius:99px}.ro-hgt-goal-actions{display:flex;gap:6px}.ro-hgt-muted{margin:4px 0 12px!important}.ro-hgt-reminder{display:grid;gap:9px}.ro-hgt-reminder label,.ro-hgt-modal label{display:grid;gap:6px;font-size:12px;font-weight:700;color:var(--ro-text)}.ro-hgt input,.ro-hgt select{width:100%;border:1px solid var(--ro-border);border-radius:9px;padding:10px;background:var(--ro-card);color:var(--ro-text);font:inherit}.ro-hgt .full{width:100%}.ro-hgt-reminder small{color:var(--ro-muted);font-size:11px}.ro-hgt-tip{background:linear-gradient(135deg,color-mix(in srgb,var(--ro-accent) 10%,var(--ro-card)),var(--ro-card))}.ro-hgt-tip strong{display:block;margin-bottom:5px}.ro-hgt-footer{margin-top:18px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--ro-muted)}.ro-hgt-footer a{color:var(--ro-accent)}.ro-hgt-modal{position:fixed;inset:0;background:#0f172acc;z-index:999999;display:grid;place-items:center;padding:18px}.ro-hgt-modal[hidden]{display:none}.ro-hgt-modal-card{background:var(--ro-card);color:var(--ro-text);border-radius:18px;padding:22px;width:min(100%,480px);box-shadow:0 25px 80px #0003}.ro-hgt-modal-card form,.ro-hgt-modal form{width:100%}.ro-hgt-modal-card>label,.ro-hgt-modal-card .ro-hgt-form-grid{margin:14px 0}.ro-hgt-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ro-hgt-modal-actions{justify-content:flex-end;margin-top:18px}.ro-hgt-modal-card .ro-hgt-panel-head h3{margin:0}.ro-hgt .ro-hgt-modal-card .ro-hgt-icon-btn{line-height:1.2}@media(max-width:760px){.ro-hgt-layout{grid-template-columns:1fr}.ro-hgt-head{flex-direction:column}.ro-hgt-actions{width:100%;flex-wrap:wrap}.ro-hgt-stats{gap:8px}.ro-hgt-stat{padding:12px}.ro-hgt-stat strong{font-size:22px}.ro-hgt-stat span,.ro-hgt-stat small{font-size:10px}.ro-hgt-panel{padding:14px}}@media(max-width:420px){.ro-hgt-stats{grid-template-columns:1fr}.ro-hgt-form-grid{grid-template-columns:1fr}.ro-hgt-habit{gap:8px}.ro-hgt-habit-actions{flex-direction:column}}
@media print{body *{visibility:hidden!important}.ro-hgt,.ro-hgt *{visibility:visible!important}.ro-hgt{position:absolute;left:0;top:0;width:100%;background:#fff!important;color:#111!important;padding:0}.ro-hgt .ro-hgt-actions,.ro-hgt .ro-hgt-icon-btn,.ro-hgt .ro-hgt-mini,.ro-hgt .ro-hgt-reminder,.ro-hgt .ro-hgt-modal{display:none!important}.ro-hgt-panel,.ro-hgt-stat{break-inside:avoid;border:1px solid #ddd!important;background:#fff!important;color:#111!important}.ro-hgt p,.ro-hgt small,.ro-hgt span{color:#444!important}.ro-hgt-layout{grid-template-columns:1.5fr 1fr}.ro-hgt-footer{margin-top:20px}}
