:root {
    --tctp-bg: #f4f8f7;
    --tctp-surface: #ffffff;
    --tctp-surface-soft: #eaf5f2;
    --tctp-text: #092f2d;
    --tctp-muted: #54716f;
    --tctp-line: #cfe1de;
    --tctp-brand: #087a5e;
    --tctp-brand-dark: #073d39;
    --tctp-accent: #12b978;
    --tctp-accent-soft: #daf4e9;
    --tctp-focus: #f1b92b;
    --tctp-purple: #7657e8;
    --tctp-shadow: 0 22px 54px rgba(7, 61, 57, .10);
    --tctp-radius: 24px;
}

html[data-tct-theme="dark"] {
    color-scheme: dark;
    --tctp-bg: #071b1a;
    --tctp-surface: #0d2927;
    --tctp-surface-soft: #123633;
    --tctp-text: #eefbf7;
    --tctp-muted: #abc4bf;
    --tctp-line: #28504b;
    --tctp-brand: #55e2a0;
    --tctp-brand-dark: #55e2a0;
    --tctp-accent: #6ee7b7;
    --tctp-accent-soft: #214842;
    --tctp-focus: #ffd45f;
    --tctp-purple: #b49cff;
    --tctp-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

html[data-tct-theme="dark"] body.tct-prototype-body,
body.tct-prototype-body {
    background: var(--tctp-bg) !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body {
    margin: 0 !important;
    min-height: 100vh;
}

body.tct-prototype-body > header.full-width,
body.tct-prototype-body > footer.full-width,
body.tct-prototype-body header.full-width,
body.tct-prototype-body footer.full-width:not(.tctp-footer) {
    display: none !important;
}

.tctp-nav {
    align-items: center;
    background: #103c3c;
    border-bottom: 1px solid #285a57;
    display: flex;
    font-family: Poppins, system-ui, sans-serif;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 max(22px, calc((100vw - 1260px) / 2));
    position: relative;
    z-index: 1000;
}

.tctp-brand,
.tctp-nav a {
    color: #fff;
    text-decoration: none;
}

.tctp-brand {
    align-items: center;
    display: inline-flex;
    font-size: 18px;
    font-weight: 750;
    gap: 10px;
    letter-spacing: -.02em;
    padding: 4px 7px 4px 4px;
    border-radius: 12px;
}

.tctp-brand:hover,
.tctp-brand:focus-visible {
    background: var(--tctp-accent-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tctp-brand) 20%, transparent);
    outline: 0;
}

.tctp-brand-mark {
    align-items: center;
    background: #073f39;
    border: 1px solid #187262;
    border-radius: 10px 10px 10px 3px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    transform: rotate(-5deg);
    width: 32px;
}

.tctp-brand-mark span {
    border: 4px solid #55e2a0;
    border-radius: 50%;
    height: 14px;
    position: relative;
    width: 14px;
}

.tctp-brand-mark span::after {
    background: #55e2a0;
    border-radius: 3px;
    content: "";
    height: 5px;
    position: absolute;
    right: -6px;
    top: 4px;
    width: 6px;
}

.tctp-brand-copy { display: grid; gap: 1px; }
.tctp-brand-copy strong { color: var(--tctp-text); font-size: 17px; line-height: 1.05; }
.tctp-brand-copy small { color: var(--tctp-muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }

.tctp-brand img {
    display: block;
    height: 44px;
    max-width: min(250px, 38vw);
    object-fit: contain;
    width: auto;
}

.tctp-nav-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.tctp-all-tools {
    font-size: 14px;
    font-weight: 650;
    padding: 8px 10px;
}

.tctp-all-tools:hover,
.tctp-all-tools:focus-visible {
    background: #19514d;
    border-radius: 10px;
    color: #fff;
    outline: 0;
}

.tctp-icon-button {
    align-items: center;
    background: #164b48;
    border: 1px solid #2d6963;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: 700 18px/1 system-ui, sans-serif;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
}

.tctp-icon-button:hover,
.tctp-icon-button:focus-visible {
    background: #1d5d57;
    border-color: #55e2a0;
}

.tctp-theme-icon {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}
.tctp-theme-icon--sun { color: #d28a00; display: none; }
.tctp-theme-icon--moon { color: #6d4fd6; }
html[data-tct-theme="dark"] .tctp-theme-icon--sun { color: #ffd45f; display: block; }
html[data-tct-theme="dark"] .tctp-theme-icon--moon { display: none; }

.tctp-grid-button > span,
.tctp-grid-button > span::before,
.tctp-grid-button > span::after {
    background: currentColor;
    border-radius: 2px;
    box-shadow: 7px 0 0 currentColor, 14px 0 0 currentColor;
    content: "";
    display: block;
    height: 3px;
    width: 3px;
}

.tctp-grid-button > span::before { transform: translateY(-7px); }
.tctp-grid-button > span::after { transform: translateY(4px); }

.tctp-utility-menu {
    background: var(--tctp-surface);
    border: 1px solid var(--tctp-line);
    border-radius: 18px;
    box-shadow: var(--tctp-shadow);
    display: grid;
    gap: 4px;
    padding: 10px;
    position: absolute;
    right: max(22px, calc((100vw - 1260px) / 2));
    top: 58px;
    width: min(310px, calc(100vw - 32px));
}

.tctp-utility-menu[hidden] { display: none; }

.tctp-utility-menu a {
    border-radius: 12px;
    display: grid;
    gap: 2px;
    padding: 12px 14px;
}

.tctp-utility-menu a { border: 1px solid transparent; color: var(--tctp-text); }
.tctp-utility-menu a:hover,
.tctp-utility-menu a:focus-visible { background: var(--tctp-accent-soft); border-color: var(--tctp-brand); color: var(--tctp-text); outline: 0; }
.tctp-utility-menu strong { color: var(--tctp-text); font-size: 14px; }
.tctp-utility-menu small { color: var(--tctp-muted); font-size: 12px; }

body.tct-prototype-body .hero.full-width {
    background: linear-gradient(135deg, #073d39 0%, #0a5147 55%, #145868 100%) !important;
    border-radius: 0 0 34px 34px !important;
    color: #fff !important;
    padding: 72px 24px 76px !important;
    position: relative;
}

body.tct-prototype-body .hero.full-width::before {
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

body.tct-prototype-body .hero .container {
    margin: 0 auto !important;
    max-width: 940px !important;
    position: relative;
    text-align: center !important;
}

body.tct-prototype-body .hero h1 {
    color: #fff !important;
    font-size: clamp(38px, 6vw, 68px) !important;
    letter-spacing: -.045em !important;
    line-height: 1.04 !important;
    margin: 0 0 20px !important;
}

body.tct-prototype-body .hero p {
    color: #d9efea !important;
    font-size: clamp(17px, 2vw, 21px) !important;
    line-height: 1.65 !important;
    margin-inline: auto !important;
    max-width: 760px !important;
}

body.tct-prototype-body .breadcrumb {
    color: #9ad1c5 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    letter-spacing: .04em;
    margin-bottom: 22px !important;
    text-transform: uppercase;
}

body.tct-prototype-body .breadcrumb a { color: #7ff0b8 !important; }

body.tct-prototype-body .container {
    max-width: 1180px !important;
}

body.tct-prototype-body .converter,
body.tct-prototype-body .generator {
    background: var(--tctp-surface) !important;
    border: 1px solid var(--tctp-line) !important;
    border-radius: var(--tctp-radius) !important;
    box-shadow: var(--tctp-shadow) !important;
    color: var(--tctp-text) !important;
    margin: -32px auto 72px !important;
    padding: clamp(24px, 5vw, 48px) !important;
    position: relative;
    z-index: 5;
}

body.tct-prototype-body h2,
body.tct-prototype-body h3,
body.tct-prototype-body label,
body.tct-prototype-body .option-title,
body.tct-prototype-body .format-title,
body.tct-prototype-body .preview-title,
body.tct-prototype-body .result-title {
    color: var(--tctp-text) !important;
}

body.tct-prototype-body p,
body.tct-prototype-body .option-desc,
body.tct-prototype-body .format-desc,
body.tct-prototype-body .stat-label,
body.tct-prototype-body .detail-item {
    color: var(--tctp-muted) !important;
}

body.tct-prototype-body textarea,
body.tct-prototype-body input[type="text"],
body.tct-prototype-body input[type="number"],
body.tct-prototype-body select,
body.tct-prototype-body .password-display,
body.tct-prototype-body .password-list {
    background: var(--tctp-bg) !important;
    border: 1px solid var(--tctp-line) !important;
    border-radius: 14px !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body textarea:focus,
body.tct-prototype-body input:focus,
body.tct-prototype-body select:focus {
    border-color: var(--tctp-brand) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tctp-brand) 18%, transparent) !important;
    outline: none !important;
}

body.tct-prototype-body .btn,
body.tct-prototype-body button.btn,
body.tct-prototype-body .btn-primary,
body.tct-prototype-body .btn-success,
body.tct-prototype-body .cta-button,
body.tct-prototype-body .upload-btn,
body.tct-prototype-body .data-btn,
body.tct-prototype-body .test-btn,
body.tct-prototype-body .copy-btn,
body.tct-prototype-body .regenerate-btn {
    background: #073f39 !important;
    border: 1px solid #073f39 !important;
    border-radius: 13px !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    min-height: 46px;
    transition: background .16s, border-color .16s, color .16s, transform .16s !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body .btn,
html[data-tct-theme="dark"] body.tct-prototype-body button.btn,
html[data-tct-theme="dark"] body.tct-prototype-body .btn-primary,
html[data-tct-theme="dark"] body.tct-prototype-body .btn-success,
html[data-tct-theme="dark"] body.tct-prototype-body .cta-button,
html[data-tct-theme="dark"] body.tct-prototype-body .upload-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .data-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .test-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .copy-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .regenerate-btn {
    background: var(--tctp-accent) !important;
    border-color: var(--tctp-accent) !important;
    color: #06221e !important;
}

body.tct-prototype-body .btn:hover,
body.tct-prototype-body button.btn:hover,
body.tct-prototype-body .btn-primary:hover,
body.tct-prototype-body .btn-success:hover,
body.tct-prototype-body .cta-button:hover,
body.tct-prototype-body .upload-btn:hover,
body.tct-prototype-body .data-btn:hover,
body.tct-prototype-body .test-btn:hover,
body.tct-prototype-body .copy-btn:hover,
body.tct-prototype-body .regenerate-btn:hover {
    background: var(--tctp-accent) !important;
    border-color: var(--tctp-accent) !important;
    color: #06221e !important;
    transform: translateY(-1px);
}

html[data-tct-theme="dark"] body.tct-prototype-body .btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body button.btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .btn-primary:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .btn-success:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .cta-button:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .upload-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .data-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .test-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .copy-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .regenerate-btn:hover {
    background: #a5f2cf !important;
    border-color: #a5f2cf !important;
    color: #06221e !important;
}

body.tct-prototype-body .btn-secondary,
body.tct-prototype-body .btn-clear,
body.tct-prototype-body .btn-ghost {
    background: var(--tctp-surface-soft) !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body .btn-secondary:hover,
body.tct-prototype-body .btn-clear:hover,
body.tct-prototype-body .btn-ghost:hover {
    background: var(--tctp-accent-soft) !important;
    border-color: var(--tctp-brand) !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body .btn-danger {
    background: #a93838 !important;
    border-color: #a93838 !important;
    color: #fff !important;
}
body.tct-prototype-body .btn-danger:hover { background: #c94a4a !important; border-color: #c94a4a !important; color: #fff !important; }

body.tct-prototype-body .preset-btn,
body.tct-prototype-body .tab-btn,
body.tct-prototype-body .tcq-preset {
    background: var(--tctp-surface) !important;
    border: 1px solid var(--tctp-brand) !important;
    border-radius: 999px !important;
    color: var(--tctp-brand) !important;
    font-weight: 700 !important;
    min-height: 44px;
}
body.tct-prototype-body .preset-btn:hover,
body.tct-prototype-body .tab-btn:hover,
body.tct-prototype-body .tcq-preset:hover {
    background: var(--tctp-accent-soft) !important;
    border-color: var(--tctp-brand) !important;
    color: var(--tctp-text) !important;
}
body.tct-prototype-body .preset-btn.selected,
body.tct-prototype-body .preset-btn.active,
body.tct-prototype-body .tab-btn.active,
body.tct-prototype-body .tcq-preset.active {
    background: #073f39 !important;
    border-color: #073f39 !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(7,63,57,.20) !important;
}
html[data-tct-theme="dark"] body.tct-prototype-body .preset-btn.selected,
html[data-tct-theme="dark"] body.tct-prototype-body .preset-btn.active,
html[data-tct-theme="dark"] body.tct-prototype-body .tab-btn.active,
html[data-tct-theme="dark"] body.tct-prototype-body .tcq-preset.active {
    background: var(--tctp-accent) !important;
    border-color: var(--tctp-accent) !important;
    color: #06221e !important;
}

body.tct-prototype-body .option-card,
body.tct-prototype-body .format-option,
body.tct-prototype-body .stat-card,
body.tct-prototype-body .preview-container,
body.tct-prototype-body .bulk-section,
body.tct-prototype-body .strength-analysis,
body.tct-prototype-body .feature-card,
body.tct-prototype-body .step,
body.tct-prototype-body .accordion-item {
    background: var(--tctp-surface) !important;
    border: 1px solid var(--tctp-line) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body .option-card:hover,
body.tct-prototype-body .format-option:hover,
body.tct-prototype-body .format-option.active {
    background: var(--tctp-accent-soft) !important;
    border-color: var(--tctp-brand) !important;
}

body.tct-prototype-body .upload-area {
    background: var(--tctp-bg) !important;
    border: 2px dashed var(--tctp-line) !important;
    border-radius: 20px !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body .upload-area:hover,
body.tct-prototype-body .upload-area.dragover {
    background: var(--tctp-accent-soft) !important;
    border-color: var(--tctp-brand) !important;
}

body.tct-prototype-body .feature-icon,
body.tct-prototype-body .option-icon,
body.tct-prototype-body .format-icon {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--tctp-brand) !important;
    display: inline-flex !important;
    height: auto !important;
    justify-content: center !important;
    margin-inline: auto !important;
    min-height: 56px;
    width: auto !important;
}

body.tct-prototype-body .step-number {
    background: var(--tctp-accent-soft) !important;
    color: var(--tctp-brand) !important;
}

body.tct-prototype-body .features,
body.tct-prototype-body .how-it-works,
body.tct-prototype-body .faq {
    background: var(--tctp-bg) !important;
    color: var(--tctp-text) !important;
    padding-block: 68px !important;
}

body.tct-prototype-body .how-it-works {
    background: color-mix(in srgb, var(--tctp-brand) 14%, var(--tctp-bg)) !important;
    border-block: 1px solid var(--tctp-line) !important;
}

body.tct-prototype-body .section-title {
    color: var(--tctp-text) !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    letter-spacing: -.035em !important;
}

body.tct-prototype-body .accordion-header {
    background: var(--tctp-surface) !important;
    color: var(--tctp-text) !important;
    font-size: clamp(17px, 1.7vw, 20px) !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    min-height: 72px;
}
body.tct-prototype-body .accordion-header,
body.tct-prototype-body .accordion-header * { color: var(--tctp-text) !important; }
body.tct-prototype-body .accordion-content { background: var(--tctp-surface) !important; border-top: 1px solid var(--tctp-line) !important; }
body.tct-prototype-body .accordion-content p {
    color: var(--tctp-muted) !important;
    font-size: clamp(16px, 1.45vw, 18px) !important;
    line-height: 1.75 !important;
}

body.tct-prototype-body .strength-details {
    display: grid !important;
    gap: 0 18px !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}
body.tct-prototype-body .detail-item {
    align-items: flex-start !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: minmax(105px, auto) minmax(0, 1fr) !important;
    min-width: 0 !important;
    padding-block: 13px !important;
}
body.tct-prototype-body .detail-value {
    color: var(--tctp-brand) !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
}

/* Shared colour system for the compact, prefix-based tools. */
body.tct-prototype-body .tcj-wrap,
body.tct-prototype-body .tcq-page,
body.tct-prototype-body .tcq-shell {
    background: var(--tctp-bg) !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body .tcj-hero,
body.tct-prototype-body .tcq-hero {
    background: linear-gradient(135deg, #073d39 0%, #0a5147 55%, #145868 100%) !important;
    border-radius: 0 0 30px 30px !important;
    color: #fff !important;
    padding: clamp(48px, 7vw, 78px) 22px !important;
    text-align: center !important;
}
body.tct-prototype-body .tcj-hero h1,
body.tct-prototype-body .tcq-hero h1 { color: #fff !important; font-size: clamp(38px, 5.5vw, 62px) !important; letter-spacing: -.045em !important; }
body.tct-prototype-body .tcj-hero p,
body.tct-prototype-body .tcq-hero p { color: #d8ede8 !important; font-size: clamp(16px, 2vw, 20px) !important; }
body.tct-prototype-body .tcj-badge,
body.tct-prototype-body .tcq-privacy { background: rgba(255,255,255,.11) !important; border: 1px solid rgba(255,255,255,.24) !important; color: #effff8 !important; }

body.tct-prototype-body .tcj-card,
body.tct-prototype-body .tcj-help,
body.tct-prototype-body .tcj-stat,
body.tct-prototype-body .tcj-status,
body.tct-prototype-body .tcq-studio,
body.tct-prototype-body .tcq-panel,
body.tct-prototype-body .tcq-preview-panel,
body.tct-prototype-body .tcq-status,
body.tct-prototype-body .tcq-reliability,
body.tct-prototype-body .tcq-safety {
    background: var(--tctp-surface) !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-text) !important;
}
body.tct-prototype-body .tcj-card h2,
body.tct-prototype-body .tcj-card h3,
body.tct-prototype-body .tcj-help strong,
body.tct-prototype-body .tcj-field label,
body.tct-prototype-body .tcq-studio h2,
body.tct-prototype-body .tcq-studio h3,
body.tct-prototype-body .tcq-label,
body.tct-prototype-body .tcq-preview-head,
body.tct-prototype-body .tcq-panel label { color: var(--tctp-text) !important; }
body.tct-prototype-body .tcj-help p,
body.tct-prototype-body .tcj-note,
body.tct-prototype-body .tcj-stat,
body.tct-prototype-body .tcq-reliability,
body.tct-prototype-body .tcq-safety { color: var(--tctp-muted) !important; }
body.tct-prototype-body .tcj-field textarea,
body.tct-prototype-body .tcq-field input,
body.tct-prototype-body .tcq-field select,
body.tct-prototype-body .tcq-colour {
    background: var(--tctp-bg) !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-text) !important;
}
body.tct-prototype-body .tcj-actions button,
body.tct-prototype-body .tcj-help button,
body.tct-prototype-body .tcq-actions button {
    background: var(--tctp-surface-soft) !important;
    border: 1px solid var(--tctp-line) !important;
    border-radius: 12px !important;
    color: var(--tctp-text) !important;
    font-weight: 700 !important;
    min-height: 44px;
}
body.tct-prototype-body .tcj-actions button:hover,
body.tct-prototype-body .tcj-help button:hover,
body.tct-prototype-body .tcq-actions button:hover {
    background: var(--tctp-accent-soft) !important;
    border-color: var(--tctp-brand) !important;
    color: var(--tctp-text) !important;
}
body.tct-prototype-body .tcj-actions .tcj-primary,
body.tct-prototype-body .tcq-actions .tcq-primary {
    background: #073f39 !important;
    border-color: #073f39 !important;
    color: #fff !important;
}
html[data-tct-theme="dark"] body.tct-prototype-body .tcj-actions .tcj-primary,
html[data-tct-theme="dark"] body.tct-prototype-body .tcq-actions .tcq-primary {
    background: var(--tctp-accent) !important;
    border-color: var(--tctp-accent) !important;
    color: #06221e !important;
}
body.tct-prototype-body .tcq-preset.is-active {
    background: #073f39 !important;
    border-color: #073f39 !important;
    color: #fff !important;
}
html[data-tct-theme="dark"] body.tct-prototype-body .tcq-preset.is-active {
    background: var(--tctp-accent) !important;
    border-color: var(--tctp-accent) !important;
    color: #06221e !important;
}

body.tct-prototype-body .encryptor {
    background: var(--tctp-surface) !important;
    border: 1px solid var(--tctp-line) !important;
    border-radius: var(--tctp-radius) !important;
    box-shadow: var(--tctp-shadow) !important;
    color: var(--tctp-text) !important;
}

@media (min-width: 900px) {
    body.tct-prototype-body .strength-details .detail-item:nth-last-child(-n+2) {
        grid-column: span 2;
    }
}

.tctp-footer {
    align-items: center;
    background: #062c29;
    color: #e8faf4;
    display: flex;
    font-family: Poppins, system-ui, sans-serif;
    gap: 28px;
    justify-content: space-between;
    min-height: 112px;
    padding: 30px max(22px, calc((100vw - 1180px) / 2));
    border-radius: 0 !important;
    margin: 0 !important;
}

.tctp-footer > div { display: grid; gap: 4px; }
.tctp-footer strong { color: #fff; font-size: 17px; }
.tctp-footer span { color: #bfd8d2; font-size: 15px; line-height: 1.5; }
.tctp-footer small { color: #9ebbb5; font-size: 12px; line-height: 1.45; }
.tctp-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.tctp-footer a { border-radius: 9px; color: #e8f7f3; font-size: 15px; font-weight: 700; padding: 8px 10px; text-decoration: none; }
.tctp-footer a:hover,
.tctp-footer a:focus-visible { background: #164b43; color: #7ff0b8; outline: 0; }

.tctp-back-to-top {
    align-items: center;
    background: #073f39 !important;
    border: 1px solid #2f665d !important;
    border-radius: 999px !important;
    bottom: 22px;
    box-shadow: var(--tctp-shadow);
    color: #fff !important;
    cursor: pointer;
    display: flex;
    font: 800 12px/1 Poppins, system-ui, sans-serif !important;
    gap: 5px;
    min-height: 44px;
    padding: 9px 13px !important;
    position: fixed;
    right: 22px;
    z-index: 1100;
}
.tctp-back-to-top[hidden] { display: none; }
.tctp-back-to-top svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; width: 17px; }
.tctp-back-to-top:hover { background: var(--tctp-accent) !important; border-color: var(--tctp-accent) !important; color: #06221e !important; }

@media (max-width: 760px) {
    .tctp-nav { min-height: 58px; padding-inline: 14px; }
    .tctp-brand { font-size: 16px; }
    .tctp-brand-mark { height: 29px; width: 29px; }
    .tctp-all-tools { display: none; }
    .tctp-utility-menu { right: 14px; top: 54px; }
    body.tct-prototype-body .hero.full-width { border-radius: 0 0 24px 24px !important; padding: 52px 18px 60px !important; }
    body.tct-prototype-body .converter,
    body.tct-prototype-body .generator { border-radius: 20px !important; margin: -24px 12px 52px !important; padding: 22px !important; }
    body.tct-prototype-body .options,
    body.tct-prototype-body .format-selection,
    body.tct-prototype-body .form-grid,
    body.tct-prototype-body .features-grid,
    body.tct-prototype-body .steps { grid-template-columns: 1fr !important; }
    body.tct-prototype-body .tabs { display: flex !important; flex-wrap: wrap !important; }
    body.tct-prototype-body .tabs .tab { flex: 1 1 46% !important; min-width: 0 !important; }
    .tctp-footer { align-items: flex-start; flex-direction: column; padding: 26px 20px; }
    .tctp-back-to-top { bottom: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    body.tct-prototype-body *,
    body.tct-prototype-body *::before,
    body.tct-prototype-body *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* v0.9 shared shell refinements. */
:root {
    --tctp-bg: #e8f2ef;
    --tctp-surface-soft: #edf5f3;
}

.tctp-brand,
.tctp-brand-copy strong,
.tctp-all-tools,
body.tct-prototype-body .hero h1,
body.tct-prototype-body .tcj-hero h1,
body.tct-prototype-body .tcq-hero h1 {
    letter-spacing: -.012em !important;
}

.tctp-brand,
.tctp-all-tools { position: relative; }
.tctp-brand::after,
.tctp-all-tools::after {
    background: var(--tctp-brand);
    bottom: 0;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
    width: calc(100% - 12px);
}
.tctp-brand:hover,
.tctp-brand:focus-visible,
.tctp-all-tools:hover,
.tctp-all-tools:focus-visible {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.tctp-brand:hover::after,
.tctp-brand:focus-visible::after,
.tctp-all-tools:hover::after,
.tctp-all-tools:focus-visible::after { transform: translateX(-50%) scaleX(1); }

.tctp-theme-icon--moon path {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: .8;
}

.tctp-grid-button > span,
.tctp-grid-button > span::before,
.tctp-grid-button > span::after {
    border-radius: 50%;
    box-shadow: 8px 0 0 currentColor;
    height: 4px;
    width: 4px;
}
.tctp-grid-button > span { transform: translate(-4px, -4px); }
.tctp-grid-button > span::before { transform: translateY(8px); }
.tctp-grid-button > span::after { display: none; }

.tctp-utility-menu { gap: 0; }
.tctp-utility-menu a,
.tctp-utility-status {
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    position: relative;
}
.tctp-utility-menu a::after {
    background: var(--tctp-brand);
    bottom: 0;
    content: "";
    height: 2px;
    left: 14px;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
    width: calc(100% - 28px);
}
.tctp-utility-menu a:hover,
.tctp-utility-menu a:focus-visible { background: transparent; border-color: transparent; }
.tctp-utility-menu a:hover::after,
.tctp-utility-menu a:focus-visible::after { transform: scaleX(1); }
.tctp-utility-status { border-top: 1px solid var(--tctp-line); margin-top: 4px; }
.tctp-utility-status strong { color: var(--tctp-text); font-size: 14px; }
.tctp-utility-status small { color: var(--tctp-muted); font-size: 12px; line-height: 1.45; }

body.tct-prototype-body .tcj-hero h1,
body.tct-prototype-body .tcq-hero h1,
body.tct-prototype-body .tcj-hero p,
body.tct-prototype-body .tcq-hero p {
    margin-left: auto !important;
    margin-right: auto !important;
}
body.tct-prototype-body .tcq-privacy { margin-left: auto !important; margin-right: auto !important; }
body.tct-prototype-body .tcq-safety strong { color: var(--tctp-text) !important; }

body.tct-prototype-body button.primary,
body.tct-prototype-body button.generate,
body.tct-prototype-body button.convert,
body.tct-prototype-body .btn-primary,
body.tct-prototype-body .primary-btn,
body.tct-prototype-body .tcj-actions .tcj-primary,
body.tct-prototype-body .tcq-actions .tcq-primary,
html[data-tct-theme="dark"] body.tct-prototype-body .tcj-actions .tcj-primary,
html[data-tct-theme="dark"] body.tct-prototype-body .tcq-actions .tcq-primary {
    background: #08765d !important;
    border-color: #08765d !important;
    color: #ffffff !important;
}
body.tct-prototype-body .btn,
body.tct-prototype-body button.btn,
body.tct-prototype-body .btn-primary,
body.tct-prototype-body .btn-success,
body.tct-prototype-body .cta-button,
body.tct-prototype-body .upload-btn,
body.tct-prototype-body .data-btn,
body.tct-prototype-body .test-btn,
body.tct-prototype-body .copy-btn,
body.tct-prototype-body .regenerate-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .btn,
html[data-tct-theme="dark"] body.tct-prototype-body button.btn,
html[data-tct-theme="dark"] body.tct-prototype-body .btn-primary,
html[data-tct-theme="dark"] body.tct-prototype-body .btn-success,
html[data-tct-theme="dark"] body.tct-prototype-body .cta-button,
html[data-tct-theme="dark"] body.tct-prototype-body .upload-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .data-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .test-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .copy-btn,
html[data-tct-theme="dark"] body.tct-prototype-body .regenerate-btn {
    background: #08765d !important;
    border-color: #08765d !important;
    color: #ffffff !important;
}
body.tct-prototype-body .btn:hover,
body.tct-prototype-body button.btn:hover,
body.tct-prototype-body .btn-primary:hover,
body.tct-prototype-body .btn-success:hover,
body.tct-prototype-body .cta-button:hover,
body.tct-prototype-body .upload-btn:hover,
body.tct-prototype-body .data-btn:hover,
body.tct-prototype-body .test-btn:hover,
body.tct-prototype-body .copy-btn:hover,
body.tct-prototype-body .regenerate-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body button.btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .btn-primary:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .btn-success:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .cta-button:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .upload-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .data-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .test-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .copy-btn:hover,
html[data-tct-theme="dark"] body.tct-prototype-body .regenerate-btn:hover {
    background: #087f63 !important;
    border-color: #087f63 !important;
    color: #ffffff !important;
}
body.tct-prototype-body .preset-btn.selected,
body.tct-prototype-body .preset-btn.active,
body.tct-prototype-body .tab-btn.active,
body.tct-prototype-body .tcq-preset.active,
html[data-tct-theme="dark"] body.tct-prototype-body .preset-btn.selected,
html[data-tct-theme="dark"] body.tct-prototype-body .preset-btn.active,
html[data-tct-theme="dark"] body.tct-prototype-body .tab-btn.active,
html[data-tct-theme="dark"] body.tct-prototype-body .tcq-preset.active {
    background: #08765d !important;
    border-color: #08765d !important;
    color: #ffffff !important;
}
body.tct-prototype-body button.primary:hover,
body.tct-prototype-body button.generate:hover,
body.tct-prototype-body button.convert:hover,
body.tct-prototype-body .btn-primary:hover,
body.tct-prototype-body .primary-btn:hover,
body.tct-prototype-body .tcj-actions .tcj-primary:hover,
body.tct-prototype-body .tcq-actions .tcq-primary:hover {
    background: #087f63 !important;
    border-color: #087f63 !important;
    color: #ffffff !important;
}

.tctp-trust {
    background: var(--tctp-surface-soft);
    border-block: 1px solid var(--tctp-line);
    font-family: Poppins, system-ui, sans-serif;
    padding: clamp(42px, 6vw, 72px) max(20px, calc((100vw - 1180px) / 2));
}
.tctp-trust-heading { margin: 0 auto 24px; max-width: 720px; text-align: center; }
.tctp-trust-heading > span { color: var(--tctp-brand); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.tctp-trust-heading h2 { background: none !important; box-shadow: none !important; color: var(--tctp-text) !important; font-size: clamp(28px, 4vw, 42px) !important; letter-spacing: -.015em !important; margin: 8px 0 0 !important; padding: 0 !important; }
.tctp-trust-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.tctp-trust-grid article { background: var(--tctp-surface); border: 1px solid var(--tctp-line); border-radius: 18px; padding: 22px; text-align: center; }
.tctp-trust-grid strong { color: var(--tctp-text); font-size: 17px; }
.tctp-trust-grid p { color: var(--tctp-muted); font-size: 15px; line-height: 1.55; margin: 8px 0 0; }

.tctp-share {
    align-items: center;
    background: var(--tctp-surface);
    border-top: 1px solid var(--tctp-line);
    color: var(--tctp-text);
    display: flex;
    font-family: Poppins, system-ui, sans-serif;
    gap: 16px;
    justify-content: center;
    padding: 18px max(20px, calc((100vw - 1180px) / 2));
    border-radius: 0 !important;
    margin: 0 !important;
}
.tctp-share > strong { font-size: 14px; }
.tctp-share > div { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }
.tctp-share a,
.tctp-share button {
    align-items: center;
    background: var(--tctp-surface-soft) !important;
    border: 1px solid var(--tctp-line) !important;
    border-radius: 999px !important;
    color: var(--tctp-text) !important;
    display: inline-flex;
    font: 800 12px/1 Poppins, system-ui, sans-serif !important;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    padding: 8px 11px !important;
    text-decoration: none;
}
.tctp-share a:hover,
.tctp-share a:focus-visible,
.tctp-share button:hover,
.tctp-share button:focus-visible { background: var(--tctp-accent-soft) !important; border-color: var(--tctp-brand) !important; color: var(--tctp-text) !important; outline: 0; }

@media (max-width: 760px) {
    .tctp-trust-grid { grid-template-columns: 1fr; }
    .tctp-share { align-items: flex-start; flex-direction: column; }
}

/* v0.10 unified tool-page system. */
body.tct-prototype-body { overflow-x: hidden; }

.tctp-theme-icon--moon path {
    fill: currentColor !important;
    stroke: currentColor !important;
    stroke-linejoin: round;
    stroke-width: 2.2 !important;
    vector-effect: non-scaling-stroke;
}

.tctp-unified-hero {
    background:
        radial-gradient(circle at 12% 0, rgba(85, 226, 160, .2), transparent 30%),
        linear-gradient(120deg, #074c40, #07564c 58%, #176174);
    border-radius: 0 0 30px 30px;
    color: #fff;
    font-family: Poppins, system-ui, sans-serif;
    overflow: hidden;
    padding: clamp(30px, 5vw, 62px) max(20px, calc((100vw - 1100px) / 2)) clamp(38px, 6vw, 72px);
    position: relative;
    text-align: center;
}

.tctp-unified-hero::before {
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 40px 40px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.tctp-breadcrumb,
.tctp-unified-hero__eyebrow,
.tctp-unified-hero h1,
.tctp-unified-hero > p,
.tctp-unified-hero__proof,
.tctp-unified-hero__action { position: relative; z-index: 1; }

.tctp-breadcrumb {
    align-items: center;
    color: #bde5dc;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 750;
    gap: 11px;
    justify-content: center;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.tctp-breadcrumb > span[aria-hidden="true"] { color: #9df1c6; margin-inline: 2px; }

.tctp-breadcrumb a { color: #7ff0b8; text-decoration: none; }
.tctp-breadcrumb a:hover,
.tctp-breadcrumb a:focus-visible { color: #fff; text-decoration: underline; }

.tctp-unified-hero__eyebrow {
    align-items: center;
    color: #9df1c6;
    display: flex;
    font-size: 12px;
    font-weight: 850;
    gap: 8px;
    justify-content: center;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tctp-unified-hero__eyebrow span {
    background: #12d77d;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(18, 215, 125, .14);
    height: 8px;
    width: 8px;
}

.tctp-unified-hero h1 {
    color: #fff !important;
    font-size: clamp(42px, 7vw, 76px) !important;
    letter-spacing: -.025em !important;
    line-height: 1.05 !important;
    margin: 20px auto 16px !important;
    max-width: 960px;
}

.tctp-unified-hero > p {
    color: #def1ed !important;
    font-size: clamp(17px, 2vw, 22px) !important;
    line-height: 1.55 !important;
    margin: 0 auto !important;
    max-width: 780px;
}

.tctp-unified-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.tctp-unified-hero__proof span {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #f4fffb;
    font-size: 14px;
    font-weight: 750;
    padding: 9px 15px;
}

.tctp-unified-hero__action {
    background: #08765d;
    border: 1px solid #08765d;
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    margin-top: 22px;
    min-height: 48px;
    padding: 12px 22px;
    text-decoration: none;
}

.tctp-unified-hero__action:hover,
.tctp-unified-hero__action:focus-visible { background: #0b5f4e; border-color: #0b5f4e; color: #fff; }

.tctp-tool-workspace-anchor { height: 0; scroll-margin-top: 18px; }
body.tct-prototype-body .hero,
body.tct-prototype-body .tool-header,
body.tct-prototype-body .tcj-hero,
body.tct-prototype-body .tcq-hero,
body.tct-prototype-body .breadcrumb { display: none !important; }

/* One predictable button system, including controls revealed after interaction. */
body.tct-prototype-body button:not(.tctp-icon-button),
body.tct-prototype-body input[type="button"],
body.tct-prototype-body input[type="submit"] {
    background: #08765d !important;
    border: 1px solid #08765d !important;
    color: #fff !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
}

body.tct-prototype-body button:not(.tctp-icon-button):hover,
body.tct-prototype-body button:not(.tctp-icon-button):focus-visible,
body.tct-prototype-body input[type="button"]:hover,
body.tct-prototype-body input[type="submit"]:hover {
    background: #0b5f4e !important;
    border-color: #0b5f4e !important;
    color: #fff !important;
}

body.tct-prototype-body :is(.btn-secondary, .secondary, .btn-ghost, .reset, .btn-clear, .btn-danger, .modal-close),
body.tct-prototype-body :is(.tab-btn, .preset-btn, .tcq-preset):not(.active):not(.selected):not(.is-active) {
    background: var(--tctp-surface-soft) !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body :is(.btn-secondary, .secondary, .btn-ghost, .reset, .btn-clear, .btn-danger, .modal-close):hover,
body.tct-prototype-body :is(.tab-btn, .preset-btn, .tcq-preset):not(.active):not(.selected):not(.is-active):hover {
    background: linear-gradient(135deg, #0bc06c, #15514b) !important;
    border-color: #0bc06c !important;
    color: #fff !important;
}

body.tct-prototype-body :is(.tab-btn, .preset-btn, .tcq-preset).active,
body.tct-prototype-body :is(.tab-btn, .preset-btn).selected,
body.tct-prototype-body .tcq-preset.is-active {
    background: linear-gradient(135deg, #0bc06c, #15514b) !important;
    border-color: #0bc06c !important;
    color: #fff !important;
}

body.tct-prototype-body button:disabled,
body.tct-prototype-body input[type="button"]:disabled,
body.tct-prototype-body input[type="submit"]:disabled {
    background: color-mix(in srgb, var(--tctp-surface-soft) 78%, #8ca09d) !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-muted) !important;
    cursor: not-allowed !important;
    opacity: .78 !important;
}

body.tct-prototype-body .tabs,
body.tct-prototype-body .tab-buttons,
body.tct-prototype-body .tab-navigation {
    background: transparent !important;
    border: 0 !important;
    display: flex !important;
    gap: 10px !important;
    overflow: visible !important;
}

body.tct-prototype-body .tabs > :is(button, .tab, .tab-btn),
body.tct-prototype-body .tab-buttons > :is(button, .tab, .tab-btn),
body.tct-prototype-body .tab-navigation > :is(button, .tab, .tab-btn) {
    border-radius: 12px !important;
    flex: 1 1 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: auto !important;
}

/* Replace hard-coded light panels with theme surfaces. */
html[data-tct-theme="dark"] body.tct-prototype-body :is(
    .preview-content, .analysis-panel, .analysis-item, .batch-section, .file-drop-zone,
    .aspect-ratio-toggle, .match-results, .validation-section, .validation-item,
    .tab-content, .drop-zone, .why-use-section, .how-it-works, .step-card,
    .instructions, .input-card, .result-card, .preview-section, .output-pane,
    .editor-area, .feature-card, .faq-item, .color-value-card, .google-preview,
    .social-preview, .twitter-preview, .linkedin-preview, .main-content,
    .tool-container, .tool-section, .workspace, .card, .stats-section,
    .preview-panel, .guidance-section, .single-analysis, .batch-analysis,
    .faq-section, .learn-section, .results-section, .result-section,
    .generator, .encryptor, .file-item, .modal-box, .pattern-item,
    .test-result, .match-item, .code-output, .preview-container,
    .guidance-item, .analysis-card, .education-card
) {
    background: var(--tctp-surface) !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-text) !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body :is(
    .preview-content, .analysis-panel, .analysis-item, .batch-section, .file-drop-zone,
    .aspect-ratio-toggle, .match-results, .validation-section, .validation-item,
    .tab-content, .drop-zone, .why-use-section, .how-it-works, .step-card,
    .instructions, .input-card, .result-card, .preview-section, .output-pane,
    .editor-area, .feature-card, .faq-item, .color-value-card, .google-preview,
    .social-preview, .twitter-preview, .linkedin-preview, .main-content,
    .tool-container, .tool-section, .workspace, .card, .stats-section,
    .preview-panel, .guidance-section, .single-analysis, .batch-analysis,
    .faq-section, .learn-section, .results-section, .result-section,
    .generator, .encryptor, .file-item, .modal-box, .pattern-item,
    .test-result, .match-item, .code-output, .preview-container,
    .guidance-item, .analysis-card, .education-card
) :is(h1, h2, h3, h4, p, label, strong, small, li, .analysis-label, .validation-content) {
    color: var(--tctp-text) !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body :is(input, textarea, select) {
    background: #071f1d !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-text) !important;
}

body.tct-prototype-body .tctp-prototype--metadata-cleaner .tabs,
body.tct-prototype-body.tct-prototype--metadata-cleaner .tabs { column-gap: 10px !important; }
body.tct-prototype-body.tct-prototype--metadata-cleaner .tabs .tab-btn {
    flex: 1 1 0 !important;
    width: auto !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body .preview-platform {
    background: var(--tctp-surface-soft) !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-text) !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body .preview-platform.active {
    background: #08765d !important;
    border-color: #08765d !important;
    color: #fff !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body .google-preview .title { color: #8ab4f8 !important; }
html[data-tct-theme="dark"] body.tct-prototype-body .google-preview .url { color: #7ed6a5 !important; }
html[data-tct-theme="dark"] body.tct-prototype-body .google-preview .description { color: #c6d4d1 !important; }

.tctp-editorial {
    background: var(--tctp-bg);
    color: var(--tctp-text);
    font-family: Poppins, system-ui, sans-serif;
    padding: clamp(44px, 6vw, 74px) max(20px, calc((100vw - 1120px) / 2));
}

.tctp-editorial--soft { background: var(--tctp-surface-soft); }
.tctp-editorial__heading { margin: 0 auto 28px; text-align: center; }
.tctp-editorial__heading h2 { background: none !important; box-shadow: none !important; color: var(--tctp-text) !important; font-size: clamp(30px, 4vw, 44px) !important; letter-spacing: -.018em !important; margin: 0 !important; padding: 0 !important; }
.tctp-editorial__heading h2::after { background: var(--tctp-brand); border-radius: 99px; content: ""; display: block; height: 4px; margin: 16px auto 0; width: 58px; }
.tctp-editorial__grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.tctp-editorial__grid article { background: var(--tctp-surface); border: 1px solid var(--tctp-line); border-radius: 18px; padding: 25px; text-align: center; }
.tctp-editorial__grid article > span { display: block; font-size: 31px; margin-bottom: 12px; }
.tctp-editorial__grid strong { color: var(--tctp-text); display: block; font-size: 18px; }
.tctp-editorial__grid p { color: var(--tctp-muted); font-size: 15px; line-height: 1.6; margin: 10px 0 0; }
.tctp-step-number { align-items: center; background: var(--tctp-accent-soft); border-radius: 50%; color: var(--tctp-brand) !important; display: inline-flex !important; font-size: 16px !important; font-weight: 850; height: 46px; justify-content: center; margin-inline: auto; width: 46px; }
.tctp-faq-list { display: grid; gap: 14px; margin: 0 auto; max-width: 920px; }
.tctp-faq-list details { background: var(--tctp-surface); border: 1px solid var(--tctp-line); border-radius: 16px; padding: 0 20px; }
.tctp-faq-list summary { align-items: center; color: var(--tctp-text); cursor: pointer; display: flex; font-size: 17px; font-weight: 750; justify-content: space-between; list-style: none; padding: 20px 0; }
.tctp-faq-list summary::-webkit-details-marker { display: none; }
.tctp-faq-list summary > span::before { color: var(--tctp-brand); content: "+"; font-size: 23px; font-weight: 800; line-height: 1; }
.tctp-faq-list details[open] summary > span::before { content: "−"; }
.tctp-faq-list p { color: var(--tctp-muted); font-size: 16px; line-height: 1.65; margin: 0 0 20px; }

.tctp-share svg { height: 19px !important; max-height: 19px !important; max-width: 19px !important; width: 19px !important; }
.tctp-share a,
.tctp-share button {
    align-items: center !important;
    display: inline-flex !important;
    flex: 0 0 42px !important;
    height: 42px !important;
    justify-content: center !important;
    max-height: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    min-width: 42px !important;
    padding: 8px !important;
    width: 42px !important;
}
.tctp-share > div {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.tct-visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.tctp-share button.is-copied { background: #08765d !important; border-color: #08765d !important; color: #fff !important; }
.tct-copy-status { color: var(--tctp-brand); font-size: 12px; font-weight: 750; min-width: 74px; }

/* Shared section-title detail used by all bundled tools. */
body.tct-prototype-body .tctp-section-title::after,
body.tct-prototype-body .section-title::after,
body.tct-prototype-body .why-use-section h2::after,
body.tct-prototype-body .how-it-works h2::after,
body.tct-prototype-body .faq h2::after,
body.tct-prototype-body .faq-section h2::after {
    background: linear-gradient(90deg, #0bc06c, #0a5f57);
    border-radius: 99px;
    content: "";
    display: block;
    height: 4px;
    left: auto !important;
    margin: 15px auto 0 !important;
    position: static !important;
    right: auto !important;
    transform: none !important;
    width: 58px;
}

body.tct-prototype-body :is(.features, .why-use-section) .feature-icon,
body.tct-prototype-body section:has(> .container > .tctp-section-title) .feature-icon {
    font-size: 38px !important;
    line-height: 1 !important;
    min-height: 44px !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body .tctp-share a[data-tctp-share="facebook"],
html[data-tct-theme="dark"] body.tct-prototype-body .tctp-share a[data-tctp-share="x"],
html[data-tct-theme="dark"] body.tct-prototype-body .tctp-share a[data-tctp-share="linkedin"],
html[data-tct-theme="dark"] body.tct-prototype-body .tctp-share a[data-tctp-share="reddit"] { color: #fff !important; }

body.tct-prototype-body .tctp-workspace-title::after {
    background: linear-gradient(90deg, #0bc06c, #0a5f57);
    border-radius: 99px;
    content: "";
    display: block;
    height: 4px;
    margin: 12px 0 0;
    width: 52px;
}

html:not([data-tct-theme="dark"]) body.tct-prototype-body :is(.tab-btn, .preset-btn, .tcq-preset):not(.active):not(.selected):not(.is-active) {
    background: #fff !important;
}

/* Tabs are separated controls, not one fused strip. */
body.tct-prototype-body.tct-prototype--metadata-cleaner .tabs,
body.tct-prototype-body.tct-prototype--email-header-analyzer .tabs,
body.tct-prototype-body.tct-prototype--url-structure-checker .tabs,
body.tct-prototype-body.tct-prototype--metadata-cleaner .tab-navigation,
body.tct-prototype-body.tct-prototype--email-header-analyzer .tab-navigation,
body.tct-prototype-body.tct-prototype--url-structure-checker .tab-navigation {
    background: transparent !important;
    border: 0 !important;
    gap: 10px !important;
}

/* Tool-specific spacing repairs identified during the page-by-page audit. */
body.tct-prototype-body.tct-prototype--email-header-analyzer .faq-section,
body.tct-prototype-body.tct-prototype--email-header-analyzer .faq {
    margin-bottom: 42px !important;
}

body.tct-prototype-body.tct-prototype--url-structure-checker .how-it-works .steps-grid,
body.tct-prototype-body.tct-prototype--url-structure-checker .steps-grid {
    gap: 18px !important;
}

body.tct-prototype-body.tct-prototype--url-structure-checker .step-card {
    background: var(--tctp-surface) !important;
    border: 1px solid var(--tctp-line) !important;
    border-radius: 18px !important;
    padding: 24px !important;
}

/* v0.13 corrective contrast, sizing and interaction audit. */
html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--file-encryptor :is(.control-group, .security-controls .control-group),
html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--regex-builder :is(.regex-display, .test-area, .explanation, .explanation-item, .pattern-library),
html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--password-generator :is(.password-display, .password-field) {
    background: var(--tctp-surface) !important;
    border-color: var(--tctp-line) !important;
    color: var(--tctp-text) !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--file-encryptor .control-group :is(h4, label, p, .strength-text),
html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--regex-builder :is(.regex-display, .test-area, .explanation, .explanation-item, .pattern-library) :is(h3, p, label, div),
html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--password-generator :is(.password-display, .password-field) :is(h3, p, span, div) {
    color: var(--tctp-text) !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--regex-builder :is(.regex-field, .test-input, .match-results),
html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--password-generator .password-field,
html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--file-encryptor .control-group :is(input, select) {
    background: #071f1d !important;
    border-color: var(--tctp-line) !important;
    color: #f4fffb !important;
}

html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--regex-builder .explanation-item {
    background: #123633 !important;
}
html[data-tct-theme="dark"] body.tct-prototype-body.tct-prototype--regex-builder .explanation-part { color: #6ee7b7 !important; }

body.tct-prototype-body.tct-prototype--json-formatter .tcj-card > h2,
body.tct-prototype-body.tct-prototype--qr-code-generator .tcq-panel > h2,
body.tct-prototype-body.tct-prototype--metadata-cleaner .tab-content > h2,
body.tct-prototype-body.tct-prototype--url-structure-checker .tab-content > h2,
body.tct-prototype-body.tct-prototype--email-header-analyzer .tab-content > h2 {
    color: var(--tctp-text) !important;
    font-size: clamp(30px, 4vw, 42px) !important;
    letter-spacing: -.025em !important;
    line-height: 1.2 !important;
    margin: 0 auto 28px !important;
    text-align: center !important;
}
body.tct-prototype-body.tct-prototype--json-formatter .tcj-card > h2::after,
body.tct-prototype-body.tct-prototype--qr-code-generator .tcq-panel > h2::after,
body.tct-prototype-body.tct-prototype--metadata-cleaner .tab-content > h2::after,
body.tct-prototype-body.tct-prototype--url-structure-checker .tab-content > h2::after,
body.tct-prototype-body.tct-prototype--email-header-analyzer .tab-content > h2::after {
    background: linear-gradient(90deg,#0bc06c,#0a5f57) !important;
    border-radius: 99px !important;
    content: "" !important;
    display: block !important;
    height: 4px !important;
    margin: 15px auto 0 !important;
    position: static !important;
    transform: none !important;
    width: 64px !important;
}

body.tct-prototype-body.tct-prototype--image-to-text .upload-tip {
    display: block !important;
    line-height: 1.65 !important;
    margin: 0 auto 24px !important;
    max-width: 760px !important;
}
body.tct-prototype-body.tct-prototype--image-to-text .upload-btn { margin-top: 0 !important; }

html[data-tct-theme="dark"] body.tct-prototype-body .tctp-share :is(a, button) {
    color: #fff !important;
}
html[data-tct-theme="dark"] body.tct-prototype-body .tctp-share .tct-share-icon {
    color: #fff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}
html body.tct-prototype-body .tctp-share > div > :is(a, button) > svg.tct-share-icon {
    display: block !important;
    flex: 0 0 19px !important;
    height: 19px !important;
    max-height: 19px !important;
    max-width: 19px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 19px !important;
}

body.tct-prototype-body :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, .upload-btn, .tctp-unified-hero__action):not(:disabled) {
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease !important;
}
body.tct-prototype-body :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, .upload-btn, .tctp-unified-hero__action):not(:disabled):hover,
body.tct-prototype-body :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, .upload-btn, .tctp-unified-hero__action):not(:disabled):focus-visible {
    background: linear-gradient(135deg,#078653 0%,#075247 100%) !important;
    border-color: #27efa3 !important;
    box-shadow: 0 0 0 1px rgba(39,239,163,.72), 0 10px 25px rgba(11,192,108,.3) !important;
    color: #fff !important;
    filter: none !important;
    outline: 0 !important;
    transform: translateY(-2px) !important;
}

.tctp-footer a { background: transparent !important; position: relative; }
.tctp-footer a::after { background: #55e2a0; bottom: 3px; content: ""; height: 2px; left: 10px; position: absolute; right: 10px; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.tctp-footer a:hover,
.tctp-footer a:focus-visible { background: transparent !important; color: #7ff0b8 !important; }
.tctp-footer a:hover::after,
.tctp-footer a:focus-visible::after { transform: scaleX(1); }

@media (max-width: 760px) {
    .tctp-unified-hero { border-radius: 0 0 22px 22px; }
    .tctp-unified-hero h1 { font-size: clamp(36px, 11vw, 54px) !important; }
    .tctp-unified-hero__proof { align-items: center; flex-direction: column; }
    .tctp-editorial__grid { grid-template-columns: 1fr; }
    .tctp-nav-actions .tctp-all-tools:not(:first-child) { display: none; }
    .tct-copy-status { min-width: 0; }
}
