.platform-page {
  min-height: 100vh;
  padding: 28px;
  background: #f7f9fc;
  color: #172033;
}

.platform-shell {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.platform-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #d8e0ec;
}

.platform-kicker {
  display: block;
  color: #5b6b82;
  font-size: 22px;
  font-weight: 760;
}

.platform-title {
  display: block;
  margin-top: 8px;
  color: #101827;
  font-size: 38px;
  font-weight: 820;
  line-height: 1.2;
}

.platform-subtitle {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 24px;
  line-height: 1.45;
}

.platform-tabs,
.platform-actions {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.platform-button {
  min-width: 132px;
  height: 62px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  font-size: 23px;
  font-weight: 720;
  line-height: 62px;
}

.platform-button.primary {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.platform-button.active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
}

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

.platform-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-metric {
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.platform-metric-label {
  display: block;
  color: #64748b;
  font-size: 21px;
}

.platform-metric-value {
  display: block;
  margin-top: 12px;
  color: #0f172a;
  font-size: 31px;
  font-weight: 820;
  line-height: 1.2;
}

.platform-section {
  margin-top: 4px;
}

.platform-section-title {
  display: block;
  margin-bottom: 14px;
  color: #0f172a;
  font-size: 29px;
  font-weight: 820;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-row {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.platform-row-main {
  display: block;
  color: #111827;
  font-size: 26px;
  font-weight: 760;
  line-height: 1.35;
}

.platform-row-meta {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 21px;
  line-height: 1.45;
}

.platform-empty {
  padding: 32px 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 23px;
  line-height: 1.45;
}

.platform-input {
  width: 100%;
  height: 66px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 24px;
}

.platform-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.platform-form.compact {
  margin-top: 12px;
}

.platform-field {
  min-width: 0;
}

.platform-field.wide {
  grid-column: 1 / -1;
}

.platform-field-label {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-size: 20px;
  font-weight: 720;
}

.platform-row-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
}

.platform-mini-button {
  min-width: 116px;
  height: 54px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e3a8a;
  font-size: 21px;
  font-weight: 720;
  line-height: 54px;
}

.platform-mini-button.danger {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.platform-mini-button.active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
}

.platform-permission-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 16px;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.platform-permission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-permission-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-chip-list.compact {
  margin-top: 14px;
}

.platform-chip {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 20px;
  font-weight: 680;
  line-height: 48px;
}

.platform-chip.active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
}

.platform-chip.readonly {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: #475569;
  line-height: 1.25;
}

.platform-error {
  display: block;
  margin-top: 12px;
  color: #be123c;
  font-size: 22px;
}
