/* FYCOM v1.1: model-viewer material configurator */
.fy-mat-trigger{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;white-space:normal}
.fy-mat-card{box-sizing:border-box;width:100%;max-width:770px;margin:14px 0 24px;padding:22px;background:var(--surface,#fff);color:var(--text,#1c2330);border:1px solid var(--border,#d5dbe3);border-radius:18px;box-shadow:0 12px 35px #00000011}
.fy-mat-card[hidden]{display:none!important}
.fy-mat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.fy-mat-head small{font-size:10px;letter-spacing:.11em;color:#679a1d}.fy-mat-head h3{font-size:19px;margin:6px 0 0;color:inherit}.fy-mat-close{min-width:36px;height:36px;font-size:24px;border:1px solid var(--border,#d5dbe3);border-radius:10px;background:transparent;color:inherit;cursor:pointer}
.fy-mat-note{font-size:13px;line-height:1.5;opacity:.75;margin:14px 0}.fy-mat-label{display:block;font-size:12px;font-weight:650;margin-bottom:7px}.fy-mat-card select{width:100%;min-height:44px;padding:9px 12px;border-radius:9px;color:inherit;background:var(--surface,#fff);border:1px solid var(--border,#d5dbe3)}
.fy-mat-controls{margin-top:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}.fy-mat-controls>label{min-width:0;display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:550}.fy-mat-controls output{font-variant-numeric:tabular-nums;opacity:.7}.fy-mat-controls input[type=range]{width:100%;accent-color:#6a991c}.fy-mat-color input[type=color]{display:block;width:64px;height:38px;padding:3px;border-radius:8px;background:transparent;border:1px solid var(--border,#d5dbe3)}.fy-mat-controls .fy-mat-check{flex-direction:row;align-items:center;align-self:end}.fy-mat-check input{accent-color:#6a991c;width:18px;height:18px}
.fy-mat-actions{display:flex;margin-top:20px}.fy-mat-actions button{border-radius:10px;padding:10px 14px;background:transparent;color:inherit;border:1px solid var(--border,#d5dbe3);cursor:pointer}.fy-mat-status{font-size:12px;opacity:.75;min-height:1em;margin:12px 0 0}
@media(max-width:640px){.fy-mat-card{padding:16px;margin:12px 0}.fy-mat-controls{grid-template-columns:1fr}.fy-mat-trigger{max-width:100%}}
/* Use actual existing theme variables when available; explicit dark fallback */
[data-theme="dark"] .fy-mat-card,body.dark .fy-mat-card,html.dark .fy-mat-card{background:#1a1e27;color:#f4f6f9;border-color:#3b4251}
[data-theme="dark"] .fy-mat-card select,body.dark .fy-mat-card select,html.dark .fy-mat-card select{background:#212630;color:#f4f6f9;border-color:#454b59}
