header {
  height: auto !important;
  min-height: 82px !important;
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-content: stretch !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}

main {
  padding-top: 90px !important;
}

.wfops-header-row {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
}

.wfops-header-service-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.wfops-header-user-row {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.12);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wfops-service-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  white-space: nowrap;
}

.wfops-service-switch h1 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.wfops-service-tab {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
}

.wfops-service-tab.active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.wfops-service-tab:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff !important;
}

.wfops-service-separator {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

header .header-user {
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

header .header-user a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

header .header-user a:hover {
  color: #fff;
  text-decoration: underline;
}

header .header-user a.header-logout-link {
  color: #fff;
}

.ops-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 8px 20px;
  color: #111827;
}

.ops-page-header {
  margin: 0 0 14px;
  padding: 14px 2px 4px;
}

.ops-service-kicker {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.ops-page-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.ops-page-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

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

.ops-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.ops-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.2;
}

.ops-card span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.ops-card:active,
.ops-card:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.ops-ready-panel,
.ops-policy-box,
.ops-form {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.ops-ready-panel {
  padding: 28px 16px;
  text-align: center;
}

.ops-ready-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.ops-ready-panel p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.ops-policy-box {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #f8fafc;
}

.ops-policy-box p {
  margin: 0 0 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.ops-policy-box p:last-child {
  margin-bottom: 0;
}

.ops-form {
  padding: 14px;
}

.ops-form-row {
  margin-bottom: 12px;
}

.ops-form-row label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.ops-form-row input,
.ops-form-row select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 15px;
}

.ops-form-row input:focus,
.ops-form-row select:focus {
  border-color: #3b82f6;
  outline: 2px solid rgba(59, 130, 246, 0.16);
}

.ops-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin: 2px 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e3a8a;
}

.ops-total-row span {
  font-size: 14px;
  font-weight: 700;
}

.ops-total-row strong {
  font-size: 20px;
  line-height: 1;
}

.ops-submit-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #e5e7eb;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
  cursor: not-allowed;
}

.ops-bottom-nav {
  min-height: 64px;
  height: auto;
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom));
}

.ops-bottom-nav .bottom-nav-menu {
  height: 48px;
}

.ops-bottom-nav-item {
  min-height: 48px;
  padding: 6px 2px;
  gap: 4px;
  color: #666;
}

.ops-bottom-nav-item .bottom-nav-icon {
  width: 20px;
  height: 20px;
  color: #666;
  margin-bottom: 0;
}

.ops-bottom-nav-item .bottom-nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ops-bottom-nav-item.bottom-nav-active,
.ops-bottom-nav-item.bottom-nav-active .bottom-nav-icon {
  color: #1E74FF;
}

.ops-bottom-nav-item .bottom-nav-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 360px) {
  .wfops-service-tab {
    padding: 0 6px;
    font-size: 12px;
  }

  .wfops-service-switch h1 {
    font-size: 15px;
  }

  .ops-bottom-nav-item .bottom-nav-label {
    font-size: 10px;
  }
}

@media (min-width: 640px) {
  .ops-page {
    padding-top: 18px;
  }

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