#stationPage .station-profile:before,
#stationPage .railway-profile-band,
#stationPage .station-rail,
#stationPage .equipment-table-card,
#stationPage .station-kpis,
#stationPage .station-grid,
#stationPage .station-signal-card,
#stationPage .station-development-notice,
#stationWorkbookCard {
  display: none !important;
}

#stationPage .station-filters .field:has(#equipmentClassSelect) {
  display: none !important;
}

#stationPage .station-filters {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto !important;
}

#stationPage .station-profile-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  margin-top: 15px;
}

#stationPage .station-profile-data-card {
  min-width: 0;
  padding: 16px 18px !important;
  border: 1px solid var(--line) !important;
  border-top: 3px solid var(--profile-accent, #3976ba) !important;
  border-radius: 14px !important;
  background: var(--surface-raised, #fff) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .045) !important;
}

#stationPage .station-profile-data-card:nth-child(2) { --profile-accent: #0f8278; }
#stationPage .station-profile-data-card:nth-child(3) { --profile-accent: #6e63a8; }

#stationPage .station-profile-data-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

#stationPage .station-profile-data-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#stationPage .station-profile-data-number {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--profile-accent, #3976ba) 10%, var(--surface-raised, #fff));
  color: var(--profile-accent, #3976ba);
  font-size: 13px;
  font-weight: 900;
}

#stationPage .station-profile-data-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

#stationPage .station-profile-data-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

#stationPage .station-profile-data-pill {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted, #f4f6f5);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

#stationPage .station-profile-general-grid,
#stationPage .station-profile-type-grid,
#stationPage .station-profile-count-grid {
  display: grid;
  gap: 9px;
}

#stationPage .station-profile-general-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#stationPage .station-profile-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#stationPage .station-profile-count-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

#stationPage .station-profile-info,
#stationPage .station-profile-type,
#stationPage .station-profile-count {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line-soft, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--profile-accent, #3976ba) 5%, var(--surface-raised, #fff));
}

#stationPage .station-profile-info span,
#stationPage .station-profile-type > span,
#stationPage .station-profile-count > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.65;
}

#stationPage .station-profile-info strong,
#stationPage .station-profile-type strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: 'Vazirmatn' !important;
  font-size: 13px;
  font-weight: 800 !important;
  font-feature-settings: "ss01", "tnum" !important;
  font-variant-numeric: tabular-nums !important;
  font-synthesis: none !important;
  overflow-wrap: anywhere;
}

#stationPage .station-profile-type-item + .station-profile-type-item {
  padding-top: 7px;
  margin-top: 7px;
  border-top: 1px solid var(--line);
}

#stationPage .station-profile-type small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: 'Vazirmatn' !important;
  font-size: 10px;
  font-weight: 700 !important;
  font-feature-settings: "ss01", "tnum" !important;
  font-variant-numeric: tabular-nums !important;
  font-synthesis: none !important;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#stationPage .station-profile-count {
  position: relative;
  min-height: 84px;
  padding: 10px 11px;
  border-top: 2px solid color-mix(in srgb, var(--profile-accent, #3976ba) 35%, var(--line));
}

#stationPage .station-profile-count strong {
  display: block;
  margin-top: 8px;
  color: var(--profile-accent, #3976ba);
  font-family: 'Vazirmatn' !important;
  font-size: 21px;
  font-weight: 800 !important;
  font-feature-settings: "ss01", "tnum" !important;
  font-variant-numeric: tabular-nums !important;
  font-synthesis: none !important;
}

#stationPage .station-profile-count-index {
  position: absolute;
  top: 8px;
  left: 9px;
  color: var(--muted);
  font-family: 'Vazirmatn' !important;
  font-size: 9px;
  font-weight: 700 !important;
  font-feature-settings: "ss01", "tnum" !important;
  font-variant-numeric: tabular-nums !important;
  font-synthesis: none !important;
}

html[data-theme] #stationPage .station-profile-data-card:nth-child(1) {
  --profile-head-start: #1d4ed8;
  --profile-head-end: #2563eb;
  --profile-head-edge: #93c5fd;
  --profile-head-shadow: rgba(37, 99, 235, .2);
}

html[data-theme] #stationPage .station-profile-data-card:nth-child(2) {
  --profile-head-start: #087c78;
  --profile-head-end: #109b88;
  --profile-head-edge: #6ee7d2;
  --profile-head-shadow: rgba(8, 124, 120, .2);
}

html[data-theme] #stationPage .station-profile-data-card:nth-child(3) {
  --profile-head-start: #7046c5;
  --profile-head-end: #8655d6;
  --profile-head-edge: #c4b5fd;
  --profile-head-shadow: rgba(112, 70, 197, .2);
}

html[data-theme] #stationPage .station-profile-data-card > .station-profile-data-head {
  padding: 12px 14px !important;
  margin: -4px -6px 13px !important;
  border: 0 !important;
  border-bottom: 3px solid var(--profile-head-edge) !important;
  border-radius: 11px !important;
  background: linear-gradient(110deg, var(--profile-head-start), var(--profile-head-end)) !important;
  box-shadow: 0 7px 16px var(--profile-head-shadow) !important;
}

html[data-theme] #stationPage .station-profile-data-card > .station-profile-data-head h4 {
  color: #fff !important;
}

html[data-theme] #stationPage .station-profile-data-card > .station-profile-data-head p {
  color: rgba(255, 255, 255, .84) !important;
}

html[data-theme] #stationPage .station-profile-data-card > .station-profile-data-head .station-profile-data-number,
html[data-theme] #stationPage .station-profile-data-card > .station-profile-data-head .station-profile-data-pill {
  border: 1px solid rgba(255, 255, 255, .35) !important;
  background: rgba(255, 255, 255, .15) !important;
  color: #fff !important;
}

#stationPage .station-profile-empty {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1050px) {
  #stationPage .station-profile-count-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  #stationPage .station-profile-general-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #stationPage .station-profile-count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #stationPage .station-profile-data-card { padding: 13px !important; }
}

@media (max-width: 470px) {
  #stationPage .station-profile-general-grid,
  #stationPage .station-profile-type-grid { grid-template-columns: minmax(0, 1fr); }
  #stationPage .station-profile-data-head { align-items: flex-start; }
  #stationPage .station-profile-data-head h4 { font-size: 13px; }
  #stationPage .station-profile-count { min-height: 76px; padding: 9px; }
  #stationPage .station-profile-count strong { font-size: 19px; }
}

html[data-theme] #stationPage .station-profile {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: var(--surface-raised) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .055) !important;
}

html[data-theme] #stationPage .profile-heading {
  padding: 16px 18px !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  border-bottom: 3px solid #60a5fa !important;
  border-radius: 16px;
  background: linear-gradient(110deg, #0f172a 0%, #1d4ed8 72%, #2563eb 100%) !important;
  box-shadow: 0 8px 20px rgba(30, 64, 175, .16);
}

html[data-theme] #stationPage .profile-heading .eyebrow { color: #c7e7ff !important; }
html[data-theme] #stationPage .profile-heading h3 { color: #ffd166 !important; text-shadow: 0 1px 8px rgba(15, 23, 42, .18); }
html[data-theme] #stationPage .profile-heading p { color: rgba(255, 255, 255, .84) !important; }
html[data-theme] #stationPage .profile-heading .profile-badge {
  border-color: rgba(255, 255, 255, .45) !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
}

@media (max-width: 1050px) {
  #stationPage .station-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #stationPage .station-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 470px) {
  #stationPage .station-filters { grid-template-columns: minmax(0, 1fr) !important; }
  #stationPage .station-filter-actions { grid-column: auto; }
}

#stationPage .station-profile-tools {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-raised, #fff);
}

#stationPage .station-profile-tools[hidden] { display: none !important; }

#stationPage .station-profile-tools-head,
#stationPage .station-profile-tools-actions,
#stationPage .station-profile-type-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

#stationPage .station-profile-tools-head strong,
#stationPage .station-profile-tools-head span { display: block; }
#stationPage .station-profile-tools-head strong { color: var(--ink); font-size: 12px; }
#stationPage .station-profile-tools-head span { color: var(--muted); font-size: 10px; }

#stationPage .station-profile-approval-badge {
  flex: none;
  padding: 4px 8px;
  border: 1px solid #b8dfd2;
  border-radius: 999px;
  background: #e9f6f0;
  color: #087466 !important;
  font-weight: 800;
}

#stationPage .station-profile-tools-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

#stationPage .station-profile-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
#stationPage .station-profile-file-label { cursor: pointer; }
#stationPage .station-profile-review,
#stationPage .station-profile-admin-status { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
#stationPage .station-profile-admin-status:empty { display: none; }

#stationPage .station-profile-info-edit,
#stationPage .station-profile-count-edit { display: grid; align-content: start; gap: 7px; }

#stationPage .station-profile-info-edit label,
#stationPage .station-profile-count-edit label { display: grid; gap: 4px; min-width: 0; }

#stationPage .station-profile-info-edit label > span,
#stationPage .station-profile-count-edit label > span { color: var(--muted); font-size: 9px; font-weight: 800; }

#stationPage .station-profile-edit-input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  outline: none;
}

#stationPage .station-profile-edit-input:focus { border-color: #0f8278; box-shadow: 0 0 0 3px rgba(15, 130, 120, .12); }
#stationPage .station-profile-type-edit-head .station-profile-edit-input { font-weight: 900; }
#stationPage .station-profile-type-edit-item { display: grid; gap: 6px; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
#stationPage .station-profile-card-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

#stationPage .station-profile-remove {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #efceca;
  border-radius: 7px;
  background: #fff7f6;
  color: #a43c36;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

#stationPage .station-profile-count-edit { position: relative; min-height: 0; }
#stationPage .station-profile-count-edit .station-profile-remove { justify-self: start; }

@media (max-width: 560px) {
  #stationPage .station-profile-tools { padding: 11px; }
  #stationPage .station-profile-tools-head { align-items: flex-start; }
  #stationPage .station-profile-tools-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #stationPage .station-profile-tools-actions > * { width: 100%; }
  #stationPage .station-profile-tools-actions [data-profile-tool="approve"] { grid-column: 1 / -1; }
}
