.mbb-brew-clock, .mbb-brew-nav { background: transparent; border: 0; color: inherit; cursor: pointer; }
.mbb-brew-clock { display: inline-flex; vertical-align: middle; padding: 5px; margin-left: 4px; border-radius: 50%; }
.mbb-brew-clock:hover { background: #e9f2e9; color: #235e35; }
[data-mbb-brew-timer] svg { vertical-align: middle; flex-shrink: 0; }
#mbb-brew-dialog { color: #263c2c; background: #fffdf7; border: 1px solid #c7d4c8; border-radius: 14px; padding: 0; width: min(650px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); box-shadow: 0 18px 70px #0005; font: 16px/1.5 system-ui, sans-serif; }
#mbb-brew-dialog::backdrop { background: #14281db3; }
#mbb-brew-dialog:not([open]) { display: none; }
#mbb-brew-dialog *, #mbb-brew-toast * { box-sizing: border-box; }
#mbb-brew-dialog [hidden], #mbb-brew-mini[hidden], #mbb-brew-mini [hidden], #mbb-brew-toast[hidden] { display: none !important; }
#mbb-brew-dialog button, #mbb-brew-toast button { font: inherit; cursor: pointer; border: 1px solid #9aa99b; border-radius: 6px; padding: 8px 12px; background: #fff; color: #263c2c; min-height: 42px; }
#mbb-brew-dialog button:hover { background: #edf3e9; }
#mbb-brew-dialog button:disabled { opacity: .55; cursor: default; }
#mbb-brew-dialog :focus-visible, #mbb-brew-mini-toggle:focus-visible, [data-mbb-brew-timer]:focus-visible { outline: 3px solid #b46b15; outline-offset: 3px; }
.mbb-brew-header, .mbb-brew-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: #edf3e9; }
.mbb-brew-header p { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
#mbb-brew-dialog h2 { font-size: 25px; margin: 0; color: inherit; }
#mbb-brew-dialog h3 { font-size: 18px; margin: 22px 0 6px; color: inherit; }
.mbb-brew-header button { font-size: 24px !important; line-height: 1; }
.mbb-brew-window-controls { display: flex; align-items: center; gap: 8px; }
.mbb-brew-header [data-brew-minimize] { font-size: 14px !important; white-space: nowrap; }
.mbb-brew-body { padding: 18px 22px; }
#mbb-brew-name { font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.mbb-brew-countdown { text-align: center; margin: 18px 0; padding: 16px 8px; background: #f4f3e9; border-radius: 10px; }
#mbb-brew-clock { font: 600 clamp(42px, 12vw, 64px)/1.25 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
#mbb-brew-phase { font-size: 14px; }
#mbb-brew-next { font-size: 14px; margin: 8px 0 0; overflow-wrap: anywhere; }
#mbb-brew-dialog label { display: block; font-size: 14px; }
#mbb-brew-dialog input[type=number], #mbb-brew-dialog input[type=text], #mbb-brew-dialog select { width: 100%; min-width: 0; padding: 9px; border: 1px solid #9aa99b; border-radius: 5px; color: #263c2c; background: white; font: inherit; }
#mbb-brew-duration { max-width: 180px; }
.mbb-brew-help { color: #536153; font-size: 13px; }
.mbb-brew-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px auto; gap: 10px; align-items: end; margin: 12px 0; }
.mbb-brew-row small { display: block; grid-column: 1 / -1; color: #536153; }
.mbb-brew-row.is-fired { border-left: 3px solid #398149; padding-left: 8px; }
.mbb-brew-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
#mbb-brew-start { background: #285f38 !important; color: white !important; border-color: #285f38 !important; }
.mbb-brew-options { margin-top: 24px; border-top: 1px solid #dce2d8; padding-top: 12px; }
.mbb-brew-options summary { cursor: pointer; }
.mbb-brew-options label, .mbb-brew-options button { margin-top: 10px; }
.mbb-brew-sound-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.mbb-brew-sound-choice select { display: block; margin-top: 4px; }
#mbb-brew-alert, #mbb-brew-error { padding: 12px; margin: 12px 0; border: 1px solid #ac741a; background: #fff0cd; border-radius: 6px; overflow-wrap: anywhere; }
#mbb-brew-alert p { white-space: pre-line; }
#mbb-brew-mini { position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 9998; box-sizing: border-box; width: min(232px, calc(100vw - 32px)); background: #285f38; color: white; border: 2px solid #fff; border-radius: 12px; font: 14px/1.4 system-ui, sans-serif; box-shadow: 0 4px 16px #0004; }
#mbb-brew-badge { display: block; box-sizing: border-box; width: 100%; padding: 10px 14px; text-align: left; background: transparent; color: inherit; border: 0; border-radius: 10px; font: inherit; cursor: pointer; }
#mbb-brew-badge:hover { background: #0002; }
#mbb-brew-mini.has-alerts { background: #fff0cd; color: #263c2c; border-color: #ac741a; }
#mbb-brew-mini-toggle { position: absolute; top: 6px; right: 8px; display: flex; box-sizing: border-box; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; background: #ffffff1a; color: inherit; border: 1px solid currentColor; border-radius: 6px; cursor: pointer; }
#mbb-brew-mini-toggle:hover { background: #0002; }
#mbb-brew-mini.has-controls .mbb-brew-mini-heading { padding-right: 40px; }
.mbb-brew-mini-heading, .mbb-brew-mini-main { display: flex; align-items: center; gap: 6px; }
.mbb-brew-mini-heading { min-height: 32px; font-size: 12px; font-weight: 600; }
.mbb-brew-mini-heading svg { width: 16px; height: 16px; }
.mbb-brew-expand-icon { margin-left: auto; font-size: 18px; }
.mbb-brew-mini-main { justify-content: space-between; margin: 3px 0; }
#mbb-brew-mini-clock { font: 600 28px/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
#mbb-brew-mini-state { font-size: 12px; }
#mbb-brew-mini-next { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
#mbb-brew-toast { position: fixed; left: 16px; bottom: calc(144px + env(safe-area-inset-bottom, 0px)); z-index: 9999; width: min(370px, calc(100vw - 32px)); padding: 14px; background: #fff0cd; color: #263c2c; border: 1px solid #ac741a; border-radius: 10px; box-shadow: 0 4px 16px #0003; font: 15px/1.5 system-ui, sans-serif; }
#mbb-brew-toast span { display: block; margin-bottom: 8px; overflow-wrap: anywhere; white-space: pre-line; max-height: 25vh; overflow: auto; }
@media (max-width: 420px) { .mbb-brew-body, .mbb-brew-header, .mbb-brew-footer { padding: 14px; } .mbb-brew-minimize-label { display: none; } .mbb-brew-header [data-brew-minimize] { font-size: 24px !important; } .mbb-brew-row { grid-template-columns: minmax(0, 1fr) 80px; } .mbb-brew-row button { grid-column: 1 / -1; justify-self: end; } }
@media print { #mbb-brew-dialog, #mbb-brew-mini, #mbb-brew-toast, .mbb-brew-clock, .mbb-brew-nav { display: none !important; } }
