.teevcd-region-bar { position: relative; z-index: 20; background: var(--butter, #fff4d2); color: var(--ink, #16254a); border-bottom: 1px solid #d3c799; font: 500 12px/1.4 var(--font, system-ui, sans-serif); }
.teevcd-region-inner { display: flex; justify-content: flex-end; width: min(calc(100% - 2 * var(--gutter, 20px)), var(--content, 1264px)); margin-inline: auto; }
.teevcd-region { position: relative; max-width: 100%; }
.teevcd-region > summary { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 40px; padding: 6px 0 6px 10px; list-style: none; cursor: pointer; }
.teevcd-region > summary::-webkit-details-marker { display: none; }
.teevcd-region > summary svg { flex: none; }
.teevcd-region > summary strong { font-weight: 750; }
.teevcd-region-panel { position: absolute; top: calc(100% + 6px); right: 0; width: min(340px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line, #ced4e3); border-radius: 14px; background: var(--paper, #fffefa); box-shadow: 0 12px 36px #16254a24; }
.teevcd-region-panel { max-height: min(620px, calc(100vh - 160px)); max-height: min(620px, calc(100dvh - 160px)); overflow-y: auto; overscroll-behavior: contain; }
.teevcd-region-panel h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }
.teevcd-region-panel label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 700; }
.teevcd-region-panel select { display: block; width: 100%; min-height: 46px; padding: 10px; border: 1px solid var(--line, #ced4e3); border-radius: 8px; background: var(--paper, #fffefa); color: var(--ink, #16254a); font: inherit; font-size: 16px; }
.teevcd-region-panel .teevcd-region-hint { margin: 14px 0; color: var(--muted, #3d4d71); font-size: 13px; line-height: 1.5; }
.teevcd-region-panel .teevcd-region-error { margin: 0 0 14px; padding: 10px; border: 1px solid var(--accent, #aa2638); border-radius: 8px; color: var(--accent, #aa2638); font-size: 13px; line-height: 1.5; }
.teevcd-region-panel button { display: block; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 8px; font: 700 14px/1.4 var(--font, system-ui, sans-serif); cursor: pointer; }
.teevcd-region-save { background: var(--accent, #aa2638); color: white; border: 1px solid var(--accent, #aa2638); }
.teevcd-region-save:hover { background: var(--accent-dark, #841a2a); }
.teevcd-region-auto { margin-top: 8px; background: transparent; color: var(--ink, #16254a); border: 1px solid var(--line, #ced4e3); }
.teevcd-region :is(summary, select, button):focus-visible { outline: 2px solid var(--accent, #aa2638); outline-offset: 3px; }
.teevcd-region-panel form[aria-busy="true"] button { opacity: .65; cursor: wait; }
@media (max-width: 480px) {
  .teevcd-region > summary { min-height: 44px; }
  .teevcd-region-panel { padding: 18px; }
}
