@font-face {
  font-family: "SUIT Nextwise";
  src: url("assets/SUIT-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f1f2f3;
  --surface: #ffffff;
  --surface-elevated: #f4f5f5;
  --control: #f0f1f2;
  --ink: #17191c;
  --muted: #6f757b;
  --line: #d9dcdf;
  --accent: #c92f5d;
  --font-ui: "Avenir Next", "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.4;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

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

h1,
h2,
p,
figure,
dl,
dd {
  margin: 0;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.instagram-shell {
  display: grid;
  grid-template-rows: auto 40px auto minmax(0, 1fr);
  width: min(100%, 430px);
  height: 100dvh;
  min-height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  border-inline: 1px solid var(--line);
  background: var(--surface);
}

.profile-panel {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  padding: 18px 20px 16px;
}

.profile-avatar {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  padding: 4px;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.profile-avatar::before,
.profile-avatar::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.profile-avatar::before {
  inset: 0;
  z-index: 1;
  background: conic-gradient(from 220deg, #ffd66b 0deg, #ff7a55 76deg, #e33c70 154deg, #a65ac7 236deg, #5d8fd8 302deg, #ffd66b 360deg);
}

.profile-avatar::after {
  inset: -4px;
  z-index: 0;
  border: 1px solid rgb(201 47 93 / 0.34);
  opacity: 0.5;
}

.profile-avatar img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
}

@keyframes profile-ring-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes profile-ring-pulse {
  50% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .profile-avatar::before {
    animation: profile-ring-spin 4.8s linear infinite;
  }

  .profile-avatar::after {
    animation: profile-ring-pulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  }
}

.profile-content {
  display: grid;
  gap: 9px;
}

.profile-content h1 {
  font-size: 23px;
  line-height: 1.2;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 16px;
}

.profile-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.profile-stats span {
  font-size: 13px;
  font-weight: 600;
}

.profile-stats strong {
  font-size: 15px;
  font-weight: 800;
}

.profile-cta:active,
.profile-avatar:active {
  transform: scale(0.97);
}

.profile-bio {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.profile-headline {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.profile-bio strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.profile-bio span {
  color: var(--muted);
}

.profile-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: background-color 160ms ease, transform 160ms ease;
}

.profile-cta:hover {
  background: #b0274f;
}

.profile-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.profile-cta-dday {
  padding: 2px 6px;
  background: rgb(255 255 255 / 0.18);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-tab {
  position: relative;
  display: grid;
  align-content: center;
  place-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7f858b;
  cursor: pointer;
}

.profile-tab.active {
  color: var(--ink);
}

.profile-tab.active::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: 0;
  left: 28%;
  height: 1px;
  background: var(--ink);
}

.profile-tab-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.grid-icon {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 2px;
}

.grid-icon i {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
}

.tagged-icon {
  position: relative;
  width: 22px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.tagged-icon::before,
.tagged-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.tagged-icon::before {
  top: 3px;
  width: 6px;
  height: 6px;
}

.tagged-icon::after {
  bottom: 2px;
  width: 12px;
  height: 6px;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}

.feed-tile {
  --tile-accent: var(--accent);
  position: relative;
  aspect-ratio: 3 / 4;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface-elevated);
  color: #ffffff;
}

.feed-tile > img {
  filter: saturate(0.92) contrast(1.04) brightness(0.88);
  transition: transform 180ms ease;
}

.post-link:hover > img {
  transform: scale(1.025);
}

.post-link:active {
  transform: scale(0.985);
}

.feed-tile.is-hidden {
  display: none;
}

.business-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 0;
  padding: 5px 12px;
  overflow: hidden;
  background: #f7f7f6;
}

.footer-lead {
  display: block;
}

.footer-lead strong {
  flex: 0 0 auto;
  color: #7c8287;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
  margin-top: 0;
}

.business-grid > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.business-grid > div:nth-child(odd) {
  grid-template-columns: 82px minmax(0, 1fr);
}

.business-grid > div:nth-child(even) {
  grid-template-columns: 54px minmax(0, 1fr);
}

.business-grid .mail-order-info {
  grid-column: 1 / -1;
  grid-template-columns: 82px minmax(0, 1fr);
}

.business-grid dt {
  color: #9a9fa4;
  font-size: 6px;
  font-weight: 400;
  line-height: 1.1;
}

.business-grid dd {
  margin-top: 0;
  overflow: hidden;
  color: #7c8287;
  font-size: 7px;
  font-weight: 400;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(6 8 10 / 0.04), rgb(6 8 10 / 0.7)),
    linear-gradient(90deg, rgb(6 8 10 / 0.26), transparent 78%);
}

.cover-copy,
.apply-copy {
  position: absolute;
  z-index: 2;
  inset: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.cover-copy small,
.apply-copy small {
  padding-top: 6px;
  background: linear-gradient(var(--tile-accent), var(--tile-accent)) no-repeat left top / 28px 3px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 2px rgb(4 6 8 / 0.95),
    0 3px 10px rgb(4 6 8 / 0.72);
}

.cover-copy small {
  position: absolute;
  top: 0;
  left: 0;
}

.cover-copy strong,
.apply-copy > strong {
  margin-top: 0;
  padding-block: 4px;
  font-size: clamp(12px, 3.3vw, 15px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.42;
  text-shadow:
    0 1px 2px rgb(4 6 8 / 0.95),
    0 3px 10px rgb(4 6 8 / 0.72);
}

.cover-copy strong .keyword {
  color: var(--tile-accent);
  font-style: normal;
  font-weight: inherit;
}

.about-copy {
  justify-content: flex-start;
}

.about-copy strong {
  position: absolute;
  top: 66.666%;
  right: 30px;
  left: 0;
  transform: translateY(-50%);
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.post-link[data-post="excel"] {
  --tile-accent: #849a94;
}

.post-link[data-post="office"] {
  --tile-accent: #a0927d;
}

.post-link[data-post="app"] {
  --tile-accent: #8290a0;
}

.post-link[data-post="content"] {
  --tile-accent: #91899b;
}

.post-link[data-post="marketing"] {
  --tile-accent: #899680;
}

.post-link[data-post="rag"] {
  --tile-accent: #80939a;
}

.post-link[data-post="automation"] {
  --tile-accent: #9a887e;
}

.post-link[data-post="advanced"] {
  --tile-accent: #91828d;
}

.apply-post .cover-scrim {
  background: linear-gradient(180deg, rgb(8 10 12 / 0.12), rgb(8 10 12 / 0.86));
}

.tile-arrow {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgb(255 255 255 / 0.58);
  background: rgb(8 10 12 / 0.48);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 160ms ease, transform 160ms ease;
}

.post-link:hover .tile-arrow,
.post-link:focus-visible .tile-arrow {
  background: var(--tile-accent);
  transform: translate(2px, -2px);
}

.tile-pin {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 5px;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  font-size: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.tile-pin::before {
  content: "📌";
  font-size: 11px;
  line-height: 1;
}

.featured-seminar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 2px solid var(--accent);
  pointer-events: none;
}

.featured-seminar > img {
  filter: saturate(1.02) contrast(1.05) brightness(0.86);
}

.featured-seminar .cover-scrim {
  background:
    linear-gradient(180deg, rgb(42 8 18 / 0.04), rgb(32 6 14 / 0.76)),
    linear-gradient(135deg, rgb(201 47 93 / 0.3), transparent 58%);
}

.seminar-dday {
  position: absolute;
  right: 40px;
  bottom: 8px;
  z-index: 3;
  min-width: 49px;
  height: 24px;
  padding-inline: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 24px;
  text-align: center;
}

.seminar-dday b {
  font-size: 12px;
}

.seminar-reel-dialog {
  width: min(390px, calc(100% - 24px));
  height: min(700px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 20px;
  background: #101214;
  color: #f8f8f6;
  box-shadow: 0 28px 100px rgb(12 15 18 / 0.46);
}

.seminar-reel-dialog::backdrop,
.post-dialog::backdrop,
.application-dialog::backdrop {
  background: rgb(26 30 34 / 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.seminar-reel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #101214;
  font-family: "SUIT Nextwise", "Apple SD Gothic Neo", system-ui, sans-serif;
}

.seminar-reel-image,
.seminar-reel-scrim {
  position: absolute;
  inset: 0;
}

.seminar-reel-image {
  object-position: 52% center;
  filter: saturate(0.9) contrast(1.06) brightness(0.82);
}

.seminar-reel-scrim {
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(8 10 12 / 0.78), transparent 22%, transparent 60%, rgb(8 10 12 / 0.96)),
    linear-gradient(90deg, rgb(8 10 12 / 0.7), rgb(8 10 12 / 0.12) 74%),
    linear-gradient(150deg, rgb(201 47 93 / 0.14), transparent 48%);
}

.seminar-reel-progress {
  position: absolute;
  top: 8px;
  right: 12px;
  left: 12px;
  z-index: 4;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.3);
}

.seminar-reel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #f4f4f1;
  transform: scaleX(0);
  transform-origin: left center;
}

.seminar-reel-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 17px 14px 10px;
}

.seminar-reel-header > img {
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 0.78);
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

.seminar-reel-header > div {
  display: grid;
  gap: 1px;
}

.seminar-reel-header strong {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.seminar-reel-header span {
  color: rgb(255 255 255 / 0.68);
  font-size: 8px;
  font-weight: 550;
}

.seminar-reel-close {
  min-width: 42px;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgb(255 255 255 / 0.88);
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.seminar-reel-close:hover {
  background: rgb(255 255 255 / 0.1);
}

.seminar-reel-close:active,
.seminar-reel-apply:active {
  transform: scale(0.97);
}

.seminar-reel-poster {
  position: absolute;
  top: 15%;
  right: 22px;
  bottom: 17%;
  left: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 310px;
}

.seminar-reel-kicker {
  padding-top: 10px;
  border-top: 2px solid var(--accent);
  color: rgb(255 255 255 / 0.78);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.seminar-reel-poster h2 {
  margin-top: 14px;
  font-size: clamp(40px, 7.2dvh, 52px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-shadow: 0 2px 18px rgb(4 6 8 / 0.36);
}

.seminar-reel-poster h2 em {
  color: #f1787c;
  font-style: normal;
  font-weight: 820;
}

.seminar-reel-sticker {
  position: relative;
  align-self: flex-end;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 11px;
  min-width: 208px;
  margin-top: clamp(28px, 6dvh, 46px);
  margin-right: 2px;
  padding: 11px 15px 11px 12px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: rgb(248 248 245 / 0.95);
  color: #17191c;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.88),
    0 8px 24px rgb(8 10 12 / 0.26);
  transform: rotate(3deg);
}

.seminar-reel-sticker::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 2px solid rgb(201 47 93 / 0.72);
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
}

.seminar-reel-sticker-body {
  display: grid;
  gap: 3px;
}

.seminar-reel-sticker-emoji {
  font-size: 27px;
  line-height: 1;
}

.seminar-reel-sticker small {
  color: #5c6065;
  font-size: 8px;
  font-weight: 750;
}

.seminar-reel-countdown {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.seminar-reel-countdown strong {
  color: var(--accent);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.seminar-reel-countdown > span {
  color: #34383d;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.seminar-reel-countdown b {
  font: inherit;
}

.seminar-reel-lead {
  margin-top: auto;
  margin-bottom: 6px;
  color: rgb(255 255 255 / 0.82);
  font-size: 14px;
  font-weight: 480;
  line-height: 1.52;
  text-shadow: 0 1px 10px rgb(4 6 8 / 0.42);
}

.seminar-reel-lead strong {
  color: #ffffff;
  font-weight: 720;
}

.seminar-reel-footer {
  position: absolute;
  right: 14px;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.seminar-reel-apply {
  min-height: 48px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.seminar-reel-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(100%, 260px);
  border: 1px solid rgb(255 255 255 / 0.64);
  background: rgb(248 248 245 / 0.94);
  color: #17191c;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    0 10px 30px rgb(8 10 12 / 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.seminar-reel-apply > span {
  font-size: 16px;
  line-height: 1;
}

.seminar-reel-apply strong {
  font-weight: 780;
}

@keyframes seminar-reel-enter {
  from {
    opacity: 0;
    transform: scale(0.975) translateY(8px);
  }
}

@keyframes seminar-reel-copy-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes seminar-reel-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes seminar-reel-sticker-enter {
  from {
    opacity: 0;
    transform: rotate(-5deg) scale(0.76);
  }
}

@keyframes seminar-reel-sticker-bounce {
  50% {
    transform: translateY(-3px) rotate(-7deg);
  }
}

@keyframes seminar-reel-sticker-urgency {
  45% {
    opacity: 0.7;
    transform: scale(1.04);
  }

  100% {
    opacity: 0;
    transform: scale(1.09);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .seminar-reel-dialog[open] .seminar-reel {
    animation: seminar-reel-enter 360ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .seminar-reel-dialog[open] .seminar-reel-poster {
    animation: seminar-reel-copy-enter 520ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .seminar-reel-dialog[open] .seminar-reel-progress span {
    animation: seminar-reel-progress 7s linear both;
  }

  .seminar-reel-dialog[open] .seminar-reel-sticker {
    animation: seminar-reel-sticker-enter 480ms 360ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .seminar-reel-dialog[open] .seminar-reel-sticker-emoji {
    animation: seminar-reel-sticker-bounce 2.2s 900ms ease-in-out infinite;
  }

  .seminar-reel-dialog[open] .seminar-reel-sticker::after {
    animation: seminar-reel-sticker-urgency 1.6s 900ms ease-out infinite;
  }
}

.post-dialog {
  width: min(340px, calc(100% - 24px));
  height: min(700px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-elevated);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(20 25 30 / 0.24);
}

.post-sheet {
  display: grid;
  grid-template-rows: 48px auto minmax(0, 1fr) auto;
  height: 100%;
}

.post-dialog-header {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}

.post-dialog-header > img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.post-dialog-header > div {
  display: grid;
}

.post-dialog-header strong {
  font-size: 11px;
}

.post-dialog-header span {
  color: var(--muted);
  font-size: 9px;
}

.post-dialog-close {
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: var(--control);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.post-dialog-close:active,
.post-dialog-apply-button:active,
.dialog-form-submit:active {
  transform: scale(0.97);
}

.post-dialog-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.post-dialog-media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 6px;
  background: var(--accent);
}

.post-dialog-media img {
  filter: saturate(0.94) contrast(1.05) brightness(0.9);
}

.post-dialog-copy {
  min-height: 0;
  padding: 15px 16px;
  overflow-y: auto;
}

.post-dialog-copy h2 {
  font-size: 22px;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.post-dialog-copy > p {
  margin-top: 6px;
  color: #565c62;
  font-size: 11.5px;
  line-height: 1.5;
}

.post-dialog-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  background: var(--line);
}

.post-dialog-facts > div {
  min-height: 48px;
  padding: 8px 9px;
  background: var(--surface);
}

.post-dialog-facts dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.post-dialog-facts dd {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
}

.post-dialog-highlights {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.post-dialog-highlights h3 {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.post-dialog-highlights ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.post-dialog-highlights li {
  min-height: 34px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.post-dialog-highlights li strong {
  color: #34393e;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.35;
}

.post-dialog-apply-button,
.dialog-form-submit {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.post-dialog-footer {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.96);
}

.post-dialog-footer .post-dialog-apply-button {
  min-height: 46px;
  margin-top: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.application-dialog {
  width: min(390px, calc(100% - 24px));
  height: min(700px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(20 25 30 / 0.24);
}

.application-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.application-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.application-dialog-account {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.application-dialog-account > img {
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  object-fit: contain;
}

.application-dialog-account > div {
  display: grid;
  gap: 1px;
}

.application-dialog-account strong {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.application-dialog-account h2 {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.application-dialog-close {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--control);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.application-dialog-body {
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7cacf transparent;
}

.application-intro {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  padding: 2px 0 13px;
  border-bottom: 1px solid var(--line);
}

.application-intro strong {
  font-size: 14px;
  letter-spacing: -0.025em;
}

.application-intro span {
  color: var(--muted);
  font-size: 10px;
}

.dialog-application-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

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

.form-field {
  display: grid;
  gap: 4px;
}

.form-field label,
.consent-field {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.form-field label > span,
.optional-fields summary span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  user-select: text;
}

.form-field textarea {
  min-height: 64px;
  resize: vertical;
}

.form-field small,
.dialog-form-status {
  color: var(--muted);
  font-size: 9px;
}

.contact-delivery-notice {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #ead0d8;
  border-radius: 8px;
  background: #fff6f8;
}

.contact-delivery-notice strong {
  font-size: 10px;
}

.contact-delivery-notice span {
  color: #66545a;
  font-size: 9px;
}

.optional-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.optional-fields summary {
  padding: 10px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.optional-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-field {
  display: flex;
  align-items: center;
  gap: 7px;
}

.consent-field input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.consent-field strong {
  color: var(--accent);
  font-size: 8px;
}

.consent-field-group {
  display: grid;
  gap: 6px;
}

.privacy-details {
  padding-left: 22px;
}

.privacy-details summary {
  width: fit-content;
  color: #4e555b;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.privacy-details p {
  margin-top: 6px;
  padding: 9px;
  border-radius: 6px;
  background: var(--control);
  color: #5d6369;
  font-size: 8px;
  line-height: 1.55;
  user-select: text;
}

.dialog-form-submit {
  margin-top: 0;
}

.application-dialog-footer {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.96);
}

.application-dialog-footer .dialog-form-submit {
  min-height: 48px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.application-dialog-footer .dialog-form-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.application-dialog-footer .dialog-form-status:not(:empty) {
  margin-top: 8px;
}

.dialog-form-status:not(:empty) {
  padding: 9px 10px;
  border-radius: 6px;
  background: #f3f5f5;
  line-height: 1.45;
}

.dialog-form-status[data-state="success"] {
  background: #ecfdf5;
  color: #166534;
}

.dialog-form-status[data-state="error"] {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 430px) {
  .instagram-shell {
    width: 100%;
    border-inline: 0;
  }
}

@media (max-height: 840px) and (min-width: 768px) and (max-width: 1023px) {
  .instagram-shell {
    grid-template-rows: 90px 28px auto minmax(0, 1fr);
    width: min(100%, 430px, calc(75dvh - 134px));
  }

  .profile-panel {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 8px;
  }

  .profile-avatar {
    width: 54px;
    height: 54px;
    padding: 2px;
  }

  .profile-avatar img {
    border-width: 2px;
  }

  .profile-content {
    gap: 2px;
  }

  .profile-content h1 {
    font-size: 14px;
  }

  .profile-stats {
    gap: 5px;
  }

  .profile-stats span,
  .profile-stats strong,
  .profile-bio strong {
    font-size: 8px;
  }

  .profile-bio {
    gap: 0;
    font-size: 7px;
    line-height: 1.15;
  }

  .profile-bio > span {
    display: none;
  }

  .profile-headline {
    font-size: 8px;
  }

  .profile-cta {
    gap: 4px;
    min-height: 18px;
    font-size: 7px;
  }

  .profile-cta-dday {
    padding: 1px 3px;
    font-size: 6px;
  }

  .profile-tab-label {
    display: none;
  }

  .business-footer {
    gap: 2px;
    padding: 3px 10px;
  }

  .footer-lead strong {
    font-size: 5px;
  }

  .business-grid {
    gap: 3px 8px;
    margin-top: 0;
  }

  .business-grid > div {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px;
  }

  .business-grid > div:nth-child(odd) {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .business-grid > div:nth-child(even) {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .business-grid .mail-order-info {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .business-grid dt {
    font-size: 5px;
  }

  .business-grid dd {
    font-size: 6px;
  }
}

@media (max-height: 620px) {
  .seminar-reel-poster {
    top: 14%;
    bottom: 16%;
  }

  .seminar-reel-poster h2 {
    margin-top: 10px;
    font-size: 38px;
  }

  .seminar-reel-lead {
    margin-top: auto;
    margin-bottom: 0;
    font-size: 13px;
  }

  .seminar-reel-sticker {
    margin-top: 18px;
    padding-block: 8px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .instagram-shell {
    grid-template-rows: auto 44px auto auto;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    border-inline: 0;
  }

  .profile-panel {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    min-height: 132px;
    padding: 14px;
  }

  .profile-avatar {
    width: 74px;
    height: 74px;
    padding: 3px;
  }

  .profile-content {
    gap: 5px;
  }

  .profile-content h1 {
    font-size: 17px;
  }

  .profile-stats {
    gap: 6px;
  }

  .profile-stats span {
    font-size: 11px;
  }

  .profile-stats strong {
    font-size: 12px;
  }

  .profile-bio {
    gap: 2px;
    font-size: 11px;
    line-height: 1.3;
  }

  .profile-bio strong {
    font-size: 12px;
  }

  .profile-cta {
    min-height: 38px;
    font-size: 13px;
  }

  .profile-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 44px;
    background: var(--surface);
  }

  .feed-grid {
    overflow: visible;
    scroll-margin-top: 44px;
  }

  .business-footer {
    min-height: 86px;
    padding: 8px 14px;
    overflow: visible;
  }

  .footer-lead strong {
    font-size: 7px;
  }

  .business-grid {
    gap: 4px 14px;
    margin-top: 0;
  }

  .business-grid > div {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 6px;
  }

  .business-grid > div:nth-child(odd) {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .business-grid > div:nth-child(even) {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .business-grid .mail-order-info {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .business-grid dt {
    font-size: 6px;
  }

  .business-grid dd {
    font-size: 7px;
  }

  .seminar-reel-dialog {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .application-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .application-sheet {
    height: 100%;
  }

  .application-dialog-header {
    min-height: 60px;
    padding: 10px 12px;
  }

  .application-dialog-body {
    padding: 14px;
  }

  .optional-fields-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 1024px) {
  html,
  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    background: var(--surface);
  }

  .instagram-shell {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "profile tabs"
      "profile feed"
      "profile footer";
    align-content: start;
    width: min(100%, 980px);
    height: auto;
    min-height: 100dvh;
    padding: 40px 32px 0;
    column-gap: 40px;
    overflow: visible;
    border-inline: 0;
  }

  .profile-panel {
    grid-area: profile;
    position: sticky;
    top: 40px;
    align-self: start;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 18px;
    padding: 0;
  }

  .profile-avatar {
    width: 150px;
    height: 150px;
    padding: 5px;
  }

  .profile-content {
    gap: 12px;
  }

  .profile-content h1 {
    font-size: 26px;
  }

  .profile-stats span {
    font-size: 14px;
  }

  .profile-stats strong {
    font-size: 16px;
  }

  .profile-headline {
    font-size: 16px;
  }

  .profile-bio strong {
    font-size: 14px;
  }

  .profile-cta {
    justify-self: stretch;
    min-height: 42px;
    font-size: 14px;
  }

  .profile-tabs {
    grid-area: tabs;
    min-height: 48px;
  }

  .feed-grid {
    grid-area: feed;
    gap: 4px;
    overflow: visible;
  }

  .tile-pin {
    padding: 4px 7px;
    font-size: 10px;
  }

  .tile-pin::before {
    content: none;
  }

  .business-footer {
    grid-area: footer;
    justify-content: flex-start;
    padding: 20px 0 32px;
    background: transparent;
  }

  .footer-lead strong,
  .business-grid dt,
  .business-grid dd {
    font-size: 11px;
  }

  .business-grid > div,
  .business-grid > div:nth-child(odd),
  .business-grid > div:nth-child(even),
  .business-grid .mail-order-info {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}
