/* Parent view reuses Rowan's child-facing dashboard styling; selectors stay inside its dialog. */
#popup:has(.rowan-parent-mode){width:min(1180px,98vw);max-width:98vw;max-height:96dvh;background:#061b43;border:2px solid #13ceff;border-radius:24px;box-shadow:0 0 24px #00bfff88}
#popup:has(.rowan-parent-mode) .dialog-body{padding:12px;background:#061b43}
.rowan-parent-mode{--rp-blue:#075cce;--rp-cyan:#12d8ff;--rp-navy:#061b43;--rp-pale:#fff9d9;--rp-ink:#071d57;--rp-green:#15c95b;--rp-red:#f23b4f;display:grid;gap:14px;min-width:0;padding:4px;color:#f4fbff;background:radial-gradient(ellipse at 48% 3%,#104594 0,#061b43 62%);font-family:inherit}
.rp-header{display:grid;grid-template-columns:86px minmax(180px,1fr) minmax(200px,280px) auto;gap:14px;align-items:center;padding:8px 10px 16px;border-bottom:2px solid #0aaaff}
.rp-avatar{width:82px;height:82px;object-fit:cover;border:4px solid var(--rp-cyan);border-radius:50%;background:#092b63;box-shadow:0 0 12px #00ceff77}
.rp-name{min-width:0}.rp-kicker{display:block;margin:0 0 4px;color:#75edff;font-size:.75rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.rp-name h2{margin:0;color:white;font-size:clamp(1.7rem,3vw,2.7rem);font-weight:900;line-height:1.05;text-shadow:0 2px 0 #05428b}
.rp-balance{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:74px;padding:10px 16px;border:3px solid var(--rp-cyan);border-radius:22px;background:linear-gradient(110deg,#064aab,#062c72);color:white;box-shadow:0 0 12px #00cfff66;text-align:left;cursor:pointer}
.rp-coin{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border:3px solid #ffd83f;border-radius:50%;background:linear-gradient(145deg,#fff47b,#ff9c18);color:#8a5100;font-size:2rem;text-shadow:0 1px white}
.rp-balance strong{display:block;font-size:2.2rem;line-height:1}.rp-balance small{display:block;margin-top:3px;font-weight:800;font-size:.82rem}.rp-balance-edit-icon{margin-left:auto;color:#72efff;font-size:1.3rem}
.rp-parent-control{min-height:58px;padding:10px 15px;border:3px solid #0bd5ff;border-radius:18px;background:linear-gradient(150deg,#0785e8,#0342ad);color:white;font-weight:900;font-size:1rem;white-space:nowrap;box-shadow:0 0 12px #00cfff55;cursor:pointer}
.rp-card-grid{display:grid;grid-template-columns:1.05fr 1.2fr 1fr;gap:14px;align-items:stretch}
.rp-card,.rp-catalog,.rp-editor{min-width:0;border:3px solid #13d5ff;border-radius:24px;background:linear-gradient(150deg,#0755b9,#043e92);box-shadow:0 0 13px #00bdff66}
.rp-card{padding:12px;display:flex;flex-direction:column;gap:10px}
.rp-card-title,.rp-catalog-heading{display:flex;align-items:center;gap:9px;min-height:40px}.rp-card-title h3,.rp-catalog-heading h3{margin:0;color:#fff;font-size:clamp(1.15rem,1.8vw,1.55rem);font-weight:900;text-shadow:0 2px 0 #064187}.rp-title-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#d8f5ff;color:#0756ba;font-size:1.55rem;font-weight:900}.rp-readonly-tag{margin-left:auto;padding:4px 8px;border:1px solid #a2ebff;border-radius:99px;color:#ccf8ff;font-size:.62rem;font-weight:900;letter-spacing:.08em}.rp-icon-button{display:grid;place-items:center;width:42px;height:42px;margin-left:auto;border:2px solid #72eaff;border-radius:14px;background:#0860c4;color:white;font-size:1.25rem;font-weight:900;cursor:pointer}.rp-icon-button:hover,.rp-parent-control:hover{filter:brightness(1.12)}
.rp-care-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:1}.rp-care-item{position:relative;display:grid;grid-template-rows:minmax(66px,1fr) auto;gap:4px;place-items:center;min-height:108px;padding:8px 6px 7px;border:2px solid #ffd958;border-radius:18px;background:var(--rp-pale);color:var(--rp-ink);text-align:center}.rp-care-art{height:62px;width:100%;display:grid;place-items:center;overflow:hidden}.rp-care-art img{width:100%;height:100%;object-fit:contain}.rp-care-item strong{font-size:.85rem;font-weight:900}.rp-check{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:28px;height:28px;border:3px solid var(--rp-red);border-radius:50%;background:#fff;color:white;font-size:1rem;font-weight:1000}.rp-check.is-done{border-color:#04a949;background:var(--rp-green);box-shadow:0 0 7px #39ec74;color:white}.rp-card-foot{margin:auto 2px 0;color:#e1faff;font-size:.76rem;font-weight:700;line-height:1.25}
.rp-chore-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;flex:1}.rp-task-tile{position:relative;display:flex;min-width:0;min-height:116px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:22px 5px 6px;border:2px solid #ffdb58;border-radius:17px;background:var(--rp-pale);color:var(--rp-ink);text-align:center}.rp-task-tile.is-done{background:#e8ffdf;border-color:#3ae27d}.rp-task-picture{display:grid;place-items:center;width:52px;height:42px;overflow:hidden;color:#0675d4;font-size:2rem}.rp-task-picture img{max-width:100%;max-height:100%;object-fit:contain}.rp-task-tile strong{font-size:.76rem;line-height:1.12}.rp-task-tile small{font-size:.68rem;font-weight:800;color:#0755ad}.rp-task-toggle{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:25px;height:25px;border:3px solid var(--rp-red);border-radius:50%;background:#fff;color:white;font-weight:900;cursor:pointer}.rp-task-toggle[aria-pressed="true"]{border-color:#05a94a;background:var(--rp-green)}.rp-tile-edit{position:absolute;top:4px;left:4px;width:24px;height:24px;border:0;border-radius:50%;background:#0877d7;color:white;font-weight:900;cursor:pointer}.rp-empty-task{border-style:dashed;cursor:pointer}.rp-empty-plus{display:grid;place-items:center;width:34px;height:34px;border:2px solid #139df0;border-radius:50%;color:#0876cf;font-size:1.5rem;font-weight:700}.rp-empty-task strong{font-size:.74rem}
.rp-words-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:1}.rp-word-check{position:relative;display:grid;grid-template-columns:1fr auto;grid-template-rows:1fr auto;align-items:center;min-height:91px;gap:5px;padding:10px;border:2px solid #ffdc5c;border-radius:17px;background:var(--rp-pale);color:var(--rp-ink);text-align:left;cursor:pointer}.rp-word-check .rp-check{position:static;grid-column:2;grid-row:1;width:28px;height:28px}.rp-word-check strong{grid-column:1;grid-row:1;font-size:.8rem;line-height:1.1}.rp-word-check small{grid-column:1/3;grid-row:2;font-weight:800;color:#0755ad}.rp-word-check.is-done{background:#e8ffdf;border-color:#3ae27d}
.rp-catalog{padding:12px;background:linear-gradient(135deg,#073d8d,#052963)}.rp-catalog-heading{margin:0 4px 10px}.rp-catalog-heading .rp-title-icon{color:#a26600;background:#fff6c9}.rp-catalog-heading p{margin:2px 0 0;color:#c6f6ff;font-size:.8rem;font-weight:700}.rp-catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.rp-category{display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto auto auto;align-items:center;column-gap:8px;min-width:0;min-height:98px;padding:9px;border:2px solid #ffdb5a;border-radius:18px;background:var(--rp-pale);color:var(--rp-ink);text-align:left;cursor:pointer}.rp-category:hover{border-color:#15d4ff;transform:translateY(-1px)}.rp-category-icon{grid-column:1;grid-row:1/4;display:grid;place-items:center;width:50px;height:50px;border:2px solid #ffd148;border-radius:50%;background:#fff;color:#0755bd;font-size:1.9rem}.rp-category strong{font-size:.86rem;font-weight:950;line-height:1.05}.rp-category small{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#174783;font-size:.68rem;font-weight:700;line-height:1.1}.rp-category em{color:#075fca;font-size:.68rem;font-style:normal;font-weight:900}
.rp-editor{padding:14px;background:linear-gradient(145deg,#074a9c,#052e70)}.rp-editor-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.rp-editor-title h3{margin:2px 0;color:#fff;font-size:1.35rem}.rp-editor-title p{margin:2px 0;color:#d7f7ff;font-size:.88rem}.rp-editor-row{display:grid;grid-template-columns:110px minmax(120px,1fr) 125px 165px auto;gap:10px;align-items:center;margin:8px 0;padding:10px;border:2px solid #ffdc5a;border-radius:16px;background:var(--rp-pale);color:var(--rp-ink)}.rp-editor-row label,.rp-balance-editor label{display:grid;gap:4px;font-size:.8rem;font-weight:900}.rp-editor-row input,.rp-balance-editor input{min-width:0;width:100%;height:42px;padding:7px 10px;border:2px solid #078ee2;border-radius:10px;background:#fff;color:#06265d;font:inherit;font-weight:700}.rp-task-photo-edit{display:grid;grid-template-columns:54px 1fr;align-items:center;gap:5px}.rp-task-photo-edit img,.rp-task-photo-edit>span{display:grid;place-items:center;width:50px;height:50px;object-fit:cover;border:1px solid #72cefa;border-radius:10px;background:white;font-size:1.7rem}.rp-task-photo-edit label{font-size:.68rem;color:#0752a9;cursor:pointer}.rp-task-photo-edit input{height:auto;padding:3px;border:0;background:transparent;font-size:.65rem}.rp-remove,.rp-editor-actions button,.rp-primary{min-height:42px;padding:8px 13px;border:2px solid #75eaff;border-radius:14px;background:linear-gradient(145deg,#0879d9,#0643a5);color:white;font:inherit;font-weight:900;cursor:pointer}.rp-remove{border-color:#ff9aaa;background:#8b2640}.rp-primary{border-color:#8bf5ff;background:linear-gradient(145deg,#04bfdc,#0873cf)}.rp-editor-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:10px}.rp-empty-note,.rp-limit{padding:12px;border:1px dashed #8cecff;border-radius:14px;color:#e7fbff}.rp-editor-category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.rp-editor-category-grid button{min-height:76px;border:2px solid #ffdc5a;border-radius:16px;background:var(--rp-pale);color:var(--rp-ink);font:inherit;font-weight:900;cursor:pointer}.rp-editor-category-grid span{display:block;font-size:1.6rem}.rp-balance-editor{display:grid;gap:10px}.rp-balance-editor>label{max-width:360px;color:white}.rp-save-note{margin:0;color:#c5f2ff;text-align:center;font-size:.73rem}
@media(max-width:880px){.rp-header{grid-template-columns:70px minmax(120px,1fr) minmax(160px,220px);}.rp-avatar{width:68px;height:68px}.rp-parent-control{grid-column:2/4;justify-self:end;min-height:44px}.rp-card-grid{grid-template-columns:1fr 1fr}.rp-care{grid-row:span 2}.rp-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-editor-row{grid-template-columns:90px minmax(100px,1fr) 110px 145px auto}}
@media(max-width:580px){#popup:has(.rowan-parent-mode){width:100vw;max-width:100vw;max-height:98dvh;margin:1vh auto;border-radius:18px}#popup:has(.rowan-parent-mode) .dialog-body{padding:8px}.rowan-parent-mode{gap:10px;padding:1px}.rp-header{grid-template-columns:54px minmax(0,1fr) auto;gap:8px;padding:4px 2px 10px}.rp-avatar{width:52px;height:52px;border-width:3px}.rp-name h2{font-size:1.35rem}.rp-name .rp-kicker{font-size:.56rem}.rp-balance{grid-column:1/3;grid-row:2;min-height:56px;padding:6px 10px}.rp-coin{width:40px;height:40px;flex-basis:40px;font-size:1.5rem}.rp-balance strong{font-size:1.65rem}.rp-parent-control{grid-column:3;grid-row:1/3;align-self:center;white-space:normal;font-size:.76rem;padding:8px;min-height:54px}.rp-card-grid{grid-template-columns:1fr}.rp-card{padding:10px}.rp-care{grid-row:auto}.rp-care-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rp-care-item{min-height:90px;padding:6px 2px}.rp-care-art{height:48px}.rp-care-item strong{font-size:.7rem}.rp-chore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rp-task-tile{min-height:106px}.rp-words-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-category{grid-template-columns:44px 1fr;min-height:92px;padding:7px}.rp-category-icon{width:40px;height:40px;font-size:1.55rem}.rp-category strong{font-size:.78rem}.rp-category small,.rp-category em{font-size:.63rem}.rp-editor-row{grid-template-columns:62px minmax(0,1fr);gap:7px}.rp-task-photo-edit{grid-column:1}.rp-editor-row>label{grid-column:2}.rp-remove{grid-column:1/3}.rp-editor-category-grid{grid-template-columns:repeat(2,1fr)}}

/* Rowan's balance lookup and parent-confirmed catalog checkout. */
#popup:has(.rp-wallet-screen),#popup:has(.rp-card-scan),#popup:has(.rp-purchase-browser),#popup:has(.rp-checkout),#popup:has(.rp-purchase-complete){width:min(820px,96vw);max-width:96vw;max-height:96dvh;border:3px solid #13ceff;border-radius:26px;background:#061b43;box-shadow:0 0 28px #00cfff88}
#popup:has(.rp-wallet-screen) .dialog-body,#popup:has(.rp-card-scan) .dialog-body,#popup:has(.rp-purchase-browser) .dialog-body,#popup:has(.rp-checkout) .dialog-body,#popup:has(.rp-purchase-complete) .dialog-body{padding:14px;background:#061b43}
.rp-wallet-screen{display:grid;justify-items:center;gap:5px;margin:auto;padding:20px 14px 24px;border:3px solid #1ad7ff;border-radius:28px;background:radial-gradient(ellipse at 50% 10%,#1268ce,#062d70 70%);color:#f7fcff;text-align:center;box-shadow:inset 0 0 20px #2adfff35}
.rp-wallet-coin{display:grid;place-items:center;width:112px;height:112px;border:5px solid #ffe05c;border-radius:50%;background:linear-gradient(145deg,#fff5a7,#ffbd34);color:#a35d00;font-size:5rem;line-height:1;box-shadow:0 5px 0 #c68013}.rp-wallet-coin img{width:88%;height:88%;object-fit:contain;border-radius:50%}
.rp-wallet-kicker{margin:10px 0 0;color:#8bf3ff;font-size:.95rem;font-weight:1000;letter-spacing:.11em}.rp-wallet-balance{display:block;color:#ffe267;font-size:clamp(4rem,14vw,8rem);font-weight:1000;line-height:1;letter-spacing:.07em;text-shadow:0 4px 0 #985d05,0 0 16px #ffeb77}.rp-wallet-caption{margin:0;color:#fff;font-size:1.25rem;font-weight:1000}.rp-wallet-hint{max-width:520px;margin:8px auto;color:#dcf7ff;font-size:.95rem;line-height:1.4}.rp-wallet-scan{min-height:48px;margin-top:6px;padding:9px 18px;border:2px solid #67edff;border-radius:16px;background:#0756b3;color:white;font:inherit;font-weight:950;cursor:pointer}
#popup .rp-wallet-purchase,#popup .rp-pay-now{min-width:145px;background:linear-gradient(145deg,#08cce5,#0873cf);color:#fff}
.rp-card-scan{display:grid;justify-items:center;gap:10px;max-width:600px;margin:auto;color:white}.rp-camera-frame{position:relative;display:grid;place-items:center;width:min(100%,520px);height:clamp(190px,36vh,320px);overflow:hidden;border:3px solid #13d8ff;border-radius:24px;background:#031634}.rp-camera-frame video{width:100%;height:100%;object-fit:cover}.rp-camera-frame>span{position:absolute;width:64%;height:28%;display:grid;place-items:center;border:3px solid #27e484;border-radius:10px;color:#7df4b1;font-size:2.2rem;text-shadow:0 2px 8px #001}.rp-card-scan>p{margin:0}.rp-scan-status{min-height:1.4em;color:#9af4ff;font-weight:800}.rp-card-scan form{display:grid;grid-template-columns:minmax(170px,1fr) auto;align-items:end;gap:10px;width:min(100%,520px);padding:14px;border:2px solid #1bbdf3;border-radius:18px;background:#082a61}.rp-card-scan form label{display:grid;gap:6px;color:#dffaff;font-weight:850;text-align:left}.rp-card-scan form input{height:48px;min-width:0;padding:8px 12px;border:2px solid #2bbff4;border-radius:12px;background:white;color:#06265d;text-align:center;font:inherit;font-size:1.4rem;font-weight:900;letter-spacing:.22em}
.rp-purchase-browser{display:grid;gap:12px;color:white}.rp-purchase-instructions{margin:0;color:#dffaff;font-weight:800}.rp-purchase-groups{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.rp-purchase-groups button{min-height:42px;padding:8px 13px;border:2px solid #60dcff;border-radius:14px;background:#073a82;color:white;font:inherit;font-weight:900;cursor:pointer}.rp-purchase-groups button.is-active{border-color:#fff078;background:#0875d2;box-shadow:0 0 10px #14dfff88}
.rp-buy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;max-height:min(36dvh,380px);overflow:auto;padding:2px}.rp-buy-choice{display:grid;grid-template-rows:minmax(90px,1fr) auto auto auto;justify-items:center;align-content:stretch;gap:5px;min-width:0;min-height:180px;padding:10px;border:2px solid #ffe16a;border-radius:18px;background:#fff8d8;color:#08275c;text-align:center;cursor:pointer}.rp-buy-choice.is-selected{border-color:#32ed8b;background:#eaffdc;box-shadow:0 0 12px #30ed8b66}.rp-buy-art{display:grid;place-items:center;width:100%;height:100px;min-height:80px;overflow:hidden;border-radius:13px;background:#fff}.rp-buy-art img{width:100%;height:100%;object-fit:contain}.rp-buy-art>span{font-size:3.2rem}.rp-buy-choice>strong{font-size:1rem;line-height:1.1;overflow-wrap:anywhere}.rp-buy-price{font-weight:1000}.rp-buy-price.is-affordable,.rp-checkout-value.is-affordable{color:#087d3b}.rp-buy-price.is-short,.rp-checkout-value.is-short{color:#c21f3a}.rp-buy-select{font-size:.82rem;font-weight:950;color:#075ec0}
.rp-selected-picks{padding:12px;border:2px solid #11d4ff;border-radius:20px;background:#06285f}.rp-selected-picks h3{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px;color:white}.rp-selected-picks h3 span{color:#9af4ff}.rp-no-picks{margin:4px;color:#c9efff}.rp-selected-grid{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.rp-selected-grid[data-count="1"]{grid-template-columns:minmax(0,1fr)}.rp-selected-grid[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-selected-grid[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.rp-selected-grid[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-selected-item{position:relative;display:grid;justify-items:center;gap:5px;min-width:0;min-height:100px;padding:9px;border:2px solid #ffe16a;border-radius:16px;background:#fff8d8;color:#08275c;text-align:center}.rp-selected-item img{width:clamp(52px,13vw,110px);height:clamp(48px,12vw,100px);object-fit:contain}.rp-selected-grid[data-count="1"] .rp-selected-item{min-height:180px;padding:14px}.rp-selected-grid[data-count="1"] .rp-selected-item img{width:min(54vw,250px);height:min(30vh,240px)}.rp-selected-item strong{max-width:100%;font-size:.92rem;line-height:1.1;overflow-wrap:anywhere}.rp-selected-item small{font-weight:950}.rp-selected-item button{position:absolute;top:4px;right:4px;width:32px;height:32px;border:2px solid #168dd7;border-radius:50%;background:#0865c3;color:white;font-size:1.25rem;font-weight:900;cursor:pointer}
.rp-checkout{display:grid;gap:10px;padding:8px;color:white}.rp-checkout-parent{text-align:center;color:#8ff0ff;font-weight:900}.rp-checkout-items{display:grid;gap:6px}.rp-checkout-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;border:1px solid #169cde;border-radius:14px;background:#082d68}.rp-checkout-row span{min-width:0;overflow-wrap:anywhere}.rp-checkout-row strong{white-space:nowrap}.rp-checkout-total{border-color:#ffdc58;background:#fff6ca;color:#09295f;font-size:1.1rem;font-weight:1000}.rp-checkout-value{font-weight:1000}.rp-checkout-after{border-width:2px;border-color:#14d4ff}.rp-checkout-safety{margin:4px 0;padding:12px;border:2px solid #7af0a8;border-radius:15px;background:#e7ffe9;color:#14512c;font-weight:900;text-align:center}.rp-pay-now{min-height:50px;font-size:1.05rem}
.rp-purchase-complete{display:grid;justify-items:center;gap:4px;padding:16px;border:3px solid #2ce98a;border-radius:24px;background:radial-gradient(ellipse at 50% 4%,#1676c9,#06285f 75%);color:white;text-align:center}.rp-success-token{display:grid;place-items:center;width:86px;height:86px;border:4px solid #ffe36e;border-radius:50%;background:#ffc73e;color:#9b5900;font-size:4.6rem;line-height:1}.rp-purchase-complete h3{margin:6px 0 0;font-size:1.7rem}.rp-purchase-complete p{margin:4px 0}
@media(max-width:580px){#popup:has(.rp-wallet-screen),#popup:has(.rp-card-scan),#popup:has(.rp-purchase-browser),#popup:has(.rp-checkout),#popup:has(.rp-purchase-complete){width:100vw;max-width:100vw;max-height:98dvh;margin:1vh auto;border-radius:18px}#popup:has(.rp-wallet-screen) .dialog-body,#popup:has(.rp-card-scan) .dialog-body,#popup:has(.rp-purchase-browser) .dialog-body,#popup:has(.rp-checkout) .dialog-body,#popup:has(.rp-purchase-complete) .dialog-body{padding:8px}.rp-wallet-screen{padding:12px 8px 16px;border-radius:20px}.rp-wallet-coin{width:82px;height:82px;font-size:3.6rem}.rp-wallet-balance{font-size:clamp(3.5rem,18vw,5.4rem)}.rp-wallet-hint{font-size:.85rem}.rp-card-scan form{grid-template-columns:1fr}.rp-buy-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:34dvh;gap:7px}.rp-buy-choice{min-height:148px;padding:7px}.rp-buy-art{height:78px;min-height:70px}.rp-buy-choice>strong{font-size:.86rem}.rp-selected-grid[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-selected-item{min-height:92px;padding:7px}.rp-selected-grid[data-count="1"] .rp-selected-item{min-height:155px}.rp-checkout{padding:3px}.rp-checkout-row{padding:10px 8px;font-size:.9rem}}

/* Bring the parent preview closer to Rowan's illustrated, roomy dashboard reference. */
#popup:has(.rowan-parent-mode){border-width:3px;box-shadow:0 0 30px #00cfff99, inset 0 0 18px #0879e744}
.rowan-parent-mode{gap:18px;background:radial-gradient(ellipse at 50% 4%,#1254a8 0,#082c69 44%,#04183d 100%)}
.rp-header{grid-template-columns:96px minmax(200px,1fr) minmax(220px,310px) auto;gap:16px;padding:10px 14px 18px;border-bottom:3px solid #16cfff;box-shadow:0 8px 18px -16px #42e7ff}
.rp-avatar{width:92px;height:92px;border-width:5px;box-shadow:0 0 18px #00d9ffbb}
.rp-name h2{font-size:clamp(2rem,3.4vw,3rem);text-shadow:0 3px 0 #063980,0 0 18px #22cfff66}
.rp-balance{min-height:84px;border-width:4px;border-radius:26px;box-shadow:0 0 20px #00cfff88,inset 0 0 14px #22cfff33}
.rp-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.rp-card,.rp-catalog{border-width:4px;border-radius:28px;box-shadow:0 0 20px #00cfff88,inset 0 0 15px #40dfff2b}
.rp-card{min-height:366px;padding:16px;gap:14px;background:linear-gradient(150deg,#0871d7,#06439e 70%,#073779)}
.rp-card-title{min-height:48px;gap:11px}
.rp-card-title h3,.rp-catalog-heading h3{font-size:clamp(1.35rem,2vw,1.75rem);text-shadow:0 2px 0 #063a84,0 0 10px #5be9ff44}
.rp-title-icon{width:44px;height:44px;border:2px solid #7ceaff;border-radius:15px;box-shadow:0 0 12px #15d6ff66}
.rp-card-subtitle{margin-left:auto;color:#d5f8ff;font-size:.8rem;font-weight:900}
.rp-care-grid{gap:10px}
.rp-care-item{grid-template-rows:minmax(92px,1fr) auto;min-height:140px;padding:9px 7px 8px;border-width:3px;border-radius:21px;box-shadow:0 4px 0 #e7b52b,0 0 14px #ffd95155}
.rp-care-art{height:88px}
.rp-care-item strong{font-size:.95rem}
.rp-check{width:32px;height:32px;border-width:3px;box-shadow:0 2px 6px #14265530}
.rp-card-foot{font-size:.8rem;line-height:1.35}
.rp-chores{background:linear-gradient(150deg,#0878db,#06449e 68%,#06377f)}
.rp-chore-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:center;padding:1px 4px}
.rp-chore-tab{display:grid;place-items:center;width:min(100%,42px);aspect-ratio:1;margin:auto;border:3px solid #ed3048;border-radius:50%;background:#ff4054;color:#fff;font-size:1.2rem;font-weight:1000;cursor:pointer;box-shadow:0 3px 0 #b32037}
.rp-chore-tab span{line-height:1}
.rp-chore-tab.is-done{border-color:#8dff93;background:#19c65b;box-shadow:0 3px 0 #088b3c,0 0 11px #58ff8f}
.rp-chore-tab.is-selected{outline:3px solid #8ef3ff;outline-offset:3px}
.rp-chore-tab.is-empty{border-color:#bdc8d8;background:#8898b0;color:#fff;box-shadow:0 3px 0 #55667f}
.rp-chore-feature{position:relative;display:grid;grid-template-columns:minmax(120px,.9fr) minmax(0,1fr) 48px;align-items:center;gap:10px;flex:1;min-height:170px;padding:14px;border:3px solid #ffe16c;border-radius:24px;background:linear-gradient(145deg,#fffbdc,#fff1a9);color:#082967;box-shadow:0 5px 0 #d0a92b,0 0 15px #ffdc5266}
.rp-chore-feature.is-done{background:linear-gradient(145deg,#e8ffdf,#c7ffca);border-color:#79f494;box-shadow:0 5px 0 #14a64b,0 0 15px #65ff9755}
.rp-chore-feature-art{display:grid;place-items:center;min-width:0;height:132px;border:3px solid #ffe16c;border-radius:20px;background:#fff;overflow:hidden;color:#0876d5;font-size:5rem}
.rp-chore-feature-art img{width:100%;height:100%;object-fit:cover}
.rp-chore-feature-copy{display:grid;gap:8px;min-width:0}
.rp-feature-kicker{color:#0872c9;font-size:.67rem;font-weight:1000;letter-spacing:.08em}
.rp-chore-feature-copy strong{font-size:clamp(1rem,1.35vw,1.35rem);font-weight:1000;line-height:1.08;overflow-wrap:anywhere}
.rp-chore-feature-copy small{color:#155db1;font-size:.9rem;font-weight:950}
.rp-feature-check{display:grid;place-items:center;width:44px;height:44px;border:3px solid #ee354c;border-radius:50%;background:#fff;color:#e72e47;font-size:1.7rem;font-weight:1000;cursor:pointer}
.rp-feature-check.is-done{border-color:#11ad4c;background:#1cc75a;color:#fff}
.rp-chore-feature-empty{grid-template-columns:115px 1fr;min-height:170px}
.rp-chore-feature-empty .rp-chore-feature-art{height:118px;background:#fffef1}
.rp-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.rp-card-actions button{min-height:42px;padding:8px 13px;border:2px solid #83ecff;border-radius:15px;background:linear-gradient(150deg,#087cdb,#0646ad);color:#fff;font:inherit;font-size:.83rem;font-weight:950;box-shadow:0 0 10px #13d4ff55;cursor:pointer}
.rp-card-actions .rp-action-primary{border-color:#70f9ff;background:linear-gradient(150deg,#09c9e5,#0781dc);box-shadow:0 0 13px #1fe5ff88}
.rp-auto-note{color:#d9f9ff;font-size:.7rem;font-weight:800;line-height:1.2}
.rp-words-grid{gap:10px}
.rp-word-check{grid-template-columns:1fr auto;grid-template-rows:1fr auto auto;min-height:130px;padding:11px;border-width:3px;border-radius:20px;box-shadow:0 4px 0 #e4b82b,0 0 12px #ffe05b44}
.rp-word-art{grid-column:1/3;grid-row:1;display:grid;place-items:center;min-height:48px;font-size:2.3rem;filter:drop-shadow(0 3px 1px #4060a044)}
.rp-word-check .rp-check{position:absolute;top:7px;right:7px;width:30px;height:30px}
.rp-word-check strong{grid-column:1/3;grid-row:2;font-size:.88rem;text-align:center}
.rp-word-check small{grid-column:1/3;grid-row:3;font-size:.72rem;text-align:center}
.rp-word-check.is-done{box-shadow:0 4px 0 #21aa4d,0 0 12px #5cfc8c55}
.rp-catalog{padding:17px;background:linear-gradient(135deg,#073d8d,#05245a 76%,#062b68)}
.rp-catalog-heading{gap:13px;margin:0 5px 14px}
.rp-catalog-heading p{font-size:.9rem}
.rp-catalog-grid{gap:12px}
.rp-category{grid-template-columns:84px minmax(0,1fr);min-height:166px;padding:12px;column-gap:12px;border-width:3px;border-radius:23px;box-shadow:0 5px 0 #d2a92c,0 0 14px #ffd85855;transition:transform .15s ease,border-color .15s ease}
.rp-category-icon{width:78px;height:78px;border-width:3px;border-radius:22px;font-size:3rem;box-shadow:0 3px 0 #d7b134,0 0 12px #58caff44}
.rp-category-icon img{width:100%;height:100%;object-fit:cover;border-radius:18px}
.rp-category-copy{display:grid;align-content:center;gap:7px;min-width:0}
.rp-category-copy>strong{font-size:1.02rem;font-weight:1000;line-height:1.1}
.rp-category-preview{display:grid;gap:3px;min-width:0}
.rp-category-choice{display:flex;justify-content:space-between;gap:5px;min-width:0;color:#174783;font-size:.72rem;font-weight:800;line-height:1.2}
.rp-category-choice b{flex:0 0 auto;color:#075fca;font-weight:950}
.rp-category-empty{color:#40638e;font-size:.76rem;font-weight:750;line-height:1.2}
.rp-category-copy em{color:#075fca;font-size:.72rem;font-style:normal;font-weight:1000}
.rp-category:hover{transform:translateY(-2px);border-color:#13d5ff}
.rp-care .rp-card-foot{padding-top:5px}
.rp-card-actions button:focus-visible,.rp-chore-tab:focus-visible,.rp-feature-check:focus-visible,.rp-word-check:focus-visible,.rp-category:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:880px){.rp-header{grid-template-columns:76px minmax(130px,1fr) minmax(170px,240px)}.rp-avatar{width:74px;height:74px}.rp-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-care{grid-row:span 2}.rp-card{min-height:320px}.rp-care-art{height:75px}.rp-chore-feature{grid-template-columns:minmax(90px,.8fr) minmax(0,1fr) 42px;gap:7px;padding:10px}.rp-chore-feature-art{height:112px}.rp-category{grid-template-columns:62px minmax(0,1fr);min-height:148px;padding:9px;gap:8px}.rp-category-icon{width:58px;height:58px;font-size:2.4rem}.rp-category-copy>strong{font-size:.91rem}.rp-category-choice{font-size:.65rem}}
@media(max-width:580px){.rowan-parent-mode{gap:12px}.rp-header{grid-template-columns:54px minmax(0,1fr) auto}.rp-card-grid{grid-template-columns:1fr}.rp-care{grid-row:auto}.rp-card{min-height:0;padding:12px}.rp-care-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-care-item{min-height:125px;padding:8px 5px}.rp-care-art{height:76px}.rp-care-item strong{font-size:.82rem}.rp-chore-feature{grid-template-columns:100px minmax(0,1fr) 42px;min-height:140px}.rp-chore-feature-art{height:108px;font-size:4rem}.rp-chore-feature-empty{grid-template-columns:92px 1fr}.rp-chore-feature-empty .rp-chore-feature-art{height:100px}.rp-card-actions button{min-height:40px;padding:7px 10px;font-size:.77rem}.rp-words-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-word-check{min-height:118px}.rp-catalog{padding:12px}.rp-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.rp-category{grid-template-columns:48px minmax(0,1fr);min-height:134px;padding:8px;gap:7px}.rp-category-icon{width:46px;height:46px;border-radius:15px;font-size:1.9rem}.rp-category-copy>strong{font-size:.8rem}.rp-category-choice{display:grid;font-size:.61rem}.rp-category-choice b{font-size:.6rem}.rp-category-empty,.rp-category-copy em{font-size:.62rem}.rp-care-art{height:68px}}
@media(max-width:370px){.rp-category{grid-template-columns:1fr;justify-items:center;text-align:center;min-height:150px}.rp-category-icon{width:50px;height:50px}.rp-category-choice{justify-items:center}.rp-category-copy em{font-size:.58rem}}

/* The four meal labels belong in one Meal card; avoid repeating them as Care check-ins. */
.rp-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.rp-card{min-height:380px}
.rp-meal .rp-words-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:1}
.rp-meal .rp-word-check{min-height:138px}
.rp-meal .rp-word-art{min-height:54px;font-size:2.55rem}
.rp-meal .rp-card-actions{padding-top:4px}
@media(max-width:880px){.rp-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-card{min-height:340px}}
@media(max-width:580px){.rp-card-grid{grid-template-columns:1fr}.rp-card{min-height:0}.rp-meal .rp-word-check{min-height:118px}}

/* Keep Meal, Chores, and Kind words as three distinct cards in the approved order. */
#popup:has(.rowan-parent-mode){box-sizing:border-box}
.rp-card-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1.2fr) minmax(0,1fr);gap:12px;width:100%;min-width:0}
.rp-card{min-width:0;min-height:366px;padding:12px}
.rp-words .rp-words-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.rp-words .rp-word-check{min-height:130px;padding:9px}
.rp-words .rp-word-art{min-height:46px;font-size:2.2rem}
.rp-words .rp-card-actions{align-items:flex-end}
@media(max-width:880px){.rp-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-care{grid-column:1/-1;grid-row:auto}.rp-card{min-height:320px}.rp-care-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rp-care-item{min-height:126px}.rp-care-art{height:68px}}
@media(max-width:580px){.rp-card-grid{grid-template-columns:1fr}.rp-care{grid-column:auto}.rp-card{min-height:0;padding:12px}.rp-care-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-care-item{min-height:125px}.rp-care-art{height:76px}.rp-words .rp-word-check{min-height:118px}}
