.pml-spec-sheet {
  --pml-yellow: #f4e341;
  --pml-ink: #111827;
  --pml-muted: #5d6778;
  --pml-line: #d9dee7;
  --pml-panel: #ffffff;
  --pml-soft: #f5f7fa;
  --pml-dark: #27323d;
  color: var(--pml-ink);
  font-family: Inter, Arial, sans-serif;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  padding: 0 clamp(16px, 2.4vw, 42px) 96px;
  width: 100vw;
}

.pml-spec-sheet *,
.pml-spec-sheet *::before,
.pml-spec-sheet *::after {
  box-sizing: border-box;
}

.pml-header {
  align-items: flex-end;
  background: var(--pml-dark);
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px;
}

.pml-eyebrow {
  color: var(--pml-yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.pml-header h2 {
  color: #ffffff;
  font-size: 34px;
  line-height: 1.12;
  margin: 0;
}

.pml-subtitle {
  color: #d7dce4;
  margin: 8px 0 0;
  max-width: 680px;
}

.pml-header-actions,
.pml-plan-actions,
.pml-modal-actions,
.pml-location-actions {
  display: flex;
  gap: 10px;
}

.pml-card {
  background: var(--pml-panel);
  border: 1px solid var(--pml-line);
  padding: 22px;
  width: 100%;
}

.pml-filters {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.pml-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pml-pill,
.pml-button,
.pml-link-button,
.pml-icon-button,
.pml-location-actions button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.pml-pill {
  background: #e8edf3;
  border-radius: 999px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 14px;
}

.pml-pill.is-active {
  background: var(--pml-yellow);
  color: #000000;
}

.pml-filter-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.pml-search,
.pml-select,
.pml-form input,
.pml-form select,
.pml-form textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: var(--pml-ink);
  font: inherit;
  min-height: 40px;
  padding: 9px 11px;
  width: 100%;
}

.pml-search {
  max-width: 520px;
}

.pml-sort-label {
  align-items: center;
  color: var(--pml-muted);
  display: flex;
  font-size: 14px;
  gap: 8px;
  white-space: nowrap;
}

.pml-alert,
.pml-hint,
.pml-empty {
  border-radius: 7px;
  margin: 14px 0;
  padding: 13px 15px;
}

.pml-alert {
  background: #fff2f2;
  border: 1px solid #f0b4b4;
  color: #8a1f1f;
}

.pml-hint {
  background: #1f2937;
  border: 1px solid #111827;
  color: #ffffff;
  font-weight: 700;
}

.pml-empty {
  background: var(--pml-soft);
  color: var(--pml-muted);
  text-align: center;
}

.pml-table-wrap {
  margin-top: 26px;
  overflow-x: auto;
}

.pml-section-title {
  align-items: center;
  display: flex;
  font-size: 18px;
  gap: 9px;
  margin: 0 0 12px;
}

.pml-title-mark {
  border-radius: 2px;
  display: inline-block;
  height: 24px;
  width: 8px;
}

.pml-title-mark-print {
  background: var(--pml-yellow);
}

.pml-title-mark-digital {
  background: #455560;
}

.pml-table {
  border-collapse: collapse;
  min-width: 1260px;
  width: 100%;
}

.pml-table-wide {
  min-width: 1760px;
}

.pml-table th:nth-child(2),
.pml-table td:nth-child(2) {
  min-width: 220px;
}

.pml-table th:nth-child(3),
.pml-table td:nth-child(3) {
  min-width: 150px;
}

.pml-table th:nth-child(4),
.pml-table td:nth-child(4) {
  min-width: 390px;
}

.pml-table th {
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 14px;
  text-align: left;
  text-transform: uppercase;
}

.pml-table td {
  border-top: 1px solid #e5e7eb;
  color: #334155;
  font-size: 14px;
  padding: 13px 14px;
  vertical-align: top;
}

.pml-table tr.is-selected td {
  background: #fffbe0;
}

.pml-table strong {
  color: var(--pml-ink);
}

.pml-badge {
  background: #eef2f7;
  border: 1px solid #d5dce6;
  border-radius: 5px;
  color: #334155;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-left: 8px;
  padding: 3px 6px;
}

.pml-note-wrap {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.pml-note {
  color: var(--pml-muted);
  display: block;
  font-size: 12px;
  max-width: 420px;
  white-space: normal;
}

.pml-note-link,
.pml-link-button {
  color: #0f5ea8;
  font-size: 12px;
  font-weight: 800;
}

.pml-link-button {
  background: transparent;
  padding: 0;
}

.pml-location {
  display: grid;
  gap: 7px;
  min-width: 340px;
}

.pml-location strong {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pml-location span {
  color: var(--pml-muted);
  font-size: 12px;
}

.pml-location-picker {
  align-items: stretch;
  display: grid;
  gap: 6px;
  max-width: 460px;
  position: relative;
}

.pml-location-count {
  align-items: center;
  background: var(--pml-yellow);
  border-radius: 5px;
  color: #000000 !important;
  display: inline-flex;
  font-size: 11px !important;
  font-weight: 900;
  justify-self: start;
  padding: 3px 7px;
  text-transform: uppercase;
}

.pml-location-select {
  appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  border: 2px solid #64748b;
  box-shadow: inset 4px 0 0 var(--pml-yellow);
  color: var(--pml-ink);
  cursor: pointer;
  font-weight: 800;
  min-width: 340px;
  padding: 10px 40px 10px 14px;
}

.pml-location-select:hover,
.pml-location-select:focus {
  border-color: #111827;
  box-shadow: inset 4px 0 0 var(--pml-yellow), 0 0 0 3px rgba(244, 227, 65, 0.34);
  outline: none;
}

.pml-location-status {
  color: #334155 !important;
  font-weight: 700;
}

.pml-location-actions button {
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.pml-mono {
  font-family: Consolas, Monaco, monospace;
}

.pml-plan-bar {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--pml-line);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.2);
  display: flex;
  justify-content: space-between;
  left: 50%;
  max-width: min(720px, calc(100vw - 32px));
  padding: 12px 14px 12px 18px;
  position: fixed;
  transform: translateX(-50%);
  width: max-content;
  z-index: 2147482000;
}

.pml-button {
  align-items: center;
  background: #e8edf3;
  border-radius: 7px;
  color: #1f2937;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
}

.pml-button-primary {
  background: var(--pml-yellow);
  color: #000000;
}

.pml-button-dark {
  background: var(--pml-dark);
  color: #ffffff;
}

.pml-info-button {
  background: #ffffff;
  border: 1px solid #d7dee8;
  color: #111827;
  gap: 9px;
}

.pml-info-icon {
  align-items: center;
  background: var(--pml-yellow);
  border-radius: 999px;
  color: #111827;
  display: inline-flex;
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.pml-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pml-footer {
  padding: 22px 22px 42px;
  text-align: center;
}

.pml-modal {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.66);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  overflow: auto;
  padding: clamp(104px, 12vh, 150px) 18px 36px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2147483000;
}

.pml-modal-panel {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  max-height: calc(100vh - 140px);
  max-width: 980px;
  overflow: auto;
  padding: 24px;
  width: min(980px, 100%);
}

.pml-modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pml-modal-header h3 {
  font-size: 24px;
  margin: 0;
}

.pml-icon-button {
  background: #e8edf3;
  border-radius: 999px;
  color: #111827;
  height: 34px;
  width: 34px;
}

.pml-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pml-form label,
.pml-textarea-label,
.pml-checkbox-field {
  color: #475569;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

.pml-checkbox-field {
  align-content: end;
  align-items: center;
  display: flex;
  min-height: 64px;
}

.pml-checkbox-field input {
  min-height: auto;
  width: auto;
}

.pml-textarea-label {
  margin-top: 14px;
}

.pml-modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.pml-toast {
  background: #111827;
  border-radius: 7px;
  bottom: 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 16px;
  position: fixed;
  right: 18px;
  z-index: 2147483001;
}

.pml-info-overlay {
  background: rgba(15, 23, 42, 0.62);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2147482500;
}

.pml-info-panel {
  background: #ffffff;
  bottom: 18px;
  border-radius: 8px 0 0 8px;
  box-shadow: -24px 0 70px rgba(15, 23, 42, 0.28);
  color: #243042;
  display: flex;
  flex-direction: column;
  max-width: min(480px, calc(100vw - 20px));
  overflow: hidden;
  position: fixed;
  right: 0;
  top: clamp(104px, 12vh, 150px);
  width: 480px;
  z-index: 2147482501;
}

.pml-info-header {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
}

.pml-info-header h3 {
  align-items: center;
  color: #111827;
  display: flex;
  font-size: 20px;
  gap: 10px;
  margin: 0;
}

.pml-info-header h3 span {
  background: var(--pml-yellow);
  border-radius: 2px;
  display: inline-block;
  height: 24px;
  width: 6px;
}

.pml-info-close {
  appearance: none;
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  padding: 0;
}

.pml-info-body {
  display: grid;
  gap: 24px;
  overflow: auto;
  padding: 24px 22px;
}

.pml-info-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.pml-info-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.pml-info-section h4,
.pml-info-callout h4 {
  color: #111827;
  font-size: 18px;
  margin: 0 0 12px;
}

.pml-info-section h5 {
  color: #111827;
  font-size: 14px;
  margin: 18px 0 8px;
}

.pml-info-section p,
.pml-info-callout p,
.pml-check-list li {
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 10px;
}

.pml-info-callout {
  border-radius: 10px;
  padding: 18px;
}

.pml-info-callout-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.pml-info-callout-amber {
  background: #fff8e1;
  border: 1px solid #fde68a;
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.65;
}

.pml-info-callout a {
  color: #2563eb;
  font-weight: 800;
}

.pml-check-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pml-check-list li {
  margin: 0;
  padding-left: 28px;
  position: relative;
}

.pml-check-list li::before {
  align-items: center;
  border: 2px solid #22c55e;
  border-radius: 999px;
  color: #16a34a;
  content: "✓";
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 16px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 4px;
  width: 16px;
}

.pml-check-list em,
.pml-info-section em {
  color: #64748b;
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.pml-scale-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 12px 0;
  overflow: hidden;
}

.pml-scale-list dt,
.pml-scale-list dd {
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
  padding: 10px 12px;
}

.pml-scale-list dt {
  font-weight: 800;
}

.pml-scale-list dd {
  background: #ffffff;
  font-weight: 900;
}

.pml-scale-list dt:last-of-type,
.pml-scale-list dd:last-of-type {
  border-bottom: 0;
}

.pml-info-section code {
  background: #111827;
  border-radius: 7px;
  color: #ffffff;
  display: block;
  font-family: Consolas, Monaco, monospace;
  padding: 12px;
}

.pml-info-footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px 22px;
}

.pml-info-footer .pml-button {
  width: 100%;
}

@media (max-width: 760px) {
  .pml-header,
  .pml-filter-row,
  .pml-plan-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .pml-plan-bar {
    bottom: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
    transform: none;
    width: calc(100vw - 20px);
  }

  .pml-header h2 {
    font-size: 28px;
  }

  .pml-header-actions,
  .pml-plan-actions {
    flex-wrap: wrap;
  }

  .pml-search {
    max-width: none;
  }

  .pml-sort-label {
    align-items: flex-start;
    flex-direction: column;
    white-space: normal;
  }

  .pml-form-grid {
    grid-template-columns: 1fr;
  }

  .pml-spec-sheet {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pml-location,
  .pml-location-select {
    min-width: 280px;
  }

  .pml-modal {
    padding-top: 84px;
  }

  .pml-modal-panel {
    max-height: calc(100vh - 108px);
  }

  .pml-info-panel {
    border-radius: 8px 8px 0 0;
    bottom: 0;
    max-width: 100vw;
    top: 84px;
    width: 100vw;
  }
}
