/* Minimal controls with comfortable hit areas, without raised button edges. */
.shell :is(button.primary,button.secondary),#editor :is(button.primary,button.secondary){min-height:44px;padding:10px 14px;border-radius:10px;font-size:13px;font-weight:500;line-height:1.35;box-shadow:none;letter-spacing:0;}
.shell button.secondary,#editor button.secondary{background:transparent;border:1px solid var(--line);color:var(--petrol);}
.shell button.primary,#editor button.primary{border:1px solid transparent;}
.shell :is(button.primary,button.secondary):active:not(:disabled),#editor :is(button.primary,button.secondary):active:not(:disabled){box-shadow:none;transform:translateY(1px);}
.shell :is(button.primary,button.secondary):hover:not(:disabled),#editor :is(button.primary,button.secondary):hover:not(:disabled){box-shadow:none;transform:none;}
.shell :is(button.primary,button.secondary):focus-visible,#editor :is(button.primary,button.secondary):focus-visible{outline:2px solid var(--petrol);outline-offset:3px;}
.shell .page-heading button.primary{min-height:44px;padding:10px 14px;}
.shell .toolbar{gap:8px;}
.shell .rt-switch{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--paper);max-width:100%;}
.shell .rt-switch button{border:0;border-radius:9px;padding:9px 16px;box-shadow:none;}
.shell .rt-switch button[aria-pressed=true]{background:var(--white);color:var(--petrol);font-weight:600;}
.shell .rt-switch button[aria-pressed=false]{background:transparent;color:var(--muted);}
.shell .app-quick-tile{box-shadow:0 2px 10px #174c4f06;}
.shell .app-quick-tile:active{box-shadow:none;}
[data-theme=dark] .shell button.secondary,[data-theme=dark] #editor button.secondary{color:var(--ink);background:transparent;box-shadow:none;}
[data-theme=dark] .shell .rt-switch button[aria-pressed=true]{background:#294441;color:#d7ede5;}
[data-theme=dark] .shell .app-quick-tile{box-shadow:none;}
@media(prefers-reduced-motion:reduce){.shell :is(button.primary,button.secondary):active,#editor :is(button.primary,button.secondary):active{transform:none;}}
@media(forced-colors:active){.shell :is(button.primary,button.secondary),#editor :is(button.primary,button.secondary){border:1px solid ButtonText;}}

/* Destructive actions retain their warning color with the lighter controls. */
.shell button.secondary:is(.danger,.danger-button),#editor button.secondary:is(.danger,.danger-button){color:#b74435;}
[data-theme=dark] .shell button.secondary:is(.danger,.danger-button),[data-theme=dark] #editor button.secondary:is(.danger,.danger-button){color:#ffad99;}
