/* RC8: size children within their columns instead of hiding oversize content. */
html,body{overflow-x:visible;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.app,.shell,.shell>*,.fields,.fields>*,.field,.card,.card-body,.card-head,.optional-block,.optional-block>.inside,.check-grid,.check-grid>*{min-width:0;max-width:100%}
.card,.notice,.context,.alert,.desc,.plain-help,.optional-block>summary{overflow-wrap:anywhere}
input,select,textarea{min-width:0;max-width:100%;box-sizing:border-box}
button{-webkit-appearance:none;appearance:none;-webkit-text-fill-color:currentColor}
.btn{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45;text-align:center}
input[type="date"]{display:block;min-width:0;min-height:46px;width:100%;padding:10px 8px;color:#f2f7fb;-webkit-text-fill-color:#f2f7fb;color-scheme:dark}
input[type="date"]::-webkit-date-and-time-value{min-height:1.5em;text-align:left;color:inherit}
input[type="date"]::-webkit-calendar-picker-indicator{opacity:1}
.date-selection{margin:3px 0;color:#bfd6e5;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.date-alternative{min-width:0;margin-top:3px;border:1px solid #365367;border-radius:9px;padding:0 10px;background:#0c1c28}
.date-alternative>summary{padding:10px 0;color:#b9ddf6;font-size:13px;font-weight:650;cursor:pointer;min-height:44px}
.date-alternative>p{font-size:13px;margin:0 0 10px;line-height:1.55;color:#bfd0dc}
.date-parts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr);gap:7px;min-width:0}
.date-parts label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:13px}
.date-parts input,.date-parts select{font-size:16px;min-height:44px;padding:8px 5px}
.date-entry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}
.date-entry-actions .btn{font-size:14px;min-height:44px}
.date-clear{background:transparent;border:0;color:#b9ddf6;font-size:13px;min-height:44px;text-decoration:underline;padding:8px}
.date-alternative .date-entry-error{color:#ffd0d7;margin-bottom:12px}
.date-parts [aria-invalid="true"]{border-color:#ff889c}
.term-popover{overflow-wrap:anywhere;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.term-popover-close{width:44px;height:44px;top:2px;right:2px}
.term-popover-more{min-height:44px}
@media(max-width:820px){
 .homex-app .shell{grid-template-columns:minmax(0,1fr)}
 .homex-sidebar{min-width:0;max-width:100%;position:relative!important;top:auto}
 .homex-sidebar .nav{max-width:100%;min-width:0}
}
@media(max-width:700px){
 /* Coordinates come from the host's visible viewport, not the full-height iframe. */
 .term-popover{max-height:none;border-radius:14px}
 input,select,textarea{font-size:16px}
 .term-trigger{cursor:pointer}
 .check-term-info{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:44px;flex-shrink:0}
}
@media(max-width:600px){
 .step-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:10px}
 .step-actions>div{display:grid!important;grid-template-columns:minmax(0,1fr);min-width:0;width:100%}
 .step-actions .btn{display:flex;width:100%;min-width:0;min-height:48px;height:auto;flex:none;padding:12px;color:#f2f7fb;-webkit-text-fill-color:#f2f7fb;font-size:16px;line-height:1.5}
 .fields,.check-grid{grid-template-columns:minmax(0,1fr)}
 .domain-top,.topline{flex-wrap:wrap}
}
