/* Katch controls: one shared anatomy, three emphasis levels, 44px touch targets. */
:root { --control-radius:999px; --control-height:46px; --control-focus:#50785b; --control-surface:#edf1eb; }
.control.control { appearance:none; -webkit-appearance:none; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:var(--control-height); min-width:44px; height:auto; padding:11px 18px; border:1px solid transparent; border-radius:var(--control-radius); margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:.875rem; line-height:1.35; font-weight:600; letter-spacing:-.01em; text-decoration:none; text-align:center; vertical-align:middle; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; box-shadow:none; transition:background-color .15s,color .15s,box-shadow .15s; }
.control-icon { display:block; width:20px; height:20px; flex:0 0 20px; }
.control-label { min-width:0; }
.control.control--primary { background:var(--green); border-color:var(--green); color:#fff; }
.control.control--secondary { background:var(--control-surface); border-color:transparent; color:#304d37; }
.control.control--quiet { background:transparent; border-color:transparent; color:#385840; }
.control.control--icon { width:44px; min-height:44px; height:44px; padding:11px; flex:none; }
.control--icon .control-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.control:disabled { opacity:.45; cursor:not-allowed; }
.control[aria-busy="true"] { cursor:progress; }
.control.control:active:not(:disabled) { background:#dce5d9; color:#28432f; }
.control.control--primary:active:not(:disabled) { background:#243f2b; color:white; }
@media(hover:hover) {
  .control.control--primary:hover:not(:disabled) { background:#2c4933; transform:none; }
  .control.control--secondary:hover:not(:disabled),.control.control--quiet:hover:not(:disabled) { background:#e1e9dd; transform:none; }
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid var(--control-focus); outline-offset:3px; }
html[data-input-mode="pointer"] :is(button,a,summary):focus { outline:none; }
html[data-input-mode="keyboard"] :is(button,a,summary):focus { outline:2px solid var(--control-focus); outline-offset:3px; }
.capture-button.control { align-self:center; width:auto; min-width:164px; }
.capture-button.control.control--icon { width:48px; min-width:48px; height:48px; min-height:48px; padding:12px; }
.capture-button.control>span:first-child { font-size:inherit; }
.button-dark.control { width:100%; margin-top:22px; min-height:48px; }
.close-button.control { background:var(--control-surface); color:#405444; }
.reader-toolbar { min-height:66px; display:flex; gap:12px; align-items:center; padding:10px 20px; }
.toolbar-label { margin-right:auto; color:#6c766a; font-size:.78rem; font-weight:500; }
.reader-toolbar .control { min-height:44px; }
.reader-toolbar .reader-watch { padding:10px 16px; }
.reader-player .control--secondary { color:white; background:#2b342c; }
.reader-player .toolbar-label { color:#c7cfc5; }
.reader-player .control:focus-visible { outline-color:#d9f45b; }
.reader-nav { gap:4px; align-items:center; padding-bottom:12px; }
.reader-nav .control { padding:10px 13px; font-size:.8rem; }
.reader-organise>summary { list-style:none; display:flex; align-items:center; gap:10px; min-height:44px; width:fit-content; padding:9px 12px; border-radius:12px; background:#f2f4ef; font-size:.78rem; }
.reader-organise>summary::-webkit-details-marker { display:none; }
.reader-organise>summary::after { content:''; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); margin-left:3px; }
.reader-organise[open]>summary::after { transform:translateY(2px) rotate(225deg); }
.organise-form .control { justify-self:start; }
.more-recipes.control { display:flex; width:fit-content; margin:24px auto; }
.more-recipes[hidden] { display:none; }
.setup-actions .control { margin-top:12px; }
.upload { border-radius:14px; background:#f5f7f2; border-color:#dce2d7; gap:12px; }
.upload-icon { background:transparent; }
.control-spinner { display:block; width:18px; height:18px; flex:0 0 18px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:control-spin .8s linear infinite; }
@keyframes control-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .control { transition:none; } .control-spinner { animation:none; border-style:dotted; } }
@media(max-width:760px) {
  .capture-button.control { margin-top:20px; width:auto; padding:12px 20px; }
  .reader-toolbar { padding:calc(8px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left)); }
  .reader-nav { padding-left:9px; padding-right:9px; flex-wrap:wrap; }
}
