/* FDS extension: TTL-11 uses the jewelry configurator's three-pane layout. */
.ttl11-preview { background: var(--fds-gray-50); }
.ttl11-head { flex: none; }
.ttl11-head .ttl-model-title { display: inline-flex; align-items: center; box-sizing: border-box; height: 28px; min-height: 28px; max-width: 100%; margin: 0; padding: 2px 12px; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-pill); background: var(--fds-bg-panel); font-size: 12px; font-weight: 400; white-space: nowrap; }
.ttl11-head .ts-head-actions { align-items: center; }
.ttl11-preview .fds-btn { min-height: 30px; padding: 3px 12px; font-size: 12px; line-height: 1.4; border-radius: var(--fds-radius-pill); }
.ttl11-head .ts-head-actions .fds-btn { min-height: 28px; height: 28px; padding-block: 2px; }
.ttl11-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) 300px; gap: 12px; padding: 12px; flex: 1; min-height: 0; }
.ttl11-3d, .ttl11-center, .ttl11-preview .ttl-panel { min-width: 0; min-height: 0; border: 1px solid var(--fds-border); border-radius: 12px; background: var(--fds-bg-panel); }
.ttl11-3d { display: flex; overflow: hidden; }
.ttl11-3d > .ttl-stage { position: relative; inset: auto; flex: 1; height: auto; min-width: 0; min-height: 0; }
.ttl11-preview .ttl-stage:fullscreen { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
.ttl11-preview .ttl-stage .ts-fullscreen { bottom: 14px; }
.ttl11-preview .ttl-toolbar { bottom: 12px; padding: 5px; gap: 6px; box-shadow: var(--fds-shadow-1); }
.ttl11-preview .ttl-toolbar .fds-btn { padding-inline: 12px; }
.ttl11-center { display: flex; flex-direction: column; overflow: hidden; padding: 10px; gap: 8px; }
.ttl11-library { flex: none; min-width: 0; }
.ttl11-preview .ttl11-cards { display: grid; grid-template-rows: repeat(2,auto); grid-auto-flow: column; grid-auto-columns: minmax(128px,calc((100% - 24px) / 4)); overflow-x: auto; max-height: none; gap: 8px; padding: 3px 2px 8px; }
.ttl11-preview .ttl11-card.fds-btn { display: grid; grid-template-columns: 38px minmax(0,1fr); min-height: 72px; align-items: center; align-content: center; text-align: start; gap: 7px; padding: 7px; border: 1px solid transparent; border-radius: 9px; background: var(--fds-gray-50); }
.ttl11-preview .ttl11-card:hover { border-color: var(--fds-gray-400); }
.ttl11-preview .ttl11-card.is-on { border-color: var(--fds-blue-600); background: var(--fds-blue-50); box-shadow: none; }
.ttl11-card .ts-card-art { height: 40px; width: 38px; position: relative; display: grid; place-items: center; background: transparent; }
.ttl11-card .ts-card-art svg, .ttl11-card .ts-card-art img { width: 38px; height: 36px; object-fit: contain; display: block; }
.ttl11-card .ts-card-art img { position: absolute; inset: 2px 0; }
.ttl11-card-details { display: grid; min-width: 0; gap: 2px; }
.ttl11-card-details b { font-size: 11px; font-weight: 500; line-height: 1.4; color: var(--fds-text-primary); }
.ttl11-card-details small { font-size: 10px; font-weight: 400; color: var(--fds-text-secondary); line-height: 1.5; }
.ttl11-card-details .ttl11-tall { color: var(--fds-warning, #946000); }
.ttl11-grid-wrap { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; direction: ltr; }
.ttl11-grid { display: block; width: 100%; height: 100%; min-height: 0; flex: 1; touch-action: none; }
.ttl11-grid [data-index] { cursor: grab; }
.ttl11-grid:focus-visible { outline-offset: -2px; }
.ttl11-grid-wrap > p { text-align: center; font-size: 11px; line-height: 1.6; margin: 4px 8px; flex: none; }
.ttl11-actions { flex: none; }
.ttl11-summary, .ttl11-message { margin: 0; font-size: 12px; line-height: 1.6; flex: none; }
.ttl11-summary { color: var(--fds-text-secondary); }
.ttl11-message { color: var(--fds-blue-600); }
.ttl11-message:empty { display: none; }
.ttl11-facts { display: grid; gap: 3px; flex: none; }
.ttl11-facts p { margin: 0; font-size: 11px; line-height: 1.6; color: var(--fds-text-secondary); }
.ttl11-preview .ttl-panel { position: static; inset: auto; z-index: auto; width: auto; transform: none; visibility: visible; overflow-y: auto; transition: none; padding: 16px; }
.ttl11-props-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.ttl11-preview .ttl-section { padding-block: 16px; }
.ttl11-preview .ttl-section h2 { font-size: 12px; }
.ttl11-preview .ttl-section-heading { margin-bottom: 10px; }
.ttl11-preview .ttl-section > select { margin-top: 10px; width: 100%; min-height: 32px; border-radius: var(--fds-radius-pill); font-size: 12px; }
.ttl11-preview .ttl-logo-actions { flex-wrap: wrap; }
.ttl11-preview .ttl-logo-actions > .fds-btn { flex: 1; }
.ttl11-preview .ttl-note { font-size: 11px; }
.ttl11-position { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 0; }
.ttl11-position label { display: grid; gap: 6px; font-size: 12px; }
.ttl11-position input { width: 100%; min-height: 32px; box-sizing: border-box; font-size: 12px; }
.ttl11-preview .ttl-logo-width { margin-bottom: 12px; }
@media (min-width: 768px) and (max-width: 1100px) {
  .ttl11-body { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) 240px; gap: 8px; padding: 8px; }
  .ttl11-preview .ttl-panel { padding: 12px; }
  .ttl11-preview .ttl-section .ap-swatches { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (pointer: coarse) {
  .ttl11-preview .fds-btn, .ttl11-preview .ts-lib-tag, .ttl11-preview .ttl-section > select, .ttl11-position input { min-height: 44px; }
  .ttl11-head .ttl-model-title { min-height: 44px; height: auto; }
}
@media (max-width: 767px) {
  .ttl11-preview { overflow-y: auto; }
  .ttl11-head { position: sticky; top: 0; z-index: 5; }
  .ttl11-body { display: flex; flex-direction: column; flex: none; min-height: auto; gap: 10px; padding: 10px; }
  .ttl11-3d { flex: none; height: 44dvh; min-height: 280px; }
  .ttl11-center { flex: none; min-height: 640px; }
  .ttl11-grid-wrap { flex: none; height: 350px; }
  .ttl11-preview .ttl-panel { flex: none; overflow: visible; padding: 16px 16px calc(20px + env(safe-area-inset-bottom,0px)); }
  .ttl11-preview input, .ttl11-preview select { font-size: 16px; }
}
