.game-artwork{display:block;width:80px;height:80px;flex:0 0 80px;object-fit:cover;border-radius:14px;border:1px solid #dce3d5;background:#eaf1df}.game-results button{display:flex;align-items:center;gap:12px}.game-result-art{display:block;width:48px;height:48px;flex:0 0 48px;object-fit:cover;border-radius:9px;background:#eaf1df}.game-result-text{display:block;min-width:0}.rule-heading>div>div{min-width:0}@media(max-width:600px){.game-artwork{width:64px;height:64px;flex-basis:64px;border-radius:12px}}

/* Keep the game identity and schedule above secondary controls. */
.device-panel .rule-heading h4{font-size:24px;line-height:1.25;margin:0 0 6px;font-weight:800;letter-spacing:-.4px}
.device-panel .rule-heading small{font-size:13px;line-height:1.5}
.device-panel .rule-heading>div{gap:16px}
.daily-budget .budget-remove{margin-top:14px;font-size:13px}
@media(max-width:600px){.device-panel .rule-heading h4{font-size:20px}.device-panel .rule-heading small{font-size:12px}.device-panel .rule-heading>div{gap:12px}}

/* Distinguish shared time limits from individual game controls. */
.device-panel details.daily-budget,.device-panel section.daily-budget{margin:18px 0 0;padding:16px 18px;border:1px solid #a9c9c5;border-radius:12px;background:#eaf4f3;box-shadow:0 3px 0 #d0e4e1}
.device-panel .daily-budget>summary{padding:0;color:#183d34;align-items:center}
.daily-budget .budget-label{display:flex;align-items:stretch;gap:12px}
.daily-budget .budget-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;height:auto;border-radius:10px;background:#2b6663;color:#fff}
.device-panel .daily-budget[open]>summary{margin-bottom:16px}
.device-panel .daily-budget input{background:#fff;border-color:#b8cfcc}
.device-panel .daily-budget p{color:#526b68}
@media(max-width:600px){.device-panel details.daily-budget,.device-panel section.daily-budget{padding:14px}}

/* Saved budget state stays visible even when the editor is collapsed. */
.daily-budget .budget-heading{display:flex;align-items:center;flex-wrap:wrap;align-content:space-between;gap:4px 12px;min-width:0}
.daily-budget .budget-saved-limits{flex-basis:100%;font-size:13px;font-weight:500;line-height:1.5}
.daily-budget .budget-state{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#fff;color:#495b56;font-size:12px;font-weight:750;border:1px solid #b7c5be}
.daily-budget .budget-state:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.device-panel details.daily-budget.is-active{border:2px solid #2b6663;background:#e5f3ed;box-shadow:0 3px 0 #bdd9cf}
.daily-budget.is-active .budget-state{background:#183d34;color:#fff;border-color:#183d34}
.device-panel details.daily-budget.is-inactive{background:#f3f4f1;border-color:#cbd1c9;box-shadow:none}
.daily-budget.is-inactive .budget-icon{background:#66736e}
.device-panel details.daily-budget.is-paused{background:#fff6e2;border-color:#b58a38;box-shadow:none}
.daily-budget.is-paused .budget-state{background:#78551a;color:#fff;border-color:#78551a}

.device-panel .daily-budget .budget-empty-warning{padding:10px 12px;background:#fff5dc;border:1px solid #d3b46d;border-radius:8px;color:#664b17;font-weight:600}

.budget-scope{border:0;padding:0;margin:0;min-width:0}.budget-scope legend{font-weight:700;margin-bottom:8px}.budget-scope>label{display:flex;align-items:flex-start;gap:10px;background:white;border:1px solid #bdcbc3;border-radius:9px;padding:12px;margin-bottom:8px;cursor:pointer}.budget-scope>label:has(input:checked){border:2px solid #23594c;background:#fff;box-shadow:inset 5px 0 0 #23594c;padding:11px}.budget-scope>label:focus-within{outline:2px solid #23594c;outline-offset:3px}.budget-scope input[type=radio]{accent-color:#23594c}.budget-scope>label:has(input:disabled){opacity:.6;cursor:not-allowed}.budget-scope input[type=radio]{width:18px;height:18px;flex:0 0 18px;margin-top:3px}.budget-scope small{display:block;font-weight:400;line-height:1.45;margin-top:4px}

.computer-update-notice{display:flex;align-items:center;gap:10px;margin:12px 0;padding:10px 12px;border:1px solid #d8c58f;border-radius:10px;background:#fff8e7;color:#59471c;font-size:13px}.computer-update-symbol{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:50%;background:#f0dfad;font-size:19px;font-weight:700}.computer-update-notice>div{flex:1;min-width:0}.computer-update-notice small{display:block;font-size:12px;line-height:1.4;margin-top:3px}.computer-update-notice form{flex:0 0 auto;margin:0}.computer-update-notice .button{font-size:12px;padding:8px 11px;white-space:nowrap}@media(max-width:600px){.computer-update-notice{flex-wrap:wrap}.computer-update-notice>div{flex-basis:calc(100% - 36px)}.computer-update-notice form{margin-left:36px}}

.device-panel details.daily-budget,.device-panel details.daily-budget.is-active,.device-panel section.daily-budget{box-shadow:none;border-width:1px}
.daily-budget .budget-icon{align-self:flex-start;height:44px}
/* Keep the disabled budget's two text rows within the compact clock height. */
.daily-budget.is-inactive .budget-heading{row-gap:0;line-height:1.25}
.daily-budget.is-inactive .budget-state{padding:2px 8px}
.daily-budget.is-inactive .budget-saved-limits{line-height:1.2}

/* Mobile budget summary uses the card width, below both icon and title. */
.budget-title{display:contents}
@media(max-width:600px){
.daily-budget .budget-label{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;width:100%}
.daily-budget .budget-heading{display:contents}
.daily-budget .budget-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
.daily-budget .budget-saved-limits{grid-column:1/-1}
.device-panel .daily-budget>summary{position:relative;padding-right:0}
.device-panel .daily-budget>summary:after{position:absolute;right:0;top:12px}
.daily-budget .budget-title{padding-right:18px}
}
