/* Phase 9 one cross-platform presentation layer for original protected WebView.
 * Zoom is user-selected and never inferred from behavior. OS reduce-motion still respected.
 * No CSS from a third-party CDN, no new font assets or external tracking.
 */
html[data-domi-zoom="115"] body{zoom:1.15;width:calc(100% / 1.26)}
html[data-domi-zoom="130"] body{zoom:1.30;width:calc(100% / 1.46)}
html[data-domi-contrast="HIGH"]{color-scheme:dark}
html[data-domi-contrast="HIGH"] body{background:#08101d!important;color:#fff!important}
html[data-domi-contrast="HIGH"] :is(header,nav,main,section,article,aside,footer,.panel,.card,.zone,.hero,.feature,.teen-hub,.privacy-panel,.family-review-panel,.family-review-metric,.family-review-region,.activity,.storyResult,.introZone,.city-room-card,.game-discovery-card){
 background:#111e34!important;color:#fff!important;border-color:#ffdf7d!important;box-shadow:none!important
}
html[data-domi-contrast="HIGH"] :is(h1,h2,h3,h4,h5,h6,p,span,small,strong,b,label,li,.muted,.eyebrow,.preview-meter){
 color:#fff!important;text-shadow:none!important
}
html[data-domi-contrast="HIGH"] :is(button,a,input,select,textarea){
 background:#223d5a!important;color:#fff!important;border:2px solid #ffdf7d!important;
 text-decoration-thickness:2px!important
}
html[data-domi-contrast="HIGH"] :is(button,a,input,select,textarea):focus-visible{
 outline:3px solid #80eaff!important;outline-offset:4px!important
}
html[data-domi-contrast="HIGH"] :is(button:disabled,[aria-disabled="true"]){opacity:.57}
html[data-domi-contrast="HIGH"] :is(.answer,.notice,[role="status"],.teen-hub-active){color:#ffe58d!important}
html[data-domi-motion="REDUCED"] *,html[data-domi-motion="REDUCED"] *::before,html[data-domi-motion="REDUCED"] *::after{
 animation:none!important;transition:none!important;scroll-behavior:auto!important;
}
@media(prefers-reduced-motion:reduce){
 html *,html *::before,html *::after{scroll-behavior:auto!important}
}
.accessibility-preview{border:1px solid #d3def0;border-radius:14px;padding:14px;
 margin:11px 0;display:grid;gap:8px;background:#fafbff}
.accessibility-preview p{margin:0;line-height:1.6}
.accessibility-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}
.accessibility-status{font-size:12px;line-height:1.7}
.accessibility-controls select{min-width:0;width:100%}
@media(max-width:460px){.accessibility-controls{grid-template-columns:1fr}}
/* Keep actual 130% layout within a phone viewport; no sideways reading. */
html[data-domi-zoom="115"] :is(.cards,.cols,.featureGrid),
html[data-domi-zoom="130"] :is(.cards,.cols,.featureGrid){grid-template-columns:minmax(0,1fr)!important}
html[data-domi-zoom="115"] .dashboard-head,
html[data-domi-zoom="130"] .dashboard-head{flex-direction:column;align-items:stretch}
html[data-domi-zoom="115"] :is(.dashboard-head,.card,.panel,.family-review-panel),
html[data-domi-zoom="130"] :is(.dashboard-head,.card,.panel,.family-review-panel){min-width:0;max-width:100%}
html[data-domi-zoom="115"] .top,
html[data-domi-zoom="130"] .top{flex-wrap:wrap}
html[data-domi-zoom="115"] :is(header,.header),
html[data-domi-zoom="130"] :is(header,.header){flex-wrap:wrap}
html[data-domi-zoom="115"] .domi-language-picker,
html[data-domi-zoom="130"] .domi-language-picker{flex:1 1 100%;max-width:100%;min-width:0}
html[data-domi-zoom="115"] .domi-language-picker select,
html[data-domi-zoom="130"] .domi-language-picker select{max-width:100%;min-width:0}


/* Chromium rounds fractional CSS zoom independently of layout boxes. Prevent
 * 1–8 phantom horizontal scroll pixels without hiding any actual control:
 * the 390px acceptance separately verifies no element bounds exceed viewport.
 */
html[data-domi-zoom="115"],html[data-domi-zoom="130"]{overflow-x:clip}
html[data-domi-zoom="115"] body,html[data-domi-zoom="130"] body{overflow-x:clip}


/* Phase10 original short family trail: same WebView HTML, no parallel pages. */
.family-trail-panel{margin:18px 0;padding:22px;border:1px solid #d9e5f1;border-radius:19px;background:#fff;color:#243956}
.family-trail-panel h3{margin:0 0 10px;font-size:21px}
.family-trail-note{font-size:12px;line-height:1.7;color:#53647c}
.family-trail-rows{display:grid;gap:11px}
.family-trail-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#f7faff;padding:9px;border:1px solid #dee7f4;border-radius:12px}
.family-trail-row select{flex:1 1 190px;max-width:100%;min-width:0;padding:10px;border-radius:9px;background:#fff;color:#243956;border:1px solid #cdd8e8}
.family-trail-index{display:grid;place-items:center;font-weight:900;width:24px;flex:0 0 24px}
.family-trail-row button,.family-trail-panel button{background:#5447bc;color:#fff;border-radius:9px;padding:10px 12px;font-size:12px;cursor:pointer}
.family-trail-row button.secondary{background:#e7eaff;color:#352c80}
.family-trail-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
.family-trail-step{border:1px solid #d7e3f0;border-radius:13px;background:#f8faff;padding:14px;display:grid;gap:9px}
.family-trail-step strong{font-size:15px;overflow-wrap:anywhere}
.family-trail-step small{color:#496680}
.family-trail-panel [disabled]{opacity:.55;cursor:not-allowed}
.family-trail-error{color:#a12d37}
html[data-domi-contrast="HIGH"] :is(.family-trail-panel,.family-trail-row,.family-trail-step){background:#111e34!important;color:#fff!important;border-color:#ffdf7d!important}
html[data-domi-contrast="HIGH"] .family-trail-note,html[data-domi-contrast="HIGH"] .family-trail-step small{color:#fff!important}
@media(max-width:600px){.family-trail-panel{padding:15px}.family-trail-rows{grid-template-columns:minmax(0,1fr)}.family-trail-row select{flex-basis:100%}.family-trail-row button{flex:1 1 28%}}


/* Phase 11 single protected Web/Android WebView rest and return. */
.domi-calm-settings{margin:14px 0;padding:15px;border:1px solid #cbdaf0;border-radius:13px;display:grid;gap:10px;background:#fafbff}
.domi-calm-settings label{display:grid;gap:8px;line-height:1.6}
.domi-calm-settings select{width:100%;padding:9px;border-radius:9px;max-width:320px}
.domi-calm-settings button{justify-self:start;padding:10px;border-radius:9px}
.domi-calm-host{position:relative;z-index:60}
.domi-calm-trigger{position:fixed;right:12px;bottom:16px;z-index:70;
 border:2px solid #d1e5e0;border-radius:999px;background:#174a48;color:#fff;
 padding:10px 16px;box-shadow:0 4px 15px #0003;font-weight:700;cursor:pointer}
.domi-calm-overlay{position:fixed;inset:0;z-index:75;display:grid;place-items:center;
 padding:14px;background:rgba(9,24,34,.96);overscroll-behavior:contain}
.domi-calm-dialog{background:#f8fffc;color:#153b3b;border-radius:24px;border:3px solid #a1dfc8;
 max-width:520px;width:100%;padding:clamp(18px,4vw,34px);text-align:center;max-height:94vh;overflow-y:auto}
.domi-calm-dialog h2,.domi-calm-dialog h3{margin:8px 0;color:#123d3b}
.domi-calm-dialog p{font-size:14px;line-height:1.7}
.domi-calm-icon{font-size:64px}
.domi-calm-counter{font-size:26px!important;font-weight:900;color:#155c50}
.domi-calm-choices{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.domi-calm-choices button{background:#19544e;color:#fff;padding:12px 16px;border-radius:12px;
 border:2px solid #81caba;cursor:pointer;font-weight:700}
.domi-calm-error{color:#c63a42;font-size:12px;background:#fff}
body.domi-calm-paused :is(video,audio){visibility:hidden!important}
html[data-domi-contrast="HIGH"] .domi-calm-dialog{background:#0d182b!important;color:#fff!important;border-color:#ffdf7d}
html[data-domi-contrast="HIGH"] .domi-calm-dialog :is(h2,h3,p){color:#fff!important}
@media(max-width:390px){.domi-calm-dialog{padding:16px}.domi-calm-choices button{flex:1 1 100%}}


/* Phase12: one original parent-defined schedule; original Web + Android WebView. */
.domi-content-window-controls,.domi-window-panel{margin:18px 0;padding:17px;border:1px solid #c9dbe8;border-radius:16px;background:#f7fbff;color:#263c50}
.domi-content-window-controls h4,.domi-window-panel h3{margin:0 0 12px}
.domi-content-window-controls label{display:grid;gap:7px;margin:10px 0;line-height:1.5;font-size:13px}
.domi-content-window-controls select{min-width:0;width:100%;max-width:420px;border:1px solid #abbdd4;border-radius:10px;padding:12px;background:#fff;color:#172c42}
.domi-content-window-controls button{border-radius:10px;background:#2d5688;color:#fff;padding:11px 16px;cursor:pointer}
.domi-content-window-controls [disabled]{opacity:.55;cursor:not-allowed}
.domi-window-status-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
.domi-window-stat{display:grid;gap:7px;border:1px solid #cbdbe8;padding:12px;border-radius:10px;background:#fff;overflow-wrap:anywhere}
.domi-window-stat[data-allowed=false]{border-style:dashed}
.domi-window-stat span{font-size:13px;font-weight:700}
.domi-window-stat small,.domi-window-caption{color:#52677b;line-height:1.6;font-size:12px}
.domi-window-error{color:#af333c}
html[data-domi-contrast="HIGH"] :is(.domi-content-window-controls,.domi-window-panel,.domi-window-stat){background:#0b172a!important;color:#fff!important;border-color:#ffdf7d!important}
html[data-domi-contrast="HIGH"] :is(.domi-window-caption,.domi-window-stat small){color:#fff!important}
@media(max-width:460px){.domi-content-window-controls,.domi-window-panel{padding:13px}.domi-window-status-row{grid-template-columns:1fr}}


/* Phase13: one adult-owned category budget drawn from ORIGINAL preview ledger. */
.domi-daily-budget-controls,.domi-daily-budget-panel{margin:14px 0;padding:16px;border-radius:14px;border:1px solid #bfcee2;background:#f6faff;color:#23405a}
.domi-daily-budget-controls label{display:grid;gap:7px;margin:10px 0;line-height:1.5}
.domi-daily-budget-controls select{width:100%;max-width:430px;padding:11px;border:1px solid #9baed2;border-radius:10px;background:#fff;color:#263952}
.domi-daily-budget-controls button{padding:11px 15px;border-radius:10px;background:#22588e;color:#fff}
.domi-daily-budget-controls button:disabled{opacity:.5}
.domi-daily-budget-status{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px}
.domi-daily-budget-card{display:grid;gap:6px;background:#fff;border:1px solid #c4d8e7;padding:12px;border-radius:11px}
.domi-daily-budget-card[data-exhausted=true]{border-style:dashed;border-color:#bc786d}
.domi-daily-budget-card p{margin:1px 0;font-size:13px}
.domi-daily-budget-alert{font-weight:700;color:#9f3434}
.domi-daily-budget-note{color:#51637e;font-size:12px;line-height:1.7}
html[data-domi-contrast="HIGH"] :is(.domi-daily-budget-controls,.domi-daily-budget-panel,.domi-daily-budget-card){background:#101f32!important;color:#fff!important;border-color:#ffe178!important}
html[data-domi-contrast="HIGH"] .domi-daily-budget-note{color:#fff!important}
@media(max-width:390px){.domi-daily-budget-controls,.domi-daily-budget-panel{padding:12px}.domi-daily-budget-status{grid-template-columns:1fr}}


/* Phase14: one original approved private video shelf for guardian only. */
.domi-guardian-shelf,.domi-teen-shelf{padding:14px;border:1px solid #b8d1e2;border-radius:14px;background:#f5fbfe;color:#243d50;margin:14px 0}
.domi-guardian-shelf h4{margin:0 0 7px}
.domi-shelf-note{font-size:12px;color:#48677b;line-height:1.7}
.domi-shelf-list{display:grid;gap:9px}
.domi-shelf-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:10px;border:1px solid #d6e2eb;border-radius:10px;background:#fff}
.domi-shelf-row small{flex:1 1 110px}
.domi-teen-shelf{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.domi-teen-shelf .domi-shelf-note{flex-basis:100%;margin:3px}
.domi-guardian-shelf button,.domi-teen-shelf button{border-radius:10px;background:#215b85;color:white;padding:9px 12px;cursor:pointer}
.domi-teen-shelf button[hidden]{display:none!important}
.domi-teen-shelf button:disabled,.domi-guardian-shelf button:disabled{opacity:.55;cursor:not-allowed}
html[data-domi-contrast="HIGH"] :is(.domi-guardian-shelf,.domi-teen-shelf,.domi-shelf-row){background:#122238!important;color:#fff!important;border-color:#ffd975!important}
html[data-domi-contrast="HIGH"] .domi-shelf-note{color:#fff!important}
@media(max-width:390px){.domi-guardian-shelf,.domi-teen-shelf{padding:11px}.domi-teen-shelf button{flex:1 1 145px}}


/* Phase15 — same parental content deny list; no alternate filter.
 * Responsive controls shown identically by Web and original Android WebView. */
.domi-reviewed-video-controls{padding:16px;margin:15px 0;border:1px solid #bbcee5;border-radius:14px;background:#f8fbff;color:#243b55}
.domi-reviewed-video-controls h4{margin:0 0 8px}
.domi-reviewed-video-list{display:grid;gap:10px}
.domi-reviewed-video-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center;padding:11px;border:1px solid #cfdae8;border-radius:11px;background:#fff}
.domi-reviewed-video-row strong{flex:1 1 120px}
.domi-reviewed-video-row small{font-size:12px}
.domi-reviewed-video-row[data-hidden=true]{border-style:dashed;border-color:#b17974}
.domi-reviewed-video-controls button{border:0;border-radius:10px;padding:11px 13px;background:#22598a;color:#fff;cursor:pointer}
.domi-reviewed-video-controls button:disabled{opacity:.5;cursor:not-allowed}
.domi-reviewed-video-note{font-size:12px;line-height:1.65;color:#46607c}
html[data-domi-contrast="HIGH"] :is(.domi-reviewed-video-controls,.domi-reviewed-video-row){background:#101e32!important;color:#fff!important;border-color:#ffdf83!important}
html[data-domi-contrast="HIGH"] .domi-reviewed-video-note{color:#fff!important}
@media(max-width:390px){.domi-reviewed-video-controls{padding:12px}.domi-reviewed-video-row button{width:100%}}


/* Phase16 original guardian-only 7-local-day parent preview chart and CSV.
 * Same private Web and Android WebView DOM, no third-party visualization.
 */
.domi-week-preview{margin:20px 0;padding:18px;border:1px solid #c5d8e5;border-radius:16px;background:#f7fbff;color:#213c50;max-width:100%;min-width:0}
.domi-week-preview h4{margin:0 0 8px}
.domi-week-disclaimer{font-size:12px;line-height:1.75;color:#4b667d;overflow-wrap:anywhere}
.domi-week-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,118px),1fr));gap:8px;margin:12px 0}
.domi-week-total{display:grid;gap:6px;min-width:0;background:#fff;border:1px solid #ccdfed;border-radius:12px;padding:10px}
.domi-week-total strong{font-variant-numeric:tabular-nums;font-size:21px}
.domi-week-total small{font-size:11px;line-height:1.5}
.domi-week-grid{display:grid;gap:8px;max-width:100%}
.domi-week-row{display:grid;grid-template-columns:minmax(70px,86px) minmax(35px,1fr) minmax(42px,65px);gap:7px;align-items:center;font-size:12px}
.domi-week-row time,.domi-week-row strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.domi-week-line{display:flex;background:#e1ebf0;height:18px;border-radius:5px;overflow:hidden;min-width:0}
.domi-week-segment{display:block;height:100%;flex:0 0 auto;min-width:0}
.domi-week-segment.game{background:#317d74}.domi-week-segment.video{background:#7568b8}.domi-week-segment.other{background:#8d9db1}
.domi-week-export-toggle{border:1px solid #366a95;border-radius:11px;padding:10px 12px;background:#205f91;color:white;cursor:pointer;margin-top:12px}
.domi-week-export{max-width:100%;min-width:0}
.domi-week-export[hidden]{display:none!important}
.domi-week-export textarea{display:block;width:100%;max-width:100%;min-width:0;white-space:pre;overflow:auto;border:1px solid #acc4d5;border-radius:10px;padding:11px;font-family:ui-monospace,monospace;font-size:11px}
html[data-domi-contrast="HIGH"] :is(.domi-week-preview,.domi-week-total){background:#122138!important;color:#fff!important;border-color:#ffe078!important}
html[data-domi-contrast="HIGH"] .domi-week-disclaimer{color:#fff!important}
@media(max-width:390px){.domi-week-preview{padding:11px}.domi-week-row{grid-template-columns:75px minmax(25px,1fr) 46px;gap:5px;font-size:11px}}


/* Phase17: retention is part of original private Parent Center, same Android WebView. */
.domi-privacy-retention{background:#f6fafb;border:1px solid #bed3de;border-radius:14px;padding:16px;margin:18px 0;display:grid;gap:9px;max-width:100%;overflow-wrap:anywhere}
.domi-privacy-retention h4{margin:0}
.domi-retention-desc,.domi-retention-note,.domi-retention-status{font-size:13px;line-height:1.7;margin:2px 0}
.domi-retention-count{font-weight:700;margin:2px 0}
.domi-retention-actions{display:flex;flex-wrap:wrap;gap:9px}
.domi-retention-actions button{background:#245473;color:#fff;padding:11px 15px;border-radius:10px;cursor:pointer}
.domi-retention-actions button:last-child{background:#8c3940}
.domi-retention-actions button:disabled{opacity:.55;cursor:not-allowed}
html[data-domi-contrast="HIGH"] .domi-privacy-retention{background:#101c2d!important;color:#fff!important;border-color:#ffdd75!important}
@media(max-width:390px){.domi-privacy-retention{padding:12px}.domi-retention-actions button{flex:1 1 140px}}

/* Phase20: original responsive Guardian activity detail reused by Android WebView. */
.parent-local-week{margin:.65rem 0;border:1px solid var(--border,#c4d4e6);border-radius:14px;
 padding:.7rem;max-width:100%;overflow-wrap:anywhere}
.parent-local-week summary{cursor:pointer;font-weight:700;line-height:1.6}
.parent-week-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));
 gap:.45rem;margin-top:.7rem}
.parent-week-day{display:flex;flex-direction:column;gap:.22rem;border-radius:9px;
 background:rgba(110,145,193,.08);padding:.5rem .65rem;line-height:1.5}
.parent-week-day time{font-weight:700}
.parent-week-day small{overflow-wrap:anywhere}
@media (max-width:430px){.parent-local-week{padding:.55rem}.parent-week-grid{grid-template-columns:minmax(0,1fr)}}

/* Phase22: original Parent Center and online Android WebView guided use. */
.guardian-journey{margin:20px 0 26px;padding:clamp(16px,3vw,26px);min-width:0;
 background:linear-gradient(135deg,#f3f2ff,#edfaff 65%,#fff);
 border:1px solid #d6e0ef;border-radius:23px}
.guardian-journey h2{font-size:clamp(21px,3vw,28px);color:#303875;margin:0 0 12px}
.journey-lead,.journey-stage p{line-height:1.75;color:#51617b}
.journey-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.journey-stage{background:#fff;border:1px solid #e0e6f3;border-radius:16px;padding:18px;min-width:0}
.journey-stage h3{font-size:17px;color:#243560;margin:0 0 9px}
.journey-stage p{font-size:13px;overflow-wrap:anywhere}
.journey-stage label{margin:12px 0}
.journey-stage button{margin:5px 6px 4px 0;max-width:100%;font-size:13px}
.guardian-journey[dir=rtl] .journey-stage button{margin:5px 0 4px 6px}
.journey-stage .journey-launch{background:#4e44bd}
.journey-warning{padding:10px;border-inline-start:4px solid #bf7934;
 background:#fff6e9;color:#7c4317!important;border-radius:7px}
.journey-facts{font-weight:700;color:#304c75!important}
.journey-footnote{font-size:12px;color:#546985;line-height:1.7}
.guardian-journey button:focus-visible,.guardian-journey select:focus-visible{outline:3px solid #1281c1;outline-offset:3px}
@media(max-width:650px){.journey-grid{grid-template-columns:minmax(0,1fr)}.guardian-journey{padding:15px}.journey-stage button{width:100%;margin:5px 0}}
@media(prefers-reduced-motion:reduce){.guardian-journey *{scroll-behavior:auto!important;transition:none!important}}
/* Long synthetic guardian email must not push Logout beyond 390px viewport. */
.dashboard-head>div{min-width:0;flex:1}
.dashboard-head #who{overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.dashboard-head #logout{flex-shrink:0}
