/* Regular browser pages. 390px is a Figma reference, not an application width cap. */
.caesar-webapp { width:100%; min-height:100dvh; margin:0 auto; display:flex; flex-direction:column; background:var(--caesar-background-surface); color:var(--caesar-text-primary); }
.caesar-webapp *, .caesar-webapp *::before, .caesar-webapp *::after { box-sizing:border-box; }
.caesar-webapp > .web-header,.caesar-webapp > main,.caesar-webapp > .web-footer { width:100%; max-width:760px; margin-inline:auto; }
.web-header { min-height:48px; flex-shrink:0; display:flex; align-items:center; padding:8px 20px; }
.web-back { width:32px; height:32px; display:grid; place-items:center; background:transparent; border:0; color:var(--caesar-text-secondary); border-radius:var(--caesar-shape-full); }
.web-back:disabled { opacity:.5; cursor:default; }
.web-brand img { display:block; }
[data-theme="light"] .web-brand img { filter:brightness(.2); }
.caesar-webapp > main { flex:1; min-height:0; display:flex; flex-direction:column; }
.caesar-webapp .caesar-content { width:100%; gap:24px; padding:32px 20px 24px; }
.web-page-heading { display:flex; flex-direction:column; align-items:center; gap:24px; padding-top:32px; text-align:center; }
.web-page-heading > div { display:flex; flex-direction:column; gap:16px; width:100%; }
.web-page-heading h1,.web-page-heading p { margin:0; }
.web-page-heading p { color:var(--caesar-text-secondary); }
.web-heading-art { display:block; flex-shrink:0; }
.web-footer,.web-actions { flex-shrink:0; padding:16px 20px; padding-bottom:max(16px,env(safe-area-inset-bottom,0px)); }
.web-footer { margin-top:auto; text-align:center; color:var(--caesar-text-tertiary); }
.web-actions { margin-top:auto; display:grid; gap:12px; }
.web-actions > .caesar-button { width:100%; max-width:none; }
.web-actions p { margin:0; }
.wallet-web-step { display:flex; flex:1; min-height:0; flex-direction:column; }
.web-step-content { padding:0 20px 24px; }
.web-step-fields { margin-top:24px; display:flex; flex-direction:column; gap:24px; align-items:center; }
.web-step-fields > form { width:100%; }
.web-wait-page .web-step-content { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding-block:24px; }
.web-wait-page .web-page-heading { padding-top:0; }
.web-wait-page .web-step-fields { flex:none; }
.caesar-webapp[data-keyboard="open"] .web-heading-art { display:none; }
.caesar-webapp[data-keyboard="open"] .web-page-heading { padding-top:16px; }
.caesar-webapp[data-keyboard="open"] { min-height:var(--web-viewport-height,100dvh); }
.web-back:focus-visible,.caesar-webapp button:focus-visible { outline:2px solid var(--caesar-stroke-stroke-style-strong); outline-offset:3px; }

/* Reusable web controls; captured spinner rings and motion remain. */
/* Match native loading-button ink; retain the captured background ring. */
.caesar-button .caesar-spinner.button { display:block; width:16px; height:16px; }
.caesar-button.large .caesar-spinner.button { width:20px; height:20px; }
.caesar-button.small .caesar-spinner.button { width:12px; height:12px; }
.caesar-button[aria-busy="true"] { background-color:var(--caesar-background-button-primary-default); color:var(--caesar-text-inverse); }
.caesar-button.secondary[aria-busy="true"],.caesar-button.tertiary[aria-busy="true"] { background:transparent; color:var(--caesar-text-primary); }
.caesar-button.secondary[aria-busy="true"] { border-color:var(--caesar-stroke-stroke-style-medium); }
.caesar-button.destructive[aria-busy="true"] { background-color:var(--caesar-background-button-destructive-default); color:var(--caesar-text-button-destructive); }
.caesar-button .caesar-spinner-foreground { stroke:currentColor; }
/* Dana's labelled chevron row. Native details provides state and keyboard access. */
.caesar-details { width:100%; min-width:0; }
.caesar-details > summary { display:flex; align-items:center; justify-content:space-between; gap:var(--caesar-spacing-3); width:100%; min-height:40px; padding:0; color:var(--caesar-text-primary); list-style:none; cursor:pointer; }
.caesar-details[open] > summary { padding-block:var(--caesar-spacing-1); }
.caesar-details > summary > :first-child { min-width:0; overflow-wrap:anywhere; }
.caesar-details > summary::-webkit-details-marker { display:none; }
.caesar-details-action { display:flex; align-items:center; justify-content:flex-end; width:var(--caesar-spacing-8x); height:var(--caesar-spacing-8x); flex-shrink:0; color:var(--caesar-text-secondary); }
.caesar-details-chevron { display:block; width:16px; height:16px; flex-shrink:0; background:currentColor; mask:url('../assets/icons/iconchevrondown-1102-24156.svg') center/contain no-repeat; }
.caesar-details[open] > summary .caesar-details-chevron { mask-image:url('../assets/icons/iconchevronup-5170-46005.svg'); }
.caesar-details-body { padding-bottom:var(--caesar-spacing-3); color:var(--caesar-text-secondary); overflow-wrap:anywhere; }
.caesar-details-body p { margin:0; }
