:root {
  --platform-bg: #f3f7fb;
  --platform-surface: #ffffff;
  --platform-ink: #16233a;
  --platform-muted: #607089;
  --platform-border: #dbe5f0;
  --platform-navy: #18263f;
  --platform-navy-soft: #24334f;
  --platform-green: #e3cc29;
  --platform-green-dark: #c6b222;
  --platform-danger: #c94343;
  --platform-shadow: 0 18px 40px rgba(14, 29, 52, 0.08);
  --platform-radius: 22px;
  --platform-radius-sm: 14px;
  --platform-font: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.platform-body {
  margin: 0;
  font-family: var(--platform-font);
  color: var(--platform-ink);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(243, 247, 251, 0.98)),
    url("../images/feature/campus-2.jpg") center top / cover no-repeat fixed;
}

.platform-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.platform-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 229, 240, 0.96);
  box-shadow: var(--platform-shadow);
  backdrop-filter: blur(14px);
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.platform-brand img {
  width: 172px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.platform-brand-copy {
  min-width: 0;
}

.platform-brand-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.platform-brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--platform-muted);
  font-size: 14px;
  line-height: 1.3;
}

.platform-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-pill,
.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 180ms ease;
}

.platform-pill {
  border: 1px solid rgba(22, 35, 58, 0.08);
  background: #f5f8fc;
  color: var(--platform-ink);
}

.platform-pill.active,
.platform-pill:hover {
  background: var(--platform-navy);
  border-color: var(--platform-navy);
  color: #ffffff;
}

.platform-link {
  background: var(--platform-green);
  color: #16233a;
}

.platform-link:hover {
  background: var(--platform-green-dark);
  color: #16233a;
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  margin-top: 24px;
}

.platform-panel,
.platform-card,
.platform-modal-content {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 229, 240, 0.98);
  border-radius: var(--platform-radius);
  box-shadow: var(--platform-shadow);
}

.platform-panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 34px;
  min-height: 520px;
}

.platform-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 38, 63, 0.18), rgba(24, 38, 63, 0.52)),
    url("../images/feature/campus-2.jpg") center center / cover no-repeat;
}

.platform-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.platform-overline {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-hero-title {
  margin: 0;
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(40px, 5.1vw, 68px);
  font-weight: 700;
  line-height: 0.96;
}

.platform-form-card {
  padding: 30px;
}

.platform-form-head h1,
.platform-form-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
}

.platform-form-head p {
  margin: 12px 0 0;
  color: var(--platform-muted);
  font-size: 16px;
  line-height: 1.6;
}

.platform-form {
  margin-top: 28px;
}

.platform-message {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.platform-message.is-visible {
  display: block;
}

.platform-message.is-error {
  background: #fff2f2;
  color: #8a2a2a;
  border: 1px solid #f3c9c9;
}

.platform-message.is-success {
  background: #eefaf5;
  color: #156343;
  border: 1px solid #b9e6d0;
}

.platform-message.is-info {
  background: #eef5ff;
  color: #1f4f8e;
  border: 1px solid #c6daf7;
}

.platform-section + .platform-section {
  margin-top: 28px;
}

.platform-section-head {
  margin-bottom: 18px;
}

.platform-section-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.platform-section-head p {
  margin: 8px 0 0;
  color: var(--platform-muted);
  line-height: 1.55;
}

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

.platform-grid > .platform-field,
.platform-grid > .platform-upload,
.platform-grid > .platform-checkbox-card {
  min-width: 0;
}

.platform-field {
  align-self: start;
}

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

.platform-team-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.platform-team-layout .platform-field:last-child {
  grid-column: 1 / -1;
}

.platform-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.platform-label .required {
  color: var(--platform-danger);
}

.platform-input,
.platform-textarea,
.platform-select,
.platform-file {
  width: 100%;
  border: 1px solid var(--platform-border);
  border-radius: 18px;
  background: #ffffff;
  color: var(--platform-ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.platform-input,
.platform-select,
.platform-file {
  min-height: 56px;
  padding: 0 16px;
}

.platform-select {
  padding-right: 52px;
  background-position: right 26px center;
}

.platform-textarea {
  min-height: 152px;
  padding: 15px 16px;
  resize: vertical;
}

.platform-input:focus,
.platform-textarea:focus,
.platform-select:focus,
.platform-file:focus {
  outline: none;
  border-color: rgba(22, 163, 109, 0.65);
  box-shadow: 0 0 0 4px rgba(22, 163, 109, 0.12);
}

.platform-hint {
  margin-top: 8px;
  color: var(--platform-muted);
  font-size: 13px;
  line-height: 1.45;
}

.platform-upload {
  display: flex;
  flex-direction: column;
}

.platform-upload-box {
  min-height: 86px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border: 1px dashed rgba(22, 163, 109, 0.36);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(238, 249, 244, 0.7), rgba(247, 251, 255, 0.95));
}

.platform-upload-content {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.platform-file {
  background: transparent;
  margin: 0;
  display: block;
  width: 100%;
  line-height: 1.2;
  box-sizing: border-box;
}

.platform-file::file-selector-button {
  height: 40px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--platform-green);
  color: #16233a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.platform-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--platform-border);
  border-radius: 20px;
  background: #fdfefe;
}

.platform-checkbox-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--platform-green);
}

.platform-checkbox-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.4;
}

.platform-checkbox-card p {
  margin: 0;
  color: var(--platform-muted);
  font-size: 14px;
  line-height: 1.5;
}

.platform-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.platform-actions p {
  margin: 0;
  color: var(--platform-muted);
  font-size: 14px;
  line-height: 1.5;
}

.platform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--platform-green);
  color: #16233a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
  text-decoration: none;
}

.platform-button:hover:not(:disabled) {
  background: var(--platform-green-dark);
  color: #16233a;
  transform: translateY(-1px);
}

.platform-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.platform-button.is-secondary {
  background: var(--platform-navy);
}

.platform-button.is-secondary:hover {
  background: var(--platform-navy-soft);
}

.platform-footer-note {
  margin-top: 24px;
  text-align: center;
  color: var(--platform-muted);
  font-size: 13px;
}

.platform-success-wrap {
  display: flex;
  min-height: calc(100vh - 66px);
  align-items: center;
  justify-content: center;
}

.platform-success-card {
  width: min(720px, 100%);
  padding: 42px;
  text-align: center;
}

.platform-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e3cc29, #c6b222);
  color: #16233a;
  font-size: 34px;
  font-weight: 700;
}

.platform-success-card h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
}

.platform-success-card p {
  margin: 14px auto 0;
  max-width: 54ch;
  color: var(--platform-muted);
  line-height: 1.65;
}

.platform-reference {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: #f5f8fc;
  color: var(--platform-ink);
  font-size: 15px;
}

.platform-reference strong {
  display: block;
  margin-bottom: 6px;
}

.platform-admin {
  margin-top: 24px;
}

.platform-admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
}

.platform-card {
  padding: 24px;
}

.platform-card h2,
.platform-card h3 {
  margin: 0;
}

.platform-auth-form,
.platform-filter-row {
  display: grid;
  gap: 14px;
}

.platform-filter-row {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  margin-top: 18px;
}

.platform-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.platform-stat {
  min-width: 0;
  min-height: 104px;
  padding: 16px 14px;
  border: 1px solid var(--platform-border);
  border-radius: 18px;
  background: #f8fbfe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.platform-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.platform-stat span {
  display: block;
  margin-top: 8px;
  color: var(--platform-muted);
  font-size: 14px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.platform-table-wrap {
  margin-top: 18px;
  overflow: auto;
}

.platform-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.platform-table th,
.platform-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e9eef4;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}

.platform-table th {
  color: var(--platform-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.platform-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.platform-status-badge.is-new {
  background: #edf4ff;
  color: #335dba;
}

.platform-status-badge.is-review {
  background: #fff5e7;
  color: #af6c00;
}

.platform-status-badge.is-approved {
  background: #e8f8f0;
  color: #13704a;
}

.platform-status-badge.is-rejected {
  background: #fff0f0;
  color: #a23535;
}

.platform-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-inline-actions .platform-select {
  min-height: 42px;
  border-radius: 14px;
}

.platform-text-button {
  border: 0;
  background: transparent;
  color: var(--platform-green-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.platform-empty {
  padding: 28px 0 10px;
  color: var(--platform-muted);
  text-align: center;
}

.platform-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 18, 32, 0.56);
}

.platform-modal.is-open {
  display: flex;
}

.platform-modal-content {
  width: min(920px, 100%);
  max-height: min(90vh, 920px);
  padding: 28px;
  overflow: auto;
}

.platform-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.platform-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #edf3f8;
  color: var(--platform-ink);
  font-size: 20px;
  cursor: pointer;
}

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

.platform-detail-item {
  padding: 16px;
  border: 1px solid var(--platform-border);
  border-radius: 16px;
  background: #fcfdff;
}

.platform-detail-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--platform-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.platform-detail-item p,
.platform-detail-item ul {
  margin: 0;
  line-height: 1.6;
}

.platform-detail-item ul {
  padding-left: 18px;
}

.platform-file-list {
  display: grid;
  gap: 10px;
}

.platform-file-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--platform-border);
  border-radius: 16px;
  background: #f8fbfd;
  color: var(--platform-ink);
  text-decoration: none;
}

.platform-file-link small {
  color: var(--platform-muted);
}

@media (max-width: 1080px) {
  .platform-hero,
  .platform-admin-grid {
    grid-template-columns: 1fr;
  }

  .platform-panel {
    min-height: 380px;
  }

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

@media (max-width: 767px) {
  .platform-shell {
    width: min(100% - 20px, 100%);
    padding-top: 10px;
    padding-bottom: 28px;
  }

  .platform-topbar,
  .platform-panel,
  .platform-form-card,
  .platform-card,
  .platform-modal-content,
  .platform-success-card {
    padding: 20px;
    border-radius: 22px;
  }

  .platform-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-panel {
    height: 320px;
    min-height: 320px;
    aspect-ratio: auto;
  }

  .platform-upload-box {
    min-height: 76px;
    padding: 14px 16px;
  }

  .platform-panel-inner {
    min-height: 100%;
    justify-content: flex-end;
  }

  .platform-hero-title {
    max-width: 8ch;
    font-size: clamp(24px, 7.5vw, 36px);
    line-height: 1;
  }

  .platform-brand {
    justify-content: flex-start;
  }

  .platform-brand img {
    width: 138px;
    max-width: 52vw;
  }

  .platform-nav {
    width: 100%;
  }

  .platform-pill,
  .platform-link {
    flex: 1 1 auto;
  }

  .platform-grid,
  .platform-checkbox-grid,
  .platform-filter-row,
  .platform-detail-grid,
  .platform-team-layout {
    grid-template-columns: 1fr;
  }

  .platform-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-button {
    width: 100%;
  }

  .platform-stat {
    min-height: 96px;
  }
}

@media (max-width: 420px) {
  .platform-panel {
    height: 280px;
    min-height: 280px;
  }

  .platform-hero-title {
    max-width: 7ch;
    font-size: 22px;
  }
}

/* Upload alignment override */
.platform-upload .platform-label,
label.platform-label {
  margin-bottom: 10px !important;
  display: block;
}

.platform-upload-box,
.file-upload,
.file-upload-wrapper,
.upload-box,
.upload-area,
.file-input-wrapper {
  min-height: 86px !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.platform-upload-content,
.file-upload-content,
.file-input-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
}

.platform-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.platform-file-trigger {
  height: 40px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--platform-green) !important;
  color: #16233a !important;
  font: inherit !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
}

.platform-file-name {
  min-width: 0 !important;
  color: var(--platform-ink) !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 768px) {
  .platform-upload-box,
  .file-upload,
  .file-upload-wrapper,
  .upload-box,
  .upload-area,
  .file-input-wrapper {
    min-height: 76px !important;
    padding: 12px 16px !important;
  }

  .platform-file-name {
    font-size: 14px !important;
  }
}
