:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  --canvas: #f5f5f7;
  --surface: #fff;
  --recessed: #f5f5f7;
  --glass: rgb(255 255 255 / .78);
  --panel: rgb(255 255 255 / .93);
  --ink: #1d1d1f;
  --muted: #65656b;
  --quiet: #86868b;
  --line: rgb(0 0 0 / .06);
  --control-line: rgb(0 0 0 / .14);
  --wash: rgb(0 0 0 / .045);
  --selected: rgb(0 0 0 / .075);
  --accent: #0071e3;
  --accent-hover: #0065cc;
  --accent-ink: #fff;
  --shade: rgb(29 29 31 / .19);
  --window-shadow: 0 8px 30px rgb(0 0 0 / .06);
  --motion: .2s cubic-bezier(.16, 1, .3, 1);
  --card-radius: 24px;
  --control-radius: 8px;
  color: var(--ink);
  background: var(--canvas);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #161618;
  --surface: #1e1e20;
  --recessed: #242426;
  --glass: rgb(30 30 32 / .8);
  --panel: rgb(30 30 32 / .94);
  --ink: #f5f5f7;
  --muted: #ababaf;
  --quiet: #a1a1a6;
  --line: rgb(255 255 255 / .08);
  --control-line: rgb(255 255 255 / .19);
  --wash: rgb(255 255 255 / .06);
  --selected: rgb(255 255 255 / .10);
  --accent: #5aaaf9;
  --accent-hover: #7bbaff;
  --accent-ink: #101820;
  --shade: rgb(17 17 19 / .5);
  --window-shadow: 0 8px 30px rgb(0 0 0 / .17);
}
:root[data-theme="dark"] .brand img { filter: invert(1); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.14; text-wrap: balance; }
p { line-height: 1.55; }
time, bdi { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, textarea, select) { transition: background-color var(--motion), border-color var(--motion), color var(--motion), transform var(--motion); }
:where(button:not(:disabled), .action, .nav-link, .text-button):active { transform: scale(.98); }

.shell { width: min(calc(100% - 80px), 1152px); margin-inline: auto; }
.skip { z-index: 10; position: fixed; inset: 8px auto auto 8px; clip-path: inset(50%); background: var(--surface); padding: 12px 16px; border-radius: var(--control-radius); }
.skip:focus { clip-path: none; }
.site-header { position: sticky; inset-block-start: 0; z-index: 3; border-block-end: 1px solid var(--line); background: var(--glass); }
.site-header, .dialog, .toast { -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.topbar { min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 17px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand img { flex: 0 0 auto; width: 24px; height: 24px; }
.navigation, .header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions { justify-self: end; }
.nav-link, .plain { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--control-radius); background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; text-align: center; }
.nav-link:hover, .plain:hover { background: var(--wash); color: var(--ink); }
.nav-link[aria-current] { background: var(--selected); color: var(--ink); }
.support-toggle { color: var(--ink); flex: 0 0 auto; inline-size: 96px; justify-content: center; padding-inline: 8px; }
.glyph { display: inline-block; font-size: 1.2em; line-height: 1; }
.theme-toggle { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.theme-toggle:hover { background: var(--wash); color: var(--ink); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle svg { width: 18px; height: 18px; pointer-events: none; }
.contact-email { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 8px 10px; border-radius: var(--control-radius); color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.contact-email:hover { background: var(--wash); color: var(--ink); }
.brand-group { display: flex; align-items: center; gap: 16px; min-width: 0; justify-self: start; }
.header-contact-email { inline-size: auto; margin: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.contact-email-address { font-variant-numeric: tabular-nums; }
.language-toggle { flex: 0 0 auto; inline-size: 104px; justify-content: center; padding-inline: 8px; }
.language-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-height: 70vh; padding-block: 64px 80px; }
.boot { height: 336px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--card-radius); }
.home-intro { text-align: center; margin-block: 8px 48px; }
.home-intro h1, .page-title h1 { font-size: clamp(2.75rem, 6vw, 5rem); letter-spacing: -.062em; }
.home-intro p, .page-title p { margin-block-start: 16px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); }
:is(:lang(zh), :lang(ja), :lang(ko)) > :is(h1, h2, h3) { letter-spacing: -.035em; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); }
.hero { display: grid; grid-template-columns: 1fr 1fr; padding: 8px; gap: 8px; }
.hero-copy { align-self: center; min-width: 0; padding: clamp(24px, 4vw, 48px); }
.drop-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; color: var(--ink); font-size: 13px; font-weight: 600; }
.drop-line time { color: var(--muted); font-weight: 400; }
.hero-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-block-start: 16px; }
.hero-name h2, .hero-copy h1 { font-size: clamp(2rem, 3.6vw, 3.5rem); letter-spacing: -.05em; }
.hero-copy p { color: var(--muted); max-width: 46ch; margin-block: 16px 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.free { color: var(--ink); }
.hero-name .free { font-size: 13px; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.tool-meta > * + *::before { content: '·'; margin-inline-end: 12px; color: var(--quiet); }
.tool-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block-start: 24px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--control-radius); font-size: 14px; font-weight: 500; text-align: center; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:not(:disabled):hover { background: var(--accent-hover); }
.primary:disabled { background: var(--recessed); color: var(--muted); }
.secondary { background: var(--recessed); color: var(--ink); }
.secondary:not(:disabled):hover { background: var(--selected); }

.tool-preview { min-width: 0; min-height: 336px; border-radius: calc(var(--card-radius) - 8px); overflow: hidden; display: grid; place-items: center; background: var(--recessed); }
.compressor-preview { padding: clamp(16px, 4vw, 56px); }
.preview-window { width: min(100%, 416px); padding: 8px 8px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.window-bar { display: flex; align-items: center; justify-content: center; min-height: 32px; padding-inline: 32px; position: relative; font-size: 12px; font-weight: 500; color: var(--muted); }
.window-dots { position: absolute; inset-inline-start: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--control-line); box-shadow: 8px 0 var(--control-line), 16px 0 var(--control-line); }
.sample-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sample-photo { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sample-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.68); }
.sample-photo div { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; padding: 6px 8px; font-size: 10px; color: var(--muted); }
.sample-photo bdi, .sample-meter bdi { color: var(--ink); white-space: nowrap; }
.sample-meter { display: flex; align-items: center; gap: 8px; padding: 0 4px; margin-block-start: 8px; font-size: 11px; }
.sample-meter span { flex: 1; height: 3px; border-radius: 8px; background: var(--wash); position: relative; overflow: hidden; }
.sample-meter span::before { content: ''; position: absolute; inset: 0; inset-inline-end: 38%; background: var(--quiet); border-radius: inherit; }
.json-sample { margin: 0; padding: 16px; overflow: auto; border-radius: 8px; color: var(--ink); background: var(--recessed); font: 14px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.preview-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.preview-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; justify-items: center; }
.preview-gallery .tool-preview { min-height: 0; background: transparent; }
.preview-gallery img { display: block; width: auto; max-width: 100%; max-height: 560px; object-fit: contain; border-radius: 18px; }
.graphic .tool-mark { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 44px; }

.library { margin-block-start: 56px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-block-end: 16px; }
.section-heading h2, .invite h2, .wish-form h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -.035em; }
.details-link, .text-button { color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--control-line); text-underline-offset: .2em; }
.details-link:hover, .text-button:hover, .tool-card h3 a:hover, .timeline h2 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.text-button { background: none; border: 0; padding: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; align-items: start; padding: 24px; }
.tool-card h3 { margin-block-start: 12px; font-size: 22px; letter-spacing: -.03em; }
.tool-card p { margin-block: 8px 24px; flex: 1; color: var(--muted); font-size: 14px; }
.tool-card .tool-actions { margin-block-start: 16px; }
.tool-card .action { background: var(--recessed); color: var(--ink); }
.tool-card .action:hover { background: var(--selected); }
.invite { margin-block-start: 32px; padding: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.invite p { color: var(--muted); margin-block-start: 8px; }

.page-title { margin-block: 8px 40px; }
.page-title h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.back-link { display: inline-flex; margin-block-end: 16px; }
.tool-detail .badges { margin-block-end: 16px; }
.tool-detail time { display: block; color: var(--muted); margin-block-start: 8px; font-size: 13px; }
.timeline { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.timeline-item { display: grid; grid-template-columns: minmax(104px, 152px) minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px; }
.timeline-date { display: grid; gap: 4px; font-size: 13px; }
.timeline-date time { font-weight: 500; }
.timeline-date span, .timeline p { color: var(--muted); }
.timeline h2 { font-size: 21px; }
.timeline p { font-size: 14px; margin-block: 8px 12px; }
.empty { padding: 24px; }

.wish-form { display: grid; gap: 16px; padding: 32px; }
.wish-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-actions, .wish-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-status, .wish-card time { font-size: 13px; color: var(--muted); }
.form-status:empty { display: none; }
input, select, textarea { border: 1px solid var(--control-line); background: var(--recessed); min-width: 0; max-width: 100%; padding: 10px 12px; border-radius: var(--control-radius); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input, textarea { width: 100%; }
textarea { resize: vertical; }
.community { margin-block-start: 40px; }
.wish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wish-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.card-top-left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wish-description { white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; }
.wish-controls { font-size: 14px; color: var(--muted); }
.wish-controls a { color: var(--ink); text-decoration: underline; }
.vote { margin-inline-start: auto; }
.wish-in-progress, .wish-launched { color: var(--ink); }
.wish-pinned { color: var(--accent); font-weight: 600; }
#wish-results ~ .action { margin-block-start: 16px; }
#wish-results ~ .form-status { margin-block-start: 8px; }

.site-footer { border-block-start: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px; }
.footer-inner p { font-size: 13px; color: var(--muted); margin-block-start: 8px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }

.dialog { color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 0; box-shadow: var(--window-shadow); width: min(656px, calc(100% - 32px)); max-height: min(768px, calc(100% - 32px)); overscroll-behavior: contain; }
.dialog::backdrop { background: var(--shade); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.dialog-body { padding: 32px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { font-size: clamp(1.6rem, 4vw, 2.125rem); letter-spacing: -.035em; }
.dialog-heading p { color: var(--muted); margin-block-start: 8px; }
.close-button { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--wash); color: var(--muted); font-size: 18px; }
.close-button:hover { background: var(--selected); color: var(--ink); }
.pinned-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 24px 16px; }
.language-card, .language-item { border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; gap: 8px; text-align: start; border-radius: var(--control-radius); background: transparent; overflow-wrap: anywhere; }
.language-card { min-height: 72px; background: var(--recessed); border-radius: 16px; padding: 16px; font-size: clamp(1.125rem, 3vw, 1.5rem); font-weight: 600; }
.language-card:hover, .language-item:hover, .language-item[aria-pressed="true"] { background: var(--selected); }
.language-search { display: grid; gap: 12px; margin-block-end: 8px; }
.language-search h3 { font-size: 13px; color: var(--muted); }
.language-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; max-height: min(38dvh, 312px); overflow: auto; padding: 4px; scrollbar-gutter: stable; }
.language-item { min-height: 40px; font-size: 14px; }
.language-item small, .language-note { color: var(--muted); font-size: 12px; }
.language-note { margin-block-start: 12px; }
.language-first .language-card { min-height: 88px; }
.language-dialog:not(.language-first) { position: fixed; inset-block: 72px auto; inset-inline: auto max(16px, calc((100% - 1152px) / 2)); margin: 0; width: min(480px, calc(100% - 32px)); max-height: calc(100% - 88px); }
.support-dialog { width: min(640px, calc(100% - 32px)); }
.support-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--recessed); margin-block: 24px 16px; }
.support-tabs button { min-height: 40px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.support-tabs button:hover { color: var(--ink); }
.support-tabs [aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); }
.support-options { color: var(--muted); }
.support-links { display: flex; flex-wrap: wrap; gap: 8px; }
.support-links .support-creem { flex: 1 1 100%; }
.support-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.support-note-global { margin-top: 4px; color: var(--ink); }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr)); gap: 8px; }
.tip-method { display: grid; align-content: start; justify-items: start; gap: 12px; min-width: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--line); }
.tip-method h3, .tip-method figcaption { color: var(--ink); font-size: 16px; font-weight: 600; }
.tip-code { box-sizing: content-box; display: block; width: min(calc(100% - 16px), 160px); height: auto; aspect-ratio: 1; padding: 8px; border-radius: 8px; background: #fff; object-fit: contain; }
.tip-method form { inline-size: 100%; }
.tip-method fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.tip-method legend, .tip-method p { font-size: 13px; }
.tip-method .action { width: 100%; }
.tip-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px 16px; }
.amount-option { display: grid; flex: 1; min-width: 40px; position: relative; }
.amount-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.amount-option span { display: grid; place-items: center; min-height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--recessed); padding: 4px; color: var(--ink); font-size: 14px; }
.amount-option input:checked + span { background: var(--selected); border-color: var(--control-line); }
.amount-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.payment-instructions { display: grid; justify-items: start; gap: 8px; }
.payment-instructions:empty { display: none; }
.tip-return { margin-block-end: 16px; }
.toast { position: fixed; z-index: 5; inset-inline-end: 24px; inset-block-end: 24px; width: min(400px, calc(100% - 48px)); display: flex; align-items: start; gap: 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--window-shadow); }
.toast-copy { flex: 1; }
.toast strong { font-weight: 600; }
.toast p { margin-block: 4px 8px; color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) {
  .header-contact-email .contact-email-label { display: none; }
}

@media (max-width: 860px) {
  .header-contact-email { display: none; }
  .brand-group { gap: 0; }
}

@media (max-width: 960px) {
  .shell { width: calc(100% - 48px); }
  .topbar { gap: 8px; }
  .nav-link, .plain { padding-inline: 8px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 0 4px; padding-block: 4px; }
  .language-toggle { inline-size: 92px; }
  .navigation { grid-row: 2; grid-column: 1 / -1; width: 100%; gap: 4px; overflow-x: auto; }
  .nav-link { flex: 1; min-width: max-content; }
  .header-actions { grid-row: 1; grid-column: 2; gap: 8px; }
  .plain { font-size: 13px; }
  .main { padding-block: 40px 56px; }
  .home-intro { margin-block: 0 32px; }
  .home-intro h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .home-intro p { margin-block-start: 8px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 24px 16px; }
  .tool-preview { min-height: 216px; }
  .preview-window { max-width: 352px; }
  .tool-grid, .wish-grid { grid-template-columns: 1fr; }
  .library { margin-block-start: 40px; }
  .invite, .wish-form { padding: 24px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 24px; }
  .timeline-date { grid-auto-flow: column; justify-content: start; gap: 16px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .dialog-body { padding: 24px; }
  .language-dialog:not(.language-first) { inset-block-start: 96px; max-height: calc(100% - 112px); }
}

@media (max-width: 420px) {
  .brand { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .toast { inset-inline-end: 16px; inset-block-end: 16px; width: calc(100% - 32px); }
}

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

:root {
  --bg-page: #F5F5F7;
  --bg-card: #FFFFFF;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --border-hairline: rgba(0, 0, 0, .08);
  --canvas: var(--bg-page);
  --surface: var(--bg-card);
  --ink: var(--text-primary);
  --line: var(--border-hairline);
  --card-radius: 22px;
  --glass: rgba(251, 251, 253, .78);
  --hero-description: #6e6e73;
  --card-shadow: 0 2px 12px #00000008, 0 0 0 .5px #0000000a;
}
:root[data-theme="dark"] { --bg-page: #161618; --bg-card: #1e1e20; --text-primary: #f5f5f7; --text-secondary: #a1a1a6; --border-hairline: #ffffff14; --glass: #1e1e20c7; --hero-description: #ababaf; }
:root[data-theme="dark"] .hero-mark img { filter: invert(1); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { height: 52px; background: transparent; border-block-end: .5px solid transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background var(--motion), border-color var(--motion), backdrop-filter var(--motion); }
.site-header.scrolled { background: var(--glass); border-block-end-color: var(--line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.topbar { height: 51px; min-height: 0; }
.brand img { width: 22px; height: 22px; }
.main:has(.home-intro) { padding-block-start: 0; }
.home-intro { margin: 0; padding: 96px 0 72px; }
.hero-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 17px; background: linear-gradient(var(--surface), var(--recessed)); box-shadow: inset 0 1px 0 #ffffffbf, 0 12px 28px #00000014; }
:root[data-theme="dark"] .hero-mark { box-shadow: inset 0 1px 0 #ffffff1a, 0 12px 28px #00000030; }
.home-intro h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.home-intro p { max-width: 540px; margin-inline: auto; color: var(--hero-description); font-size: 17px; }
.library { margin: 0; }
.tool-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tool-grid > .card { grid-column: span 4; border: 0; box-shadow: var(--card-shadow); transition: transform var(--motion), box-shadow var(--motion); }
.tool-grid > .card-featured { grid-column: span 8; grid-row: span 2; grid-template-columns: 1fr 1fr; align-content: stretch; min-height: 390px; }
.card-featured .hero-copy { padding: clamp(20px, 3vw, 36px); }
.card-featured .hero-copy h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
.card-featured .tool-preview { min-height: 240px; height: 100%; padding: 16px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .tool-grid > .card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px #00000012; } }
.action { border-radius: 980px; }
.detail-hero { padding: 8px; }
.detail-hero .tool-preview { width: 100%; max-height: 440px; }
.detail-hero .preview-gallery .tool-preview { max-height: none; overflow: visible; }
.media-preview { display: block; object-fit: contain; }
.detail-hero .hero-copy { padding: clamp(24px, 5vw, 48px); }
.detail-hero .hero-copy h1 { margin-top: 10px; }
.acquisition-note, .hero-copy .acquisition-note { color: var(--muted); font-size: 13px; max-width: 70ch; margin: 12px 0 0; }
.release-info { margin-top: 20px; padding: clamp(20px, 4vw, 32px); }
.release-info h2 { margin-bottom: 16px; }
.release-info dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 20px; }
.release-info dt { color: var(--muted); font-size: 13px; }
.release-info dd { margin: 4px 0 0; }
.checksum-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.checksum { overflow-wrap: anywhere; font-size: 13px; user-select: all; }
.release-info details { padding: 12px 0; border-top: .5px solid var(--line); }
.release-info summary { cursor: pointer; font-weight: 500; }
.release-info details p { margin-top: 8px; color: var(--muted); }
.site-footer { border-block-start: .5px solid var(--line); }
.footer-links { font-size: 12px; color: var(--text-secondary); }
.footer-links .text-button { font-size: inherit; }
.dialog { border-radius: 20px; box-shadow: inset 0 1px 0 #ffffffe6, var(--window-shadow); }
.dialog::backdrop { background: rgb(0 0 0 / .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-announcement { margin-block: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.tip-message-fields { display: grid; gap: 8px; margin-block-end: 12px; }
.tip-message-fields label { display: grid; gap: 4px; font-size: 12px; }
.wish-challenge { max-width: 100%; overflow: auto; }
.wish-form .wish-ip-consent { display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.wish-ip-consent input { width: auto; flex: 0 0 auto; }
.wish-controls bdi { overflow-wrap: anywhere; }
.wish-translation { padding: 12px 14px; border-inline-start: 3px solid var(--control-line); color: var(--ink); font-size: 14px; }
.wish-translation p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wish-controls .translate { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.wish-reply { display: grid; gap: 4px; padding: 12px 14px; background: var(--recessed); border-radius: 12px; }
.wish-reply strong { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.wish-reply p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
:root[data-theme="dark"] .dialog { box-shadow: inset 0 1px 0 #ffffff20, var(--window-shadow); }
html, body, .site-header, .site-footer, .card, .dialog, .toast, input, select, textarea { transition: background-color var(--motion), border-color var(--motion), color var(--motion); }
@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: dialog-in .28s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes dialog-in { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }
}
@media (max-width: 850px) { .tool-grid > .card-featured { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px; padding: 0; }
  .navigation { grid-row: 1; grid-column: 2; }
  .header-actions { grid-row: 1; grid-column: 3; gap: 8px; }
  .nav-link, .header-actions .plain { padding-inline: 6px; font-size: 12px; }
  .language-dialog:not(.language-first) { inset-block-start: 60px; max-height: calc(100% - 76px); }
  .home-intro { padding-block: 72px 56px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-grid > .card { grid-column: auto; grid-row: auto; }
  .tool-grid > .card-featured { min-height: 0; }
}
