
/* Большие цели — отдельная вкладка над ежедневными задачами. */
#bg-tabs{display:flex;flex-wrap:wrap;gap:9px;align-items:center;max-width:1160px;margin:12px auto 6px;padding:0 16px}
#bg-tabs button{border:1px solid #d9dccf;background:rgba(250,250,244,.89);color:#40594c;border-radius:13px;padding:11px 14px;font-weight:700;font-size:13px;min-height:43px;box-shadow:0 3px 12px #162d200a}
#bg-tabs button.active{background:#153e3b;color:#f6e6b9;border-color:#56715f;box-shadow:0 3px 14px #102e2930}
#today-goals[hidden],#big-goals[hidden]{display:none!important}
#big-goals.bg-section{box-sizing:border-box;max-width:1160px;padding:18px 16px 24px;margin:0 auto;color:#233a35}
.bg-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 0 15px}
.bg-header h2{font-size:clamp(23px,4vw,29px);margin:4px 0 5px;color:#193c37;letter-spacing:-.5px}
.bg-header p{font-size:13px;line-height:1.5;color:#697973;max-width:510px;margin:0}
.bg-eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:#907b50}
.bg-primary{background:#214b43!important;color:#fff5dc!important;border:1px solid #466d5d!important;padding:11px 15px;border-radius:12px;font-weight:750;font-size:13px;cursor:pointer;min-height:42px}
.bg-overview{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.bg-overview span{flex:1;min-width:105px;padding:11px 13px;background:#f5f5eb;border:1px solid #e5e4d8;border-radius:12px;font-size:12px;color:#5e7467;display:flex;align-items:baseline;gap:7px}
.bg-overview strong{font-size:22px;color:#204d3e;line-height:1.1;font-variant-numeric:tabular-nums}
.bg-card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:13px;align-items:start}
.bg-card{border:1px solid #ddd7c4;border-radius:17px;background:#fffef9;box-shadow:0 6px 19px #2a413512;padding:16px;overflow:hidden}
.bg-card-head{width:100%;display:flex;text-align:left;align-items:center;gap:11px;border:0;background:transparent;padding:0;color:#243f3a}
.bg-card-icon{width:39px;height:39px;border-radius:12px;background:#e7ede6;border:1px solid #d9e4d9;display:grid;place-items:center;font-size:20px;color:#37614c;flex:none}
.bg-card-heading{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.bg-card-category{font-size:10px;color:#a08b5d;font-weight:750;letter-spacing:1.2px;text-transform:uppercase}
.bg-card-heading strong{font-size:16px;line-height:1.3;word-break:break-word}
.bg-card-heading small{font-size:11px;color:#738076}
.bg-chevron{font-size:21px;color:#879b8c;padding:7px}
.bg-meter-info{display:flex;justify-content:space-between;margin:15px 0 6px;font-size:11px;color:#6f8678}
.bg-meter-info b{font-size:15px;color:#2f6951;font-variant-numeric:tabular-nums}
.bg-meter{height:12px;border-radius:20px;background:#e5ebdf;overflow:hidden;position:relative}
.bg-meter>span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#799f77,#2d795c);transition:width .22s ease}
.bg-path{display:flex;align-items:center;gap:9px;margin:13px 1px 5px}
.bg-path>span:first-child,.bg-path>span:last-child{font-size:9px;font-weight:800;color:#9a9277;letter-spacing:1px}
.bg-path-rail{position:relative;flex:1;height:3px;border-radius:3px;background:#dddfcf}
.bg-path-rail>span{position:absolute;inset:0 auto 0 0;background:#4d8968;border-radius:3px;transition:width .22s ease}
.bg-path-rail i{position:absolute;top:50%;width:11px;height:11px;border-radius:100%;border:2px solid #9eb69c;background:#fffef9;transform:translate(-50%,-50%);box-shadow:0 0 0 2px #fffef9}
.bg-path-rail i.done{background:#3d8461;border-color:#3d8461}
.bg-expanded{padding-top:14px;margin-top:13px;border-top:1px solid #ece9de}
.bg-description{font-size:12px;color:#5b7366;line-height:1.5;margin:0 0 12px}
.bg-next{padding:12px 13px;border-radius:12px;background:#edf4e9;border:1px solid #d3e4cb;margin-bottom:16px;display:flex;flex-direction:column;gap:4px}
.bg-next span{font-size:10px;letter-spacing:1px;font-weight:800;color:#709075;text-transform:uppercase}
.bg-next strong{font-size:13px;color:#2a5742}
.bg-next small{font-size:11px;color:#749078}
.bg-next.complete{font-size:13px;background:#e5f2e1;color:#2b6d41}
.bg-step-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:7px 0}
.bg-step-title h4{font-size:14px;margin:0;color:#244a3b}
.bg-step-title span{font-size:12px;color:#76907c;font-weight:750}
.bg-milestone-line{display:flex;gap:8px;overflow-x:auto;padding:13px 4px 16px;margin-bottom:5px;scrollbar-width:thin}
.bg-milestone{min-width:75px;max-width:125px;flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;position:relative}
.bg-milestone:not(:last-child):after{content:"";position:absolute;top:14px;left:calc(50% + 16px);width:calc(100% - 24px);height:2px;background:#d3dccd}
.bg-milestone.reached:not(:last-child):after{background:#6aa276}
.bg-milestone-dot{width:30px;height:30px;border-radius:50%;border:2px solid #a9bba9;background:#f9faf5;display:grid;place-items:center;font-size:12px;color:#637967;font-weight:800;z-index:1}
.bg-milestone.reached .bg-milestone-dot{background:#357956;color:#fff;border-color:#357956}
.bg-milestone small{font-size:10px;line-height:1.3;color:#728577;overflow-wrap:anywhere}
.bg-empty-milestones,.bg-help{font-size:12px;line-height:1.5;color:#819083}
.bg-steps{display:flex;flex-direction:column;gap:7px;margin-top:11px}
.bg-step{display:flex;gap:5px;align-items:center;justify-content:space-between;background:#f6f7f1;border:1px solid #e7ebdf;border-radius:11px;padding:8px 7px 8px 9px}
.bg-step.done{background:#eff5eb}
.bg-step label{display:flex;align-items:center;gap:9px;min-width:0;flex:1;cursor:pointer}
.bg-step input{accent-color:#3f875d;width:18px;height:18px;flex:none}
.bg-step-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.bg-step-text b{font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.bg-step.done .bg-step-text b{text-decoration:line-through;text-decoration-color:#95aa9a;color:#7b8e80}
.bg-step-text small{font-size:10px;color:#9b9579}
.bg-step-controls{display:flex;gap:1px;flex:none}
.bg-step-controls button{padding:3px 5px;border:0;background:transparent;font-size:17px;color:#688375;min-width:23px;min-height:29px}
.bg-step-controls button:disabled{opacity:.2}
.bg-add-step{width:100%;margin:13px 0 5px;background:#f3f7ed;border:1px dashed #aabfa4;color:#3b7054;border-radius:10px;padding:12px 9px;font-size:12px;font-weight:750}
.bg-footer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:7px}
.bg-footer-actions button{border:0;background:transparent;padding:7px;color:#6d806f;font-size:12px}
.bg-footer-actions button.danger{color:#a76a61}
.bg-empty{text-align:center;padding:35px 15px;border-radius:18px;background:#faf9f2;border:1px dashed #cec7b3}
.bg-empty-symbol{width:65px;height:65px;margin:0 auto 9px;display:grid;place-items:center;font-size:32px;border-radius:50%;background:#e9efe3;color:#65846d}
.bg-empty h3{margin:8px 0 5px;font-size:18px;color:#25483d}
.bg-empty p{font-size:13px;line-height:1.6;color:#758378;max-width:460px;margin:0 auto 17px}
.bg-empty .bg-example{font-size:11px;margin:15px auto 0;color:#948b77}
.bg-local-note{font-size:11px;color:#8b958d;text-align:center;margin-top:17px}
#bg-modal-root .bg-modal-shade{position:fixed;z-index:1600;inset:0;background:#09261fa8;display:grid;place-items:center;padding:14px;overflow-y:auto}
#bg-modal-root .bg-modal{background:#fdfcf6;border:1px solid #d9ceb0;border-radius:18px;padding:20px;width:min(480px,100%);max-height:calc(100vh - 28px);overflow-y:auto;box-shadow:0 14px 55px #132c2750;color:#254339}
#bg-modal-root .bg-modal-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px}
#bg-modal-root .bg-modal h3{font-size:18px;margin:0}
#bg-modal-root .bg-modal-top button{background:transparent;border:0;font-size:24px;color:#7c8b7c}
#bg-modal-root label{display:block;font-size:12px;font-weight:750;margin:11px 0 0}
#bg-modal-root input:not([type=checkbox]),#bg-modal-root select,#bg-modal-root textarea{width:100%;margin-top:6px;min-height:42px;padding:10px 11px;border-radius:9px;border:1px solid #cfdbc9;background:#fff;color:#263e31;font-size:14px}
#bg-modal-root textarea{min-height:75px;resize:vertical}
#bg-modal-root .bg-checkbox{display:flex;align-items:center;gap:9px;font-weight:600}
#bg-modal-root .bg-checkbox input{width:18px;height:18px;accent-color:#337d59}
#bg-modal-root .bg-modal-tip,#bg-modal-root .bg-form-context{font-size:11px;color:#7f8f81;line-height:1.5}
#bg-modal-root .bg-modal-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:17px}
#bg-modal-root .bg-modal-buttons>button:not(.bg-primary){border:1px solid #d4dfcf;background:#f2f6ee;color:#47604f;border-radius:10px;padding:10px 14px}
@media(max-width:540px){#bg-tabs{padding:0 11px;gap:7px}#bg-tabs button{flex:1;padding:10px 6px;font-size:11px}#big-goals.bg-section{padding:15px 12px}.bg-header{align-items:flex-start;flex-wrap:wrap}.bg-header .bg-primary{width:100%}.bg-card{padding:13px}.bg-overview span{min-width:85px;font-size:10px}.bg-overview strong{font-size:19px}}
