/* Approved shared UI theme. Catalogue: UI_RESOURCES.json / design/UI_RESOURCES.md. */
.ui-theme-comparison{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:22px 0 0}
.ui-theme-comparison>p{font-size:15px;color:#bcd1ca}
.ui-theme-switch{display:flex;gap:6px;padding:4px;max-width:100%;border-radius:16px;background:#021c29a8}
.ui-theme-switch button{min-width:0;min-height:48px;padding:10px 20px;border:0;border-radius:12px;background:none;color:#e0e4d2;font:17px/1.15 'Alegreya Sans',sans-serif;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ui-theme-switch button[aria-pressed="true"]{background:#cdbb87;color:#163039}
.ui-theme-switch button:focus-visible{outline:0;filter:drop-shadow(0 0 7px #f4d391)}
body[data-ui-theme="calm"]{--ui-calm-panel:#082b38ed;--ui-calm-well:#133e4a;--ui-calm-primary:#d5bf8b url('../assets/ui-ocean-v3/button-pearl.webp') center/800px auto no-repeat;--ui-calm-secondary:#174a59 url('../assets/ui-ocean-v3/button-tide.webp') center/800px auto no-repeat;--ui-button-gold-background:var(--ui-calm-primary);--ui-button-ocean-background:var(--ui-calm-secondary);background-color:#062735;color:#eff0dd}
body[data-ui-theme="calm"][data-ui-library]::before{background:#062735;background-image:none}
body[data-ui-theme="calm"][data-ui-library] h1{font-size:clamp(52px,6vw,80px);line-height:1.03;letter-spacing:-1px}
body[data-ui-theme="calm"][data-ui-library] h2{font-size:clamp(30px,3vw,40px)}
body[data-ui-theme="calm"] .library-intro{padding:46px 0 32px;gap:28px}
body[data-ui-theme="calm"] .intro-art img{height:270px;filter:none}
body[data-ui-theme="calm"] .intro-art::before{content:none}
body[data-ui-theme="calm"] .intro-art span{font:18px/1.4 'Alegreya Sans',sans-serif}
body[data-ui-theme="calm"] .intro-copy{font-size:20px;max-width:490px}
body[data-ui-theme="calm"] .library-principles{border:0;padding:16px 0;gap:18px}
body[data-ui-theme="calm"] .library-section{padding-top:50px}
body[data-ui-theme="calm"] .section-heading{gap:32px;margin-bottom:24px}
body[data-ui-theme="calm"] .section-heading>p{font-size:18px}
body[data-ui-theme="calm"] .resource-grid{gap:20px}
body[data-ui-theme="calm"] .resource-block{background:#0b3240;border:0;border-radius:24px;padding:24px}
body[data-ui-theme="calm"] .resource-block>p{margin:8px 0 18px}
body[data-ui-theme="calm"] .ui-frame[data-ui-frame="ocean-gold"]{background:var(--ui-calm-panel)!important;border-radius:24px!important;backdrop-filter:blur(8px);box-shadow:none!important}
body[data-ui-theme="calm"] .ui-frame::before,body[data-ui-theme="calm"] .ui-frame::after{content:none;background:none}
body[data-ui-theme="calm"] .ui-button[data-ui-button]{--ui-button-width:140px;--ui-button-height:52px;min-height:52px!important;padding:12px 20px;border-radius:16px 13px 17px 14px!important;background:var(--ui-command-background,var(--ui-calm-secondary))!important;color:var(--ui-command-ink,#f4edcf)!important;font:600 18px/1.2 'Alegreya Sans',sans-serif;text-shadow:none}
body[data-ui-theme="calm"] .ui-button[data-ui-button="gold-relief"]{--ui-command-background:var(--ui-calm-primary);--ui-command-ink:#15323a}
body[data-ui-theme="calm"] .ui-button[data-ui-button]:disabled{opacity:.42}
body[data-ui-theme="calm"] .ui-icon-button{min-width:48px;min-height:48px;width:48px;height:48px;padding:10px;border-radius:15px;background:#174653;box-shadow:none;font-size:26px}
body[data-ui-theme="calm"] .ui-icon-button img{width:27px;height:27px}
body[data-ui-theme="calm"] .ui-surface{background:none;border:0;box-shadow:none}
body[data-ui-theme="calm"] .ui-surface[data-ui-surface="well"]{background:#133e4a!important;border-radius:16px}
body[data-ui-theme="calm"] .resource-block .ui-choice{min-height:168px;padding:14px 8px;background:none;border-radius:18px;gap:8px}
body[data-ui-theme="calm"] .resource-block .ui-choice img{height:110px;filter:none}
body[data-ui-theme="calm"] .resource-block .ui-choice strong{font-size:22px}
body[data-ui-theme="calm"] .resource-block .ui-choice[aria-pressed="true"]{background:#24505a}
body[data-ui-theme="calm"] .ui-choice[aria-pressed="true"]::after{content:none}
body[data-ui-theme="calm"] .ui-badge{padding:3px 2px;font-size:15px;text-shadow:none}
body[data-ui-theme="calm"] .ui-tabs{padding:4px;gap:4px;background:#062430;border-radius:16px}
body[data-ui-theme="calm"] .ui-tabs button{flex:1 1 92px;min-height:48px;padding:10px 12px;border-radius:12px;background:none;color:#d2dfd6;font:17px/1.2 'Alegreya Sans',sans-serif}
body[data-ui-theme="calm"] .ui-tabs button[aria-pressed="true"]{background:#bfc4a1;color:#14323b}
body[data-ui-theme="calm"] .ui-field{min-height:48px;padding:12px 16px;border-radius:14px;background:#062733;font-size:17px}
body[data-ui-theme="calm"] .ui-notice{padding:14px 16px;border-radius:14px;background:#18424b;font-size:17px}
body[data-ui-theme="calm"] .ui-divider{display:none}
body[data-ui-theme="calm"] .ui-progress-unit{max-width:24px}
body[data-ui-theme="calm"] .surface-samples>div{min-height:52px;padding:14px 16px;background:#133d49;border-radius:14px}
body[data-ui-theme="calm"] .resize-lab{background:#0b3240;border-radius:24px;padding:24px}
body[data-ui-theme="calm"] #resize-sample{padding:28px 20px}
body[data-ui-theme="calm"] .specimen{padding:20px}
body[data-ui-theme="calm"] .specimen-compact{height:112px}
body[data-ui-theme="calm"] .specimen-panel{height:156px}
body[data-ui-theme="calm"] .specimen-wide{height:200px}
body[data-ui-theme="calm"] .composition{gap:24px;padding:24px;border-radius:24px}
body[data-ui-theme="calm"] .composition-panel{padding:24px}
body[data-ui-theme="calm"] .composition-panel header{margin-bottom:18px}
body[data-ui-theme="calm"] .composition-panel header .overline{padding-left:0}
body[data-ui-theme="calm"] .composition-panel h3{font-size:27px}
body[data-ui-theme="calm"] .composition-place{padding:12px!important}
body[data-ui-theme="calm"] .composition-place img{width:48px;height:48px}
body[data-ui-theme="calm"] .composition-place strong{font-size:22px}
body[data-ui-theme="calm"] .composition-summary{margin-top:18px;padding-top:12px;gap:12px}
body[data-ui-theme="calm"] .composition-panel .ui-button{width:100%}
body[data-ui-theme="calm"] .demo-dialog-content{padding:28px 24px}
body[data-ui-theme="calm"] .demo-dialog-content h2{font-size:32px}
body[data-ui-theme="calm"] .dialog-art{width:52px;height:72px;margin-bottom:8px}
body[data-ui-theme="calm"] .dialog-close{right:12px;top:12px}
body[data-ui-theme="calm"] .library-footer{margin-top:48px}
@media(max-width:650px){
 .ui-theme-comparison{margin-top:16px;gap:8px}
 .ui-theme-switch{width:100%}
 .ui-theme-switch button{flex:1;padding:10px 12px;font-size:16px}
 body[data-ui-theme="calm"] .library-intro{padding:32px 0 20px;gap:18px}
 body[data-ui-theme="calm"][data-ui-library] h1{font-size:52px}
 body[data-ui-theme="calm"] .intro-art img{height:190px}
 body[data-ui-theme="calm"] .intro-copy{font-size:18px;margin-top:18px}
 body[data-ui-theme="calm"] .library-principles{gap:12px}
 body[data-ui-theme="calm"] .library-section{padding-top:36px}
 body[data-ui-theme="calm"] .section-heading{gap:16px;margin-bottom:22px}
 body[data-ui-theme="calm"] .resource-block{padding:22px 16px;border-radius:22px}
 body[data-ui-theme="calm"] .resource-block .ui-choice{min-height:156px;padding:12px 6px}
 body[data-ui-theme="calm"] .resource-block .ui-choice img{height:94px}
 body[data-ui-theme="calm"] .resource-block .ui-choice strong{font-size:20px}
 body[data-ui-theme="calm"] .resource-block .ui-tabs button{font-size:16px;flex-basis:84px;padding:10px 8px}
 body[data-ui-theme="calm"] .composition,body[data-ui-theme="calm"] .composition[data-format="phone"]{padding:16px 10px;gap:18px}
 body[data-ui-theme="calm"] .composition-panel,body[data-ui-theme="calm"] .composition[data-format="phone"] .composition-panel{padding:20px 16px}
 body[data-ui-theme="calm"] .composition-panel h3,body[data-ui-theme="calm"] .composition[data-format="phone"] .composition-panel h3{font-size:24px}
 body[data-ui-theme="calm"] .composition-place strong{font-size:20px}
 body[data-ui-theme="calm"] .resize-lab{padding:22px 16px}
}
