#controls #editTaps { margin-top: 9px; }
#tapEditor { width: min(1000px, calc(100vw - 40px)); height: min(820px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); overflow: hidden; padding: 0; border: 1px solid #4b503d; border-radius: 20px; color: #e9ebdd; background: #1c2018; box-shadow: 0 24px 100px #000b; font: 14px Arial, sans-serif; }
#tapEditor::backdrop { background: #050704bb; backdrop-filter: blur(5px); }
#tapEditor[open] { display: flex; flex-direction: column; }
.editor-header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 30px; border-bottom: 1px solid #393f2f; text-align: left; }
.editor-header h2 { font-size: 28px; margin: 0 0 9px; letter-spacing: -.7px; }
.editor-header p:last-child { margin: 0; color: #aeb59e; font-size: 12px; line-height: 1.6; max-width: 600px; }
#tapEditor button { border: 1px solid #4a513b; background: #2d3424; color: #e1e6d5; border-radius: 9px; padding: 10px 13px; font-size: 12px; }
#tapEditor button:hover { background: #414b32; }
#tapEditor button:disabled { opacity: .4; cursor: default; }
#closeEditor { flex-shrink: 0; }
.editor-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); flex: 1; min-height: 0; overflow: hidden; }
.tap-sidebar { min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 18px 12px; border-right: 1px solid #393f2f; background: #171b14; }
#tapList { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; }
#tapList button { width: 100%; min-width: 0; max-width: 100%; display: flex; text-align: left; align-items: center; gap: 10px; border-color: transparent; background: transparent; }
#tapList button.selected { border-color: #827f4b; background: #3a3e25; }
#tapList strong { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #d9cc7c; color: #25271a; }
#tapList span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#addTap { width: 100%; margin-top: 16px; }
#tapForm { overflow-y: auto; overflow-x: hidden; padding: 24px 28px 30px; min-width: 0; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.form-heading h3 { margin: 0; font-size: 20px; }
#tapEditor #removeTap { color: #cbb1a0; background: transparent; border-color: #564638; }
#tapEditor label { display: flex; flex-direction: column; gap: 8px; color: #bcc4ac; font-size: 12px; }
#tapEditor input, #tapEditor select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #48503b; border-radius: 8px; background: #13180f; color: #f1f1df; padding: 10px 12px; font: 14px Arial, sans-serif; color-scheme: dark; }
#tapEditor input:focus, #tapEditor select:focus { outline: 2px solid #c8c075; outline-offset: 1px; }
.catalog-label select { border-color: #84804a !important; background: #30351f !important; }
.editor-hint { font-size: 11px; color: #8f9a7f; line-height: 1.6; margin: 9px 0 20px; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#tapForm h4 { margin: 26px 0 0; font-size: 14px; }
.price-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.editor-footer { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #393f2f; padding: 16px 28px; }
#editorStatus { color: #bec79b; font-size: 12px; line-height: 1.6; }
#editorStatus.error { color: #ffba90; }
#tapEditor #applyManual { background: #d9d28c; border-color: #d9d28c; color: #252a19; font-weight: bold; flex-shrink: 0; }
@media(max-width: 700px) { #tapEditor { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); } .editor-layout { display: block; overflow-y: auto; } #tapForm { overflow: visible; } .tap-sidebar { overflow: visible; border-right: 0; border-bottom: 1px solid #393f2f; } #tapList { display: flex; overflow-x: auto; } #tapList button { flex: 0 0 160px; width: 160px; max-width: 160px; } .editor-header, #tapForm { overflow-y: auto; overflow-x: hidden; padding: 20px; } .editor-fields { grid-template-columns: 1fr; } .price-fields { grid-template-columns: repeat(3, 1fr); } .editor-footer { padding: 15px; flex-wrap: wrap; } }

.beer-preview { display: flex; align-items: center; gap: 15px; margin: 0 0 22px; padding: 14px; background: #151a11; border: 1px solid #343e29; border-radius: 10px; }
#editorLogo { width: 64px; height: 64px; object-fit: contain; border-radius: 7px; flex-shrink: 0; }
.beer-preview strong { font-size: 14px; }
.beer-preview p { margin: 6px 0 0; font-size: 12px; color: #aeb59e; }
