/* Eklentilerin ortak takımı: alttan açılan panel (<dialog>), ikon boyutu. Yalnız --ext-* kullanır; önce telefon. */
.ext-sheet .vi, .ext-size .vi, .ext-cmp-add .vi, .ext-cmpbar .vi { width: 1em; height: 1em; fill: currentColor; flex: none; }
.ext-sheet { width: 100%; max-width: 100%; max-height: 88svh; margin: auto 0 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: var(--ext-field, #fff); color: var(--ext-text, #111); box-shadow: 0 -20px 50px rgba(0, 0, 0, .25); overflow: hidden; }
.ext-sheet[open] { display: flex; flex-direction: column; animation: ext-sheet-in .28s cubic-bezier(.2, .7, .2, 1); }
.ext-sheet::backdrop { background: rgba(15, 17, 23, .5); }
@keyframes ext-sheet-in { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 768px) { .ext-sheet { width: min(760px, calc(100vw - 48px)); margin: auto; border-radius: var(--ext-radius, 14px); max-height: 82vh; } }
@media (prefers-reduced-motion: reduce) { .ext-sheet[open] { animation: none; } }
.ext-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--ext-line, #e5e7eb); }
.ext-sheet__head strong { font: var(--ext-title-weight, 700) 16px/1.2 var(--ext-font-head, system-ui, sans-serif); }
.ext-sheet .ext-sheet__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; font-size: 18px; }
.ext-sheet .ext-sheet__close:hover { background: var(--ext-soft, #f1f5f9); }
.ext-sheet__body { padding: 14px 18px calc(22px + env(safe-area-inset-bottom, 0px)); overflow: auto; overscroll-behavior: contain; }
.ext-sheet__body:focus { outline: none; }

/* odak: eklenti alanları her temada aynı biçimde (dış çizgi yok, kenarlık + halka) */
:is(.ext-calc__field, .ext-pet__field) input:focus { outline: none; border-color: var(--ext-primary, #0b5ed7); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ext-primary, #0b5ed7) 18%, transparent); }
:is(.ext-calc__tabs, .ext-pet__seg) button:focus-visible, .ext-sheet .ext-sheet__close:focus-visible, .ext-size .ext-size__link:focus-visible { outline: 2px solid color-mix(in srgb, var(--ext-primary, #0b5ed7) 60%, transparent); outline-offset: 2px; }
