:root {
  --bg: #F5F8FB;
  --surface: #FFFFFF;
  --surface-soft: #F9FCFF;
  --text: #24313F;
  --muted: #6B7280;
  --primary: #4BA3C7;
  --primary-hover: #3A91B4;
  --primary-soft: #E8F5FA;
  --success: #3B9F70;
  --success-soft: #EAF8F1;
  --warning: #B98513;
  --warning-soft: #FFF7DF;
  --danger: #C95050;
  --danger-soft: #FDEDED;
  --info-soft: #EAF6FF;
  --border: #DDE6EE;
  --shadow: 0 16px 40px rgba(36, 49, 63, .08);
  --shadow-soft: 0 10px 24px rgba(36, 49, 63, .06);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(75, 163, 199, .16), transparent 34rem),
    linear-gradient(180deg, #F5F8FB 0%, #F9FBFD 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  letter-spacing: .02em;
}

img, svg { max-width: 100%; }

a {
  color: #28799D;
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}

a:hover { color: var(--primary-hover); }

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

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(75, 163, 199, .45);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 230, 238, .88);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #66C2A2);
  box-shadow: 0 8px 18px rgba(75, 163, 199, .24);
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-current {
  color: #1F6F8D;
  background: var(--primary-soft);
}

.nav-toggle { display: none; }

.hero {
  padding: 62px 0 38px;
}

.hero--home { padding: 76px 0 48px; }

.hero__inner {
  display: grid;
  gap: 16px;
}

.hero__eyebrow,
.section-eyebrow,
.tool-eyebrow {
  margin: 0;
  color: #2B83A5;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero h1,
.page-section h2,
.tool-section h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: .01em;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.hero--compact h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero__lead {
  max-width: 760px;
  margin: 0;
  color: #415164;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .88rem;
}

.breadcrumb a { color: var(--muted); }

.page-section,
.tool-section {
  padding: 28px 0;
}

.page-section:last-child,
.tool-section:last-child {
  padding-bottom: 72px;
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 18px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card,
.tool-card,
.related-card,
.info-box,
.policy-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.card,
.info-box,
.policy-card {
  padding: 24px;
}

.tool-card,
.related-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tool-card:hover,
.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(75, 163, 199, .48);
  box-shadow: var(--shadow);
}

.tool-card__tag,
.related-card__eyebrow,
.mini-label {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  color: #1F6F8D;
  background: var(--primary-soft);
  font-size: .76rem;
  font-weight: 800;
}

.tool-card strong,
.related-card strong {
  font-size: 1.08rem;
  line-height: 1.45;
}

.tool-card span:last-child,
.related-card span:last-child {
  color: var(--muted);
  font-size: .94rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: start;
  gap: 22px;
}

.tool-panel,
.result-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-panel__header,
.result-panel__header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FFFFFF, #F8FCFF);
}

.tool-panel__header h2,
.result-panel__header h2 {
  margin: 0;
  font-size: 1.18rem;
}

.tool-panel__header p,
.result-panel__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.tool-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field label,
.field legend {
  color: #344457;
  font-size: .92rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #CCD9E4;
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--text);
  padding: 12px 13px;
  box-shadow: inset 0 1px 0 rgba(36, 49, 63, .03);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(75, 163, 199, .14);
}

.help-text {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(75, 163, 199, .24);
}

.btn--primary:hover { background: var(--primary-hover); color: #fff; }

.btn--secondary {
  color: #2A6F8B;
  background: var(--primary-soft);
  border-color: rgba(75, 163, 199, .18);
}

.btn--ghost {
  color: var(--muted);
  background: #F2F6FA;
  border-color: var(--border);
}

.btn--small {
  min-height: 36px;
  padding: 7px 12px;
  font-size: .86rem;
}

.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-panel__body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.result-main {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--info-soft);
}

.result-main__label {
  color: #356173;
  font-size: .86rem;
  font-weight: 800;
}

.result-main__value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}

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

.result-mini {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.result-mini span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.result-mini strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.status-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #F7FAFD;
}

.status-box strong { line-height: 1.45; }
.status-box p { margin: 0; color: var(--muted); font-size: .92rem; }
.status-box ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .92rem; }

.status-box--success {
  color: #22694A;
  border-color: rgba(95, 191, 143, .42);
  background: var(--success-soft);
}

.status-box--warning {
  color: #7A5208;
  border-color: rgba(244, 201, 93, .58);
  background: var(--warning-soft);
}

.status-box--danger {
  color: #943B3B;
  border-color: rgba(230, 120, 120, .46);
  background: var(--danger-soft);
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #F8FBFE;
  border: 1px solid var(--border);
}

.content-stack {
  display: grid;
  gap: 18px;
}

.content-card h2,
.content-card h3,
.info-box h2,
.policy-card h2 {
  margin-top: 0;
  line-height: 1.35;
}

.content-card p,
.content-card li,
.info-box p,
.info-box li,
.policy-card p,
.policy-card li {
  color: #46576A;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
}

.faq-list details > div {
  padding: 0 18px 16px;
  color: #46576A;
}

.ad-placeholder,
.affiliate-placeholder {
  border: 1px dashed #BFD0DD;
  border-radius: var(--radius-lg);
  padding: 18px;
  color: var(--muted);
  background: rgba(255,255,255,.6);
  font-size: .92rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.site-footer__inner {
  display: grid;
  gap: 10px;
  padding: 28px 0;
}

.site-footer__brand {
  margin: 0;
  font-weight: 900;
}

.site-footer__nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .9rem;
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.text-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-link-list a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #2A6F8B;
  font-weight: 800;
  text-decoration: none;
  font-size: .9rem;
}

.inline-note {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: #6F4B08;
  font-size: .92rem;
}

@media (max-width: 900px) {
  .site-header__inner { min-height: 64px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: #fff;
    font-weight: 800;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    justify-content: flex-start;
  }
  .site-nav.is-open { display: flex; }
  .grid--tools,
  .grid--two,
  .tool-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero { padding: 34px 0 24px; }
  .page-section,
  .tool-section { padding: 20px 0; }
  .form-grid--three,
  .form-grid--two,
  .result-subgrid { grid-template-columns: 1fr; }
  .tool-panel__header,
  .result-panel__header,
  .tool-form,
  .result-panel__body,
  .card,
  .info-box,
  .policy-card { padding: 18px; }
  .site-logo__text { font-size: .95rem; }
  .button-row .btn { width: 100%; }
}

/* YouTube title counter preview enhancements */
.tool-layout--wide {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
}

.page-section--tight {
  padding-top: 8px;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 22px;
  align-items: start;
}

.preview-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-head h2 {
  margin: 0;
}

.inline-note--info {
  background: var(--info-soft);
  color: #315B70;
}

.textarea--compact {
  min-height: 132px;
}

.preview-card-wrap {
  overflow: hidden;
}

.preview-sample {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(75, 163, 199, .08), transparent 42%),
    #F7FAFD;
}

.mock-youtube-list {
  display: grid;
  grid-template-columns: minmax(180px, 42%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.mock-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: rgba(255,255,255,.9);
  background:
    linear-gradient(135deg, rgba(75, 163, 199, .82), rgba(95, 191, 143, .78)),
    #3A91B4;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}

.mock-thumb--wide {
  aspect-ratio: 16 / 9;
}

.mock-video-info,
.mock-mobile-card,
.mock-post-card {
  min-width: 0;
}

.mock-title {
  margin: 0;
  color: #1F2A37;
  font-weight: 850;
  line-height: 1.44;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.mock-title--two-lines {
  -webkit-line-clamp: 2;
}

.mock-title--three-lines {
  -webkit-line-clamp: 3;
}

.mock-meta,
.mock-desc,
.mock-post-text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.mock-desc {
  margin-top: 10px;
}

.mock-mobile-card {
  max-width: 420px;
  margin-inline: auto;
  padding: 12px;
  border: 1px solid #D8E4EF;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.mock-mobile-row,
.mock-post-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
}

.mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #66C2A2);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}

.mock-post-card {
  max-width: 520px;
  margin-inline: auto;
  padding: 16px;
  border: 1px solid #D8E4EF;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.mock-post-head {
  margin-top: 0;
  margin-bottom: 10px;
}

.mock-post-head strong {
  display: block;
  line-height: 1.2;
}

.mock-post-text {
  margin-bottom: 12px;
  color: #1F2A37;
}

.mock-phone {
  width: min(100%, 310px);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid #CAD8E5;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mock-phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  background: #111827;
}

.mock-vertical-video {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.42);
  background:
    radial-gradient(circle at 30% 20%, rgba(75, 163, 199, .52), transparent 32%),
    radial-gradient(circle at 70% 75%, rgba(95, 191, 143, .4), transparent 28%),
    linear-gradient(160deg, #162235, #0B1220);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.mock-vertical-actions {
  position: absolute;
  right: 12px;
  bottom: 92px;
  display: grid;
  gap: 11px;
}

.mock-vertical-actions span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
}

.mock-caption {
  position: absolute;
  left: 12px;
  right: 58px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.42);
}

.mock-caption .mock-title,
.mock-caption .mock-account {
  color: #fff;
}

.mock-account {
  margin: 0 0 5px;
  font-weight: 900;
  line-height: 1.2;
}

.candidate-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.candidate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #F8FBFE;
}

.candidate-card--success {
  border-color: rgba(95, 191, 143, .38);
  background: var(--success-soft);
}

.candidate-card--warning {
  border-color: rgba(244, 201, 93, .5);
  background: var(--warning-soft);
}

.candidate-card--danger {
  border-color: rgba(230, 120, 120, .42);
  background: var(--danger-soft);
}

.candidate-card__main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.candidate-card__main strong {
  line-height: 1.45;
  word-break: break-word;
}

.candidate-card__main p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.candidate-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  color: #344457;
  font-size: .86rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .preview-layout,
  .tool-layout--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .preview-head {
    display: grid;
  }
  .preview-sample {
    padding: 14px;
  }
  .mock-youtube-list,
  .candidate-card {
    grid-template-columns: 1fr;
  }
  .candidate-card__meta {
    justify-content: flex-start;
  }
  .mock-phone {
    width: min(100%, 280px);
  }
}

/* v0.2.2: stronger SNS/video mock preview frames */
.preview-card-wrap .inline-note {
  margin-bottom: 16px;
}

.preview-sample {
  background:
    radial-gradient(circle at 20% 0%, rgba(75, 163, 199, .12), transparent 34%),
    linear-gradient(180deg, #FFFFFF 0%, #F6FAFD 100%);
}

.mock-youtube-shell {
  max-width: 820px;
  margin-inline: auto;
  border: 1px solid #D8E4EF;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(36, 49, 63, .08);
  overflow: hidden;
}

.mock-service-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid #E5EEF6;
  background: linear-gradient(180deg, #FFFFFF, #F8FBFE);
  color: #5C6B7C;
  font-size: .82rem;
}

.mock-service-bar strong {
  color: #1F2A37;
}

.mock-service-dot {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: #FF0033;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.92);
}

.mock-youtube-shell .mock-youtube-list {
  padding: 16px;
}

.mock-thumb {
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 33, 54, .18), rgba(18, 33, 54, .1)),
    radial-gradient(circle at 24% 28%, rgba(255,255,255,.34), transparent 22%),
    radial-gradient(circle at 72% 68%, rgba(95, 191, 143, .46), transparent 24%),
    linear-gradient(135deg, #2E8FB5, #4BA3C7 48%, #66C2A2);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    0 14px 28px rgba(31, 75, 101, .16);
}

.mock-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.42));
  z-index: 0;
}

.mock-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .24);
  z-index: 2;
}

.mock-play::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #2A7FA2;
}

.mock-duration {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0,0,0,.76);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.mock-thumb-label {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.mock-video-info {
  padding-top: 2px;
}

.mock-video-info .mock-title,
.mock-mobile-text .mock-title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.mock-title {
  word-break: break-word;
}

.mock-mobile-card {
  max-width: 390px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
}

.mock-mobile-card .mock-thumb {
  border-radius: 22px 22px 0 0;
  box-shadow: none;
}

.mock-mobile-row {
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  padding: 12px;
  margin-top: 0;
}

.mock-kebab {
  color: #7B8794;
  font-weight: 900;
  line-height: 1;
}

.mock-post-card--x {
  border-radius: 24px;
  background: #FFFFFF;
}

.mock-post-card--x .mock-thumb {
  border-radius: 20px;
  margin-top: 12px;
}

.mock-social-actions {
  padding-top: 8px;
  border-top: 1px solid #EEF3F7;
}

.mock-phone {
  position: relative;
  width: min(100%, 330px);
  padding: 12px 10px 10px;
  border: 1px solid #C8D7E5;
  border-radius: 36px;
  background: linear-gradient(180deg, #FFFFFF, #EDF3F8);
  box-shadow:
    0 24px 44px rgba(15, 23, 42, .18),
    inset 0 0 0 1px rgba(255,255,255,.88);
}

.mock-phone__speaker {
  width: 58px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #C9D3DD;
}

.mock-phone__screen {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.mock-phone__topbar {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.84);
  font-size: .72rem;
  font-weight: 900;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.mock-vertical-video {
  background:
    linear-gradient(180deg, rgba(0,0,0,.32), transparent 22%, transparent 58%, rgba(0,0,0,.72)),
    radial-gradient(circle at 28% 18%, rgba(75, 163, 199, .7), transparent 26%),
    radial-gradient(circle at 70% 62%, rgba(95, 191, 143, .5), transparent 30%),
    linear-gradient(160deg, #172033, #0B1220);
}

.mock-vertical-video::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 66px;
  top: 92px;
  height: 138px;
  border-radius: 32px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  transform: rotate(-6deg);
}

.mock-vertical-video > span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.62);
}

.mock-vertical-actions {
  right: 12px;
  bottom: 104px;
  z-index: 3;
}

.mock-vertical-actions span {
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  font-size: .8rem;
  font-weight: 900;
  backdrop-filter: blur(6px);
}

.mock-caption {
  z-index: 3;
  left: 14px;
  right: 62px;
  bottom: 45px;
}

.mock-caption-meta {
  margin: 5px 0 0;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  line-height: 1.35;
}

.mock-bottom-nav {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 12px 28px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}

.mock-bottom-nav span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

@media (max-width: 620px) {
  .mock-youtube-shell .mock-youtube-list {
    padding: 12px;
  }
  .mock-play {
    width: 46px;
    height: 46px;
  }
  .mock-play::before {
    left: 19px;
    top: 14px;
  }
}

/* v0.2.3: measured truncation rule display */
.preview-rule-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #D8E8F2;
  border-radius: 16px;
  background: #F4FAFE;
}

.preview-rule-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.preview-rule-row span {
  color: #5C6B7C;
  font-size: .74rem;
  font-weight: 800;
}

.preview-rule-row strong {
  color: #213244;
  font-size: .84rem;
  line-height: 1.35;
}

.mock-title--measured {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.status-box__sub {
  margin-top: 8px;
  font-size: .84rem;
  font-weight: 800;
  color: #526274;
}

.mock-caption .mock-title--measured {
  line-height: 1.36;
}

@media (max-width: 620px) {
  .preview-rule-card {
    grid-template-columns: 1fr;
  }
}


/* v0.2.4: fixed target labels for X timeline / TikTok feed / Instagram Reels */
.mock-timeline-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #F2F6FA;
  color: #526274;
  font-size: .76rem;
  font-weight: 900;
}
