/* «Мои цели» · Недельный план и календарь · 2026-11-11
 * Новые классы не меняют существующие главную страницу, фото, личные цели.
 */
#weekly-goals[hidden],#goal-calendar[hidden],#gw-overlay #weekly-goals[hidden],#gw-overlay #goal-calendar[hidden]{display:none!important}
#bg-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#bg-tabs button{min-width:0;width:100%;padding:10px 7px;white-space:normal}
@media(max-width:580px){
 #bg-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #bg-tabs button{min-height:42px;font-size:12px}
}
.gp-section{
 box-sizing:border-box;
 max-width:1160px;
 width:100%;
 margin:0 auto;
 padding:16px 14px 28px;
 color:#244739;
 font:inherit;
}
.gp-section *{box-sizing:border-box}
.gp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0 0 15px}
.gp-eyebrow{font-size:11px;font-weight:800;letter-spacing:.08em;color:#987c48;text-transform:uppercase}
.gp-head h2{font:750 clamp(20px,3.9vw,25px)/1.25 system-ui,Arial,sans-serif;margin:4px 0 7px;color:#1c493c}
.gp-head p{font-size:13px;line-height:1.55;margin:0;max-width:600px;color:#647a6b}
.gp-period{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px;
 padding:11px;background:#f2f4ed;border:1px solid #dce4d6;border-radius:13px;
 margin-bottom:12px;
}
.gp-period strong{font-size:14px;min-width:0;margin-right:auto;flex:1;line-height:1.4}
.gp-period button{
 display:inline-flex;align-items:center;justify-content:center;
 background:#fff;color:#315d47;border:1px solid #c8d8c6;
 border-radius:10px;min-width:42px;min-height:42px;padding:7px 11px;
 font-size:19px;font-weight:750;cursor:pointer;
}
.gp-period button:last-child{font-size:12px}
.gp-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:12px}
.gp-week-day{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
 min-height:70px;padding:8px 2px;text-align:center;
 border:1px solid #d7e3d5;border-radius:11px;background:#fffefa;color:#31523e;cursor:pointer;
}
.gp-week-day strong{font-size:11px;color:#718371}
.gp-week-day span{font-size:17px;font-weight:750}
.gp-week-day small{font-size:10px;color:#7c8c7e}
.gp-week-day.is-selected{border-color:#48785b;background:#e8f0e7;box-shadow:inset 0 0 0 1px #48785b}
.gp-week-summary{
 display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;
 border-bottom:1px solid #e1e6da;padding-bottom:13px;margin-bottom:14px;font-size:12px;color:#61746a;
}
.gp-week-summary strong{font-size:16px;color:#265b42}
.gp-week-summary .gp-main{margin-left:auto}
.gp-main{
 min-height:42px;padding:10px 15px;border-radius:11px;
 background:#235642;border:1px solid #235642;color:#fff7e7;
 font-size:13px;font-weight:750;cursor:pointer;
}
.gp-task-list,.gp-events{display:flex;flex-direction:column;gap:10px}
.gp-task-row{display:flex;flex-direction:column;gap:5px}
.gp-task-date{font-size:11px;color:#897752;font-weight:800}
.gp-task{
 padding:12px 13px;border-radius:13px;background:#fffefa;
 border:1px solid #dce5d6;box-shadow:0 3px 12px rgba(12,43,28,.045);
}
.gp-task.is-done{background:#edf4eb}
.gp-task-check{display:flex;align-items:center;gap:10px;font-weight:650;font-size:14px;line-height:1.45;cursor:pointer}
.gp-task-check input{width:20px;height:20px;flex:none;accent-color:#317a53}
.gp-task.is-done .gp-task-check span{text-decoration:line-through;color:#748675}
.gp-task p,.gp-event-copy p{margin:7px 0 0 30px;font-size:12px;line-height:1.5;color:#708075}
.gp-task-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:7px;margin-top:9px}
.gp-task-actions label{margin-right:auto;display:flex;align-items:center;gap:7px;font-size:11px;color:#687e6c}
.gp-task-actions input{border:1px solid #d8e1d2;border-radius:8px;padding:7px;background:white;min-height:38px;font-size:12px;max-width:148px}
.gp-task-actions button,.gp-event-actions button{
 min-height:40px;padding:7px 11px;border-radius:10px;background:#f0f4ed;
 border:1px solid #d6e3d6;color:#345c45;cursor:pointer;font-size:12px;
}
.gp-task-actions button[data-gp-delete-task],.gp-event-actions button[data-gp-delete-event]{color:#a55348}
.gp-form{
 display:grid;gap:12px;padding:15px;border:1px solid #c5dac7;border-radius:15px;
 background:#f6faf4;margin:0 0 16px;box-shadow:0 4px 15px rgba(12,43,28,.075);
}
.gp-form h3{font-size:16px;margin:0;color:#23543b}
.gp-form label{display:grid;gap:5px;font-size:12px;font-weight:750;color:#3f6150}
.gp-form input,.gp-form textarea,.gp-form select{
 box-sizing:border-box;width:100%;min-width:0;
 border:1px solid #c7d7c5;border-radius:10px;
 background:#fff;color:#203d30;font:inherit;font-size:16px;
 min-height:44px;padding:10px 12px;
}
.gp-form textarea{resize:vertical}
.gp-form-inline{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px}
.gp-form-actions{display:flex;flex-wrap:wrap;gap:8px}
.gp-form-actions button:not(.gp-main){min-height:42px;padding:9px 13px;border:1px solid #d0ddca;background:#fff;color:#3b6047;border-radius:11px;font-weight:650}
.gp-calendar-grid{
 display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;
 border:1px solid #dce4d5;padding:8px;border-radius:13px;background:#f9faf5;margin-bottom:16px;
}
.gp-weekday{text-align:center;color:#66786a;font-size:11px;padding:5px 0;font-weight:750}
.gp-calendar-day{
 min-width:0;min-height:53px;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;
 border:1px solid transparent;background:#fffdfa;border-radius:9px;
 font-size:13px;font-weight:650;color:#355741;cursor:pointer;padding:4px 2px;
}
.gp-calendar-day.is-other{background:transparent;color:#a4b1a0}
.gp-calendar-day.is-selected{border-color:#2b7250;background:#e7f1e5}
.gp-calendar-day.is-today span{text-decoration:underline;text-decoration-color:#c8a869;text-decoration-thickness:2px;text-underline-offset:4px}
.gp-calendar-day small{display:grid;place-items:center;min-width:16px;height:16px;padding:0 3px;border-radius:20px;color:#fff;background:#28694a;font-size:9px}
.gp-calendar-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.gp-calendar-title h3{font-size:16px;color:#255139;margin:0 0 3px}
.gp-calendar-title small{font-size:11px;color:#6e8170}
.gp-event{
 display:flex;align-items:flex-start;gap:10px;
 padding:12px;border:1px solid #dae5d8;border-radius:13px;background:#fffefa;
}
.gp-event-time{display:grid;place-items:center;min-width:55px;min-height:40px;padding:6px;border-radius:10px;background:#ebf2e8;color:#265941;font-weight:800;font-size:13px}
.gp-event-copy{flex:1;min-width:0}
.gp-event-copy strong{font-size:13px;color:#234735;overflow-wrap:anywhere}
.gp-event-copy p{margin:4px 0}
.gp-event-copy small{display:block;margin-top:5px;color:#6b806d;font-size:11px;line-height:1.45}
.gp-event-actions{display:flex;gap:5px}
.gp-event-actions button{width:40px;min-width:40px;font-size:16px;padding:7px}
.gp-empty{
 border:1px dashed #d0d9c9;background:#fafbf5;border-radius:14px;
 padding:19px 13px;font-size:13px;line-height:1.5;color:#697c6e;text-align:center;
}
.gp-footnote{margin:17px 0 0;font-size:11px;color:#728073;line-height:1.5}
.gp-section button:focus-visible,.gp-section input:focus-visible,.gp-section textarea:focus-visible,.gp-section select:focus-visible{outline:3px solid #c4a66c;outline-offset:2px}
#gp-feedback{
 position:fixed;left:50%;transform:translateX(-50%);
 bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:100100;
 max-width:min(440px,calc(100vw - 24px));
 padding:12px 14px;border-radius:12px;border:1px solid #e5cc93;
 color:#fdf5df;background:#234d3a;box-shadow:0 5px 24px #1b352854;
 font-size:13px;font-weight:650;
}
#gp-feedback[hidden]{display:none!important}
.gp-reminder{
 position:fixed;bottom:calc(100px + env(safe-area-inset-bottom,0px));right:12px;z-index:100110;
 display:flex;flex-wrap:wrap;align-items:center;gap:9px;
 width:min(325px,calc(100vw - 24px));padding:13px;
 background:#fffaf0;border:1px solid #d2b37a;border-left:4px solid #ccab6b;
 border-radius:15px;box-shadow:0 10px 32px rgba(12,39,26,.22);color:#244e3a;
}
.gp-reminder div{flex:1 0 100%}
.gp-reminder strong{font-size:13px;color:#2b6348}
.gp-reminder p{font-size:14px;margin:5px 0;line-height:1.45;overflow-wrap:anywhere}
.gp-reminder button{min-height:41px;border:1px solid #c9d8c7;border-radius:10px;padding:9px 13px;background:#f0f4ec;color:#245c40;font-weight:700;cursor:pointer}
.gp-reminder button:nth-of-type(1){background:#28654a;color:white;border-color:#28654a}
@media(max-width:550px){
 .gp-section{padding:13px 10px 20px}
 .gp-period{gap:5px;padding:8px}
 .gp-period strong{font-size:12px;order:0;flex:1 0 65%}
 .gp-period button{min-width:40px;min-height:42px}
 .gp-week-day{min-height:62px}
 .gp-week-day span{font-size:15px}
 .gp-week-day strong{font-size:10px}
 .gp-calendar-grid{gap:3px;padding:5px}
 .gp-calendar-day{min-height:43px}
 .gp-form-inline{grid-template-columns:1fr}
 .gp-task-actions label{flex:1 0 100%}
}
