body {
  font-family: sans-serif;
  padding: 16px;
  line-height: 1.4;
}

h1 {
  margin: 0 0 8px 0;
}

h2 {
  margin: 0 0 8px 0;
  color: #1f4d7a;
  text-align: left;
}

p {
  margin: 0 0 12px 0;
}

.intro {
  max-width: 720px;
  color: #333;
}

.howto {
  margin: 8px 0 0 0;
  max-width: 720px;
}

.howto summary {
  cursor: pointer;
  color: #1f4d7a;
  font-weight: 600;
}

.howto summary::-webkit-details-marker {
  color: #1f4d7a;
}

.howto ol {
  margin: 8px 0 0 18px;
  padding: 8px 12px;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  list-style-position: inside;
}

.configure-section {
  margin-top: 12px;
}

.notes {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #666;
  max-width: 720px;
}

.notes-title {
  font-weight: 600;
  margin: 0 0 4px 0;
}

.notes-list {
  margin: 0 0 0 18px;
  padding: 0;
}

.notes-list .note {
  margin: 2px 0;
}

.notes-list .note::marker {
  font-size: 10px;
  color: #888;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 24px;
  align-items: start;
  margin: 16px 0 24px 0;
}

.items-section {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
}

.dropdown-panel {
  min-width: 360px;
  padding: 16px;
  border: 2px dashed #22f;
  border-radius: 8px;
  text-align: right;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.dropdown-panel.pulse {
  border-color: #7fb0e1;
  box-shadow: 0 0 0 4px rgba(127, 176, 225, 0.45);
  background-color: rgba(127, 176, 225, 0.12);
}

.dropdown-type {
  font-size: 14px;
  color: #444;
  margin-top: 12px;
  margin-bottom: 9px;
  text-align: left;
}

.dropdown-panel #dropdown {
  text-align: left;
}

.render-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.snapshot-summary {
  margin-top: 8px;
  font-size: 12px;
  color: #555;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-shell {
  position: relative;
}

.dropdown-trigger {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.dropdown-trigger::after {
  content: "▾";
  float: right;
  color: #666;
}

.dropdown-menu {
  margin-top: 6px;
  display: none;
}

.dropdown-menu.open {
  display: block;
}

.selected {
  background: #e8f0fe;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 16px 0;
  align-items: end;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control.changed select,
.control.changed input[type="number"] {
  border-color: #e6a23c;
  box-shadow: 0 0 0 1px rgba(230, 162, 60, 0.3);
}

.control.changed select:focus,
.control.changed select:focus-visible,
.control.changed input[type="number"]:focus,
.control.changed input[type="number"]:focus-visible {
  border-color: #e6a23c;
  box-shadow: 0 0 0 2px rgba(230, 162, 60, 0.35);
  outline: none;
}

.control.changed .type-trigger {
  border-color: #e6a23c;
  box-shadow: 0 0 0 1px rgba(230, 162, 60, 0.3);
}

.control label {
  font-size: 12px;
  color: #444;
}

.control input[type="number"],
.control select {
  padding: 6px 8px;
  font-size: 14px;
}

.type-picker {
  position: relative;
}

.type-select {
  display: none;
}

.type-trigger {
  width: 260px;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.type-trigger::after {
  content: "▾";
  float: right;
  color: #666;
}

.type-trigger:focus-visible {
  outline: 2px solid #8bb7e3;
  outline-offset: 2px;
}

.type-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: none;
  z-index: 5;
  max-height: 240px;
  overflow-y: auto;
}

.type-menu.open {
  display: block;
}

.type-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 14px;
  text-align: left;
}

.type-option:hover,
.type-option[aria-selected="true"] {
  background: #f2f6fb;
}

.type-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
}

.type-option.supported .type-pill,
.type-support.supported {
  color: #1f6f3a;
  background: #e8f5ee;
  border-color: #cfe9da;
}

.type-option.unsupported .type-pill,
.type-support.unsupported {
  color: #8a3a3a;
  background: #fdeaea;
  border-color: #f3c3c3;
}

.type-support {
  margin-left: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.control.buttons {
  justify-content: flex-end;
}

button {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fafafa;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

button:hover {
  background: #f2f6fb;
  border-color: #bcd0e6;
}

button:active {
  transform: translateY(1px);
  background: #dbe9f8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

button.is-pressed,
.icon-button.is-pressed,
.cell-button.is-pressed {
  transform: translateY(1px);
  background: #cfe0f5;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.18);
}

button:focus-visible {
  outline: 2px solid #8bb7e3;
  outline-offset: 2px;
}

button.changed {
  border-color: #e6a23c;
  box-shadow: 0 0 0 1px rgba(230, 162, 60, 0.3);
}

button.changed:focus-visible {
  outline-color: #e6a23c;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.items-table th,
.items-table td {
  padding: 6px 14px;
  vertical-align: top;
}

.col-text {
  width: 32%;
}

.col-value {
  width: 18%;
}

.col-data {
  width: 18%;
}

.col-href {
  width: 32%;
}

.items-table.hide-href .col-href,
.items-table.hide-href .th-href {
  visibility: hidden;
  pointer-events: none;
}

.th-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.icon-button {
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.icon-button.danger {
  color: #9b2c2c;
  border-color: #f3c3c3;
  background: #fdeaea;
}

.icon-button:hover {
  background: #eef3f9;
  border-color: #c7d8ee;
}

.icon-button.danger:hover {
  background: #f9d7d7;
  border-color: #efb3b3;
}

.icon-button:active,
.cell-button:active {
  transform: translateY(1px);
  background: #e3edf9;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.icon-button:focus-visible,
.cell-button:focus-visible {
  outline: 2px solid #8bb7e3;
  outline-offset: 2px;
}

.item-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.item-cell input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #d7dde3;
  border-radius: 4px;
}

.item-cell input[type="text"]::placeholder {
  color: #c0c0c0;
}

.item-cell.changed input[type="text"] {
  border-color: #e6a23c;
  box-shadow: 0 0 0 1px rgba(230, 162, 60, 0.3);
}

.item-cell input[disabled] {
  background: #f3f3f3;
  color: #777;
}

.item-cell.changed input[disabled] {
  border-color: #e6a23c;
  box-shadow: 0 0 0 1px rgba(230, 162, 60, 0.3);
}

.cell-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  transition: transform 0.06s ease, color 0.15s ease;
}

.cell-button.danger {
  color: #c53030;
}

.mock-listbox,
.selectize-dropdown-content,
.react-select__menu-list,
.radix-menu,
.mui-listbox,
.ant-select-dropdown,
.select2-results__options,
.chosen-results,
.downshift-listbox {
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 6px;
  text-align: left;
}

.mui-listbox {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.select2-results__options,
.chosen-results,
.downshift-listbox {
  list-style: none;
  margin: 0;
}

.mock-option,
.selectize-dropdown-content .option,
.react-select__option,
.radix-menuitem,
.mui-option,
.ant-option,
.select2-results__option,
.chosen-option,
.downshift-option {
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.mock-option:hover,
.selectize-dropdown-content .option:hover,
.react-select__option:hover,
.mui-option:hover,
.ant-option:hover,
.select2-results__option:hover,
.chosen-option:hover,
.downshift-option:hover {
  background: #f2f2f2;
}
