/* src/styles/main.css */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #333;
  -webkit-font-smoothing: antialiased;
  display: flex;
  background-color: #f5f5f5;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Hiragino Kaku Gothic ProN, Hiragino Sans, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main {
  flex: 1;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.header {
  display: flex;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  justify-content: space-between;
  align-items:  center;
  height: 60px;
  padding: 0 24px;
}

.header-left {
  display: flex;
  align-items:  center;
  gap: 24px;
}

.header-logo {
  color: #333;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.header-logo:hover {
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items:  center;
  gap: 16px;
}

.header-nav-link {
  color: #444;
  text-decoration: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
}

.header-nav-link:hover, .header-nav-link:focus {
  color: #1d4ed8;
  text-decoration: none;
  background-color: #f3f4f6;
}

.header-right {
  display: flex;
  align-items:  center;
  gap: 12px;
}

@media (max-width: 600px) {
  .header-left {
    gap: 12px;
  }

  .header-nav-link {
    padding: 6px 8px;
    font-size: 13px;
  }
}

.header-user-info {
  display: flex;
  flex-direction: column;
  align-items:  flex-end;
  line-height: 1.3;
}

.header-user-name {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.header-user-university {
  color: #999;
  font-size: 11px;
}

.header-avatar {
  color: #fff;
  display: flex;
  position: relative;
  background-color: #6b21a8;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: bold;
}

.header-avatar-admin {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #dc2626;
}

.header-avatar-admin-mark {
  position: absolute;
  color: #fff;
  display: flex;
  background-color: #dc2626;
  border: 1.5px solid #fff;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 16px;
  height: 16px;
  top: -4px;
  right: -4px;
  box-shadow: 0 1px 2px #00000026;
}

.header-avatar-admin-mark svg {
  width: 10px;
  height: 10px;
}

.header-user-menu {
  position: relative;
}

.header-menu-trigger {
  display: flex;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  align-items:  center;
  gap: 12px;
  padding: 4px;
  transition: background-color .2s;
}

.header-menu-trigger:hover {
  background-color: #f5f5f5;
}

.header-dropdown {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  background-color: #fff;
  border-radius: 8px;
  min-width: 180px;
  padding: 8px 0;
  transition: opacity .15s, transform .15s, visibility .15s;
  top: calc(100% + 8px);
  right: 0;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px #0000001f;
}

.header-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  color: #333;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 10px 16px;
  transition: background-color .15s;
  font-family: inherit;
  font-size: 14px;
}

.dropdown-item:hover {
  text-decoration: none;
  background-color: #f5f5f5;
}

.dropdown-item-danger {
  color: #dc2626;
}

.dropdown-item-admin {
  color: #b91c1c;
  display: flex;
  align-items:  center;
  gap: 8px;
  font-weight: 600;
}

.dropdown-item-admin:hover {
  color: #991b1b;
  background-color: #fef2f2;
}

.dropdown-item-admin-icon {
  display: inline-flex;
  color: #dc2626;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
}

.dropdown-item-admin-icon svg {
  width: 14px;
  height: 14px;
}

.dropdown-divider {
  background-color: #e0e0e0;
  height: 1px;
  margin: 4px 0;
}

.page-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 16px;
}

.page-title {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: bold;
}

.page-subtitle {
  color: #666;
  font-size: 14px;
}

.page-header {
  margin-bottom: 24px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 24px;
  box-shadow: 0 1px 3px #00000014;
}

.card-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
}

.card-danger .section-title-danger {
  color: #dc2626;
  border-bottom: none;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.danger-description {
  color: #666;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.current-email-label {
  color: #555;
  margin-bottom: 20px;
  font-size: 14px;
}

.back-link {
  display: inline-flex;
  color: #2563eb;
  align-items:  center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

.email-change-link {
  color: #2563eb;
  font-size: 13px;
}

.btn-clear-field {
  display: none;
  color: #6b7280;
  cursor: pointer;
  background: none;
  border: none;
  margin-top: 6px;
  padding: 0;
  font-size: 13px;
}

.btn-clear-field:hover {
  color: #2563eb;
  text-decoration: underline;
}

.alert-warning {
  color: #92400e;
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 14px;
}

.alert-info {
  color: #075985;
  background-color: #e0f2fe;
  border: 1px solid #0284c7;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 14px;
}

.btn-danger {
  display: inline-block;
  color: #fff;
  cursor: pointer;
  background-color: #dc2626;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  transition: background-color .2s;
  font-size: 14px;
  font-weight: bold;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-danger:disabled {
  cursor: not-allowed;
  background-color: #f87171;
}

.section-title {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 18px;
  font-weight: bold;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-label {
  display: block;
  color: #666;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.required-mark {
  color: #dc2626;
  margin-left: 2px;
}

.form-input {
  outline: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 100%;
  padding: 10px 12px;
  transition: border-color .2s;
  font-family: inherit;
  font-size: 16px;
}

.form-input:focus {
  border-color: #2563eb;
}

.form-input:read-only {
  color: #333;
  cursor: default;
  background-color: #f5f5f5;
  border-color: #0000;
}

.form-input.placeholder-dash:read-only {
  color: #999;
}

.form-select {
  outline: none;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
}

.form-select:focus {
  border-color: #2563eb;
}

.form-select:disabled {
  color: #333;
  cursor: default;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #f5f5f5;
  border-color: #0000;
}

.form-helper {
  color: #999;
  margin-top: 4px;
  font-size: 12px;
}

.form-note {
  color: #555;
  background: #f5f7fa;
  border-left: 3px solid #b3c6e0;
  border-radius: 4px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
}

.checkbox-label {
  display: inline-flex;
  color: #555;
  cursor: pointer;
  align-items:  center;
  gap: 6px;
  font-size: 13px;
}

.checkbox-group {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 12px;
}

.checkbox-group input[type="checkbox"] {
  accent-color: #2563eb;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  color: #333;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  display: inline-block;
  color: #fff;
  cursor: pointer;
  text-align: center;
  background-color: #2563eb;
  border: none;
  border-radius: 6px;
  width: 100%;
  padding: 12px 32px;
  transition: background-color .2s;
  font-size: 16px;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-primary:disabled {
  cursor: not-allowed;
  background-color: #93b4f5;
}

.btn-secondary {
  display: inline-block;
  color: #2563eb;
  cursor: pointer;
  text-align: center;
  background-color: #fff;
  border: 1px solid #2563eb;
  border-radius: 6px;
  width: 100%;
  padding: 12px 32px;
  transition: all .2s;
  font-size: 16px;
  font-weight: bold;
}

.btn-secondary:hover {
  background-color: #eff6ff;
}

.error-message {
  color: #dc2626;
  display: none;
  margin-top: 8px;
  font-size: 14px;
}

.error-message.visible {
  display: block;
}

.success-message {
  color: #16a34a;
  display: none;
  background-color: #f0fdf4;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 14px;
}

.success-message.visible {
  display: block;
}

.global-error {
  color: #dc2626;
  display: none;
  background-color: #fef2f2;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 14px;
}

.global-error.visible {
  display: block;
}

.auth-container {
  max-width: 460px;
  margin: 60px auto;
  padding: 0 16px;
}

.auth-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px #00000014;
}

.auth-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: bold;
}

.auth-subtitle {
  color: #666;
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.auth-agree-text {
  text-align: center;
  color: #999;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.auth-agree-text a {
  color: #2563eb;
}

.auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.auth-links a {
  color: #2563eb;
}

.auth-links p {
  margin-bottom: 12px;
}

.auth-links p:last-child {
  margin-bottom: 0;
}

.auth-divider {
  display: flex;
  color: #999;
  align-items:  center;
  margin: 32px 0;
  font-size: 14px;
}

.auth-divider:before, .auth-divider:after {
  content: "";
  border-bottom: 1px solid #e5e7eb;
  flex: 1;
}

.auth-divider:before {
  margin-right: 16px;
}

.auth-divider:after {
  margin-left: 16px;
}

.btn-line {
  display: flex;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  background: #06c755;
  border: 1px solid #06c755;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  gap: 14px;
  width: 100%;
  padding: 8px 32px;
  transition: opacity .2s;
  font-size: 16px;
  font-weight: bold;
}

.btn-line:hover {
  opacity: .7;
}

.btn-line:active {
  opacity: .5;
}

.btn-line-icon {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
}

.btn-line-icon img {
  width: 32px;
  height: 32px;
}

.btn-line-text {
  white-space: nowrap;
}

.auth-line-benefit {
  text-align: center;
  color: #06c755;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.btn-line-sm {
  display: inline-flex;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  justify-content: center;
  align-items:  center;
  gap: 14px;
  padding: 12px 32px;
  transition: opacity .2s;
  font-size: 15px;
  font-weight: 600;
}

.btn-line-sm:hover {
  opacity: .7;
}

.btn-line-sm-disabled {
  color: #999;
  cursor: not-allowed;
  pointer-events: none;
  background: #f5f5f5;
  border-color: #e0e0e0;
}

.btn-line-sm img {
  display: block;
  flex-shrink: 0;
}

.btn-line-sm-disabled img {
  filter: grayscale(100%);
  opacity: .5;
}

.link-disabled {
  color: #999;
  pointer-events: none;
  cursor: default;
  text-decoration: underline;
}

.footer {
  color: #ccc;
  background-color: #333;
  margin-top: auto;
  padding: 32px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.footer-logo {
  color: #fff;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: bold;
}

.footer-tagline {
  color: #999;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 12px;
}

.footer-column a {
  display: block;
  color: #ccc;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
  margin-bottom: 4px;
  font-size: 12px;
}

.footer-copyright {
  text-align: center;
  color: #999;
  border-top: 1px solid #555;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 12px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 24px;
}

.profile-header-left .page-title {
  margin-bottom: 2px;
}

.profile-field {
  margin-bottom: 16px;
}

.profile-field-row {
  display: flex;
  gap: 12px;
}

.profile-field-row .profile-field {
  flex: 1;
}

.profile-field-label {
  color: #999;
  margin-bottom: 4px;
  font-size: 12px;
}

.profile-field-value {
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  font-size: 16px;
}

.btn-edit {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  background-color: #2563eb;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  transition: background-color .2s;
  font-size: 14px;
  font-weight: bold;
}

.btn-edit:hover {
  text-decoration: none;
  background-color: #1d4ed8;
}

.btn-secondary-sm {
  display: inline-block;
  color: #666;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 20px;
  transition: background-color .2s;
  font-size: 14px;
}

.btn-secondary-sm:hover {
  text-decoration: none;
  background-color: #f5f5f5;
}

.toast {
  position: fixed;
  color: #fff;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 12px 24px;
  transition: transform .3s, opacity .3s;
  font-size: 14px;
  top: 24px;
  left: 50%;
  transform: translateX(-50%)translateY(-100px);
}

.toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%)translateY(0);
}

.toast-error {
  background-color: #dc2626;
}

.toast-success {
  background-color: #16a34a;
}

.toast-link {
  display: inline-block;
  color: #fff;
  text-decoration: underline;
  margin-left: 12px;
  font-weight: 600;
}

.password-field {
  position: relative;
}

.password-field .form-input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  cursor: pointer;
  color: #999;
  display: flex;
  background: none;
  border: none;
  justify-content: center;
  align-items:  center;
  padding: 4px;
  transition: color .2s;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.password-toggle:hover, .password-toggle.active {
  color: #2563eb;
}

.password-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.checklist-item {
  display: flex;
  color: #999;
  align-items:  center;
  gap: 6px;
  transition: color .2s;
  font-size: 12px;
}

.checklist-item.met {
  color: #16a34a;
}

.checklist-icon:before {
  content: "○";
  font-size: 10px;
}

.checklist-item.met .checklist-icon:before {
  content: "✓";
  font-weight: bold;
}

.password-mismatch {
  color: #dc2626;
  margin-top: 4px;
  font-size: 12px;
}

.section-title-icon {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.loading {
  text-align: center;
  color: #999;
  padding: 32px;
  font-size: 14px;
}

.verify-email-icon {
  text-align: center;
  margin-bottom: 16px;
  font-size: 48px;
}

.action-success {
  display: flex;
  flex-direction: column;
  align-items:  center;
  padding: 48px 0;
}

.success-check-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.success-check-icon svg {
  width: 100%;
  height: 100%;
}

.action-success .auth-title {
  margin-bottom: 48px;
}

.onboarding-progress {
  max-width: 460px;
  margin: 32px auto 0;
  padding: 0 16px;
}

.onboarding-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.onboarding-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items:  center;
  gap: 6px;
}

.step-indicator {
  display: flex;
  color: #999;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  transition: all .2s;
  font-size: 13px;
  font-weight: bold;
}

.step-label {
  color: #999;
  white-space: nowrap;
  transition: color .2s;
  font-size: 11px;
}

.onboarding-step.active .step-indicator {
  color: #fff;
  background-color: #2563eb;
  border-color: #2563eb;
}

.onboarding-step.active .step-label {
  color: #2563eb;
  font-weight: 600;
}

.onboarding-step.completed .step-indicator {
  color: #fff;
  background-color: #2563eb;
  border-color: #2563eb;
}

.onboarding-step.completed .step-label {
  color: #333;
}

.onboarding-bar {
  overflow: hidden;
  background-color: #e0e0e0;
  border-radius: 2px;
  height: 4px;
}

.onboarding-bar-fill {
  background-color: #2563eb;
  border-radius: 2px;
  height: 100%;
  transition: width .3s;
}

.autocomplete-wrapper {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  overflow-y: auto;
  z-index: 50;
  list-style: none;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 240px;
  margin: 0;
  padding: 0;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 4px 12px #0000001a;
}

.autocomplete-item {
  display: flex;
  cursor: pointer;
  justify-content: space-between;
  align-items:  center;
  padding: 10px 12px;
  transition: background-color .1s;
  font-size: 14px;
}

.autocomplete-item:hover, .autocomplete-item-active {
  background-color: #eff6ff;
}

.autocomplete-item-label {
  color: #333;
}

.autocomplete-item-meta {
  color: #999;
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 12px;
}

.autocomplete-no-result {
  color: #999;
  cursor: default;
  text-align: center;
  padding: 16px 12px;
  font-size: 13px;
}

.autocomplete-no-result:hover {
  background-color: #0000;
}

.legal-article {
  color: #333;
  background-color: #fff;
  border-radius: 8px;
  padding: 32px;
  font-size: 14px;
  line-height: 1.9;
  box-shadow: 0 1px 3px #00000014;
}

.legal-article h2 {
  color: #111;
  margin: 32px 0 12px;
  font-size: 16px;
  font-weight: bold;
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article p {
  margin: 0 0 6px;
}

.legal-lead {
  margin-bottom: 24px;
}

.legal-l1 {
  text-indent: -1.75em;
  padding-left: 1.75em;
}

.legal-l2 {
  text-indent: -1.5em;
  padding-left: 3.25em;
}

.legal-l3 {
  text-indent: -1.5em;
  padding-left: 4.75em;
}

.legal-note {
  color: #555;
  background-color: #f7f7f7;
  border-left: 3px solid #ccc;
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 13px;
}

.legal-important {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: bold;
}

.legal-footer {
  color: #555;
  border-top: 1px solid #eee;
  margin-top: 40px;
  padding-top: 24px;
  font-size: 13px;
}

.legal-footer p {
  margin: 0 0 4px;
}

@media (max-width: 600px) {
  .legal-article {
    padding: 20px;
    font-size: 13px;
  }
}

.mypage-events-loading {
  text-align: center;
  color: #666;
  padding: 32px 16px;
  font-size: 14px;
}

.mypage-events-empty {
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: 0 1px 3px #00000014;
}

.mypage-events-empty-message {
  color: #555;
  margin: 0 0 16px;
  font-size: 14px;
}

.mypage-events-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.mypage-events-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  transition: box-shadow .15s, transform .15s, background-color .15s;
  box-shadow: 0 1px 3px #00000014;
}

.mypage-events-item:has(.mypage-events-item-link):hover {
  background-color: #f5f8ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #1d4ed81f;
}

.mypage-events-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mypage-events-item-link:hover, .mypage-events-item-link:focus {
  text-decoration: none;
}

.mypage-events-item-link:hover .mypage-events-item-title {
  color: #1d4ed8;
}

.mypage-events-item-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.mypage-events-item-meta {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 14px;
}

.mypage-events-item-meta dt {
  color: #666;
  font-weight: normal;
}

.mypage-events-item-meta dd {
  color: #222;
  margin: 0;
}

@media (max-width: 600px) {
  .mypage-events-item {
    padding: 16px;
  }

  .mypage-events-item-title {
    font-size: 15px;
  }

  .mypage-events-item-meta {
    grid-template-columns: 72px 1fr;
    font-size: 13px;
  }
}

.page-header-with-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 16px;
}

.events-row {
  background-color: #fff;
  border-radius: 8px;
  transition: box-shadow .15s, transform .15s, background-color .15s;
  box-shadow: 0 1px 3px #00000014;
}

.events-row:hover {
  background-color: #f5f8ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #1d4ed81f;
}

.events-row-link {
  display: flex;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  align-items:  center;
  gap: 16px;
  padding: 16px 20px;
}

.events-row-link:hover, .events-row-link:focus {
  text-decoration: none;
}

.events-row-date-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 72px;
}

.events-row-date {
  color: #222;
  letter-spacing: .02em;
  font-size: 18px;
  font-weight: bold;
}

.events-row-weekday {
  color: #666;
  font-size: 13px;
}

.events-row-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.events-row-title {
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.4;
}

.events-row-link:hover .events-row-title {
  color: #1d4ed8;
}

.events-row-time {
  color: #666;
  font-size: 12px;
}

@media (max-width: 600px) {
  .events-row-link {
    gap: 12px;
    padding: 14px 16px;
  }

  .events-row-date-block {
    min-width: 60px;
  }

  .events-row-date {
    font-size: 16px;
  }

  .events-row-title {
    white-space: normal;
    font-size: 15px;
  }
}

.event-detail-applied-body {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px #00000014;
}

.event-detail-applied-body .applied-text {
  color: #4b5563;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
}

.event-detail-applied-body .applied-text:last-child {
  margin-bottom: 0;
}

.event-detail-applied-body .applied-text strong {
  color: #111827;
}

.event-detail-applied-body .applied-info {
  color: #4b5563;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
}

.event-detail-applied-body .applied-info-row {
  display: flex;
  gap: 4px;
}

.event-detail-applied-body .applied-info-label {
  color: #111827;
  flex-shrink: 0;
  font-weight: bold;
}

.event-detail-applied-body .applied-info-value {
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.event-detail-applied-body .applied-viewing-url {
  word-break: break-all;
}

.event-detail-applied-body .applied-cancel-link {
  margin-top: 8px;
  font-size: 12px;
}

.event-detail-applied-body .applied-cancel-link a {
  color: #6b7280;
  text-decoration: underline;
}

.event-detail-applied-body .applied-cancel-link a:hover {
  color: #374151;
}

.event-detail-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px #00000014;
}

.event-detail-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.event-detail-legend {
  color: #222;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: bold;
}

.event-detail-legend-hint {
  color: #666;
  margin: 0 0 12px;
  font-size: 13px;
}

.event-detail-schedules {
  display: flex;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 16px;
}

.event-detail-schedule-item {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.event-detail-schedule-text {
  font-size: 14px;
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.event-detail-completion {
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: 0 1px 3px #00000014;
}

.event-detail-completion-title {
  color: #1d4ed8;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: bold;
}

.event-detail-completion-event {
  color: #222;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: bold;
}

.event-detail-completion-schedule {
  color: #222;
  white-space: pre-line;
  margin: 0 0 16px;
  font-size: 14px;
}

.event-detail-completion-mail {
  color: #555;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.6;
}

.event-detail-completion-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
}

@media (max-width: 600px) {
  .event-detail-form {
    padding: 16px;
  }

  .event-detail-actions {
    flex-direction: column;
  }

  .event-detail-actions .btn-primary, .event-detail-actions .btn-secondary {
    width: 100%;
  }

  .event-detail-completion {
    padding: 24px 16px;
  }
}
