.twelve-types-section { position: relative; z-index: 1; }
.twelve-types-intro { margin: 0 0 24px; }
.twelve-types-scroll { overflow-x: auto; overflow-y: visible; padding: 10px 8px 18px; margin: 0 -8px; }
.twelve-types-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 10px; }
.twelve-types-table th, .twelve-types-table td { width: 25%; text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.twelve-types-table thead th { color: #252b33; font-size: 19px; font-weight: 700; padding: 12px 10px; }
.twelve-types-table th span { display: block; }
.twelve-types-table th small { display: block; margin-top: 7px; color:#69717b; font-size: 14px; font-weight: 400; line-height: 1.45; } 
.twelve-types-table tbody th { background: #f4f5f6; border-radius: 8px; padding: 12px; }
.twelve-types-table tbody th span { font-weight: 700; font-size: 17px; }
.twelve-types-table tbody td { height: 96px; position: relative; }
.twelve-type-button { position: relative; z-index: 1; width: 100%; min-height: 76px; padding: 12px; border: 1px solid #d8dde3; border-radius: 8px; background: #fff; color: #252b33; font: inherit; font-size: 30px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 7px rgba(27, 40, 55, .08); transition: transform 200ms ease, box-shadow 200ms ease, background-color 160ms ease; }
.twelve-type-button:active { background: #f1f5f8; transform: scale(.98); }
.twelve-type-button:focus-visible, .twelve-types-close:focus-visible { outline: 3px solid #267bb8; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .twelve-type-button:hover { z-index: 3; transform: translateY(-4px) scale(1.035); box-shadow: 0 11px 22px rgba(27, 40, 55, .2); }
}
.twelve-types-backdrop[hidden] { display: none; }
.twelve-types-backdrop { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 18, 26, .66); }
.twelve-types-dialog { width: min(820px, 100%); max-height: min(88vh, 900px); max-height: min(88dvh, 900px); display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; color: #252b33; box-shadow: 0 20px 70px rgba(0, 0, 0, .32); }
.twelve-types-dialog-header { position: relative; z-index: 1; display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 24px 16px; border-bottom: 1px solid #e6e9ed; background: #fff; }
.twelve-types-dialog-header h2 { margin: 0; color: #252b33; font-size: 26px; }
.twelve-types-pair { margin: 4px 0 0; color: #69717b; }
.twelve-types-close { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #252b33; font-size: 36px; line-height: 1; cursor: pointer; }
.twelve-types-close:hover { background: #f1f3f5; }
.twelve-types-dialog-content { overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 30px; font-size: 17px; line-height: 1.75; }
.twelve-types-dialog-content p { margin: 0 0 1em; }
.twelve-types-dialog-content h3 { margin: 1.35em 0 .45em; color: #252b33; font-size: 20px; line-height: 1.4; }
@media (max-width: 575.98px) {
  .twelve-types-scroll { box-sizing: border-box; width: 100%; margin: 0; padding: 4px 0 10px; overflow-x: visible; }
  .twelve-types-table { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; border-spacing: clamp(2px, 0.8vw, 4px); }
  .twelve-types-table th, .twelve-types-table td { box-sizing: border-box; padding: 4px 2px; overflow-wrap: anywhere; word-break: normal; }
  .twelve-types-table thead th { font-size: clamp(13px, 3.5vw, 15px); line-height: 1.2; padding: 5px 2px; }
  .twelve-types-table thead th:first-child,
  .twelve-types-table tbody th[scope="row"] { width: 24%; }
  .twelve-types-table thead th:not(:first-child),
  .twelve-types-table tbody td { width: 25.333%; }
  .twelve-types-table th small { margin-top: 4px; font-size: clamp(12px, 3vw, 13px); line-height: 1.3; overflow-wrap: anywhere; }
  .twelve-types-table tbody th { padding: 6px 3px; }
  .twelve-types-table tbody th span { font-size: clamp(13px, 3.5vw, 15px); line-height: 1.2; overflow-wrap: anywhere; }
  .twelve-types-table tbody td { height: auto; padding: 3px 2px; }
  .twelve-type-button { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; height: clamp(46px, 13vw, 54px); padding: 4px 2px; font-size: clamp(20px, 6vw, 24px); line-height: 1; }
  .twelve-types-backdrop { align-items: stretch; padding: 10px; }
  .twelve-types-dialog { max-height: 100%; max-height: 100dvh; width: 100%; border-radius: 10px; }
  .twelve-types-dialog-header { padding: 12px 14px; }
  .twelve-types-dialog-header h2 { font-size: 22px; }
  .twelve-types-dialog-content { padding: 16px 18px 24px; font-size: 16px; }
}
@media (max-width: 350px) {
  .twelve-types-table { border-spacing: 2px; }
  .twelve-types-table th, .twelve-types-table td { padding-left: 1px; padding-right: 1px; }
  .twelve-types-table th small { font-size: 12px; }
  .twelve-type-button { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .twelve-type-button { transition: box-shadow 160ms ease, background-color 160ms ease; }
  .twelve-type-button:hover, .twelve-type-button:active { transform: none; }
}
