:root {
  --page: #1b1a17;
  --surface: #23211d;
  --surface-raised: #292722;
  --surface-soft: #201f1b;
  --surface-blue: #28231c;
  --input: #26241f;
  --text: #f6f1e8;
  --muted: #aaa297;
  --line: #3c3932;
  --line-strong: #504a40;
  --primary: #ff9800;
  --primary-dark: #e98b00;
  --primary-soft: rgba(255, 152, 0, 0.13);
  --success: #5dca96;
  --danger: #ff737d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius-md: 14px;
  --radius-lg: 18px;
  --container: 1200px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--page);
}
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.public-mode.is-navigating::before {
  content: '';
  position: fixed;
  z-index: 10000;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  background-size: 200% 100%;
  animation: page-loading 1s linear infinite;
  pointer-events: none;
}
@keyframes page-loading {
  to { background-position: -200% 0; }
}
::view-transition-old(root) { animation: page-out 120ms ease-in both; }
::view-transition-new(root) { animation: page-in 180ms ease-out both; }
@keyframes page-out { to { opacity: .72; } }
@keyframes page-in { from { opacity: .72; } }
@media (prefers-reduced-motion: reduce) {
  body.public-mode.is-navigating::before { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.018em;
}
h1 {
  font-size: clamp(30px, 4vw, 40px);
}
h2 {
  font-size: clamp(22px, 3vw, 28px);
}
h3 {
  font-size: 18px;
}
:focus-visible {
  outline: 3px solid rgba(255, 152, 0, 0.38);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #1b1a17;
  background: var(--primary);
  transform: translateY(-180%);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  transform: none;
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  background: var(--page);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffad33, var(--primary));
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.2);
}
.brand-mark > span {
  width: 15px;
  height: 15px;
  display: block;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-38deg);
}
.brand-logo {
  width: auto;
  max-width: 132px;
  height: 50px;
  display: block;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition:
    color 0.18s,
    background 0.18s;
}
.site-nav a:hover,
.site-nav .is-current {
  color: var(--primary);
}
.nav-home,
.nav-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
}
.nav-group {
  position: relative;
}
.nav-trigger {
  gap: 5px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.nav-trigger:hover,
.nav-group.is-open .nav-trigger {
  color: var(--primary);
  background: var(--primary-soft);
}
.nav-trigger > span {
  font-size: 13px;
  transition: transform 0.18s;
}
.nav-dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: 310px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-md);
}
.nav-group:nth-last-child(-n + 2) .nav-dropdown {
  right: 0;
  left: auto;
}
.nav-group.is-open .nav-dropdown {
  display: grid;
}
.nav-dropdown > p {
  margin: 2px 9px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-dropdown > a,
.nav-unavailable {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px;
  border-radius: 8px;
  margin-top: 5px;
}
.nav-dropdown > a:hover,
.nav-dropdown > a[aria-current='page'] {
  color: var(--primary);
  background: var(--primary-soft);
}
.nav-dropdown small {
  flex: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.nav-unavailable {
  color: #716b62;
  font-size: 12px;
  font-weight: 600;
}
.nav-unavailable small {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 9px;
}

.hero {
  padding: 58px 24px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 152, 0, 0.09), transparent 35%), var(--page);
  border-top: 1px solid var(--line);
}
.hero-copy,
.tool-shell,
.trust-strip {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
.hero-copy {
  max-width: 760px;
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-copy h1 {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 760;
  letter-spacing: -0.03em;
}
.lede {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}
.tool-shell {
  margin-top: 32px;
  scroll-margin-top: 90px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.platform-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.platform-tabs::-webkit-scrollbar {
  display: none;
}
.platform-tabs a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  transition:
    color 0.18s,
    background 0.18s;
}
.platform-tabs a:hover {
  color: var(--text);
  background: var(--surface-raised);
}
.platform-tabs a[aria-current='page'] {
  color: var(--primary);
  background: var(--primary-soft);
}
.download-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  padding: 24px;
}
.download-form > label {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.input-wrap {
  min-height: 58px;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--input);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.11);
}
.input-link-icon {
  width: 19px;
  height: 19px;
  margin-left: 6px;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.input-wrap:focus-within .input-link-icon {
  transform: rotate(-16deg);
}
.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.input-wrap input::placeholder {
  color: #777168;
}
.text-action {
  min-height: 42px;
  min-width: 48px;
  padding: 0 8px;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.download-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  color: #1b1a17;
  background: var(--primary);
  box-shadow: 0 9px 24px rgba(255, 152, 0, 0.18);
  text-decoration: none;
  cursor: pointer;
  font-weight: 750;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.download-button:hover {
  background: #ffa51f;
  border-color: #ffa51f;
  transform: translateY(-1px);
  box-shadow: 0 11px 28px rgba(255, 152, 0, 0.24);
}
.download-button:disabled {
  opacity: 1;
  cursor: wait;
  transform: none;
  box-shadow: 0 7px 22px rgba(255, 152, 0, 0.16);
}
.button-spinner {
  width: 17px;
  height: 17px;
  flex: none;
  border: 2px solid rgba(27, 26, 23, 0.28);
  border-top-color: #1b1a17;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.form-meta {
  grid-column: 1 / -1;
  min-height: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.form-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.field-error {
  color: var(--danger) !important;
  font-weight: 650;
}

.activity-card,
.analysis-card,
.progress-card,
.result-card,
.error-card {
  width: calc(100% - 48px);
  margin: 24px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.activity-card {
  min-height: 300px;
  padding: clamp(28px, 5vw, 44px);
  place-content: center;
  place-items: center;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 152, 0, 0.07), transparent 45%),
    var(--surface-soft);
}
.activity-card:not([hidden]) {
  display: grid;
}
.activity-card .loading-animation {
  margin: 0 auto;
}
.activity-copy h2 {
  margin: 4px 0 6px;
  font-size: 20px;
}
.activity-copy > p:last-child {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.analysis-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  border-color: rgba(255, 152, 0, 0.36);
}
.analysis-media {
  width: 180px;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #12110f;
}
.analysis-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}
.analysis-copy {
  min-width: 0;
}
.analysis-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.analysis-media-fallback {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.analysis-copy h2 {
  margin: 3px 0 4px;
  font-size: 19px;
}
.analysis-copy h2,
.result-card h2 {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.analysis-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.format-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px;
}
.gif-settings {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.gif-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}
.gif-settings-heading .kicker { margin: 0; }
.gif-settings-heading h3 { margin: 2px 0 0; font-size: 15px; line-height: 1.3; }
.gif-settings-badge {
  padding: 4px 9px;
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.gif-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 9px;
}
.gif-setting { display: grid; gap: 6px; min-width: 0; color: var(--text); font-size: 12px; font-weight: 700; }
.gif-setting small { display: block; color: var(--muted); font-size: 10px; font-weight: 450; }
.gif-setting select {
  width: 100%;
  min-width: 0;
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--input);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.gif-setting select:hover { border-color: var(--primary); }
.gif-setting select:focus-visible { border-color: var(--primary); }
.gif-settings-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.format-option {
  min-width: 0;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.format-option:hover:not(:disabled) {
  border-color: var(--primary);
}
.format-option[aria-checked='true'] {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 3px 0 var(--primary);
}
.format-option:disabled {
  color: #777168;
  cursor: not-allowed;
  opacity: 0.72;
}
.format-option > span {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}
.format-option strong,
.format-option small,
.format-option em {
  overflow-wrap: anywhere;
}
.format-option em {
  min-width: 0;
  max-width: 48%;
}
.format-option strong {
  font-size: 14px;
}
.format-option small {
  color: var(--muted);
  font-size: 10px;
}
.format-option em {
  color: var(--primary);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}
.format-option:disabled em {
  color: var(--danger);
}
.analysis-prepare {
  width: 100%;
  min-height: 50px;
}
.analysis-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.analysis-actions .button {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
}
.progress-card {
  min-height: 210px;
}
.progress-card:not([hidden]) {
  display: block;
}
.loading-animation {
  width: 148px;
  height: 148px;
  display: block;
}
.progress-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.progress-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-heading > div {
  min-width: 0;
}
.activity-spinner {
  width: 30px;
  height: 30px;
  flex: none;
  border: 3px solid var(--line-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.progress-top h2,
.result-card h2,
.error-card h2 {
  margin: 4px 0 5px;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.progress-top > strong {
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.progress-track {
  position: relative;
  width: 100%;
  height: 9px;
  display: block;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid #3f3a31;
  border-radius: 99px;
  background: #151411;
}
.progress-track > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #e78500, var(--primary));
  box-shadow: 0 0 16px rgba(255, 152, 0, 0.25);
  transition: width 0.25s linear;
}
.progress-track.is-indeterminate > span {
  width: 38%;
  animation: progress-scan 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.progress-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.progress-stats div {
  padding: 10px 12px;
  border: 1px solid #34312b;
  border-radius: 9px;
  background: var(--surface);
}
.progress-stats dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.progress-stats dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.progress-detail {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.progress-cancel {
  margin-top: 15px;
}
.button {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-weight: 650;
}
.button-dark {
  color: #1b1a17;
  border-color: var(--primary);
  background: var(--primary);
  font-size: 0.7rem;
}
.button-quiet {
  color: var(--muted);
  background: transparent;
  font-size: 0.7rem;
}
.result-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px 22px;
  align-items: center;
  border-color: rgba(255, 152, 0, 0.45);
  background: #211f1b;
}
.result-content {
  min-width: 0;
}
.result-media {
  grid-row: 1 / 4;
  width: 180px;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #12110f;
}
.result-media img,
.result-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #12110f;
}
.result-media video {
  object-fit: contain;
}
.result-media [data-result-gif] {
  object-fit: contain;
}
.result-art {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 21px;
}
.result-media .result-art {
  width: 100%;
  height: 100%;
  border-radius: 0;
  color: #1b1a17;
  background: var(--primary);
}
.result-card p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}
.result-card audio {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 440px;
  margin: 14px 0 0;
  color-scheme: dark;
}
.result-card audio[hidden] {
  display: none;
}
.result-card .result-codec-note {
  margin-top: 12px;
  color: var(--primary);
  line-height: 1.5;
}
.quality-picker {
  grid-column: 2;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.quality-picker > p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}
.quality-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quality-picker small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.quality-option {
  min-width: 66px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface-raised);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.quality-option:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.quality-option[aria-pressed='true'] {
  border-color: var(--primary);
  color: #1b1a17;
  background: var(--primary);
  cursor: default;
}
.result-card .result-download {
  min-height: 50px;
}
.result-card > [data-restart] {
  justify-self: start;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.expiry {
  color: var(--success) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.error-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border-color: rgba(255, 115, 125, 0.35);
  background: #281d1e;
}
.error-card p {
  margin-bottom: 0;
  color: #d9a5a8;
}
.error-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--danger);
  font-weight: 800;
}
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 23px 0 42px;
}
.trust-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.trust-strip b {
  margin-right: 5px;
  color: var(--success);
}

.content-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 68px 24px;
}
.section-intro {
  margin-bottom: 44px;
}
.section-intro.centered {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-intro h2,
.quality-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 28px);
}
.section-intro > p:last-child,
.quality-panel p:last-child {
  color: var(--muted);
}
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-list li {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-list li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 40px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}
.step-list h3 {
  margin-bottom: 8px;
  font-size: 19px;
}
.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.quality-panel {
  max-width: 930px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin: 12px auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-blue);
}
.quality-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #1b1a17;
  background: var(--primary);
  font-size: 25px;
}
.quality-panel h2 {
  margin-top: 2px;
  font-size: 26px;
}
.quality-panel p:last-child {
  margin: 0;
}
.device-guide {
  padding-top: 96px;
}
.device-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.device-cards article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  background: #fff;
}
.device-cards article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 13px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 800;
}
.device-cards h3 {
  margin-bottom: 9px;
  font-size: 18px;
}
.device-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.faq {
  max-width: 880px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  font-weight: 680;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.18s;
}
.faq-list details[open] summary span {
  transform: rotate(45deg);
}
.faq-list details p {
  max-width: 760px;
  margin: -5px 0 23px;
  color: var(--muted);
  font-size: 14px;
}
.crosslinks {
  max-width: 920px;
  padding-top: 48px;
}
.crosslinks > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.crosslinks a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #434c60;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition:
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.crosslinks a:hover {
  color: var(--primary);
  border-color: #c9c5ff;
  transform: translateY(-1px);
}
.crosslinks a span {
  color: var(--primary);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 54px 24px 30px;
  border-top: 1px solid var(--line);
}
.site-footer > div > p {
  max-width: 290px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.site-footer nav strong {
  margin-bottom: 5px;
  font-size: 13px;
}
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.site-footer nav a:hover {
  color: var(--primary);
}
.fine-print {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #8a91a0;
  font-size: 11px;
}
.toast {
  position: fixed;
  z-index: 60;
  top: 88px;
  right: 18px;
  max-width: 320px;
  padding: 11px 15px;
  border-radius: 9px;
  color: #fff;
  background: var(--text);
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
.noscript {
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid #f1dfad;
  color: #75591c;
  background: #fff8e5;
  font-size: 13px;
}

.legal-page,
.styleguide {
  max-width: 820px;
  min-height: 68dvh;
  margin: 0 auto;
  padding: 82px 24px;
}
.legal-page h1,
.styleguide h1 {
  margin: 4px 0 24px;
  font-size: clamp(30px, 4vw, 38px);
}
.legal-page > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.legal-date {
  color: var(--muted) !important;
  font-size: 12px !important;
}
.error-page {
  min-height: 72dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 70px 24px;
  text-align: center;
  background: var(--surface-soft);
}
.error-page > strong {
  color: var(--primary-soft);
  font-size: clamp(100px, 20vw, 220px);
  line-height: 0.75;
}
.error-page h1 {
  max-width: 720px;
  margin-bottom: 30px;
  font-size: clamp(28px, 4vw, 38px);
}
.style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.admin-login {
  min-height: 76dvh;
  display: grid;
  place-items: center;
  padding: 50px 20px;
  background: var(--surface-soft);
}
.admin-login form {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.admin-login h1 {
  margin: 4px 0 26px;
  font-size: 28px;
}
.admin-login label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  color: #394357;
  font-size: 13px;
  font-weight: 700;
}
.admin-login input:not([type='hidden']) {
  min-height: 49px;
  padding: 0 12px;
  border: 1px solid #d8dce6;
  border-radius: 10px;
  outline: 0;
}
.admin-login input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.1);
}
.admin-login .download-button {
  width: 100%;
  margin-top: 10px;
}
.admin-error {
  padding: 10px 12px;
  border-radius: 8px;
  color: #8b353d;
  background: #fff0f1;
  font-size: 13px;
  font-weight: 650;
}
.admin-shell {
  min-height: 78dvh;
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 44px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}
.admin-shell aside {
  padding: 8px 20px 8px 0;
  border-right: 1px solid var(--line);
}
.admin-shell aside nav {
  display: grid;
  gap: 3px;
  margin: 22px 0;
}
.admin-shell aside a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  text-transform: capitalize;
  font-size: 13px;
  font-weight: 600;
}
.admin-shell aside a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.admin-shell h1 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 34px);
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 42px;
}
.admin-stats article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.admin-stats article span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-stats article strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  color: var(--muted);
  background: #fafbfc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.empty-state {
  min-height: 270px;
  display: grid;
  place-content: center;
  padding: 30px;
  border: 1px dashed #ced3de;
  border-radius: 14px;
  color: var(--muted);
  background: #fafbfc;
  text-align: center;
}
.empty-state strong {
  color: var(--text);
}

.admin-shell aside a[aria-current='page'] {
  color: var(--primary);
  background: var(--primary-soft);
}
.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.admin-page-head h1 {
  margin-bottom: 10px;
}
.admin-page-head > div > p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.security-note {
  flex: none;
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  border: 1px solid #d7e9df;
  border-radius: 11px;
  color: #557066;
  background: #f4fbf7;
  font-size: 11px;
}
.security-note b {
  color: #13764e;
  font-size: 12px;
}
.admin-notice {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #4e586a;
  background: #f8f9fb;
  font-size: 13px;
  font-weight: 650;
}
.admin-notice-success {
  color: #176a4a;
  border-color: #cce7da;
  background: #f1faf6;
}
.admin-notice-error {
  color: #873b43;
  border-color: #f0cbd0;
  background: #fff4f5;
}
.storage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.storage-grid > .empty-state {
  grid-column: 1 / -1;
}
.storage-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.storage-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: '';
  background: #e6e8ee;
}
.storage-card-active {
  border-color: #cbc8ff;
  box-shadow: 0 8px 24px rgba(75, 67, 178, 0.08);
}
.storage-card-active::before {
  background: linear-gradient(90deg, var(--primary), #49a1ff);
}
.storage-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.provider-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #252a36;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.storage-card-active .provider-mark {
  background: var(--primary);
}
.storage-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.storage-title-line h2 {
  margin: 0;
  font-size: 18px;
}
.storage-card-top p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.active-pill {
  padding: 3px 7px;
  border-radius: 99px;
  color: #116b46;
  background: #e5f7ee;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.storage-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 20px 0;
}
.storage-facts div {
  min-width: 0;
}
.storage-facts dt {
  margin-bottom: 3px;
  color: #9299a7;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.storage-facts dd {
  overflow: hidden;
  margin: 0;
  color: #424b5d;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.health-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 52px;
  padding: 11px;
  border-radius: 10px;
  background: #f7f8fa;
}
.health-row > span {
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 4px;
  border-radius: 50%;
  background: #a7adba;
  box-shadow: 0 0 0 4px #e9ebef;
}
.health-row div {
  display: grid;
  gap: 2px;
}
.health-row strong {
  color: #535c6d;
  font-size: 11px;
}
.health-row small {
  color: #7e8695;
  font-size: 10px;
  line-height: 1.4;
}
.health-healthy {
  background: #f1faf6;
}
.health-healthy > span {
  background: #1ba46f;
  box-shadow: 0 0 0 4px #d9f2e7;
}
.health-healthy strong {
  color: #126d49;
}
.health-failed {
  background: #fff4f5;
}
.health-failed > span {
  background: var(--danger);
  box-shadow: 0 0 0 4px #f9dfe2;
}
.health-failed strong {
  color: #8c3740;
}
.storage-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}
.storage-actions form {
  margin: 0;
}
.storage-actions .button {
  min-height: 38px;
  font-size: 11px;
}
.storage-edit {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.connection-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.65fr);
  gap: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfc;
}
.connection-intro h2 {
  margin: 0 0 11px;
  font-size: 23px;
}
.connection-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.storage-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.storage-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #424b5d;
  font-size: 11px;
  font-weight: 750;
}
.storage-form label > small {
  color: #8c93a0;
  font-size: 9px;
  font-weight: 550;
}
.storage-form input:not([type='hidden']):not([type='checkbox']),
.storage-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid #d8dce6;
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.storage-form input:focus,
.storage-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.1);
}
.storage-form .check-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.check-field input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--primary);
}
.check-field span {
  display: grid;
  gap: 3px;
}
.check-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.storage-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
}
.storage-form-actions .download-button {
  min-height: 48px;
}
.delivery-settings {
  max-width: 820px;
}
.delivery-settings fieldset {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.delivery-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.delivery-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.delivery-option.is-selected {
  border-color: rgba(255, 152, 0, 0.6);
  background: var(--primary-soft);
}
.delivery-option > input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary);
}
.delivery-option > span {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.delivery-option-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.delivery-option-title strong {
  color: var(--text);
  font-size: 15px;
}
.delivery-option-title small {
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--primary);
  background: rgba(255, 152, 0, 0.12);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.settings-panel {
  max-width: 880px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}
.settings-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.settings-panel-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
}
.settings-panel-head > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.settings-form {
  max-width: none;
}
.storage-form .wide-field {
  grid-column: 1 / -1;
}
.storage-form textarea {
  width: 100%;
  padding: 11px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: var(--input);
  font: inherit;
  font-size: 12px;
}
.storage-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.11);
}
.branding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.branding-upload {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.brand-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--input);
}
.brand-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-preview-small img {
  width: 34px;
  height: 34px;
}
.branding-upload-cover { grid-column: 1 / -1; grid-template-columns: 82px minmax(0, 1fr); }
.brand-preview-cover { width: 82px; height: 82px; border-radius: 13px; color: var(--primary); font-size: 31px; }
.brand-preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.branding-upload h3 {
  margin: 0;
  font-size: 14px;
}
.branding-upload p {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 10px;
}
.branding-upload input[type='file'] {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
}
.branding-upload .button,
.branding-upload > small {
  grid-column: 1 / -1;
}
.branding-upload > small {
  color: var(--muted);
}
.delivery-head {
  max-width: 820px;
  margin-top: 38px;
}
.edge-status-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.edge-status-row strong {
  font-size: 12px;
}
.edge-status-row small {
  color: var(--muted);
  font-size: 11px;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 115, 125, 0.1);
}
.status-dot.is-healthy {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(93, 202, 150, 0.12);
}
.storage-form .toggle-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.toggle-field > input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--primary);
}
.toggle-field > span {
  display: grid;
  gap: 3px;
}
.toggle-field strong {
  color: var(--text);
  font-size: 12px;
}
.toggle-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.settings-worker-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.worker-setup {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.35fr);
  gap: 22px;
  margin-bottom: 38px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}
.worker-setup h2,
.worker-connect-panel h2 {
  margin: 0 0 10px;
  font-size: 21px;
}
.worker-steps {
  display: grid;
  gap: 16px;
  margin: 22px 0 18px;
  padding: 0;
  list-style: none;
}
.worker-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
}
.worker-steps li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #1b1a17;
  background: var(--primary);
  font-size: 11px;
  font-weight: 850;
}
.worker-steps strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}
.worker-steps p,
.worker-secret-note,
.worker-connect-panel > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.worker-steps code {
  color: var(--text);
  font-size: 10px;
}
.worker-secret-note {
  padding: 11px 12px;
  border-left: 2px solid var(--primary);
  background: rgba(255, 152, 0, 0.06);
}
.worker-code-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.worker-code-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.worker-code-panel > div:first-child strong {
  font-size: 12px;
}
.worker-code-panel > div:first-child small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.worker-code-panel textarea {
  width: 100%;
  min-height: 360px;
  max-height: 54dvh;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  color: #d9d1c5;
  background: #171613;
  font:
    10px/1.55 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  tab-size: 2;
}
.worker-code-panel textarea:focus {
  border-color: var(--primary);
}
.worker-code-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.worker-code-actions .download-button {
  min-height: 44px;
  padding: 0 16px;
  font-size: 12px;
}
.worker-code-actions small {
  color: var(--success);
  font-size: 10px;
}
.worker-code-unavailable {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.workers-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.workers-section-head .eyebrow {
  margin-bottom: 2px;
}
.workers-section-head h2 {
  margin: 0;
  font-size: 20px;
}
.workers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.workers-grid > .empty-state {
  grid-column: 1 / -1;
}
.worker-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.worker-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: '';
  background: var(--line-strong);
}
.worker-card-active {
  border-color: rgba(255, 152, 0, 0.55);
}
.worker-card-active::before {
  background: var(--primary);
}
.worker-card-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.worker-card-head > div:last-child {
  min-width: 0;
}
.worker-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #1b1a17;
  background: #d6d0c6;
  font-size: 11px;
  font-weight: 900;
}
.worker-card-active .worker-mark {
  background: var(--primary);
}
.worker-card h3 {
  margin: 0;
  font-size: 15px;
}
.worker-card-head p {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.worker-health {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 58px;
  margin-top: 16px;
  padding: 11px;
  border-radius: 10px;
  background: var(--surface-soft);
}
.worker-health > span {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 4px;
  border-radius: 50%;
  background: #817a70;
  box-shadow: 0 0 0 4px #37332d;
}
.worker-health div {
  display: grid;
  gap: 2px;
}
.worker-health strong {
  font-size: 11px;
}
.worker-health small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.worker-health.health-healthy {
  background: rgba(48, 116, 80, 0.13);
}
.worker-health.health-healthy > span {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(93, 202, 150, 0.13);
}
.worker-health.health-healthy strong {
  color: var(--success);
}
.worker-health.health-unhealthy,
.worker-health.health-unreachable {
  background: #281d1e;
}
.worker-health.health-unhealthy > span,
.worker-health.health-unreachable > span {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 115, 125, 0.12);
}
.worker-health.health-unhealthy strong,
.worker-health.health-unreachable strong {
  color: var(--danger);
}
.worker-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.worker-actions form {
  margin: 0;
}
.worker-actions .button {
  min-height: 37px;
  padding: 7px 11px;
  font-size: 10px;
}
.worker-remove {
  margin-left: auto !important;
}
.button-danger-quiet {
  color: var(--danger);
  border-color: rgba(255, 115, 125, 0.25);
  background: transparent;
}
.worker-connect-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.65fr);
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}
.worker-disconnect-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.worker-disconnect-note strong {
  color: var(--text);
}

/* Dark industrial surface system: shared by the public site and admin. */
.step-list li,
.device-cards article,
.crosslinks a,
.admin-login form,
.admin-stats article,
table,
.storage-card,
.storage-form input:not([type='hidden']):not([type='checkbox']),
.storage-form select,
.storage-form .check-field {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}
.crosslinks a,
.storage-facts dd,
.storage-form label,
.admin-login label {
  color: var(--text);
}
.admin-login form,
.storage-card,
.admin-stats article {
  box-shadow: var(--shadow-sm);
}
.admin-login input:not([type='hidden']) {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--input);
}
.admin-login input:focus,
.storage-form input:focus,
.storage-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.11);
}
.admin-error,
.admin-notice-error {
  color: #ffb4b9;
  border-color: rgba(255, 115, 125, 0.3);
  background: #281d1e;
}
th,
.empty-state,
.connection-panel,
.admin-notice,
.health-row {
  background: var(--surface-soft);
}
.empty-state {
  border-color: var(--line-strong);
}
.security-note,
.admin-notice-success,
.health-healthy {
  color: #9de3bd;
  border-color: rgba(93, 202, 150, 0.32);
  background: rgba(48, 116, 80, 0.13);
}
.security-note b,
.health-healthy strong {
  color: var(--success);
}
.active-pill {
  color: #1b1a17;
  background: var(--primary);
}
.storage-card::before {
  background: var(--line-strong);
}
.storage-card-active {
  border-color: rgba(255, 152, 0, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.storage-card-active::before {
  background: var(--primary);
}
.provider-mark {
  color: #1b1a17;
  background: #d6d0c6;
}
.storage-card-active .provider-mark {
  color: #1b1a17;
  background: var(--primary);
}
.health-row > span {
  background: #817a70;
  box-shadow: 0 0 0 4px #37332d;
}
.health-healthy > span {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(93, 202, 150, 0.13);
}
.health-failed {
  background: #281d1e;
}
.health-failed > span {
  box-shadow: 0 0 0 4px rgba(255, 115, 125, 0.12);
}
.health-failed strong {
  color: var(--danger);
}
.noscript {
  color: #e8c78f;
  border-color: #5b4930;
  background: #2b2419;
}
.toast {
  color: #1b1a17;
  background: var(--primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes progress-scan {
  0% {
    left: -42%;
  }
  100% {
    left: 104%;
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    z-index: 30;
    top: 70px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav > .nav-home {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
  }
  .nav-trigger {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    padding: 0 10px;
  }
  .nav-dropdown,
  .nav-group:nth-last-child(-n + 2) .nav-dropdown {
    position: static;
    width: auto;
    margin: 0 4px 7px;
    padding: 6px;
    border-radius: 10px;
    box-shadow: none;
  }
  .nav-dropdown > p {
    margin-top: 5px;
  }
  .nav-dropdown > a,
  .nav-unavailable {
    min-height: 40px;
  }
  .step-list,
  .device-cards {
    grid-template-columns: 1fr;
  }
  .step-list li {
    min-height: 0;
  }
  .step-list li > span {
    margin-bottom: 24px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-shell aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-shell aside nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .storage-grid {
    grid-template-columns: 1fr;
  }
  .connection-panel {
    grid-template-columns: 1fr;
  }
  .worker-setup,
  .worker-connect-panel {
    grid-template-columns: 1fr;
  }
  .workers-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }
  .site-nav {
    top: 65px;
  }
  .hero {
    padding: 54px 14px 0;
  }
  .hero-copy h1 {
    font-size: 32px;
  }
  .tool-shell {
    margin-top: 28px;
    border-radius: 18px;
  }
  .platform-tabs {
    justify-content: flex-start;
  }
  .download-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .download-button {
    width: 100%;
  }
  .form-meta {
    display: block;
  }
  .input-wrap input { font-size: 13px; }
  .activity-card,
  .analysis-card,
  .progress-card,
  .result-card,
  .error-card {
    width: calc(100% - 32px);
    margin: 16px auto;
    padding: 16px;
  }
  .activity-card {
    min-height: 260px;
    padding: 24px 18px;
  }
  .analysis-card {
    grid-template-columns: 1fr;
  }
  .analysis-media {
    width: 100%;
  }
  .format-list {
    grid-template-columns: 1fr;
  }
  .progress-stats {
    grid-template-columns: 1fr 1fr;
  }
  .progress-top {
    gap: 12px;
  }
  .progress-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .progress-top h2 {
    font-size: 18px;
  }
  .progress-top > strong {
    padding-top: 3px;
    font-size: 16px;
  }
  .result-card {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .quality-picker {
    grid-column: 1;
  }
  .result-media {
    grid-row: auto;
    width: min(100%, 230px);
    justify-self: center;
    aspect-ratio: 9 / 14;
  }
  .result-card .result-download,
  .result-card > [data-restart] {
    width: 100%;
  }
  .error-card {
    grid-template-columns: auto 1fr;
  }
  .error-card .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .trust-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 20px 8px 34px;
  }
  .content-section {
    padding: 68px 18px;
  }
  .quality-panel {
    grid-template-columns: 1fr;
    margin: 0 18px;
    padding: 25px;
  }
  .crosslinks > div:last-child {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .site-footer > div {
    grid-column: 1 / -1;
  }
  .admin-login form {
    padding: 25px;
  }
  .admin-shell {
    padding: 28px 16px;
  }
  .admin-shell aside nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-page-head {
    display: grid;
  }
  .security-note {
    justify-self: start;
  }
  .connection-panel {
    padding: 20px;
  }
  .storage-form {
    grid-template-columns: 1fr;
  }
  .storage-form .check-field,
  .storage-form-actions {
    grid-column: 1;
  }
  .storage-form .wide-field {
    grid-column: 1;
  }
  .branding-grid {
    grid-template-columns: 1fr;
  }
  .settings-panel-head {
    display: grid;
  }
  .worker-setup,
  .worker-connect-panel {
    padding: 17px;
  }
  .worker-code-panel textarea {
    min-height: 300px;
  }
  .worker-code-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .worker-code-actions .download-button {
    width: 100%;
  }
}
@media (max-width: 380px) {
  .activity-card,
  .analysis-card,
  .progress-card,
  .result-card,
  .error-card {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 14px;
  }
  .activity-card {
    min-height: 240px;
    padding: 22px 14px;
  }
  .loading-animation {
    width: 128px;
    height: 128px;
  }
  .activity-spinner {
    width: 26px;
    height: 26px;
  }
  .progress-top h2 {
    font-size: 17px;
  }
  .progress-stats {
    gap: 8px;
  }
  .progress-stats div {
    min-width: 0;
    padding: 9px;
  }
  .progress-stats dd {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
  }
  .result-media {
    width: min(100%, 200px);
  }
}
@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 (prefers-contrast: more) {
  :root {
    --line: #8b93a3;
    --muted: #465063;
  }
  .download-button,
  .button,
  .input-wrap {
    border-width: 2px;
  }
}
@media print {
  .site-header,
  .tool-shell,
  .crosslinks,
  .site-footer {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .hero {
    padding-top: 30px;
    background: #fff;
  }
}

/* Shared named components: navigation, hero, analysis, footer and admin workspace. */
.icon { width: 18px; height: 18px; display: inline-block; flex: none; fill: none; color: currentColor; transition: transform .22s ease, color .22s ease; }
.tool-icon { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none !important; color: var(--primary); transition: transform .22s ease; }
.tool-icon > .icon:first-child { width: 18px; height: 18px; }
.tool-icon > .tool-icon-badge { position: absolute; right: -4px; bottom: -3px; width: 10px !important; height: 10px !important; padding: 1px; border-radius: 2px; color: var(--primary); background: var(--surface-raised); }
a:hover > .tool-icon { transform: translateY(-2px) scale(1.08); }
a:hover > .icon, button:hover > .icon, .site-footer nav a:hover .icon { transform: translateY(-2px) scale(1.08); color: var(--primary); }
.site-header { max-width: none; width: 100%; padding-inline: clamp(16px, 3vw, 56px); position: relative; z-index: 60; }
.nav-trigger { gap: 8px; }
.nav-trigger > .nav-platform-icon { width: 16px; height: 16px; }
.nav-trigger > .nav-chevron { width: 14px; height: 14px; margin-left: 1px; transform-origin: center; }
.nav-group.is-open .nav-trigger > .nav-chevron { transform: rotate(180deg); }
.nav-dropdown { display: grid; visibility: hidden; opacity: 0; transform: translateY(-7px); pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-group.is-open .nav-dropdown { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-dropdown > a { justify-content: flex-start; }
.nav-dropdown > a > span { flex: 1; }
.nav-dropdown > a > .tool-icon { flex: none; }
.nav-dropdown > a > .icon { width: 17px; height: 17px; color: var(--primary); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--page); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 5%), rgba(255, 152, 0, .15), transparent 33%), linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px); background-size: auto, 52px 52px, 52px 52px; mask-image: radial-gradient(ellipse 78% 70% at 50% 25%, #000 14%, transparent 95%); }
.hero::before { -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 25%, #000 14%, transparent 95%); }
.hero-copy h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.16; text-wrap: balance; }
.heading-accent { color: var(--primary); }
.analysis-card { text-align: left; }
.analysis-media { background: #151410; }
.analysis-media img { object-fit: contain; }
.analysis-copy { padding-inline: 2px; }
.analysis-card--multi { grid-template-columns: minmax(0, 1fr); }
.threads-media-gallery { min-width: 0; display: grid; gap: 20px; }
.threads-media-heading h2 { display: -webkit-box; max-width: 65ch; margin: 3px 0 5px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: clamp(18px, 2vw, 23px); line-height: 1.25; }
.threads-media-heading p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.threads-media-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.threads-media-card { display: grid; grid-template-columns: minmax(92px, 32%) minmax(0, 1fr); gap: 16px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #1b1a17; }
.threads-media-cover { min-height: 180px; max-height: 270px; overflow: hidden; border-radius: 10px; background: #151410; display: grid; place-items: center; }
.threads-media-cover img { width: 100%; height: 100%; object-fit: contain; }
.threads-media-cover.is-unavailable::after { content: 'Cover unavailable'; color: var(--muted); font-size: 12px; }
.threads-media-body { min-width: 0; display: grid; align-content: start; gap: 12px; }
.threads-media-card-heading h3 { margin: 0 0 4px; color: var(--text); font-size: 17px; }
.threads-media-card-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.threads-media-options { display: grid; gap: 7px; }
.threads-media-option { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--text); text-align: left; font: inherit; font-size: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.threads-media-option[aria-checked='true'] { border-color: var(--primary); background: rgba(255, 152, 0, .1); }
.threads-media-option:hover:not(:disabled) { border-color: var(--primary); }
.threads-media-option:disabled { opacity: .55; cursor: not-allowed; }
.threads-media-empty { margin: 0; color: var(--muted); font-size: 12px; }
.threads-media-prepare { min-height: 46px; padding: 10px 14px; font-size: 13px; }
.youtube-asset-results.threads-asset-results--multi { grid-template-columns: minmax(0, 1fr); }
.threads-asset-gallery { display: grid; gap: 20px; min-width: 0; }
.threads-asset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.threads-asset-card { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0, 1fr); gap: 15px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #1b1a17; }
.threads-asset-preview { display: block; width: 100%; min-height: 185px; max-height: 270px; object-fit: contain; border-radius: 10px; background: #151410; }
.threads-asset-content { display: grid; align-content: start; gap: 11px; min-width: 0; }
.threads-asset-content h3 { margin: 0; font-size: 17px; }
.threads-asset-content > p:not(.asset-download-error) { margin: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) { .threads-media-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .threads-asset-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .threads-media-card, .threads-asset-card { grid-template-columns: minmax(84px, 30%) minmax(0, 1fr); gap: 12px; padding: 11px; } .threads-media-cover, .threads-asset-preview { min-height: 155px; } .threads-media-body, .threads-asset-content { gap: 9px; } }
@media (max-width: 720px) {
  .analysis-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .analysis-media { width: 100%; height: clamp(170px, 38vw, 235px); aspect-ratio: auto; }
  .analysis-content { gap: 13px; }
}
.site-footer { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(18px, 2vw, 34px); max-width: none; width: 100%; padding-inline: clamp(20px, 4vw, 70px); }
.site-footer .footer-tool-column { align-self: start; min-width: 0; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.site-footer nav strong, .site-footer nav a { display: inline-flex; align-items: center; gap: 9px; }
.site-footer nav strong .icon { color: var(--primary); }
.site-footer nav a .icon { width: 15px; height: 15px; color: var(--muted); }
.site-footer nav a .tool-icon > .icon:first-child { color: var(--muted); }
.site-footer nav a .tool-icon > .tool-icon-badge { color: var(--primary); background: var(--page); }
.site-footer nav a { line-height: 1.35; padding-block: 2px; overflow-wrap: anywhere; }
.footer-more-heading { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 12px; font-weight: 700; }
.footer-more-heading .icon { width: 16px; height: 16px; color: var(--primary); }
.fine-print { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; color: var(--muted); }
.fine-print > strong { color: var(--text); font-size: 12px; }
.fine-print nav { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.fine-print nav a { font-size: 12px; }
.admin-mode { background: #141411; }
.admin-mode #main { min-height: 100dvh; }
.admin-shell { max-width: none; min-height: 100dvh; grid-template-columns: 242px minmax(0, 1fr); gap: 0; margin: 0; padding: 0; }
.admin-shell .admin-sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 25px 14px; border-right: 1px solid #33312b; background: #1b1a17; }
.admin-brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 30px; color: var(--text) !important; font-size: 18px !important; font-weight: 750 !important; text-decoration: none; }
.admin-brand > span:last-child { display: grid; line-height: 1.1; }
.admin-brand small { color: var(--muted); font-size: 10px; font-weight: 600; margin-top: 4px; }
.admin-nav-label { margin: 0 14px 10px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.admin-shell .admin-sidebar nav { display: grid; gap: 3px; margin: 0; }
.admin-shell .admin-sidebar nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 13px; border-radius: 9px; color: #b7b4ad; font-size: 13px; text-transform: none; }
.admin-shell .admin-sidebar nav a[aria-current='page'], .admin-shell .admin-sidebar nav a:hover { color: var(--primary); background: rgba(255,152,0,.10); }
.admin-shell .admin-sidebar nav a .icon { width: 17px; height: 17px; }
.admin-sidebar-bottom { display: grid; gap: 5px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 16px; }
.admin-sidebar-bottom a, .admin-sidebar-bottom button { width: 100%; display: block; padding: 10px 13px; border: 0; border-radius: 8px; color: var(--muted); background: none; font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.admin-sidebar-bottom a:hover, .admin-sidebar-bottom button:hover { color: var(--primary); background: var(--primary-soft); }
.admin-content, .storage-admin, .workers-admin, .admin-shell > div:not(.admin-sidebar) { min-width: 0; padding: clamp(24px, 3vw, 46px); }
.admin-shell .admin-page-head { margin-bottom: 28px; }
.admin-shell .admin-page-head h1 { margin-bottom: 5px; font-size: clamp(24px, 2.6vw, 31px); }
.admin-stats { margin-bottom: 30px; }
.admin-stats article { min-height: 135px; background: #23221e; border-color: #39362e; box-shadow: none; }
.admin-stats article strong { color: var(--text); font-size: 30px; }
.admin-stats article small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.admin-tools-stats { margin-bottom: 24px; }
.admin-tools-stats .admin-tools-total { border-color: rgba(255, 152, 0, .42); background: linear-gradient(145deg, #302719, #23221e 72%); }
.admin-tools-stats .admin-tools-total strong { color: var(--primary); }
.admin-table-section { background: #23221e; border: 1px solid #39362e; border-radius: 14px; padding: 22px; }
.admin-table-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-table-title h2 { margin: 0; font-size: 18px; }
.admin-table-title a { color: var(--primary); text-decoration: none; font-size: 12px; }
.admin-mode table { background: #23221e; }
.admin-mode th, .admin-mode td { border-color: #39362e; }
.status-pill { display: inline-block; border-radius: 30px; padding: 4px 9px; background: rgba(255,152,0,.12); color: var(--primary); font-size: 11px; text-transform: capitalize; }
.admin-mode .admin-login { min-height: 100dvh; background: #141411; }
.admin-mode .admin-login form { background: #23221e; }
.admin-mode .admin-login label { color: var(--text); }
.admin-mode .admin-login input:not([type='hidden']) { color: var(--text); background: #1b1a17; border-color: var(--line); }
.admin-mode .admin-login input:focus { box-shadow: 0 0 0 4px rgba(255,152,0,.16); }
@media (max-width: 1150px) { .site-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .site-header { position: sticky; top: 0; }
  .nav-open { overflow: hidden; }
  .nav-open::before { content: ''; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.56); }
  .site-nav { position: fixed; display: flex; visibility: hidden; opacity: 0; transform: translateY(-9px); pointer-events: none; max-height: calc(100dvh - 82px); overflow-y: auto; overscroll-behavior: contain; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-nav.open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-group { border-top: 1px solid var(--line); }
  .nav-trigger { border-radius: 8px; }
  .nav-dropdown, .nav-group:nth-last-child(-n + 2) .nav-dropdown { display: none; margin: 0; padding: 0 0 8px 24px; border: 0; border-radius: 0; background: transparent; opacity: 1; transform: none; }
  .nav-group.is-open .nav-dropdown { display: grid; visibility: visible; pointer-events: auto; }
  .nav-dropdown > p { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-shell .admin-sidebar { position: static; height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-brand { margin-bottom: 14px; }
  .admin-nav-label { display: none; }
  .admin-shell .admin-sidebar nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
  .admin-shell .admin-sidebar nav a { flex: none; white-space: nowrap; }
  .admin-sidebar-bottom { display: none; }
}
@media (max-width: 640px) { .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } .site-footer nav a { font-size: 11px; } .fine-print nav { justify-content: center; } .admin-content, .storage-admin, .workers-admin, .admin-shell > div:not(.admin-sidebar) { padding: 24px 16px; } .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-table-section { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .icon, .nav-dropdown, .site-nav { transition: none !important; } }
.instagram-admin { max-width: 1460px; margin-inline: auto; }
.instagram-safety-note { display: flex; align-items: flex-start; gap: 13px; max-width: 1040px; margin-bottom: 26px; padding: 16px 18px; border: 1px solid rgba(255,152,0,.25); border-radius: 12px; background: rgba(255,152,0,.055); }
.instagram-safety-note .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--primary); }
.instagram-safety-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.instagram-safety-note strong { color: var(--text); }
.instagram-admin-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); align-items: start; gap: 20px; }
.instagram-panel { min-width: 0; padding: clamp(19px, 2.3vw, 30px); border: 1px solid #39362e; border-radius: 16px; background: #23221e; }
.instagram-panel-heading { margin-bottom: 22px; }
.instagram-panel-heading .eyebrow { margin-bottom: 8px; }
.instagram-panel-heading h2 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.02em; }
.instagram-panel-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.instagram-form { display: grid; gap: 11px; }
.instagram-form label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; margin-top: 5px; color: var(--text); font-size: 12px; font-weight: 700; }
.instagram-form label span { color: var(--muted); font-size: 11px; font-weight: 400; }
.instagram-form input, .instagram-form textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; background: var(--input); color: var(--text); font: inherit; font-size: 13px; }
.instagram-form textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.instagram-form input:focus-visible, .instagram-form textarea:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,152,0,.1); }
.instagram-form input::placeholder, .instagram-form textarea::placeholder { color: #77746e; }
.instagram-form .download-button { width: max-content; max-width: 100%; margin-top: 6px; padding-inline: 19px; font-size: 13px; }
.instagram-form .download-button:disabled { opacity: .55; cursor: not-allowed; }
.instagram-field-help, .instagram-form-error { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.instagram-form-error { color: #ffb4b9; }
.instagram-field-help code { color: #dedbd5; }
.instagram-help { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.instagram-help summary { color: var(--text); font-weight: 650; cursor: pointer; }
.instagram-help ol { padding-left: 18px; }
.instagram-help li + li { margin-top: 6px; }
.instagram-help p { margin-bottom: 0; }
.instagram-session-list { display: grid; gap: 12px; }
.instagram-session-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #1b1a17; }
.instagram-session-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.instagram-session-avatar, .instagram-empty > div { display: grid; place-items: center; flex: none; width: 41px; height: 41px; border: 1px solid rgba(255,152,0,.2); border-radius: 11px; background: rgba(255,152,0,.08); color: var(--primary); }
.instagram-session-avatar .icon, .instagram-empty .icon { width: 19px; height: 19px; }
.instagram-session-identity { flex: 1; min-width: 0; }
.instagram-session-identity h3 { margin: 0 0 2px; overflow: hidden; color: var(--text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.instagram-session-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.instagram-status { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.instagram-status i { width: 7px; height: 7px; border-radius: 50%; background: #817e75; }
.instagram-status-connected { border-color: rgba(93,202,150,.3); color: #9de3bd; background: rgba(48,116,80,.13); }
.instagram-status-connected i { background: #69d59a; }
.instagram-status-attention { border-color: rgba(255,152,0,.3); color: #ffbc63; background: rgba(255,152,0,.09); }
.instagram-status-attention i { background: #ff9800; }
.instagram-status-expired { border-color: rgba(255,115,125,.3); color: #ffb4b9; background: #281d1e; }
.instagram-status-expired i { background: #f17f86; }
.instagram-session-message { margin: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.instagram-session-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.instagram-session-bottom small { color: var(--muted); font-size: 10px; }
.instagram-session-actions { display: flex; align-items: center; gap: 7px; }
.instagram-session-actions .button { min-height: 33px; padding: 6px 10px; font-size: 11px; }
.instagram-replace { margin-top: 12px; color: var(--muted); font-size: 11px; }
.instagram-replace summary { width: max-content; cursor: pointer; }
.instagram-replace summary:hover { color: var(--primary); }
.instagram-replace form { display: grid; gap: 8px; margin-top: 12px; }
.instagram-replace label { color: var(--text); font-weight: 650; }
.instagram-replace textarea { width: 100%; min-height: 75px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--input); color: var(--text); font: inherit; resize: vertical; }
.instagram-replace textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.instagram-replace button { width: max-content; }
.instagram-empty { display: grid; justify-items: center; gap: 7px; padding: 43px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; }
.instagram-empty strong { margin-top: 5px; font-size: 13px; }
.instagram-empty p, .instagram-footer-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.instagram-footer-note { max-width: 850px; margin-top: 20px; }
@media (max-width: 1130px) { .instagram-admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .instagram-admin .admin-page-head { display: block; } .instagram-admin .security-note { display: inline-grid; margin-top: 16px; } .instagram-panel { padding: 18px; } .instagram-session-top { flex-wrap: wrap; } .instagram-status { margin-left: 53px; } .instagram-session-bottom { align-items: flex-start; flex-direction: column; } }
.admin-tool-group { margin-bottom: 18px; }
.admin-tool-group .admin-table-title h2 { display: inline-flex; align-items: center; gap: 8px; }
.admin-tool-group .admin-table-title h2 .icon { color: var(--primary); }
.admin-table-title > span { color: var(--muted); font-size: 12px; }
.admin-tool-list { display: grid; }
.admin-tool-list > div { display: flex; align-items: center; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.admin-tool-list > div > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.admin-tool-list strong { font-size: 13px; }
.admin-tool-list small { color: var(--muted); overflow-wrap: anywhere; }
.admin-tool-list a { color: var(--primary); text-decoration: none; font-size: 12px; }
.admin-tool-actions { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 15px; margin-left: auto; }
.admin-tool-actions a:first-child { color: var(--text); }
.admin-tool-actions a:hover { text-decoration: underline; }
.admin-platform-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.admin-platform-controls form { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) auto; gap: 10px; align-items: end; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.admin-platform-controls form > div { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-platform-controls form strong { font-size: 14px; }
.admin-platform-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.admin-platform-controls input, .admin-platform-controls select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--input); font: inherit; font-size: 12px; }
.admin-platform-controls .button { min-height: 40px; }
.status-pill.is-muted { color: var(--muted); background: #33312a; }
.admin-help { color: var(--muted); font-size: 12px; margin: 18px 0 0; }
.admin-gallery-grid, .admin-analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-gallery-grid article { min-height: 230px; display: grid; align-content: start; gap: 18px; padding: 22px; background: #23221e; border: 1px solid var(--line); border-radius: 14px; }
.admin-gallery-grid h2 { font-size: 16px; margin: 0; }
.admin-gallery-grid img { display: block; width: auto; max-width: 100%; height: 110px; object-fit: contain; }
.admin-gallery-grid .admin-gallery-cover img { width: 160px; height: 160px; border-radius: 12px; object-fit: cover; }
.admin-gallery-grid .admin-gallery-social img { width: 100%; max-width: 300px; height: auto; aspect-ratio: 40 / 21; border-radius: 10px; object-fit: cover; }
.branding-upload-social { grid-column: 1 / -1; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
.brand-preview-social { width: 100%; height: auto; aspect-ratio: 40 / 21; }
.brand-preview-social img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 560px) { .branding-upload-social { grid-template-columns: minmax(0, 1fr); } .brand-preview-social { max-width: 240px; } }
.admin-gallery-cover p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-gallery-social p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 1120px) { .admin-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .admin-gallery-grid, .admin-analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .admin-platform-controls { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .admin-platform-controls form { grid-template-columns: 1fr; } .admin-platform-controls form > div { grid-column: auto; } }
.device-cards article > .icon { width: 46px; height: 46px; display: block; margin: 0 auto 20px; padding: 11px; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.device-cards article:hover > .icon { transform: translateY(-3px) rotate(-4deg); }
.brand-mark, .quality-icon, .step-list li > span, .crosslinks a span { transition: transform .22s ease, background .22s ease; }
.brand:hover .brand-mark { transform: rotate(-7deg) scale(1.04); }
.quality-panel:hover .quality-icon { transform: translate(3px, -3px); }
.step-list li:hover > span { transform: translateY(-3px); }
.crosslinks a:hover span { transform: translateX(4px); }
.tool-guidance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 930px; }
.tool-guidance > div { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tool-guidance h2 { font-size: 19px; margin-bottom: 10px; }
.tool-guidance p:last-child { color: var(--muted); margin: 0; font-size: 14px; }
@media (max-width: 640px) { .tool-guidance { grid-template-columns: 1fr; } }
.crosslinks a { justify-content: flex-start; gap: 13px; background: var(--surface); color: var(--text); }
.crosslinks a:hover { border-color: var(--primary); }
.crosslinks a .crosslink-label { min-width: 0; flex: 1; color: var(--text); }
.crosslinks a .crosslink-arrow { flex: none; color: var(--primary); font-size: 19px; }
.crosslinks a:hover .tool-icon { transform: translateY(-2px) scale(1.08); }
.crosslinks a:hover .crosslink-label { transform: none; color: var(--primary); }
.step-list li { display: flex; flex-direction: column; min-height: 0; padding: 15px; overflow: hidden; }
.step-visual { min-height: 342px; display: grid; place-items: center; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: radial-gradient(circle at 50% 35%, rgba(255,152,0,.10), transparent 60%), var(--page); }
.step-visual img { display: block; width: auto; max-width: 100%; height: auto; max-height: 310px; border: 4px solid #11100e; border-radius: 15px; box-shadow: 0 12px 30px rgba(0,0,0,.34); object-fit: contain; background: var(--page); }
.step-copy { display: flex; gap: 14px; align-items: flex-start; padding: 21px 6px 8px; }
.step-number { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 13px; font-weight: 800; }
.step-copy h3 { margin: 1px 0 6px; font-size: 16px; }
.step-copy p { font-size: 13px; }
.guide-disclaimer { margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.tool-details { max-width: 1120px; padding-top: 46px; }
.tool-details .section-intro { margin-bottom: 28px; }
.detail-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: 38px 0; border-top: 1px solid var(--line); }
.detail-row.is-reversed { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.detail-row.is-reversed .detail-visual { order: 2; }
.detail-row.is-reversed .detail-copy { order: 1; }
.detail-visual { min-width: 0; aspect-ratio: 1; display: grid; place-items: center; margin: 0; padding: clamp(12px, 2vw, 22px); border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 50% 20%, rgba(255,152,0,.08), transparent 60%), var(--surface); }
.detail-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 5px solid #11100e; border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.28); background: var(--page); }
.detail-copy { max-width: 480px; }
.detail-copy h3 { margin: 7px 0 13px; font-size: clamp(19px, 2vw, 24px); line-height: 1.28; letter-spacing: -.02em; }
.detail-copy > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
@media (max-width: 760px) {
  .step-list { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .step-visual { min-height: 300px; }
  .step-visual img { max-height: 270px; }
  .detail-row,
  .detail-row.is-reversed { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
  .detail-row.is-reversed .detail-visual, .detail-row.is-reversed .detail-copy { order: initial; }
  .detail-copy { max-width: none; }
}
.admin-post-slug { display: block; color: var(--muted); font-size: 11px; }
.admin-post-form { display: grid; gap: 18px; max-width: 900px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.admin-post-form label { display: grid; gap: 6px; color: var(--text); font-size: 13px; font-weight: 700; }
.admin-post-form label small { color: var(--muted); font-weight: 500; }
.admin-post-form input, .admin-post-form textarea, .admin-post-form select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: var(--input); font: inherit; font-size: 14px; }
.admin-post-form textarea { resize: vertical; line-height: 1.6; }
.admin-post-form input:focus, .admin-post-form textarea:focus, .admin-post-form select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.admin-post-seo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-post-form > .download-button { width: fit-content; min-width: 170px; }
.admin-tool-editor-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr); align-items: start; gap: 18px; }
.admin-tool-seo-form { max-width: none; min-width: 0; gap: 12px; }
.admin-tool-editor-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.admin-tool-editor-intro a { color: var(--primary); font-size: 12px; text-decoration: none; }
.admin-tool-path { margin: 0 0 10px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-tool-seo-form label { margin-top: 8px; }
.admin-tool-seo-form label small { line-height: 1.5; }
.admin-tool-seo-form label code { color: var(--primary); }
.admin-seo-count { justify-self: end; color: var(--muted); font-size: 11px; }
.admin-tool-seo-form > .download-button { margin-top: 10px; }
.admin-tool-editor-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.admin-seo-preview { display: grid; gap: 10px; min-width: 0; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.admin-seo-preview .eyebrow { margin: 0 0 6px; }
.admin-seo-preview-url { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-seo-preview strong { color: var(--primary); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.admin-seo-preview p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.admin-seo-preview small { color: var(--muted); line-height: 1.5; }
.admin-seo-preview form { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-seo-preview form button { width: 100%; }
@media (max-width: 950px) { .admin-tool-editor-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .admin-tool-list > div { align-items: flex-start; flex-wrap: wrap; } .admin-tool-actions { width: 100%; justify-content: flex-start; margin-left: 0; } }
.blog-index,.blog-post{width:min(100% - 40px,1240px);min-height:60dvh;margin:auto;padding:clamp(32px,5vw,68px) 0 92px}
.blog-hero{display:grid;grid-template-columns:1fr .9fr;gap:clamp(24px,5vw,80px);align-items:center;min-height:390px;padding:clamp(28px,5vw,64px);border:1px solid var(--line);border-radius:28px;background:radial-gradient(circle at 80% 30%,rgba(255,152,0,.13),transparent 42%),#22211e;overflow:hidden}
.blog-hero h1{max-width:610px;margin:10px 0 20px;font-size:clamp(34px,4.2vw,58px);line-height:1.08;letter-spacing:-.045em}
.blog-hero-copy>p:not(.eyebrow){max-width:520px;color:var(--muted);font-size:16px;line-height:1.75}
.blog-hero .button{display:inline-flex;align-items:center;gap:9px;margin-top:20px;text-decoration:none}
.blog-hero-art{position:relative;min-height:300px;isolation:isolate}
.blog-art-orbit{position:absolute;inset:6% 5%;border:1px solid rgba(255,152,0,.22);border-radius:50%;transform:rotate(-20deg)}
.blog-art-sheet{position:absolute;width:66%;height:86%;top:7%;left:22%;padding:18px;border:1px solid #62513a;border-radius:18px;background:#2e2b25;box-shadow:0 28px 70px #0007}
.blog-art-sheet-back{transform:rotate(12deg) translate(26px,-6px);background:#393025;display:grid;align-content:end;gap:9px}.blog-art-sheet-back span{display:block;height:9px;border-radius:9px;background:#675744}.blog-art-sheet-back span:nth-child(2){width:75%}.blog-art-sheet-back span:nth-child(3){width:55%}
.blog-art-sheet-front{transform:rotate(-8deg)}.blog-art-sheet-front i{display:block;width:85%;height:8px;margin:12px 0;border-radius:8px;background:#595349}.blog-art-sheet-front i:last-child{width:56%}.blog-art-image{height:60%;position:relative;overflow:hidden;border-radius:10px;background:linear-gradient(145deg,#f8a24d,#b95b32 65%,#643c31)}.blog-art-sun{position:absolute;width:70px;height:70px;border-radius:50%;background:#ffe3a7;top:16%;right:17%}.blog-art-hill{position:absolute;width:130%;height:65%;left:-10%;bottom:-22%;transform:rotate(-14deg);border-radius:50%;background:#483b38}.blog-art-badge{position:absolute;right:-2%;bottom:6%;padding:10px 15px;border:1px solid #9b6a3b;border-radius:30px;background:#24211c;color:#ffb459;font-size:12px;font-weight:800;box-shadow:0 12px 28px #0007}
.blog-list-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:64px 0 25px}.blog-list-head h2{margin:4px 0 0;font-size:clamp(25px,2.5vw,34px);letter-spacing:-.035em}.blog-list-head>span,.blog-list-head>a{color:var(--muted);font-size:13px}.blog-list-head>a{color:var(--primary);text-decoration:none}
.blog-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.blog-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#25231f;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}.blog-card:hover{transform:translateY(-4px);border-color:#6b4b2a;box-shadow:0 18px 40px #0004}.blog-card-image{display:block;aspect-ratio:16/10;overflow:hidden;background:#3a3328}.blog-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}.blog-card:hover .blog-card-image img{transform:scale(1.035)}.blog-card-placeholder{display:grid;place-items:center;width:100%;height:100%;background:radial-gradient(circle at 50% 40%,#68452c,#25231f 70%)}.blog-card-placeholder span{font-size:72px;color:#e68b24}.blog-card-copy{padding:22px 22px 25px}.blog-card-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:12px}.blog-card-meta span,.blog-category{display:inline-block;padding:5px 10px;border:1px solid #855b2f;border-radius:30px;background:#3a2a1d;color:#ffad4d;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.blog-card h3{margin:15px 0 10px;font-size:19px;line-height:1.3;letter-spacing:-.02em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.blog-card h3 a{color:var(--text);text-decoration:none}.blog-card h3 a:hover,.blog-card-link:hover{color:var(--primary)}.blog-card-copy>p{min-height:58px;margin:0 0 18px;color:var(--muted);font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.blog-card-link{color:#ffaf52;font-size:13px;font-weight:800;text-decoration:none}.blog-empty{grid-column:1/-1;padding:70px 20px;text-align:center;border:1px dashed var(--line);border-radius:18px}.blog-empty h2{font-size:22px}.blog-empty p{color:var(--muted)}.blog-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:42px 0 0}.blog-pagination a{min-width:40px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;color:var(--text);text-align:center;text-decoration:none;font-size:13px}.blog-pagination a[aria-current],.blog-pagination a:hover{background:var(--primary);border-color:var(--primary);color:#1b1a17}
.blog-post{max-width:1160px}.blog-post-head{max-width:830px;margin:0 auto 32px;text-align:center}.blog-crumbs{display:flex;justify-content:center;gap:11px;flex-wrap:wrap;margin-bottom:26px;color:var(--muted);font-size:12px}.blog-crumbs a{color:var(--muted);text-decoration:none}.blog-crumbs a:hover{color:var(--primary)}.blog-post h1{margin:18px 0;font-size:clamp(34px,4vw,54px);line-height:1.12;letter-spacing:-.04em}.blog-summary{max-width:720px;margin:0 auto;color:var(--muted);font-size:17px;line-height:1.65}.blog-author-row{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:27px;text-align:left}.blog-author-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#58391e;color:#ffab47}.blog-author-row>div:nth-child(2){display:grid;gap:2px;font-size:12px}.blog-author-row>div:nth-child(2) span{color:var(--muted)}.blog-share-jump{margin-left:18px;color:var(--primary);text-decoration:none;font-size:12px}.blog-post-hero{max-width:960px;margin:0 auto 48px}.blog-post-hero img{display:block;width:100%;height:auto;max-height:540px;object-fit:cover;border:1px solid var(--line);border-radius:20px}.blog-post-hero figcaption,.blog-article-body figcaption{margin:9px 0;color:var(--muted);font-size:12px;text-align:center}.blog-reading-layout{display:grid;grid-template-columns:minmax(0,730px) minmax(200px,270px);justify-content:center;align-items:start;gap:clamp(32px,5vw,80px)}.blog-article-body{min-width:0;overflow-wrap:anywhere;color:#e9e5dc;font-size:16px;line-height:1.85}.blog-article-body>*:first-child{margin-top:0}.blog-article-body h2,.blog-article-body h3{scroll-margin-top:100px;color:var(--text);line-height:1.25;letter-spacing:-.03em}.blog-article-body h2{margin:45px 0 18px;font-size:28px}.blog-article-body h3{margin:32px 0 14px;font-size:22px}.blog-article-body p,.blog-article-body ul,.blog-article-body ol{margin:0 0 22px}.blog-article-body li{padding-left:4px;margin-bottom:7px}.blog-article-body a{color:var(--primary);text-underline-offset:3px}.blog-article-body blockquote{margin:32px 0;padding:12px 0 12px 24px;border-left:3px solid var(--primary);color:#f4c78d;font-size:19px;line-height:1.55}.blog-article-body figure{margin:35px 0}.blog-article-body figure img,.blog-article-body figure video{display:block;width:100%;height:auto;border-radius:14px;background:#292722}.blog-reading-side{position:sticky;top:28px;display:grid;gap:20px}.blog-toc,.blog-sidebar-note{padding:22px;border:1px solid var(--line);border-radius:16px;background:#25231f}.blog-toc nav{display:grid;gap:10px;margin-top:16px}.blog-toc a{color:var(--muted);font-size:13px;text-decoration:none;line-height:1.4}.blog-toc a:hover{color:var(--primary)}.blog-toc>p:last-child,.blog-sidebar-note p{color:var(--muted);font-size:13px;line-height:1.6}.blog-sidebar-note>span{color:var(--primary);font-size:30px}.blog-sidebar-note h2{font-size:17px;margin:10px 0}.blog-sidebar-note a{color:var(--primary);font-size:13px;text-decoration:none;font-weight:700}.blog-share{padding-top:26px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:13px}.blog-share>div{display:flex;gap:8px;flex-wrap:wrap}.blog-share a,.blog-share button{padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:#282620;color:var(--text);font:inherit;text-decoration:none;cursor:pointer}.blog-related{margin-top:92px}
.editorial-admin{min-width:0}.editorial-form{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:start}.editorial-main,.editorial-side{display:grid;gap:20px;min-width:0}.editorial-side{position:sticky;top:20px}.editorial-panel{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.editorial-section-head h2,.editorial-block-head h2{margin:3px 0 18px;font-size:19px}.editorial-field,.media-picker label{display:grid;gap:7px;margin-bottom:17px;color:var(--text);font-size:13px;font-weight:700}.editorial-field small,.media-picker label small{color:var(--muted);font-weight:400}.editorial-field input,.editorial-field textarea,.editorial-field select,.media-picker input,.media-picker textarea{width:100%;min-height:43px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:9px;background:var(--input);color:var(--text);font:inherit;font-size:14px}.editorial-field textarea,.media-picker textarea{resize:vertical}.editorial-field input:focus,.editorial-field textarea:focus,.editorial-field select:focus,.media-picker input:focus,.media-picker textarea:focus{outline:2px solid var(--primary);outline-offset:1px}.editorial-hint{color:var(--muted);font-size:12px;line-height:1.6}.editorial-side .download-button{width:100%}.editorial-view-link{display:block;margin-top:14px;color:var(--primary);font-size:13px;text-align:center;text-decoration:none}.editorial-hero-preview{display:grid;place-items:center;min-height:165px;margin:0 0 14px;border:1px dashed var(--line-strong);border-radius:10px;color:var(--muted);font-size:13px;overflow:hidden}.editorial-hero-preview img{width:100%;height:165px;object-fit:cover}.editorial-block-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:23px 0 8px}.editorial-toolbar{display:flex;align-items:center;gap:6px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#292722}.editorial-toolbar button,.editorial-block-controls button,.editorial-add-row button{padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:#35312a;color:var(--text);font:inherit;cursor:pointer}.editorial-toolbar button:hover,.editorial-block-controls button:hover,.editorial-add-row button:hover{border-color:var(--primary);color:var(--primary)}.editorial-toolbar span{margin-left:8px;color:var(--muted);font-size:11px}.editorial-blocks{display:grid;gap:12px;margin:14px 0}.editorial-block{border:1px solid var(--line);border-radius:10px;background:#292722}.editorial-block-controls{display:flex;justify-content:flex-end;gap:5px;padding:7px;border-bottom:1px solid var(--line)}.editorial-block-controls select,.editorial-block-field select{padding:6px;border:1px solid var(--line);border-radius:7px;background:#34312b;color:var(--text);font:inherit;font-size:12px}.editorial-block-controls select{margin-right:auto}.editorial-block-field{padding:12px}.editorial-editable{min-height:88px;padding:12px;border:1px solid transparent;border-radius:8px;color:var(--text);font-size:15px;line-height:1.7;white-space:pre-wrap;outline:none}.editorial-editable:focus{border-color:var(--primary)}.editorial-editable:empty:before{content:attr(data-placeholder);color:var(--muted)}.editorial-add-row{display:flex;flex-wrap:wrap;gap:7px}.editorial-block-media-preview{max-width:280px;max-height:210px;overflow:hidden}.editorial-block-media-preview img,.editorial-block-media-preview video{display:block;width:100%;max-height:210px;object-fit:cover;border-radius:8px}.editorial-block-field>span{display:block;margin:8px 0;color:var(--muted);font-size:12px}
.editorial-form{grid-template-columns:minmax(0,1fr) minmax(265px,310px);gap:22px}.editorial-side{position:static;align-content:start;gap:16px}.editorial-composer{min-height:560px;padding:18px}.editorial-title-field{margin:0 0 18px}.editorial-title-field input{min-height:58px;padding:10px 16px;font-size:23px;font-weight:600;letter-spacing:-.025em}.editorial-writing-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.editorial-writing-toolbar>.button{min-height:40px}.editorial-writing-toolbar .editorial-toolbar{flex:1;min-width:180px}.editorial-blocks{min-height:330px;align-content:start;padding:12px;border:1px solid var(--line);border-radius:12px;background:#24221e}.editorial-block{background:#2b2924}.editorial-composer-foot{display:flex;justify-content:space-between;gap:12px;margin-top:16px;color:var(--muted);font-size:12px}.editorial-meta-box{padding:0;overflow:hidden}.editorial-meta-box>h2{margin:0;padding:16px 18px;border-bottom:1px solid var(--line);font-size:15px;font-weight:700}.editorial-meta-box-body{padding:18px}.editorial-meta-box-body .editorial-field:last-child{margin-bottom:0}.editorial-status{margin:0 0 16px;color:var(--muted);font-size:13px}.editorial-status strong{color:var(--text)}.editorial-publish-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:13px 18px;background:#292722;border-top:1px solid var(--line)}.editorial-publish-actions .download-button{width:auto;min-width:105px;padding:10px 16px}.editorial-publish-actions .button{padding:10px 12px;font-size:12px}.editorial-meta-box .editorial-hint{margin-bottom:0}.editorial-meta-box .editorial-hero-preview{min-height:145px}.editorial-meta-box .editorial-hero-preview img{height:160px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.blog-preview-banner{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;padding:12px 20px;background:#302b21;border-bottom:1px solid #705325;color:var(--text);font-size:13px}.blog-preview-banner strong{color:var(--primary)}.blog-preview-banner a{color:var(--primary)}
.media-picker{width:min(1100px,calc(100vw - 28px));max-height:min(90dvh,900px);padding:0;border:1px solid var(--line-strong);border-radius:17px;background:#211f1b;color:var(--text);box-shadow:0 30px 100px #000a}.media-picker::backdrop{background:#000b;backdrop-filter:blur(4px)}.media-picker-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.media-picker-head h2{margin:3px 0 0;font-size:23px}.media-close{width:35px;height:35px;border:1px solid var(--line);border-radius:50%;background:none;color:var(--text);font-size:22px;cursor:pointer}.media-picker-tabs{display:flex;gap:8px;padding:13px 22px;border-bottom:1px solid var(--line)}.media-picker-tabs button{padding:8px 13px;border:0;border-radius:8px;background:none;color:var(--muted);font:inherit;cursor:pointer}.media-picker-tabs button[aria-selected="true"]{background:#4b341f;color:var(--primary)}.media-picker-library{display:grid;grid-template-columns:minmax(0,1fr) 290px;min-height:400px;max-height:70dvh;overflow:auto}.media-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:12px;padding:20px;overflow:auto}.media-tile{min-width:0;padding:0 0 8px;border:2px solid transparent;border-radius:10px;background:#302c26;color:var(--text);cursor:pointer;text-align:left;overflow:hidden}.media-tile.is-selected,.media-tile:hover{border-color:var(--primary)}.media-tile img,.media-video-mark{display:grid;place-items:center;width:100%;aspect-ratio:1;object-fit:cover;background:#3a3327;color:var(--primary);font-size:30px}.media-tile>span:last-child{display:block;padding:7px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-details{padding:18px;border-left:1px solid var(--line);overflow:auto}.media-details h3{margin:0 0 15px;font-size:16px}.media-details [data-media-selected-preview] img,.media-details [data-media-selected-preview] video{width:100%;max-height:130px;object-fit:contain}.media-details-actions{display:flex;gap:7px;flex-wrap:wrap}.media-picker-upload{max-width:650px;padding:24px;overflow:auto}.media-picker-upload .download-button{width:auto}.gallery-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.gallery-overview article{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#292722}.gallery-overview-visual{aspect-ratio:4/3;background:#35312a}.gallery-overview-visual img,.gallery-overview-visual video{width:100%;height:100%;object-fit:cover}.gallery-overview h3,.gallery-overview p,.gallery-overview small{display:block;margin:9px 12px;overflow-wrap:anywhere}.gallery-overview h3{font-size:13px}.gallery-overview p,.gallery-overview small{color:var(--muted);font-size:11px}
@media(max-width:980px){.blog-list{grid-template-columns:repeat(2,minmax(0,1fr))}.blog-reading-layout{grid-template-columns:minmax(0,1fr) 220px;gap:30px}.editorial-form{grid-template-columns:1fr}.editorial-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.blog-index,.blog-post{width:min(100% - 30px,1240px)}.blog-hero{grid-template-columns:1fr;padding:28px;min-height:0}.blog-hero h1{font-size:37px}.blog-hero-art{min-height:220px;max-width:350px;width:100%;margin:auto}.blog-list{grid-template-columns:1fr}.blog-list-head{margin-top:45px}.blog-list-head>span{font-size:11px}.blog-reading-layout{display:block}.blog-reading-side{position:static;margin-top:36px}.blog-post-head{text-align:left}.blog-crumbs,.blog-author-row{justify-content:flex-start}.blog-post h1{font-size:35px}.blog-summary{font-size:16px}.blog-post-hero{margin-bottom:34px}.blog-share{align-items:flex-start}.editorial-side{grid-template-columns:1fr}.media-picker-library{grid-template-columns:1fr}.media-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:38dvh}.media-details{border-left:0;border-top:1px solid var(--line)}.gallery-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-toolbar span{display:none}}
@media(max-width:420px){.media-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-overview{grid-template-columns:1fr}.blog-hero h1{font-size:31px}}
.guide-gallery{display:grid;gap:8px}.guide-gallery details{border:1px solid var(--line);border-radius:10px;background:#292722}.guide-gallery summary{display:flex;justify-content:space-between;gap:12px;padding:13px 15px;cursor:pointer;font-size:13px;font-weight:700}.guide-gallery summary span{color:var(--muted);font-size:11px;font-weight:400}.guide-gallery-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 15px 15px}.guide-gallery-images figure{min-width:0;margin:0}.guide-gallery-images img{display:block;width:100%;height:160px;object-fit:contain;border-radius:8px;background:#201e1b}.guide-gallery-images figcaption{margin-top:5px;color:var(--muted);font-size:11px}@media(max-width:620px){.guide-gallery-images{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px) { .admin-post-seo { grid-template-columns: 1fr; } .admin-post-form > .download-button { width: 100%; } }
.carousel-shell { max-width: 960px; min-height: 170px; }
.carousel-shell .download-form { grid-template-columns: minmax(0, 1fr) auto; }
.carousel-state, .carousel-error { min-height: 240px; padding: 34px 24px; display: flex; align-items: center; justify-content: center; gap: 24px; text-align: left; }
.carousel-state img { flex: none; width: 68px; height: 68px; }
.carousel-state h2, .carousel-error h2 { margin-bottom: 4px; font-size: 22px; }
.carousel-state p, .carousel-error p { margin: 0; color: var(--muted); }
.carousel-error { flex-direction: column; gap: 8px; text-align: center; }
.carousel-results { padding: 28px; }
.carousel-results-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.carousel-results-head h2 { max-width: 570px; margin-bottom: 6px; overflow-wrap: anywhere; font-size: clamp(20px, 2.4vw, 28px); }
.carousel-results-head p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.carousel-all { flex: none; min-height: 48px; padding: 0 16px; font-size: 14px; }
.carousel-all small { border-left: 1px solid rgba(27,26,23,.25); padding-left: 10px; font-size: 11px; letter-spacing: .05em; }
.carousel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.single-image-shell .carousel-grid { display: flex; justify-content: center; }
.single-image-shell .carousel-image-card { width: min(100%, 420px); flex: none; }
.two-image-shell .carousel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 850px; margin-inline: auto; }
.carousel-image-card { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.carousel-image-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #191815; }
.carousel-image-card figcaption { padding: 10px 14px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.carousel-image-download { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #1b1a17; background: var(--primary); box-shadow: var(--shadow-sm); text-decoration: none; font-size: 22px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.carousel-image-download:hover { transform: translateY(-2px); background: #ffab2e; }
.carousel-again { display: block; margin: 24px auto 0; padding: 10px 14px; border: 0; color: var(--primary); background: transparent; cursor: pointer; font-weight: 700; }
.carousel-again:hover { text-decoration: underline; }
@media (max-width: 700px) { .carousel-shell .download-form { grid-template-columns: 1fr; } .carousel-shell .download-button { width: 100%; } .carousel-results { padding: 18px; } .carousel-results-head { align-items: stretch; flex-direction: column; } .carousel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 420px) { .carousel-grid { grid-template-columns: 1fr 1fr; } .carousel-state { flex-direction: column; text-align: center; } .carousel-image-download { width: 36px; height: 36px; } }

/* YouTube caption and thumbnail tools share a restrained, content-first result layout. */
.youtube-asset-shell { max-width: 960px; min-height: 170px; }
.youtube-asset-shell .download-form { grid-template-columns: minmax(0, 1fr) auto; }
.youtube-asset-loading { min-height: 240px; padding: 34px 28px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.youtube-asset-loading img { flex: none; width: 68px; height: 68px; }
.youtube-asset-loading h2 { margin: 0 0 5px; font-size: 22px; }
.youtube-asset-loading p { margin: 0; color: var(--muted); }
.youtube-asset-results { padding: 28px; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 30px; align-items: start; }
.youtube-asset-preview { min-width: 0; }
.youtube-asset-preview img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #28241f; border: 1px solid rgba(255,255,255,.09); }
.profile-picture-results .youtube-asset-preview img { aspect-ratio: 1 / 1; max-width: 320px; margin-inline: auto; object-fit: contain; }
.profile-banner-results { grid-template-columns: minmax(0, 1fr); }
.profile-banner-results .youtube-asset-preview img { aspect-ratio: 6 / 1; max-height: 280px; object-fit: contain; }
.youtube-asset-preview h2 { margin: 10px 0 6px; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; overflow-wrap: anywhere; }
.youtube-asset-preview p:last-child { color: var(--muted); font-size: 13px; line-height: 1.5; }
.youtube-asset-controls { min-width: 0; display: grid; gap: 12px; }
.youtube-asset-controls > label { font-weight: 700; font-size: 14px; }
.youtube-asset-controls input[type="search"] { width: 100%; height: 44px; padding: 0 15px; color: var(--text); background: #24211d; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; font: inherit; }
.youtube-asset-controls input[type="search"]:focus-visible, .youtube-asset-option:focus-visible { outline: 2px solid #ff9800; outline-offset: 2px; }
.asset-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.youtube-asset-options { max-height: 290px; overflow: auto; display: grid; gap: 8px; padding: 2px 5px 2px 2px; scrollbar-color: #73533a transparent; }
.youtube-asset-option { width: 100%; text-align: left; border: 1px solid rgba(255,255,255,.13); background: #24211d; border-radius: 11px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.youtube-asset-option:hover { border-color: rgba(255,152,0,.65); transform: translateY(-1px); }
.youtube-asset-option[aria-checked="true"] { border-color: #ff9800; background: #352819; box-shadow: inset 3px 0 #ff9800; }
.youtube-asset-download { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.youtube-asset-download .icon { width: 21px; height: 21px; }
.youtube-asset-download[aria-busy="true"] { pointer-events: none; opacity: .85; }
.asset-download-error { margin: 0; padding: 11px 13px; border: 1px solid rgba(255,152,0,.45); border-radius: 10px; color: #ffd3a0; background: #302317; font-size: 13px; line-height: 1.45; }
.youtube-asset-controls .carousel-again { justify-self: center; }
@media (max-width: 700px) { .youtube-asset-shell .download-form { grid-template-columns: 1fr; } .youtube-asset-shell .download-button { width: 100%; } .youtube-asset-results { grid-template-columns: 1fr; gap: 18px; padding: 18px; } .youtube-asset-preview img { max-height: 280px; } .youtube-asset-options { max-height: 245px; } }
@media (max-width: 420px) { .youtube-asset-loading { text-align: center; flex-direction: column; gap: 12px; } .youtube-asset-loading h2 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .carousel-image-download { transition: none; } }

/* A LinkedIn cover has one source image, so its result reads like a single media card. */
.linkedin-thumbnail-results {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: start;
}
.linkedin-thumbnail-results .youtube-asset-preview img {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: none;
  object-fit: contain;
  background: #151410;
}
.reddit-thumbnail-results .youtube-asset-preview img { aspect-ratio: 1 / 1; }
.profile-picture-results.linkedin-thumbnail-results .youtube-asset-preview img { aspect-ratio: 1 / 1; max-width: 220px; object-fit: cover; }
.linkedin-thumbnail-results .youtube-asset-controls {
  align-content: start;
  gap: 16px;
}
.linkedin-thumbnail-heading { min-width: 0; }
.linkedin-thumbnail-heading .eyebrow { margin: 0 0 8px; }
.linkedin-thumbnail-heading h2 {
  display: -webkit-box;
  max-width: 100%;
  margin: 0 0 9px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.32;
}
.linkedin-thumbnail-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.linkedin-thumbnail-results .youtube-asset-download { margin-top: 2px; }
.linkedin-thumbnail-results .carousel-again { justify-self: start; }
@media (max-width: 700px) {
  .linkedin-thumbnail-results { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .linkedin-thumbnail-results .youtube-asset-preview { width: min(100%, 210px); margin-inline: auto; }
  .linkedin-thumbnail-results .youtube-asset-preview img { max-height: none; }
  .linkedin-thumbnail-results .carousel-again { justify-self: center; }
}

/* Platform navigation: named groups on desktop, full-width accordion on touch layouts. */
.site-header { gap: clamp(12px, 2vw, 30px); }
.site-header > .brand { flex: none; }
.site-nav { margin-left: auto; }
.site-nav .nav-home, .site-nav .nav-trigger { white-space: nowrap; }
.site-nav .nav-dropdown {
  display: grid;
  transform: translateY(-7px) scale(.97);
  transform-origin: top center;
  clip-path: inset(0 0 7% 0 round 13px);
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,.7,.2,1), clip-path .28s ease, visibility .28s;
}
.site-nav .nav-group.is-open > .nav-dropdown {
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0 0 round 13px);
}
.site-header .menu-button {
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-raised);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.site-header .menu-button:hover,
.site-header .menu-button[aria-expanded='true'] { color: var(--primary); background: var(--primary-soft); border-color: rgba(255,152,0,.45); }
.site-header .menu-button:active { transform: scale(.94); }
.menu-button > .menu-glyph,
.menu-button > .menu-close { position: absolute; width: 19px; height: 19px; transition: opacity .22s, transform .28s cubic-bezier(.2,.7,.2,1); }
.menu-button > .menu-glyph {
  display: block;
  background: currentColor;
  -webkit-mask: url('/assets/menu-grid.svg') center / contain no-repeat;
  mask: url('/assets/menu-grid.svg') center / contain no-repeat;
}
.menu-button > .menu-close { display: block; opacity: 0; transform: rotate(-90deg) scale(.65); }
.menu-close::before, .menu-close::after { content: ''; position: absolute; top: 8px; left: 0; width: 19px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
.menu-button[aria-expanded='true'] .menu-glyph { opacity: 0; transform: rotate(90deg) scale(.65); }
.menu-button[aria-expanded='true'] .menu-close { opacity: 1; transform: rotate(0) scale(1); }
.nav-overflow-panel {
  position: absolute;
  z-index: 45;
  top: calc(100% + 9px);
  right: clamp(16px, 3vw, 56px);
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100dvh - 92px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-md);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.96);
  transform-origin: top right;
  clip-path: inset(0 0 10% 0 round 18px);
  transition: opacity .23s ease, transform .3s cubic-bezier(.2,.7,.2,1), clip-path .3s ease, visibility .3s;
}
.nav-overflow-panel.open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); clip-path: inset(0 0 0 0 round 18px); }
.nav-overflow-panel .nav-group { min-width: 0; padding: 7px; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.025); }
.nav-overflow-panel .nav-trigger { display: none; }
.nav-overflow-panel .nav-dropdown,
.nav-overflow-panel .nav-group:nth-last-child(-n + 2) .nav-dropdown {
  position: static;
  width: auto;
  display: grid;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  clip-path: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
.nav-overflow-panel .nav-dropdown > p { color: var(--text); font-size: 12px; margin: 5px 10px 8px; }
.nav-overflow-panel .nav-dropdown > a { min-height: 36px; margin: 0; padding: 7px 10px; }
@media (min-width: 1081px) {
  .nav-overflow-panel:not(.open) .nav-dropdown { pointer-events: none; }
}
.site-header :is(.menu-button, .nav-trigger, .nav-home):focus-visible,
.site-header .nav-dropdown a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 1080px) {
  .site-header { position: sticky; top: 0; min-height: 68px; z-index: 60; background: var(--page); border-bottom: 1px solid var(--line); }
  .site-nav, .site-nav.open {
    position: fixed;
    z-index: 61;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 68px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 13px clamp(18px, 5vw, 46px) 42px;
    border: 0;
    border-radius: 0 0 18px 18px;
    background: var(--page);
    box-shadow: var(--shadow-md);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scaleY(.96);
    transform-origin: top center;
    clip-path: inset(0 0 8% 0 round 0 0 18px 18px);
    transition: opacity .24s ease, transform .3s cubic-bezier(.2,.7,.2,1), clip-path .3s ease, visibility .3s;
  }
  .site-nav.open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scaleY(1); clip-path: inset(0 0 0 0 round 0 0 18px 18px); }
  .site-nav > .nav-home { min-height: 58px; padding: 0 7px; border-radius: 0; font-size: 15px; }
  .site-nav .nav-group { border-top: 1px solid var(--line); }
  .site-nav .nav-trigger { width: 100%; min-height: 62px; justify-content: flex-start; gap: 15px; padding: 0 7px; border-radius: 0; color: var(--text); font-size: 15px; }
  .site-nav .nav-trigger > span { flex: 1; text-align: left; font-size: inherit; }
  .site-nav .nav-trigger > .nav-platform-icon { width: 20px; height: 20px; color: var(--primary); }
  .site-nav .nav-trigger > .nav-chevron { width: 18px; height: 18px; }
  .site-nav .nav-dropdown,
  .site-nav .nav-group:nth-last-child(-n + 2) .nav-dropdown,
  .nav-overflow-panel .nav-dropdown {
    position: static;
    width: auto;
    display: grid;
    max-height: 0;
    margin: 0;
    padding: 0 0 0 32px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scaleY(.96);
    transform-origin: top;
    clip-path: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: max-height .38s cubic-bezier(.2,.7,.2,1), padding .38s, opacity .25s, transform .38s, visibility .38s;
  }
  .site-nav .nav-group.is-open > .nav-dropdown,
  .nav-overflow-panel .nav-group.is-open > .nav-dropdown {
    max-height: 560px;
    padding-bottom: 12px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
  }
  .site-nav .nav-dropdown > p { display: none; }
  .site-nav .nav-dropdown > a { min-height: 44px; padding: 9px 10px; white-space: normal; }
  .nav-overflow-panel, .nav-overflow-panel.open {
    display: contents;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    clip-path: none;
  }
  .nav-overflow-panel .nav-group { padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
  .nav-overflow-panel .nav-trigger { display: flex; }
  .nav-open { overflow: hidden; }
  .nav-open::before { content: ''; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); }
}
@media (max-width: 600px) {
  .site-header { padding-inline: 17px; }
  .site-nav, .site-nav.open { padding-inline: 20px; }
  .site-footer { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 360px) {
  .site-header > .brand { gap: 7px; font-size: 14px; }
  .site-header .lang-trigger { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav .nav-dropdown, .nav-overflow-panel, .menu-button > .menu-glyph, .menu-button > .menu-close { transition: none !important; }
}

/* Public article: editorial reading layout, independent of the blog index. */
.blog-post{max-width:1160px;padding-top:clamp(28px,4vw,52px)}
.blog-post-head{max-width:none;margin:0 0 30px;text-align:left}
.blog-crumbs{justify-content:flex-start;flex-wrap:nowrap;overflow:hidden;white-space:nowrap;margin-bottom:34px}
.blog-crumbs>[aria-current="page"]{overflow:hidden;text-overflow:ellipsis}
.blog-crumbs a{flex:none}
.blog-post .blog-category{margin-bottom:3px}
.blog-post h1{max-width:850px;margin:16px 0;font-size:clamp(32px,3.6vw,46px);line-height:1.14;letter-spacing:-.035em}
.blog-summary{max-width:750px;margin:0;color:#bdb7ad;font-size:clamp(16px,1.65vw,18px);line-height:1.65}
.blog-post-hero{max-width:none;margin:0}
.blog-post-hero img{max-height:none;object-fit:contain;border-radius:18px;background:#292722}
.blog-post-hero figcaption{text-align:left;margin-top:11px}
.blog-post-meta{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:96px;margin-bottom:clamp(44px,6vw,76px);padding:19px 0;border-bottom:1px solid var(--line)}
.blog-author-row{justify-content:flex-start;margin:0;min-width:0}
.blog-author-icon{width:44px;height:44px;flex:none;font-size:21px}
.blog-author-row>div:nth-child(2){font-size:13px;line-height:1.4}
.blog-author-row strong{font-size:13px}
.blog-meta-share{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;font-size:12px}
.blog-meta-share>span{margin-right:5px;color:var(--muted)}
.blog-meta-share a,.blog-meta-share button{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#282620;color:var(--text);font:inherit;text-decoration:none;cursor:pointer;white-space:nowrap;transition:border-color .2s ease,color .2s ease}
.blog-meta-share a:hover,.blog-meta-share button:hover,.blog-share a:hover,.blog-share button:hover{border-color:var(--primary);color:var(--primary)}
.blog-reading-layout{grid-template-columns:minmax(190px,250px) minmax(0,730px);justify-content:space-between;gap:clamp(34px,5vw,74px)}
.blog-reading-main{min-width:0}
.blog-reading-side{top:24px;align-content:start;gap:20px}
.blog-sidebar-note{padding:25px;background:radial-gradient(circle at 90% 0%,rgba(255,152,0,.14),transparent 57%),#29251e}
.blog-sidebar-note>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#4b331d;font-size:25px}
.blog-sidebar-note h2{margin:19px 0 9px;font-size:18px;line-height:1.3}
.blog-sidebar-note p{margin:0 0 18px}
.blog-toc{padding:23px 24px;background:transparent}
.blog-toc .eyebrow{margin:0;color:var(--text);font-size:12px}
.blog-toc nav{gap:0;margin:14px 0 0;padding-left:13px;border-left:1px solid var(--line-strong)}
.blog-toc a{display:block;padding:8px 0 8px 11px;border-left:2px solid transparent;transform:translateX(-14px);line-height:1.45}
.blog-toc a:hover,.blog-toc a:focus-visible{border-color:var(--primary);color:var(--primary)}
.blog-article-body{font-size:16px;line-height:1.8}
.blog-article-body>p:first-child{font-size:17px;line-height:1.75;color:var(--text)}
.blog-article-body h2{margin-top:52px;font-size:clamp(24px,2.3vw,30px)}
.blog-article-body h3{font-size:clamp(20px,1.8vw,23px)}
.blog-article-body blockquote{margin:38px 0;padding:16px 0 16px 26px;border-left-width:4px;color:#f2d4ae;font-size:clamp(18px,2vw,21px)}
.blog-article-body figure{margin:42px 0}
.blog-article-body figure img,.blog-article-body figure video{border:1px solid var(--line)}
.blog-article-body figcaption{text-align:left;line-height:1.5}
.blog-share{margin-top:48px}
.blog-related{margin-top:clamp(70px,9vw,120px);padding-top:5px;border-top:1px solid var(--line)}
.blog-related .blog-list-head{margin-top:39px}
@media(max-width:900px){.blog-reading-layout{grid-template-columns:minmax(170px,220px) minmax(0,1fr);gap:28px}.blog-meta-share>span{display:none}}
@media(max-width:700px){.blog-post{padding-top:25px}.blog-post-head{margin-bottom:25px}.blog-crumbs{margin-bottom:26px}.blog-post h1{font-size:clamp(30px,8vw,38px)}.blog-post-hero img{aspect-ratio:auto;max-height:460px;object-fit:contain;background:#292722}.blog-post-meta{align-items:flex-start;flex-direction:column;margin-bottom:36px;gap:17px}.blog-meta-share{justify-content:flex-start}.blog-reading-layout{display:flex;flex-direction:column}.blog-reading-side{order:0;display:block;width:100%;margin:0}.blog-sidebar-note{display:none}.blog-toc{padding:18px 20px}.blog-toc nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}.blog-reading-main{order:1;width:100%}.blog-article-body h2{margin-top:38px}.blog-related{margin-top:65px}}
@media(max-width:480px){.blog-post-hero img{border-radius:12px}.blog-post-meta{padding-bottom:21px}.blog-meta-share{width:100%}.blog-meta-share a,.blog-meta-share button{font-size:11px;padding:7px 9px}.blog-toc nav{grid-template-columns:1fr}.blog-article-body{font-size:15px;line-height:1.75}}

/* Article reading and sharing: restrained dark editorial layout. */
.blog-post-head,.blog-post-hero,.blog-post-meta{width:min(100%,1060px);margin-inline:auto}
.blog-post-head{margin-bottom:30px}
.blog-post h1{text-wrap:balance}
.blog-post-hero img{aspect-ratio:1200/630;object-fit:cover}
.blog-post-meta{margin-bottom:clamp(42px,6vw,72px)}
.blog-reading-layout{width:min(100%,1060px);margin-inline:auto;grid-template-columns:minmax(190px,230px) minmax(0,700px);gap:clamp(32px,5vw,72px)}
.blog-share-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.blog-meta-share .blog-share-actions{justify-content:flex-end}
.blog-share-icon,.blog-copy-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:40px;min-height:40px;border:1px solid var(--line-strong);border-radius:10px;background:#282620;color:var(--text);text-decoration:none;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
.blog-share-icon:hover,.blog-copy-link:hover{background:#3a3024;border-color:var(--primary);color:var(--primary);transform:translateY(-2px)}
.blog-share-icon:focus-visible,.blog-copy-link:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.blog-share-icon svg,.blog-copy-link svg{display:block;flex:none;transition:transform .18s ease}
.blog-share-icon:hover svg,.blog-copy-link:hover svg{transform:scale(1.1)}
.blog-copy-link{padding:0 13px;font:inherit;font-size:12px;font-weight:700;white-space:nowrap}
.blog-meta-share>span{font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.blog-preview-share-note{color:var(--muted);font-size:12px}
.blog-share{justify-content:space-between;align-items:center;padding:24px 0 0}
.blog-share>div:first-child{display:grid;gap:5px}
.blog-share>div:first-child .eyebrow{margin:0;color:var(--primary);font-size:11px}
.blog-share>div:first-child strong{font-size:18px;letter-spacing:-.02em}
.blog-share .blog-share-actions{display:flex;gap:9px}
.blog-share-preview{color:var(--muted)}
.blog-share-preview p{margin:0;font-size:13px}
@media(max-width:900px){.blog-reading-layout{grid-template-columns:minmax(170px,210px) minmax(0,1fr);gap:28px}}
@media(max-width:700px){.blog-post-hero img{aspect-ratio:1200/630;max-height:none}.blog-reading-layout{display:flex}.blog-share{align-items:flex-start;gap:18px}}
@media(max-width:480px){.blog-meta-share{align-items:flex-start;flex-direction:column}.blog-meta-share .blog-share-actions{justify-content:flex-start}.blog-share-icon{min-width:44px;min-height:44px}.blog-copy-link{min-height:44px}.blog-share{flex-direction:column}.blog-share .blog-share-actions{width:100%}}
@media(prefers-reduced-motion:reduce){.blog-share-icon,.blog-copy-link,.blog-share-icon svg,.blog-copy-link svg{transition:none}.blog-share-icon:hover,.blog-copy-link:hover,.blog-share-icon:hover svg,.blog-copy-link:hover svg{transform:none}}

/* Editorial lists preserve native list semantics while using a readable visual marker. */
.blog-article-body ul,.blog-article-body ol{display:grid;gap:12px;list-style:none;margin:25px 0 31px;padding:0;counter-reset:article-step}
.blog-article-body li{position:relative;margin:0;padding:15px 18px 15px 52px;border:1px solid var(--line);border-radius:12px;background:#25231f;color:var(--text);line-height:1.6}
.blog-article-body ul li::before,.blog-article-body ol li::before{position:absolute;left:16px;top:15px;display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#47321d;color:#ffb354;font-size:13px;font-weight:800;line-height:1}
.blog-article-body ul li::before{content:'✓'}
.blog-article-body ol li{counter-increment:article-step}
.blog-article-body ol li::before{content:counter(article-step)}
.blog-article-body h2,.blog-article-body h3,.legal-sections section{scroll-margin-top:100px}

.legal-page{max-width:1160px;min-height:68dvh;padding:54px 24px 100px}
.legal-breadcrumb{display:flex;align-items:center;gap:10px;margin-bottom:38px;color:var(--muted);font-size:13px}
.legal-breadcrumb a{color:var(--muted);text-decoration:none}
.legal-breadcrumb a:hover{color:var(--primary)}
.legal-header{max-width:770px;margin-bottom:55px}
.legal-header .eyebrow{margin-bottom:16px}
.legal-header h1{margin:0 0 15px;font-size:clamp(34px,4vw,48px);line-height:1.12;letter-spacing:-.045em}
.legal-intro{margin:0;color:#c8c1b6;font-size:clamp(16px,1.7vw,19px);line-height:1.65}
.legal-layout{display:grid;grid-template-columns:minmax(200px,250px) minmax(0,1fr);gap:clamp(36px,6vw,90px);align-items:start}
.legal-toc{position:sticky;top:30px;display:grid;gap:3px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#25231f}
.legal-toc strong{margin-bottom:10px;color:var(--text);font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.legal-toc a{padding:9px 0;color:var(--muted);font-size:13px;line-height:1.4;text-decoration:none}
.legal-toc a:hover,.legal-toc a:focus-visible{color:var(--primary)}
.legal-sections{min-width:0}
.legal-sections section{padding:0 0 28px;margin:0 0 35px;border-bottom:1px solid var(--line)}
.legal-sections h2{margin:0 0 15px;color:var(--text);font-size:clamp(21px,2.2vw,27px);line-height:1.3;letter-spacing:-.025em}
.legal-sections p{margin:0 0 17px;color:#beb8ae;font-size:15px;line-height:1.8}
.legal-links{display:flex;gap:15px;flex-wrap:wrap;margin-top:18px}
.legal-links a,.legal-contact a{color:var(--primary);text-underline-offset:4px}
.legal-contact{display:flex;gap:17px;margin:37px 0 20px;padding:23px;border:1px solid #70502d;border-radius:16px;background:#30271d}
.legal-contact>span{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:#4d341b;color:var(--primary);font-size:20px}
.legal-contact strong{display:block;margin-bottom:4px;color:var(--text);font-size:16px}
.legal-contact p{margin:0;font-size:14px}
.legal-date{margin:18px 0 0!important;font-size:12px!important}
@media(max-width:760px){.legal-page{padding:35px 20px 70px}.legal-header{margin-bottom:34px}.legal-breadcrumb{margin-bottom:30px}.legal-layout{display:block}.legal-toc{position:static;display:flex;overflow-x:auto;gap:17px;align-items:center;margin-bottom:38px;padding:15px 18px;white-space:nowrap}.legal-toc strong{flex:none;margin:0 9px 0 0}.legal-toc a{flex:none}.legal-sections section{margin-bottom:30px}}

/* Blog cards use the actual 1200×630 cover ratio; no edge text is clipped. */
.blog-card-image{aspect-ratio:40/21}
.blog-card-image img{object-fit:contain}
.blog-card:hover .blog-card-image img{transform:none}

/* The reading navigation scrolls inside its viewport instead of disappearing below it. */
.blog-reading-side{position:sticky;top:20px;display:block;max-height:calc(100dvh - 40px);min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#76512c transparent}
.blog-reading-side .blog-sidebar-note{display:none}
.blog-toc{padding:20px 18px}
.blog-toc nav{padding-left:0;border-left:0}
.blog-toc a{position:relative;display:block;min-width:0;margin:0;padding:9px 12px;border:0;border-left:2px solid transparent;border-radius:0 8px 8px 0;transform:none;overflow-wrap:anywhere;transition:color .16s ease,background-color .16s ease,border-color .16s ease}
.blog-toc a[data-toc-level="3"]{padding-left:24px;font-size:12px;color:#aaa398}
.blog-toc a:hover,.blog-toc a:focus-visible{border-left-color:#9b6e3c;background:#33291f;color:#ffe0b2}
.blog-toc a[aria-current="location"]{border-left-color:var(--primary);background:#3b2d1d;color:#ffbb65;font-weight:750}
.blog-toc a:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
@media(max-width:700px){.blog-reading-side{position:static;max-height:none;overflow:visible}.blog-toc{max-height:260px;overflow-y:auto}.blog-toc nav{grid-template-columns:1fr}.blog-toc a{padding:8px 10px}.blog-toc a[data-toc-level="3"]{padding-left:20px}}

/* Each illustrated step couples a real, described visual to its instruction. */
.blog-article-body .article-illustrated-list{display:grid;gap:20px;margin:30px 0 38px;padding:0}
.blog-article-body .article-illustrated-list>li{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:22px;align-items:center;min-width:0;margin:0;padding:19px;border:1px solid #5d4830;border-radius:17px;background:#28231d}
.blog-article-body .article-illustrated-list>li::before{display:none}
.article-step-copy{display:grid;align-content:center;gap:14px;padding:10px 4px 10px 12px}
.article-step-number{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:#563719;color:#ffb45c;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.article-step-copy p{margin:0;color:var(--text);font-size:16px;font-weight:650;line-height:1.55}
.blog-article-body .article-illustrated-list figure{min-width:0;margin:0}
.blog-article-body .article-illustrated-list figure img{display:block;width:100%;height:auto;max-height:350px;object-fit:contain;border:1px solid #584b3c;border-radius:12px;background:#211f1b}
.blog-article-body .article-illustrated-list figcaption{margin:9px 0 0;font-size:11px;line-height:1.5}
.article-table-wrap{max-width:100%;margin:28px 0 38px;overflow-x:auto;border:1px solid var(--line-strong);border-radius:14px;background:#25231f}
.article-table-wrap:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.article-table-wrap table{width:100%;min-width:490px;border-collapse:collapse;font-size:14px;line-height:1.55}
.article-table-wrap th,.article-table-wrap td{padding:15px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.article-table-wrap th{background:#34291e;color:#ffc37a;font-weight:800}
.article-table-wrap td{color:#e5ded3}
.article-table-wrap tbody tr:last-child td{border-bottom:0}
.article-table-wrap tbody tr:nth-child(even){background:#2b2924}
.editorial-list-illustrated{display:flex;align-items:center;gap:9px;margin-top:9px;color:var(--muted);font-size:12px;line-height:1.4}
.editorial-list-illustrated input{accent-color:var(--primary)}

/* The blog composer is one continuous writing canvas; storage remains server-validated. */
.editorial-composer{min-height:0;padding:20px;background:#24231f}
.editorial-composer .editorial-title-field{margin:0 0 20px}
.editorial-composer .editorial-title-field input{min-height:64px;font-size:clamp(22px,2.2vw,29px);font-weight:650;background:#1e1d1a}
.classic-editor{border:1px solid var(--line-strong);border-radius:13px;background:#1e1d1a;overflow:hidden}
.classic-editor-top{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:13px 15px 0;border-bottom:1px solid var(--line);background:#27251f}
.classic-editor-top>.button{margin-bottom:12px;white-space:nowrap}
.classic-editor-tabs{display:flex;align-items:end;gap:5px}
.classic-editor-tabs button{min-width:70px;min-height:42px;padding:8px 14px;border:1px solid transparent;border-radius:9px 9px 0 0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.classic-editor-tabs button[aria-selected="true"]{border-color:var(--line-strong);border-bottom-color:#1e1d1a;background:#1e1d1a;color:var(--text)}
.classic-editor-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:10px 13px;border-bottom:1px solid var(--line);background:#25231f}
.classic-editor-toolbar[hidden],.classic-editor-surface[hidden],.classic-editor-code[hidden]{display:none}
.classic-editor-toolbar select,.classic-editor-toolbar button{min-height:38px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:13px;cursor:pointer}
.classic-editor-toolbar select{min-width:120px;padding:6px 10px;border-color:var(--line);background:#312e27}
.classic-editor-toolbar button{padding:6px 10px;font-weight:650}
.classic-editor-toolbar button:hover,.classic-editor-toolbar select:hover{background:#3a3328;color:#ffb450}
.classic-editor-divider{width:1px;height:22px;margin:0 5px;background:var(--line-strong)}
.classic-editor-surface{min-height:580px;padding:28px 34px 58px;color:#eee9e0;font-size:16px;line-height:1.78;overflow-wrap:anywhere;outline:none}
.classic-editor-surface:focus-visible{box-shadow:inset 0 0 0 2px #ff980066}
.classic-editor-surface:empty::before{content:attr(data-placeholder);color:var(--muted)}
.classic-editor-surface>p,.classic-editor-surface>ul,.classic-editor-surface>ol,.classic-editor-surface>blockquote{margin:0 0 22px}
.classic-editor-surface h2,.classic-editor-surface h3{margin:30px 0 14px;color:var(--text);line-height:1.28;letter-spacing:-.025em}
.classic-editor-surface h2{font-size:26px}.classic-editor-surface h3{font-size:21px}
.classic-editor-surface ul,.classic-editor-surface ol{padding-left:28px}
.classic-editor-surface li{margin:0 0 10px;padding-left:3px}
.classic-editor-surface blockquote{padding:8px 0 8px 20px;border-left:3px solid var(--primary);color:#ffd098}
.classic-editor-surface a{color:#ffae43;text-decoration:underline;text-underline-offset:3px}
.classic-editor-surface table{display:block;max-width:100%;margin:18px 0 25px;border-collapse:collapse;overflow-x:auto}
.classic-editor-surface th,.classic-editor-surface td{min-width:100px;padding:11px 14px;border:1px solid #504739;text-align:left;font-size:14px}
.classic-editor-surface th{background:#382e20;color:#ffc47c}
.classic-editor-media{position:relative;width:min(100%,740px);margin:25px auto;padding:13px 13px 48px;border:1px solid var(--line-strong);border-radius:13px;background:#2b2924;text-align:center}
.classic-editor-media img,.classic-editor-media video{display:block;width:100%;max-height:470px;object-fit:contain;border-radius:8px}
.classic-editor-media figcaption{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.classic-editor-media button{position:absolute;right:12px;bottom:9px;min-height:32px;padding:4px 9px;border:1px solid var(--line-strong);border-radius:7px;background:#3a342a;color:var(--text);font:inherit;font-size:11px;cursor:pointer}
.classic-editor-media [data-replace-media]{right:90px}

/* A compact home-page directory makes the primary destinations easy to find and crawl. */
.home-pathways{width:min(1180px,calc(100% - 40px));margin:38px auto 28px;padding:0 0 12px}
.home-pathways-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}
.home-pathways-heading .eyebrow{margin:0 0 8px}
.home-pathways-heading h2{margin:0;color:var(--text);font-size:clamp(22px,2.2vw,29px);line-height:1.2;letter-spacing:-.025em}
.home-pathways-heading>p{max-width:350px;margin:0 0 2px;color:var(--muted);font-size:13px;line-height:1.55}
.home-pathways-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-pathway{display:flex;align-items:center;gap:14px;min-width:0;min-height:102px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);text-decoration:none;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.home-pathway:hover{border-color:#936328;background:#2a251d;transform:translateY(-2px)}
.home-pathway:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.home-pathway-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid #534029;border-radius:11px;background:#39291a;color:var(--primary)}
.home-pathway-icon .icon{width:21px;height:21px}
.home-pathway-copy{display:grid;gap:5px;min-width:0}
.home-pathway-copy strong{font-size:14px;line-height:1.35}
.home-pathway-copy small{color:var(--muted);font-size:12px;line-height:1.45}
.home-pathway-arrow{align-self:flex-start;margin-left:auto;color:var(--primary);font-size:18px;line-height:1}
@media(max-width:900px){.home-pathways-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.home-pathways{width:calc(100% - 32px);margin:28px auto 12px}.home-pathways-heading{align-items:start;flex-direction:column;gap:8px}.home-pathways-grid{grid-template-columns:1fr;gap:9px}.home-pathway{min-height:84px;padding:14px}}
@media(prefers-reduced-motion:reduce){.home-pathway{transition:none}.home-pathway:hover{transform:none}}
.classic-editor-media button:hover{border-color:var(--primary);color:var(--primary)}
.classic-editor-surface [data-illustrated="true"]{padding:0;list-style:none;counter-reset:editorial-step}
.classic-editor-surface [data-illustrated="true"]>li{position:relative;margin:20px 0;padding:16px 17px 1px;border:1px solid #54422b;border-radius:12px;background:#29251f;counter-increment:editorial-step}
.classic-editor-surface [data-illustrated="true"]>li>span::before{content:counter(editorial-step,decimal-leading-zero);margin-right:12px;color:#ffad45;font-weight:800}
.classic-editor-surface [data-illustrated="true"] figure{margin:14px 0}
.classic-editor-code{display:block;width:100%;min-height:580px;padding:25px 29px;border:0;background:#1c1b18;color:#e6e0d6;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;outline:none}
.classic-editor-hint{margin:13px 3px 0}
.classic-editor .editorial-composer-foot{margin:0;padding:10px 16px;border-top:1px solid var(--line);background:#25231f}
.classic-editor button:focus-visible,.classic-editor select:focus-visible,.classic-editor-code:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:700px){.editorial-composer{padding:13px}.classic-editor-top{padding:10px 10px 0}.classic-editor-top>.button{padding:8px 10px;font-size:12px}.classic-editor-tabs button{min-width:55px;padding:8px 10px}.classic-editor-toolbar{gap:3px;padding:8px}.classic-editor-toolbar select{min-width:105px}.classic-editor-toolbar button{padding:6px 7px;font-size:12px}.classic-editor-divider{margin:0 2px}.classic-editor-surface{min-height:430px;padding:19px 17px 40px;font-size:15px}.classic-editor-code{min-height:430px;padding:17px}.classic-editor .editorial-composer-foot{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.blog-article-body .article-illustrated-list>li{grid-template-columns:1fr;gap:13px;padding:14px}.article-step-copy{padding:4px;gap:9px}.article-step-copy p{font-size:15px}.blog-article-body .article-illustrated-list figure img{max-height:none}}
@media(max-width:390px){.site-footer{grid-template-columns:minmax(0,1fr);gap:18px}.site-footer .footer-tool-column{padding-bottom:14px}}
.site-code-intro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}
.site-code-intro>div{min-width:0;padding:20px;border:1px solid #39362e;border-radius:14px;background:#23221e}
.site-code-intro strong{display:block;margin:7px 0 5px;color:var(--text);font-size:14px}
.site-code-intro p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.site-code-intro code{color:#e7c594;overflow-wrap:anywhere}
.site-code-step{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid rgba(255,152,0,.35);border-radius:9px;color:var(--primary);background:rgba(255,152,0,.08);font-size:11px;font-weight:800}
.site-code-panel{max-width:1100px}
.site-code-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.site-code-form label:not(.site-code-toggle){display:grid;align-content:start;gap:7px;color:var(--text);font-size:12px;font-weight:700}
.site-code-form input:not([type=checkbox]),.site-code-form select,.site-code-form textarea{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line-strong);border-radius:9px;background:var(--input);color:var(--text);font:inherit;font-size:13px}
.site-code-form textarea{min-height:140px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.55;tab-size:2}
.site-code-form input:focus-visible,.site-code-form select:focus-visible,.site-code-form textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.site-code-form .site-code-wide,.site-code-actions{grid-column:1/-1}
.site-code-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.site-code-toggle{display:inline-flex;align-items:center;gap:9px;color:var(--text);font-size:12px;font-weight:650;cursor:pointer}
.site-code-toggle input{accent-color:var(--primary);width:16px;height:16px}
.site-code-list{max-width:1100px;margin-top:34px}
.site-code-count{margin-left:6px;color:var(--primary);font-size:13px}
.site-code-entry{margin:0 0 10px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);overflow:hidden}
.site-code-entry[open]{border-color:rgba(255,152,0,.42)}
.site-code-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px;padding:14px 18px;cursor:pointer;list-style:none}
.site-code-summary::-webkit-details-marker{display:none}
.site-code-summary:hover{background:rgba(255,152,0,.045)}
.site-code-summary:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}
.site-code-summary-main,.site-code-summary-end{display:flex;align-items:center;gap:14px;min-width:0}
.site-code-entry-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:14px;font-weight:700}
.site-code-entry-meta,.site-code-summary-end{color:var(--muted);font-size:12px}
.site-code-entry-meta{white-space:nowrap}
.site-code-chevron{width:9px;height:9px;flex:none;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s ease}
.site-code-entry[open] .site-code-chevron{transform:rotate(225deg)}
.site-code-entry-body{padding:20px 18px 18px;border-top:1px solid var(--line);animation:site-code-reveal .2s ease-out}
@keyframes site-code-reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.site-code-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}
.site-code-card-head h3{margin:8px 0 2px;font-size:17px;line-height:1.25}
.site-code-card-head p,.site-code-card-head>small{margin:0;color:var(--muted);font-size:12px}
.site-code-delete{margin-top:17px;padding-top:15px;border-top:1px solid var(--line)}
.site-code-delete button{border:0;background:none;color:#dca9a0;font:inherit;font-size:12px;cursor:pointer}
.site-code-delete button:hover{text-decoration:underline;text-underline-offset:3px}
.site-code-empty{padding:26px;border:1px dashed var(--line-strong);border-radius:14px;color:var(--muted);font-size:13px}
.site-code-warning{max-width:1100px;color:var(--muted);font-size:12px;line-height:1.6}
@media(max-width:760px){.site-code-intro{grid-template-columns:1fr}.site-code-form{grid-template-columns:1fr}.site-code-form .site-code-wide,.site-code-actions{grid-column:1}.site-code-summary-main{flex-wrap:wrap;gap:6px 10px}.site-code-summary-end>span:first-child{display:none}.site-code-entry-label{flex-basis:calc(100% - 90px)}.site-code-entry-meta{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.site-code-chevron,.site-code-entry-body{animation:none;transition:none}}

/* Blog management keeps media, state, and actions readable at every width. */
.admin-blog-page{max-width:1500px;margin-inline:auto}
.admin-blog-notice{margin:0 0 20px;padding:13px 17px;border:1px solid #557044;border-radius:10px;background:#263321;color:#c6e6af;font-size:13px}
.admin-blog-list{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.admin-blog-item{display:grid;grid-template-columns:120px minmax(0,1fr) auto;align-items:center;gap:18px;min-width:0;padding:13px;border:1px solid #39362e;border-radius:12px;background:#1e1d1a}
.admin-blog-thumb{display:grid;place-items:center;width:120px;aspect-ratio:30/19;overflow:hidden;border:1px solid #3f3a31;border-radius:8px;background:#181714;color:#8c806f}
.admin-blog-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.admin-blog-thumb .icon{width:26px;height:26px}
.admin-blog-main{min-width:0}
.admin-blog-main h3{margin:0 0 5px;color:var(--text);font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.admin-blog-slug{margin:0 0 10px;color:#999187;font-size:11px;overflow-wrap:anywhere}
.admin-blog-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:11px}
.admin-blog-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;max-width:285px}
.admin-blog-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border:1px solid #4b463a;border-radius:7px;color:#e5dfd5;text-decoration:none;font-size:11px;font-weight:700;white-space:nowrap;transition:background .15s ease,border-color .15s ease,color .15s ease}
.admin-blog-actions a:hover{border-color:#a97027;background:#35291b;color:#ffc47a}
.admin-blog-actions .admin-blog-delete-link{border-color:#664039;color:#eaa89d}
.admin-blog-actions .admin-blog-delete-link:hover{border-color:#d57465;background:#3c2420;color:#ffd0c7}
.admin-blog-actions a:focus-visible,.admin-blog-pagination a:focus-visible,.admin-blog-confirm-actions :focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.admin-blog-empty{padding:34px 14px;color:var(--muted);font-size:13px;text-align:center}
.admin-blog-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;color:var(--muted);font-size:12px}
.admin-blog-pagination a{padding:8px 12px;border:1px solid var(--line-strong);border-radius:8px;color:var(--text);text-decoration:none}
.admin-blog-pagination a:hover{border-color:var(--primary);color:var(--primary)}
.admin-blog-confirm{max-width:750px;padding:24px;border:1px solid #554237;border-radius:14px;background:#23211e}
.admin-blog-confirm-post{display:flex;align-items:center;gap:18px;min-width:0}
.admin-blog-confirm-post>div:last-child{min-width:0}
.admin-blog-confirm-post h2{margin:0 0 5px;font-size:19px;line-height:1.35;overflow-wrap:anywhere}
.admin-blog-confirm-post p{margin:0 0 9px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.admin-blog-warning{margin:23px 0;padding:15px 17px;border-left:3px solid #dd7967;background:#332521;color:#ebd2c8;font-size:13px;line-height:1.6}
.admin-blog-confirm-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.admin-blog-danger-button{min-height:40px;padding:9px 16px;border:1px solid #d87866;border-radius:8px;background:#a83c32;color:#fff;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.admin-blog-danger-button:hover{background:#bf493d}
@media(max-width:1100px){.admin-blog-item{grid-template-columns:100px minmax(0,1fr)}.admin-blog-item .admin-blog-thumb{width:100px}.admin-blog-actions{grid-column:2;justify-content:flex-start;max-width:none}}
@media(max-width:560px){.admin-blog-item{grid-template-columns:78px minmax(0,1fr);gap:11px;padding:10px}.admin-blog-item .admin-blog-thumb{width:78px}.admin-blog-main h3{font-size:13px}.admin-blog-actions{grid-column:1/-1;justify-content:flex-start;padding-top:8px;border-top:1px solid #39362e}.admin-blog-actions a{min-height:36px}.admin-blog-confirm{padding:16px}.admin-blog-confirm-post{align-items:flex-start;gap:12px}.admin-blog-confirm-post .admin-blog-thumb{width:80px;flex:none}.admin-blog-confirm-post h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){.admin-blog-actions a{transition:none}}

/* ── Header Actions & Language Switcher ─────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-raised);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  transition: color .2s, background .2s, border-color .2s, transform .15s;
}
.lang-trigger:hover,
.lang-trigger[aria-expanded='true'] {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(255, 152, 0, 0.45);
}
.lang-trigger:active {
  transform: scale(0.95);
}
.lang-globe-icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.lang-code {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lang-trigger .nav-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}
.nav-overflow-lang {
  padding: 12px 14px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.nav-overflow-lang-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-overflow-lang-button:hover {
  background: var(--primary-soft);
  border-color: rgba(255, 152, 0, 0.4);
  color: var(--primary);
}
.nav-overflow-lang-button svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: none;
}

/* ── Multi-Language Modal ────────────────────────────────── */
.lang-card.is-unavailable { opacity: .55; cursor: not-allowed; }
.lang-card.is-unavailable:hover { transform: none; }
.lang-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 11, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-modal-backdrop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.lang-modal-container {
  width: 100%;
  max-width: 1000px;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-modal-backdrop:not([hidden]) .lang-modal-container {
  transform: scale(1) translateY(0);
}
.lang-modal {
  background: var(--page);
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.12));
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 152, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lang-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.lang-modal-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.lang-modal-header-icon svg {
  width: 22px;
  height: 22px;
}
.lang-modal-header-text {
  flex: 1;
  min-width: 0;
}
.lang-modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -0.02em;
}
.lang-modal-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.lang-modal-close {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.lang-modal-close:hover {
  color: var(--text);
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.2);
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  padding: 20px 24px;
  max-height: 62vh;
  overflow-y: auto;
}
.lang-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lang-card:hover {
  border-color: rgba(255, 152, 0, 0.45);
  background: var(--surface);
  transform: translateY(-1px);
}
.lang-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--primary);
}
.lang-flag {
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.lang-names {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.lang-native {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.lang-english {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.lang-badge {
  display: none;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #12100d;
}
.lang-arrow {
  color: var(--muted);
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  transition: transform 0.2s, color 0.2s;
}
.lang-arrow svg {
  width: 12px;
  height: 12px;
  transform: rotate(-90deg);
}
.lang-card:hover .lang-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ── RTL Overrides ──────────────────────────────────────── */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] body {
  line-height: 1.75;
}
[lang="ur-PK"] body {
  font-family: 'Noto Naskh Arabic', 'Urdu Typesetting', 'Geeza Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.9;
}
[dir="rtl"] :is(h1, h2, h3) {
  letter-spacing: 0;
}
[dir="rtl"] .brand {
  flex-direction: row;
}
[dir="rtl"] .lang-arrow svg {
  transform: rotate(90deg);
}
[dir="rtl"] .lang-card:hover .lang-arrow {
  transform: translateX(-3px);
}
[dir="rtl"] .nav-dropdown {
  right: 0;
  left: auto;
}
[dir="rtl"] .nav-group:nth-last-child(-n + 2) .nav-dropdown {
  left: 0;
  right: auto;
}
[dir="rtl"] .site-nav {
  margin-right: auto;
  margin-left: 0;
}
[dir="rtl"] .nav-overflow-panel {
  right: auto;
  left: clamp(16px, 3vw, 56px);
  transform-origin: top left;
}
[dir="rtl"] .analysis-card,
[dir="rtl"] .threads-media-option,
[dir="rtl"] .site-nav .nav-trigger > span {
  text-align: right;
}
[dir="rtl"] .home-pathway-arrow {
  margin-right: auto;
  margin-left: 0;
  transform: scaleX(-1);
}
[dir="rtl"] :is(input[type="url"], input[inputmode="url"]) {
  direction: ltr;
  text-align: left;
}
@media (max-width: 1080px) {
  [dir="rtl"] .site-nav {
    margin: 0;
  }
  [dir="rtl"] .site-nav .nav-dropdown,
  [dir="rtl"] .site-nav .nav-group:nth-last-child(-n + 2) .nav-dropdown {
    padding-right: 32px;
    padding-left: 0;
  }
}
