dialog{max-width:min(560px,calc(100% - 32px));box-sizing:border-box}dialog label{display:block;margin:12px 0}dialog input,dialog select{box-sizing:border-box;max-width:100%}input[type=checkbox]{display:inline;width:auto}aside .unavailable{display:block;padding:5px 10px;opacity:.65}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}dialog [role=alert]{color:#b83c3c}html[data-theme=dark] dialog [role=alert]{color:#f3aaa1}

.protection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.protection-card{border:1px solid currentColor;border-radius:8px;padding:16px;min-width:0;overflow-wrap:anywhere}.protection-state{font-weight:700}.protection-card summary{cursor:pointer;margin-top:16px}.protection-card li{margin:6px 0}.protection-values{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.protection-values dd{margin:0}.protection-card .sub{line-height:1.6}

#aws-profile-dialog{width:640px;max-height:90vh;overflow-y:auto}#aws-profile-form select{width:100%;min-width:0}#aws-profile-form fieldset{min-width:0;overflow-wrap:anywhere}

#aws-launch-dialog{width:600px;max-height:90vh;overflow-y:auto}#aws-launch-form select{width:100%;min-width:0}#launch-summary{white-space:pre-wrap;overflow-wrap:anywhere}#identity-dialog{max-height:90vh;overflow-y:auto}

.operations-notice{border:1px solid currentColor;border-left:4px solid currentColor;border-radius:6px;padding:14px 18px;margin-bottom:20px;overflow-wrap:anywhere}.operations-notice h2{font-size:1.1rem;margin:0 0 8px}.operations-notice p{margin:8px 0;line-height:1.6}.operations-notice summary{cursor:pointer;font-weight:600}

#ami-recipe-dialog{width:560px;max-height:90dvh;overflow-y:auto}#ami-recipe-dialog textarea{box-sizing:border-box;width:100%;max-width:100%}

#action-confirm{width:600px;max-height:90dvh;overflow:auto}#action-confirm pre{font-family:inherit;line-height:1.6}

/* Related controls retain the existing Brick theme. */
.related-navigation{border:1px solid var(--border,#8885);border-radius:8px;padding:14px 16px;margin-bottom:18px}.related-navigation p{margin:0 0 12px;line-height:1.6}.related-navigation .buttons{display:flex;flex-wrap:wrap;gap:8px}.setup-intro p{line-height:1.6}.setup-steps{list-style:none;padding:0;margin:16px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.setup-steps li{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--border,#8885);border-radius:8px;padding:18px;min-width:0}.setup-steps li>div{min-width:0}.setup-steps h3{margin:0 0 10px;font-size:1rem}.setup-steps p{line-height:1.6;overflow-wrap:anywhere}.setup-steps button{white-space:normal;text-align:left;max-width:100%}.setup-number{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex-shrink:0;border:1px solid currentColor;border-radius:50%;font-weight:700}#aws-setup-guide{margin:12px 0}#aws-setup-guide pre{white-space:pre-wrap;overflow-wrap:anywhere}#page-title:focus{outline:none}@media(max-width:700px){.setup-steps{grid-template-columns:1fr}.setup-steps li{padding:14px}.related-navigation{padding:12px}.related-navigation .buttons button{white-space:normal;max-width:100%}}

.tech-stack{margin:24px 8px 10px;padding-top:18px;border-top:1px solid #ffffff30;min-width:0;color:inherit}.tech-stack-label{font-size:9px;letter-spacing:1.5px;opacity:.65;font-weight:700}.tech-stack-main{font-size:11px;line-height:1.8;margin:9px 0 12px;font-weight:600}.tech-stack summary{font-size:10px;cursor:pointer;opacity:.85}.tech-stack dl{margin:14px 0 0}.tech-stack dt{font-size:9px;opacity:.65;margin:12px 0 3px}.tech-stack dd{font-size:10px;line-height:1.75;margin:0;overflow-wrap:anywhere}.tech-stack details>p{font-size:9px;opacity:.65;margin-top:15px}@media(max-width:650px){aside .tech-stack{width:100%;margin:14px 4px 4px;padding-top:12px}.tech-stack dl{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:10px}.tech-stack dt{margin:0}.tech-stack dd{min-width:0}}

.tech-stack dd a{display:inline;padding:0;font-size:inherit;text-decoration:underline}

#migration-dialog{width:min(620px,calc(100vw - 32px));box-sizing:border-box}#migration-dialog p{overflow-wrap:anywhere;line-height:1.6}#migration-dialog input[type=checkbox]{width:auto}.migration-record{padding:16px;margin:12px 0;border:1px solid var(--border,#d5dde7);border-radius:10px}.migration-record p{overflow-wrap:anywhere}
