body.tool-page {
  --blue: #1d6fdb;
  --blue-dark: #1559b4;
  --ink: #16191e;
  --muted: #59636e;
  --line: #dfe3e8;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.tool-page .site-header { min-height: 80px; }
body.tool-page .brand { color: var(--ink); font-size: 27px; letter-spacing: -.9px; }
body.tool-page .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
body.tool-page .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: #4b5563; font-size: 14px; }
body.tool-page .site-header nav a:hover { color: var(--blue); }
body.tool-page .site-header nav .all-tools-link { padding-inline: 12px; border-radius: 8px; background: #f1f3f6; color: var(--ink); font-weight: 600; text-decoration: none; }
body.tool-page .site-header nav .all-tools-link:hover { background: #e5e9ee; }
body.tool-page .hero { padding-block: 40px 44px; background: #f6f7f9; color: var(--ink); border-block: 1px solid #e7eaee; }
body.tool-page .platform-context { display: inline-block; margin: 0 0 13px; color: #4b5563; font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: .8px; text-transform: uppercase; }
body.tool-page h1 { max-width: 850px; margin-inline: auto; font-size: clamp(30px, 4vw, 43px); line-height: 1.16; font-weight: 750; letter-spacing: -1.2px; }
body.tool-page .hero-description { max-width: 640px; margin: 15px auto 27px; color: var(--muted); font-size: 16px; line-height: 1.65; }
body.tool-page .download-form { padding: 26px 28px 22px; border: 1px solid #dfe3e8; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px #16191e08; }
body.tool-page .download-form label { color: var(--ink); font-size: 14px; }
body.tool-page .mode-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(410px, 100%); margin: 0 auto; padding: 4px; gap: 4px; border: 1px solid #e2e6ec; border-radius: 9px; background: #f0f2f5; }
body.tool-page .download-form .mode-option { min-width: 0; color: #424b56; }
body.tool-page .mode-option span { min-width: 0; padding: 11px 14px; border-radius: 6px; font-size: 14px; }
body.tool-page .mode-option small { font-size: 11px; opacity: 1; }
body.tool-page .mode-option:hover span { background: #e1e6ed; }
body.tool-page .mode-option input:checked + span { color: #fff; background: #16191e; }
body.tool-page .mode-option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
body.tool-page .mode-hint { margin: 13px auto 20px; min-height: 21px; color: var(--muted); font-size: 13px; }
body.tool-page .input-switcher { gap: 0 20px; margin-bottom: 14px; }
body.tool-page .download-form .input-option { color: #424b56; font-size: 13px; }
body.tool-page .input-option input { accent-color: var(--blue); }
body.tool-page .input-option small { color: var(--muted); }
body.tool-page .input-wrap { padding: 7px 8px 7px 15px; border-color: #8894a2; border-radius: 8px; background: #fff; }
body.tool-page .input-wrap input { color: var(--ink); font-size: 16px; }
body.tool-page .input-wrap input::placeholder, body.tool-page .link-input textarea::placeholder { color: #66717e; opacity: 1; }
body.tool-page .input-wrap:focus-within { border-color: var(--blue); outline: 3px solid var(--blue); outline-offset: 2px; }
body.tool-page .input-wrap:has(input[aria-invalid="true"]) { border-color: #a83c2f; }
body.tool-page .paste-button { border-color: #d0d6de; border-radius: 6px; background: #f3f5f7; color: #353f4a; }
body.tool-page .paste-button:hover { background: #e5e9ee; }
body.tool-page .primary-button { border-color: #16191e; border-radius: 8px; background: #16191e; color: #fff; font-size: 16px; }
body.tool-page .primary-button:hover:not(:disabled) { background: #303640; border-color: #303640; }
body.tool-page .primary-button:disabled { opacity: .7; }
body.tool-page .field-hint { color: var(--muted); }
body.tool-page .link-input textarea { border-color: #8894a2; border-radius: 8px; color: var(--ink); background: #fff; font-size: 16px; }
body.tool-page .link-input textarea[aria-invalid="true"] { border-color: #a83c2f; }
body.tool-page .search-feedback { flex-wrap: wrap; gap: 0 14px; color: #424b56; }
body.tool-page .cancel-search { min-height: 44px; color: var(--blue-dark); text-underline-offset: 3px; }
body.tool-page .form-error { border-radius: 8px; }
body.tool-page :is(button, a, textarea, select, summary, video, input:not([type="range"])):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
body.tool-page .input-wrap input:focus-visible { outline: none; }
body.tool-page .video-card { border-radius: 12px; background: #fff; }
body.tool-page .video-player { border-radius: 8px; }
body.tool-page :is(.quality-select, .trim-field input, .download-link, .action-button, .secondary-button, .reset-button) { border-radius: 8px; }
body.tool-page .quality-select, body.tool-page .trim-field input { border-color: #8894a2; min-height: 44px; }
body.tool-page .batch-queue { border-radius: 10px; background: #fff; }
body.tool-page .how-it-works { padding-block: 46px 40px; }
body.tool-page h2 { color: var(--ink); font-weight: 650; }
body.tool-page .steps h3 { font-size: 15px; color: var(--ink); }
body.tool-page .tool-details { padding-bottom: 34px; }
body.tool-page .faq-list summary { color: var(--ink); }
body.tool-page .site-footer { padding-block: 28px; }
body.tool-page .footer-brand { color: var(--ink); }
body.tool-page .site-footer p { color: var(--muted); }

@media (max-width: 740px) {
  body.tool-page .site-header { gap: 16px; }
  body.tool-page .site-header nav { gap: 0 16px; }
  body.tool-page .hero { padding-block: 32px 35px; }
  body.tool-page .download-form { padding-inline: 22px; }
}
@media (max-width: 560px) {
  body.tool-page .site-header { min-height: 0; padding-block: 15px 10px; gap: 8px; }
  body.tool-page .brand { font-size: 25px; }
  body.tool-page .site-header nav { width: 100%; justify-content: center; gap: 0 14px; }
  body.tool-page .site-header nav a { min-height: 44px; font-size: 13px; }
  body.tool-page .site-header nav .all-tools-link { padding-inline: 10px; }
  body.tool-page .hero { padding-block: 27px 30px; }
  body.tool-page .platform-context { margin-bottom: 11px; font-size: 11px; }
  body.tool-page h1 { font-size: 31px; letter-spacing: -.9px; }
  body.tool-page .hero-description { margin: 13px auto 23px; font-size: 14px; }
  body.tool-page .download-form { padding: 18px 16px 16px; border-radius: 10px; }
  body.tool-page .mode-switcher { gap: 3px; padding: 3px; }
  body.tool-page .mode-option span { min-width: 0; min-height: 44px; gap: 4px; padding: 10px 6px; font-size: 13px; }
  body.tool-page .mode-option small { font-size: 10px; }
  body.tool-page .mode-hint { margin-block: 13px 14px; min-height: 0; line-height: 1.65; }
  body.tool-page .input-switcher { gap: 0 14px; margin-bottom: 13px; }
  body.tool-page .input-option small { margin-left: 3px; font-size: 10px; }
  body.tool-page .download-form label { font-size: 13px; }
  body.tool-page .form-controls { flex-direction: column; }
  body.tool-page .form-controls > .primary-button { width: 100%; min-height: 50px; margin-top: 0; }
  body.tool-page .input-wrap { padding: 6px 7px 6px 11px; }
  body.tool-page .input-wrap input, body.tool-page .link-input textarea, body.tool-page .quality-select, body.tool-page .trim-field input { font-size: 16px; }
  body.tool-page .paste-button { min-height: 44px; padding-inline: 10px; }
  body.tool-page .field-hint { font-size: 12px; line-height: 1.7; }
  body.tool-page .search-feedback { justify-content: flex-start; }
  body.tool-page .search-feedback p { text-align: left; overflow-wrap: anywhere; }
  body.tool-page .how-it-works { padding-block: 34px 31px; }
  body.tool-page .site-footer { padding-block: 24px; }
}

body.guide-page .guide-content { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 50px; }
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.guide-breadcrumb a { text-decoration: none; }
.guide-heading { padding: 35px 0 28px; }
body.guide-page h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; text-align: left; }
.guide-intro { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 18px 0 22px; }
.guide-button { text-decoration: none; min-height: 48px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0; border-block: 1px solid var(--line); font-size: 14px; }
.guide-toc a { min-height: 24px; line-height: 1.7; }
.guide-content section { margin-top: 34px; }
.guide-content section p, .guide-content section li { font-size: 16px; line-height: 1.85; color: var(--muted); }
.guide-content section strong { color: var(--ink); }
.guide-content h2 { font-size: 24px; margin-bottom: 16px; }
.guide-content h3 { font-size: 18px; color: var(--ink); margin: 25px 0 6px; }
.guide-steps { padding: 0; list-style: none; }
.guide-steps p { margin-top: 0; }
.guide-content section ul { padding-left: 22px; }
.guide-note { border-left: 3px solid var(--blue); background: #f6f7f9; padding: 16px 20px; }
.guide-content .faq-list summary { font-size: 16px; }
.guide-end { margin-top: 30px; }
@media (max-width: 560px) {
  body.guide-page .guide-content { width: calc(100% - 36px); padding-top: 20px; }
  .guide-heading { padding-top: 25px; }
  .guide-intro { font-size: 16px; }
  .guide-toc { gap: 12px 20px; }
  .guide-content h2 { font-size: 22px; }
  .guide-content section p, .guide-content section li { font-size: 15px; }
}

body.tiktok-page { --blue: #b51b43; --blue-dark: #941236; --tiktok-cyan: #007f86; }
body.tiktok-page .hero { background: #fff7f9; border-color: #f0dce2; }
body.tiktok-page .platform-context { color: #9d2140; }
body.tiktok-page .brand svg { color: var(--tiktok-cyan); }
body.tiktok-page .download-form { border-color: #e2cdd4; }
body.tiktok-page .mode-option input:checked + span,
body.tiktok-page .primary-button { background: var(--blue); border-color: var(--blue); }
body.tiktok-page .primary-button:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
body.tiktok-page .mode-switcher { background: #fff1f5; border-color: #e8d5dc; }
body.tiktok-page .mode-option:hover span { background: #f8dfe7; }
body.tiktok-page .mode-option input:checked:hover + span { background: var(--blue-dark); }
body.tiktok-page .input-wrap:focus-within,
body.tiktok-page :is(button, a, textarea, select, summary, video, input:not([type="range"])):focus-visible { outline-color: var(--tiktok-cyan); }
body.tiktok-page .input-wrap:focus-within { border-color: var(--tiktok-cyan); }
body.tiktok-page .mode-option input:focus-visible + span { outline-color: var(--tiktok-cyan); }
body.tiktok-page .secondary-button,
body.tiktok-page .download-buttons [data-action-priority="secondary"],
body.tiktok-page .trim-panel summary,
body.tiktok-page .action-feedback:not(.is-error) { color: #08686d; }
body.tiktok-page .secondary-button,
body.tiktok-page .download-buttons [data-action-priority="secondary"] { border-color: #9bbfc2; }
body.tiktok-page .secondary-button:hover:not(:disabled),
body.tiktok-page .download-buttons [data-action-priority="secondary"]:hover { background: #eaf8f8; }
body.tiktok-page .clip-selected-track { background: #f1a5b8; }
body.tiktok-page .reset-button { color: #864153; border-color: #d9bac4; background: #fff7f9; }
body.tiktok-page .reset-button:hover { background: #fbe9ef; }

body.tiktok-page .profile-url { width: 100%; min-height: 59px; padding: 14px 15px; border: 1px solid #8894a2; border-radius: 8px; font-size: 16px; color: var(--ink); background: #fff; }
body.tiktok-page .profile-url::placeholder { color: #66717e; opacity: 1; }
body.tiktok-page .profile-url[aria-invalid="true"] { border-color: #a83c2f; }
.profile-results { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-results h2 { font-size: 19px; text-align: left; }
.profile-results .field-hint { text-align: left; }
.profile-selection { border: 0; margin: 14px 0; padding: 0; min-width: 0; }
.profile-video-list { list-style: none; padding: 0; margin: 0; max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.profile-video-list li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 14px; }
.profile-video-list li + li { border-top: 1px solid var(--line); }
.download-form .profile-video-choice { display: flex; align-items: center; flex: 1; gap: 12px; min-height: 44px; min-width: 0; margin: 0; cursor: pointer; line-height: 1.5; }
.profile-video-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.profile-video-choice span { overflow-wrap: anywhere; }
.profile-video-list a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; font-size: 13px; }
@media (max-width: 560px) {
  body.tiktok-page .profile-url { min-height: 57px; }
  .profile-video-list li { padding-inline: 10px; gap: 8px; }
  .profile-video-list a { font-size: 12px; }
  .profile-results > button { width: 100%; }
}
