/* v27 Grown-ups (js/grownups.js). Ported from the Product Lead's QA-passed mockup v3 (parent-settings-redesign/mockup/style.css):
   same colours, sizes and 44px+ touch targets; every class is prefixed gu- so nothing in the game's own CSS changes.
   Done/primary green #15803d (white text 5.0:1) per QA. */
.gu-off { display: none !important; }
#gusetup { background: linear-gradient(#3f8cff 0%, #8ec9ff 38%, #ffe6f5 62%, #ffe6f5 100%); z-index: 20; }
.gus-wrap { max-width: 760px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px 40px; }
#gu-top { --go:#15803d; --go-d:#0c5c2b; --alt:#4361ee; --alt-d:#2a3fb0; --line:#c9d2ff; --soft:#f5f7ff; --danger:#b3122b; --link:#2f4fb8; }
.gu, #parent, #gu-sheet { --go:#15803d; --go-d:#0c5c2b; --alt:#4361ee; --alt-d:#2a3fb0; --line:#c9d2ff; --soft:#f5f7ff; --danger:#b3122b; --link:#2f4fb8; }
#parent .parent-wrap { max-width: 760px; }
/* header */
.gu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.gu-head h2 { margin: 0; font-size: 21px; line-height: 1.15; flex: 1; }
.gu-back { border: 3px solid var(--line); background: #fff; border-radius: 14px; font-weight: 700; font-size: 16px; padding: 8px 14px; cursor: pointer; white-space: nowrap; min-height: 44px; flex: none; color: var(--ink); font-family: inherit; }
.gu-big { font-size: 19px; font-weight: 700; padding: 12px 22px; border-radius: 18px; border: none; color: #fff; background: var(--alt); box-shadow: 0 5px 0 var(--alt-d); min-height: 54px; cursor: pointer; font-family: inherit; }
.gu-big.go { background: var(--go); box-shadow: 0 5px 0 var(--go-d); }
.gu .wide, .gu-big.wide, .gu-btn.wide { width: 100%; }
.gu-btn { font-size: 16px; padding: 9px 14px; border-radius: 14px; border: 3px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; min-height: 46px; color: var(--ink); font-family: inherit; }
.gu-btn.danger { border-color: #ffb3bd; color: var(--danger); }
.gu-btn.eq { flex: 1 1 0; font-size: 17px; min-height: 56px; }
.gu-btn:disabled, .gu-big:disabled, #p-data .btn:disabled { background: #eceef5 !important; color: #6b7091 !important; border-color: #d9dcea !important; box-shadow: none !important; cursor: not-allowed; }
.gu-why { display: block; font-size: 13px; color: #6b4b00; background: #fff7e0; border-radius: 10px; padding: 4px 9px; margin-top: 6px; line-height: 1.35; }
.gu-why[hidden] { display: none; }
#p-data .yd-row-child .gu-why { flex: 1 0 100%; margin-top: 0; } /* QA B2: the reason sits right under the greyed button */
.gu-link { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0 6px; font-size: 15px; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-family: inherit; }
.gu-muted { color: var(--muted); font-size: 15px; line-height: 1.4; }
.gu-small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.gu-panel { background: #fff; border-radius: 22px; padding: 14px 16px; margin-top: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.gu-panel h3 { margin: 0 0 4px; font-size: 19px; }
.gu-col { display: flex; flex-direction: column; gap: 8px; }
/* child chips: wrap, never clip */
.gu-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 2px; }
.gu-chip { display: inline-flex; align-items: center; gap: 8px; border: 3px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px 4px 4px; font-weight: 700; font-size: 17px; white-space: nowrap; cursor: pointer; min-height: 48px; color: var(--ink); font-family: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.gu-chip.on { border-color: var(--alt); background: #e9edff; }
.gu-chip .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 16px; background: #3b4fd1; flex: none; }
.gu-chip.add { padding: 4px 16px; color: var(--link); }
.gu-who { margin: 2px 2px 0; font-size: 15px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
/* v27 QA2 (c): "Add this week's words" card, first and biggest thing on the main screen */
.gu-aw { background: #fff; border: 3px solid var(--go); border-radius: 22px; padding: 14px 16px 16px; margin-top: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.10); display: flex; flex-direction: column; gap: 6px; }
.gu-aw-t { font-size: 22px; line-height: 1.2; }
.gu-aw-one { font-size: 15px; color: var(--muted); line-height: 1.4; }
.gu-aw-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.gu-aw-acts .gu-big { width: 100%; min-height: 64px; font-size: 20px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.gu-aw-cam { position: relative; overflow: hidden; }
.gu-fine { margin-top: 12px; border-top: 2px dashed var(--line); padding-top: 8px; } .gu-fine > summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 44px; display: flex; align-items: center; } /* v27.4 */
.gu-done { background: var(--go); border-color: var(--go-d); color: #fff; }
.gu-aw-now { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 10px; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); text-align: left; cursor: pointer; }
.gu-aw-now .change { color: var(--link); font-weight: 700; white-space: nowrap; }
.gu-aw-tip { margin: 8px 0 0; font-size: 15px; color: #4a4f6a; }
.gu-aw-pick { position: relative; overflow: hidden; display: inline-block; min-height: 44px; line-height: 44px; }
.gu-aw-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 60px; }
.gu-aw-cam input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 100px; }
.gu-aw-note { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: #6b4b00; background: #fff7e0; border-radius: 12px; padding: 8px 11px; }
@media (max-width: 420px) { .gu-aw-acts { grid-template-columns: 1fr; } }
/* the 4 main items */
.gu-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.gu-item { background: #fff; border-radius: 22px; padding: 11px 13px; box-shadow: 0 4px 14px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 4px; cursor: pointer; border: 3px solid transparent; text-align: left; font: inherit; color: inherit; min-width: 0; }
.gu-item.wide { grid-column: 1 / -1; }
.gu-item:active { border-color: var(--line); }
.gu-item .top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gu-item .lbl { font-size: 15px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.gu-item .num { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; flex: none; }
.gu-item .val { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.gu-item .one { font-size: 13px; color: var(--muted); line-height: 1.35; flex: 1; }
.gu-item .change.foot { align-self: flex-end; margin-top: 2px; }
.gu .change, #gu-top .change { color: var(--link); font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.gu-item .sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 14px; background: var(--soft); min-height: 48px; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.gu-item .sub b { font-size: 16px; overflow-wrap: anywhere; } .gu-item .sub small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.gu-rows { margin-top: 12px; background: #fff; border-radius: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.08); overflow: hidden; }
.gu-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-top: 1px solid #e6e9fb; cursor: pointer; min-height: 56px; width: 100%; background: #fff; text-align: left; font: inherit; color: inherit; }
.gu-rows > .gu-row:first-child { border-top: 0; }
.gu-row .ic { font-size: 24px; width: 30px; text-align: center; flex: none; }
.gu-row .tx { flex: 1; min-width: 0; } .gu-row .tx b { display: block; font-size: 17px; } .gu-row .tx small { font-size: 13px; color: var(--muted); display: block; }
.gu-row .go { color: #6b7091; font-size: 22px; }
.gu-row.pin { background: #f2fbf5; } .gu-row.pin b { color: #0f5132; }
.gu-az .gu-row .tx small.gu-where { color: #2f4fb8; margin-top: 2px; }
.gu-notice { background: #fffbea; border: 2px solid #f5d97a; border-radius: 18px; padding: 12px 14px; margin-top: 10px; }
.gu-notice b { display: block; font-size: 17px; margin-bottom: 4px; }
.gu-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
/* group pages */
.gu-legend { font-size: 14px; color: var(--muted); line-height: 1.4; margin: 6px 0 0; }
.gu-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 2px 0 3px; }
.gu-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1ff; color: #2f4fb8; white-space: nowrap; }
.gu-tag.style { background: #e6f6ec; color: #0c5c2b; } .gu-tag.sep { background: #f1f2f8; color: #4a5078; }
.gu-one { margin: 3px 0 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.gu-flash { outline: 4px solid #f5d97a; outline-offset: 4px; border-radius: 12px; transition: outline-color .6s; }
/* switches (setup opt-in) */
.gu-set { border-top: 1px solid #e6e9fb; padding: 12px 0 6px; }
.gu-set:first-of-type { border-top: 0; }
.gu-sethead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gu-sethead b { font-size: 16px; }
.gu-sw { position: relative; width: 54px; height: 44px; flex: none; display: inline-block; }
.gu-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.gu-sw span { position: absolute; inset: 6px 0; background: #b8c3d0; border-radius: 999px; }
.gu-sw span::after { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.gu-sw input:disabled + span { background: repeating-linear-gradient(135deg, #eef0f6 0 6px, #d9dce8 6px 9px); border: 2px dashed #a3a9c2; cursor: not-allowed; }
.gu-sw input:disabled + span::after { background: #f5f6fa; box-shadow: none; top: 2px; left: 2px; content: '🔒'; font-size: 13px; line-height: 24px; text-align: center; }
/* setup */
.gu-sbox { background: #fff; border-radius: 28px; padding: 18px 20px 22px; box-shadow: 0 16px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 8px auto 0; color: var(--ink); }
.gu-sbox h2 { margin: 0; font-size: 25px; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.gu-sbox .cat { width: 140px; display: block; margin: 0 auto; }
.gu-steps { display: flex; justify-content: center; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 700; }
.gu-steps i { width: 10px; height: 10px; border-radius: 50%; background: #d4d7ea; display: inline-block; } .gu-steps i.on { background: var(--alt); }
.gu-field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.gu-field input[type=text] { min-height: 52px; width: 100%; font-size: 20px; padding: 12px 14px; border-radius: 14px; border: 3px solid var(--line); box-sizing: border-box; font-family: inherit; color: var(--ink); background: #fff; }
.gu-field input::placeholder { color: #8a90b0; }
.gu-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gu-seg { font-size: 18px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 3px solid var(--line); background: #fff; cursor: pointer; min-height: 50px; min-width: 52px; color: var(--ink); font-family: inherit; }
.gu-seg.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gu-opt { display: flex; align-items: center; gap: 12px; border: 3px solid var(--line); border-radius: 18px; padding: 12px 14px; cursor: pointer; background: #fff; text-align: left; width: 100%; font: inherit; color: inherit; }
.gu-opt.on { border-color: var(--alt); background: #eef1ff; }
.gu-opt .rd { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); flex: none; box-sizing: border-box; }
.gu-opt.on .rd { border-color: var(--alt); background: radial-gradient(var(--alt) 45%, #fff 50%); }
.gu-opt b { font-size: 18px; display: block; } .gu-opt small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.gu-star { font-size: 12px; font-weight: 700; color: #0c5c2b; background: #e6f6ec; padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.gu-hint { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.4; margin: 0; }
.gu-pin-dots { display: flex; gap: 16px; justify-content: center; } .gu-pin-dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #5a5f86; box-sizing: border-box; } .gu-pin-dots i.on { background: #5a5f86; }
.gu-pin-msg { text-align: center; min-height: 1.4em; font-size: 15px; font-weight: 700; margin: 0; } .gu-pin-msg.bad { color: #b42318; } .gu-pin-msg.good { color: #0c5c2b; }
.gu-pin-keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; justify-content: center; }
.gu-pk { height: 58px; border-radius: 18px; border: 2px solid #d4d7ea; background: #f6f7ff; font-size: 26px; font-weight: 700; cursor: pointer; color: var(--ink); font-family: inherit; }
.gu-pk:active { background: #e1e5ff; }
.gu-sumlist { margin: 0; padding: 10px 14px; background: var(--soft); border: 2px solid #dbe2ff; border-radius: 16px; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.gu-optin { border: 2px solid #dbe2ff; border-radius: 16px; padding: 10px 12px; }
.gu-box-line { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; padding: 10px 12px; border: 2px solid #dbe2ff; border-radius: 14px; cursor: pointer; }
.gu-box-line input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--alt); }
.gu-eqrow { display: flex; gap: 10px; }
.gu-sample { border-style: dashed; color: #2f4fb8; }
ul.gu-plain { margin: 4px 0; padding-left: 20px; font-size: 14px; line-height: 1.45; color: #2b3a55; }
/* Privacy & data (static panels in index.html, filled by js/grownups.js) */
.gu-slot { border: 2px dashed #b9c2ef; border-radius: 14px; padding: 10px 12px; color: var(--muted); font-size: 14px; }
.gu-danger-zone { border-top: 1px solid #f3d2d7; margin-top: 8px; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.gu-danger-zone .field-row { margin: 0; }
.gu-danger-zone .btn { width: 100%; }
#p-data .yd-row-export .btn { flex: 1 1 auto; }
.gu-btnsub { display: block; font-weight: 400; font-size: 13px; }
.gu-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef1ff; color: #2f4fb8; }
.gu-status.ok { background: #e6f6ec; color: #0c5c2b; } .gu-status.none { background: #f1f2f8; color: #4a5078; }
.gu-stline { margin: 6px 0; }
a.gu-mail { color: var(--link); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.gu-ppanel h3 { margin: 0 0 4px; }
/* Practice style */
.gu-style-card { border: 3px solid var(--line); border-radius: 20px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
.gu-style-card.on { border-color: var(--go); background: #f2fbf5; }
.gu-style-card .nm { font-size: 19px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.gu-style-card .one { font-size: 14px; color: var(--muted); line-height: 1.35; }
.gu-style-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: #2b3a55; line-height: 1.45; }
.gu-style-card .timing { font-size: 13px; color: #2b3a55; background: #f5f7ff; border-radius: 10px; padding: 6px 9px; margin-top: 4px; line-height: 1.4; }
.gu-nowbox { background: #fff; border: 3px solid var(--alt); border-radius: 18px; padding: 10px 14px; margin: 8px 0 12px; }
.gu-nowbox b { font-size: 17px; }
/* sheets */
.gu-sheet-bg { position: fixed; inset: 0; background: rgba(15,20,50,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 45; }
.gu-sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 26px 26px 0 0; padding: 18px 18px calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; max-height: 92vh; overflow: auto; color: var(--ink); box-sizing: border-box; }
.gu-sheet h3 { margin: 0; font-size: 21px; }
/* tablet */
@media (min-width: 700px) {
  .gu-head h2 { font-size: 26px; }
  .gu-item { padding: 14px 16px; } .gu-item .val { font-size: 20px; } .gu-item .one { font-size: 14px; }
  .gu-rows.groups { display: grid; grid-template-columns: 1fr 1fr; }
  .gu-rows.groups .gu-row:nth-child(2) { border-top: 0; }
}
@media (max-width: 360px) { .gu-pin-keys { grid-template-columns: repeat(3, 68px); } .gu-items { gap: 8px; } .gu-item .lbl { font-size: 14px; } }

/* v27 Practice & review: the mockup shows one row per setting (label, one line, More details); the old panel intros are not shown */
#p-review > h3, #p-review > p.muted:first-of-type, #p-warmup > h3, #p-warmup > p.muted:first-of-type { display: none; }
