body.otd-app-route { background: #f7f7f7; }
body.otd-app-route .otd-main { min-height: 100vh; }

.otd-login-shell { min-height: 100vh; display: grid; grid-template-columns: 42% 58%; background: #fff; }
.otd-login-art { position: relative; overflow: hidden; background: #171717; }
.otd-login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 0 46%, rgba(255,255,255,.10) 47% 58%, transparent 59%),
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.10), transparent 25%),
    radial-gradient(circle at 75% 78%, rgba(255,255,255,.06), transparent 32%),
    linear-gradient(180deg, #242424, #080808);
  transform: scale(1.08);
}
.otd-login-art__brand { position: absolute; z-index: 2; top: 42px; left: 44px; color: #fff; font-size: 27px; font-weight: 700; letter-spacing: -.035em; }
.otd-login-art__copy { position: absolute; z-index: 2; left: 44px; right: 44px; bottom: 52px; color: #fff; }
.otd-login-art__copy span { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.otd-login-art__copy h2 { max-width: 520px; margin: 18px 0 0; font-family: var(--otd-font-display); font-size: clamp(40px, 5vw, 78px); line-height: .98; font-weight: 500; letter-spacing: -.035em; }
.otd-login-panel { display: flex; align-items: center; justify-content: center; padding: 60px 8vw; }
.otd-login-card { width: min(470px, 100%); }
.otd-login-card__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.otd-login-card h1 { margin: 18px 0 10px; font-size: clamp(42px, 5vw, 68px); font-weight: 600; line-height: .98; letter-spacing: -.04em; }
.otd-login-card > p { margin: 0 0 34px; color: var(--otd-muted); line-height: 1.6; }
.otd-login-form label { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 500; }
.otd-login-form input[type="text"], .otd-login-form input[type="password"] { width: 100%; min-height: 54px; margin-top: 8px; padding: 0 16px; border: 1px solid var(--otd-line); border-radius: 12px; background: #fbfaf8; }
.otd-login-form .login-remember { font-size: 13px; font-weight: 500; }
.otd-login-form .login-submit input { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: #111111; color: #fff; font-weight: 600; cursor: pointer; }
.otd-login-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 20px; color: var(--otd-muted); font-size: 13px; }
.otd-login-legal { margin-top: 54px; color: #99958e; font-size: 11px; line-height: 1.7; }
.otd-login-alert { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #e6e6e6; border-radius: 12px; background: #f7f7f7; color: #4e4e4e; font-size: 13px; }

.otd-app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0,1fr); }
.otd-app-nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--otd-line); background: #fff; z-index: 30; }
.otd-app-nav__brand { display: flex; align-items: center; min-height: 82px; padding: 0 24px; border-bottom: 1px solid var(--otd-line); font-size: 25px; font-weight: 700; letter-spacing: -.035em; }
.otd-app-nav__scroll { overflow: auto; padding: 20px 14px; }
.otd-nav-label { display: block; margin: 22px 12px 8px; color: #9a9a9a; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.otd-nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; margin: 3px 0; border-radius: 11px; color: #5f5f5f; font-size: 14px; font-weight: 500; letter-spacing: -.006em; }
.otd-nav-link:hover, .otd-nav-link.is-active { background: #f3f3f3; color: var(--otd-ink); }
.otd-nav-link.is-active::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #111111; }
.otd-nav-icon { width: 19px; text-align: center; font-size: 17px; }
.otd-app-user { margin-top: auto; padding: 14px; border-top: 1px solid var(--otd-line); }
.otd-user-card { display: grid; grid-template-columns: 40px 1fr 26px; align-items: center; gap: 10px; }
.otd-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #ededed; }
.otd-user-card strong { display: block; font-size: 13px; }
.otd-user-card span { color: var(--otd-muted); font-size: 11px; }

.otd-app-main { min-width: 0; }
.otd-app-topbar { position: sticky; top: 0; z-index: 20; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 34px; border-bottom: 1px solid var(--otd-line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.otd-mobile-menu { display: none; width: 42px; height: 42px; border: 1px solid var(--otd-line); border-radius: 12px; background: #fff; }
.otd-topbar-title strong { display: block; font-size: 16px; }
.otd-topbar-title span { color: var(--otd-muted); font-size: 12px; }
.otd-topbar-actions { display: flex; align-items: center; gap: 10px; }
.otd-icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--otd-line); border-radius: 50%; background: #fff; cursor: pointer; }
.otd-app-content { padding: 36px; }
.otd-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.otd-page-head h1 { margin: 5px 0 0; font-size: clamp(34px, 4vw, 56px); font-weight: 600; letter-spacing: -.038em; line-height: 1; }
.otd-page-head p { margin: 8px 0 0; color: var(--otd-muted); }
.otd-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.otd-notice { margin-bottom: 22px; padding: 14px 16px; border: 1px solid #e4e4e4; border-radius: 13px; background: #f7f7f7; color: #4e4e4e; font-size: 13px; }
.otd-notice--error { border-color: #dddddd; background: #fafafa; color: #4e4e4e; }
.otd-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.otd-card { border: 1px solid var(--otd-line); border-radius: var(--otd-radius); background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.otd-stat { min-height: 156px; padding: 22px; }
.otd-stat__top { display: flex; align-items: center; justify-content: space-between; color: var(--otd-muted); font-size: 12px; }
.otd-stat__value { margin-top: 28px; font-size: 33px; font-weight: 500; letter-spacing: -.03em; }
.otd-stat__delta { margin-top: 8px; font-size: 11px; color: #6b6b6b; }
.otd-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .75fr); gap: 14px; margin-top: 14px; }
.otd-panel { padding: 24px; }
.otd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.otd-panel-head h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.018em; }
.otd-panel-head a { color: var(--otd-muted); font-size: 12px; }
/* Premium internal analytics: dark metric matrix + line/area graph. */
.otd-analytics-panel { overflow: hidden; padding: 0; border-color: #252525; background: #101010; color: #fff; box-shadow: 0 22px 55px rgba(0,0,0,.14); }
.otd-analytics-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid #292929; background: #111; }
.otd-analytics-eyebrow { display: block; margin-bottom: 5px; color: #8d8d8d; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.otd-analytics-head h2 { margin: 0; color: #fff; font-size: 19px; font-weight: 500; letter-spacing: -.018em; }
.otd-analytics-head__meta { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.otd-analytics-period, .otd-analytics-preview { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border: 1px solid #333; border-radius: 999px; color: #aaa; background: #181818; font-size: 9px; font-weight: 600; letter-spacing: .075em; text-transform: uppercase; }
.otd-analytics-preview { border-color: rgba(255,106,42,.32); color: #ff8b58; background: rgba(255,106,42,.08); }
.otd-analytics-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-bottom: 1px solid #292929; background: #121212; }
.otd-analytics-metric { min-height: 88px; padding: 16px 20px; border-right: 1px solid #292929; border-bottom: 1px solid #292929; background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }
.otd-analytics-metric:nth-child(3n) { border-right: 0; }
.otd-analytics-metric:nth-last-child(-n+3) { border-bottom: 0; }
.otd-analytics-metric__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8c8c8c; font-size: 10px; }
.otd-analytics-metric__top small { font-size: 9px; font-weight: 500; white-space: nowrap; }
.otd-analytics-metric__top small.is-positive { color: #42d69d; }
.otd-analytics-metric__top small.is-neutral { color: #ff8b58; }
.otd-analytics-metric > strong { display: block; margin-top: 10px; color: #f7f7f7; font-size: 21px; font-weight: 400; letter-spacing: -.02em; }
.otd-line-chart { position: relative; min-height: 330px; padding: 8px 18px 15px; background: radial-gradient(circle at 62% 15%, rgba(255,106,42,.08), transparent 28%), #101010; }
.otd-line-chart svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 340; min-height: 240px; max-height: 340px; overflow: visible; }
.otd-chart-gridline { stroke: #292929; stroke-width: 1; vector-effect: non-scaling-stroke; }
.otd-chart-axis-label { fill: #777; font-size: 11px; }
.otd-chart-area { fill: url(#otdAnalyticsArea); }
.otd-chart-line { fill: none; stroke: #ff6425; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: url(#otdAnalyticsGlow); }
.otd-chart-point { fill: #ff6425; stroke: #101010; stroke-width: 2; opacity: .32; vector-effect: non-scaling-stroke; }
.otd-chart-point.is-active { opacity: 1; }
.otd-chart-tooltip rect { fill: #2b2523; stroke: #45352f; stroke-width: 1; }
.otd-chart-tooltip text { fill: #c8bbb5; font-size: 12px; }
.otd-chart-tooltip .otd-chart-tooltip__value { fill: #fff; font-size: 18px; font-weight: 500; }
.otd-chart-dates { display: flex; justify-content: space-between; gap: 12px; padding: 0 20px 0 44px; color: #656565; font-size: 9px; }
.otd-chart-empty-copy { position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%); width: min(430px,80%); padding: 11px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: #aaa; background: rgba(18,18,18,.78); backdrop-filter: blur(7px); text-align: center; font-size: 10px; line-height: 1.5; }
.otd-analytics-note { margin: 0; padding: 14px 22px 18px; border-top: 1px solid #292929; color: #777; background: #101010; font-size: 10px; line-height: 1.55; }
.otd-activity { display: grid; gap: 4px; }
.otd-activity-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid #efefef; }
.otd-activity-item:last-child { border-bottom: 0; }
.otd-activity-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f2f2f2; }
.otd-activity-item strong { display: block; font-size: 13px; }
.otd-activity-item span { color: var(--otd-muted); font-size: 11px; }

.otd-table-card { overflow: hidden; }
.otd-list-row { display: grid; grid-template-columns: 58px minmax(180px, 1.4fr) repeat(3, minmax(90px,.5fr)) 38px; align-items: center; gap: 14px; min-height: 84px; padding: 12px 18px; border-bottom: 1px solid var(--otd-line); background: #fff; }
.otd-list-row:last-child { border-bottom: 0; }
.otd-list-row--campaign { grid-template-columns: 68px minmax(190px,1.4fr) minmax(110px,.5fr) minmax(110px,.5fr) 110px; }
.otd-list-row__image { width: 58px; height: 58px; object-fit: cover; border-radius: 11px; background: #f0f0f0; }
.otd-list-row__title strong { display: block; font-size: 14px; }
.otd-list-row__title span, .otd-list-cell span { color: var(--otd-muted); font-size: 11px; }
.otd-list-cell strong { display: block; font-size: 12px; }
.otd-status { display: inline-flex; align-items: center; width: fit-content; min-height: 26px; padding: 0 10px; border-radius: 999px; background: #f2f2f2; color: #4f4f4f; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .055em; }
.otd-status--publish, .otd-status--confirmed, .otd-status--active { background: #ededed; color: #111111; }
.otd-status--pending, .otd-status--draft { background: #f5f5f5; color: #5d5d5d; }

.otd-form-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .55fr); gap: 16px; align-items: start; }
.otd-form-card { padding: 26px; }
.otd-field { display: block; margin-bottom: 20px; }
.otd-field > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; }
.otd-field small { display: block; margin-top: 7px; color: var(--otd-muted); line-height: 1.4; }
.otd-field input[type="text"], .otd-field input[type="url"], .otd-field input[type="email"], .otd-field input[type="number"], .otd-field input[type="date"], .otd-field textarea, .otd-field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--otd-line); border-radius: 11px; background: #fafafa; outline: none; }
.otd-field textarea { min-height: 150px; resize: vertical; }
.otd-field input:focus, .otd-field textarea:focus, .otd-field select:focus { border-color: #a7a299; box-shadow: 0 0 0 3px rgba(0,0,0,.035); }
.otd-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.otd-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 300px; overflow: auto; padding: 8px; border: 1px solid var(--otd-line); border-radius: 12px; }
.otd-check-item { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 7px 9px; border-radius: 8px; background: #f6f6f6; font-size: 12px; }
.otd-image-upload { min-height: 230px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #d5d5d5; border-radius: 15px; background: #f7f7f7; text-align: center; }
.otd-image-upload img { width: 100%; max-height: 360px; object-fit: cover; }
.otd-side-note { padding: 22px; }
.otd-side-note h3 { margin-top: 0; font-size: 16px; }
.otd-side-note p, .otd-side-note li { color: var(--otd-muted); font-size: 12px; line-height: 1.65; }
.otd-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; }

.otd-empty { padding: 70px 24px; text-align: center; }
.otd-empty strong { display: block; margin-bottom: 10px; font-size: 22px; }
.otd-empty p { max-width: 520px; margin: 0 auto 20px; color: var(--otd-muted); line-height: 1.6; }

.otd-public-profile { background: #fff; }
.otd-profile-cover { position: relative; min-height: 370px; background: linear-gradient(135deg,#f0f0f0,#1a1a1a); overflow: hidden; }
.otd-profile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.otd-profile-header { width: min(1180px, 92vw); margin: -66px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: 132px 1fr auto; align-items: end; gap: 24px; }
.otd-profile-avatar { width: 132px; height: 132px; border: 6px solid #fff; border-radius: 50%; object-fit: cover; background: #eeeae4; }
.otd-profile-identity { padding-bottom: 8px; }
.otd-profile-identity h1 { margin: 0; font-size: clamp(36px,5vw,62px); font-weight: 600; letter-spacing: -.038em; }
.otd-profile-identity p { margin: 7px 0 0; color: var(--otd-muted); max-width: 650px; line-height: 1.5; }
.otd-profile-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.otd-profile-socials a { padding: 7px 11px; border: 1px solid var(--otd-line); border-radius: 999px; font-size: 11px; }
.otd-profile-actions { display: flex; gap: 10px; padding-bottom: 8px; }
.otd-profile-tabs { width: min(1180px, 92vw); margin: 35px auto 0; display: grid; grid-template-columns: repeat(var(--otd-profile-tab-count, 4), minmax(0,1fr)); gap: 0; border-bottom: 1px solid var(--otd-line); align-items: stretch; }
.otd-profile-tabs a { min-height: 58px; padding: 12px 0 14px; color: var(--otd-muted); display: flex; align-items: center; justify-content: center; position: relative; transition: color .2s ease, background-color .2s ease; }
.otd-profile-tabs a:hover { color: var(--otd-ink); background: #fbfbfb; }
.otd-profile-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; transition: background-color .2s ease; }
.otd-profile-tabs a.is-active { color: var(--otd-ink); }
.otd-profile-tabs a.is-active::after { background: var(--otd-ink); }
.otd-tab-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.otd-tab-icon svg { width: 24px; height: 24px; display: block; }
.otd-profile-content { width: min(1180px, 92vw); margin: 0 auto; padding: 46px 0 90px; }
.otd-profile-content--private { padding-top: 34px; }
.otd-profile-content--private .otd-page-head { margin-bottom: 24px; }
.otd-private-profile-form { margin-top: 0; }
.otd-profile-content h2 { margin: 0 0 24px; font-size: 32px; font-weight: 500; letter-spacing: -.025em; }
.otd-public-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.otd-public-card { overflow: hidden; border: 1px solid var(--otd-line); border-radius: 16px; background: #fff; }
.otd-public-card__media { aspect-ratio: 4/5; background: #f0f0f0; overflow: hidden; }
.otd-public-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.otd-public-card:hover img { transform: scale(1.025); }
.otd-public-card__body { padding: 17px; }
.otd-public-card__body span { color: var(--otd-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.otd-public-card__body h3 { margin: 9px 0 7px; font-size: 18px; font-weight: 500; letter-spacing: -.014em; }
.otd-public-card__body p { color: var(--otd-muted); font-size: 12px; line-height: 1.5; }
.otd-price { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; font-weight: 600; }
.otd-product-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.otd-product-tags a { padding: 7px 9px; border-radius: 999px; background: #f3f3f3; font-size: 10px; }
.otd-diary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.otd-diary-card { min-height: 380px; display: flex; align-items: end; position: relative; overflow: hidden; border-radius: 18px; background: #191919; color: #fff; }
.otd-diary-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.otd-diary-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.78)); }
.otd-diary-card__body { position: relative; z-index: 2; padding: 28px; }
.otd-diary-card h3 { margin: 10px 0 0; max-width: 520px; font-family: var(--otd-font-display); font-size: 34px; font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }

.otd-single-story { background: #fff; }
.otd-story-hero { width: min(1300px, 94vw); margin: 28px auto 0; min-height: 68vh; display: grid; place-items: end start; padding: 6vw; border-radius: 22px; background: #1b1b1b; color: #fff; position: relative; overflow: hidden; }
.otd-story-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.otd-story-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent,rgba(0,0,0,.75)); }
.otd-story-hero__copy { position: relative; z-index: 2; max-width: 850px; }
.otd-story-hero__copy span { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.otd-story-hero h1 { margin: 18px 0; font-family: var(--otd-font-display); font-size: clamp(48px,7vw,96px); font-weight: 500; line-height: .97; letter-spacing: -.035em; }
.otd-story-body { width: min(760px, 88vw); margin: 70px auto 100px; font-family: var(--otd-font-sans); font-size: 19px; font-weight: 400; line-height: 1.75; letter-spacing: -.006em; }
.otd-story-products { width: min(1100px, 92vw); margin: 0 auto 100px; padding-top: 50px; border-top: 1px solid var(--otd-line); }

@media (max-width: 1100px) {
  .otd-stat-grid { grid-template-columns: repeat(2,1fr); }
  .otd-dashboard-grid { grid-template-columns: 1fr; }
  .otd-public-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  .otd-analytics-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .otd-analytics-metric:nth-child(3n) { border-right: 1px solid #292929; }
  .otd-analytics-metric:nth-child(2n) { border-right: 0; }
  .otd-analytics-metric:nth-last-child(-n+3) { border-bottom: 1px solid #292929; }
  .otd-analytics-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .otd-login-shell { grid-template-columns: 1fr; }
  .otd-login-art { min-height: 300px; }
  .otd-login-art__copy h2 { font-size: 44px; }
  .otd-login-panel { padding: 60px 24px; }
  .otd-app-shell { grid-template-columns: 1fr; }
  .otd-app-nav { position: fixed; left: -260px; width: 244px; transition: left .22s ease; box-shadow: var(--otd-shadow); }
  .otd-app-shell.is-nav-open .otd-app-nav { left: 0; }
  .otd-mobile-menu { display: grid; place-items: center; }
  .otd-app-topbar { padding: 0 18px; }
  .otd-app-content { padding: 24px 18px 50px; }
  .otd-form-layout { grid-template-columns: 1fr; }
  .otd-profile-header { grid-template-columns: 104px 1fr; }
  .otd-profile-avatar { width: 104px; height: 104px; }
  .otd-profile-actions { grid-column: 1 / -1; }
  .otd-diary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .otd-analytics-head { align-items: flex-start; flex-direction: column; padding: 18px; }
  .otd-analytics-head__meta { justify-content: flex-start; }
  .otd-analytics-metric { min-height: 78px; padding: 14px; }
  .otd-analytics-metric > strong { font-size: 18px; }
  .otd-line-chart { min-height: 270px; padding: 4px 8px 12px; }
  .otd-line-chart svg { min-height: 220px; max-height: 260px; }
  .otd-chart-dates { padding-left: 38px; font-size: 8px; }
  .otd-page-head { align-items: flex-start; flex-direction: column; }
  .otd-stat-grid { grid-template-columns: 1fr 1fr; }
  .otd-stat { min-height: 130px; padding: 17px; }
  .otd-stat__value { margin-top: 18px; font-size: 26px; }
  .otd-list-row, .otd-list-row--campaign { grid-template-columns: 50px 1fr 34px; min-height: 75px; padding: 10px 12px; }
  .otd-list-row__image { width: 50px; height: 50px; }
  .otd-list-cell { display: none; }
  .otd-field-grid { grid-template-columns: 1fr; }
  .otd-check-grid { grid-template-columns: 1fr; }
  .otd-public-grid { grid-template-columns: 1fr; }
  .otd-profile-cover { min-height: 250px; }
  .otd-profile-header { margin-top: -50px; grid-template-columns: 90px 1fr; gap: 14px; }
  .otd-profile-avatar { width: 90px; height: 90px; }
  .otd-profile-identity h1 { font-size: 34px; }
  .otd-profile-identity p { font-size: 12px; }
  .otd-profile-tabs { margin-top: 25px; width: min(1180px, 94vw); }
  .otd-profile-tabs a { min-height: 54px; padding: 11px 0 13px; }
  .otd-tab-icon, .otd-tab-icon svg { width: 22px; height: 22px; }
}


/* Typography refinement — matches the clean Die Grotesk-style reference. */
.otd-app-shell, .otd-login-shell, .otd-public-profile, .otd-single-story {
  font-family: var(--otd-font-sans);
}
.otd-app-shell h1, .otd-app-shell h2, .otd-app-shell h3,
.otd-login-shell h1, .otd-login-shell h2,
.otd-public-profile h1, .otd-public-profile h2, .otd-public-profile h3,
.otd-single-story h1, .otd-single-story h2, .otd-single-story h3 {
  font-family: var(--otd-font-display);
}
.otd-line-chart text {
  font-family: var(--otd-font-sans);
}


/* 0.4.0 monochrome palette overrides */
.otd-topbar-actions .otd-btn--accent, .otd-page-actions .otd-btn--accent { background: #111111; border-color: #111111; color: #ffffff; }
.otd-topbar-actions .otd-btn--light, .otd-page-actions .otd-btn--light { background: #ffffff; border-color: #d9d9d9; color: #111111; }
.otd-stat__delta, .otd-list-cell em, .otd-list-row__title span, .otd-activity-item span { color: #6b6b6b; }
.otd-check-grid { background: #ffffff; }
.otd-card { box-shadow: 0 1px 0 rgba(0,0,0,.015); }

/* 0.5.0 — interactive all-time daily analytics */
.otd-analytics-preview {
  border-color: #3a3a3a;
  color: #d6d6d6;
  background: #1a1a1a;
}
.otd-analytics-metric__top small.is-positive,
.otd-analytics-metric__top small.is-neutral {
  color: #cfcfcf;
}
.otd-live-chart {
  min-height: 0;
  padding: 0;
  background: #101010;
}
.otd-chart-stage {
  position: relative;
  min-height: 340px;
  padding: 8px 18px 0;
  background: radial-gradient(circle at 62% 12%, rgba(255,255,255,.05), transparent 30%), #101010;
}
.otd-live-chart__svg {
  display: block;
  width: 100%;
  height: 340px;
  min-height: 340px;
  max-height: none;
  overflow: visible;
  touch-action: none;
}
.otd-chart-gridline {
  stroke: #2b2b2b;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.otd-chart-axis-label,
.otd-chart-date-label {
  fill: #767676;
  font-family: var(--otd-font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -.01em;
}
.otd-chart-area {
  pointer-events: none;
}
.otd-chart-line {
  fill: none;
  stroke: #f7f7f7;
  stroke-width: 2.15;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  animation: otd-chart-draw .75s ease both;
}
.otd-chart-focus-line {
  stroke: rgba(255,255,255,.25);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.otd-chart-focus-point {
  fill: #fff;
  stroke: #111;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.otd-chart-overlay {
  cursor: crosshair;
  outline: none;
}
.otd-chart-overlay:focus-visible {
  stroke: rgba(255,255,255,.35);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.otd-live-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 145px;
  padding: 11px 13px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  color: #111;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  transform: translate(12px, calc(-100% - 12px));
  pointer-events: none;
}
.otd-live-tooltip.is-left {
  transform: translate(calc(-100% - 12px), calc(-100% - 12px));
}
.otd-live-tooltip.is-low {
  transform: translate(12px, 12px);
}
.otd-live-tooltip.is-left.is-low {
  transform: translate(calc(-100% - 12px), 12px);
}
.otd-live-tooltip span,
.otd-live-tooltip small {
  display: block;
  color: #6f6f6f;
  font-size: 9px;
  line-height: 1.35;
}
.otd-live-tooltip strong {
  display: block;
  margin: 4px 0 1px;
  color: #111;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.otd-chart-empty-copy {
  bottom: 56px;
  border-color: rgba(255,255,255,.12);
  color: #b7b7b7;
  background: rgba(17,17,17,.88);
  pointer-events: none;
}
.otd-chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 22px 16px;
  border-top: 1px solid #292929;
  color: #777;
  background: #101010;
  font-size: 9px;
  line-height: 1.5;
}
.otd-chart-footer strong {
  color: #aaa;
  font-weight: 500;
}
.otd-live-chart.has-chart-error .otd-chart-stage::after {
  content: "The analytics chart could not be loaded.";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #aaa;
  font-size: 12px;
}
@keyframes otd-chart-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@media (max-width: 650px) {
  .otd-chart-stage {
    min-height: 280px;
    padding: 4px 8px 0;
  }
  .otd-live-chart__svg {
    height: 280px;
    min-height: 280px;
    max-height: none;
  }
  .otd-chart-axis-label,
  .otd-chart-date-label {
    font-size: 9px;
  }
  .otd-chart-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-inline: 16px;
  }
  .otd-live-tooltip {
    min-width: 128px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .otd-chart-line { animation: none; }
}


/* otDiary 0.7.0 — creator verification by application. */
.otd-verified-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  vertical-align: middle;
}
.otd-verified-name > span:first-child {
  min-width: 0;
}
.otd-verified-badge {
  display: inline-block;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: -3px;
}
.otd-verified-badge--sidebar {
  flex-basis: 15px;
  width: 15px;
  height: 15px;
}
.otd-verified-name--card {
  gap: 5px;
}
.otd-verified-name--story {
  gap: 5px;
}
.otd-sidebar-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 146px;
}
.otd-profile-identity h1 .otd-verified-name {
  align-items: center;
}
.otd-profile-identity h1 .otd-verified-badge {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}
.otd-story-author .otd-verified-name {
  display: inline-flex;
}

.otd-verification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 14px;
}
.otd-verification-status,
.otd-verification-guide {
  min-height: 230px;
  padding: 28px;
}
.otd-verification-status {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.otd-verification-status__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #f2f2f2;
  color: #777;
  font-size: 25px;
  font-weight: 700;
}
.otd-verification-status.is-approved .otd-verification-status__icon {
  border-color: #d8e8f8;
  background: #eef6fd;
}
.otd-verification-status__icon .otd-verified-badge--large {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}
.otd-verification-status h2,
.otd-verification-guide h3,
.otd-verification-form h2 {
  margin: 10px 0 10px;
  font-weight: 500;
  letter-spacing: -.025em;
}
.otd-verification-status h2 {
  font-size: clamp(28px, 3vw, 42px);
}
.otd-verification-status p,
.otd-verification-guide p,
.otd-verification-guide li,
.otd-form-intro p {
  color: var(--otd-muted);
  line-height: 1.65;
}
.otd-verification-status small {
  display: block;
  margin-top: 18px;
  color: #858585;
}
.otd-verification-guide ul {
  margin: 18px 0 0;
  padding-left: 19px;
}
.otd-verification-guide li + li {
  margin-top: 9px;
}
.otd-verification-message {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #f5f5f5;
}
.otd-verification-message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}
.otd-verification-message p {
  margin: 0;
  color: #333;
}
.otd-verification-form {
  margin-top: 14px;
}
.otd-form-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--otd-line);
}
.otd-form-intro p {
  width: min(420px, 100%);
  margin: 0;
}
.otd-declaration {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--otd-line);
  border-radius: 12px;
  background: #fafafa;
  color: #3c3c3c;
  font-size: 13px;
  line-height: 1.55;
}
.otd-declaration input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 17px;
}

@media (max-width: 900px) {
  .otd-verification-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .otd-verification-status,
  .otd-verification-guide {
    padding: 20px;
  }
  .otd-verification-status {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }
  .otd-verification-status__icon {
    width: 46px;
    height: 46px;
  }
  .otd-verification-status__icon .otd-verified-badge--large {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
  .otd-form-intro {
    flex-direction: column;
    gap: 12px;
  }
}


/* Invitation-only creator registration */
.otd-signup-shell .otd-login-panel {
  align-items: flex-start;
  min-width: 0;
  overflow-y: auto;
}
.otd-signup-card {
  width: min(760px, 100%);
  padding: 44px 0 70px;
}
.otd-signup-card > p { max-width: 680px; }
.otd-login-alert--error {
  border-color: #d8d8d8;
  background: #f1f1f1;
  color: #202020;
}
.otd-invite-confirmation {
  display: grid;
  gap: 5px;
  margin: 0 0 30px;
  padding: 16px 18px;
  border: 1px solid var(--otd-line);
  border-radius: 13px;
  background: #f7f7f7;
}
.otd-invite-confirmation span {
  color: var(--otd-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.otd-invite-confirmation strong {
  font-size: 17px;
  letter-spacing: .06em;
}
.otd-invite-confirmation small { color: var(--otd-muted); }
.otd-signup-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 32px 0 17px;
  padding-top: 28px;
  border-top: 1px solid var(--otd-line);
}
.otd-invite-confirmation + .otd-signup-form .otd-signup-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.otd-signup-section h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.otd-signup-section p {
  max-width: 370px;
  margin: 0;
  color: var(--otd-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}
.otd-signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.otd-signup-form label,
.otd-code-form label {
  display: block;
  color: #282828;
  font-size: 12px;
  font-weight: 500;
}
.otd-signup-form input[type="text"],
.otd-signup-form input[type="email"],
.otd-signup-form input[type="tel"],
.otd-signup-form input[type="url"],
.otd-signup-form input[type="password"],
.otd-signup-form select,
.otd-signup-form textarea,
.otd-code-form input[type="text"] {
  width: 100%;
  min-height: 51px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--otd-line);
  border-radius: 11px;
  background: #fafafa;
  color: var(--otd-ink);
  outline: none;
}
.otd-signup-form textarea {
  min-height: 125px;
  resize: vertical;
}
.otd-signup-form input[readonly] {
  background: #f1f1f1;
  color: #626262;
}
.otd-signup-form input:focus,
.otd-signup-form select:focus,
.otd-signup-form textarea:focus,
.otd-code-form input:focus {
  border-color: #777;
  box-shadow: 0 0 0 3px rgba(0,0,0,.045);
}
.otd-signup-form label small,
.otd-signup-full small {
  display: block;
  margin-top: 6px;
  color: var(--otd-muted);
  font-size: 11px;
  line-height: 1.4;
}
.otd-signup-full {
  margin-top: 16px;
}
.otd-signup-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  margin-top: 25px;
  padding: 16px;
  border: 1px solid var(--otd-line);
  border-radius: 12px;
  background: #f8f8f8;
  line-height: 1.55;
}
.otd-signup-consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 17px;
}
.otd-signup-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.otd-signup-submit:hover { background: #303030; }

@media (max-width: 760px) {
  .otd-signup-card { padding: 10px 0 44px; }
  .otd-signup-grid { grid-template-columns: 1fr; }
  .otd-signup-section {
    display: block;
  }
  .otd-signup-section p {
    margin-top: 7px;
    text-align: left;
  }
}


/* otDiary 1.2.0 — four verification levels and interactive badge cards. */
.otd-verification-badge-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  isolation: isolate;
}
.otd-verification-badge-trigger {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  cursor: help;
  outline: none;
}
.otd-verification-badge-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(17,17,17,.16);
}
.otd-verification-popover {
  position: absolute;
  z-index: 1200;
  left: 50%;
  bottom: calc(100% + 14px);
  display: grid;
  width: min(330px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid #343434;
  border-radius: 16px;
  background: #191919;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(.98);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  text-align: left;
  white-space: normal;
}
.otd-verification-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 1px solid #343434;
  border-bottom: 1px solid #343434;
  background: #191919;
  transform: translate(-50%, -6px) rotate(45deg);
}
.otd-verification-badge-wrap:hover .otd-verification-popover,
.otd-verification-badge-wrap:focus-within .otd-verification-popover,
.otd-verification-badge-wrap.is-open .otd-verification-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.otd-verification-popover__hero {
  display: grid;
  justify-items: center;
  text-align: center;
}
.otd-verification-popover__hero img {
  width: 82px;
  height: 82px;
  margin-bottom: 13px;
  object-fit: contain;
}
.otd-verification-popover__hero .otd-kicker {
  color: #999;
  font-size: 10px;
}
.otd-verification-popover__hero strong {
  margin-top: 6px;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.035em;
}
.otd-verification-popover__description {
  display: block;
  margin: 11px 0 17px;
  color: #d5d5d5;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.otd-verification-popover__criteria {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #333;
  border-radius: 11px;
  background: #111;
}
.otd-verification-popover__criteria small {
  color: #8f8f8f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.otd-verification-popover__criteria span {
  color: #f2f2f2;
  font-size: 13px;
  line-height: 1.48;
}
.otd-verification-popover__footer {
  display: block;
  margin-top: 15px;
  color: #8d8d8d;
  font-size: 11px;
  text-align: center;
}
.otd-verification-status__icon .otd-verification-popover {
  left: 0;
  transform: translate(0, 8px) scale(.98);
}
.otd-verification-status__icon .otd-verification-popover::after {
  left: 28px;
}
.otd-verification-status__icon .otd-verification-badge-wrap:hover .otd-verification-popover,
.otd-verification-status__icon .otd-verification-badge-wrap:focus-within .otd-verification-popover,
.otd-verification-status__icon .otd-verification-badge-wrap.is-open .otd-verification-popover {
  transform: translate(0, 0) scale(1);
}
.otd-awarded-tier {
  display: grid;
  gap: 3px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid var(--otd-line);
  border-radius: 11px;
  background: #fafafa;
}
.otd-awarded-tier strong { font-size: 14px; }
.otd-awarded-tier span { color: var(--otd-muted); font-size: 13px; line-height: 1.45; }
.otd-verification-tier-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.otd-verification-tier-row {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--otd-line);
  border-radius: 11px;
  background: #fafafa;
}
.otd-verification-tier-row img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.otd-verification-tier-row div { display: grid; gap: 3px; }
.otd-verification-tier-row strong { font-size: 13px; }
.otd-verification-tier-row span { color: var(--otd-muted); font-size: 11px; line-height: 1.42; }
.otd-verification-disclaimer { margin-top: 15px; font-size: 12px; }

@media (max-width: 650px) {
  .otd-verification-popover {
    position: fixed;
    z-index: 1500;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(340px, calc(100vw - 28px));
    transform: translate(-50%, calc(-50% + 8px)) scale(.98);
  }
  .otd-verification-popover::after { display: none; }
  .otd-verification-badge-wrap:hover .otd-verification-popover,
  .otd-verification-badge-wrap:focus-within .otd-verification-popover,
  .otd-verification-badge-wrap.is-open .otd-verification-popover,
  .otd-verification-status__icon .otd-verification-badge-wrap:hover .otd-verification-popover,
  .otd-verification-status__icon .otd-verification-badge-wrap:focus-within .otd-verification-popover,
  .otd-verification-status__icon .otd-verification-badge-wrap.is-open .otd-verification-popover {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Let verification cards extend beyond creator directory cards without clipping. */
.otd-public-card { overflow: visible; }
.otd-public-card__media { border-radius: 16px 16px 0 0; }
.otd-public-card__body { border-radius: 0 0 16px 16px; background: #fff; }
.otd-sidebar-name .otd-verification-popover {
  left: 0;
  transform: translate(0, 8px) scale(.98);
}
.otd-sidebar-name .otd-verification-popover::after { left: 15px; }
.otd-sidebar-name .otd-verification-badge-wrap:hover .otd-verification-popover,
.otd-sidebar-name .otd-verification-badge-wrap:focus-within .otd-verification-popover,
.otd-sidebar-name .otd-verification-badge-wrap.is-open .otd-verification-popover {
  transform: translate(0, 0) scale(1);
}
@media (max-width: 650px) {
  .otd-sidebar-name .otd-verification-popover,
  .otd-sidebar-name .otd-verification-badge-wrap:hover .otd-verification-popover,
  .otd-sidebar-name .otd-verification-badge-wrap:focus-within .otd-verification-popover,
  .otd-sidebar-name .otd-verification-badge-wrap.is-open .otd-verification-popover {
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
  }
}


/* otDiary 1.2.1 — compact, viewport-safe verification popover. */
.otd-verification-popover {
  position: fixed;
  z-index: 100000;
  inset: auto;
  width: min(276px, calc(100vw - 24px));
  max-height: min(360px, calc(100vh - 24px));
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(20,20,20,.98);
  box-shadow: 0 16px 44px rgba(0,0,0,.25);
  transform: translateY(5px) scale(.985);
  text-align: left;
  font-family: var(--otd-font-sans);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-transform: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.otd-verification-popover::after { display: none; }
.otd-verification-badge-wrap:hover .otd-verification-popover,
.otd-verification-badge-wrap:focus-within .otd-verification-popover,
.otd-verification-badge-wrap.is-open .otd-verification-popover,
.otd-verification-status__icon .otd-verification-badge-wrap:hover .otd-verification-popover,
.otd-verification-status__icon .otd-verification-badge-wrap:focus-within .otd-verification-popover,
.otd-verification-status__icon .otd-verification-badge-wrap.is-open .otd-verification-popover,
.otd-sidebar-name .otd-verification-badge-wrap:hover .otd-verification-popover,
.otd-sidebar-name .otd-verification-badge-wrap:focus-within .otd-verification-popover,
.otd-sidebar-name .otd-verification-badge-wrap.is-open .otd-verification-popover {
  transform: translateY(0) scale(1);
}
.otd-verification-popover__hero {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  grid-template-areas: "badge kicker" "badge title";
  column-gap: 11px;
  align-items: center;
  justify-items: stretch;
  text-align: left;
}
.otd-verification-popover__hero img {
  grid-area: badge;
  width: 44px;
  height: 44px;
  margin: 0;
  object-fit: contain;
}
.otd-verification-popover__hero .otd-kicker {
  grid-area: kicker;
  align-self: end;
  color: #9c9c9c;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.otd-verification-popover__hero strong {
  grid-area: title;
  align-self: start;
  display: block;
  margin: 2px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-transform: none;
}
.otd-verification-popover__description {
  display: block;
  margin: 12px 0;
  color: #d7d7d7;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.005em;
  text-align: left;
  text-transform: none;
}
.otd-verification-popover__criteria {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.otd-verification-popover__criteria small {
  display: block;
  color: #9c9c9c;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.otd-verification-popover__criteria span {
  display: block;
  color: #f4f4f4;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0;
  text-transform: none;
}
.otd-verification-popover__footer {
  display: block;
  margin-top: 10px;
  color: #898989;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: right;
  text-transform: none;
}
@media (max-width: 650px) {
  .otd-verification-popover {
    width: min(272px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 15px;
  }
}

/* otDiary 1.3.0 — creator readers and followers. */
.otd-stat-grid--audience {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.otd-profile-audience {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin-top: 12px;
  color: #555;
  font-size: 13px;
  line-height: 1.35;
}
.otd-profile-audience span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.otd-profile-audience strong {
  color: var(--otd-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.otd-profile-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.otd-follow-form {
  display: inline-flex;
  margin: 0;
}
.otd-follow-form .otd-btn.is-following {
  background: #fff;
  color: var(--otd-ink);
  border-color: #cfcfcf;
}
.otd-private-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--otd-line);
  border-radius: 12px;
  background: #fafafa;
}
.otd-private-audience > div {
  min-width: 0;
  padding: 16px 14px;
  text-align: left;
}
.otd-private-audience > div + div {
  border-left: 1px solid var(--otd-line);
}
.otd-private-audience strong,
.otd-private-audience span {
  display: block;
}
.otd-private-audience strong {
  color: var(--otd-ink);
  font-size: 25px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -.035em;
}
.otd-private-audience span {
  margin-top: 7px;
  color: var(--otd-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 1100px) {
  .otd-stat-grid--audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .otd-profile-audience {
    gap: 6px 14px;
    margin-top: 9px;
    font-size: 11px;
  }
  .otd-profile-audience strong {
    font-size: 13px;
  }
  .otd-profile-actions {
    justify-content: flex-start;
  }
  .otd-profile-actions .otd-btn {
    min-height: 41px;
    padding-inline: 15px;
  }
}


/* Feed image reliability — 1.3.1 */
.otd-public-card__media { display: flex; width: 100%; align-items: center; justify-content: center; }
.otd-public-card__media img { display: block; }
.otd-media-missing { width: 100%; height: 100%; min-height: 260px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #f2f2f2; color: #4f4f4f; }
.otd-media-missing strong { color: #111; font-size: 15px; letter-spacing: -.01em; text-transform: none; }
.otd-media-missing small { max-width: 220px; margin-top: 7px; color: #777; font-size: 11px; line-height: 1.45; }
.otd-row-action { display: inline-flex; width: max-content; margin-top: 6px; padding: 5px 8px; border: 1px solid #d8d8d8; border-radius: 999px; color: #111; font-size: 10px; font-weight: 600; }
.otd-row-action:hover { background: #111; border-color: #111; color: #fff; }


/* Visual Feed grid — 1.4.0 */
.otd-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin-top: 24px;
}
.otd-feed-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ededed;
}
.otd-feed-tile__media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #ededed;
}
.otd-feed-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .32s ease;
}
.otd-feed-tile:hover .otd-feed-tile__media img,
.otd-feed-tile:focus-within .otd-feed-tile__media img {
  transform: scale(1.025);
}
.otd-feed-tile__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  min-height: 46%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 28px 14px 13px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.72) 100%);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.otd-feed-tile:hover .otd-feed-tile__overlay,
.otd-feed-tile:focus-within .otd-feed-tile__overlay {
  opacity: 1;
  transform: translateY(0);
}
.otd-feed-tile__overlay strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.otd-feed-tile__overlay small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255,255,255,.8);
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.otd-feed-tile__missing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px;
  text-align: center;
  background: #f1f1f1;
  color: #555;
}
.otd-feed-tile__missing strong { color: #111; font-size: 12px; }
.otd-feed-tile__missing small { max-width: 150px; font-size: 9px; line-height: 1.4; }
.otd-feed-tile__status {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 4;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.otd-feed-tile__actions {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 5;
  display: flex;
  gap: 5px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .18s ease, transform .18s ease;
}
.otd-feed-tile:hover .otd-feed-tile__actions,
.otd-feed-tile:focus-within .otd-feed-tile__actions {
  opacity: 1;
  transform: translateY(0);
}
.otd-feed-tile__actions a {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px;
  background: rgba(17,17,17,.78);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.otd-feed-grid--manager {
  margin-top: 14px;
  padding: 0;
}
.otd-profile-content > .otd-feed-grid {
  margin-top: 28px;
}
@media (max-width: 980px) {
  .otd-feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .otd-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .otd-feed-tile__overlay { opacity: 0; }
  .otd-feed-tile__actions { opacity: 1; transform: none; }
  .otd-feed-tile__actions a { padding: 4px 6px; font-size: 8px; }
  .otd-feed-tile__status { padding: 4px 6px; font-size: 8px; }
}

/* Centered shoppable Feed viewer — 1.5.1 */
body.otd-feed-viewer-open {
  overflow: hidden;
}
.otd-feed-viewer[hidden] {
  display: none !important;
}
.otd-feed-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 54px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.otd-feed-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.otd-feed-viewer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(18, 18, 18, .16);
  backdrop-filter: blur(24px) saturate(.72);
  -webkit-backdrop-filter: blur(24px) saturate(.72);
  cursor: zoom-out;
}
.otd-feed-viewer__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 94vw);
  max-height: calc(100vh - 32px);
  outline: none;
  background: transparent;
  transform: translateY(12px) scale(.985);
  transition: transform .22s ease;
}
.otd-feed-viewer.is-open .otd-feed-viewer__dialog {
  transform: translateY(0) scale(1);
}
.otd-feed-viewer__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.otd-feed-viewer__post {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  background: transparent;
}
.otd-feed-viewer__post > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(82vh, 760px);
  object-fit: contain;
  border-radius: clamp(22px, 3vw, 36px);
  background: transparent;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}
.otd-feed-viewer__post.is-image-missing {
  min-height: min(72vh, 680px);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 34px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(20px);
}
.otd-feed-viewer__meta {
  position: absolute;
  inset: auto 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 16px;
  background: rgba(16,16,16,.36);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.otd-feed-viewer__meta > span {
  color: rgba(255,255,255,.74);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.otd-feed-viewer__meta strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.otd-feed-viewer__meta p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.otd-feed-viewer__products {
  min-width: 0;
}
.otd-feed-viewer__product-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.otd-feed-viewer__product {
  position: relative;
  display: grid;
  width: 108px;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 23px;
  background: rgba(255,255,255,.18);
  color: #111;
  box-shadow: 0 18px 42px rgba(0,0,0,.12);
  backdrop-filter: blur(20px) saturate(.9);
  -webkit-backdrop-filter: blur(20px) saturate(.9);
  transition: transform .18s ease, background .18s ease;
}
.otd-feed-viewer__product:hover,
.otd-feed-viewer__product:focus-visible {
  transform: translateX(3px) scale(1.02);
  background: rgba(255,255,255,.30);
  outline: none;
}
.otd-feed-viewer__product img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
  background: transparent;
}
.otd-feed-viewer__product-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}
.otd-feed-viewer__product-info {
  position: absolute;
  inset: auto 6px 6px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 10px;
  background: rgba(16,16,16,.52);
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(10px);
}
.otd-feed-viewer__product:hover .otd-feed-viewer__product-info,
.otd-feed-viewer__product:focus-visible .otd-feed-viewer__product-info {
  opacity: 1;
  transform: translateY(0);
}
.otd-feed-viewer__product-info strong {
  overflow: hidden;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.otd-feed-viewer__product-info small {
  flex: 0 0 auto;
  color: rgba(255,255,255,.76);
  font-size: 7px;
}
.otd-feed-viewer__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 5;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 50%;
  background: rgba(17,17,17,.82);
  color: #fff;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.otd-feed-viewer__close:hover,
.otd-feed-viewer__close:focus-visible {
  background: #111;
  outline: 2px solid rgba(255,255,255,.72);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .otd-feed-viewer {
    padding: 12px;
  }
  .otd-feed-viewer__dialog {
    width: min(94vw, 520px);
  }
  .otd-feed-viewer__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .otd-feed-viewer__post > img {
    max-height: 68vh;
    border-radius: 24px;
  }
  .otd-feed-viewer__product-rail {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 5px;
    scrollbar-width: none;
  }
  .otd-feed-viewer__product-rail::-webkit-scrollbar {
    display: none;
  }
  .otd-feed-viewer__product {
    flex: 0 0 76px;
    width: 76px;
    border-radius: 17px;
  }
  .otd-feed-viewer__product:hover,
  .otd-feed-viewer__product:focus-visible {
    transform: translateY(-2px);
  }
  .otd-feed-viewer__product-info {
    display: none;
  }
  .otd-feed-viewer__meta {
    inset: auto 10px 10px;
    max-width: calc(100% - 20px);
    padding: 9px 11px;
    border-radius: 13px;
  }
  .otd-feed-viewer__meta p {
    display: none;
  }
  .otd-feed-viewer__close {
    top: -7px;
    right: -7px;
    width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .otd-feed-viewer,
  .otd-feed-viewer__dialog,
  .otd-feed-viewer__product {
    transition: none;
  }
}
