/* Interior pages share the Garden palette and keep the honeycomb in view. */
.profile-page,
.application-intro,
.application-section,
.contact-section,
.watch-card,
.calendar-page {
  min-width: 0;
}

/* A creator's corner of the Garden. */
.profile-page { padding: 28px 0 88px; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
}
.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 32px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: none;
}
.profile-identity { display: flex; align-items: center; gap: 24px; min-width: 0; }
.profile-identity > div { min-width: 0; }
.profile-identity > .avatar {
  width: 108px;
  height: 108px;
  border: 2px solid var(--ink);
  box-shadow: none;
  font-size: 40px;
}
.profile-identity h1 { font-size: clamp(32px, 4.2vw, 58px); margin: 9px 0 15px; overflow-wrap: anywhere; }
.profile-identity .eyebrow { color: var(--accent-ink); }
.profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.profile-meta > span:last-child { color: var(--muted); font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-banner {
  display: grid;
  place-items: center;
  flex-basis: 100%;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--cream) url('/images/honeycomb.svg') center / 230px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.profile-banner img { width: 100%; height: 100%; max-height: 190px; object-fit: contain; }
.profile-nav {
  display: flex;
  gap: 34px;
  padding: 0 5px;
  margin-top: 24px;
  border-bottom: 2px solid var(--ink);
  overflow-x: auto;
  scrollbar-width: thin;
}
.profile-nav a { display: inline-flex; align-items: center; min-height: 62px; padding: 12px 0; font-size: 15px; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.profile-nav a:hover,
.profile-nav a:focus-visible { border-bottom-color: var(--accent-ink); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 30px; margin-top: 36px; }
.profile-main { min-width: 0; padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.profile-section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 32px; }
.profile-section:last-child { padding-bottom: 0; margin-bottom: 0; border: 0; }
.profile-section > h2 { margin: 13px 0 24px; font-size: clamp(30px, 3vw, 43px); overflow-wrap: anywhere; }
.profile-section > p:not(.eyebrow) { margin-bottom: 18px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.profile-section .eyebrow { color: var(--accent-ink); }
.profile-section .section-heading.compact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 20px; margin: 0 0 24px; }
.profile-section .section-heading.compact h2 { margin-top: 10px; font-size: clamp(29px, 2.8vw, 38px); }
.profile-section .section-heading > .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.channel-summary { padding: 24px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 26px; background: var(--cream); line-height: 1.8; }
.channel-summary > p:first-child { font-size: 17px; }
.channel-summary .small-text { margin-top: 14px; }
.game-panel { margin: 30px 0 20px; padding: 25px; border: 1px solid var(--sage); border-radius: 10px; background: var(--sage-wash); }
.game-panel h3 { font-size: 22px; margin-bottom: 16px; }
.game-panel .tag { background: var(--paper); border-color: var(--sage); }
.game-panel p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.bio-detail { border-bottom: 1px solid var(--line); font-size: 16px; }
.bio-detail:last-child { border-bottom: 0; }
.bio-detail summary { min-height: 56px; padding: 16px 3px; cursor: pointer; font-weight: 700; line-height: 1.5; }
.bio-detail summary::marker { color: var(--accent-ink); }
.bio-detail p { margin: 0 0 20px; color: var(--muted); line-height: 1.85; }
.profile-sidebar { display: grid; gap: 20px; min-width: 0; }
.sidebar-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.sidebar-card:first-child { background: var(--sage-wash); color: var(--ink); border-color: var(--sage); }
.sidebar-card h3 { font-size: 24px; margin-bottom: 14px; }
.sidebar-card > .eyebrow { margin-bottom: 14px; color: var(--accent-ink); }
.sidebar-card > p:not(.eyebrow) { margin-bottom: 20px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.sidebar-card:first-child > .eyebrow { color: var(--ink); }
.sidebar-card:first-child > p:not(.eyebrow) { color: var(--muted); }
.sidebar-card .button { width: 100%; font-size: 14px; }
.sidebar-card:first-child .button { background: var(--bluebell); border-color: var(--ink); color: var(--ink); box-shadow: none; }
.sidebar-card .small-text { font-size: 12px !important; line-height: 1.8; margin-top: 18px; margin-bottom: 0 !important; }
.sidebar-card .since-date { font-family: var(--body); font-size: 28px !important; font-weight: 700; line-height: 1.25 !important; color: var(--ink) !important; }
.social-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; text-transform: none; }
.social-link:last-of-type { border-bottom: 0; }
.social-placeholders > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
.social-placeholders small { padding: 3px 6px; background: var(--cream); border-radius: 3px; font-size: 10px; white-space: nowrap; }
.sidebar-team { display: block; padding: 28px 25px; border: 2px solid var(--ink); border-radius: 12px; background: var(--honey); font-family: Honey, Georgia, serif; font-size: 29px; line-height: 1.15; }
.sidebar-team > span { display: block; margin-top: 22px; font-family: Bricolage, 'Trebuchet MS', sans-serif; font-size: 14px; line-height: 1.5; font-weight: 700; }
.placeholder-panel { padding: 34px 26px; border: 1px dashed var(--line); border-radius: 10px; background: var(--cream); text-align: center; }
.placeholder-panel h3 { font-size: 22px; line-height: 1.35; }
.placeholder-panel p { max-width: 480px; margin: 15px auto 18px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.placeholder-panel .empty-symbol { display: block; margin-bottom: 14px; color: var(--accent-ink); font-size: 38px; line-height: 1; }
.placeholder-label { display: inline-block; border-radius: 4px; padding: 6px 10px; background: var(--honey); font-size: 10px; letter-spacing: .08em; font-weight: 700; }
.placeholder-panel .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.weekly-schedule { margin-bottom: 28px; }
.weekly-schedule > h3 { margin-bottom: 12px; font-size: 22px; }
.weekly-schedule > .small-text { margin-top: 16px; font-size: 13px; line-height: 1.8; }
.schedule-zone { margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.schedule-list { display: grid; gap: 12px; }
.schedule-row { display: flex; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.schedule-row > div { min-width: 0; }
.schedule-date { flex: 0 0 66px; color: var(--accent-ink); font-size: 15px; font-weight: 700; line-height: 1.65; }
.schedule-row h3 { font-size: 18px; margin-bottom: 7px; overflow-wrap: anywhere; }
.schedule-row p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.schedule-row.canceled { background: var(--blush-wash); }
.media-source { margin-bottom: 18px; font-size: 13px; line-height: 1.7; }
.media-grid { display: grid; gap: 22px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.media-card .media-info { padding: 20px; }
.media-card h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }
.media-card .text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* A small replay shelf, with the next good moment always within reach. */
.media-carousel { width: 100%; max-width: 760px; min-width: 0; margin-inline: auto; container-type: inline-size; }
.media-carousel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 14px; }
.media-carousel-note { flex: 1 1 180px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.media-carousel-controls { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.media-carousel-controls button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); font: inherit; font-size: 23px; cursor: pointer; }
.media-carousel-controls button:hover:not(:disabled) { background: var(--honey); border-color: var(--ink); }
.media-carousel-controls button:disabled { opacity: .35; cursor: default; }
.media-carousel-count { min-width: 67px; text-align: center; color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.media-carousel-stage { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--cream); touch-action: pan-y; }
.media-slide { min-width: 0; }
.media-player { position: relative; display: grid; place-items: center; isolation: isolate; width: 100%; min-width: 0; min-height: 300px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bluebell-wash); }
.media-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-play, .media-open-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 64px; min-height: 64px; max-width: calc(100% - 32px); padding: 15px 22px; border: 2px solid var(--paper); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-align: center; box-shadow: 0 5px 22px #594a3c38; cursor: pointer; }
.media-play:hover, .media-open-link:hover { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.media-play > span[aria-hidden] { font-size: 26px; line-height: 1; }
.media-carousel .media-info { padding: 17px 20px 15px; }
.media-carousel .media-kicker { margin: 0 0 7px; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.media-carousel .media-info h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 7px; min-height: 2.8em; color: var(--ink); font-family: var(--body); font-size: clamp(16px, 2vw, 19px); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.media-carousel .media-info .text-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; }
.media-thumbnails { display: flex; min-width: 0; gap: 9px; overflow-x: auto; overscroll-behavior-x: contain; padding: 12px 2px 6px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; }
.media-thumbnails > li { display: contents; }
.media-thumbnails button { position: relative; display: block; flex: 0 0 clamp(72px, 15%, 112px); min-width: 0; min-height: 48px; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 7px; background: var(--bluebell-wash); color: var(--ink); cursor: pointer; opacity: .65; }
.media-thumbnails button:hover { opacity: 1; }
.media-thumbnails button[aria-current="true"] { opacity: 1; border-color: var(--ink); box-shadow: 0 0 0 2px var(--honey); }
.media-thumb-image { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-number { position: absolute; left: 5px; bottom: 5px; display: grid; place-items: center; min-width: 23px; min-height: 22px; padding: 2px 5px; border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.media-autoplay { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.media-autoplay[aria-pressed="true"] { background: var(--honey); }
.media-carousel button:focus-visible, .media-carousel a:focus-visible, .media-carousel-stage:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.media-carousel [hidden] { display: none !important; }
@container (max-width: 399px) {
  .media-player { min-height: 0; }
  .media-carousel-toolbar { gap: 8px; }
  .media-carousel-note { flex-basis: 100%; }
  .media-carousel .media-info { padding: 15px; }
  .media-thumbnails { gap: 7px; }
  .media-open-link { min-height: 48px; padding: 10px 17px; font-size: 13px; }
}

/* The watch room. Player dimensions still follow Twitch's 400 × 300 limit. */
.live-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 25px; border: 1px solid var(--ink); border-radius: 10px; background: var(--honey); }
.live-toolbar > p { font-size: 16px; font-weight: 600; }
.live-toolbar #live-summary { color: var(--ink); }
.live-toolbar .button { flex-shrink: 0; background: var(--paper); }
#last-checked { margin: 14px 0 28px; font-size: 13px; }
.watch-grid { display: grid; gap: 28px; }
.watch-card { padding: 26px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: none; }
.watch-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 12px; }
.watch-card h2 { font-size: clamp(27px, 3vw, 39px); overflow-wrap: anywhere; }
.watch-card .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.watch-card > p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.embed-wrap { display: grid; place-items: center; position: relative; min-width: 0; width: 100%; min-height: 300px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--bluebell-wash); }
.media-card .embed-wrap { border-radius: 0; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 300px; border: 0; }
.embed-cover { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; object-fit: cover; }
.embed-consent { position: relative; z-index: 1; width: 100%; max-width: 500px; padding: 32px; color: var(--ink); text-align: center; }
.embed-consent strong { display: block; font-size: 20px; line-height: 1.45; overflow-wrap: anywhere; }
.embed-consent p { margin: 17px 0; color: var(--ink); font-size: 16px; line-height: 1.7; }
.embed-consent .button { background: var(--bluebell); color: var(--ink); border-color: var(--ink); box-shadow: none; }
.embed-consent a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.embed-consent a:hover { color: var(--ink); text-decoration-thickness: 2px; }
.embed-mobile { display: none; }
#live-empty { position: relative; margin-top: 28px; padding: 52px 30px; border: 2px solid var(--ink); background: var(--sage-wash); }
#live-empty h2 { max-width: 750px; margin-inline: auto; }
#live-empty .empty-symbol { font-size: 60px; color: var(--sage); }
#live-empty p { color: var(--muted); font-size: 16px; }
.notice { padding: 24px; }

/* Open doors, with the character of a Garden club noticeboard. */
.contact-section .page-heading { max-width: 1000px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.contact-panel { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 42px; border: 2px solid var(--ink); border-radius: 16px; background: var(--bluebell-wash); color: var(--ink); box-shadow: none; }
.contact-panel:first-child { background: var(--honey-wash); color: var(--ink); box-shadow: none; }
.contact-symbol { display: block; margin-bottom: 28px; font-family: Georgia, serif; font-size: 88px; line-height: 1; color: var(--bluebell); }
.contact-panel:first-child .contact-symbol { color: var(--blush); }
.contact-panel .eyebrow { color: var(--ink); }
.contact-panel:first-child .eyebrow { color: var(--accent-ink); }
.contact-panel h2 { font-size: clamp(34px, 3.5vw, 49px); margin: 14px 0 22px; }
.contact-panel p:not(.eyebrow) { max-width: 390px; margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.contact-panel:first-child p:not(.eyebrow) { color: var(--muted); }
.contact-panel .button { margin-top: auto; }
.contact-panel:not(:first-child) .button { background: var(--bluebell); border-color: var(--ink); color: var(--ink); box-shadow: none; }
.contact-note { margin-top: 40px; text-align: center; color: var(--muted); font-size: 16px; }
.contact-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-ink); font-weight: 700; }

/* Applications: a welcome letter followed by the team's original form. */
.application-intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-block: 78px 64px; }
.application-copy h1 { font-size: clamp(40px, 4.9vw, 70px); line-height: 1.07; margin: 24px 0 28px; }
.application-copy h1 span { color: var(--accent-ink); }
.application-copy > .eyebrow { color: var(--accent-ink); }
.application-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 20px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.application-copy .application-lead { font-size: 23px !important; line-height: 1.55 !important; color: var(--ink) !important; }
.application-copy .button-row { margin-top: 30px; gap: 18px; }
.application-copy .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.application-welcome { position: relative; padding: 38px; background: var(--blush-wash); color: var(--ink); border: 2px solid var(--ink); border-radius: 100px 100px 16px 16px; box-shadow: none; }
.application-flower { display: block; width: fit-content; margin: 0 auto 25px; color: var(--blush); font-family: Georgia, serif; font-size: 94px; line-height: 1.2; }
.application-welcome > .eyebrow { color: var(--ink); }
.application-welcome h2 { font-size: clamp(32px, 3.1vw, 43px); line-height: 1.14; margin: 18px 0 22px; }
.application-welcome > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.85; }
.application-welcome .application-signoff { padding-top: 23px; margin-top: 25px; border-top: 1px solid var(--blush); color: var(--ink) !important; font-family: Coast, Georgia, serif; font-size: 25px !important; line-height: 1.4 !important; }
.application-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 72px; }
.application-values article { position: relative; padding-top: 25px; border-top: 2px solid var(--ink); }
.application-values article > span { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--honey); border: 1px solid var(--ink); border-radius: 50%; font-weight: 700; font-size: 13px; }
.application-values h3 { margin: 20px 0 14px; font-size: 24px; }
.application-values p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.application-section { padding-bottom: 82px; scroll-margin-top: 30px; }
.application-section .section-heading > p { max-width: 460px; font-size: 16px; }
.application-form-bar { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 28px; background: var(--honey); border: 2px solid var(--ink); border-radius: 14px 14px 0 0; }
.application-form-bar strong { font-size: 21px; }
.application-form-bar p { max-width: 630px; margin-top: 10px; font-size: 16px; line-height: 1.7; }
.application-form-bar .button { flex-shrink: 0; background: var(--paper); }
.application-form { display: block; width: 100%; height: 1500px; border: 2px solid var(--ink); border-top: 0; background: var(--paper); }
.application-help { padding: 22px 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.application-help a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }

/* The calendar keeps all existing authentication and event-editing hooks. */
.events-redesign .background-container { display: none; }
.events-redesign .calendar-page { padding: 70px 0 80px; min-height: 70vh; }
.events-redesign .calendar-page > .container { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.events-redesign .meet-team-header { position: relative; padding: 0 0 34px; border-bottom: 2px solid var(--ink); margin-bottom: 32px !important; }
.events-redesign .meet-team-header .eyebrow { margin-bottom: 18px; color: var(--accent-ink); }
.events-redesign .meet-team-title { margin-bottom: 22px; font-size: clamp(44px, 6.7vw, 88px); }
.events-redesign .meet-team-subtitle { max-width: 570px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.events-redesign .calendar-header-flower { position: absolute; right: 35px; top: 20px; color: var(--blush); font-family: Georgia, serif; font-size: 120px; line-height: 1; transform: rotate(12deg); }
.calendar-viewer-tz-note { display: inline-block; margin: 0 0 28px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 14px; }
.calendar-events-section { margin-bottom: 46px; }
.calendar-section-title { margin-bottom: 24px; font-size: 38px; }
.calendar-events-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.calendar-event-card { min-width: 0; padding: 28px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: none; }
.calendar-event-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; font-family: Honey, Georgia, serif; font-size: clamp(27px, 2.8vw, 37px); font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.calendar-event-recurring { padding: 4px 7px; background: var(--sage-wash); border: 1px solid var(--sage); border-radius: 4px; color: var(--ink); font-family: Bricolage, 'Trebuchet MS', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; vertical-align: middle; }
.calendar-event-streamer { display: block; margin-bottom: 8px; color: var(--accent-ink); font-weight: 700; font-size: 16px; }
.calendar-event-time { color: var(--muted); font-size: 15px; line-height: 1.8; }
.calendar-event-desc { margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }
.calendar-event-countdown { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.calendar-event-countdown-title { margin-bottom: 12px; color: var(--accent-ink); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.calendar-event-countdown-units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calendar-event-countdown-unit { padding: 16px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--honey); text-align: center; }
.calendar-event-countdown-num { display: block; font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.calendar-event-countdown-lbl { display: block; margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.calendar-event-countdown-sub,
.calendar-event-countdown-started { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--accent-ink); text-align: center; }
#calendar-events-past .calendar-event-card { background: var(--cream); border: 1px solid var(--line); box-shadow: none; }
.calendar-events-list > p { grid-column: 1 / -1; padding: 26px; border: 1px dashed var(--line); border-radius: 10px; background: var(--cream); color: var(--muted); font-size: 16px; }
.calendar-auth-panel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.calendar-auth-panel--page-bottom { margin-top: 44px; }
.calendar-auth-info { display: grid; gap: 7px; }
.calendar-auth-label { color: var(--accent-ink); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.calendar-auth-status { font-size: 16px; }
.calendar-auth-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-discord,
.btn-logout,
.btn-calendar-submit,
.btn-calendar-delete { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 21px; border: 1px solid var(--ink); border-radius: 7px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--ink); background: var(--bluebell); transition: background .18s, transform .18s; }
.btn-discord:hover,
.btn-calendar-submit:hover { background: var(--bluebell-wash); transform: translateY(-2px); }
.btn-logout { background: transparent; color: var(--ink); }
.btn-logout:hover { background: var(--honey); }
.btn-calendar-delete { margin-top: 20px; background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.btn-calendar-delete:hover { background: var(--blush); color: var(--ink); }
.calendar-editor-panel { margin: 36px 0; padding: 32px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); }
.calendar-editor-title { font-size: 35px; margin-bottom: 16px; }
.calendar-tz-hint { margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.calendar-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.calendar-form-grid .full-width { grid-column: 1 / -1; }
.calendar-form-grid label { display: flex; flex-direction: column; min-width: 0; gap: 9px; font-weight: 700; font-size: 16px; }
.calendar-form-grid input,
.calendar-form-grid textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 6px; background: var(--cream); color: var(--ink); font: inherit; font-size: 16px; }
.calendar-form-grid input::placeholder,
.calendar-form-grid textarea::placeholder { color: var(--muted); opacity: 1; }
.calendar-form-grid input:focus-visible,
.calendar-form-grid textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.calendar-form-grid textarea { resize: vertical; min-height: 140px; }
.calendar-form-grid .calendar-form-checkbox-label { flex-direction: row; align-items: center; min-height: 48px; gap: 12px; cursor: pointer; }
.calendar-form-checkbox-label input[type='checkbox'] { flex: 0 0 22px; width: 22px; min-height: 22px; height: 22px; margin: 0; accent-color: var(--accent-ink); }
.calendar-form-actions { margin-top: 28px; }
.calendar-setup-banner,
.calendar-denied-banner,
.calendar-key-banner { margin: 24px 0; padding: 24px; border: 1px solid var(--accent-ink); border-radius: 8px; background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.calendar-denied-banner,
.calendar-key-banner { background: var(--blush-wash); }
.calendar-loading,
.calendar-load-error { padding: 28px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); font-size: 16px; line-height: 1.8; text-align: center; }
.calendar-load-error { background: var(--blush-wash); color: var(--accent-ink); }

@media (max-width: 1100px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; }
  .profile-main { padding: 26px; }
  .profile-hero { padding: 26px; }
  .profile-identity > .avatar { width: 92px; height: 92px; }
  .profile-identity h1 { font-size: 43px; }
  .application-intro { gap: 38px; }
  .application-welcome { padding: 30px; }
  .contact-panel { padding: 34px; }
  .events-redesign .calendar-page > .container { width: calc(100% - 64px); }
}

@media (max-width: 860px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero { gap: 24px; }
  .profile-identity { gap: 20px; }
  .profile-identity h1 { font-size: clamp(33px, 5.8vw, 48px); }
  .profile-banner,
  .profile-banner img { height: 150px; max-height: 150px; }
  .application-intro { grid-template-columns: 1fr; gap: 36px; padding-top: 50px; }
  .application-copy h1 { font-size: clamp(43px, 7vw, 63px); }
  .application-welcome { border-radius: 50px 50px 12px 12px; padding: 35px; }
  .application-flower { font-size: 80px; margin-left: 0; }
  .application-welcome h2 br { display: none; }
  .application-values { gap: 24px; }
  .application-values h3 { font-size: 21px; }
  .application-form-bar { align-items: flex-start; flex-direction: column; }
  .contact-panel { padding: 28px; }
  .calendar-event-card { padding: 24px; }
  .calendar-events-list { grid-template-columns: minmax(0, 1fr); }
  .events-redesign .calendar-header-flower { right: 0; font-size: 88px; }
  .events-redesign .meet-team-header { padding-right: 105px; }
}

@media (max-width: 600px) {
  .profile-page { padding-top: 15px; padding-bottom: 55px; }
  .back-link { margin-bottom: 17px; font-size: 14px; }
  .profile-hero { padding: 20px; border-radius: 13px; gap: 22px; box-shadow: none; }
  .profile-identity { align-items: flex-start; gap: 14px; }
  .profile-identity > .avatar { width: 65px; height: 65px; font-size: 25px; }
  .profile-identity h1 { font-size: clamp(26px, 6.4vw, 37px); margin-top: 8px; line-height: 1.12; }
  .profile-identity .eyebrow { font-size: 9px; }
  .profile-meta { gap: 8px; }
  .profile-meta > span:last-child { font-size: 9px; }
  .profile-actions { width: 100%; }
  .profile-actions .button { flex: 1 1 180px; min-height: 48px; font-size: 14px; }
  .profile-banner,
  .profile-banner img { height: 105px; max-height: 105px; }
  .profile-nav { gap: 26px; margin-top: 18px; }
  .profile-nav a { min-height: 58px; font-size: 14px; }
  .profile-layout { margin-top: 24px; gap: 24px; }
  .profile-main { padding: 24px 20px; }
  .profile-section { padding-bottom: 30px; margin-bottom: 30px; }
  .profile-section > h2 { font-size: 32px; }
  .profile-section .section-heading.compact { display: block; }
  .profile-section .section-heading.compact h2 { font-size: 30px; }
  .profile-section .section-heading > .text-link { margin-top: 8px; font-size: 14px; }
  .profile-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sidebar-card { padding: 25px; }
  .sidebar-card > p:not(.eyebrow) { font-size: 16px; }
  .social-link { font-size: 16px; }
  .channel-summary { padding: 20px; }
  .channel-summary > p:first-child { font-size: 16px; }
  .game-panel { padding: 20px; }
  .placeholder-panel { padding: 27px 20px; }
  .placeholder-panel h3 { font-size: 20px; }
  .schedule-row { padding: 17px; gap: 15px; }
  .schedule-row h3 { font-size: 17px; }
  .schedule-row p { font-size: 16px; }
  .schedule-date { flex-basis: 56px; font-size: 14px; }
  .embed-consent { padding: 24px 20px; }
  .embed-consent strong { font-size: 18px; }
  .media-card .media-info { padding: 18px; }
  .media-card h3 { font-size: 18px; }
  .live-toolbar { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px; }
  .live-toolbar .button { font-size: 14px; }
  .watch-card { padding: 18px; }
  .watch-card h2 { font-size: 28px; }
  #live-empty { padding: 36px 24px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-panel { padding: 30px; }
  .contact-symbol { font-size: 70px; margin-bottom: 24px; }
  .contact-panel h2 { font-size: 37px; }
  .contact-panel p:not(.eyebrow) { font-size: 16px; }
  .contact-note { text-align: left; }
  .application-intro { padding-block: 45px; }
  .application-copy h1 { font-size: clamp(39px, 10.5vw, 57px); }
  .application-copy > p:not(.eyebrow) { font-size: 16px; }
  .application-copy .application-lead { font-size: 21px !important; }
  .application-welcome { padding: 28px; }
  .application-welcome h2 { font-size: 35px; }
  .application-values { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: 48px; }
  .application-values article { padding-top: 22px; }
  .application-values h3 { font-size: 24px; }
  .application-section { padding-bottom: 48px; }
  .application-form-bar { padding: 22px; gap: 20px; }
  .application-form-bar strong { font-size: 20px; }
  .application-form-bar .button { width: 100%; font-size: 14px; }
  .application-form { height: 1200px; }
  .application-help { font-size: 16px; }
  .events-redesign .calendar-page { padding: 45px 0 55px; }
  .events-redesign .calendar-page > .container { width: calc(100% - 40px); }
  .events-redesign .meet-team-header { padding-right: 0; padding-bottom: 28px; }
  .events-redesign .calendar-header-flower { display: none; }
  .events-redesign .meet-team-title { font-size: 49px; }
  .events-redesign .meet-team-subtitle { font-size: 16px; }
  .calendar-section-title { font-size: 34px; }
  .calendar-event-card { padding: 23px; }
  .calendar-event-title { font-size: 30px; }
  .calendar-event-time { font-size: 16px; }
  .calendar-event-countdown-num { font-size: 31px; }
  .calendar-event-countdown-unit { padding-inline: 5px; }
  .calendar-auth-panel { padding: 24px; }
  .calendar-form-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-editor-panel { padding: 23px; }
  .calendar-setup-banner,
  .calendar-denied-banner,
  .calendar-key-banner { padding: 20px; }
}

@media (max-width: 360px) {
  .profile-identity { gap: 12px; }
  .profile-identity > .avatar { width: 50px; height: 50px; }
  .profile-hero,
  .profile-main { padding-inline: 16px; }
  .profile-identity h1 { font-size: 25px; }
  .contact-panel { padding: 25px; }
  .contact-panel h2 { font-size: 33px; }
  .application-welcome { padding: 24px; }
  .application-welcome h2 { font-size: 32px; }
  .application-form-bar { padding: 18px; }
  .calendar-event-card { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-discord,
  .btn-calendar-submit { transition: none; }
  .btn-discord:hover,
  .btn-calendar-submit:hover { transform: none; }
}

.sidebar-card:first-child :focus-visible,.contact-panel:not(:first-child) :focus-visible,.application-welcome :focus-visible{outline-color:var(--ink)}
