* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    min-height: 100vh;
}

.site-header {
    position: relative;
}

.compact-header {
    margin-bottom: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.brand-block {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #13315c;
    line-height: 1;
}

.brand-sub {
    margin-top: 4px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7a90;
}

.hero-copy {
    text-align: center;
}

.lang-switch {
    border: none;
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(31, 111, 235, 0.26);
}

.home-anchor {
    color: inherit;
    text-decoration: none;
}

.floating-result-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-feedback {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 192px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe7f3;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 14px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.floating-result-stack .floating-feedback {
    position: static;
}

.floating-feedback-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f6feb;
    margin-bottom: 10px;
}

.floating-feedback-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e5edf5;
    display: block;
    margin-bottom: 10px;
}

body.lang-en .floating-feedback-img {
    display: none;
}

.floating-feedback-text {
    font-size: 12px;
    color: #667085;
    line-height: 1.6;
    margin-bottom: 10px;
}

.floating-feedback-link {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 10px;
    background: #1f6feb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.more-tools-trigger {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(31, 111, 235, 0.24);
}

.more-tools-modal[hidden] {
    display: none;
}

.more-tools-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.more-tools-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(4px);
}

.more-tools-dialog {
    position: relative;
    width: min(400px, 100%);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dce7f5;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.more-tools-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    color: #fff;
}

.more-tools-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.more-tools-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.more-tools-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.more-tools-body {
    padding: 18px 18px 10px;
}

.more-tools-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 16px;
    text-decoration: none;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
    border: 1px solid #d8e7fb;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 10px 24px rgba(15, 23, 42, 0.06);
}

.more-tools-card-badge {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1f6feb, #38bdf8);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(31, 111, 235, 0.18);
}

.more-tools-card-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.more-tools-card strong {
    color: #1f2937;
    font-size: 18px;
    line-height: 1.3;
}

.more-tools-card-copy > span {
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
}

.more-tools-domain {
    color: #36527a !important;
    font-size: 12px !important;
    font-weight: 700;
}

.more-tools-card em {
    color: #1f6feb;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
}

.more-tools-foot {
    margin: 0;
    padding: 6px 18px 18px;
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.subtitle {
    color: #667085;
    font-size: 15px;
    line-height: 1.8;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

.hero-note {
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    border: 1px solid #d9ebff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.hero-note-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f6feb;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hero-note p {
    font-size: 14px;
    color: #475467;
    line-height: 1.8;
}

.status-bar {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-online .dot {
    background: #4caf50;
}

.status-offline {
    background: #fff3e0;
    color: #e65100;
}

.status-offline .dot {
    background: #ff9800;
}

.upload-area {
    border: 2px dashed #c0c4cc;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #409eff;
    background: #ecf5ff;
}

.upload-icon {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #1f6feb;
}

.upload-area p {
    color: #606266;
    margin: 4px 0;
}

.link {
    color: #409eff;
    cursor: pointer;
    text-decoration: underline;
}

.hint {
    font-size: 12px;
    color: #909399;
    margin-top: 8px;
}

.upload-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 16px;
}

.upload-option-card,
.watermark-option-card {
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8edf5;
}

.upload-option-card {
    margin: 0;
}

.watermark-option-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.watermark-option-copy {
    min-width: 0;
}

.watermark-option-title {
    font-size: 14px;
    color: #344054;
    font-weight: 600;
    line-height: 1.5;
}

.watermark-option-helper {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.6;
    color: #98a2b3;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-slider {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #cfd8e3;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    transition: background .2s ease;
}

.toggle-slider::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    transition: transform .2s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 3px solid rgba(31, 111, 235, 0.16);
    outline-offset: 3px;
}

.watermark-preview-details {
    margin-top: 8px;
}

.watermark-preview-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.watermark-preview-summary::-webkit-details-marker {
    display: none;
}

.watermark-preview-summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #eef4fb;
    color: #1f6feb;
    font-size: 12px;
    font-weight: 700;
}

.watermark-preview-details[open] .watermark-preview-summary::after {
    content: "-";
}

.watermark-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.watermark-preview-card {
    margin: 0;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
}

.watermark-preview-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #475467;
    text-align: center;
}

.watermark-preview-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #dde6ef;
    background: #f5f7fb;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e4e7ed;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #409eff, #67c23a);
    border-radius: 4px;
    transition: width .3s;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #606266;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    margin-top: 20px;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.query-code {
    font-size: 32px;
    font-weight: bold;
    color: #409eff;
    letter-spacing: 3px;
    padding: 16px;
    background: #f0f7ff;
    border-radius: 8px;
    margin: 16px 0;
    user-select: all;
    font-family: 'Consolas', 'Courier New', monospace;
}

.result-link {
    color: #409eff;
    word-break: break-all;
    font-size: 14px;
}

.how-it-works {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.how-it-works h2 {
    font-size: 22px;
    color: #303133;
    margin-bottom: 10px;
    text-align: center;
}

.how-intro {
    font-size: 15px;
    color: #606266;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.8;
}

.how-intro strong {
    color: #409eff;
}

.explain-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.explain-grid-final {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explain-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e8ecf1;
}

.explain-card-highlight {
    border: 2px solid #67c23a;
    background: #f0f9eb;
}

.demo-label {
    font-size: 13px;
    font-weight: 600;
    color: #409eff;
    margin-bottom: 8px;
    text-align: center;
}

.demo-label-gray {
    color: #909399;
}

.explain-card-highlight .demo-label {
    color: #67c23a;
}

.demo-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e4e7ed;
    display: block;
}

.demo-desc {
    font-size: 13px;
    color: #667085;
    text-align: center;
    margin-top: 8px;
    line-height: 1.7;
}

.flow-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 18px;
    color: #1f6feb;
    font-size: 14px;
    font-weight: 700;
}

.flow-plus,
.flow-arrow {
    color: #98a2b3;
}

.output-note {
    background: #fafafa;
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 3px solid #409eff;
}

.output-note p {
    font-size: 13px;
    color: #606266;
    margin: 0 0 4px;
    line-height: 1.7;
}

.note-detail {
    font-size: 12px !important;
    color: #909399 !important;
    padding-left: 4px;
}

.query-section {
    text-align: center;
}

.query-section-inline {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
    border: 1px solid #e5edf5;
    border-radius: 18px;
    padding: 24px 20px;
    margin: 22px auto 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.query-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #303133;
}

.query-form {
    display: flex;
    gap: 8px;
    max-width: 360px;
    margin: 0 auto;
}

.query-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 1px;
}

.query-form input:focus {
    border-color: #409eff;
}

.query-form button {
    padding: 10px 24px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
}

.query-form button:hover {
    background: #3a8ee6;
}

.faq-section {
    margin-top: 12px;
    background:
        radial-gradient(circle at top left, rgba(64, 158, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6eef7;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.home-donation-hint {
    margin: 16px auto 0;
    max-width: 760px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    color: #7b8798;
}

.faq-section h2 {
    font-size: 28px;
    color: #1f2937;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.faq-intro {
    text-align: center;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 auto 20px;
    max-width: 760px;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e6ecf4;
    border-radius: 18px;
    padding: 0 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.faq-item[open] {
    border-color: #bfdcff;
    box-shadow: 0 14px 28px rgba(64, 158, 255, 0.12);
}

.faq-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: block;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    padding: 18px 28px 18px 4px;
    position: relative;
    line-height: 1.6;
    border-radius: 12px;
    transition: background .18s ease, color .18s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: rgba(64, 158, 255, 0.06);
}

.faq-item summary:active {
    background: rgba(64, 158, 255, 0.1);
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef6ff;
    color: #409eff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "-";
    background: #409eff;
    color: #fff;
}

.faq-item p {
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding: 0 4px 18px;
}

@media (max-width: 900px) {
    .faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .query-section-inline {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .faq-section {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .faq-section h2 {
        font-size: 24px;
    }
}

.status-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    border-left: 4px solid #f0ad4e;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.status-icon {
    font-size: 32px;
}

.status-text {
    font-size: 22px;
    font-weight: bold;
}

.task-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f2f6fc;
}

.detail-row .label {
    color: #909399;
    font-size: 14px;
}

.detail-row .value {
    color: #303133;
    font-size: 14px;
    font-weight: 500;
}

.download-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 40px;
    background: #67c23a;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background .2s;
}

.download-btn:hover {
    background: #5daf34;
}

.result-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    align-items: start;
}

.result-mode-note {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4f9ff;
    border: 1px solid #d8e8fb;
    color: #516273;
    font-size: 13px;
    line-height: 1.7;
}

.result-action-block {
    min-width: 0;
}

#download-section .download-btn {
    margin-top: 0;
}

#download-section .hint {
    margin-top: 12px;
}

.error-msg {
    margin-top: 20px;
    padding: 14px;
    background: #fef0f0;
    border-radius: 8px;
    color: #f56c6c;
    font-size: 14px;
}

.result-tip {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e6edf5;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

.error-card {
    border-left-color: #d9534f;
    text-align: center;
}

.back-home-row {
    text-align: center;
    margin-top: 20px;
}

.feedback-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e1ebf5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.feedback-card-head h2 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 8px;
}

.feedback-card-head p {
    font-size: 14px;
    color: #667085;
    line-height: 1.7;
}

.feedback-form {
    margin-top: 18px;
}

.rating-group {
    margin-bottom: 16px;
}

.feedback-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #344054;
}

.star-rating {
    max-width: 320px;
}

.star-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-button {
    border: none;
    background: transparent;
    color: #d5dbe5;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.15s ease, transform 0.15s ease, text-shadow 0.15s ease;
}

.star-button:hover {
    color: #fbbf24;
    transform: translateY(-1px);
    text-shadow: 0 4px 10px rgba(245, 158, 11, 0.18);
}

.star-button.active {
    color: #f59e0b;
    text-shadow: 0 6px 14px rgba(245, 158, 11, 0.22);
}

.star-button:focus-visible {
    outline: 2px solid rgba(31, 111, 235, 0.32);
    outline-offset: 4px;
    border-radius: 6px;
}

.star-button:disabled {
    cursor: default;
    transform: none;
    text-shadow: none;
}

.rating-value {
    margin-top: 10px;
    font-size: 14px;
    color: #98a2b3;
}

.rating-value.selected {
    color: #1d4ed8;
    font-weight: 600;
}

.feedback-textarea {
    width: 100%;
    min-height: 112px;
    padding: 12px 14px;
    border: 1px solid #d0d9e5;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    background: #fff;
}

.feedback-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d0d9e5;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.feedback-textarea:focus {
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.feedback-input:focus {
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.feedback-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.feedback-submit {
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(31, 111, 235, 0.22);
}

.feedback-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.feedback-status {
    font-size: 13px;
    color: #667085;
}

.feedback-status.error {
    color: #d92d20;
}

.feedback-success {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #ecfdf3;
    border: 1px solid #ccebd7;
}

.feedback-success strong {
    display: block;
    color: #027a48;
    margin-bottom: 6px;
}

.feedback-success p {
    color: #067647;
    font-size: 14px;
    line-height: 1.7;
}

.donation-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #e1ebf5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.donation-card-head h2 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 8px;
}

.donation-card-head p {
    font-size: 14px;
    color: #667085;
    line-height: 1.7;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.donation-method {
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e1ebf5;
    text-align: center;
}

.donation-qr-shell {
    width: min(100%, 260px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #dbe7f3;
    background: #fff;
}

.donation-qr {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.donation-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #344054;
}

.back-link {
    display: inline-block;
    margin-top: 16px;
    color: #409eff;
}

.admin-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-feedback-block {
    margin-top: 20px;
}

.admin-gate-card {
    max-width: 560px;
    margin: 48px auto 0;
    padding: 28px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.admin-gate-copy h2 {
    margin: 0 0 10px;
}

.admin-gate-copy p {
    margin: 0;
    color: #667085;
    line-height: 1.7;
}

.admin-gate-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    margin-top: 18px;
}

.admin-gate-form input,
.admin-gate-form button {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    font-size: 14px;
}

.admin-gate-form button {
    background: #1f6feb;
    color: #fff;
    border: none;
    cursor: pointer;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d8e2f0;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.admin-tab.is-active {
    background: #1f6feb;
    color: #fff;
    border-color: #1f6feb;
}

.admin-panel {
    margin-top: 8px;
}

.admin-section-head {
    margin-bottom: 12px;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: 180px minmax(220px, 1fr) 140px;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-toolbar-tasks {
    grid-template-columns: 180px 120px minmax(220px, 1fr) 140px;
}

.admin-toolbar-summary {
    grid-template-columns: repeat(2, minmax(180px, 220px)) minmax(240px, 1fr);
}

.admin-toolbar-feedback {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.admin-toolbar-feedback .admin-field-wide {
    grid-column: span 2;
}

.feedback-filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.feedback-filter-actions button {
    width: auto;
    min-width: 104px;
}

.feedback-secondary-btn {
    background: #fff !important;
    color: #344054 !important;
    border: 1px solid #dcdfe6 !important;
}

.feedback-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.feedback-summary-card {
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    border: 1px solid #d8e8ff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.feedback-summary-label {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feedback-summary-value {
    display: block;
    color: #1f6feb;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
}

.feedback-top-issues-card {
    margin-bottom: 16px;
}

.feedback-chip-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feedback-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d8e2f0;
    color: #344054;
}

.feedback-chip strong {
    color: #1f6feb;
}

.feedback-source-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: #eef4ff;
    color: #36527a;
    border: 1px solid #d9e6ff;
}

.feedback-source-review {
    background: #eefdf3;
    color: #067647;
    border-color: #ccebd7;
}

.feedback-source-result {
    background: #f8fbff;
    color: #1f6feb;
    border-color: #d8e8ff;
}

.admin-feedback-table {
    min-width: 1480px;
}

.admin-toolbar input,
.admin-toolbar select,
.admin-toolbar button {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    font-size: 14px;
}

.admin-toolbar button {
    background: #1f6feb;
    color: #fff;
    border: none;
    cursor: pointer;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-field span {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.summary-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.summary-quick-actions button {
    width: auto;
    flex: 0 0 auto;
}

.summary-quick-btn {
    background: #fff !important;
    color: #344054 !important;
    border: 1px solid #dcdfe6 !important;
    min-width: 88px;
}

.summary-quick-btn.is-active {
    background: #e8f0fe !important;
    color: #1d4ed8 !important;
    border-color: #a9c6ff !important;
}

.admin-visitor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.admin-toolbar button:disabled,
.admin-gate-form button:disabled,
.admin-pagination button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-message {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.admin-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.admin-message.error {
    background: #fef0f0;
    color: #d32f2f;
}

.admin-table-wrap {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1120px;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.admin-table th {
    color: #667085;
    background: #f8fafc;
    font-weight: 600;
}

.empty-cell {
    text-align: center;
    color: #98a2b3;
    padding: 28px 12px;
}

.mono-cell {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
}

.file-cell {
    font-weight: 600;
    margin-bottom: 6px;
    word-break: break-word;
}

.muted-row {
    color: #98a2b3;
    font-size: 12px;
    word-break: break-word;
}

.actions-cell {
    white-space: nowrap;
}

.table-btn,
.table-link {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: #e8f0fe;
    color: #1d4ed8;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
}

.table-btn.danger {
    background: #fde8e8;
    color: #c62828;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-queued {
    background: #fff4e5;
    color: #b26a00;
}

.status-processing {
    background: #e8f1ff;
    color: #1f6feb;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-failed,
.status-expired {
    background: #fef0f0;
    color: #d32f2f;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.admin-pagination button {
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    cursor: pointer;
}

.summary-total-card {
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    border: 1px solid #d8e8ff;
}

.summary-total-value {
    margin-top: 8px;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    color: #1f6feb;
}

#summary-days-block {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .container {
        padding: 28px 16px 40px;
    }

    .explain-grid,
    .explain-grid-final,
    .admin-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-gate-form,
    .admin-toolbar-summary,
    .admin-toolbar-feedback,
    .feedback-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-toolbar-feedback .admin-field-wide {
        grid-column: auto;
    }

    .summary-quick-actions {
        align-items: stretch;
    }

    .summary-quick-actions button {
        width: 100%;
    }

    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-filter-actions {
        width: 100%;
    }

    .feedback-filter-actions button {
        width: 100%;
    }

    .floating-result-stack {
        right: 8px;
        bottom: 12px;
        gap: 10px;
    }

    .floating-feedback {
        right: 8px;
        bottom: 12px;
        width: 92px;
        padding: 8px;
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    }

    .floating-feedback-title,
    .floating-feedback-text {
        display: none;
    }

    .floating-feedback-img {
        display: none;
    }

    .floating-feedback-link {
        padding: 6px 4px;
        font-size: 11px;
        border-radius: 8px;
        line-height: 1.25;
    }

    body.lang-zh .floating-feedback {
        width: 112px;
    }

    body.lang-en .floating-feedback {
        width: 138px;
        padding: 10px;
    }

    body.lang-en .floating-feedback-link {
        font-size: 12px;
    }

    .more-tools-trigger {
        padding: 8px 12px;
        font-size: 12px;
    }

    .topbar {
        flex-direction: column;
        align-items: center;
    }

    .brand-block {
        align-items: center;
    }

    .feedback-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .result-action-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .donation-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .upload-option-grid {
        grid-template-columns: 1fr;
    }

    .upload-option-card,
    .watermark-option-card {
        padding: 12px;
    }

    .watermark-option-head {
        align-items: flex-start;
    }

    .watermark-preview-grid {
        grid-template-columns: 1fr;
    }

    .feedback-card-head h2 {
        font-size: 18px;
    }

    .donation-card-head h2 {
        font-size: 18px;
    }

    .star-button {
        font-size: 34px;
    }

    .donation-grid {
        grid-template-columns: 1fr;
    }

    .more-tools-modal {
        padding: 16px;
    }

    .more-tools-dialog {
        width: min(360px, 100%);
        border-radius: 20px;
    }

    .more-tools-head {
        padding: 18px 18px 14px;
    }

    .more-tools-head h2 {
        font-size: 24px;
    }

    .more-tools-body,
    .more-tools-foot {
        padding-inline: 18px;
    }

    .more-tools-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .more-tools-card-copy > span,
    .more-tools-card em {
        text-align: center;
    }
}

/* Blog */

.blog-container {
    max-width: 780px;
}

.blog-breadcrumb {
    font-size: 13px;
    color: #98a2b3;
    margin-bottom: 24px;
}

.blog-breadcrumb a {
    color: #667085;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #409eff;
}

.blog-breadcrumb .sep {
    margin: 0 6px;
}

.blog-article h1 {
    font-size: 28px;
    color: #1a1a2e;
    line-height: 1.5;
    margin-bottom: 8px;
}

.blog-meta {
    font-size: 13px;
    color: #98a2b3;
    margin-bottom: 28px;
}

.blog-article h2 {
    font-size: 22px;
    color: #303133;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ecf1;
}

.blog-article h3 {
    font-size: 18px;
    color: #303133;
    margin: 24px 0 10px;
}

.blog-article p {
    font-size: 15px;
    color: #475467;
    line-height: 1.9;
    margin-bottom: 14px;
}

.blog-article ul,
.blog-article ol {
    margin: 0 0 14px 20px;
    color: #475467;
    font-size: 15px;
    line-height: 1.9;
}

.blog-article li {
    margin-bottom: 4px;
}

.blog-article strong {
    color: #303133;
}

.blog-article a {
    color: #409eff;
}

.blog-article figure {
    margin: 18px auto 22px;
}

.blog-article figure img {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid #e4e7ed;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.blog-article figure figcaption {
    max-width: 680px;
    margin: 8px auto 0;
    text-align: center;
    font-size: 13px;
    color: #667085;
    line-height: 1.7;
}

.blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 14px;
}

.blog-article th,
.blog-article td {
    padding: 10px 12px;
    border: 1px solid #e8ecf1;
    text-align: left;
}

.blog-article th {
    background: #f8fafc;
    color: #303133;
    font-weight: 600;
}

.blog-article td {
    color: #475467;
}

.blog-demo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0 20px;
}

.blog-demo-pair figure {
    margin: 0;
}

.blog-demo-pair img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e4e7ed;
}

.blog-demo-pair figcaption {
    text-align: center;
    font-size: 13px;
    color: #667085;
    margin-top: 6px;
}

.blog-related {
    margin-top: 32px;
    padding: 20px 24px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #f8fafc;
}

.blog-related h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.blog-related ul {
    margin: 0;
    padding-left: 20px;
}

.blog-related li + li {
    margin-top: 8px;
}

.blog-cta {
    text-align: center;
    margin: 36px 0 20px;
    padding: 28px 20px;
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    border: 1px solid #d9ebff;
    border-radius: 16px;
}

.blog-cta p {
    font-size: 15px;
    color: #475467;
    margin-bottom: 16px;
}

.blog-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(31, 111, 235, 0.25);
    transition: transform .15s, box-shadow .15s;
}

.blog-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(31, 111, 235, 0.35);
}

.blog-list-hero {
    margin-bottom: 28px;
}

.blog-list-hero h1 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.blog-list-hero p {
    font-size: 15px;
    color: #667085;
    line-height: 1.8;
    margin: 0;
}

.blog-list-grid {
    display: grid;
    gap: 16px;
}

.blog-list-card {
    padding: 22px 24px;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.blog-list-date {
    font-size: 13px;
    color: #98a2b3;
    margin-bottom: 8px;
}

.blog-list-card h2 {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.blog-list-card h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.blog-list-card h2 a:hover {
    color: #1f6feb;
}

.blog-list-desc {
    font-size: 15px;
    color: #475467;
    line-height: 1.8;
    margin-bottom: 14px;
}

.blog-list-readmore {
    color: #1f6feb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.blog-list-empty {
    font-size: 15px;
    color: #667085;
}

.trust-container {
    max-width: 820px;
}

.trust-hero {
    margin-bottom: 28px;
    padding: 28px 30px;
    border: 1px solid #d9ebff;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.trust-eyebrow {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1f6feb;
}

.trust-hero h1 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.trust-intro {
    font-size: 15px;
    line-height: 1.9;
    color: #475467;
    margin-bottom: 12px;
}

.trust-updated {
    font-size: 13px;
    color: #98a2b3;
}

.trust-article {
    padding: 28px 30px;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.trust-section + .trust-section {
    margin-top: 28px;
}

.trust-article h2:first-child {
    margin-top: 0;
}

.content-en {
    display: none;
}

body.lang-en .content-zh {
    display: none !important;
}

body.lang-en .content-en {
    display: block !important;
}

@media (max-width: 640px) {
    .blog-demo-pair {
        grid-template-columns: 1fr;
    }

    .blog-article h1 {
        font-size: 24px;
    }

    .trust-hero,
    .trust-article {
        padding: 22px 18px;
    }

    .trust-hero h1 {
        font-size: 25px;
    }
}

.upload-shell {
    margin: 18px 0 20px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #d8e2f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.upload-mode-head {
    margin-bottom: 16px;
}

.upload-mode-tabs {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f4f8fd 0%, #eaf1fb 100%);
    border: 1px solid #d7e2ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.upload-mode-tab {
    position: relative;
    min-width: 128px;
    border: none;
    background: transparent;
    color: #5b6b81;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.upload-mode-tab:hover {
    color: #1f6feb;
}

.upload-mode-tab.active {
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 111, 235, 0.2);
}

.upload-mode-helper {
    margin: 12px 4px 0;
    font-size: 13px;
    line-height: 1.7;
    color: #5f6c7b;
}

.upload-shell .upload-area {
    margin-top: 0;
}

@media (max-width: 640px) {
    .upload-shell {
        padding: 14px;
        border-radius: 16px;
    }

    .upload-mode-tabs {
        width: 100%;
        display: flex;
    }

    .upload-mode-tab {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 12px;
    }

    .upload-mode-helper {
        margin-inline: 0;
    }
}

.manual-adjust-entry {
    margin-top: 0;
}

.manual-adjust-panel {
    display: block;
}

.manual-adjust-title {
    margin: 0;
    font-size: 13px;
    color: #9a3412;
}

.manual-adjust-body {
    margin: 12px 0 0;
    color: #92400e;
    line-height: 1.6;
    font-size: 13px;
}

.manual-adjust-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    background: #ea580c;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.22);
}

.manual-adjust-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.manual-adjust-status {
    margin-top: 8px;
    font-size: 13px;
    color: #92400e;
    min-height: 1.4em;
}

.manual-adjust-status.error {
    color: #b91c1c;
}

body.lang-en .zh-only {
    display: none !important;
}

.review-workbench-shell .review-topbar,
.review-workbench-shell .review-toolbar,
.review-workbench-shell .review-sidebar,
.review-workbench-shell .review-stage {
    box-shadow: none;
}

.review-workbench-shell .review-placeholder {
    gap: 20px;
}

.review-shell-card {
    width: 100%;
    display: grid;
    gap: 16px;
}

.review-shell-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.review-shell-copy {
    max-width: 760px;
}

.review-shell-kicker {
    margin-bottom: 6px;
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.review-shell-title {
    font-size: 22px;
    margin-bottom: 6px;
    color: #f8fafc;
}

.review-shell-text {
    color: #cbd5e1;
    line-height: 1.7;
}

.review-shell-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.review-shell-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
    font-size: 12px;
}

.review-shell-stage {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.7);
    overflow: hidden;
}

.review-shell-image {
    width: 100%;
    display: block;
    object-fit: contain;
    background: rgba(2, 6, 23, 0.82);
}

.review-shell-image-stack {
    position: relative;
    min-height: 280px;
}

.review-shell-image-stack .review-shell-image {
    position: absolute;
    inset: 0;
}

.review-shell-image-stack .review-shell-image.base {
    position: relative;
}

.review-shell-empty {
    padding: 24px;
    color: #cbd5e1;
    line-height: 1.7;
}

.review-shell-layerbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-shell-layerbtn {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.82);
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
}

.review-shell-layerbtn.active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.review-shell-layerbtn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.review-shell-page-count {
    color: #cbd5e1;
    font-size: 13px;
}

.review-page-item {
    text-align: left;
    width: 100%;
}

.review-page-item.active {
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.review-page-label {
    margin: 0 0 6px;
    font-weight: 700;
    color: #e2e8f0;
}

.review-page-thumb-image {
    width: 100%;
    display: block;
    border-radius: 12px;
    margin-bottom: 10px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.review-button.active {
    background: #f97316;
    color: #fff;
}

.review-toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.review-toolbar-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#review-save-status[data-tone="pending"] {
    color: #fbbf24;
}

#review-save-status[data-tone="saved"] {
    color: #86efac;
}

#review-save-status[data-tone="error"] {
    color: #fca5a5;
}

.review-editor-stage {
    position: relative;
}

.review-editor-overlay {
    position: absolute;
    inset: 0;
    cursor: crosshair;
}

.review-editor-box {
    position: absolute;
    border: 2px solid rgba(251, 191, 36, 0.92);
    background: rgba(251, 191, 36, 0.12);
    color: #f8fafc;
    display: block;
    padding: 0;
    cursor: move;
}

.review-editor-box.selected {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.22);
}

.review-editor-box-label {
    position: absolute;
    top: -24px;
    left: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff7ed;
    font-size: 11px;
    white-space: nowrap;
}

.review-editor-handle {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #f97316;
    border: 2px solid #fff7ed;
    cursor: nwse-resize;
}

.review-editor-drawhint {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(251, 191, 36, 0.38);
    pointer-events: none;
}

/* Review workbench shell */
body.review-workbench-shell.review-workbench-page {
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 207, 119, 0.34), transparent 20%),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 58%, #edf4fb 100%);
    color: #1f2937;
}

body.review-workbench-shell.review-workbench-page .review-workbench {
    height: 100dvh;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(292px, 332px) minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    max-width: 1720px;
    margin: 0 auto;
    overflow: hidden;
}

body.review-workbench-shell.review-workbench-page .review-sidebar,
body.review-workbench-shell.review-workbench-page .review-stage {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

body.review-workbench-shell.review-workbench-page .review-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 28px;
    padding: 20px;
    overflow: hidden;
}

body.review-workbench-shell.review-workbench-page .review-sidebar-head {
    display: grid;
    gap: 16px;
}

body.review-workbench-shell.review-workbench-page .review-brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.review-workbench-shell.review-workbench-page .review-brand-block {
    gap: 2px;
}

body.review-workbench-shell.review-workbench-page .review-brand-block .brand-title {
    font-size: 30px;
}

body.review-workbench-shell.review-workbench-page .review-brand-block .brand-sub {
    color: #5e718d;
}

body.review-workbench-shell.review-workbench-page .review-sidebar-intro {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 255, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 12px 26px rgba(15, 23, 42, 0.06);
}

body.review-workbench-shell.review-workbench-page .review-sidebar-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(31, 111, 235, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.09), transparent 34%);
}

body.review-workbench-shell.review-workbench-page .review-sidebar-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #44607c;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

body.review-workbench-shell.review-workbench-page .review-sidebar-chip code {
    font-size: 12px;
    font-weight: 800;
    color: #1f6feb;
    background: transparent;
}

body.review-workbench-shell.review-workbench-page .review-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: #10203a;
}

body.review-workbench-shell.review-workbench-page .review-subtitle {
    margin: 6px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

body.review-workbench-shell.review-workbench-page .review-sidebar-intro > .review-title,
body.review-workbench-shell.review-workbench-page .review-sidebar-intro > .review-subtitle {
    position: relative;
    z-index: 1;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(6px);
}

body.review-workbench-shell.review-workbench-page .review-onboarding-modal[hidden] {
    display: none;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-dialog {
    position: relative;
    width: min(520px, 100%);
    display: grid;
    gap: 14px;
    padding: 26px 24px 22px;
    border-radius: 24px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    background:
        radial-gradient(circle at top right, rgba(31, 111, 235, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2);
}

body.review-workbench-shell.review-workbench-page .review-onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-title {
    padding-right: 40px;
    color: #10203a;
    font-size: 18px;
    line-height: 1.5;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-intro {
    margin: -2px 0 0;
    color: #344054;
    font-size: 13px;
    line-height: 1.75;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid #d8e2f0;
    border-radius: 999px;
    background: #fff;
    color: #46607f;
    cursor: pointer;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-close::before,
body.review-workbench-shell.review-workbench-page .review-onboarding-close::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 9px;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-close::before {
    transform: rotate(45deg);
}

body.review-workbench-shell.review-workbench-page .review-onboarding-close::after {
    transform: rotate(-45deg);
}

body.review-workbench-shell.review-workbench-page .review-onboarding-close:hover {
    background: #f8fbff;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-steps {
    margin: 0;
    padding-left: 18px;
    color: #475467;
    font-size: 12px;
    line-height: 1.7;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-steps li + li {
    margin-top: 6px;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-optout-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

body.review-workbench-shell.review-workbench-page .review-onboarding-optout-row input {
    width: 16px;
    height: 16px;
}

body.review-workbench-shell.review-workbench-page .review-page-list {
    display: grid;
    flex: 1 1 auto;
    gap: 12px;
    margin-top: 18px;
    overflow: auto;
    overscroll-behavior: contain;
    min-height: 0;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

body.review-workbench-shell.review-workbench-page .review-page-item {
    position: relative;
    border-radius: 20px;
    border: 1px solid #e4ebf5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 13px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

body.review-workbench-shell.review-workbench-page .review-page-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

body.review-workbench-shell.review-workbench-page .review-page-item.active {
    border-color: #a9c6ff;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow: 0 0 0 1px rgba(31, 111, 235, 0.18), 0 18px 34px rgba(31, 111, 235, 0.1);
}

body.review-workbench-shell.review-workbench-page .review-page-item-placeholder {
    border-style: dashed;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 251, 255, 0.92) 100%);
}

body.review-workbench-shell.review-workbench-page .review-page-placeholder-title {
    margin: 0 0 6px;
    color: #334155;
    font-weight: 700;
    line-height: 1.5;
}

body.review-workbench-shell.review-workbench-page .review-page-placeholder-meta {
    color: #94a3b8;
    line-height: 1.6;
}

body.review-workbench-shell.review-workbench-page .review-page-label {
    margin: 0;
    font-weight: 700;
    color: #10203a;
}

body.review-workbench-shell.review-workbench-page .review-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
}

body.review-workbench-shell.review-workbench-page .review-page-heading-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.review-workbench-shell.review-workbench-page .review-page-preview-tag {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #355070;
    background: #eef4ff;
    border: 1px solid #d8e2f0;
}

body.review-workbench-shell.review-workbench-page .review-page-badge {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

body.review-workbench-shell.review-workbench-page .review-page-badge.pending {
    background: #b91c1c;
    box-shadow: 0 0 0 3px #ffe3e3;
}

body.review-workbench-shell.review-workbench-page .review-page-badge.synced {
    background: #15803d;
    box-shadow: 0 0 0 3px #e7f8ec;
}

body.review-workbench-shell.review-workbench-page .review-page-thumb-image {
    border: 1px solid #e5edf6;
    background: #f8fbff;
    transform: translateZ(0);
    backface-visibility: hidden;
}

body.review-workbench-shell.review-workbench-page .review-stage {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    border-radius: 28px;
    overflow: hidden;
}

body.review-workbench-shell.review-workbench-page .review-topbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px 0;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.94);
}

body.review-workbench-shell.review-workbench-page .review-topbar-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-right: 320px;
}

body.review-workbench-shell.review-workbench-page .review-topbar .review-subtitle {
    margin: 2px 0 0;
}

body.review-workbench-shell.review-workbench-page .review-topbar-actions {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

body.review-workbench-shell.review-workbench-page .review-export-quality-hint {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #dce7f5;
    background: #f8fbff;
    color: #52637a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body.review-workbench-shell.review-workbench-page .review-export-quality-hint[hidden] {
    display: none;
}

body.review-workbench-shell.review-workbench-page .review-feedback-panel {
    position: absolute;
    top: 88px;
    left: 14px;
    right: 14px;
    z-index: 6;
    max-height: min(420px, calc(100% - 120px));
    overflow: auto;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid #dce7f5;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    display: grid;
    gap: 14px;
}

body.review-workbench-shell.review-workbench-page .review-feedback-panel[hidden] {
    display: none;
}

body.review-workbench-shell.review-workbench-page .review-feedback-head {
    display: grid;
    gap: 4px;
}

body.review-workbench-shell.review-workbench-page .review-feedback-head strong {
    color: #10203a;
    font-size: 16px;
}

body.review-workbench-shell.review-workbench-page .review-feedback-head p {
    margin: 0;
    color: #52637a;
    line-height: 1.6;
    font-size: 13px;
}

body.review-workbench-shell.review-workbench-page .review-feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.review-workbench-shell.review-workbench-page .review-feedback-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

body.review-workbench-shell.review-workbench-page .review-feedback-field-wide {
    grid-column: 1 / -1;
}

body.review-workbench-shell.review-workbench-page .review-feedback-field select,
body.review-workbench-shell.review-workbench-page .review-feedback-input,
body.review-workbench-shell.review-workbench-page .review-feedback-textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid #d8e2f0;
    background: #fff;
    padding: 11px 13px;
    color: #10203a;
    font: inherit;
}

body.review-workbench-shell.review-workbench-page .review-feedback-textarea {
    min-height: 108px;
    resize: vertical;
    line-height: 1.6;
}

body.review-workbench-shell.review-workbench-page .review-feedback-field select:focus,
body.review-workbench-shell.review-workbench-page .review-feedback-input:focus,
body.review-workbench-shell.review-workbench-page .review-feedback-textarea:focus {
    outline: 2px solid rgba(31, 111, 235, 0.18);
    outline-offset: 2px;
    border-color: #1f6feb;
}

body.review-workbench-shell.review-workbench-page .review-feedback-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.review-workbench-shell.review-workbench-page .review-feedback-status {
    margin: 0;
    min-height: 1.4em;
    color: #5f6f86;
    font-size: 13px;
    line-height: 1.5;
}

body.review-workbench-shell.review-workbench-page .review-feedback-status.success {
    color: #067647;
}

body.review-workbench-shell.review-workbench-page .review-feedback-status.error {
    color: #b42318;
}

body.review-workbench-shell.review-workbench-page .review-stage .review-title,
body.review-workbench-shell.review-workbench-page .review-stage-title {
    font-size: 18px;
    margin: 0;
}

body.review-workbench-shell.review-workbench-page .review-placeholder {
    display: grid;
    align-content: start;
    justify-items: stretch;
    min-height: 0;
    overflow: hidden;
    padding: 0 14px 6px;
    color: #475467;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(31, 111, 235, 0.06), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.review-workbench-shell.review-workbench-page .review-placeholder strong {
    display: block;
    color: #10203a;
    font-size: 18px;
    margin-bottom: 8px;
}

body.review-workbench-shell.review-workbench-page .review-shell-card {
    width: 100%;
    display: grid;
    grid-template-rows: auto auto;
    gap: 6px;
    align-content: start;
}

body.review-workbench-shell.review-workbench-page .review-shell-chrome {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: flex-start;
    flex-wrap: wrap;
}

body.review-workbench-shell.review-workbench-page .review-shell-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

body.review-workbench-shell.review-workbench-page .review-shell-pill {
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4ff;
    color: #36527a;
    font-size: 12px;
    border: 1px solid #d9e6ff;
}

body.review-workbench-shell.review-workbench-page .review-shell-stage {
    width: 100%;
    min-height: 0;
    border-radius: 24px;
    border: 1px solid #e1ebf7;
    background:
        radial-gradient(circle at top, rgba(31, 111, 235, 0.05), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: grid;
    justify-items: center;
    align-items: start;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

body.review-workbench-shell.review-workbench-page .review-stage-viewport {
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    align-items: start;
    align-content: start;
    overflow: hidden;
    padding: 4px 10px 6px;
}

body.review-workbench-shell.review-workbench-page .review-stage-surface {
    position: relative;
    flex: 0 0 auto;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #f3f7fc;
    border: 1px solid rgba(219, 231, 243, 0.95);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

body.review-workbench-shell.review-workbench-page .review-shell-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #f3f7fc;
    transform: translateZ(0);
    backface-visibility: hidden;
}

body.review-workbench-shell.review-workbench-page .review-shell-image.overlay {
    background: transparent;
}

body.review-workbench-shell.review-workbench-page .review-shell-image-stack {
    position: relative;
}

body.review-workbench-shell.review-workbench-page .review-shell-image-stack .review-shell-image {
    position: absolute;
    inset: 0;
}

body.review-workbench-shell.review-workbench-page .review-shell-image-stack .review-shell-image.base {
    position: relative;
}

body.review-workbench-shell.review-workbench-page .review-shell-empty {
    display: grid;
    place-items: center;
    min-height: 280px;
    width: 100%;
    height: 100%;
    padding: 24px;
    color: #475467;
    line-height: 1.7;
}

body.review-workbench-shell.review-workbench-page .review-shell-layerbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.review-workbench-shell.review-workbench-page .review-shell-layerbtn,
body.review-workbench-shell.review-workbench-page .review-button {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

body.review-workbench-shell.review-workbench-page .review-shell-layerbtn:hover,
body.review-workbench-shell.review-workbench-page .review-button:hover {
    transform: translateY(-1px);
}

body.review-workbench-shell.review-workbench-page .review-shell-layerbtn {
    background: #ffffff;
    color: #344054;
    border-color: #d8e2f0;
}

body.review-workbench-shell.review-workbench-page .review-shell-layerbtn.active,
body.review-workbench-shell.review-workbench-page .review-button.active {
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(31, 111, 235, 0.2);
}

body.review-workbench-shell.review-workbench-page .review-shell-layerbtn:disabled,
body.review-workbench-shell.review-workbench-page .review-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.review-workbench-shell.review-workbench-page .review-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 20px 18px;
    border-top: 1px solid #e6edf6;
    background: rgba(255, 255, 255, 0.94);
}

body.review-workbench-shell.review-workbench-page .review-toolbar-left,
body.review-workbench-shell.review-workbench-page .review-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.review-workbench-shell.review-workbench-page .review-toolbar-actions,
body.review-workbench-shell.review-workbench-page .review-toolbar-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.review-workbench-shell.review-workbench-page .review-mode-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    border: 1px solid #d8e2f0;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 22px rgba(15, 23, 42, 0.06);
}

body.review-workbench-shell.review-workbench-page .review-mode-switch::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    bottom: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    box-shadow: 0 10px 18px rgba(31, 111, 235, 0.16);
    transition: transform .22s ease, box-shadow .22s ease, opacity .18s ease;
}

body.review-workbench-shell.review-workbench-page .review-mode-switch[data-mode="preview"]::before {
    transform: translateX(100%);
}

body.review-workbench-shell.review-workbench-page .review-mode-switch[data-busy="true"]::before {
    box-shadow: 0 8px 16px rgba(31, 111, 235, 0.14);
}

body.review-workbench-shell.review-workbench-page .review-mode-switch .review-mode-btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 116px;
    padding-inline: 20px;
    background: transparent;
    color: #46607f;
    border-radius: 999px;
    box-shadow: none;
    transition: color .22s ease, opacity .18s ease;
}

body.review-workbench-shell.review-workbench-page .review-mode-switch .review-mode-btn:hover {
    transform: none;
    background: transparent;
}

body.review-workbench-shell.review-workbench-page .review-mode-switch .review-mode-btn.active {
    background: transparent;
    box-shadow: none;
}

body.review-workbench-shell.review-workbench-page .review-mode-switch .review-mode-btn.active:hover {
    background: transparent;
}

body.review-workbench-shell.review-workbench-page .review-mode-switch[data-mode="edit"] #review-edit-btn,
body.review-workbench-shell.review-workbench-page .review-mode-switch[data-mode="preview"] #review-preview-btn {
    color: #fff;
}

body.review-workbench-shell.review-workbench-page .review-mode-switch[data-mode="edit"] #review-preview-btn,
body.review-workbench-shell.review-workbench-page .review-mode-switch[data-mode="preview"] #review-edit-btn {
    color: #46607f;
}

body.review-workbench-shell.review-workbench-page .review-button {
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 111, 235, 0.22);
}

body.review-workbench-shell.review-workbench-page .review-button.secondary {
    background: #fff;
    color: #344054;
    border-color: #d8e2f0;
    box-shadow: none;
}

body.review-workbench-shell.review-workbench-page .review-button.secondary:hover {
    background: #f8fbff;
}

body.review-workbench-shell.review-workbench-page #review-save-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d9e6f5;
    background: #f8fbff;
    color: #667085;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

body.review-workbench-shell.review-workbench-page #review-save-status code {
    color: #1f6feb;
    font-weight: 800;
    background: transparent;
}

body.review-workbench-shell.review-workbench-page #review-save-status[data-tone="pending"] {
    color: #b26a00;
}

body.review-workbench-shell.review-workbench-page #review-save-status[data-tone="saved"] {
    color: #067647;
}

body.review-workbench-shell.review-workbench-page #review-save-status[data-tone="error"] {
    color: #b42318;
}

body.review-workbench-shell.review-workbench-page .review-editor-stage {
    position: relative;
}

body.review-workbench-shell.review-workbench-page .review-editor-overlay {
    position: absolute;
    inset: 0;
    cursor: crosshair;
    touch-action: none;
}

body.review-workbench-shell.review-workbench-page .review-editor-box {
    position: absolute;
    border: 2px solid rgba(31, 111, 235, 0.9);
    background: rgba(31, 111, 235, 0.1);
    color: #10203a;
    display: block;
    padding: 0;
    cursor: move;
    user-select: none;
    touch-action: none;
}

body.review-workbench-shell.review-workbench-page .review-editor-box.selected {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

body.review-workbench-shell.review-workbench-page .review-editor-box-label {
    position: absolute;
    top: -24px;
    left: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff7ed;
    font-size: 11px;
    white-space: nowrap;
}

body.review-workbench-shell.review-workbench-page .review-editor-handle {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #f97316;
    border: 2px solid #fff7ed;
    cursor: nwse-resize;
}

body.review-workbench-shell.review-workbench-page .review-editor-drawhint {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(31, 111, 235, 0.28);
    pointer-events: none;
}

body.review-workbench-shell.review-workbench-page .review-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(248, 251, 255, 0.56);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

body.review-workbench-shell.review-workbench-page .review-processing-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.review-workbench-shell.review-workbench-page .review-processing-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(420px, 100%);
    padding: 26px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    text-align: center;
}

body.review-workbench-shell.review-workbench-page .review-processing-card strong {
    font-size: 20px;
    color: #10203a;
}

body.review-workbench-shell.review-workbench-page .review-processing-card p {
    margin: 0;
    color: #667085;
    line-height: 1.7;
}

body.review-workbench-shell.review-workbench-page .review-processing-progress-shell {
    display: none;
    width: min(260px, 100%);
    height: 10px;
    border-radius: 999px;
    background: #e7eef8;
    overflow: hidden;
}

body.review-workbench-shell.review-workbench-page .review-processing-progress-shell.is-visible {
    display: block;
}

body.review-workbench-shell.review-workbench-page .review-processing-progress {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f6feb, #0ea5e9);
    transition: width .2s ease;
}

body.review-workbench-shell.review-workbench-page .review-processing-progress-text {
    min-height: 1.4em;
    font-size: 13px;
    color: #36527a;
    font-weight: 600;
}

body.review-workbench-shell.review-workbench-page .review-processing-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #e5edf6;
    border-top-color: #1f6feb;
    animation: review-spin 0.9s linear infinite;
}

@keyframes review-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    body.review-workbench-shell.review-workbench-page .review-workbench {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(160px, 32vh) minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    body.review-workbench-shell.review-workbench-page .review-workbench {
        gap: 16px;
        padding: 14px;
    }

    body.review-workbench-shell.review-workbench-page .review-sidebar {
        min-height: 0;
    }

    body.review-workbench-shell.review-workbench-page .review-topbar,
    body.review-workbench-shell.review-workbench-page .review-toolbar {
        padding: 14px 16px;
    }

    body.review-workbench-shell.review-workbench-page .review-topbar {
        padding-bottom: 0;
    }

    body.review-workbench-shell.review-workbench-page .review-topbar-copy {
        padding-right: 280px;
    }

    body.review-workbench-shell.review-workbench-page .review-topbar-actions {
        top: 14px;
        right: 16px;
    }

    body.review-workbench-shell.review-workbench-page .review-feedback-panel {
        margin-inline: 10px;
    }
}

@media (max-width: 720px) {
    body.review-workbench-shell.review-workbench-page .review-workbench {
        padding: 12px;
        gap: 12px;
    }

    body.review-workbench-shell.review-workbench-page .review-sidebar,
    body.review-workbench-shell.review-workbench-page .review-stage {
        border-radius: 22px;
    }

    body.review-workbench-shell.review-workbench-page .review-brand-block .brand-title {
        font-size: 26px;
    }

    body.review-workbench-shell.review-workbench-page .review-sidebar-intro {
        padding: 14px 15px;
    }

    body.review-workbench-shell.review-workbench-page .review-mode-switch {
        width: 100%;
        justify-content: stretch;
    }

    body.review-workbench-shell.review-workbench-page .review-mode-switch .review-mode-btn {
        flex: 1 1 0;
        min-width: 0;
    }

    body.review-workbench-shell.review-workbench-page .review-topbar-copy {
        padding-right: 0;
    }

    body.review-workbench-shell.review-workbench-page .review-topbar-actions,
    body.review-workbench-shell.review-workbench-page .review-toolbar-right {
        position: static;
        width: 100%;
        justify-content: space-between;
    }

    body.review-workbench-shell.review-workbench-page .review-feedback-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.review-workbench-shell.review-workbench-page .review-feedback-actions {
        align-items: stretch;
    }

    body.review-workbench-shell.review-workbench-page .review-feedback-actions .review-button {
        width: 100%;
    }

    body.review-workbench-shell.review-workbench-page .review-toolbar-left {
        width: 100%;
    }

    body.review-workbench-shell.review-workbench-page .review-toolbar-actions {
        width: 100%;
    }

    body.review-workbench-shell.review-workbench-page .review-toolbar-actions .review-button {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    body.review-workbench-shell.review-workbench-page .review-toolbar-nav {
        flex: 1 1 auto;
    }
}
