/* ---------------------------------------------------------------
   KouLi Profile page — calm, authentic, personal.
   Anchor: "Less dashboard. More coach."
   Rebuilt 2026-05-26 to remove gamified XP grid, mascot carousel
   and four-up metric cards. Replaces them with a coach-notes card
   and a quiet practice summary line.
   --------------------------------------------------------------- */

html:has(body.kouli-profile-active),
html:has(body.kouli-progress-active),
html:has(body.kouli-home-active) {
  background-color: #07070d;
}

body.kouli-profile-active {
  /* Calmer ambient gradient — single soft glow, not a club. */
  background:
    radial-gradient(circle at 50% 6%, rgba(122, 153, 171, 0.22), transparent 46%),
    radial-gradient(circle at 82% 30%, rgba(74, 93, 110, 0.16), transparent 40%),
    radial-gradient(circle at 14% 72%, rgba(74, 93, 110, 0.12), transparent 44%),
    linear-gradient(180deg, #07070d 0%, #08070f 50%, #050509 100%);
  background-color: #07070d;
  background-attachment: fixed;
  color: #fff;
}

body.kouli-profile-active #app-header {
  display: none;
}

body.kouli-profile-active #profile-page {
  min-height: calc(100vh - 78px);
  padding: max(22px, env(safe-area-inset-top)) 18px 32px;
  background: none;
  color: #fff;
}

/* Drop the heavy noise grid from the previous version. */
body.kouli-profile-active #profile-page::before {
  content: none;
}

body.kouli-profile-active #profile-page > * {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Honour the user's reduced-motion preference everywhere on this page. */
@media (prefers-reduced-motion: reduce) {
  body.kouli-profile-active #profile-page * {
    transition: none !important;
    animation: none !important;
  }
}

/* -------------------------------------------------------------
   1. Profile identity card
   ------------------------------------------------------------- */

body.kouli-profile-active #profile-page .user-profile-card.kouli-profile-header {
  position: relative;
  padding: 22px 22px 20px;
  margin: 0 auto 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(10, 10, 18, 0.72);
  color: #fff;
  border-radius: 20px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible;
}

body.kouli-profile-active #profile-page .kouli-profile-header .profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  position: static;
}

body.kouli-profile-active #profile-page .kouli-profile-header .profile-avatar {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

body.kouli-profile-active #profile-page .kouli-profile-header .avatar-initials {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.kouli-profile-active #profile-page .kouli-profile-header .profile-info {
  flex: 1;
  min-width: 0;
}

body.kouli-profile-active #profile-page .kouli-profile-header #profile-name {
  color: #fff !important;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

body.kouli-profile-active #profile-page .kouli-profile-header .profile-email {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.85rem;
  margin: 0;
  text-align: left;
  letter-spacing: 0;
}

body.kouli-profile-active #profile-page .kouli-profile-header .kouli-profile-meta {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  margin: 8px 0 0;
  font-style: italic;
  letter-spacing: 0.005em;
  line-height: 1.4;
}

body.kouli-profile-active #profile-page .kouli-profile-header .edit-profile-header-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.kouli-profile-active #profile-page .kouli-profile-header .edit-profile-header-btn svg {
  width: 12px;
  height: 12px;
}

body.kouli-profile-active #profile-page .kouli-profile-header .edit-profile-header-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

body.kouli-profile-active #profile-page .pro-crown {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.32));
}

/* Hide the old gamified bits but keep them in DOM so main.js writes don't error. */
body.kouli-profile-active #profile-page .kouli-hidden,
body.kouli-profile-active #profile-page .xp-level-section,
body.kouli-profile-active #profile-page .mascot-carousel-card,
body.kouli-profile-active #profile-page .progress-metrics {
  display: none !important;
}

/* -------------------------------------------------------------
   2. Coach notes — the heart of the page
   ------------------------------------------------------------- */

/* 2026-06-02: Toned the coach-notes card down so it sits quietly on the
   page; the breathing coach-dot does the work of signalling "this is
   alive". 2026-06-15: recoloured to the KouLi contract — card edge/glow
   is now neutral grey/blue and the breathing dot is the screen's single
   teal moment. */
body.kouli-profile-active #profile-page .kouli-coach-notes {
  position: relative;
  margin: 0 auto 22px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(122, 153, 171, 0.10);
  background:
    linear-gradient(180deg, rgba(122, 153, 171, 0.04), rgba(122, 153, 171, 0.012) 60%, rgba(10, 10, 18, 0.0)),
    rgba(10, 10, 18, 0.6);
  border-radius: 20px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.kouli-profile-active #profile-page .kouli-coach-notes-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

body.kouli-profile-active #profile-page .kouli-coach-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 196, 160, 0.95);
  box-shadow: 0 0 12px rgba(0, 196, 160, 0.55);
  animation: kouli-coach-breathe 4.2s ease-in-out infinite;
}

@keyframes kouli-coach-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

body.kouli-profile-active #profile-page .kouli-coach-notes-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.9);
}

body.kouli-profile-active #profile-page .kouli-coach-notes-body {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* 2026-06-02: actions row inside the coach-notes card. Holds the
   "View history" pill (and any future quiet affordances). Sits flush
   against the body copy with a hairline top rule so the card reads as
   "note + one quiet action", never a dashboard footer. */
body.kouli-profile-active #profile-page .kouli-coach-notes-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* The pill itself. Whisper register — hairline border, no fill, neutral
   text. Hover lifts it just enough to feel tappable without becoming
   a "button button". */
body.kouli-profile-active #profile-page .kouli-coach-history-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.kouli-profile-active #profile-page .kouli-coach-history-pill svg {
  opacity: 0.78;
  transition: opacity 0.18s ease, transform 0.32s ease;
}

body.kouli-profile-active #profile-page .kouli-coach-history-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-0.5px);
}

body.kouli-profile-active #profile-page .kouli-coach-history-pill:hover svg {
  opacity: 1;
  transform: rotate(-12deg);
}

body.kouli-profile-active #profile-page .kouli-coach-history-pill:active {
  transform: translateY(0);
}

body.kouli-profile-active #profile-page .kouli-coach-history-pill:focus-visible {
  outline: 2px solid rgba(0, 229, 192, 0.55);
  outline-offset: 2px;
}

body.kouli-profile-active #profile-page .kouli-coach-notes-meta {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* -------------------------------------------------------------
   3. Practice summary — quiet continuity, not a scoreboard
   ------------------------------------------------------------- */

body.kouli-profile-active #profile-page .kouli-practice-summary {
  margin: 0 auto 26px;
  padding: 18px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 18, 0.45);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.kouli-profile-active #profile-page .kouli-section-eyebrow {
  margin: 0 auto 12px;
  max-width: 560px;
  padding-left: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

body.kouli-profile-active #profile-page .kouli-section-eyebrow--settings {
  margin-top: 30px;
}

body.kouli-profile-active #profile-page .kouli-practice-trace {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

body.kouli-profile-active #profile-page .kouli-practice-trends {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

body.kouli-profile-active #profile-page .kouli-trend-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(122, 153, 171, 0.22);
  background: rgba(74, 93, 110, 0.18);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.78rem;
  line-height: 1.25;
}

body.kouli-profile-active #profile-page .kouli-practice-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

body.kouli-profile-active #profile-page .kouli-quiet-link {
  appearance: none;
  background: transparent;
  border: none;
  padding: 4px 0;
  font: inherit;
  font-size: 0.82rem;
  color: rgba(184, 205, 216, 0.85);
  cursor: pointer;
  letter-spacing: 0.005em;
  text-decoration: none;
  border-bottom: 1px dashed rgba(122, 153, 171, 0.4);
  transition: color 0.18s ease, border-color 0.18s ease;
}

body.kouli-profile-active #profile-page .kouli-quiet-link:hover {
  color: #fff;
  border-bottom-color: rgba(122, 153, 171, 0.7);
}

/* -------------------------------------------------------------
   4. Settings cards — calmer, lighter, less chrome
   ------------------------------------------------------------- */

body.kouli-profile-active #profile-page .settings-cards-section {
  margin: 0 auto 22px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.kouli-profile-active #profile-page .settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 540px) {
  body.kouli-profile-active #profile-page .settings-grid {
    grid-template-columns: 1fr;
  }
}

body.kouli-profile-active #profile-page .setting-card {
  background: rgba(10, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.18s ease, border-color 0.18s ease;
}

body.kouli-profile-active #profile-page .setting-card:hover {
  transform: none;
  background: rgba(15, 12, 28, 0.7);
  border-color: rgba(122, 153, 171, 0.3);
}

body.kouli-profile-active #profile-page .setting-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

body.kouli-profile-active #profile-page .setting-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(184, 205, 216, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.kouli-profile-active #profile-page .setting-icon svg {
  width: 16px;
  height: 16px;
  color: rgba(184, 205, 216, 0.9);
}

body.kouli-profile-active #profile-page .setting-text {
  flex: 1;
  min-width: 0;
}

body.kouli-profile-active #profile-page .setting-text h3 {
  color: #fff !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  margin: 0 0 1px;
}

body.kouli-profile-active #profile-page .setting-text .setting-description {
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 0.75rem;
  margin: 0;
}

body.kouli-profile-active #profile-page .setting-control .chevron-right {
  color: rgba(255, 255, 255, 0.28);
  width: 14px;
  height: 14px;
}

body.kouli-profile-active #profile-page .setting-card:hover .setting-control .chevron-right {
  color: rgba(184, 205, 216, 0.85);
}

body.kouli-profile-active #profile-page .kouli-share-sessions-card {
  margin: 0 auto 22px;
}

body.kouli-profile-active #profile-page .kouli-share-sessions-card .setting-card-header {
  min-height: 40px;
}

body.kouli-profile-active #profile-page .coming-soon-badge {
  background: rgba(74, 93, 110, 0.22);
  border: 1px solid rgba(122, 153, 171, 0.32);
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------
   5. Beta feedback — smaller, friendlier
   ------------------------------------------------------------- */

body.kouli-profile-active #profile-page .beta-feedback-card {
  margin: 0 auto 18px;
  padding: 14px 16px;
  background: rgba(10, 10, 18, 0.55);
  border: 1px dashed rgba(122, 153, 171, 0.3);
  border-radius: 14px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

body.kouli-profile-active #profile-page .beta-feedback-card:hover {
  background: rgba(15, 12, 28, 0.7);
  border-color: rgba(122, 153, 171, 0.5);
}

body.kouli-profile-active #profile-page .beta-feedback-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.kouli-profile-active #profile-page .beta-feedback-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: rgba(184, 205, 216, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.kouli-profile-active #profile-page .beta-feedback-icon svg {
  width: 16px;
  height: 16px;
  color: rgba(184, 205, 216, 0.9);
}

body.kouli-profile-active #profile-page .beta-feedback-content {
  flex: 1;
  min-width: 0;
}

body.kouli-profile-active #profile-page .beta-feedback-content h3 {
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 0 1px;
}

body.kouli-profile-active #profile-page .beta-feedback-content .beta-feedback-description {
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 0.75rem;
  margin: 0;
}

body.kouli-profile-active #profile-page .beta-feedback-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

body.kouli-profile-active #profile-page .beta-feedback-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

/* -------------------------------------------------------------
   6. Sign out & footer
   ------------------------------------------------------------- */

body.kouli-profile-active #profile-page .signout-section {
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
}

body.kouli-profile-active #profile-page .signout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.kouli-profile-active #profile-page .signout-btn svg {
  width: 14px;
  height: 14px;
}

body.kouli-profile-active #profile-page .signout-btn:hover {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fff;
}

body.kouli-profile-active #profile-page .app-version-tag {
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.72rem;
}

body.kouli-profile-active #profile-page .app-version-separator {
  color: rgba(255, 255, 255, 0.18);
}

/* -------------------------------------------------------------
   7. Conditional accountability / insights blocks — calmer
   ------------------------------------------------------------- */

body.kouli-profile-active #profile-page .accountability-section,
body.kouli-profile-active #profile-page .monthly-insights-section {
  margin: 0 auto 18px;
  padding: 14px 18px;
  background: rgba(10, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* -------------------------------------------------------------
   8. Share sessions modal — dark glass, KouLi contract.
   Overrides the global white/teal .modal-* rules (which use
   !important) so this dialog matches the dark profile surface.
   Teal is spent in ONE place only: the primary "Send summary"
   button. Selected period + checks stay neutral grey/blue; the
   teal focus ring is the accessibility-only exception.
   ------------------------------------------------------------- */

.modal .share-sessions-modal-content {
  background:
    linear-gradient(180deg, rgba(184, 205, 216, 0.06), rgba(184, 205, 216, 0.02)),
    rgba(12, 19, 24, 0.95) !important;
  border: 1px solid rgba(184, 205, 216, 0.12) !important;
  border-radius: 22px !important;
  max-width: 460px !important;
  width: 100% !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden !important;
  position: relative !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  color: #E8EEF2 !important;
}

.share-sessions-modal-content .modal-header {
  background: transparent !important;
  padding: 1.5rem 1.6rem 1rem !important;
  border-bottom: 1px solid rgba(184, 205, 216, 0.10) !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.share-sessions-modal-content .modal-title {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #E8EEF2 !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
}

.share-sessions-modal-content .close-btn {
  background: rgba(184, 205, 216, 0.06) !important;
  border: 1px solid rgba(184, 205, 216, 0.12) !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  color: rgba(184, 205, 216, 0.75) !important;
  cursor: pointer !important;
  padding: 0 !important;
  border-radius: 10px !important;
  transition: all 0.18s ease !important;
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.3rem !important;
  width: 2.1rem !important;
  height: 2.1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.share-sessions-modal-content .close-btn:hover {
  background: rgba(184, 205, 216, 0.13) !important;
  color: #E8EEF2 !important;
}

.share-sessions-modal-content .modal-body {
  padding: 1.4rem 1.6rem 1.6rem !important;
  background: transparent !important;
}

.share-sessions-intro {
  margin: 0 0 18px;
  color: var(--mist, #7A99AB);
  font-size: 0.92rem;
  line-height: 1.6;
}

.share-sessions-auth-note,
.share-sessions-status {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(184, 205, 216, 0.18);
  border-radius: 12px;
  background: rgba(184, 205, 216, 0.06);
  color: var(--halo, #B8CDD8);
  font-size: 0.84rem;
  line-height: 1.45;
}

.share-sessions-status {
  display: none;
}

.share-sessions-status.is-visible {
  display: block;
}

.share-sessions-status.is-error {
  border-color: rgba(192, 57, 43, 0.5);
  background: rgba(192, 57, 43, 0.14);
  color: #F1B0A8;
}

.share-sessions-status.is-success {
  border-color: rgba(0, 196, 160, 0.4);
  background: rgba(0, 196, 160, 0.12);
  color: var(--teal-mist, #80F5E2);
}

.share-sessions-modal-content .form-group {
  margin-bottom: 18px;
}

.share-sessions-modal-content .form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--halo, #B8CDD8);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.share-sessions-modal-content .form-group input[type="email"] {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  background: rgba(12, 19, 24, 0.6) !important;
  border: 1px solid rgba(184, 205, 216, 0.18) !important;
  border-radius: 12px !important;
  color: #E8EEF2 !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
  outline: none !important;
}

.share-sessions-modal-content .form-group input[type="email"]::placeholder {
  color: var(--steel, #4A5D6E) !important;
}

.share-sessions-modal-content .form-group input[type="email"]:focus {
  border-color: var(--teal-core, #00C4A0) !important;
  box-shadow: 0 0 0 2px rgba(0, 229, 192, 0.45) !important;
}

.share-sessions-period-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.share-sessions-period-group legend {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  padding: 0;
  color: var(--halo, #B8CDD8);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.share-sessions-period-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px;
  border: 1px solid rgba(184, 205, 216, 0.16);
  border-radius: 12px;
  background: rgba(12, 19, 24, 0.5);
  color: var(--mist, #7A99AB);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.share-sessions-period-option:hover {
  border-color: rgba(184, 205, 216, 0.3);
  color: var(--halo, #B8CDD8);
}

/* Selected period reads as a quiet neutral chip — not the screen's
   teal moment (that belongs to the Send button). */
.share-sessions-period-option:has(input:checked) {
  border-color: rgba(184, 205, 216, 0.55);
  background: rgba(184, 205, 216, 0.12);
  color: #E8EEF2;
}

/* Hide the native radio dot; the chip itself is the control. */
.share-sessions-period-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.share-sessions-period-option:has(input:focus-visible) {
  box-shadow: 0 0 0 2px rgba(0, 229, 192, 0.55);
}

.share-sessions-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--mist, #7A99AB);
  font-size: 0.84rem;
  line-height: 1.5;
  cursor: pointer;
}

.share-sessions-consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--halo, #B8CDD8);
}

.share-sessions-modal-content .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 205, 216, 0.10);
}

.share-sessions-modal-content .form-actions button {
  min-width: 120px !important;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.share-sessions-modal-content .form-actions button.secondary {
  background: rgba(184, 205, 216, 0.06) !important;
  border: 1px solid rgba(184, 205, 216, 0.16) !important;
  color: var(--halo, #B8CDD8) !important;
  box-shadow: none !important;
}

.share-sessions-modal-content .form-actions button.secondary:hover {
  background: rgba(184, 205, 216, 0.12) !important;
  border-color: rgba(184, 205, 216, 0.28) !important;
  color: #E8EEF2 !important;
}

/* The one teal moment on this screen. */
#share-sessions-submit.primary {
  background: var(--teal-core, #00C4A0) !important;
  color: var(--void, #0C1318) !important;
  border: 1px solid var(--teal-core, #00C4A0) !important;
  box-shadow: 0 8px 24px rgba(0, 196, 160, 0.28) !important;
}

#share-sessions-submit.primary:hover:not(:disabled) {
  background: var(--teal-glow, #00E5C0) !important;
  border-color: var(--teal-glow, #00E5C0) !important;
  box-shadow: 0 10px 28px rgba(0, 229, 192, 0.38) !important;
}

#share-sessions-submit.primary:active:not(:disabled) {
  background: var(--teal-mid, #007A64) !important;
  border-color: var(--teal-mid, #007A64) !important;
}

#share-sessions-submit.primary:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--teal-glow, #00E5C0) !important;
}

#share-sessions-submit.primary:disabled {
  background: rgba(74, 93, 110, 0.4) !important;
  border-color: rgba(74, 93, 110, 0.4) !important;
  color: rgba(184, 205, 216, 0.5) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* -------------------------------------------------------------
   9. Mobile tightening
   ------------------------------------------------------------- */

@media (max-width: 640px) {
  body.kouli-profile-active #profile-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 2026-06-02: kouli-practice-summary removed; the matching responsive
     overrides for .kouli-practice-trace went with it. Coach-notes still
     gets a slightly tighter pad on small screens. */
  body.kouli-profile-active #profile-page .kouli-profile-header,
  body.kouli-profile-active #profile-page .kouli-coach-notes {
    padding: 18px 18px 16px;
    border-radius: 18px;
  }

  body.kouli-profile-active #profile-page .kouli-coach-notes-body {
    font-size: 0.94rem;
  }

  .share-sessions-period-group {
    grid-template-columns: 1fr;
  }
}
