.journal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 212, 231, 0.48), transparent 24%),
    radial-gradient(circle at 92% 32%, rgba(207, 243, 227, 0.50), transparent 24%),
    #fffafb;
}

.journal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 36px;
}

.journal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #ecdce8;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 250, 0.96) 48%, rgba(241, 252, 247, 0.96));
  box-shadow: 0 18px 50px rgba(93, 65, 88, 0.09);
}

.journal-eyebrow {
  display: inline-block;
  color: #8c74dc;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.journal-hero h2,
.journal-section-heading h2 {
  margin: 7px 0 10px;
  color: #493d4d;
  font-size: clamp(22px, 3.3vw, 36px);
  line-height: 1.35;
}

.journal-hero p,
.journal-section-heading p {
  max-width: 720px;
  margin: 0;
  color: #786c7b;
  font-size: 13px;
  line-height: 1.8;
}

.journal-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.journal-hero-stats > div {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px 8px;
  border: 1px solid rgba(227, 211, 223, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.journal-hero-stats strong {
  color: #ca5f8d;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.journal-hero-stats span {
  color: #807482;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.journal-status {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid #e4d9f2;
  border-radius: 14px;
  color: #625573;
  background: #faf7ff;
  font-size: 12px;
  font-weight: 700;
}

.journal-status.is-error {
  border-color: #f0bfc4;
  color: #984754;
  background: #fff3f4;
}

.journal-status.is-success {
  border-color: #bfe4d1;
  color: #357457;
  background: #f0fbf5;
}

.journal-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding: 8px;
  border: 1px solid #eadfe8;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(85, 65, 83, 0.07);
}

.journal-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #766a78;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.journal-tab.is-active {
  border-color: #d7cdf7;
  color: #5e4ecd;
  background: linear-gradient(135deg, #f1ecff, #fff8fc);
  box-shadow: 0 5px 15px rgba(100, 79, 172, 0.12);
}

.journal-view {
  margin-top: 16px;
  padding: clamp(20px, 3.6vw, 36px);
  border: 1px solid #eadfe8;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(86, 67, 83, 0.07);
}

.journal-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.journal-section-heading h2 {
  font-size: clamp(21px, 3vw, 30px);
}

.journal-share-button,
.activity-share-button,
.plan-actions button,
.plan-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #d8cdef;
  border-radius: 999px;
  color: #5e4f9d;
  background: #f8f5ff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.activity-share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.activity-share-button.is-x {
  border-color: #3c3540;
  color: #fff;
  background: #242127;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.calendar-toolbar > button {
  min-height: 48px;
  border: 1px solid #e2d8e8;
  border-radius: 15px;
  color: #695d6d;
  background: #fff;
  font-size: 28px;
  cursor: pointer;
}

.calendar-month-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.calendar-month-title strong {
  min-width: 150px;
  color: #4e4252;
  font-size: 20px;
  text-align: center;
}

.calendar-month-title button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #d8ece1;
  border-radius: 999px;
  color: #46765e;
  background: #f3fbf7;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.calendar-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #eee5ec;
  border-radius: 18px;
  background: #fffafd;
}

.calendar-filters label {
  display: grid;
  gap: 5px;
}

.calendar-filters label > span {
  color: #7b6e7d;
  font-size: 9px;
  font-weight: 900;
}

.calendar-filters input,
.calendar-filters select,
.plan-candidate-filters input,
.plan-candidate-filters select {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #ded4df;
  border-radius: 12px;
  color: #514653;
  background: #fff;
  font: inherit;
  font-size: 11px;
}

.calendar-card {
  overflow: hidden;
  border: 1px solid #e6dce6;
  border-radius: 20px;
  background: #fff;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-bottom: 1px solid #e9dfe8;
  background: #fbf8fb;
}

.calendar-weekdays span {
  padding: 10px 4px;
  color: #887b89;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.calendar-weekdays span:first-child {
  color: #cd668c;
}

.calendar-weekdays span:last-child {
  color: #617ab7;
}

.calendar-day {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 100px;
  padding: 8px;
  border: 0;
  border-right: 1px solid #eee6ed;
  border-bottom: 1px solid #eee6ed;
  color: #514653;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-empty {
  color: #b7adb8;
  background: #fcfafc;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px #b8dfcc;
}

.calendar-day.is-selected {
  z-index: 1;
  background: linear-gradient(145deg, #f3efff, #fff8fc);
  box-shadow: inset 0 0 0 2px #9f8de5;
}

.calendar-day-number {
  font-size: 12px;
  font-weight: 900;
}

.calendar-day-count {
  color: #6354bc;
  font-size: 11px;
  font-weight: 900;
}

.calendar-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.calendar-day-meta span {
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.calendar-day-meta .starts {
  color: #337456;
  background: #e8f7ef;
}

.calendar-day-meta .ends {
  color: #aa5a39;
  background: #fff0e6;
}

.calendar-day-section {
  margin-top: 24px;
}

.calendar-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.calendar-day-heading h3 {
  margin: 3px 0 0;
  color: #4d414f;
  font-size: 20px;
}

.calendar-day-count {
  padding: 6px 10px;
  border-radius: 999px;
  color: #6557b3;
  background: #f1edff;
  font-size: 11px;
  font-weight: 900;
}

.calendar-day-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calendar-event-card {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid #e8dfe7;
  border-radius: 18px;
  background: #fff;
}

.calendar-event-card.is-cancelled {
  border-color: #efc2c7;
  background: #fff6f6;
}

.calendar-event-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-event-badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: #5b4e61;
  background: #f2edf3;
  font-size: 8px;
  font-weight: 900;
}

.calendar-event-badge.is-start {
  color: #347255;
  background: #e7f7ef;
}

.calendar-event-badge.is-end {
  color: #9d572f;
  background: #fff0e5;
}

.calendar-event-card h4 {
  margin: 0;
  color: #4e4251;
  font-size: 14px;
  line-height: 1.55;
}

.calendar-event-card p {
  margin: 0;
  color: #827683;
  font-size: 10px;
  line-height: 1.65;
}

.calendar-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.calendar-event-actions a,
.calendar-event-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid #ded4e8;
  border-radius: 999px;
  color: #65559d;
  background: #faf7ff;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.calendar-empty,
.plan-empty,
.activity-empty {
  padding: 24px;
  border: 1px dashed #ddcfd9;
  border-radius: 16px;
  color: #887a88;
  background: #fffafd;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.shared-plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #c8bdec;
  border-radius: 16px;
  background: #f5f1ff;
}

.shared-plan-banner > div {
  display: grid;
  gap: 3px;
}

.shared-plan-banner strong {
  color: #58499b;
  font-size: 12px;
}

.shared-plan-banner span {
  color: #796e86;
  font-size: 10px;
}

.shared-plan-banner button {
  min-height: 42px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #7568e8;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.plan-summary {
  display: grid;
  grid-template-columns: 130px 180px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid #eadfec;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8fc, #f7fbff);
}

.plan-summary > div {
  display: grid;
  gap: 2px;
}

.plan-summary strong {
  color: #c75e89;
  font-size: 23px;
}

.plan-summary span,
.plan-summary p {
  color: #837684;
  font-size: 9px;
  font-weight: 700;
}

.plan-summary p {
  margin: 0;
  line-height: 1.65;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.plan-primary-action {
  border-color: #c0e2d1;
  color: #fff;
  background: #5a9a76;
}

.plan-primary-action[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.plan-column {
  padding: 16px;
  border: 1px solid #e9dfe8;
  border-radius: 20px;
  background: #fff;
}

.plan-candidates {
  background: #fffbfd;
}

.plan-column-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.plan-column-heading h3 {
  margin: 0;
  color: #504453;
  font-size: 16px;
}

.plan-column-heading span {
  color: #8b7e8c;
  font-size: 9px;
}

.plan-list,
.plan-candidate-list {
  display: grid;
  gap: 9px;
}

.plan-stop,
.plan-candidate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e8dfe7;
  border-radius: 15px;
  background: #fff;
}

.plan-stop-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #e678a5, #8c76df);
  font-size: 11px;
  font-weight: 900;
}

.plan-stop-copy,
.plan-candidate-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.plan-stop-copy strong,
.plan-candidate-copy strong {
  overflow: hidden;
  color: #514653;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-stop-copy span,
.plan-candidate-copy span {
  overflow: hidden;
  color: #8a7d8a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-stop-actions {
  display: flex;
  gap: 4px;
}

.plan-stop-actions button,
.plan-candidate button {
  min-width: 38px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid #ded4df;
  border-radius: 10px;
  color: #6e6070;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.plan-stop-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.plan-stop-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid #cfe5d9;
  border-radius: 10px;
  color: #3f775b;
  background: #f2faf6;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.plan-candidate-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
  margin-bottom: 10px;
}

.activity-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #e9dce6;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 202, 224, 0.36), transparent 32%),
    radial-gradient(circle at 88% 80%, rgba(191, 236, 215, 0.42), transparent 34%),
    #fffafd;
}

.activity-summary-copy h3 {
  margin: 7px 0 8px;
  color: #4b404e;
  font-size: clamp(19px, 2.8vw, 28px);
  line-height: 1.45;
}

.activity-summary-copy p {
  margin: 0;
  color: #7f7180;
  font-size: 11px;
  line-height: 1.8;
}

.activity-big-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.activity-big-stats > div {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 10px 6px;
  border: 1px solid rgba(231, 215, 227, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.activity-big-stats strong {
  color: #c85f8c;
  font-size: 27px;
}

.activity-big-stats span {
  color: #827583;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.activity-panel {
  padding: 18px;
  border: 1px solid #e9dfe8;
  border-radius: 21px;
  background: #fff;
}

.activity-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.activity-panel-heading h3 {
  margin: 4px 0 0;
  color: #514653;
  font-size: 17px;
}

.activity-panel-heading > span,
.activity-panel-heading a {
  color: #887a88;
  font-size: 9px;
  line-height: 1.55;
}

.activity-prefecture-map {
  display: grid;
  gap: 12px;
}

.prefecture-region {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.prefecture-region-name {
  padding-top: 5px;
  color: #857687;
  font-size: 9px;
  font-weight: 900;
}

.prefecture-region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.prefecture-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #e5dce4;
  border-radius: 999px;
  color: #aaa0aa;
  background: #faf8fa;
  font-size: 8px;
  font-weight: 800;
}

.prefecture-chip.is-visited {
  border-color: #b9dfcc;
  color: #347355;
  background: linear-gradient(135deg, #e9f8f0, #fff8fc);
  box-shadow: 0 3px 10px rgba(72, 135, 101, 0.12);
}

.prefecture-chip strong {
  margin-left: 3px;
  font-size: 8px;
}

.activity-progress {
  display: grid;
  gap: 11px;
}

.activity-progress-item {
  display: grid;
  gap: 7px;
}

button.activity-progress-item {
  width: 100%;
  padding: 10px;
  border: 1px solid #e8deea;
  border-radius: 13px;
  background: #fffafd;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.activity-progress-item:hover,
button.activity-progress-item:focus-visible {
  border-color: #cbbde7;
  background: #f8f4ff;
  outline: none;
}

.activity-progress-action {
  color: #6756b8;
  font-size: 8px;
  font-weight: 900;
}

.activity-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #665a68;
  font-size: 10px;
  font-weight: 800;
}

.activity-progress-copy strong {
  color: #b1547b;
}

.activity-progress-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #f1ebf0;
}

.activity-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e979a5, #8f79df, #64b38b);
}

.activity-next-panel,
.activity-collection-layout,
.cloud-sync-card {
  margin-top: 16px;
}

.activity-next-panel:focus {
  outline: 3px solid rgba(143, 121, 223, 0.25);
  outline-offset: 3px;
}

.activity-next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.activity-next-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #e7deea;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffafd, #f7fbff);
}

.activity-next-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #8b7c8d;
  font-size: 8px;
  font-weight: 800;
}

.activity-next-card-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3edf5;
}

.activity-next-card strong {
  color: #514653;
  font-size: 11px;
  line-height: 1.55;
}

.activity-next-card a {
  justify-self: start;
  color: #6554b9;
  font-size: 9px;
  font-weight: 900;
}

.activity-more-button {
  display: block;
  min-height: 42px;
  margin: 14px auto 0;
  padding: 8px 18px;
  border: 1px solid #d8cdef;
  border-radius: 999px;
  color: #5e4f9d;
  background: #f8f5ff;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.activity-collection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.activity-brand-collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.activity-brand-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #eadfe8;
  border-radius: 14px;
  background: #fffbfd;
}

.activity-brand-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.activity-brand-copy span {
  overflow: hidden;
  color: #625665;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-brand-copy strong {
  flex: none;
  color: #b1547b;
  font-size: 10px;
}

.activity-event-history {
  display: grid;
  gap: 8px;
}

.activity-history-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  color: #655a68;
  background: #fff2f7;
  font-size: 10px;
  font-weight: 800;
}

.activity-history-total strong {
  color: #c75e89;
  font-size: 22px;
}

.activity-history-years {
  display: grid;
  gap: 5px;
}

.activity-history-year {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid #f0e8ef;
  color: #756878;
  font-size: 9px;
  font-weight: 800;
}

.activity-history-year strong {
  color: #6654b7;
}

.recent-activity-panel {
  margin-top: 16px;
}

.recent-activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.recent-activity-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e9dfe8;
  border-radius: 16px;
  background: #fffbfd;
}

.recent-activity-card time {
  color: #9b78b4;
  font-size: 9px;
  font-weight: 900;
}

.recent-activity-card strong {
  color: #514653;
  font-size: 11px;
  line-height: 1.55;
}

.recent-activity-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #897c89;
  font-size: 9px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recent-activity-card a {
  color: #6554b9;
  font-size: 9px;
  font-weight: 900;
}

.cloud-sync-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #f7f4ff, #f1faf6);
}

.cloud-sync-card[hidden] {
  display: none;
}

.cloud-sync-copy h3 {
  margin: 4px 0 7px;
  color: #514653;
  font-size: 17px;
}

.cloud-sync-copy p {
  margin: 0 0 7px;
  color: #7f7281;
  font-size: 10px;
  line-height: 1.75;
}

.cloud-sync-privacy {
  display: inline-block;
  margin: 0 0 7px;
  color: #6756b8;
  font-size: 9px;
  font-weight: 900;
}

.cloud-sync-status {
  color: #5e806d;
  font-size: 9px;
  font-weight: 900;
}

.cloud-sync-status[data-state="warning"] {
  color: #9a6b2f;
}

.cloud-sync-status[data-state="error"] {
  color: #a04e68;
}

.cloud-sync-actions button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.cloud-sync-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 330px;
}

.cloud-sync-actions button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #d8cdef;
  border-radius: 999px;
  color: #5e4f9d;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.cloud-sync-actions .cloud-sync-primary {
  border-color: #6a5bc5;
  color: #fff;
  background: #7568e8;
}

.cloud-sync-actions .cloud-sync-delete {
  border-color: #ebc8d3;
  color: #a04e68;
}

@media (max-width: 900px) {
  .journal-hero,
  .activity-summary-card,
  .activity-layout,
  .activity-collection-layout,
  .cloud-sync-card,
  .plan-layout {
    grid-template-columns: 1fr;
  }

  .calendar-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-day-list {
    grid-template-columns: 1fr;
  }

  .recent-activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-next-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cloud-sync-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 650px) {
  .journal-shell {
    width: calc(100% - 18px);
    margin-top: 10px;
  }

  .journal-hero,
  .journal-view {
    padding: 18px 13px;
    border-radius: 21px;
  }

  .journal-hero {
    gap: 18px;
  }

  .journal-hero-stats > div {
    min-height: 88px;
  }

  .journal-tabs {
    position: sticky;
    z-index: 50;
    top: 0;
    gap: 5px;
    padding: 5px;
    border-radius: 16px;
  }

  .journal-tab {
    flex-direction: column;
    gap: 2px;
    min-height: 58px;
    padding: 7px 3px;
    font-size: 9px;
  }

  .journal-tab span {
    font-size: 16px;
  }

  .journal-section-heading,
  .activity-panel-heading {
    align-items: flex-start;
  }

  .journal-section-heading {
    flex-direction: column;
  }

  .journal-share-button,
  .activity-share-button {
    width: 100%;
  }

  .activity-share-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .calendar-filters {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }

  .calendar-filters label:first-child {
    grid-column: 1 / -1;
  }

  .calendar-day {
    min-height: 76px;
    padding: 6px 4px;
  }

  .calendar-day-count {
    font-size: 9px;
  }

  .calendar-day-meta {
    display: grid;
    gap: 2px;
  }

  .calendar-day-meta span {
    padding-inline: 3px;
    font-size: 7px;
  }

  .shared-plan-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-summary {
    grid-template-columns: 1fr 1fr;
  }

  .plan-summary p {
    grid-column: 1 / -1;
  }

  .plan-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .plan-candidate-filters {
    grid-template-columns: 1fr;
  }

  .plan-stop {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .plan-stop-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .activity-summary-card {
    gap: 18px;
  }

  .activity-big-stats > div {
    min-height: 88px;
  }

  .prefecture-region {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .recent-activity-list {
    grid-template-columns: 1fr;
  }

  .activity-next-list,
  .activity-brand-collections {
    grid-template-columns: 1fr;
  }

  .activity-panel-heading {
    flex-direction: column;
  }

  .cloud-sync-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cloud-sync-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-tab,
  .calendar-day,
  .date-quick-button {
    transition: none;
  }
}
