:root{
  --bg: #fff;
  --text: #050505;
  --muted: #7a7a7a;
  --line: #cfcfcf;
  --soft: #f5f5f3;
  --danger: #a0271d;

  --header-h: 58px;
  --kymwa-safe-top: env(safe-area-inset-top, 0px);
  --kymwa-header-total: calc(var(--header-h) + var(--kymwa-safe-top));
  --page-x: clamp(18px, 3.2vw, 52px);

  --century-col: clamp(116px, 18vw, 300px);
  --suffix-col: clamp(116px, 18vw, 300px);

  --year-size: clamp(84px, 13.2vw, 214px);
}

/* KYMWA — hide page scrollbar while preserving scroll */
html, body{
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}


*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body{
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea{
  font: inherit;
}

button{
  color: inherit;
}

a{
  color: inherit;
  text-decoration: none;
}

.site-header{
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--kymwa-header-total);
  padding:
    var(--kymwa-safe-top)
    var(--page-x)
    0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(12px);
}

.brand-lockup{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.brand{
  font-size: 13px;
  font-weight: 780;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-meaning{
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-button{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 730;
  letter-spacing: 0.08em;
}

.header-button.danger{
  color: var(--danger);
}

.timeline-page{
  padding-top: calc(var(--kymwa-header-total) + 28px);
}

.timeline{
  width: 100%;
  padding-bottom: max(30vh, 240px);
}

/* ========================================================
   YEAR
   19 | 49 -------------------- HISTORY

   - The first two digits and last two digits use separate rails.
   - Within the same century, the first two digits stay sticky.
   - Each year line starts at the last two digits and extends
     through the history area.
   - No extra divider between years.
======================================================== */

.century-group{
  position: relative;
  display: grid;
  grid-template-columns:
    var(--century-col)
    minmax(0, 1fr);
}

.century-rail{
  position: relative;
  grid-column: 1;
}

.century-sticky{
  position: sticky;
  top: calc(var(--kymwa-header-total) + 32px);
  padding-left: var(--page-x);
  padding-top: 22px;
  height: fit-content;
}

.century-number, .year-suffix{
  font-size: var(--year-size);
  font-weight: 790;
  line-height: 0.74;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.century-years{
  grid-column: 2;
  min-width: 0;
}

.year-section{
  position: relative;
  display: grid;
  scroll-margin-top: calc(var(--kymwa-header-total) + 36px);
  grid-template-columns:
    var(--suffix-col)
    minmax(0, 1fr);
  min-height: 420px;

  /* The line starts here, at the last-two-digits column. */
  border-top: 1px solid var(--line);
}

.suffix-rail{
  position: relative;
  min-width: 0;
}

.suffix-sticky{
  position: sticky;
  top: calc(var(--kymwa-header-total) + 32px);
  padding:
    22px
    clamp(16px, 2vw, 30px)
    42px
    0;
  height: fit-content;
}

.year-age{
  margin-top: 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.1em;
}

.year-content{
  min-width: 0;
  padding:
    clamp(62px, 8vw, 120px)
    var(--page-x)
    clamp(90px, 12vw, 170px)
    clamp(26px, 4vw, 72px);
}

.history-list, .people-list{
  display: grid;
}

.history-list{
  gap: 22px;
}

.history-item, .person-moment{
  max-width: 680px;
}

.history-meta, .person-meta{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.12em;
}

.history-title, .history-description{
  max-width: 48ch;
  line-height: 1.68;
}

.history-title{
  margin: 0;
  color: var(--text);
}

.history-description{
  margin: 4px 0 0;
  font-size: 16px;
}

.history-title-link{
  color: inherit;
  text-decoration: none;
}

.history-description{
  color: #3d3d3d;
}

.history-image, .person-image{
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  max-height: 560px;
  margin-top: 28px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

.history-source{
  display: inline-block;
  margin-top: 12px;
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.people-list{
  margin-top: 22px;
  gap: 12px;
}

.history-list + .people-list{
  margin-top: 12px;
}

.person-moment{
  padding-top: 0;
}



.person-image{
  max-width: 520px;
}

.own-actions{
  margin-top: 8px;
}

.edit-moment-button{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.09em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.timeline-empty{
  min-height: 100dvh;
  padding:
    calc(var(--header-h) + 80px)
    var(--page-x);
  display: flex;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
}

.floating-add{
  position: fixed;
  z-index: 45;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

/* ========================================================
   SHEETS
======================================================== */

.sheet-backdrop{
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgb(0 0 0 / 0.24);
  opacity: 0;
  transition: opacity 180ms ease;
}

.sheet-backdrop.is-visible{
  opacity: 1;
}

.sheet{
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 0;
  width: min(650px, 100%);
  max-height: 90dvh;
  overflow: auto;
  padding:
    10px
    clamp(20px, 5vw, 40px)
    max(28px, env(safe-area-inset-bottom));
  background: #fff;
  transform: translate(-50%, 105%);
  transition: transform 220ms ease;
}

.sheet.is-open{
  transform: translate(-50%, 0);
}

.sheet-handle{
  width: 38px;
  height: 4px;
  margin: 2px auto 24px;
  border-radius: 999px;
  background: #c7c7c7;
}

.sheet-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.sheet-kicker{
  margin: 0 0 10px;
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.12em;
}

.sheet-header h2{
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.icon-button{
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 30px;
}

.sheet-form{
  display: grid;
  gap: 24px;
}

.field{
  display: grid;
  gap: 8px;
}

.field > span{
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.1em;
}

.field small{
  color: var(--muted);
  font-size: 8px;
}

.field input{
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.photo-picker{
  min-height: 140px;
  padding: 20px;
  display: grid;
  place-items: center;
  background: var(--soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.08em;
}

.photo-preview img{
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.photo-preview .header-button{
  margin-top: 10px;
}

.primary-button, .secondary-button{
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #111;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.primary-button{
  background: #111;
  color: #fff;
}

.secondary-button{
  background: #fff;
  color: #111;
}

.secondary-button.danger{
  color: var(--danger);
  border-color: var(--danger);
}

.form-actions{
  display: flex;
  gap: 10px;
}

.form-actions > *{
  flex: 1;
}

.form-status{
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

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

.upgrade-grid > div{
  padding: 20px 0;
  display: grid;
  gap: 8px;
}

.upgrade-grid > div + div{
  padding-left: 20px;
}

.upgrade-grid strong{
  font-size: 17px;
}

.upgrade-grid span{
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 760px) {
  :root{
    --header-h: 54px;
    --page-x: 14px;

    --century-col: 24vw;
    --suffix-col: 24vw;

    --year-size: clamp(62px, 19vw, 92px);
  }

  .header-actions{
    gap: 10px;
  }

  .brand-meaning{
    display: none;
  }

  .century-sticky, .suffix-sticky{
    top: calc(var(--kymwa-header-total) + 32px);
    padding-top: 16px;
  }

  .century-sticky{
    padding-left: 10px;
  }

  .suffix-sticky{
    padding-right: 8px;
  }

  .year-section{
    min-height: 380px;
  }

  .year-content{
    padding:
      52px
      14px
      78px
      16px;
  }

  .history-title{
    font-size: clamp(25px, 8vw, 40px);
  }

  .person-title{
    font-size: 21px;
  }

  .history-description{
    font-size: 13px;
  }

  .people-list{
    margin-top: 26px;
    gap: 12px;
  }

  .history-list + .people-list{
    margin-top: 12px;
  }

  .floating-add{
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}


/* KYMWA v8 — keep admin-history and user text exactly the same size */
.history-title, .person-title{
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.history-title-link, .history-title-link:link, .history-title-link:visited, .history-title-link:hover, .history-title-link:active{
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 680px) {
  .history-title{
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }

  .person-title{
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.025em;
  }
}


/* KYMWA account */
.account-actions{
  grid-template-columns: 1fr 1fr;
}

.account-summary{
  display: grid;
  gap: 8px;
  padding: 8px 0 26px;
}

.account-summary-label{
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
}

.account-summary strong{
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}

.account-summary span:last-child{
  color: var(--muted);
  font-size: 11px;
}

.tier-list{
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.tier-list > div{
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 20px;
  row-gap: 4px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.tier-list > div > span{
  grid-column: 2;
}

.tier-list strong{
  font-size: 10px;
  letter-spacing: .06em;
}

.tier-list span{
  color: var(--muted);
  font-size: 11px;
}

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


/* KYMWA v10 — timeline lazy loading */
.timeline-loader{
  width: 100%;
  height: 1px;
}

.timeline-loader.is-loading{
  height: 56px;
}

.timeline-loader.is-loading::after{
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 18px auto;
  border: 1px solid var(--line);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: kymwa-spin .7s linear infinite;
}

@keyframes kymwa-spin {
  to{
    transform: rotate(360deg);
  }
}


/* KYMWA v12 — consistent moment photo frame */
.person-image, .moment-photo, .timeline img[data-moment-photo]{
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
}



/* KYMWA v15 — release hardening */
.field-counter{
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-align: right;
}

.account-preserve-note{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .03em;
}

.primary-button:disabled, .secondary-button:disabled, .header-button:disabled{
  opacity: .45;
  pointer-events: none;
}

.year-more-button{
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  cursor: pointer;
}

.year-more-button:hover{
  color: var(--text);
}

.person-moment[data-moment-id]{
  scroll-margin-top: 92px;
}



/* KYMWA v16 — privacy, recovery, share */
.visibility-field{
  margin: 0;
  padding: 0;
  border: 0;
}

.visibility-field legend{
  margin-bottom: 10px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
}

.visibility-field label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
  font-size: 11px;
  font-weight: 700;
}

.visibility-field small{
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.save-recovery{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.save-recovery[hidden]{
  display: none;
}

.network-banner{
  position: fixed;
  z-index: 90;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  color: var(--text);
  font-size: 9px;
  text-align: center;
  letter-spacing: .04em;
}

.network-banner[hidden]{
  display: none;
}

.person-moment.is-private{
  opacity: .74;
}



/* KYMWA v22.2 — scroll stability
   Do not virtualize whole year sections: their real heights are needed by
   sticky year rails and Safari scroll positioning. */
.person-image, .history-image{
  content-visibility: auto;
}

.person-image{
  aspect-ratio: 12 / 5;
}

.timeline-loader{
  overflow-anchor: none;
}


/* ========================================================
   KYMWA ADMIN — v18
======================================================== */











































.event-form{
  display: grid;
  gap: 24px;
}







































































































.event-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
}

.event-form-grid .wide{
  grid-column: 1 / -1;
}







































































































@media (max-width: 760px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .event-form-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-form-grid .wide{
    grid-column: auto;
  }

  

  

  

  
}

@media (max-width: 480px) {
  

  

  

  

  

  

  

  
}


/* KYMWA v19 — event location */


@media (max-width: 680px) {
  
}








/* KYMWA v19.7 — fixed year digit cells */
:root{
  --year-digit-step: calc(var(--year-size) * 0.59);
}

/*
  Every numeral occupies an identical cell.
  The visible rhythm therefore stays fixed regardless of whether
  the year contains narrow numerals such as 1 or wide numerals such as 8.
*/
.century-number, .year-suffix{
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.year-digits{
  display: grid;
  grid-template-columns:
    var(--year-digit-step)
    var(--year-digit-step);
  width: calc(var(--year-digit-step) * 2);
}

.year-digit{
  display: block;
  width: var(--year-digit-step);
  text-align: center;
}

/*
  The suffix rail begins exactly two digit-steps after the first digit rail,
  so the 2→0, 0→2 and 2→6 center intervals are identical.
*/
:root{
  --century-col: calc(
    var(--page-x) +
    (var(--year-digit-step) * 2)
  );
}

.century-sticky{
  padding-left: var(--page-x);
}

.year-section{
  column-gap: 0;
}

.century-rail, .suffix-rail{
  margin: 0;
  padding-right: 0;
}

@media (max-width: 760px) {
  :root{
    --century-col: calc(
      10px +
      (var(--year-digit-step) * 2)
    );
  }

  .century-sticky{
    padding-left: 10px;
  }

  .suffix-sticky{
    padding-left: 0;
  }
}


/* KYMWA v20 — permanent year-grid alignment model */

/*
  YEAR GEOMETRY
  -------------
  A year is four equal digit cells:
      [1][2][3][4]

  The century rail owns cells 1–2.
  The suffix rail owns cells 3–4.

  AGE uses the suffix rail itself as its alignment box.
  Therefore:
    AGE right edge = suffix box right edge
  and the content column begins from that same structural boundary.

  No numeral-specific offsets or per-year patches are used.
*/

:root{
  --year-digit-step: calc(var(--year-size) * 0.59);
  --year-pair-width: calc(var(--year-digit-step) * 2);
  --year-full-width: calc(var(--year-digit-step) * 4);
}

.year-digits{
  display: grid;
  grid-template-columns:
    repeat(2, var(--year-digit-step));
  width: var(--year-pair-width);
}

.year-digit{
  display: flex;
  width: var(--year-digit-step);
  align-items: baseline;
  justify-content: center;
  text-align: center;
}

.century-number, .year-suffix{
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/*
  Both year halves are adjacent with no artificial inter-pair spacing.
  Their cell centers define the visual rhythm.
*/
.year-section{
  column-gap: 0;
}

.century-rail, .suffix-rail{
  margin: 0;
  padding-right: 0;
}

/*
  AGE belongs to the two-cell suffix rail.
  It fills exactly the same width as the final two digits and aligns right.
  This makes its right edge identical to the structural end of the year.
*/
.year-age{
  box-sizing: border-box;
  width: var(--year-pair-width);
  max-width: var(--year-pair-width);
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: right;
  justify-self: start;
}

/*
  The suffix column starts immediately after the century pair.
  The content boundary is therefore derived from the same year geometry.
*/
:root{
  --century-col: calc(
    var(--page-x) +
    var(--year-pair-width)
  );
}

.century-sticky{
  padding-left: var(--page-x);
}

.suffix-sticky{
  padding-left: 0;
}

@media (max-width: 760px) {
  :root{
    --century-col: calc(
      10px +
      var(--year-pair-width)
    );
  }

  .century-sticky{
    padding-left: 10px;
  }

  .suffix-sticky{
    padding-left: 0;
  }
}






/* KYMWA v20.4 — header is always paintable */
#birth-year-button, #plan-button{
  visibility: visible;
}


/* ========================================================
ADMIN · RECORD MANAGEMENT
======================================================== */

































@media (max-width: 680px) {
  

  

  

  

  

  
}


/* KYMWA v21.1 — account profile layout */
#account-signed-in:not([hidden]){
  display: grid;
  gap: 0;
}

.account-summary{
  padding: 4px 0 18px;
}

.account-section{
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.account-section-heading{
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.account-section-heading strong{
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.account-section-heading span{
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.account-plus-section{
  display: grid;
  gap: 8px;
}

.account-signout-section .secondary-button, .account-id-change-section .secondary-button{
  width: 100%;
}

#account-id-change-form.account-id-change-section{
  gap: 14px;
}

#account-id-change-form .field{
  gap: 5px;
}

#account-id-change-form .field input{
  padding-top: 10px;
  padding-bottom: 10px;
}

#account-id-change-form .form-status, .account-plus-section .form-status{
  min-height: 0;
}

#account-id-change-form .form-status:empty, .account-plus-section .form-status:empty{
  display: none;
}

.account-signout-section{
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

#account-id-change-button, #sign-out-button{
  min-height: 46px;
}

.tier-list{
  margin-top: 22px;
}


/* ========================================================
SPONSORED CONTENT / CAMPAIGNS / REPORTS
======================================================== */
.history-sponsored-label{
  margin: 0 0 8px;
  color: #777;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .04em;
}
.history-item.is-sponsored{ position: relative; }












.report-page{
  background: #fff;
  color: #111;
}

.report-shell{
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.report-brand{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: .11em;
}

.report-brand a{
  color: inherit;
  text-decoration: none;
}

.report-content{
  padding-top: clamp(42px, 6vw, 68px);
}

.report-hero{
  max-width: 900px;
}

.report-hero-label{
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.report-hero h1{
  max-width: 880px;
  margin: 0;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.055em;
}

.report-hero-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .07em;
}

.report-hero-link{
  margin-top: 18px;
}

.report-destination-link{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #111;
  color: #111;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: .08em;
  text-decoration: none;
}

.report-metrics{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(42px, 6vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-metrics > div{
  min-width: 0;
  padding: 20px 20px 22px;
  border-right: 1px solid var(--line);
}

.report-metrics > div:first-child{
  padding-left: 0;
}

.report-metrics > div:last-child{
  border-right: 0;
  padding-right: 0;
}

.report-metrics span, .report-summary-meta span, .report-insight > span, .report-moment-stats span, .report-method-grid span{
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 740;
  line-height: 1.25;
  letter-spacing: .085em;
}

.report-metrics > div > strong{
  display: block;
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.045em;
}

.report-metrics small{
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.report-section{
  margin-top: 58px;
}

.report-section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: .075em;
}

.report-section-head strong{
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.report-summary{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 48px;
  padding-top: 24px;
}

.report-summary > p{
  max-width: 680px;
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  letter-spacing: -.025em;
}

.report-summary > p strong{
  font-weight: 760;
}

.report-summary-meta{
  display: grid;
  gap: 16px;
}

.report-summary-meta > div{
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.report-summary-meta strong{
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.report-insight-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.report-insight{
  min-width: 0;
  padding: 22px 20px 24px;
  border-right: 1px solid var(--line);
}

.report-insight:first-child{
  padding-left: 0;
}

.report-insight:last-child{
  border-right: 0;
  padding-right: 0;
}

.report-insight > strong{
  display: block;
  margin-top: 10px;
  overflow: hidden;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
}

.report-insight p{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.report-chart{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4px, 1fr);
  align-items: end;
  gap: clamp(2px, .45vw, 6px);
  height: 200px;
  padding-top: 24px;
}

.report-bar-wrap{
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.report-bar{
  width: 100%;
  min-height: 3px;
  background: #111;
}

.report-chart-axis{
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
}

.report-empty-chart{
  display: grid;
  place-items: center;
  height: 150px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}

.report-table-wrap{
  overflow-x: auto;
  margin-top: 24px;
  -webkit-overflow-scrolling: touch;
}

.report-table{
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.report-table th, .report-table td{
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.report-table th:first-child, .report-table td:first-child{
  padding-left: 0;
  text-align: left;
}

.report-table th:last-child, .report-table td:last-child{
  padding-right: 0;
}

.report-table th{
  color: var(--muted);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: .075em;
}

.report-table td{
  font-size: 11px;
  font-weight: 620;
}

.report-moments{
  border-bottom: 1px solid var(--line);
}

.report-moments article{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.report-moments article:last-child{
  border-bottom: 0;
}

.report-moment-copy{
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  min-width: 0;
}

.report-moment-copy > span{
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.report-moment-copy > strong{
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.report-moment-stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.report-moment-stats > div{
  min-width: 0;
}

.report-moment-stats strong{
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
}

.report-empty-copy{
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.report-method-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.report-method-grid > div{
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.report-method-grid p{
  max-width: 430px;
  margin: 6px 0 0;
  color: #444;
  font-size: 11px;
  line-height: 1.55;
}

.report-footer{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 68px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .075em;
}

.report-loading, .report-error{
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.report-error strong{
  color: #111;
  font-size: 14px;
}

.report-error p{
  margin: 8px 0 0;
}

@media (max-width: 800px) {
  

  

  

  .report-shell{
    width: min(100% - 28px, 1080px);
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .report-content{
    padding-top: 36px;
  }

  .report-hero h1{
    font-size: clamp(34px, 10vw, 52px);
  }

  .report-metrics{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
  }

  .report-metrics > div, .report-metrics > div:first-child, .report-metrics > div:last-child{
    padding: 18px 14px;
    border-bottom: 1px solid var(--line);
  }

  .report-metrics > div:nth-child(odd){
    padding-left: 0;
  }

  .report-metrics > div:nth-child(even){
    border-right: 0;
    padding-right: 0;
  }

  .report-metrics > div:nth-child(3), .report-metrics > div:nth-child(4){
    border-bottom: 0;
  }

  .report-section{
    margin-top: 44px;
  }

  .report-section-head{
    align-items: flex-start;
  }

  .report-summary{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .report-insight-grid{
    grid-template-columns: 1fr;
  }

  .report-insight, .report-insight:first-child, .report-insight:last-child{
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-insight:last-child{
    border-bottom: 0;
  }

  .report-chart{
    height: 170px;
  }

  .report-moments article{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  .report-moment-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .report-method-grid{
    grid-template-columns: 1fr;
  }

  .report-footer{
    display: grid;
    gap: 6px;
    margin-top: 52px;
  }
}

/* ========================================================
   KYMWA ADMIN — event image upload + iPhone form focus
======================================================== */
















@media (max-width: 680px) {
  /* iOS Safari automatically zooms focused controls below 16px. */
  

  

  
}


/* ========================================================
KYMWA ADMIN — USER LIST
======================================================== */





















































@media (max-width: 680px) {
  

  

  

  

  
}



/* ========================================================
KYMWA ADMIN — USER ACTIVITY ANALYTICS
======================================================== */

















@media (max-width: 680px) {
  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — ANALYTICS DATE RANGE
======================================================== */





























@media (max-width: 760px) {
  

  

  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — ACTIVE USER ENGAGEMENT
======================================================== */



















@media (max-width: 900px) {
  

  

  

  

  
}

@media (max-width: 600px) {
  

  

  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — CONVERSION FUNNEL
======================================================== */























@media (max-width: 760px) {
  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — PLUS ANALYTICS
======================================================== */



































@media (max-width: 760px) {
  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — MOMENT CONTENT ANALYTICS
======================================================== */















































@media (max-width: 800px) {
  

  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — ADVERTISING ANALYTICS
======================================================== */





























































@media (max-width: 800px) {
  

  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — OPERATIONS ANALYTICS
======================================================== */

































@media (max-width: 900px) {
  

  
}

@media (max-width: 600px) {
  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — STEP 10 INFORMATION HIERARCHY
======================================================== */

















@media (max-width: 600px) {
  

  
}


/* ========================================================
KYMWA CAMPAIGN REPORT — FINAL COMPACT PERFORMANCE UI
======================================================== */

.page-report{
  min-height: 100dvh;
}

.report-chart-dual{
  height: 92px;
  gap: 2px;
}

.report-bar-wrap-dual{
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 100%;
}

.report-bar-wrap-dual .report-bar{
  position: static;
  flex: 1 1 0;
  width: auto;
}

.report-bar-impressions{
  opacity: .26;
}

.report-bar-clicks{
  opacity: .86;
}

.report-chart-legend{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
}

.report-chart-legend span{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.report-chart-legend i{
  display: inline-block;
  width: 7px;
  height: 7px;
  background: currentColor;
}

.report-chart-legend-impressions{
  opacity: .26;
}

.report-chart-legend-clicks{
  opacity: .86;
}

.report-ranking-list{
  border-top: 1px solid var(--line);
}

.report-ranking-row{
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.report-ranking-number{
  color: var(--muted);
  font-size: 9px;
}

.report-ranking-copy{
  min-width: 0;
}

.report-ranking-copy small{
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.report-ranking-copy strong{
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-ranking-stats{
  text-align: right;
}

.report-ranking-stats strong{
  display: block;
  font-size: 10px;
}

.report-ranking-stats span{
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.report-summary-meta{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-section:has(.report-chart-dual){
  padding-bottom: 4px;
}

@media (max-width: 680px) {
  .report-chart-dual{
    height: 76px;
  }

  .report-chart-axis{
    margin-top: 5px;
    font-size: 8px;
  }

  .report-ranking-row{
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px 9px;
    min-height: 52px;
    padding: 8px 0;
  }

  .report-ranking-stats{
    grid-column: 2;
    text-align: left;
  }

  .report-summary-meta{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ========================================================
KYMWA ADMIN — UNIFIED SEARCH UI
======================================================== */

























@media (max-width: 680px) {
  

  

  

  
}


/* ========================================================
KYMWA ADMIN — UNIFIED FILTER / DATE CONTROLS
======================================================== */

/* Shared filter groups */












/* Analytics date range */
















/* Toolbar alignment */






/* Keep management actions visually distinct from filters/search. */


/* Mobile: same component language, touch-sized, no broken wrapping. */
@media (max-width: 680px) {
  

  

  

  

  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — UNIFIED CARDS / TABLES / ACTIONS
======================================================== */

/* Shared card rhythm */




/* Consistent card interiors */




/* Unified metric grid */








/* Section headers */






/* Unified table language */












/* Primary vs secondary actions */












/* Management list rows */




/* Empty/status messages */


/* Mobile hierarchy */
@media (max-width: 680px) {
  

  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — FINAL SECTION RHYTHM / PRIORITY
======================================================== */

/* Whole admin page rhythm */






/* Keep the first operational block visually dominant without oversizing it */




/* Internal analytics groups */










/* Prevent excessive vertical stacking inside cards */




/* Toolbars stay close to what they control */


/* Lists and tables should not visually detach from their controls */


/* Editing areas are secondary to status/list content */


/* Status text belongs close to its action */


/* Bottom system/admin actions need more separation from analytics */
#system-section, #logs-section{
  padding-top: 2px;
}

/* Desktop width control for cleaner scanning */
@media (min-width: 681px) {
  

  
}

/* Mobile rhythm: tighter sections, same hierarchy */
@media (max-width: 680px) {
  

  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — SECTION NAVIGATION
======================================================== */















/* The navigation already separates the first section from the page header. */


@media (max-width: 680px) {
  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — ACTIVE SECTION NAVIGATION
======================================================== */







@media (max-width: 680px) {
  

  
}


/* ========================================================
KYMWA ADMIN — UNIFIED FORMS / EDITORS
======================================================== */

/* Shared form rhythm */
.event-form{
  gap: 20px;
}

.event-form-grid{
  gap: 16px 18px;
}

/* Shared field language */












/* Checkbox */




/* File upload */






/* Editors */






/* Footer actions */




/* Text actions are tertiary actions only */






/* System inline controls use same input/button geometry */






/* Confirmation dialog form */




/* Mobile */
@media (max-width: 680px) {
  .event-form{
    gap: 17px;
  }

  .event-form-grid{
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .event-form-grid .wide{
    grid-column: auto;
  }

  

  

  

  

  

  

  

  

  

  

  

  
}


/* ========================================================
KYMWA ADMIN — UNIFIED STATUS / EMPTY / FEEDBACK STATES
======================================================== */

/* Shared feedback language */








/* Empty areas should read as intentional, not broken. */


/* Loading state */




@keyframes admin-loading-spin {
  to{
    transform: rotate(360deg);
  }
}

/* Inline state badges */








/* Keep feedback close to controls, not floating between sections. */


/* System/audit messages remain compact. */


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  
}

@media (max-width: 680px) {
  

  

  
}


/* ========================================================
KYMWA ADMIN — MOBILE TABLE READABILITY
======================================================== */

/* Desktop stays compact and fully aligned. */




/* Long text cells may still wrap where useful. */


/* Numeric columns read more cleanly when aligned right. */


/* Mobile: keep actual table structure, but make horizontal reading obvious. */
@media (max-width: 680px) {
  

  

  

  

  /* Keep the identity column visible while horizontally scrolling. */
  

  

  

  /* Slightly emphasize identifiers without making them look like buttons. */
  

  /* Dates and counts stay compact and scan-friendly. */
  

  /* Give the final column breathing room near the screen edge. */
  
}


/* ========================================================
KYMWA ADMIN — FINAL HEADER / PAGE SHELL
======================================================== */

/* Keep the admin page centered and visually consistent. */


/* Header hierarchy */








/* Keep secondary header actions quieter than primary page controls. */


/* Main content starts with a deliberate gap below header. */


/* Section titles share the same visual hierarchy. */




/* Kicker labels stay subtle. */


/* Avoid clipped anchor targets beneath sticky navigation. */


/* Tablet */
@media (max-width: 960px) {
  
}

/* Mobile */
@media (max-width: 680px) {
  

  

  

  

  

  

  

  
}

/* Very narrow phones */
@media (max-width: 390px) {
  

  

  
}


/* ========================================================
KYMWA ADMIN — FINAL INTERACTION / ACCESSIBILITY STATES
======================================================== */

/* Keyboard focus: same visual language everywhere */


/* Mouse focus remains clean */


/* Disabled controls */




/* Busy actions */


/* Clickable table rows */




/* Links inside management content */


/* Touch devices: remove sticky hover appearance */
@media (hover: none) {
  

  
}

/* Respect reduced motion across navigation and UI */
@media (prefers-reduced-motion: reduce) {
  
}


/* ========================================================
KYMWA ADMIN — DAILY BAR WIDTH CONSISTENCY
Selected-period / Moment performance charts
======================================================== */

/*
  The selected-period chart previously used a fixed 30-column grid,
  while Moment performance used flexible day columns.
  On mobile this made the same daily data look like two different
  chart systems. Both now use the same flex-column geometry.
*/





/* Preserve the selected-period chart's existing label row. */


/* Moment bars use the same full column width as selected-period bars. */


@media (max-width: 680px) {
  

  
}


/* ========================================================
KYMWA MOBILE — MOMENT TEXT / PHOTO GAP
======================================================== */

/*
  User Moment photos inherited the global 28px image margin.
  On mobile that made the photo feel detached from the Moment text.
  Keep event/history image spacing unchanged and tighten only user Moments.
*/
@media (max-width: 680px) {
  .person-moment .person-image, .person-moment .moment-photo, .person-moment img[data-moment-photo]{
    margin-top: 12px;
  }
}


/* ========================================================
KYMWA — INFO HEADER / SHEET
======================================================== */

.header-info-button{
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.header-info-button:focus-visible{
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.header-info-dot{
  position: absolute;
  top: 1px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.info-sheet{
  overflow-y: auto;
}

.info-filters{
  display: flex;
  gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.info-filters::-webkit-scrollbar{
  display: none;
}

.info-filter{
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  cursor: pointer;
}

.info-filter:first-child{
  padding-left: 0;
  padding-right: 14px;
}

.info-filter.is-active{
  color: var(--text);
}

.info-post-list{
  min-height: 120px;
}

.info-post{
  border-bottom: 1px solid var(--line);
}

.info-post:first-child{
  border-top: 1px solid var(--line);
}

.info-post summary{
  position: relative;
  display: grid;
  gap: 7px;
  padding: 16px 24px 16px 0;
  list-style: none;
  cursor: pointer;
}

.info-post summary::-webkit-details-marker{
  display: none;
}

.info-post summary::after{
  content: "+";
  position: absolute;
  top: 17px;
  right: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.info-post[open] summary::after{
  content: "−";
}

.info-post summary strong{
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.info-post summary time{
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .04em;
}

.info-post-meta{
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .08em;
}

.info-post-pin{
  color: var(--text);
}

.info-post-body{
  padding: 0 0 20px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.info-empty{
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.info-status{
  margin-top: 12px;
}

.account-summary--guest{
  margin-bottom: 22px;
}

/* ========================================================
KYMWA ADMIN — INFO MANAGEMENT
======================================================== */















@media (max-width: 680px) {
  .header-actions{
    gap: 7px;
  }

  .header-info-button{
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .header-info-dot{
    top: 1px;
    right: 1px;
  }

  .info-filter{
    min-height: 44px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .info-post summary{
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .info-post summary strong{
    font-size: 13px;
  }

  .info-post-body{
    padding-bottom: 18px;
    font-size: 13px;
    line-height: 1.7;
  }

  

  
}


/* ========================================================
KYMWA HEADER — GLOBAL ALIGNMENT FINAL
======================================================== */

.header-actions{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  white-space: nowrap;
  line-height: 1;
}

.header-actions > *{
  flex: 0 0 auto;
}

.header-actions > * + *{
  position: relative;
  margin-left: 18px;
}

.header-actions > * + *::before{
  content: "·";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.header-button, .header-info-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  line-height: 1;
}

.header-info-button{
  position: relative;
  width: auto;
  min-width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .055em;
  cursor: pointer;
}

.header-info-button:focus-visible{
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.header-info-dot{
  position: absolute;
  top: 4px;
  right: -5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 680px) {
  .site-header{
    align-items: center;
  }

  .header-actions{
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    white-space: nowrap;
  }

  .header-actions > * + *{
    margin-left: 15px;
  }

  .header-actions > * + *::before{
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
  }

  .header-button, .header-info-button{
    min-height: 32px;
    height: 32px;
    line-height: 1;
  }

  .header-info-button{
    min-width: 35px;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .055em;
  }

  .header-info-dot{
    top: 4px;
    right: -4px;
  }
}

/* INFO sheet — global English presentation */

.info-post-body{
  word-break: normal;
  overflow-wrap: anywhere;
}

.info-empty{
  letter-spacing: .02em;
}


/* ========================================================
KYMWA HEADER — EXACT MENU TYPOGRAPHY MATCH
======================================================== */

.site-header .header-actions .header-button, .site-header .header-actions .header-info-button{
  width: auto;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 10px;
  font-weight: 760;
  font-style: normal;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

@media (max-width: 680px) {
  .site-header .header-actions .header-button, .site-header .header-actions .header-info-button{
    width: auto;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 10px;
    font-weight: 760;
    line-height: 1;
    letter-spacing: .055em;
  }
}


/* ========================================================
KYMWA SHEETS — BACKGROUND SCROLL LOCK
======================================================== */

html.sheet-open, body.sheet-open{
  overflow: hidden;
  overscroll-behavior: none;
}

body.sheet-open{
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.sheet{
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.info-sheet{
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}


/* ========================================================
KYMWA TIMELINE — EVENT / SPONSORED / MOMENT TITLE MATCH
======================================================== */

/*
  PC: .history-title and .person-title already share the same typography.
  Mobile: the previous override made .history-title 16px while
  .person-title was 19px. Keep every Timeline title at the same size.
*/

@media (max-width: 680px) {
  .history-title, .person-title{
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.025em;
  }
}


/* ========================================================
KYMWA HEADER — INFO UNREAD DOT GAP
======================================================== */

.header-info-dot{
  right: -2px;
}

@media (max-width: 680px) {
  .header-info-dot{
    right: -2px;
  }
}


/* ========================================================
KYMWA ADMIN — DAILY BAR THICKNESS FINAL
======================================================== */

/*
  Keep each date column flexible so dates remain positioned across
  the full selected period, but cap only the visible bar width.
  This prevents 1–2 data points from becoming oversized bars.
*/







@media (max-width: 680px) {
  
}


/* ========================================================
KYMWA PUBLIC — GLOBAL META LETTER SPACING
======================================================== */

/*
  Normalize compact metadata typography globally.
  This applies to any country / region value (GLOBAL, KOREA,
  JAPAN, USA, FRANCE, CANADA, etc.) through the shared meta
  selectors rather than targeting individual words.

  Signature advertising labels keep their existing rules:
  SPONSORED = .04em
  partner / sponsor badge = .03em
*/

.history-meta, .person-meta, .event-meta, .moment-meta, .age-label, .age-value, [data-event-meta], [data-moment-meta]{
  letter-spacing: .04em;
}

/* Preserve KYMWA advertising signature spacing. */
.sponsored-label, [data-sponsored-label]{
  letter-spacing: .04em;
}

.partner-badge, .sponsor-badge, [data-partner-badge], [data-sponsor-badge]{
  letter-spacing: .03em;
}

@media (max-width: 680px) {
  .history-meta, .person-meta, .event-meta, .moment-meta, .age-label, .age-value, [data-event-meta], [data-moment-meta]{
    letter-spacing: .04em;
  }
}


/* ========================================================
INFO — YOUTUBE MEDIA + AUTHORED LINE BREAKS
======================================================== */

.info-text-block{
  margin: 0;
  white-space: normal;
}

.info-youtube{
  width: 100%;
  max-width: 720px;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.info-youtube iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.info-youtube.is-shorts{
  width: min(100%, 320px);
  max-width: 320px;
  aspect-ratio: 9 / 16;
}

@media (max-width: 680px) {
  .info-youtube{
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .info-youtube.is-shorts{
    width: min(82vw, 300px);
    max-width: 300px;
  }
}


/* ========================================================
INFO — EXACT AUTHORED LINE SPACING
======================================================== */

.info-post-body .info-text-line, .info-post-body .info-line-gap, .info-post-body .info-youtube{
  margin-top: 0;
  margin-bottom: 0;
}

.info-post-body .info-text-line{
  min-height: 1.75em;
}

.info-post-body .info-line-gap{
  display: block;
  width: 100%;
  height: 1.75em;
  min-height: 1.75em;
}

.info-post-body .info-youtube{
  margin: 0;
}

/* ========================================================
KYMWA TIMELINE — END SLOGAN
- Final-year Event/Moment layout is intentionally untouched.
- Spacing belongs only to the ending slogan itself.
======================================================== */

.timeline-end-slogan{
  max-width: 48ch;
  margin-top: clamp(240px, 22vw, 288px);
  margin-bottom: clamp(144px, 14vw, 184px);
  color: var(--text);
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

@media (max-width: 680px) {
  .timeline-end-slogan{
    margin-top: 216px;
    margin-bottom: 128px;
    font-size: 19px;
    font-weight: 720;
    line-height: 1.35;
    letter-spacing: -0.025em;
  }
}


/* ========================================================
KYMWA — MINIMAL ACCOUNT SHEET
======================================================== */

.account-sheet-header{
  align-items: center;
}

.account-sheet-header > h2{
  margin: 0;
}

.account-login-form{
  padding-top: 4px;
}

.account-summary.account-summary--minimal{
  display: grid;
  gap: 5px;
  padding: 6px 0 24px;
}

.account-summary.account-summary--minimal strong{
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.account-summary.account-summary--minimal > span:not([hidden]){
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.account-manage{
  border-top: 1px solid var(--line);
}

.account-manage > summary{
  position: relative;
  padding: 17px 24px 17px 0;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.account-manage > summary::-webkit-details-marker{
  display: none;
}

.account-manage > summary::after{
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.account-manage[open] > summary::after{
  content: "−";
}

.account-manage-content{
  padding: 4px 0 0;
}

#account-id-change-form.account-id-change-section{
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}

.account-signout-section{
  padding: 0;
  border-top: 1px solid var(--line);
}

.account-text-action{
  width: 100%;
  padding: 17px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.account-text-action:hover{
  color: var(--text);
}

.account-plus-section[hidden]{
  display: none !important;
}

/* KYMWA BIO additions. The base file above is the original KYMWA design system. */
.bio-story-list{
  display: grid;
  gap: clamp(42px, 6vw, 88px);
  width: min(100%, 820px);
}
.bio-story{
  display: grid;
  gap: 0;
}
.bio-owner-meta{
  margin-top: clamp(22px, 3vw, 38px);
}
.bio-story-date{
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .08em;
}
.bio-story-copy{
  max-width: 760px;
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 600;
  line-height: 1.68;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.bio-story-image{
  width: 100%;
  max-width: 680px;
  border-radius: 0;
}
.bio-connector{
  display: inline;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
}
button.bio-connector{
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.bio-connector-static{
  border-bottom: 0;
  cursor: default;
}
.bio-owner-meta{
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}
.bio-edit-story{
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.bio-move-up, .bio-move-down{
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
  cursor: pointer;
}
.bio-move-up:hover, .bio-move-down:hover{
  color: var(--text);
}
.bio-photo-preview{
  display: grid;
  gap: 12px;
}
.bio-photo-preview img{
  width: min(100%, 560px);
  max-height: 420px;
  object-fit: cover;
}
.bio-info-copy{
  display: grid;
  gap: 24px;
  padding: 0 var(--sheet-x, 24px) max(34px, env(safe-area-inset-bottom));
}
.bio-info-post{
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.bio-info-post small{ color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.bio-info-post strong{ font-size: 16px; }
.bio-info-post p{ margin: 0; line-height: 1.65; }
.bio-account-actions{ display: grid; justify-items: start; gap: 16px; }

.empty-state{ padding: clamp(120px, 16vh, 220px) var(--page-x); display: grid; gap: 12px; }
.empty-state strong{ font-size: clamp(20px, 3vw, 44px); letter-spacing: -0.04em; }
.empty-state span{ color: var(--muted); }
@media (max-width: 720px) {
  .bio-story-copy{ font-size: 14px; line-height: 1.7; letter-spacing: -0.02em; }
  .bio-story-list{ gap: 44px; }
  .bio-story-image{ width: 100%; max-width: none; }
  .bio-owner-meta{ flex-wrap: wrap; }
}
