﻿:root {
    --tool-bg: #090f1f;
    --tool-bg-soft: #0d1528;
    --tool-panel: rgba(20, 31, 51, 0.78);
    --tool-panel-strong: rgba(22, 34, 56, 0.92);
    --tool-panel-soft: rgba(15, 23, 42, 0.62);
    --tool-line: rgba(148, 163, 184, 0.18);
    --tool-line-strong: rgba(148, 163, 184, 0.28);
    --tool-text: #e8eef8;
    --tool-muted: #9aa8bb;
    --tool-soft: #c6d3e4;
    --tool-blue: #4f9cff;
    --tool-cyan: #38d5ff;
    --tool-green: #25d983;
    --tool-violet: #7c6dff;
    --tool-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
    --tool-radius: 8px;
}

body {
    background: var(--tool-bg);
}

.toolpage-shell {
    min-height: 760px;
    font-family: "Manrope", "Inter", "Segoe UI", sans-serif;
    font-size: 15px;
    font-feature-settings: "cv02", "cv03", "cv04";
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px) 0 0 / 58px 58px,
        radial-gradient(circle at 22% 0%, rgba(56, 213, 255, 0.12), transparent 34%),
        radial-gradient(circle at 78% 8%, rgba(124, 109, 255, 0.12), transparent 31%),
        linear-gradient(180deg, #0a1020 0%, #0d1426 48%, #090f1f 100%);
}

.toolpage-shell button,
.toolpage-shell input,
.toolpage-shell select,
.toolpage-shell textarea {
    font: inherit;
}

.toolpage-shell button,
.toolpage-shell label,
.toolpage-shell a {
    -webkit-tap-highlight-color: transparent;
}

.toolpage-layout {
    display: grid;
    grid-template-columns: 206px minmax(0, 1fr) 292px;
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--tool-line);
}

.tool-sidebar {
    position: sticky;
    top: 0;
    min-height: 760px;
    padding: 18px 10px 24px;
    border-right: 1px solid var(--tool-line);
    background:
        linear-gradient(180deg, rgba(12, 20, 36, 0.94), rgba(10, 17, 32, 0.86));
    backdrop-filter: blur(18px);
}

.sidebar-section + .sidebar-section {
    margin-top: 22px;
}

.sidebar-title {
    margin: 0 0 12px;
    padding: 0 2px;
    color: #8797ad;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 34px;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: var(--tool-radius);
    color: #d7e0ed;
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    border-color: rgba(79, 156, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(79, 156, 255, 0.18), rgba(56, 213, 255, 0.05));
    color: #78b7ff;
}

.sidebar-link:hover {
    transform: translateX(2px);
}

.sidebar-link i {
    width: 17px;
    color: currentColor;
    text-align: center;
    font-size: 0.92rem;
}

.sidebar-link .badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(79, 156, 255, 0.16);
    color: #9cc7ff;
    font-size: 0.66rem;
    font-weight: 900;
}

.bookmark-card {
    margin-top: 26px;
    padding: 14px;
    border: 1px solid rgba(79, 156, 255, 0.2);
    border-radius: var(--tool-radius);
    background:
        linear-gradient(180deg, rgba(25, 38, 63, 0.86), rgba(13, 21, 38, 0.88));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.bookmark-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.bookmark-card h3 {
    margin: 0;
    color: #f8fbff;
    font-size: 0.86rem;
    line-height: 1.35;
}

.bookmark-card .star {
    color: #f6b43f;
}

.bookmark-card p {
    margin: 0 0 13px;
    color: var(--tool-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.bookmark-button {
    width: 100%;
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, #1b78ff, #0aa4c8);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.bookmark-button:hover {
    filter: brightness(1.05);
}

.toolpage-preview-area {
    padding: 24px 34px 38px;
    color: var(--tool-text);
    background:
        linear-gradient(180deg, rgba(14, 23, 42, 0.34), rgba(9, 15, 31, 0.2));
}

.mobile-tool-rail {
    display: none;
}

.tool-split-work-area {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.tool-form-panel,
.tool-settings-panel,
.tool-preview-panel {
    padding: 24px;
    border: 1px solid var(--tool-line-strong);
    border-radius: var(--tool-radius);
    background:
        linear-gradient(180deg, rgba(28, 40, 64, 0.82), rgba(17, 26, 44, 0.84));
    box-shadow: var(--tool-shadow);
}

.tool-settings-panel h2,
.tool-form-panel h2,
.tool-panel-heading {
    margin: 0 0 14px;
    color: #f8fbff;
    font-size: 1.02rem;
    font-weight: 900;
}

.field-label {
    display: block;
    margin: 13px 0 7px;
    color: #cdd8e7;
    font-size: 0.84rem;
    font-weight: 850;
}

.tool-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(100, 116, 139, 0.34);
    border-radius: var(--tool-radius);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font: inherit;
    font-weight: 750;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tool-input:focus,
.file-picker:focus-within {
    outline: 0;
    border-color: rgba(96, 165, 250, 0.56);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.native-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.file-picker {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    overflow: hidden;
    border: 1px solid rgba(100, 116, 139, 0.34);
    border-radius: var(--tool-radius);
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.file-picker-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    padding: 0 14px;
    background: linear-gradient(135deg, #237bff, #1aa0d8);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
}

.file-picker-name {
    min-width: 0;
    padding: 0 12px;
    overflow: hidden;
    color: #dbeafe;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary-action,
.secondary-action,
.tool-download-link,
.accent-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 18px;
    border-radius: 7px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
}

.primary-action,
.accent-action {
    border: 0;
    background: linear-gradient(135deg, #237bff, #6c49f5);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.secondary-action {
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(15, 23, 42, 0.72);
}

.tool-download-link {
    border: 0;
    background: linear-gradient(135deg, #1fa95a, #17936b);
}

.primary-action:disabled,
.secondary-action:disabled,
.accent-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.full-width-action {
    width: 100%;
}

.tool-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: #bfdbfe;
    font-size: 0.84rem;
    font-weight: 700;
}

.tool-status.is-error {
    color: #fecaca;
}

.tool-result-area {
    min-height: 100px;
    display: grid;
    align-content: start;
}

.tool-preview-empty,
.tool-preview-stage {
    min-height: 420px;
    border: 1px dashed rgba(96, 165, 250, 0.45);
    border-radius: var(--tool-radius);
    background: #020617;
}

.tool-preview-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: #94a3b8;
}

.tool-preview-empty i {
    color: #60a5fa;
    font-size: 2.4rem;
}

.tool-preview-empty strong {
    color: #e2e8f0;
    font-size: 1.02rem;
}

.tool-preview-stage {
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 18px;
}

.tool-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.tool-detail-grid > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: var(--tool-radius);
    background: rgba(15, 23, 42, 0.56);
}

.tool-detail-grid dt {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 850;
}

.tool-detail-grid dd {
    margin: 5px 0 0;
    overflow: hidden;
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.formatter-work-area {
    margin-bottom: 18px;
}

.formatter-editor-shell {
    overflow: hidden;
    border: 1px solid var(--tool-line-strong);
    border-radius: var(--tool-radius);
    background: #0b1020;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.formatter-editor-grid {
    min-height: 520px;
}

.single-editor-grid {
    display: block;
}

.code-editor-panel {
    min-width: 0;
    background: #0f172a;
}

.editor-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.24);
    background: #111827;
}

.window-dots {
    display: inline-flex;
    gap: 6px;
}

.window-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.window-dots i:nth-child(2) { background: #f59e0b; }
.window-dots i:nth-child(3) { background: #22c55e; }

.editor-file-name {
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 850;
}

.editor-body {
    min-height: 478px;
}

.monaco-editor-host {
    height: 478px;
    background: #0f172a;
}

.formatter-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-top: 1px solid rgba(100, 116, 139, 0.24);
    background: #111827;
}

.formatter-status {
    min-width: 160px;
    color: #bfdbfe;
    font-size: 0.84rem;
    font-weight: 800;
}

.formatter-status.is-error {
    color: #fecaca;
}

.formatter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.editor-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.76);
    color: #e2e8f0;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 850;
}

.primary-editor-action {
    border: 0;
    background: linear-gradient(135deg, #237bff, #6c49f5);
    color: #ffffff;
}

.danger-editor-action {
    border-color: rgba(248, 113, 113, 0.36);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    color: #8a9ab1;
    font-size: 0.78rem;
}

.breadcrumb-list a {
    color: #70b5ff;
    text-decoration: none;
    font-weight: 850;
}

.breadcrumb-list a:hover {
    color: #9ed0ff;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin-left: 7px;
    color: #506176;
}

.tool-main-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 22px;
    min-height: 126px;
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--tool-line-strong);
    border-radius: var(--tool-radius);
    background:
        linear-gradient(180deg, rgba(28, 40, 64, 0.58), rgba(17, 26, 44, 0.52));
}

.tool-title-group {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 auto;
}

.tool-image-box {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tool-radius);
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #19c86e, #088fd3);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(13, 148, 136, 0.22);
    overflow: hidden;
}

.tool-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-image-box i {
    font-size: 1.8rem;
}

.tool-main-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 1.72rem;
    font-weight: 900;
    line-height: 1.14;
    letter-spacing: 0;
}

.tool-main-hero p {
    max-width: 780px;
    margin: 6px 0 0;
    color: #d4dfed;
    font-size: 0.95rem;
    line-height: 1.48;
}

.tool-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: stretch;
    gap: 12px;
    flex: 0 0 286px;
    width: 286px;
    max-width: 100%;
}

.share-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.78));
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.share-button:hover {
    border-color: rgba(96, 165, 250, 0.42);
    color: #9ed0ff;
}

.share-button.is-success {
    border-color: rgba(37, 217, 131, 0.42);
    color: #b9f6d5;
}

.benefit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin: 12px 0 18px;
    padding: 0;
    list-style: none;
}

.benefit-row li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4dfed;
    font-size: 0.8rem;
    font-weight: 800;
}

.benefit-row i {
    color: var(--tool-green);
    font-size: 0.82rem;
}

.ad-placeholder {
    display: grid;
    place-items: center;
    min-height: 90px;
    margin: 0 0 18px;
    border: 1px dashed rgba(96, 165, 250, 0.36);
    border-radius: var(--tool-radius);
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(8, 145, 178, 0.08)),
        rgba(15, 23, 42, 0.34);
    color: #8fa0b8;
    text-align: center;
}

.ad-placeholder.header-ad {
    min-height: 68px;
    margin: 0;
    padding: 0 14px;
}

.ad-placeholder.after-work {
    margin: 18px 0;
}

.ad-placeholder.below-tabs-ad {
    margin: 18px 0 0;
}

.ad-placeholder.sidebar-ad {
    min-height: 250px;
    margin: 22px 0 0;
}

.ad-placeholder strong,
.ad-placeholder span {
    display: block;
}

.ad-placeholder strong {
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ad-placeholder span {
    margin-top: 5px;
    color: #7dbdff;
    font-size: 0.94rem;
    font-weight: 900;
}

.ad-placeholder small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.74rem;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
    margin-top: 0;
    overflow: hidden;
    border: 1px solid var(--tool-line-strong);
    border-radius: var(--tool-radius);
    background:
        linear-gradient(180deg, rgba(28, 40, 64, 0.82), rgba(17, 26, 44, 0.84));
    box-shadow: var(--tool-shadow);
}

.stat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 13px 17px;
    border-right: 1px solid var(--tool-line);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(28, 40, 64, 0.72), rgba(11, 18, 33, 0.78));
}

.stat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.18) 42%,
            rgba(255, 255, 255, 0.06) 52%,
            transparent 66%
        );
    transform: translateX(-130%) rotate(8deg);
    opacity: 0;
    pointer-events: none;
    animation: statShine 5.3s ease-in-out infinite;
}

.stat-item:nth-child(1)::before {
    animation-delay: 0s;
}

.stat-item:nth-child(2)::before {
    animation-delay: .75s;
}

.stat-item:nth-child(3)::before {
    animation-delay: 1.5s;
}

.stat-item:nth-child(4)::before {
    animation-delay: 2.25s;
}

.stat-item:nth-child(5)::before {
    animation-delay: 3s;
}

.stat-item > * {
    position: relative;
    z-index: 1;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-icon,
.step-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), transparent 34%),
        rgba(37, 99, 235, 0.22);
    color: #8ec5ff;
    flex: 0 0 38px;
}

.stat-title,
.step-title {
    display: block;
    color: #eef5ff;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.2;
}

.stat-text,
.step-text {
    display: block;
    margin-top: 2px;
    color: #8fa0b8;
    font-size: 0.74rem;
    line-height: 1.35;
}

.steps-section {
    margin-top: 22px;
}

.steps-section h2,
.faq-card h2 {
    margin: 0 0 16px;
    font-size: 1.02rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    text-align: center;
}

.step-card {
    position: relative;
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-bottom: -4px;
    border-radius: 999px;
    background: #1677ff;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
}

.step-icon {
    margin: 0 auto 10px;
}

.tool-info-tabs {
    margin-top: 0;
    overflow: hidden;
    border: 1px solid var(--tool-line-strong);
    border-radius: var(--tool-radius);
    background:
        linear-gradient(180deg, rgba(28, 40, 64, 0.8), rgba(17, 26, 44, 0.82));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.tab-controls {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 18px;
    border-bottom: 1px solid var(--tool-line);
    background: rgba(12, 20, 36, 0.38);
}

.tab-controls label {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    color: #b7c4d5;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
    transition: color .18s ease;
}

.tab-controls label:hover,
.tab-controls label.is-active {
    color: #78b7ff;
}

.tab-controls label.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f9cff, #38d5ff);
    box-shadow: 0 0 18px rgba(56, 213, 255, 0.32);
}

.tool-info-tabs input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tab-panel {
    display: none;
    padding: 18px 20px 20px;
}

.tab-panel.is-active {
    display: block;
}

.tab-panel h2 {
    margin: 0 0 10px;
    color: #f8fbff;
    font-size: 1rem;
    font-weight: 900;
}

.tab-panel p,
.tab-panel li {
    color: #c9d5e6;
    font-size: 0.9rem;
    line-height: 1.7;
}

.tab-panel p {
    margin: 0 0 12px;
}

.tab-panel ol,
.tab-panel ul {
    margin: 0;
    padding-left: 20px;
}

.tab-panel details {
    border-top: 1px solid var(--tool-line);
    padding: 10px 0;
}

.tab-panel details:first-of-type {
    border-top: 0;
}

.tab-panel summary {
    cursor: pointer;
    color: #eef5ff;
    font-size: 0.9rem;
    font-weight: 850;
}

.tab-panel details p {
    margin: 8px 0 0;
    color: #c9d5e6;
    line-height: 1.55;
}

.tool-rightbar {
    min-height: 760px;
    padding: 24px 14px;
    border-left: 1px solid var(--tool-line);
    background:
        linear-gradient(180deg, rgba(12, 20, 36, 0.88), rgba(9, 15, 31, 0.84));
}

.related-tools-card {
    padding: 18px;
    border: 1px solid var(--tool-line-strong);
    border-radius: var(--tool-radius);
    background:
        linear-gradient(180deg, rgba(28, 40, 64, 0.84), rgba(17, 26, 44, 0.84));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.related-tools-card h2 {
    margin: 0 0 14px;
    color: #f8fbff;
    font-size: 1rem;
    line-height: 1.35;
}

.related-tool-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-tool-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 11px;
    padding: 9px 4px;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: var(--tool-radius);
    transition: background .18s ease, transform .18s ease;
}

.related-tool-link:hover {
    background: rgba(79, 156, 255, 0.11);
    transform: translateX(2px);
}

.related-tool-link.active {
    border-color: rgba(79, 156, 255, 0.34);
    background: linear-gradient(135deg, rgba(79, 156, 255, 0.18), rgba(56, 213, 255, 0.08));
    color: #ffffff;
}

.related-tool-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: var(--tool-radius);
    background: rgba(37, 99, 235, 0.2);
    color: #8ec5ff;
    font-size: 1rem;
}

.related-tool-title {
    display: block;
    color: #f8fbff;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.3;
}

.related-tool-description {
    display: block;
    margin-top: 3px;
    color: #91a1b8;
    font-size: 0.74rem;
    line-height: 1.4;
}

.related-tool-arrow {
    color: #64748b;
    font-size: 0.78rem;
}

@keyframes statShine {
    0% {
        transform: translateX(-130%) rotate(8deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    15% {
        transform: translateX(130%) rotate(8deg);
        opacity: 1;
    }

    22%,
    100% {
        transform: translateX(130%) rotate(8deg);
        opacity: 0;
    }
}

@media (max-width: 1180px) {
    .toolpage-layout {
        grid-template-columns: 194px minmax(0, 1fr);
    }

    .tool-rightbar {
        display: none;
    }
}

@media (max-width: 900px) {
    .toolpage-layout {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        position: static;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--tool-line);
    }

    .tool-rightbar {
        display: block;
        min-height: auto;
        padding: 22px 16px 34px;
        border-left: 0;
    }

    .toolpage-preview-area {
        padding: 24px 16px;
    }

    .tool-split-work-area,
    .tool-detail-grid {
        grid-template-columns: 1fr;
    }

    .stat-strip,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: 0;
        border-bottom: 1px solid var(--tool-line);
    }

    .tool-main-header {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 16px;
    }

    .tool-title-group {
        align-items: center;
        gap: 13px;
    }

    .tool-image-box {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .tool-main-hero h1 {
        font-size: 1.42rem;
    }

    .tool-main-hero p {
        font-size: 0.88rem;
    }

    .tool-header-actions {
        width: 100%;
        max-width: none;
        flex-basis: auto;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .tab-controls {
        gap: 18px;
        overflow-x: auto;
    }

    .formatter-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .formatter-buttons {
        justify-content: flex-start;
    }
}

.tool-feedback-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid var(--tool-line);
    border-radius: var(--tool-radius-lg);
    background: rgba(15, 23, 42, 0.72);
}

.tool-feedback-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-weight: 900;
    font-size: 1.30rem;
}

.tool-feedback-copy h2 {
    margin: 10px 0 8px;
    color: #f8fbff;
    font-size: 1.08rem;
}

.tool-feedback-copy p {
    margin: 0;
    color: #a7b6ca;
    line-height: 1.65;
}

.tool-feedback-form textarea {
    width: 100%;
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--tool-line);
    border-radius: var(--tool-radius);
    background: rgba(2, 6, 23, 0.38);
    color: #f8fbff;
    resize: vertical;
    outline: 0;
    font: 600 0.9rem/1.55 Inter, system-ui, sans-serif;
}

.tool-feedback-form textarea::placeholder {
    color: #7f91aa;
}

.tool-feedback-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #91a1b8;
    font-size: 0.82rem;
    font-weight: 800;
}

.tool-feedback-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

body.theme-light .tool-feedback-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(29, 55, 88, 0.14);
}

body.theme-light .tool-feedback-copy h2,
body.theme-light .tool-feedback-form textarea {
    color: #0b1b2f;
}

body.theme-light .tool-feedback-copy p,
body.theme-light .tool-feedback-actions {
    color: #526b86;
}

body.theme-light .tool-feedback-form textarea {
    background: #fff;
    border-color: rgba(29, 55, 88, 0.16);
}

@media (max-width: 900px) {
    .tool-feedback-card {
        grid-template-columns: 1fr;
    }

    .tool-feedback-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tool-feedback-actions button {
        justify-content: center;
        width: 100%;
    }
}

.tool-feedback-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
}

.tool-feedback-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #22d3ee, #7c3aed);
}

.tool-feedback-copy {
    position: relative;
    padding-left: 4px;
}

.tool-feedback-kicker {
    padding: 7px 10px;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
}

.tool-feedback-actions span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
}

.tool-feedback-form textarea:focus {
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

body.theme-light .tool-feedback-card {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body.theme-light .tool-feedback-kicker {
    border-color: rgba(37, 99, 235, 0.16);
    background: rgba(219, 234, 254, 0.75);
    color: #1162d8;
}

.tool-rating-summary {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(37, 99, 235, 0.1));
    color: #f8fbff;
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.18);
}

.tool-rating-summary .tool-rating-stars {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    color: #fbbf24;
    white-space: nowrap;
}

.tool-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    white-space: nowrap;
}

.tool-rating-summary .tool-rating-stars i {
    font-size: 1rem;
    line-height: 1;
}

.tool-rating-summary > div:not(.tool-rating-stars) {
    min-width: 0;
    text-align: left;
}

.tool-rating-summary strong {
    display: block;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.1;
}

.tool-rating-summary span {
    display: block;
    color: #b8c6da;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.tool-rating-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 18px;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--tool-radius-lg);
    background:
        radial-gradient(circle at 14% 12%, rgba(251, 191, 36, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(18, 28, 48, 0.84), rgba(13, 21, 38, 0.86));
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
}

.tool-rating-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    font-size: 0.84rem;
    font-weight: 900;
}

.tool-rating-copy h2 {
    margin: 10px 0 8px;
    color: #f8fbff;
    font-size: 1.08rem;
}

.tool-rating-copy p,
.tool-rating-status,
.tool-rating-meta span {
    margin: 0;
    color: #a7b6ca;
    line-height: 1.6;
}

.tool-rating-control {
    display: grid;
    align-content: center;
    gap: 10px;
}

.tool-rating-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-rating-buttons button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: #fbbf24;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.tool-rating-buttons button:hover,
.tool-rating-buttons button:focus-visible,
.tool-rating-buttons button.is-active {
    transform: translateY(-1px);
    border-color: rgba(251, 191, 36, 0.54);
    background: rgba(251, 191, 36, 0.16);
    outline: 0;
}

.tool-rating-meta {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.tool-rating-meta strong {
    color: #ffffff;
    font-size: 1.12rem;
}

body.theme-light .tool-rating-summary {
    border-color: rgba(217, 119, 6, 0.24);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(219, 234, 254, 0.92));
    color: #0b1b2f;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

body.theme-light .tool-rating-summary strong,
body.theme-light .tool-rating-copy h2,
body.theme-light .tool-rating-meta strong {
    color: #0b1b2f;
}

body.theme-light .tool-rating-summary span,
body.theme-light .tool-rating-copy p,
body.theme-light .tool-rating-status,
body.theme-light .tool-rating-meta span {
    color: #526b86;
}

body.theme-light .tool-rating-panel {
    border-color: rgba(217, 119, 6, 0.16);
    background:
        radial-gradient(circle at 14% 12%, rgba(251, 191, 36, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body.theme-light .tool-rating-buttons button {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.2);
}

@media (max-width: 900px) {
    .tool-header-actions {
        align-self: stretch;
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }

    .tool-rating-summary {
        justify-self: stretch;
        min-width: 0;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        border-radius: 7px;
    }

    .tool-rating-summary .tool-rating-stars {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .share-button {
        width: 100%;
    }

    .tool-rating-panel {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .tool-rating-buttons {
        justify-content: space-between;
    }

    .tool-rating-buttons button {
        width: 44px;
        height: 44px;
    }
}

