.time-family-controls { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:20px; }
.time-family-controls label { max-width:260px; flex:1; }
.time-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.time-overview > div { background:#edf2e5; border-radius:16px; padding:20px; }
.time-overview span { display:block; color:#64745b; font-size:13px; }
.time-overview strong { display:block; font-size:24px; color:#36563a; margin-top:10px; overflow-wrap:anywhere; }
.time-overview small { font-size:14px; font-weight:400; }
.time-note { color:#64705d; font-size:12px; line-height:1.8; margin:12px 0; }
.time-shared-card { border:1px solid #dce5d3; background:#fffefb; border-radius:18px; padding:24px; margin:20px 0 30px; }
.time-section-heading, .time-shared-title { display:flex; align-items:center; gap:12px; }
.time-section-heading { justify-content:space-between; }
.time-section-heading > button { flex-shrink:0; }
.time-shared-title h2, .time-content-settings > h2 { color:#36563a; font-size:19px; margin:0; }
.time-shared-title p { margin:5px 0 0; color:#718169; font-size:12px; }
.time-section-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:#eef3e6; color:#5e7d50; flex-shrink:0; }
.time-section-icon svg { width:24px; height:24px; }
.time-shared-summary { color:#496043; font-size:15px; line-height:1.9; margin:18px 0 0; }
.time-shared-summary strong { font-weight:600; }
.time-parent-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; margin-top:16px; }
.time-filters { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 22px; }
.time-filters button { min-height:40px; border:1px solid #e1e7d8; border-radius:22px; background:#fffefb; padding:8px 16px; color:#64745b; font:inherit; font-size:13px; cursor:pointer; }
.time-filters button[aria-pressed=true] { background:#4f7248; border-color:#4f7248; color:#fff; }
.time-content-group { margin-bottom:24px; }
.time-content-group h3 { margin:0 0 12px; font-size:14px; font-weight:500; color:#708166; }
.time-content-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.time-content-card { display:flex; flex-direction:column; padding:18px; border-radius:16px; border:1px solid #e0e7d7; background:#fffefb; min-width:0; }
.time-content-heading h4 { margin:0 0 8px; color:#36563a; font-size:16px; line-height:1.5; }
.time-mode { display:inline-block; border-radius:6px; padding:3px 7px; font-size:11px; color:#718169; background:#f2f4ec; }
.time-mode-custom { color:#846c31; background:#f7efd9; }
.time-mode-exempt { color:#3d7868; background:#e6f1eb; }
.time-content-usage { margin:16px 0 0; font-size:15px; color:#496043; }
.time-content-summary, .time-content-remaining { margin:8px 0 0; font-size:12px; color:#718169; line-height:1.6; }
.time-content-remaining { color:#53744a; }
.time-content-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:12px; margin-top:auto; padding-top:16px; }
.time-content-actions .parent-outline { min-height:38px; padding:7px 14px; font-size:13px; }
.time-content-actions .parent-text-button { font-size:12px; }
.time-details { border-top:1px solid #e1e6d8; padding:0 2px; }
.time-details > summary { cursor:pointer; padding:18px 0; font-size:14px; color:#496043; }
.time-details[open] { padding-bottom:16px; }
.time-week { display:flex; gap:10px; margin:10px 0; max-width:600px; }
.time-week > div { flex:1; min-width:0; text-align:center; font-size:12px; color:#5e7155; }
.time-week-track { height:90px; display:flex; align-items:end; justify-content:center; border-bottom:1px solid #d6dfcc; margin:8px 0; }
.time-week-track i { display:block; width:min(26px,80%); border-radius:6px 6px 0 0; background:#8aa879; }
.time-history { list-style:none; padding:0; margin:0; }
.time-history li { display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; border-bottom:1px solid #e8ebdf; padding:13px 0; font-size:13px; color:#486443; }
.time-history time { color:#718169; font-size:12px; }
.time-family-controls label, .time-confirm label, .time-editor label { display:grid; gap:8px; color:#496043; font-size:14px; }
.time-family-controls select, .time-confirm input, .time-editor input { width:100%; min-width:0; box-sizing:border-box; padding:12px; min-height:46px; border:1px solid #cdd7c3; background:#fffef8; border-radius:10px; font:inherit; }
.time-confirm, .time-editor { width:min(420px,calc(100vw - 32px)); max-height:calc(calc(var(--kid-vh,1vh) * 100) - 32px); overflow:auto; border:0; border-radius:20px; padding:25px; box-sizing:border-box; background:#fffdf7; color:#35523b; overscroll-behavior:contain; }
.time-editor { width:min(560px,calc(100vw - 32px)); }
.time-confirm::backdrop, .time-editor::backdrop { background:#1f392b80; }
.time-confirm h2, .time-editor h2 { margin:0; font-size:22px; }
.time-confirm p { line-height:1.8; font-size:14px; }
.time-editor form { display:grid; gap:20px; }
.time-editor .time-note { margin:0; }
.time-confirm .dialog-actions, .time-editor .dialog-actions { display:flex; gap:10px; justify-content:end; }
.time-confirm .dialog-actions { margin-top:18px; }
.time-editor .dialog-actions { position:sticky; bottom:-25px; margin-bottom:-25px; padding:14px 0 20px; background:#fffdf7; box-shadow:0 -8px 12px #fffdf7; }
.time-confirm button, .time-editor .dialog-actions button { padding:12px 18px; min-height:44px; border-radius:10px; border:0; cursor:pointer; font:inherit; }
.time-confirm [type=submit], .time-editor [type=submit] { background:#527c4d; color:white; }
.time-editor .secondary, .time-confirm .secondary { background:#eaf0e1; color:#496043; }
.time-editor .error:empty, .time-confirm .error:empty { display:none; }
.time-editor .error { margin:0; }
.time-editor fieldset { border:0; padding:0; margin:0; min-width:0; }
.time-editor legend { color:#496043; font-size:14px; margin-bottom:12px; }
.time-editor .time-toggle { display:flex; align-items:center; justify-content:space-between; padding:0 0 18px; border-bottom:1px solid #e1e6d8; }
.time-editor .time-toggle input, .time-mode-options input { width:20px; height:20px; min-height:20px; padding:0; accent-color:#557d4b; flex-shrink:0; }
.time-setting-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.time-window { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:end; gap:10px; margin:16px 0 10px; }
.time-window > span { align-self:end; padding-bottom:14px; color:#85917b; }
.time-editor .time-mode-options label { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid #e0e7d7; border-radius:12px; margin-bottom:8px; cursor:pointer; }
.time-mode-options label:has(input:checked) { background:#edf3e5; border-color:#86a575; }
.time-mode-options strong, .time-mode-options small { display:block; }
.time-mode-options strong { font-size:14px; font-weight:500; }
.time-mode-options small { margin-top:4px; font-size:12px; line-height:1.5; color:#718169; }
.time-editor [hidden], .time-content-card [hidden] { display:none; }
.time-editor button:disabled, .time-confirm button:disabled { opacity:.6; cursor:wait; }
.time-editor :focus-visible, .time-confirm :focus-visible, .time-filters :focus-visible { outline:2px solid #527c4d; outline-offset:3px; }
@media(max-width:1100px) { .time-content-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) {
 .time-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .time-overview > div { padding:16px 12px; }
 .time-overview > div:last-child { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; padding:12px; }
 .time-overview > div:last-child strong { margin:0; }
 .time-overview strong { font-size:20px; }
 .time-shared-card { padding:18px 16px; }
 .time-shared-title h2 { font-size:17px; }
 .time-section-icon { width:36px; height:36px; border-radius:12px; }
 .parent-mobile-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
 .parent-mobile-nav button { font-size:12px; gap:4px; padding-inline:2px; }
 .parent-mobile-nav [data-parent-icon] { width:16px; height:16px; }
}
@media(max-width:560px) {
 .time-content-grid { grid-template-columns:1fr; }
 .time-content-card { position:relative; padding:16px; }
 .time-content-heading { padding-right:62px; }
 .time-content-actions { margin-top:0; padding-top:12px; }
 .time-content-card .time-content-actions > .parent-outline { position:absolute; right:16px; top:16px; }
 .time-content-card .time-content-actions:has(> :only-child) { padding-top:0; }
 .time-content-usage { margin-top:12px; }
 .time-filters { gap:6px; }
 .time-filters button { padding-inline:12px; }
 .time-confirm, .time-editor { padding:20px; }
 .time-editor .dialog-actions { bottom:-20px; margin-bottom:-20px; }
 .time-setting-grid { gap:8px; }
 .time-setting-grid label { font-size:12px; line-height:1.6; }
 .time-setting-grid input { padding:10px 8px; }
}
