/*
 * designer-alas_figur.css — the figure display base designer (partials/designers/alas_figur.php,
 * assets/js/designer-alas_figur.js). Everything is scoped to .designer-alas_figur.
 */
.designer-alas_figur .af-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 14px 0 2px;
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; position: sticky; top: 72px; z-index: 4; }
.designer-alas_figur .af-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border: 0; border-radius: 10px;
    background: transparent; color: var(--ink-2); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s; }
.designer-alas_figur .af-tab .icon { width: 16px; height: 16px; }
.designer-alas_figur .af-tab:hover { color: var(--accent-text); }
.designer-alas_figur .af-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.designer-alas_figur .af-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.designer-alas_figur .af-panel .opt:first-child { border-top: 0; }


.designer-alas_figur [data-af-open] .icon { width: 15px; height: 15px; }

.designer-alas_figur .af-line { margin-bottom: 8px; }
.designer-alas_figur .af-line input { font-size: 1.05rem; font-weight: 650; }
.designer-alas_figur .af-label-row { display: flex; justify-content: space-between; gap: 8px; }
.designer-alas_figur .af-label-row em { font-style: normal; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.designer-alas_figur .af-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
@media (max-width: 480px) { .designer-alas_figur .af-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.designer-alas_figur .af-font > span { justify-items: start; text-align: left; padding: 8px 10px; min-height: 60px; align-content: center; overflow: hidden; }
.designer-alas_figur .af-font-sample { font-size: 1.1rem; line-height: 1.15; font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.designer-alas_figur .af-font input:checked + span .af-font-sample { color: var(--accent-text); }

.designer-alas_figur .af-warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; }
.designer-alas_figur .af-tip { display: flex; gap: 6px; align-items: center; margin: 4px 0 0; }
.designer-alas_figur .af-tip .icon { width: 15px; height: 15px; color: var(--accent-text); flex: none; }
.designer-alas_figur [data-af-color].is-flash { animation: af-flash 1.2s ease-out; border-radius: 12px; }
@keyframes af-flash { 0% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }

@media (max-width: 900px) {
    .designer-alas_figur .designer-canvas { aspect-ratio: 1 / 1; max-height: 62vh; }
    .designer-alas_figur .af-tabs { top: 64px; }
    .designer-alas_figur .designer-buy { position: sticky; bottom: 0; z-index: 5; background: var(--surface); padding: 0 8px 12px; margin: 0 -8px;
        box-shadow: 0 -12px 18px -14px rgba(40, 20, 80, .35); }
}
@media (max-width: 420px) { .designer-alas_figur .af-tab { font-size: .8rem; padding: 9px 3px; } .designer-alas_figur .af-tab .icon { display: none; } }

.designer-alas_figur .af-shapes, .designer-alas_figur .af-textures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .designer-alas_figur .af-shapes, .designer-alas_figur .af-textures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.designer-alas_figur .af-shape > span, .designer-alas_figur .af-texture > span { padding: 8px 4px; gap: 2px; }
.designer-alas_figur .af-shape svg, .designer-alas_figur .af-texture svg { color: var(--muted); margin: 0 auto 2px; }
.designer-alas_figur .af-shape input:checked + span svg, .designer-alas_figur .af-texture input:checked + span svg { color: var(--accent); }
.designer-alas_figur .af-shape b, .designer-alas_figur .af-texture b { font-weight: 650; font-size: .8rem; line-height: 1.2; }
.designer-alas_figur .af-edges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.designer-alas_figur .af-holes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
@media (max-width: 420px) { .designer-alas_figur .af-edges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.designer-alas_figur .af-pola { display: flex; align-items: end; gap: 10px; margin: 10px 0 6px; }
.designer-alas_figur .af-pola .slider { flex: 1; margin: 0; }
.designer-alas_figur .af-pola[hidden], .designer-alas_figur [data-af-nameopts][hidden] { display: none; }
.designer-alas_figur .af-info { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--bg-alt); font-weight: 600; }
.designer-alas_figur .af-info:empty { display: none; }
