body:has(.home-dashboard-page) {
  background: #f5f6f8;
}

main:has(.home-dashboard-page) {
  padding-top: 2px !important;
}

.maintenance-banner {
  max-width: 560px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  box-sizing: border-box;
}

.home-dashboard-page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 2px 8px 108px;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

.home-dashboard-page,
.home-dashboard-page * {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

.main-flash-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.45;
}

.home-dashboard-card {
  width: 100%;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  overflow: hidden;
}

.home-dashboard-card-notice {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.home-dashboard-card-vote {
  border-color: #c8ead2;
  background: #fff;
}

.home-dashboard-card-approval {
  border-color: #f7ddb2;
  background: #fff;
}

.home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -10px -10px 9px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.home-dashboard-card-notice .home-card-header {
  background: #e5f0ff;
  border-bottom-color: #cfe2ff;
}

.home-dashboard-card-notice .home-card-title {
  color: #1e40af;
}

.home-dashboard-card-notice .home-card-count-link,
.home-dashboard-card-notice .home-card-count-link::after {
  color: #2563eb;
}

.home-dashboard-card-vote .home-card-header {
  background: #f0fdf4;
}

.home-dashboard-card-vote .home-card-title {
  color: #15803d;
}

.home-dashboard-card-approval .home-card-header {
  background: #fff7ed;
}

.home-dashboard-card-approval .home-card-title {
  color: #c2410c;
}

.home-card-title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.home-card-title {
  display: flex;
  align-items: center;
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-card-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  color: currentColor;
  box-sizing: border-box;
}

.home-card-icon-notice {
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.home-card-icon-notice::before,
.home-card-icon-notice::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 2px;
  border-top: 1.5px solid currentColor;
}

.home-card-icon-notice::before {
  top: 4px;
}

.home-card-icon-notice::after {
  top: 8px;
}

.home-card-icon-calendar {
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.home-card-icon-calendar::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 3px;
  border-top: 1.5px solid currentColor;
}

.home-card-icon-calendar::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 2px;
  width: 1.5px;
  height: 4px;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor;
}

.home-card-icon-clock {
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.home-card-icon-clock::before,
.home-card-icon-clock::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 1.5px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 50% 100%;
}

.home-card-icon-clock::after {
  transform: rotate(125deg);
}

.home-card-count-link {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.home-card-count-link::after {
  content: "›";
  margin-left: 5px;
  color: #111827;
  font-size: 17px;
  vertical-align: -1px;
}

.home-card-count-link:hover {
  color: #2563eb;
}

.home-notice-list {
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  list-style: none;
  overflow: hidden;
}

.home-notice-item + .home-notice-item {
  border-top: 1px solid #e5e7eb;
}

.home-notice-link {
  display: block;
  padding: 8px 8px;
  color: inherit;
  text-decoration: none;
}

.home-notice-link:hover .home-notice-title {
  color: #2563eb;
}

.home-notice-line {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.home-notice-pin {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.25;
}

.home-notice-scope {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}

.home-notice-scope[data-scope="center"] {
  background: #dbeafe;
  color: #1e3a8a;
}

.home-notice-scope[data-scope="camp"] {
  background: #e0e7ff;
  color: #3730a3;
}

.home-notice-title {
  min-width: 0;
  color: #111827;
  display: -webkit-box;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow-wrap: anywhere;
  overflow: hidden;
}

.home-notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  padding-left: 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.25;
}

.home-card-bottom-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 8px;
  border-radius: 7px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-card-bottom-link:hover {
  background: #eef2ff;
}

.home-action-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 0;
  border-top: 0;
}

.home-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.home-action-text {
  margin: 0;
  min-width: 0;
  color: #111827;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.home-action-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-action-button::after {
  content: "›";
  margin-left: 4px;
  font-size: 16px;
  line-height: 1;
}

.home-action-button-vote {
  background: #f3fbf5;
  color: #15803d;
  border-color: #c8ead2;
}

.home-action-button-vote:hover {
  background: #dcfce7;
}

.home-action-button-approval {
  background: #fffaf0;
  color: #c2410c;
  border-color: #f7ddb2;
}

.home-action-button-approval:hover {
  background: #ffedd5;
}

.home-card-empty {
  margin: 0;
  padding: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
}

.home-dashboard-card-vote .home-action-text {
  color: #15803d;
}

.home-dashboard-card-approval .home-action-text {
  color: #c2410c;
}

@media (max-width: 430px) {
  .home-dashboard-page {
    margin-top: 0;
    padding-top: 2px;
  }

  .home-action-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .home-action-button {
    width: auto;
  }

  .home-dashboard-card {
    margin-bottom: 16px;
  }

  .home-notice-link {
    padding: 7px;
  }

  .home-card-bottom-link {
    min-height: 30px;
  }

}
