.share-page {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.share-page__header {
  margin-bottom: 18px;
}

.share-page__header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.04em;
}

.share-page__content {
  display: grid;
  gap: 16px;
}

.share-section,
.share-best {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.share-section-title {
  margin: 0 0 12px;
  color: #475569;
  font-size: 1.05rem;
}

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

.share-pred-grid__item,
.share-feature-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.share-pred-grid__label,
.share-feature-list__name {
  color: #475569;
  font-size: 0.9rem;
}

.share-pred-grid__value,
.share-feature-list__score {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.share-feature-list {
  display: grid;
  gap: 6px;
}

.share-feature-list__score {
  color: #334155;
}

.share-best__card,
.share-daily-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: #fff;
}

.share-best__status {
  padding: 9px 12px;
  color: #0f172a;
  font-weight: 700;
  background: #e2e8f0;
}

.share-chart__title-line {
  padding: 12px 12px 4px;
  text-align: center;
}

.share-chart__link {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.share-chart__link:hover,
.share-chart__link:focus-visible {
  text-decoration: underline;
}

.share-chart__title {
  overflow-wrap: anywhere;
}

.share-chart__difficulty {
  color: #475569;
  font-size: 0.86em;
  font-weight: 600;
}

.share-chart__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 12px 14px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.share-chart__pred-label {
  font-weight: 700;
}

.share-pred {
  font-variant-numeric: tabular-nums;
}

.share-pred--blue { color: #2563eb; }
.share-pred--orange { color: #c2410c; }
.share-pred--green { color: #15803d; }
.share-pred--red { color: #dc2626; }
.share-pred--purple { color: #7c3aed; }
.share-pred--dark-purple { color: #5b21b6; }
.share-pred--deep-purple { color: #3b0764; }

.share-history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #0f172a;
  font-weight: 700;
}

.share-history-summary__item {
  white-space: nowrap;
}

.share-best-update {
  margin: 16px 0 0;
  color: #b45309;
  font-weight: 700;
  text-align: center;
}

.share-daily-list {
  display: grid;
  gap: 10px;
}

.share-daily-card__status {
  color: #64748b;
  font-size: 0.86rem;
}

.share-daily-card__status.is-achieved {
  color: #15803d;
  font-weight: 700;
}

.share-daily-card__goal {
  color: #475569;
  font-size: 0.9rem;
}

.share-muted {
  margin: 0;
  color: #64748b;
}

.share-page__top-link {
  display: inline-block;
  margin-top: 18px;
  color: #2563eb;
  font-weight: 700;
}

@media (max-width: 520px) {
  .share-pred-grid {
    grid-template-columns: 1fr;
  }

  .share-section,
  .share-best {
    padding: 14px;
  }
}

/* Reuse the My Page summary layout for read-only overview shares. */
.share-page__content.mypage-panel {
  width: 100%;
  box-sizing: border-box;
}

.share-page .mypage-section-heading {
  margin-top: 0;
}

.share-summary-section .mypage-recommendation-cards {
  grid-template-columns: minmax(0, 1fr);
}

.share-summary-section .mypage-recommendation-card--summary {
  width: 100%;
}

.share-summary-feature {
  margin-top: 12px;
}
.share-history-other {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}
.share-history-day-summary {
  cursor: default;
}

.share-history-day-summary::before,
.share-history-day-summary::after {
  display: none;
}

.share-history-day-summary:hover {
  background: transparent;
}
/* Keep the shared daily target in the same horizontally scrollable table language as My Target. */
.share-daily-share-section {
  padding-bottom: 20px;
}

.share-daily-date {
  margin: -4px 0 12px;
}

.share-daily-table-shell {
  margin-top: 4px;
}

.share-daily-table {
  min-width: 900px;
}

.share-daily-table col.share-daily-col--level { width: 8%; }
.share-daily-table col.share-daily-col--title { width: 28%; }
.share-daily-table col.share-daily-col--goal { width: 9%; }
.share-daily-table col.share-daily-col--achieved { width: 9%; }
.share-daily-table col.share-daily-col--pred { width: 9%; }
.share-daily-table col.share-daily-col--feature { width: 37%; }

.share-daily-table thead th {
  text-align: center;
  white-space: nowrap;
}

.share-daily-table tbody td {
  text-align: center;
  font-size: 0.85rem;
}

.share-daily-table tbody td.share-daily-table__title {
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.share-daily-table .share-daily-table__title-link {
  display: inline-block;
  width: auto;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.share-daily-table .share-daily-table__title-link .chart-title-cell__name {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.share-daily-table .share-daily-table__title-link .chart-title-cell__difficulty {
  white-space: nowrap;
}

.share-daily-table .share-daily-table__goal,
.share-daily-table .share-daily-table__achieved,
.share-daily-table .share-daily-table__pred {
  white-space: nowrap;
}

.share-daily-goal,
.share-daily-achieved {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.share-daily-goal[data-status="easy"] {
  color: #65a30d;
  background: rgba(132, 204, 22, 0.18);
}

.share-daily-goal[data-status="clear"] {
  color: #2563eb;
  background: rgba(96, 165, 250, 0.16);
}

.share-daily-goal[data-status="hard"] {
  color: #dc2626;
  background: rgba(248, 113, 113, 0.16);
}

.share-daily-achieved.is-achieved {
  color: #15803d;
  background: rgba(134, 239, 172, 0.24);
}

.share-daily-achieved.is-pending {
  color: #64748b;
  background: rgba(148, 163, 184, 0.12);
}

.share-daily-table tbody td.share-daily-table__pred .numeric-value--pred {
  font-weight: 700;
}

.share-daily-table tbody td.share-daily-table__feature {
  overflow: visible;
  white-space: normal;
}

.share-daily-table tbody td.share-daily-table__feature .feature-chips {
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
  overflow: visible;
}

@media (max-width: 720px) {
  .share-daily-table {
    min-width: 900px;
  }
}
.share-cta {
  margin-top: 18px;
  padding: 20px 22px 18px;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(rgba(229, 239, 253, 1), rgba(229, 239, 253, 1)) padding-box,
    linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899) border-box;
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.08);
  text-align: center;
}

.share-cta__title {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.08rem;
  font-weight: 800;
}

.share-cta__description {
  max-width: 560px;
  margin: 9px auto 0;
  color: #334155;
  line-height: 1.65;
}

.share-cta__benefits {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin: 12px 0;
  color: #1e40af;
  font-size: 0.86rem;
  font-weight: 700;
}

.share-cta__benefits span::before {
  content: "✓";
  margin-right: 4px;
  color: #2563eb;
}

.share-cta__start,
.share-cta__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #2563eb;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.share-cta__start {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.share-cta__start:hover,
.share-cta__start:focus-visible {
  background: #1d4ed8;
}

.share-cta__storage {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.78rem;
}

.share-cta__browser-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(96, 165, 250, 0.3);
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.55;
}

.share-cta__browser-note p {
  margin: 0 0 10px;
}

.share-cta__copy {
  color: #1d4ed8;
  background: #fff;
}

.share-cta__copy:hover,
.share-cta__copy:focus-visible {
  background: #eff6ff;
}

.share-cta__copy-message {
  display: block;
  margin-top: 8px;
  color: #166534;
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .share-cta {
    padding: 17px 14px 16px;
  }

  .share-cta__start,
  .share-cta__copy {
    width: 100%;
    box-sizing: border-box;
  }
}
/* Match the shared daily target block to My Target's flat section and table rhythm. */
.share-daily-share-section {
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.share-daily-share-section > .share-section-title {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1.2;
  font-weight: 700;
}

.share-daily-share-section .share-daily-date {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.share-daily-table-shell {
  margin-top: 0;
}

.share-daily-table {
  min-width: 740px;
}

.share-daily-table thead th {
  padding: 9px 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.share-daily-table tbody td {
  padding: 7px 8px;
  font-size: 0.8rem;
}

.share-daily-table th:nth-child(2),
.share-daily-table th:last-child,
.share-daily-table td:last-child {
  text-align: left;
}

.share-daily-table tbody td.share-daily-table__title {
  text-align: center;
}

.share-daily-table .share-daily-table__title-link {
  padding: 3px 8px;
  border-radius: 8px;
  line-height: 1.35;
}

.share-daily-goal {
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.share-daily-achieved {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 400;
}

.share-daily-achieved.is-achieved {
  color: #2563eb;
  background: transparent;
  font-weight: 700;
}

.share-daily-achieved.is-pending {
  color: #64748b;
  background: transparent;
}

.share-daily-table tbody td.share-daily-table__feature .feature-chips {
  justify-content: flex-start;
}
/* Keep long shared tables inside the panel while preserving horizontal scrolling. */
.share-page__content.mypage-panel,
.share-daily-share-section,
.share-daily-table-shell {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.share-daily-table-shell {
  width: 100%;
  overflow-x: auto;
}

.share-daily-table.chart-table tbody td.share-daily-table__title .share-daily-table__title-link {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Keep the shared overview compact while preserving the intended card separation. */
.share-page__content--overview {
  gap: 0;
}

.share-page__content--overview > .mypage-pred-section-heading {
  margin: 0 0 8px;
}

.share-page__content--overview > .share-overview-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.share-page__content--overview > .mypage-pred-estimate {
  margin: 8px 0 6px;
}

.share-page__content--overview > .share-summary-section {
  margin-top: 0;
  padding-top: 12px;
}

.share-page__content--overview > .share-summary-section .mypage-recommendation-cards {
  margin-top: 10px;
}

.share-daily-share-section > .share-daily-progress {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.share-history-pred-histogram {
  width: min(100%, 760px);
  margin: 8px auto 10px;
}

.share-history-pred-histogram__label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.share-history-pred-histogram .chart-pred-histogram {
  height: 46px;
}

.share-history-pred-histogram .chart-pred-position__axis {
  margin-top: 2px;
}

.share-history-panel .mypage-history__event {
  width: 100%;
  box-sizing: border-box;
}

.share-history-panel .mypage-history__event-body {
  width: 100%;
  max-width: none;
}

.share-history-pred-histogram {
  width: 100%;
  max-width: 760px;
}


.share-history-description {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
}


.share-history-panel > .share-history-description {
  margin-bottom: 10px;
}
