:root {
  --brand: #0088cc;
  --brand-dark: #005580;
  --line: #cfcfcf;
  --text: #222;
  --muted: #8a8a8a;
  --soft: #f6f8fa;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  background: url("../images/bg.jpg") center center / cover fixed no-repeat;
  font-size: 13px;
  line-height: 20px;
}

.landing-body {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.landing-body .landing-page {
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

.login-body {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.login-body .modern-login-page {
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.col-md-6 {
  width: 50%;
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 18px;
}

.g-4,
.g-5 {
  row-gap: 0;
}

.mb-4 {
  margin-bottom: 18px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 18px;
}

.mt-5 {
  margin-top: 24px;
}

.w-100 {
  width: 100%;
}

.text-center {
  text-align: center;
}

.d-none {
  display: none;
}

.ms-auto {
  margin-left: auto;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 16px;
}

.activity-card,
.auth-card,
.profile-card {
  border: 1px solid #999;
  background: #fff;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.activity-card {
  width: min(380px, 100%);
  min-height: 260px;
  padding: 22px 30px 26px;
  text-align: center;
  border-radius: 5px;
}

.activity-card h1,
.auth-card h1 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.activity-info {
  min-height: 130px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.activity-info h2 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
}

.activity-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.btn-primary {
  color: #fff;
  background-color: #2563eb;
  background-image: linear-gradient(135deg, #ef4444, #2563eb);
  border-color: #2563eb #2563eb #dc2626;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background-color: #dc2626;
  background-image: linear-gradient(135deg, #dc2626, #1d4ed8);
}

.action-btn,
.submit-btn {
  min-width: 140px;
  border-radius: 4px;
}

.auth-card {
  width: 300px;
  min-height: auto;
  padding: 19px 29px 29px;
  border-radius: 5px;
}

.modern-login-page {
  min-height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: transparent;
}

.modern-page-bg {
  background: transparent;
}

.modern-surface {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
  backdrop-filter: blur(18px);
}

.modern-login-card {
  width: min(460px, 100%);
  min-height: 455px;
  padding: 28px 34px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
  backdrop-filter: blur(18px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef4444, #2563eb);
  box-shadow: 0 12px 28px rgba(220, 38, 38, .24);
}

.login-brand h1 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
}

.login-brand p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.modern-field {
  margin-bottom: 18px;
}

.modern-field label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.modern-field input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  color: #0f172a;
  font-size: 15px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.modern-field input:focus {
  border-color: #38bdf8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .13);
}

.modern-primary-btn {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #2563eb);
  box-shadow: 0 14px 28px rgba(220, 38, 38, .24);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.modern-primary-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #dc2626, #1d4ed8);
  box-shadow: 0 18px 32px rgba(37, 99, 235, .30);
}

.login-note {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.modern-code-tip {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.modern-code-tip strong {
  color: #0f172a;
}

.modern-login-card .code-boxes {
  display: grid;
  grid-template-columns: repeat(6, 54px);
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.modern-login-card .code-input {
  display: block;
  width: 54px;
  height: 54px;
  padding: 0;
  margin: 0;
  color: #0f172a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 50px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(203, 213, 225, 0.95);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  caret-color: #2563eb;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

@media (max-width: 575px) {
  .modern-login-card .code-boxes {
    grid-template-columns: repeat(6, 44px);
    gap: 8px;
  }

  .modern-login-card .code-input {
    width: 44px;
    height: 50px;
    font-size: 22px;
    line-height: 46px;
    border-radius: 12px;
  }
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  padding: 0 16px;
  color: var(--text);
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-form input,
.profile-form select {
  height: 48px;
}

.profile-form textarea {
  min-height: 156px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.profile-form input.field-error,
.profile-form select.field-error,
.profile-form textarea.field-error {
  background: #fff1f2;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
  animation: field-shake 0.22s ease;
}

@keyframes field-shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

.work-form .row {
  align-items: flex-start;
}

.work-layout {
  align-items: stretch;
}

.readonly-profile-panel {
  margin-bottom: 30px;
  padding: 20px 22px 22px;
  border: 3px solid #60a5fa;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04), inset 0 0 0 1px #e2e8f0;
}

.readonly-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.readonly-profile-heading strong {
  color: #0f172a;
  font-size: 15px;
}

.readonly-profile-heading span {
  color: #64748b;
  font-size: 13px;
}

.profile-card.modern-surface .readonly-profile-input[readonly] {
  color: #475569;
  border-color: #e2e8f0;
  background: #f8fafc;
  cursor: not-allowed;
}

.work-fields,
.work-uploads {
  display: flex;
  flex-direction: column;
}

.work-field,
.work-upload-block {
  margin-bottom: 20px;
}

.work-field:last-child,
.work-upload-block:last-child {
  margin-bottom: 0;
}

.work-field textarea {
  height: 134px;
  min-height: 134px;
  max-height: 134px;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  resize: none;
}

.upload-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-label-row a {
  color: #0891b2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: rgba(226, 232, 240, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.95);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upload-box:hover {
  background: rgba(224, 242, 254, 0.95);
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.upload-box-rich {
  min-height: 72px;
  gap: 12px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(240, 249, 255, 0.95));
  border-style: dashed;
}

.upload-box-rich strong,
.upload-box-rich small {
  display: block;
}

.upload-box-rich small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.upload-input {
  display: none;
}

.upload-file-list {
  min-height: 310px;
  max-height: 310px;
  margin-top: 12px;
  padding: 10px;
  overflow-y: auto;
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 16px;
}

.upload-file-list:empty {
  display: none;
}

.upload-queue-summary {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 10px 9px;
  margin-bottom: 8px;
  background: rgba(239, 246, 255, 0.96);
  border: 1px solid rgba(147, 197, 253, 0.88);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.upload-queue-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-queue-title strong {
  color: #0f172a;
  font-size: 13px;
}

.upload-queue-title span,
.upload-queue-percent {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.upload-queue-total {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  background: #dbeafe;
  border-radius: 999px;
}

.upload-queue-total span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  border-radius: inherit;
  transition: width 0.24s ease;
}

.upload-queue-percent {
  margin-top: 6px;
  text-align: right;
}

.upload-file-item {
  position: relative;
  padding: 9px 38px 9px 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.upload-file-item:last-child {
  margin-bottom: 0;
}

.upload-file-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.upload-file-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
  background: #dbeafe;
  border-radius: 10px;
}

.upload-file-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.upload-file-meta strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-meta span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}

.upload-file-status {
  flex: 0 0 112px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-file-remove {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 22px;
  height: 22px;
  color: #94a3b8;
  font-size: 16px;
  line-height: 18px;
  background: #f8fafc;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
}

.upload-file-remove:hover {
  color: #dc2626;
  background: #fee2e2;
}

.upload-progress {
  flex: 1 1 auto;
  height: 6px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}

.upload-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  border-radius: inherit;
  transition: width 0.24s ease;
}

.upload-progress-text {
  flex: 0 0 34px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.upload-help {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
}

.work-actions {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 34px;
}

.modern-login-card .code-input:focus {
  border-color: #38bdf8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .13);
}

.modern-link-btn {
  width: 100%;
  margin-top: 14px;
  color: #2563eb;
  font-size: 13px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.modern-link-btn:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.modern-alert {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 20px;
}

.modern-alert.alert-success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.modern-alert.alert-danger {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.modern-alert.alert-warning {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.modern-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
  transform: translate(-50%, -46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.modern-toast.show {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.modern-toast-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
}

.modern-toast-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.modern-toast-success .modern-toast-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.modern-toast-danger .modern-toast-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.modern-toast-warning .modern-toast-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

@media (max-width: 640px) {
  .modern-toast {
    left: 50%;
    width: calc(100vw - 32px);
    min-width: 0;
    max-width: none;
  }
}

.muted-tip {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.login-step {
  display: none;
}

.login-step.active {
  display: block;
}

.form-control {
  border-radius: 0;
  border-color: #bdbdbd;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.form-select {
  border-radius: 0;
  border-color: #bdbdbd;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6);
}

.form-select:focus {
  border-color: var(--brand);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6);
}

.code-tip {
  margin-bottom: 20px;
}

.code-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.code-input {
  width: 100%;
  height: 36px;
  border: 1px solid #bdbdbd;
  text-align: center;
  font-size: 18px;
  outline: none;
}

.code-input:focus {
  border-color: var(--brand);
}

.profile-page {
  min-height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 16px;
  background: #fff;
}

.profile-card {
  width: min(980px, 100%);
  min-height: 520px;
  margin: 0 auto;
  border-radius: 3px;
}

.profile-tabs {
  min-height: 50px;
  padding: 0 34px;
  background: #eee;
  border-bottom: 1px solid #ddd;
  align-items: center;
  gap: 18px;
  display: flex;
  margin: 0;
}

.profile-tabs .nav-link {
  padding: 14px 14px;
  border: 0;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.profile-tabs .nav-link.active {
  color: #e50012;
  background: transparent;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

.logout-btn {
  padding: 4px 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  cursor: pointer;
}

.logout-btn:hover {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fecaca;
}

.profile-form {
  padding: 26px 30px 28px;
}

.profile-form .form-label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-form .form-control,
.profile-form .form-select {
  height: 32px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.unit-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.unit-actions .btn-secondary {
  color: #fff;
  background: #d9d9d9;
  border-color: #d9d9d9;
  text-shadow: none;
}

.reports-panel {
  padding: 28px 34px;
}

.reports-panel .table-responsive {
  border-radius: 16px;
}

.reports-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.report-search {
  display: flex;
  width: 270px;
}

.report-search .form-select {
  width: 110px;
  height: 32px;
}

.report-search .form-control {
  width: 128px;
  height: 32px;
  border-left: 0;
}

.search-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #999;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
}

.add-report-btn {
  min-width: 100px;
  height: 34px;
  border-radius: 4px;
}

.report-table {
  margin-bottom: 18px;
  text-align: center;
  vertical-align: middle;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.report-col-index {
  width: 54px;
}

.report-col-title,
.report-col-unit {
  width: auto;
}

.report-col-theme,
.report-col-type,
.report-col-status,
.report-col-action {
  width: 72px;
}

.report-col-time {
  width: 136px;
}

.report-table th {
  background: #fafafa;
  font-weight: 500;
}

.report-table th,
.report-table td {
  height: 30px;
  border-color: #999;
  padding: 4px 6px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-table a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.report-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #333;
}

.page-btn {
  min-width: 24px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #333;
}

.page-arrow {
  min-width: 36px;
  height: 36px;
  color: #111827;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.page-btn.active {
  color: #2f80ed;
}

.page-btn.disabled {
  color: #cfcfcf;
}

.page-input {
  width: 46px;
  height: 28px;
  text-align: center;
}

.alert {
  border-radius: 0;
}

@media (max-width: 767px) {
  .profile-tabs {
    padding: 10px 8px;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }

  .profile-tabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .profile-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 4px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .profile-tabs .account-badge {
    order: 2;
    flex: 1 0 100%;
    justify-content: flex-end;
    margin-left: 0;
    padding-top: 2px;
    font-size: 13px;
    gap: 8px;
  }

  .profile-tabs .account-phone {
    white-space: nowrap;
  }

  .profile-tabs .logout-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .activity-card,
  .auth-card {
    padding: 28px 22px;
  }

  .profile-page {
    padding: 24px 12px;
  }

  .profile-form {
    padding: 24px 18px;
  }

  .col-md-6 {
    width: 100%;
  }

  .profile-tabs {
    padding: 10px 8px;
    gap: 4px;
  }

  .profile-tabs .nav-item {
    flex: 1 1 0;
  }

  .profile-tabs .nav-link {
    min-height: 40px;
    padding: 7px 2px;
    font-size: 12px;
  }

  .profile-tabs .account-badge {
    justify-content: center;
    font-size: 12px;
  }

  .reports-panel {
    padding: 24px 16px;
  }

  .reports-toolbar,
  .report-pagination,
  .unit-actions {
    flex-wrap: wrap;
  }

  .report-search {
    width: 100%;
  }

  .upload-file-main {
    align-items: flex-start;
  }

  .upload-file-status {
    flex: 0 0 90px;
    margin-top: 4px;
  }

}

@media (max-width: 390px) {
  .profile-tabs .nav-link {
    font-size: 11px;
    padding: 7px 1px;
  }
}

.landing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.landing-brand h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
}

.modern-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 46px;
  padding: 0 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #2563eb);
  box-shadow: 0 14px 28px rgba(220, 38, 38, .24);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.modern-primary-link:hover {
  color: #fff;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #dc2626, #1d4ed8);
  box-shadow: 0 18px 32px rgba(37, 99, 235, .30);
  text-decoration: none;
}

.organizer-info {
  margin-top: 24px;
  padding: 0;
  color: #64748b;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.organizer-group {
  display: block;
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.organizer-group:first-child {
  margin-top: 0;
}

.organizer-group strong {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  background: transparent;
  border-radius: 0;
}

.organizer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 13px;
  line-height: 1.8;
}

.organizer-list span {
  display: inline;
  padding: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 0;
  word-break: keep-all;
}

.landing-page .activity-card {
  width: min(720px, 100%);
  padding: 28px 34px;
  border: 0;
  border-radius: 24px;
}

.landing-page .activity-info {
  height: 255px;
  min-height: 0;
  margin-bottom: 22px;
  padding: 0;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
  overflow: hidden;
}

.landing-page .activity-info h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-weight: 800;
}

.landing-page .activity-info h3 {
  margin: 18px 0 10px;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
  text-align: left;
}

.landing-page .activity-info p {
  margin: 0 0 12px;
  color: #64748b;
  text-align: left;
}

.landing-page .activity-info p:last-child {
  margin-bottom: 0;
}

.activity-scroll-box {
  height: 100%;
  padding: 20px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.activity-scroll-box::-webkit-scrollbar {
  width: 8px;
}

.activity-scroll-box::-webkit-scrollbar-track {
  background: rgba(219, 234, 254, 0.65);
  border-radius: 999px;
}

.activity-scroll-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #38bdf8, #2563eb);
  border-radius: 999px;
}

.profile-page.modern-page-bg {
  background: transparent;
}

.profile-card.modern-surface {
  width: min(1080px, 100%);
  border: 0;
  border-radius: 24px;
  overflow: hidden;
}

.profile-card.modern-surface .profile-tabs {
  min-height: 64px;
  padding: 0 32px;
  background: rgba(248, 251, 255, .9);
  border-bottom: 1px solid #e0f2fe;
  gap: 10px;
}

.profile-card.modern-surface .profile-tabs .nav-link {
  padding: 10px 18px;
  color: #64748b;
  font-size: 15px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}

.profile-card.modern-surface .profile-tabs .nav-link.active {
  color: #2563eb;
  background: #dbeafe;
}

.profile-card.modern-surface .account-badge {
  color: #2563eb;
}

.profile-card.modern-surface .profile-form,
.profile-card.modern-surface .reports-panel {
  padding: 32px;
}

.profile-card.modern-surface .profile-form .form-label {
  color: #334155;
  font-size: 13px;
}

.profile-card.modern-surface .form-control,
.profile-card.modern-surface .form-select {
  height: 42px;
  padding: 0 12px;
  color: #0f172a;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: none;
}

.profile-card.modern-surface .form-control:focus,
.profile-card.modern-surface .form-select:focus {
  border-color: #38bdf8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .13);
}

.profile-card.modern-surface .btn-primary,
.profile-card.modern-surface .add-report-btn {
  height: 42px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #2563eb);
  box-shadow: 0 12px 24px rgba(220, 38, 38, .20);
  text-shadow: none;
}

.profile-card.modern-surface .btn-secondary {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #e2e8f0;
  color: #94a3b8;
}

.profile-card.modern-surface .report-search .form-select,
.profile-card.modern-surface .report-search .form-control {
  height: 38px;
}

.mobile-select-trigger,
.mobile-select-sheet {
  display: none;
}

@media (max-width: 767px) {
  .mobile-sheet-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    color: #0f172a;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
    box-shadow: none;
    text-align: left;
  }

  .mobile-select-trigger::after {
    content: '';
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-left: 12px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-2px);
  }

  .mobile-select-trigger-empty {
    color: #94a3b8;
  }

  .mobile-select-trigger.field-error {
    background: #fff1f2;
    border-color: #ef4444;
  }

  .mobile-select-sheet {
    position: fixed;
    inset: 0;
    z-index: 3000;
  }

  .mobile-select-sheet.is-open {
    display: block;
  }

  .mobile-select-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
  }

  .mobile-select-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 70vh;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .18);
    transform: translateY(100%);
    transition: transform .22s ease;
  }

  .mobile-select-sheet.is-open .mobile-select-panel {
    transform: translateY(0);
  }

  .mobile-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .mobile-select-header strong {
    color: #0f172a;
    font-size: 16px;
  }

  .mobile-select-close {
    padding: 0;
    color: #2563eb;
    font-size: 14px;
    border: 0;
    background: transparent;
  }

  .mobile-select-options {
    overflow-y: auto;
  }

  .mobile-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 52px;
    padding: 14px 4px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
    border: 0;
    border-top: 1px solid #e2e8f0;
    background: transparent;
  }

  .mobile-select-option:first-child {
    border-top: 0;
  }

  .mobile-select-option.is-selected {
    color: #0ea5a4;
    font-weight: 600;
  }

  .mobile-select-option-mark {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 999px;
  }

  .mobile-select-option.is-selected .mobile-select-option-mark {
    background: radial-gradient(circle, currentColor 0 4px, transparent 5px);
  }
}

.profile-card.modern-surface .search-btn {
  width: 38px;
  height: 38px;
  color: #2563eb;
  border: 1px solid #dbeafe;
  border-radius: 0 12px 12px 0;
  background: #f8fbff;
}

.profile-card.modern-surface .report-table {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.profile-card.modern-surface .report-table th {
  color: #334155;
  background: #eff6ff;
  font-weight: 700;
}

.profile-card.modern-surface .report-table th,
.profile-card.modern-surface .report-table td {
  border-color: #e0f2fe;
}

.profile-card.modern-surface .report-table a {
  color: #2563eb;
}

.profile-card.modern-surface .page-btn.active {
  color: #2563eb;
  font-weight: 800;
}

.profile-card.modern-surface .report-table td.submission-status-danger,
.report-table td.submission-status-danger {
  color: #dc2626;
  font-weight: 700;
}

.profile-card.modern-surface .report-table td.submission-status-success,
.report-table td.submission-status-success {
  color: #16a34a;
  font-weight: 700;
}
