/* 親友封測說明：暖黃色紙卡、深紫文字，捲動只留在 modal 的內容區。 */
.beta-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; max-width: 100%; margin-top: 8px; }
.beta-badge { color: #ffe2a8; font-size: 11px; line-height: 1.4; font-weight: 800; }
.beta-button { min-height: 44px; border: 2px solid #775495; border-radius: 13px; padding: 8px 14px; background: #fff3d6; color: #332044; font-size: 14px; font-weight: 800; line-height: 1.4; font-family: inherit; cursor: pointer; touch-action: manipulation; }
.beta-entry-button { min-height: 40px; padding: 6px 12px; background: #30223f; color: #ffe2a8; border-color: #bc9560; font-size: 12px; }
.beta-entry a { display: inline-flex; align-items: center; text-decoration: none; }
.beta-browser-note, .beta-share-status { flex-basis: 100%; max-width: 100%; color: #ffe2a8; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.beta-share-status:empty { display: none; }
.beta-share-url { flex-basis: 100%; width: 100%; max-width: 100%; padding: 8px; border: 1px solid #bc9560; border-radius: 10px; background: #fff3d6; color: #332044; font: inherit; font-size: 13px; user-select: text; -webkit-user-select: text; touch-action: auto; }
.beta-button:hover { filter: brightness(1.04); }
.beta-button:active { transform: translateY(1px); }
.beta-button:focus-visible, .beta-panel input:focus-visible, .beta-panel select:focus-visible, .beta-panel textarea:focus-visible, .beta-body:focus-visible, .beta-details summary:focus-visible { outline: 3px solid #b6446c; outline-offset: 2px; }
.beta-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgba(20, 12, 34, .82); color: #332044; touch-action: pan-y; overscroll-behavior: contain; }
.beta-panel { display: flex; flex-direction: column; width: min(100%, 670px); min-width: 0; max-height: 100%; max-height: min(820px, calc(100dvh - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom)))); overflow: hidden; border: 3px solid #ffb84d; border-radius: 24px; background: #fff3d6; color: #332044; color-scheme: light; box-shadow: 0 8px 0 #6f412b, 0 18px 45px rgba(0, 0, 0, .4); font-size: 14px; line-height: 1.6; }
.beta-head { flex: none; padding: 14px 20px 10px; background: #ffe3a4; border-bottom: 1px solid #d8b985; }
.beta-kicker { display: inline-block; color: #6d3975; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.beta-head h2 { margin: 3px 0 10px; font-size: clamp(21px, 5vw, 28px); line-height: 1.3; color: #332044; }
.beta-tabs { display: flex; gap: 8px; }
.beta-tabs .beta-button { flex: 1; min-width: 0; }
.beta-tabs [aria-pressed="true"] { background: #493056; border-color: #493056; color: #fff3d6; }
.beta-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.beta-panel [hidden] { display: none !important; }
.beta-lead { margin: 0 0 14px; font-size: 15px; font-weight: 800; color: #653958; }
.beta-controls { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px 8px; margin: 0; }
.beta-controls dt { font-weight: 900; color: #653958; }
.beta-controls dd { margin: 0; overflow-wrap: anywhere; }
.beta-sound { display: grid; gap: 6px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #ffe3a4; }
.beta-sound .beta-button { justify-self: start; }
.beta-sound-status { margin: 0; color: #653958; font-size: 12px; }
.beta-kitchen { display: grid; justify-items: start; gap: 5px; margin-top: 14px; }
.beta-kitchen a { display: inline-flex; align-items: center; text-decoration: none; }
.beta-kitchen small { color: #653958; font-size: 11px; }
.beta-notes { display: grid; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px dashed #a98070; border-radius: 14px; background: #fff9ed; }
.beta-notes p { margin: 0; }
.beta-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.beta-field { display: grid; gap: 4px; min-width: 0; }
.beta-field:first-child, .beta-wide { grid-column: 1 / -1; }
.beta-field span { font-size: 12px; font-weight: 900; color: #653958; }
.beta-panel input, .beta-panel select, .beta-panel textarea { width: 100%; min-width: 0; max-width: 100%; padding: 9px 10px; border: 1.5px solid #bd9b94; border-radius: 10px; background: #fffdf6; color: #332044; font-family: inherit; font-size: 16px; line-height: 1.5; touch-action: auto; user-select: text; -webkit-user-select: text; }
.beta-panel textarea { resize: vertical; }
.beta-panel input::placeholder, .beta-panel textarea::placeholder { color: #806a7a; opacity: 1; }
.beta-primary { width: 100%; background: #ffbd57; border-color: #98652e; font-size: 16px; }
.beta-status { min-height: 38px; margin: 8px 0; font-size: 12px; color: #653958; }
.beta-details { margin-top: 8px; }
.beta-details summary { cursor: pointer; font-size: 12px; font-weight: 800; }
.beta-preview { display: block; margin-top: 6px; font-size: 12px !important; }
.beta-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px; border-top: 1px solid #d8b985; background: #ffe3a4; }
.beta-foot p { margin: 0; font-size: 11px; line-height: 1.4; color: #653958; }
.beta-close { flex: none; background: #493056; border-color: #493056; color: #fff3d6; }
@media (max-width: 430px) { .beta-overlay { padding-left: 10px; padding-right: 10px; } .beta-panel { border-radius: 18px; } .beta-head, .beta-body { padding-left: 14px; padding-right: 14px; } .beta-foot { padding-left: 14px; padding-right: 14px; } .beta-controls { grid-template-columns: 62px minmax(0, 1fr); } }
@media (max-height: 430px) { .beta-overlay { padding-top: 8px; padding-bottom: 8px; } .beta-panel { border-radius: 16px; max-height: calc(100dvh - 16px); } .beta-head { padding-top: 8px; padding-bottom: 8px; } .beta-head h2 { margin: 0 0 6px; font-size: 20px; } .beta-tabs .beta-button { min-height: 38px; padding: 5px 10px; } .beta-body { padding-top: 10px; padding-bottom: 10px; } .beta-foot { padding-top: 6px; padding-bottom: 6px; } }
