:root {
  --ink: #121212;
  --ink-soft: #3a3a3a;
  --muted: #5c5c5c;
  --paper: #f7f7f4;
  --panel: #ffffff;
  --line: rgba(18, 18, 18, 0.12);
  --accent: #1a4fd6;
  --accent-ink: #ffffff;
  --ok: #0f6b4c;
  --err: #b42318;
  --shadow: 0 1px 0 rgba(18, 18, 18, 0.04);
  --radius: 10px;
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", "PingFang TC", sans-serif;
  --font-display: var(--font-sans);
}

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

html {
  overflow-x: clip;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

code {
  font-family: var(--font-sans);
  font-size: 0.92em;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #f0f0eb 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(18, 18, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
}

.shell {
  width: min(640px, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(2.25rem, 8vh, 4rem) 0 3rem;
  box-sizing: border-box;
}

.hero {
  margin-bottom: 1.35rem;
  animation: rise 0.65s ease both;
}

.brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8.5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.lede {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.tool {
  padding: 1.2rem 1.25rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: rise 0.65s ease 0.06s both;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.field-row {
  display: flex;
  gap: 0.55rem;
}

#url-input {
  flex: 1;
  min-width: 0;
  height: 2.9rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#url-input:focus {
  border-color: rgba(26, 79, 214, 0.65);
  box-shadow: 0 0 0 3px rgba(26, 79, 214, 0.12);
}

#clean-btn,
.copy-primary {
  flex-shrink: 0;
  height: 2.9rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

#clean-btn:hover:not(:disabled),
.copy-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

#clean-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.field-hint {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.field-hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.field-hint a:hover {
  text-decoration: underline;
}

.status {
  min-height: 1.25rem;
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.status.loading {
  color: var(--ink-soft);
  font-weight: 500;
}

.status.success {
  color: var(--ok);
}

.status.error {
  color: var(--err);
}

.results {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.75rem;
  max-width: 100%;
  min-width: 0;
  animation: rise 0.5s ease both;
}

.results[hidden] {
  display: none;
}

.result-primary {
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-url {
  display: block;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: pre-wrap;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.result-url.muted {
  color: var(--muted);
  font-size: 0.75rem;
}

.copy-primary {
  width: 100%;
  margin-top: 1rem;
  height: 3rem;
  font-size: 1rem;
}

.removed-summary {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: var(--ok);
  font-weight: 600;
}

.more-details {
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.more-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.more-details summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--muted);
}

.more-details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.detail-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-block ol {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-block li + li {
  margin-top: 0.35rem;
}

.copy-btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.count-badge {
  min-width: 1.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(15, 107, 76, 0.1);
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.install {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  animation: rise 0.65s ease 0.1s both;
}

.install h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.install-lede {
  margin: 0 0 1.05rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.install-grid {
  display: grid;
  gap: 0.75rem;
}

.install-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.install-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.install-card-lede {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.install-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
}

.install-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.install-after {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.install-card ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.install-card li + li {
  margin-top: 0.35rem;
}

.install-manual {
  margin-top: 0.9rem;
}

.install-manual ol {
  margin-top: 0.8rem;
}

.shortcut-url-box {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.shortcut-url {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.copy-steps {
  margin-top: 0.7rem;
}

.foot {
  margin-top: 2.25rem;
  animation: rise 0.65s ease 0.14s both;
}

.foot p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--ok);
}

.shell-share {
  width: min(560px, calc(100% - 2rem));
  padding-top: clamp(2rem, 7vh, 3.5rem);
}

.share-status {
  margin: 0 0 0.85rem;
  min-height: 0;
}

.share-brand {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6.5vw, 2.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

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

.share-brand a:hover {
  color: var(--accent);
}

.share-empty {
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.share-empty p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.share-empty a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.share-empty a:hover {
  text-decoration: underline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1.25rem, 640px);
    padding-top: 1.75rem;
  }

  .tool {
    padding: 1rem;
  }

  .field-row {
    flex-direction: column;
  }

  #clean-btn {
    width: 100%;
  }

  .shortcut-url-box {
    flex-direction: column;
  }
}

@media (min-width: 720px) {
  .install-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/*
 * CleanShareMe soft-modern refresh.
 * Kept at the end so the deployed cache-busted stylesheet replaces the
 * previous visual system without changing the cleaning behaviour.
 */
:root {
  --ink: #1a322d;
  --ink-soft: #3d5c54;
  --muted: #5f7a72;
  --paper: #ffffff;
  --panel: #ffffff;
  --card: #ffffff;
  --line: #cfe6df;
  --accent: #407d71;
  --accent-dark: #35685e;
  --accent-soft: #d8f3ea;
  --accent-ink: #ffffff;
  --ok: #1f6b54;
  --err: #b6574d;
  --shadow: 0 14px 40px rgba(31, 107, 90, 0.12);
  --radius: 16px;
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", "PingFang TC", sans-serif;
  --font-display: var(--font-sans);
  --font-headline: var(--font-sans);
}

html,
body {
  overflow-x: clip;
}

body {
  color: var(--ink);
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(152, 220, 196, 0.38), transparent 68%),
    radial-gradient(500px 360px at 100% 38%, rgba(180, 226, 232, 0.42), transparent 70%),
    var(--paper);
}

.page-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(31, 138, 116, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 138, 116, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 72%);
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

.site-shell {
  box-sizing: border-box;
  width: min(720px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding:
    clamp(1.35rem, 3.5vh, 2rem)
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: clamp(2.25rem, 7vh, 4.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.privacy-note {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.intro {
  max-width: 37rem;
  margin: 0 auto clamp(1.35rem, 3vh, 1.85rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.intro h1,
.empty-state h1 {
  max-width: 100%;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 4.1vw + 0.3rem, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
}

.intro-copy {
  max-width: 31rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.cleaner-panel {
  padding: clamp(1.15rem, 3vw, 1.45rem);
  border: 1px solid #407d71;
  border-radius: var(--radius);
  background: #407d71;
  box-shadow: var(--shadow);
  text-align: center;
  color: #ffffff;
}

.cleaner-panel .field-label {
  color: #ffffff;
}

.cleaner-panel .field-hint,
.cleaner-panel .status {
  color: rgba(255, 255, 255, 0.88);
}

.cleaner-panel .status.loading {
  color: rgba(255, 255, 255, 0.75);
}

.cleaner-panel .status.error {
  color: #ffe2de;
}

.field-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.field-row {
  display: flex;
  gap: 0.6rem;
}

#url-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 3.25rem;
  height: auto;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#url-input::placeholder {
  color: #9aa8a5;
  opacity: 1;
  line-height: 1.4;
}

#url-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

#clean-btn,
.copy-primary {
  flex-shrink: 0;
  min-height: 3.25rem;
  padding: 0.9rem 1.15rem;
  border: 0;
  border-radius: 11px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

#clean-btn {
  background: #ffffff;
  color: #2a554d;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.copy-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

#clean-btn span {
  margin-left: 0.35rem;
}

#clean-btn:hover:not(:disabled) {
  background: #f3f7f6;
  color: #1f403a;
  transform: translateY(-1px);
}

.copy-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.copy-primary:focus {
  outline: none;
}

.copy-primary:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

#clean-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.field-hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.77rem;
  text-align: center;
}

.status {
  min-height: 0;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.status:empty {
  display: none;
  margin: 0;
}

.status.loading {
  color: var(--ink-soft);
  font-weight: 500;
}

.status.success {
  color: var(--ok);
}

.status.error {
  color: var(--err);
}

.results {
  display: grid;
  gap: 0.85rem;
  max-width: 100%;
  min-width: 0;
  margin-top: 1.15rem;
}

.results[hidden] {
  display: none;
}

.result-primary {
  max-width: 100%;
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 1.4rem);
  overflow: hidden;
  border: 1px solid #cfe2dc;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: none;
  text-align: center;
}

.result-topline,
.result-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.result-head {
  justify-content: space-between;
}

.result-topline {
  margin-bottom: 0.55rem;
}

.result-label {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.result-check {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.result-check svg {
  display: block;
}

.result-url {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: pre-wrap;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
}

.result-url.muted {
  color: var(--muted);
  font-size: 0.76rem;
}

.copy-primary {
  width: 100%;
  margin-top: 1rem;
}

.removed-summary {
  margin: 0.7rem 0 0;
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.removed-summary:empty {
  display: none;
  margin: 0;
}

.details-panel {
  max-width: 100%;
  min-width: 0;
  padding: 0 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.details-panel summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.2rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  list-style: none;
  text-align: center;
}

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

.details-panel summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.details-panel[open] summary::after {
  transform: rotate(45deg);
}

.detail-block {
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 1rem 0;
  overflow-wrap: anywhere;
  border-top: 1px solid var(--line);
  text-align: left;
}

.details-panel .result-url,
.details-panel .meta,
.details-panel ol {
  text-align: left;
}

.detail-block .result-head {
  margin-bottom: 0.55rem;
}

.detail-block ol {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.copy-btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.3rem 0.62rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.count-badge {
  min-width: 1.6rem;
  padding: 0.16rem 0.45rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.install-section {
  margin-top: clamp(3.75rem, 10vh, 5.5rem);
}

.section-heading {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.section-heading > p:last-child {
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.install-card {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}

.device-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  text-align: left;
}

.device-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.device-icon svg {
  display: block;
}

.device-kicker {
  margin: 0 0 0.1rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.install-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.install-card ol {
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.55;
  list-style-position: inside;
  text-align: center;
}

.install-card li + li {
  margin-top: 0.5rem;
}

.install-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.55;
}

.shortcut-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.shortcut-link:hover {
  background: var(--accent-dark);
}

.install-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}

.site-footer {
  margin-top: 3.75rem;
  padding-top: 0.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.share-shell {
  width: min(600px, 100%);
}

.share-status {
  margin: 0 0 1rem;
  text-align: center;
}

.empty-state {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}

.empty-state h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
}

.empty-state > p:not(.eyebrow) {
  margin: 0.9rem auto 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.text-link,
.back-link {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.back-link:hover {
  text-decoration: underline;
}

.back-link {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
}

@media (max-width: 620px) {
  .site-shell {
    width: 100%;
    padding:
      max(1.25rem, env(safe-area-inset-top))
      max(1.35rem, env(safe-area-inset-right))
      max(1.35rem, env(safe-area-inset-bottom))
      max(1.35rem, env(safe-area-inset-left));
  }

  .site-header {
    margin-bottom: 1.85rem;
  }

  .intro {
    margin-bottom: 1.25rem;
  }

  .intro h1 {
    font-size: clamp(1.15rem, 5vw, 1.95rem);
  }

  .intro-copy {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .cleaner-panel,
  .result-primary,
  .install-card,
  .empty-state {
    padding: 1.25rem;
  }

  .details-panel {
    padding: 0 1.15rem;
  }

  .field-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  #url-input,
  #clean-btn,
  .copy-primary {
    min-height: 3.4rem;
    font-size: 16px;
  }

  #url-input {
    padding: 1rem 1.05rem;
  }

  #clean-btn {
    width: 100%;
  }

  .results {
    margin-top: 1.15rem;
    gap: 0.9rem;
  }

  .install-section {
    margin-top: 3.5rem;
  }

  .section-heading {
    margin-bottom: 1rem;
  }

  .section-heading > p:last-child {
    line-height: 1.6;
  }

  .install-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .device-heading {
    margin-bottom: 0.9rem;
  }

  .shortcut-link {
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
  }
}

@media (min-width: 621px) {
  .site-shell {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }

  .install-grid {
    gap: 1.1rem;
  }
}
