/* Mon espace — same quiet, colourful visual language as the press room.
   Scoped to the participant page so partner, press and public screens retain their layout. */
#screen-mine {
  --space-ink: #244d3a;
  --space-muted: #5a6b60;
  --space-rule: #dce5d9;
  --space-pink: #fff0f4;
  --space-sage: #f0f7e2;
  --space-peach: #fff5e3;
  --space-lavender: #f2eefb;
  max-width: 1240px;
  padding: 36px 48px 48px;
  color: var(--space-ink);
  font: 16px/1.65 var(--font-ui);
}
#screen-mine *, #screen-mine *::before, #screen-mine *::after { box-sizing: border-box; }
#screen-mine > .eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; color: var(--space-muted); }
#screen-mine > h1 { font: 800 clamp(36px, 4.2vw, 52px)/1.1 var(--font-ui); letter-spacing: -.05em; margin: 0 0 24px; color: var(--space-ink); }
#screen-mine > .space-switcher { padding: 0 0 16px; margin: 0 0 20px; border: 0; border-bottom: 1px solid var(--space-rule); border-radius: 0; background: transparent; font-size: 11px; }
#screen-mine > .space-switcher > span { font-size: 10px; }
#screen-mine > .space-switcher a { font-size: 12px; min-height: 40px; padding: 8px 12px; }
#screen-mine .participant-space { font: inherit; }
#screen-mine :is(h2,h3,h4) { color: var(--space-ink); font-family: var(--font-ui); overflow-wrap: anywhere; }
#screen-mine :is(p,li) { overflow-wrap: anywhere; }
#screen-mine .space-kicker { color: var(--space-muted); font-size: 10px !important; font-weight: 750; letter-spacing: .1em; line-height: 1.5; margin: 0 0 9px !important; }
#screen-mine .muted, #screen-mine .form-help { color: var(--space-muted); }
#screen-mine .form-help { font-size: 12px; line-height: 1.65; }
#screen-mine .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; max-width: 100%; padding: 12px 17px; border-radius: 14px;
  font: 650 13px/1.4 var(--font-ui); text-align: center; white-space: normal;
  text-decoration: none; box-shadow: none; transition: background-color .16s, border-color .16s, box-shadow .16s;
}
#screen-mine .button.green { background: #26774b; border: 1px solid #26774b; color: #fff; }
#screen-mine .button.coral { background: #a63c60; border: 1px solid #a63c60; color: #fff; }
#screen-mine .button.violet { background: #68518f; border: 1px solid #68518f; color: #fff; }
#screen-mine .button.outline { background: #fff; border: 1px solid #bdcdbf; color: var(--space-ink); }
#screen-mine .button:disabled { opacity: .55; cursor: not-allowed; }
#screen-mine .text-button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%;
  padding: 10px 0; font: 650 13px/1.5 var(--font-ui); color: var(--space-ink); text-align: left; white-space: normal;
}
#screen-mine :is(button,a,summary,input,select,textarea):focus-visible { outline: 3px solid #7552a0; outline-offset: 4px; }
#screen-mine [tabindex='-1']:focus:not(:focus-visible) { outline: none; }
#screen-mine :is(input,select,textarea) { max-width: 100%; min-width: 0; font-family: var(--font-ui); }
#screen-mine :is(.button,.text-button,.space-nav button,.space-shortcut,.space-type-card) svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) {
  #screen-mine .button.green:hover:not(:disabled) { background: #1d633c; border-color: #1d633c; }
  #screen-mine .button.coral:hover:not(:disabled) { background: #8e3051; border-color: #8e3051; }
  #screen-mine .button.violet:hover:not(:disabled) { background: #584278; border-color: #584278; }
  #screen-mine .button.outline:hover:not(:disabled) { background: #f1f6ed; border-color: #94ad97; }
  #screen-mine .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* A welcoming introduction, with the main action always within reach. */
#screen-mine .participant-space .space-welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 28px 32px; border: 1px solid #efd8e1; border-radius: 25px; background: var(--space-pink); margin: 0;
}
#screen-mine .participant-space .space-welcome > div:first-child { display: block; min-width: 0; }
#screen-mine .space-welcome .space-kicker { color: #8d4965; }
#screen-mine .participant-space .space-welcome h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; color: #a33661; max-width: 650px; margin: 0 0 11px; }
#screen-mine .participant-space .space-welcome p:not(.space-kicker) { color: #6e5a63; font-size: 15px; line-height: 1.65; margin: 0; max-width: 58ch; }
#screen-mine .space-welcome-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; flex: 0 0 auto; max-width: 285px; }
#screen-mine .space-welcome .button { margin: 0; background: #96385d; border-color: #96385d; color: white; }
#screen-mine .space-welcome .button:hover { background: #842d50; border-color: #842d50; }
#screen-mine .space-private-label { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.5; color: #765e68; }
#screen-mine .space-private-label svg { width: 14px; height: 14px; }
#screen-mine .space-useful-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 18px; padding: 5px 2px; }
#screen-mine .space-test { font-size: 12px; line-height: 1.6; padding: 12px 16px; border: 1px solid #dbe5ef; background: #f1f6fc; color: #41637b; margin: 15px 0; border-radius: 13px; }

/* Seven clear destinations; the active destination keeps its label and icon. */
#screen-mine .participant-space .space-nav {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
  margin: 24px 0 28px; padding: 0 0 22px; background: transparent; border: 0;
  border-bottom: 1px solid var(--space-rule); border-radius: 0; scroll-margin-top: 100px;
}
#screen-mine .space-nav button {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 9px;
  min-width: 0; min-height: 107px; padding: 15px 12px; background: #f5f7f1; border: 1px solid #e1e7db;
  border-radius: 16px; text-align: left; color: #4b6455; line-height: 1.35; font-size: 13px; box-shadow: none;
  transition: background-color .16s, border-color .16s;
}
#screen-mine .space-nav-icon { display: inline-flex; align-items: center; color: #607a66; }
#screen-mine .space-nav-icon svg { width: 22px; height: 22px; }
#screen-mine .space-nav-label { display: block; min-width: 0; }
#screen-mine .space-nav-label b { display: block; font-size: 13px; font-weight: 750; line-height: 1.4; }
#screen-mine .space-nav-label small { display: block; font-size: 11px; line-height: 1.5; font-weight: 450; color: #627164; margin-top: 4px; }
#screen-mine .space-nav button[aria-pressed='true'] { background: #e7efda; border-color: #819e66; color: #244c35; box-shadow: inset 0 0 0 1px #819e66; }
#screen-mine .space-nav button[aria-pressed='true'] .space-nav-icon { color: #244c35; }
#screen-mine .space-nav button[aria-pressed='true'] small { color: #3e5d44; }
#screen-mine .space-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 2px 5px; background: #96385d; color: white !important; font-size: 10px; line-height: 1; border-radius: 100px; }
#screen-mine #space-panel { min-width: 0; scroll-margin-top: 110px; }
@media (hover: hover) { #screen-mine .space-nav button:hover { border-color: #95b08a; background: #edf4e4; } }

/* Priority and overview. Secondary information stays visible, in its own place. */
#screen-mine .space-priority { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 26px 29px; margin: 0 0 24px; background: var(--space-sage); border: 1px solid #d9e4ca; border-radius: 23px; color: var(--space-ink); }
#screen-mine .space-priority.needs-attention { background: #fff4e7; border-color: #ead4b6; }
#screen-mine .space-priority.needs-attention .space-kicker { color: #86613f; }
#screen-mine .space-priority :is(h2,h3) { font-size: clamp(23px, 2.8vw, 29px); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 10px; }
#screen-mine .space-priority p:not(.space-kicker) { font-size: 14px; line-height: 1.7; color: #53694f; margin: 0; max-width: 68ch; }
#screen-mine .space-priority-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; max-width: 270px; }
#screen-mine .space-priority-actions .text-button { align-self: center; text-align: center; }
#screen-mine .space-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 28px; }
#screen-mine .space-metric { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 15px; position: relative; min-height: 100px; padding: 19px 22px; border: 1px solid var(--space-rule); border-radius: 18px; color: var(--space-ink); background: #f5f8ef; text-align: left; }
#screen-mine .space-metric > span { grid-row: span 2; font-size: 36px; line-height: 1.15; font-weight: 750; letter-spacing: -.045em; }
#screen-mine .space-metric b { font-size: 14px; line-height: 1.4; padding: 0 12px 0 0; }
#screen-mine .space-metric small { font-size: 11px; line-height: 1.5; color: var(--space-muted); }
#screen-mine .space-metric i { position: absolute; right: 12px; top: 10px; font-size: 13px; font-style: normal; }
#screen-mine .space-metric.coral { background: #fff0f1; border-color: #efdce0; }
#screen-mine .space-metric.sun { background: var(--space-peach); border-color: #eee1c8; }
#screen-mine .space-metric.green { background: #edf5e8; border-color: #dce7d3; }
#screen-mine .space-overview-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, .85fr); gap: 24px; align-items: start; }
#screen-mine .space-overview-main, #screen-mine .space-overview-aside { min-width: 0; }
#screen-mine .space-overview-aside { display: grid; gap: 20px; }
#screen-mine .space-overview-aside .space-type-grid { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
#screen-mine .space-overview-aside > .space-dashboard-section > h2 { font-size: 22px; letter-spacing: -.03em; line-height: 1.3; margin: 4px 0 0; }
#screen-mine .space-shortcut > span:nth-child(2) { flex: 1; }
#screen-mine .space-help-card > span > svg { width: 20px; height: 20px; }
#screen-mine .space-help-card > .button { margin-top: 17px; }
#screen-mine .space-upcoming h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.03em; margin: 0; }
#screen-mine .space-recent-card > .text-button { flex: none; }
#screen-mine .space-dashboard-section { margin: 0 0 29px; }
#screen-mine .space-dashboard-section:last-child { margin-bottom: 0; }
#screen-mine .space-section-title { display: flex; align-items: center; justify-content: space-between; gap: 17px; margin: 0 0 18px; }
#screen-mine .space-section-title :is(h2,h3) { font-size: 25px; font-weight: 750; line-height: 1.25; letter-spacing: -.035em; margin: 0; }
#screen-mine .space-section-title p { font-size: 14px; line-height: 1.65; color: var(--space-muted); margin: 8px 0 0; max-width: 70ch; }
#screen-mine .space-section-title > .text-button { flex: none; }
#screen-mine .space-quick-actions { padding: 23px; border: 1px solid #e6deee; border-radius: 22px; background: #f7f3fc; }
#screen-mine .space-quick-actions h2, #screen-mine .space-quick-actions h3 { font-size: 22px; letter-spacing: -.03em; margin: 0 0 16px; line-height: 1.3; }
#screen-mine .space-shortcut { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 64px; width: 100%; padding: 13px 14px; margin: 8px 0 0; border: 1px solid #ded8e7; border-radius: 13px; background: #fff; font: 650 13px/1.45 var(--font-ui); color: #51436b; text-align: left; text-decoration: none; }
#screen-mine .space-shortcut > span { min-width: 0; }
#screen-mine .space-shortcut small { display: block; font-size: 11px; line-height: 1.5; font-weight: 450; margin-top: 4px; color: #736780; }
#screen-mine .space-help-card { display: block; padding: 23px; border: 1px solid var(--space-rule); border-radius: 22px; background: #f5f8ef; }
#screen-mine .space-help-card > span { display: grid; place-items: center; width: 30px; height: 30px; background: #e1ecd5; border-radius: 10px; color: #476241; }
#screen-mine .space-help-card h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; margin: 15px 0 8px; }
#screen-mine .space-help-card p { font-size: 13px; line-height: 1.7; color: var(--space-muted); margin: 0; }
#screen-mine .space-recent-list { display: grid; gap: 12px; }
#screen-mine .space-recent-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--space-rule); border-radius: 18px; background: white; }
#screen-mine .space-recent-info { min-width: 0; flex: 1; }
#screen-mine .space-recent-card h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 7px; }
#screen-mine .space-recent-card p { font-size: 12px; line-height: 1.6; color: var(--space-muted); margin: 5px 0; }
#screen-mine .space-recent-card .space-record-actions { margin: 0; }
#screen-mine .space-recent-card .space-record-actions .button { min-height: 44px; font-size: 12px; padding: 10px 13px; }
#screen-mine .space-recent-card .space-badge { margin-top: 6px; }
#screen-mine .space-upcoming, #screen-mine .space-plant-followup, #screen-mine .exchange-overview { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; margin: 0 0 22px; background: var(--space-lavender); border: 1px solid #e0d9ed; border-radius: 21px; }
#screen-mine .space-upcoming > div, #screen-mine .space-plant-followup > div { min-width: 0; }
#screen-mine .space-upcoming p:not(.space-kicker), #screen-mine .space-plant-followup p:not(.space-kicker), #screen-mine .exchange-overview p { font-size: 13px; line-height: 1.7; margin: 7px 0 0; color: var(--space-muted); }
#screen-mine .space-plant-followup { background: #f4f8e9; border-color: #dfe8cd; }
#screen-mine .space-plant-followup h2, #screen-mine .exchange-overview h3 { font-size: 22px !important; line-height: 1.25; letter-spacing: -.03em; margin: 0 0 10px; }
#screen-mine .space-plant-followup-actions { flex-shrink: 0; max-width: 240px; }
#screen-mine .exchange-overview { background: #f6f3fb; }

/* Full records: search and combinable filters above complete cards. */
#screen-mine .space-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
#screen-mine .space-type-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; min-height: 75px; min-width: 0; background: #fff; border: 1px solid var(--space-rule); border-radius: 15px; color: var(--space-ink); font: 650 13px/1.45 var(--font-ui); text-align: left; }
#screen-mine .space-type-card small { display: block; color: var(--space-muted); font-size: 11px; font-weight: 450; line-height: 1.6; margin-top: 3px; }
#screen-mine .space-type-card[aria-pressed='true'] { background: #eaf2de; border-color: #8fa875; box-shadow: inset 0 0 0 1px #8fa875; }
#screen-mine .space-record-tools { padding: 21px 23px; margin: 22px 0; background: #f5f8ef; border: 1px solid var(--space-rule); border-radius: 20px; }
#screen-mine .space-search { display: grid; gap: 8px; font-size: 13px; font-weight: 650; color: var(--space-ink); }
#screen-mine .space-search input { width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid #aebfad; border-radius: 12px; background: #fff; color: var(--space-ink); font-size: 16px; line-height: 1.4; }
#screen-mine .space-search input::placeholder { color: #687765; }
#screen-mine .space-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; }
#screen-mine .space-filters button { min-height: 44px; padding: 10px 14px; border: 1px solid #ccd9c6; border-radius: 12px; color: #46613e; background: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; }
#screen-mine .space-filters button[aria-pressed='true'] { color: white; background: #315f41; border-color: #315f41; }
#screen-mine .space-results-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 18px 0; color: var(--space-muted); font-size: 13px; }
#screen-mine .space-results-heading p { margin: 0; }
#screen-mine .space-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
#screen-mine .space-record-grid:has(> .space-record:only-child) { grid-template-columns: minmax(0, 850px); }
#screen-mine .space-record { padding: 24px; margin: 0 0 18px; border: 1px solid var(--space-rule); border-radius: 21px; background: #fff; box-shadow: none; overflow-wrap: anywhere; }
#screen-mine .space-record-grid > .space-record { margin: 0; }
#screen-mine .space-record header { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
#screen-mine .space-record header > div { min-width: 0; }
#screen-mine .space-record h3 { font-size: 21px; font-weight: 750; line-height: 1.3; letter-spacing: -.03em; margin: 0; }
#screen-mine .space-record .space-kicker { font-size: 9px !important; margin-bottom: 7px !important; }
#screen-mine .space-badge { display: inline-flex; flex: 0 0 auto; max-width: 175px; padding: 6px 10px; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 1.5; white-space: normal; }
#screen-mine .space-badge.coral { background: #fce4e9; color: #8d3454; }
#screen-mine .space-badge.sun { background: #fff0cb; color: #7c5a1d; }
#screen-mine .space-badge.green { background: #e7f1da; color: #426630; }
#screen-mine .space-badge.violet { background: #eee7fa; color: #68518f; }
#screen-mine .space-badge.neutral { background: #edf1eb; color: #53664f; }
#screen-mine .space-record-meta { color: #52694f; font-size: 13px; line-height: 1.6; margin: 14px 0 8px; }
#screen-mine .space-status-help { font-size: 12px; line-height: 1.65; color: var(--space-muted); margin: 8px 0; }
#screen-mine .space-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin: 18px 0 0; }
#screen-mine .space-record-actions .button { min-height: 44px; font-size: 12px; padding: 10px 14px; border-radius: 12px; }
#screen-mine .space-record-actions .text-button { font-size: 12px; }
#screen-mine .space-record .notice { padding: 16px 18px; margin: 16px 0; border: 1px solid #ebd9c0; border-radius: 13px; background: #fff6e9; font-size: 13px; }
#screen-mine .space-record .notice p { font-size: 12px; line-height: 1.65; }
#screen-mine .space-details { margin-top: 20px; padding-top: 3px; border-top: 1px solid var(--space-rule); }
#screen-mine .space-details summary { cursor: pointer; min-height: 48px; padding: 13px 0; font-size: 12px; font-weight: 650; line-height: 1.6; }
#screen-mine .space-details p { font-size: 12px; line-height: 1.7; }
#screen-mine .space-details .ref { overflow-wrap: anywhere; }
#screen-mine .space-privacy-summary { padding: 10px 15px; border-radius: 13px; background: #f4f7ef; }
#screen-mine .space-news { margin: 17px 0; border-left: 3px solid #c8d9ac; padding-left: 15px; }
#screen-mine .space-extra-actions > h3, #screen-mine .space-extra-actions > p { flex-basis: 100%; margin: 0; }
#screen-mine .space-extra-actions > h3 { font-size: 21px; letter-spacing: -.025em; }
#screen-mine .space-extra-actions > p { font-size: 13px; color: var(--space-muted); }
#screen-mine .space-extra-actions { display: flex; flex-wrap: wrap; gap: 5px 24px; padding: 16px 0; margin: 22px 0 0; border-top: 1px solid var(--space-rule); }

/* Complete private information, including longer messages and references. */
#screen-mine .space-information-list { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 12px 17px; padding: 7px 0; margin: 0; font-size: 12px; line-height: 1.7; }
#screen-mine .space-information-list dt { color: var(--space-muted); font-weight: 600; }
#screen-mine .space-information-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
#screen-mine .space-information-list dd p { margin: 0 0 8px; }
#screen-mine .space-session-summary { padding: 15px; margin: 14px 0; background: #f6f3fb; border: 1px solid #e4ddec; border-radius: 13px; }
#screen-mine .space-session-summary ul { padding-left: 18px; margin: 8px 0 0; }
#screen-mine .space-session-summary li { font-size: 12px; line-height: 1.7; margin: 6px 0; }
#screen-mine .space-private-messages { padding-top: 28px; border-top: 1px solid var(--space-rule); margin-top: 30px; }
#screen-mine .space-private-messages > h2, #screen-mine .space-private-messages > h3 { font-size: 26px; line-height: 1.3; letter-spacing: -.035em; margin: 0 0 12px; }
#screen-mine .space-private-messages > p { font-size: 13px; color: var(--space-muted); line-height: 1.75; }
#screen-mine .space-private-message-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; margin-top: 23px; }
#screen-mine .space-private-message-columns > section { min-width: 0; }
#screen-mine .space-private-message-columns > section > h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 16px; }
#screen-mine .space-private-message { padding: 22px; margin-bottom: 17px; border: 1px solid #e0d9e9; border-radius: 20px; background: #faf8fd; min-width: 0; overflow-wrap: anywhere; }
#screen-mine .space-private-message h4 { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 12px; }
#screen-mine .space-private-message p { font-size: 13px; line-height: 1.75; }
#screen-mine .space-private-message .ref { font-size: 11px; color: var(--space-muted); }
#screen-mine .space-private-message a { overflow-wrap: anywhere; }

/* Registration dates, history and organisers stay distinct. */
#screen-mine .space-worksite-jump { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 24px; }
#screen-mine .space-worksite-jump :is(a,button) { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px; border: 1px solid #dbd4e6; border-radius: 12px; background: #f6f2fb; color: #5e4a7a; font-size: 13px; font-weight: 650; }
#screen-mine .space-registration-list { display: grid; gap: 16px; }
#screen-mine .space-registration-group { padding: 23px; margin: 0 0 20px; border: 1px solid #e2daed; border-radius: 22px; background: #f8f5fc; }
#screen-mine .space-registration-group > h3 { font-size: 22px; line-height: 1.3; margin: 0 0 18px; letter-spacing: -.03em; }
#screen-mine .space-registration-group .space-record { border-color: #e4deed; }
#screen-mine .space-registration-card > p { font-size: 13px; line-height: 1.7; }
#screen-mine .space-history { border: 1px solid var(--space-rule); border-radius: 20px; padding: 5px 23px; margin: 26px 0; background: #f7f9f3; }
#screen-mine .space-history > summary { min-height: 58px; padding: 16px 0; font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1.6; }
#screen-mine .space-history[open] { padding-bottom: 15px; }
#screen-mine [id^='space-worksite'], #screen-mine [id^='space-organis'], #screen-mine [id^='space-registration'] { scroll-margin-top: 105px; }

/* Settings, help and correspondence share the same cards and readable scale. */
#screen-mine .space-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
#screen-mine .space-setting { min-width: 0; padding: 25px; border: 1px solid var(--space-rule); border-radius: 22px; background: #fff; }
#screen-mine .space-setting:nth-child(2) { background: var(--space-sage); border-color: #dbe5cd; }
#screen-mine .space-setting:nth-child(3) { background: var(--space-lavender); border-color: #e0d9ed; }
#screen-mine .space-setting:nth-child(4) { background: var(--space-peach); border-color: #ecdfc6; }
#screen-mine .space-setting.pwa-panel { grid-column: 1 / -1; padding: 0; border: 0; background: transparent; }
#screen-mine .space-setting.pwa-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
#screen-mine .space-setting h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.03em; margin: 0 0 13px; }
#screen-mine .space-setting p { font-size: 13px; line-height: 1.75; color: var(--space-muted); }
#screen-mine .space-setting .space-email { color: var(--space-ink); font-size: 15px; font-weight: 650; }
#screen-mine .space-setting .button { margin: 7px 0; }
#screen-mine .space-setting .text-button { display: flex; }
#screen-mine .space-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 30px; }
#screen-mine .space-help-grid > :is(section,article,div) { padding: 22px; border: 1px solid var(--space-rule); border-radius: 20px; background: #f5f8ef; }
#screen-mine .space-help-grid > :nth-child(2) { background: #fff5e9; border-color: #eadecd; }
#screen-mine .space-help-grid > :nth-child(3) { background: #f5f1fb; border-color: #e4dced; }
#screen-mine .space-help-grid h3 { font-size: 20px; letter-spacing: -.025em; line-height: 1.3; margin: 0 0 9px; }
#screen-mine .space-help-grid p { font-size: 13px; line-height: 1.7; color: var(--space-muted); }
#screen-mine .space-help-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0; }
#screen-mine .space-faq { padding: 3px 20px; margin: 12px 0; background: #f7f9f3; border: 1px solid var(--space-rule); border-radius: 14px; }
#screen-mine .space-faq p { font-size: 13px; }
#screen-mine .space-mail-list { border: 1px solid var(--space-rule); border-radius: 18px; background: #fff; padding: 0 20px; margin: 18px 0 26px; }
#screen-mine .space-mail { padding: 18px 0; border-bottom: 1px solid var(--space-rule); }
#screen-mine .space-mail:last-child { border-bottom: 0; }
#screen-mine .space-mail b, #screen-mine .space-mail h4 { font-size: 14px; line-height: 1.6; margin: 0; font-weight: 650; }
#screen-mine .space-mail p { font-size: 12px; line-height: 1.7; color: var(--space-muted); margin: 6px 0 0; }
#screen-mine .support-row { padding: 23px; margin: 15px 0; border-color: var(--space-rule); border-radius: 19px; background: white; }
#screen-mine .support-row p { font-size: 13px; line-height: 1.75; }
#screen-mine .support-reply { background: #f1f6e8; border: 1px solid #dce8ce; border-radius: 13px; }
#screen-mine .support-row :is(textarea,input,select) { font-size: 16px; }

/* Existing modules are retained, integrated into the participant canvas. */
#screen-mine .exchange-space-heading { align-items: flex-start; }
#screen-mine .exchange-space-heading h2 { font-size: 28px !important; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 10px !important; }
#screen-mine .exchange-space-heading p { font-size: 14px; color: var(--space-muted); }
#screen-mine .exchange-private-note { padding: 16px 20px; background: #f3f6ed; border: 1px solid var(--space-rule); border-radius: 15px; font-size: 12px; line-height: 1.75; margin: 21px 0 27px; }
#screen-mine .exchange-follow-card { background: #fff; border-color: var(--space-rule); border-radius: 20px; padding: 23px; }
#screen-mine .exchange-follow-card.has-news { border-color: #a6b887; box-shadow: inset 0 3px 0 #a6b887; }
#screen-mine .exchange-follow-card h4 { font-size: 22px !important; }
#screen-mine .exchange-follow-card p { font-size: 13px; }
#screen-mine .exchange-empty { background: #f4f7ef; border: 1px solid var(--space-rule); border-radius: 19px; padding: 25px; }
#screen-mine .exchange-own { padding: 22px 0; }
#screen-mine .exchange-own > p { font-size: 14px; line-height: 1.8; }
#screen-mine .space-drafts { margin: 0 0 26px; }
#screen-mine .space-drafts .space-record { background: #fff9ee; border-color: #ebdec4; }
#screen-mine .donation-mine > section { margin-top: 28px; }
#screen-mine .donation-mine-heading { align-items: flex-start; }
#screen-mine .donation-mine-heading > div:first-child { flex: 1; min-width: 0; }
#screen-mine .donation-mine-heading p:not(.space-kicker) { font-size: 14px; line-height: 1.7; color: var(--space-muted); margin: 9px 0 0; }
#screen-mine .donation-mine .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
#screen-mine .donation-mine-heading > .actions { flex-direction: column; align-items: flex-start; }
#screen-mine .donation-mine-list { display: grid; gap: 17px; }
#screen-mine .donation-mine-list > .donation-my-card { margin: 0; }
#screen-mine .donation-mine section[aria-labelledby='donation-my-requests-title'] .donation-mine-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
#screen-mine .donation-my-card { min-width: 0; overflow-wrap: anywhere; }
#screen-mine .donation-my-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
#screen-mine .donation-my-card > header > div { min-width: 0; }
#screen-mine .donation-my-card h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.03em; margin: 0; }
#screen-mine .donation-incoming { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--space-rule); }
#screen-mine .donation-incoming h4 { font-size: 17px; line-height: 1.5; margin: 0 0 14px; }
#screen-mine .donation-incoming h4 > span { font-size: 13px; font-weight: 500; color: var(--space-muted); }
#screen-mine .donation-mine .space-section-title h3 > span { font-size: 17px; font-weight: 500; color: var(--space-muted); }
#screen-mine .donation-feedback:not(:empty) { padding: 16px 20px; margin: 20px 0; border: 1px solid #e6cabd; border-radius: 14px; background: #fff5ee; color: #7a4d3d; font-size: 14px; line-height: 1.65; }
#screen-mine .donation-feedback:empty { display: none; }
#screen-mine .donation-mine { padding: 0; border: 0; margin: 0; }
#screen-mine .donation-mine-heading { margin: 0 0 22px; }
#screen-mine .donation-mine-heading h2, #screen-mine .donation-mine-heading h3 { font-size: 27px; letter-spacing: -.035em; margin: 0; }
#screen-mine .donation-my-card { border-color: var(--space-rule); border-radius: 20px; padding: 23px; margin: 16px 0; }
#screen-mine .donation-my-card p { font-size: 13px; line-height: 1.75; }
#screen-mine .donation-request { background: #f2f7e9; border: 1px solid #e0e9d2; padding: 16px 18px; }
#screen-mine .donation-link-card { margin: 20px 0; padding: 22px 25px; background: var(--space-sage); border-color: #d9e4ca; border-radius: 22px; }
#screen-mine .nearby-shortcut { padding: 20px 24px; margin: 27px 0 0; background: #f3f7e9; border-color: #dce6cf; border-radius: 20px; }
#screen-mine .nearby-shortcut strong { font-size: 18px; }
#screen-mine .nearby-shortcut small { font-size: 12px; line-height: 1.65; color: var(--space-muted); }
#screen-mine .nearby-pin { font-size: 25px; }

/* Helpful first visit, loading, errors and footer; no action hidden on small screens. */
#screen-mine .space-empty { grid-column: 1 / -1; padding: 31px 25px; border: 1px dashed #cbd8bf; border-radius: 21px; background: #f7f9f1; text-align: left; }
#screen-mine .space-empty > span { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 12px; background: #e7efdc; color: #59774a; font-size: 24px; }
#screen-mine .space-empty h3 { font-size: 24px; font-weight: 750; letter-spacing: -.035em; line-height: 1.25; margin: 15px 0 10px; }
#screen-mine .space-empty p { max-width: 62ch; margin: 0 0 17px; font-size: 14px; line-height: 1.75; color: var(--space-muted); }
#screen-mine .space-login { max-width: 860px; padding: 35px; margin: 20px 0; border: 1px solid #efd8e1; border-radius: 25px; background: var(--space-pink); }
#screen-mine .space-login h2 { color: #a33661; font-size: clamp(28px, 3vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
#screen-mine .space-login p { font-size: 15px; line-height: 1.75; max-width: 65ch; color: #6e5a63; }
#screen-mine .space-login .form-help { font-size: 12px; }
#screen-mine .space-loading { min-height: 150px; display: flex; align-items: center; padding: 30px; background: #f5f8ef; border: 1px solid var(--space-rule); border-radius: 22px; font-size: 15px; color: var(--space-muted); }
#screen-mine #my-content > [role='alert'], #screen-mine .space-error { padding: 24px; border: 1px solid #e6cabd; border-radius: 20px; background: #fff5ee; color: #7a4d3d; }
#screen-mine .space-bottom { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 34px 0 0; padding: 21px 0 0; border-top: 1px solid var(--space-rule); font-size: 11px; line-height: 1.7; color: var(--space-muted); }
#screen-mine .space-bottom > span { max-width: 85ch; }
#screen-mine .space-bottom .text-button { flex: none; font-size: 12px; }

@media (min-width: 761px) { body:has(#screen-mine:not([hidden])) { background: var(--cream); } }
@media (max-width: 1100px) {
  #screen-mine { padding: 30px; }
  #screen-mine .space-nav button { padding: 13px 10px; }
  #screen-mine .space-nav-label small { font-size: 9px; }
  #screen-mine .space-overview-grid { grid-template-columns: minmax(0, 1.55fr) minmax(235px, .85fr); gap: 20px; }
  #screen-mine .space-metric { padding: 18px; gap: 0 11px; }
  #screen-mine .space-metric > span { font-size: 33px; }
  #screen-mine .space-record header { flex-wrap: wrap; }
  #screen-mine .space-quick-actions, #screen-mine .space-help-card { padding: 21px; }
  #screen-mine .space-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #screen-mine .space-nav button { min-height: 87px; }
  #screen-mine .space-nav-label small { display: none; }
  #screen-mine .space-nav-label b { font-size: 11px; }
  #screen-mine .space-overview-grid { grid-template-columns: minmax(0, 1fr); }
  #screen-mine .space-overview-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #screen-mine .space-help-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  #screen-mine { padding: 24px 20px 34px; }
  #screen-mine > .eyebrow { font-size: 10px; }
  #screen-mine > h1 { font-size: 38px; margin-bottom: 20px; }
  #screen-mine > .space-switcher { gap: 5px; margin-bottom: 18px; padding-bottom: 13px; }
  #screen-mine > .space-switcher > div { width: auto; }
  #screen-mine > .space-switcher > span { padding: 6px 0; }
  #screen-mine > .space-switcher a { font-size: 11px; padding: 8px 10px; }
  #screen-mine .participant-space .space-welcome { display: flex; flex-direction: column; align-items: stretch; gap: 19px; padding: 23px; background: var(--space-pink); border: 1px solid #efd8e1; border-radius: 23px; }
  #screen-mine .participant-space .space-welcome > div:first-child { display: block; }
  #screen-mine .participant-space .space-welcome h2 { font-size: 29px; max-width: none; margin-bottom: 10px; }
  #screen-mine .participant-space .space-welcome p:not(.space-kicker) { font-size: 14px; line-height: 1.65; }
  #screen-mine .space-welcome-actions { display: flex; align-items: stretch; max-width: none; width: 100%; gap: 8px; }
  #screen-mine .space-welcome .button { width: 100%; margin: 0; min-height: 48px; font-size: 13px; }
  #screen-mine .space-private-label { font-size: 10px; }
  #screen-mine .space-useful-links { display: flex; gap: 0 12px; }
  #screen-mine .space-useful-links a { text-align: left; }
  #screen-mine .space-useful-links .text-button { font-size: 12px; }
  #screen-mine .participant-space .space-nav { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 7px; margin: 19px 0 22px; padding-bottom: 20px; }
  #screen-mine .space-nav button { grid-column: span 3; align-items: center; justify-content: flex-start; gap: 6px; min-height: 79px; padding: 11px 4px; border-radius: 13px; text-align: center; }
  #screen-mine .space-nav button:nth-last-child(-n+3) { grid-column: span 4; }
  #screen-mine .space-nav-label b { font-size: 12px; line-height: 1.4; }
  #screen-mine .space-nav-label small { display: none; }
  #screen-mine .space-nav-icon svg { width: 21px; height: 21px; }
  #screen-mine .space-count { font-size: 9px; min-width: 17px; height: 17px; margin-left: 2px; padding: 1px 4px; }
  #screen-mine #space-panel { scroll-margin-top: 85px; }
  #screen-mine .space-priority { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 17px; margin-bottom: 19px; border-radius: 21px; }
  #screen-mine .space-priority :is(h2,h3) { font-size: 25px; }
  #screen-mine .space-priority p:not(.space-kicker) { font-size: 13px; line-height: 1.7; }
  #screen-mine .space-priority-actions { max-width: none; width: 100%; gap: 3px; }
  #screen-mine .space-priority-actions .button { width: 100%; flex: none; }
  #screen-mine .space-priority-actions .text-button { flex: none; min-height: 44px; }
  #screen-mine .space-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 25px; }
  #screen-mine .space-metric { display: flex; flex-direction: column; align-items: flex-start; min-height: 113px; gap: 5px; padding: 15px 11px; border-radius: 15px; }
  #screen-mine .space-metric > span { font-size: 31px; }
  #screen-mine .space-metric b { font-size: 12px; padding: 0; }
  #screen-mine .space-metric small { font-size: 10px; line-height: 1.5; }
  #screen-mine .space-metric i { top: 9px; right: 9px; font-size: 12px; }
  #screen-mine .space-overview-grid { gap: 26px; }
  #screen-mine .space-overview-aside { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  #screen-mine .space-section-title { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin: 0 0 17px; }
  #screen-mine .space-section-title :is(h2,h3) { font-size: 25px; }
  #screen-mine .space-section-title p { font-size: 13px; }
  #screen-mine .space-section-title > .text-button { min-height: 44px; }
  #screen-mine .space-section-title > .button { width: 100%; }
  #screen-mine .space-recent-card { align-items: flex-start; flex-direction: column; gap: 13px; padding: 20px; }
  #screen-mine .space-recent-card .space-record-actions { width: 100%; }
  #screen-mine .space-recent-card .space-record-actions .button { width: auto; flex: none; min-width: 0; }
  #screen-mine .space-recent-card h3 { font-size: 20px; }
  #screen-mine .space-upcoming, #screen-mine .space-plant-followup, #screen-mine .exchange-overview { display: flex; align-items: stretch; flex-direction: column; padding: 22px; gap: 15px; margin-bottom: 20px; }
  #screen-mine .space-plant-followup-actions { max-width: none; align-items: stretch; width: 100%; margin: 0; }
  #screen-mine .space-plant-followup-actions .button { width: 100%; }
  #screen-mine .space-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #screen-mine .space-type-card { padding: 13px; font-size: 12px; min-height: 72px; }
  #screen-mine .space-type-card small { font-size: 10px; }
  #screen-mine .space-record-tools { padding: 19px; border-radius: 18px; }
  #screen-mine .space-filters { gap: 7px; }
  #screen-mine .space-filters button { flex: 1 1 calc(50% - 7px); font-size: 11px; padding: 10px; }
  #screen-mine .space-record-grid, #screen-mine .space-record-grid:has(> .space-record:only-child), #screen-mine .space-setting-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  #screen-mine .space-record { padding: 21px; margin: 0 0 17px; border-radius: 20px; }
  #screen-mine .space-record-grid > .space-record { margin: 0; }
  #screen-mine .space-record header { flex-direction: column; align-items: flex-start; gap: 11px; }
  #screen-mine .space-record h3 { font-size: 22px; line-height: 1.3; }
  #screen-mine .space-record-meta { font-size: 13px; }
  #screen-mine .space-status-help { font-size: 12px; line-height: 1.7; }
  #screen-mine .space-record-actions { gap: 8px 15px; }
  #screen-mine .space-record-actions .button { min-height: 46px; min-width: 0; flex: 1 1 145px; font-size: 12px; padding: 11px 13px; }
  #screen-mine .space-badge { max-width: 100%; font-size: 10px; }
  #screen-mine .space-information-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #screen-mine .space-information-list dd { margin-bottom: 11px; }
  #screen-mine .space-private-message-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #screen-mine .space-private-message { padding: 21px; }
  #screen-mine .space-private-message p { font-size: 14px; }
  #screen-mine .space-extra-actions { margin-top: 21px; gap: 0 20px; }
  #screen-mine .space-worksite-jump { gap: 7px; padding-bottom: 21px; }
  #screen-mine .space-worksite-jump :is(a,button) { font-size: 12px; }
  #screen-mine .space-registration-group { padding: 19px; }
  #screen-mine .space-registration-group > h3 { font-size: 22px; }
  #screen-mine .space-registration-group .space-record { padding: 18px; }
  #screen-mine .space-history { padding: 4px 20px; }
  #screen-mine .space-history > summary { font-size: 15px; }
  #screen-mine .space-setting { padding: 23px; }
  #screen-mine .space-setting.pwa-panel { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  #screen-mine .space-setting h3 { font-size: 24px; }
  #screen-mine .space-setting p { font-size: 14px; }
  #screen-mine .space-help-grid { margin-top: 15px; }
  #screen-mine .space-help-grid > :is(section,article,div) { padding: 21px; }
  #screen-mine .space-help-grid h3 { font-size: 22px; }
  #screen-mine .space-help-grid p { font-size: 14px; }
  #screen-mine .support-row { padding: 21px; }
  #screen-mine .support-row header { align-items: flex-start; }
  #screen-mine .exchange-space-heading h2 { font-size: 27px !important; }
  #screen-mine .exchange-follow-grid { grid-template-columns: minmax(0, 1fr); }
  #screen-mine .exchange-follow-card { padding: 22px; }
  #screen-mine .exchange-follow-card p, #screen-mine .exchange-empty p { font-size: 14px; }
  #screen-mine .donation-my-card { padding: 21px; }
  #screen-mine .donation-mine section[aria-labelledby='donation-my-requests-title'] .donation-mine-list { grid-template-columns: minmax(0, 1fr); }
  #screen-mine .donation-my-card > header { flex-direction: column; gap: 11px; }
  #screen-mine .donation-my-card h3 { font-size: 22px; }
  #screen-mine .donation-mine-heading > .actions { width: 100%; align-items: stretch; }
  #screen-mine .donation-mine .actions .button { flex: 1 1 160px; }
  #screen-mine .donation-mine-heading > .actions .button { flex: none; }
  #screen-mine .donation-incoming { margin-top: 20px; padding-top: 18px; }
  #screen-mine .donation-request { padding: 15px; }
  #screen-mine .donation-my-card p { font-size: 14px; }
  #screen-mine .donation-link-card { padding: 22px; }
  #screen-mine .nearby-shortcut { padding: 19px 21px; gap: 13px; margin-top: 23px; }
  #screen-mine .nearby-shortcut strong { font-size: 18px; }
  #screen-mine .nearby-shortcut small { font-size: 12px; }
  #screen-mine .space-empty { padding: 26px 22px; }
  #screen-mine .space-empty h3 { font-size: 25px; }
  #screen-mine .space-empty .button { width: 100%; }
  #screen-mine .space-login { padding: 25px; }
  #screen-mine .space-login h2 { font-size: 30px; }
  #screen-mine .space-login p { font-size: 14px; }
  #screen-mine .space-loading { padding: 25px; font-size: 14px; }
  #screen-mine .space-bottom { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 29px; padding-top: 20px; }
  #screen-mine .space-bottom .text-button { margin: 0; }
}
@media (max-width: 370px) {
  #screen-mine { padding-right: 16px; padding-left: 16px; }
  #screen-mine .participant-space .space-welcome { padding: 21px; }
  #screen-mine .participant-space .space-welcome h2 { font-size: 27px; }
  #screen-mine .space-nav-label b { font-size: 11px; }
  #screen-mine .space-metric { padding: 14px 9px; }
  #screen-mine .space-metric b { font-size: 11px; }
  #screen-mine .space-metric small { font-size: 10px; }
  #screen-mine .space-type-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Keep the navigation close at hand: the introduction belongs to the overview. */
#screen-mine .participant-space[data-space-current-view]:not([data-space-current-view='overview']) .space-welcome { display: none; }
@media (max-width: 760px) {
  #screen-mine .participant-space .space-welcome { padding: 18px 20px; gap: 12px; border-radius: 21px; }
  #screen-mine .space-welcome .space-kicker,
  #screen-mine .participant-space .space-welcome p:not(.space-kicker) { display: none; }
  #screen-mine .participant-space .space-welcome h2 { font-size: 24px; line-height: 1.18; margin: 0; }
  #screen-mine .space-welcome .space-private-label { margin-top: 8px; font-size: 10px; }
  #screen-mine .space-welcome-actions { gap: 0; }
  #screen-mine .space-welcome .button { min-height: 44px; padding: 10px 15px; }
  #screen-mine .space-welcome-actions .text-button { min-height: 38px; padding: 8px 0 5px; font-size: 12px; }
  #screen-mine .participant-space .space-nav { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #screen-mine *, #screen-mine *::before, #screen-mine *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  #screen-mine .space-nav, #screen-mine .space-welcome-actions, #screen-mine .space-bottom, #screen-mine .space-record-actions, #screen-mine .space-record-tools, #screen-mine .space-overview-aside { display: none !important; }
  #screen-mine .space-record-grid, #screen-mine .space-overview-grid { display: block; }
  #screen-mine .space-record { break-inside: avoid; }
}
