.dksmt-page-main {
    min-height: 55vh;
    padding: 1px 0 44px;
    background:
        radial-gradient(circle at 21px 21px, rgba(85, 136, 245, .07) 0 2px, transparent 3px) 0 0 / 42px 42px,
        linear-gradient(#fff9ed 0%, #fffdf8 54%, #f5fbff 100%);
}

.dksmt-page-container {
    width: 100%;
}

.dksmt-shell {
    --dksmt-primary: #5588f5;
    --dksmt-primary-dark: #3764d2;
    --dksmt-ink: #292b4a;
    --dksmt-muted: #73758c;
    --dksmt-border: #e5dacb;
    --dksmt-soft: #f8f5ef;
    --dksmt-paper: #fffefb;
    --dksmt-yellow: #ffc94f;
    --dksmt-mint: #45caa4;
    --dksmt-success: #2e8a70;
    --dksmt-warning: #8a6310;
    --dksmt-danger: #d94f58;
    color: var(--dksmt-ink);
    font-family: Nunito, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.dksmt-shell *,
.dksmt-shell *::before,
.dksmt-shell *::after {
    box-sizing: border-box;
}

.dksmt-shell [hidden] {
    display: none !important;
}

.dksmt-hero {
    background:
        radial-gradient(circle at 72px 72px, rgba(255, 255, 255, .82) 0 4px, transparent 5px) 0 0 / 72px 72px,
        linear-gradient(135deg, #f4f7ff 0%, #eaf1ff 52%, #e0f8f0 100%);
    border: 3px solid var(--dksmt-ink);
    border-radius: 30px;
    box-shadow: 9px 10px 0 rgba(41, 43, 74, .11);
    color: var(--dksmt-ink);
    isolation: isolate;
    overflow: hidden;
    padding: 34px 42px 36px;
    position: relative;
    text-align: center;
}

.dksmt-hero::before,
.dksmt-hero::after {
    border-radius: 50%;
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.dksmt-hero::before {
    background: rgba(255, 201, 79, .46);
    height: 250px;
    left: -110px;
    top: -145px;
    width: 250px;
}

.dksmt-hero::after {
    background: rgba(137, 107, 232, .16);
    bottom: -155px;
    height: 260px;
    right: -80px;
    width: 260px;
}

.dksmt-hero h1 {
    color: inherit;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1.15;
    margin: 9px 0 12px;
}

.dksmt-hero p {
    color: #5f6279;
    font-size: 16px;
    font-weight: 720;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 720px;
}

.dksmt-eyebrow,
.dksmt-kicker {
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dksmt-kicker {
    color: var(--dksmt-primary-dark);
}

.dksmt-eyebrow {
    color: #275f50;
    background: #edfff8;
    border: 2px solid #68bca4;
    border-radius: 12px;
    box-shadow: 3px 4px 0 rgba(46, 138, 112, .12);
    display: inline-flex;
    letter-spacing: .03em;
    padding: 7px 11px;
}

.dksmt-panel,
.dksmt-gate-card {
    background: var(--dksmt-paper);
    border: 2px solid var(--dksmt-ink);
    border-radius: 22px 19px 24px 20px;
    box-shadow: 5px 6px 0 rgba(41, 43, 74, .09);
    margin-top: 22px;
    padding: 28px;
}

.dksmt-notice {
    align-items: flex-start;
    border: 2px solid;
    border-radius: 14px 17px 13px 18px;
    display: flex;
    gap: 10px;
    line-height: 1.6;
    margin-top: 16px;
    padding: 13px 16px;
}

.dksmt-notice strong {
    flex: none;
}

.dksmt-notice-warning {
    background: #fff5c8;
    border-color: #d4ad42;
    color: #76501a;
}

.dksmt-notice-error {
    background: #fff1f1;
    border-color: #f5caca;
    color: #922b2b;
}

.dksmt-steps {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 26px;
}

.dksmt-steps span {
    align-items: center;
    background: var(--dksmt-soft);
    border: 2px solid #d8d0c6;
    border-radius: 13px 11px 14px 12px;
    color: var(--dksmt-muted);
    display: flex;
    font-size: 14px;
    font-weight: 850;
    gap: 9px;
    min-height: 48px;
    padding: 8px 12px;
}

.dksmt-steps b {
    align-items: center;
    background: #ece7df;
    border: 1px solid var(--dksmt-ink);
    border-radius: 9px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.dksmt-steps .is-active {
    background: #eaf1ff;
    border-color: var(--dksmt-ink);
    color: var(--dksmt-primary-dark);
    box-shadow: 3px 4px 0 rgba(41, 43, 74, .08);
}

.dksmt-steps .is-active b {
    background: var(--dksmt-primary);
    color: #fff;
}

.dksmt-dropzone {
    align-items: center;
    background:
        radial-gradient(circle at 12px 12px, rgba(85, 136, 245, .09) 0 2px, transparent 3px) 0 0 / 30px 30px,
        #fffefa;
    border: 3px solid var(--dksmt-ink);
    border-radius: 26px;
    box-shadow: 7px 8px 0 rgba(41, 43, 74, .12);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    justify-content: center;
    outline: none;
    padding: 36px 20px;
    position: relative;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
    width: min(760px, 100%);
    margin-inline: auto;
}

.dksmt-dropzone > * {
    position: relative;
    z-index: 1;
}

.dksmt-dropzone::before {
    border: 2px dashed #9fb4ec;
    border-radius: 17px;
    content: "";
    inset: 14px;
    pointer-events: none;
    position: absolute;
}

.dksmt-dropzone:hover,
.dksmt-dropzone:focus-visible,
.dksmt-dropzone.is-dragging {
    box-shadow: 7px 12px 0 var(--dksmt-yellow);
    transform: translateY(-4px);
}

.dksmt-dropzone h2 {
    color: var(--dksmt-ink);
    font-size: clamp(23px, 2.1vw, 28px);
    font-weight: 950;
    margin: 15px 0 7px;
}

.dksmt-dropzone p,
.dksmt-footnote,
.dksmt-result-heading p,
.dksmt-asset-body p {
    color: var(--dksmt-muted);
}

.dksmt-upload-icon {
    align-items: center;
    background: var(--dksmt-yellow);
    border: 3px solid var(--dksmt-ink);
    border-radius: 21px;
    box-shadow: 5px 6px 0 rgba(41, 43, 74, .16);
    color: var(--dksmt-ink);
    display: flex;
    font-size: 17px;
    font-weight: 900;
    height: 68px;
    justify-content: center;
    width: 68px;
}

.dksmt-file-input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.dksmt-button {
    align-items: center;
    border: 2px solid var(--dksmt-ink);
    border-radius: 14px 12px 15px 13px;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 950;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 11px 18px;
    text-decoration: none !important;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dksmt-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.dksmt-button:focus-visible,
.dksmt-link-button:focus-visible,
.dksmt-tabs button:focus-visible {
    box-shadow: 0 0 0 4px rgba(85, 136, 245, .22);
    outline: none;
}

.dksmt-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.dksmt-button-primary {
    background: var(--dksmt-primary);
    border-color: var(--dksmt-ink);
    box-shadow: 4px 5px 0 rgba(41, 43, 74, .2);
    color: #fff !important;
}

.dksmt-button-primary:hover:not(:disabled) {
    background: var(--dksmt-primary-dark);
    border-color: var(--dksmt-ink);
    box-shadow: 4px 7px 0 rgba(41, 43, 74, .2);
}

.dksmt-button-secondary {
    background: #fff;
    border-color: var(--dksmt-ink);
    box-shadow: 3px 4px 0 rgba(41, 43, 74, .13);
    color: var(--dksmt-ink) !important;
}

.dksmt-button-secondary:hover:not(:disabled) {
    background: #f5f8ff;
    border-color: var(--dksmt-ink);
    box-shadow: 3px 6px 0 rgba(41, 43, 74, .16);
}

.dksmt-footnote {
    font-size: 13px;
    margin: 14px 0 0;
    text-align: center;
}

.dksmt-loading-panel,
.dksmt-error-panel,
.dksmt-empty-panel,
.dksmt-gate-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 310px;
    text-align: center;
}

.dksmt-loading-panel h2,
.dksmt-error-panel h2,
.dksmt-empty-panel h2,
.dksmt-gate-card h2 {
    color: var(--dksmt-ink);
    font-size: 24px;
    margin: 15px 0 6px;
}

.dksmt-loading-panel p,
.dksmt-error-panel p,
.dksmt-empty-panel p,
.dksmt-gate-card p {
    color: var(--dksmt-muted);
    margin: 4px 0 18px;
    max-width: 650px;
}

.dksmt-spinner {
    animation: dksmt-spin .8s linear infinite;
    border: 4px solid #dfe8ff;
    border-radius: 50%;
    border-top-color: var(--dksmt-primary);
    height: 52px;
    width: 52px;
}

@keyframes dksmt-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .dksmt-spinner { animation-duration: 1.8s; }
    .dksmt-shell * { scroll-behavior: auto !important; transition: none !important; }
}

.dksmt-state-icon,
.dksmt-lock {
    align-items: center;
    background: var(--dksmt-yellow);
    border: 2px solid var(--dksmt-ink);
    border-radius: 18px 15px 20px 16px;
    box-shadow: 4px 5px 0 rgba(41, 43, 74, .15);
    color: var(--dksmt-ink);
    display: flex;
    font-size: 25px;
    font-weight: 900;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.dksmt-error-panel .dksmt-state-icon {
    background: #fff0f0;
    color: var(--dksmt-danger);
}

.dksmt-error-panel details {
    color: var(--dksmt-muted);
    margin: 0 0 18px;
}

.dksmt-error-panel code {
    display: block;
    margin-top: 8px;
}

.dksmt-progress {
    background: #fff;
    border: 2px solid var(--dksmt-ink);
    border-radius: 999px;
    height: 12px;
    margin: 2px auto 20px;
    max-width: 560px;
    overflow: hidden;
    width: 100%;
}

.dksmt-progress span {
    background: linear-gradient(90deg, var(--dksmt-primary), var(--dksmt-mint));
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width .25s ease;
}

.dksmt-result-heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dksmt-result-heading h2 {
    color: var(--dksmt-ink);
    font-size: 25px;
    line-height: 1.25;
    margin: 4px 0;
    overflow-wrap: anywhere;
}

.dksmt-result-heading p {
    margin: 0;
}

.dksmt-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
    margin: 20px 0;
}

.dksmt-stat-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dksmt-stat-grid > div {
    align-items: center;
    background: var(--dksmt-soft);
    border: 2px solid var(--dksmt-ink);
    border-radius: 14px 12px 16px 13px;
    box-shadow: 3px 4px 0 rgba(41, 43, 74, .07);
    display: flex;
    flex-direction: column;
    min-height: 86px;
    justify-content: center;
    padding: 12px;
}

.dksmt-stat-grid strong {
    color: var(--dksmt-ink);
    font-size: 25px;
    line-height: 1;
}

.dksmt-stat-grid span {
    color: var(--dksmt-muted);
    font-size: 13px;
    margin-top: 7px;
}

.dksmt-toolbar {
    align-items: center;
    border-bottom: 2px solid var(--dksmt-border);
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin: 22px 0 18px;
    padding-bottom: 15px;
}

.dksmt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dksmt-tabs button {
    background: #fff;
    border: 2px solid var(--dksmt-ink);
    border-radius: 11px 13px 10px 14px;
    box-shadow: 2px 3px 0 rgba(41, 43, 74, .1);
    color: #55586f;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    min-height: 38px;
    padding: 8px 14px;
}

.dksmt-tabs button.is-active {
    background: #eaf1ff;
    border-color: var(--dksmt-ink);
    color: var(--dksmt-primary-dark);
    box-shadow: 2px 4px 0 rgba(55, 100, 210, .17);
}

.dksmt-selection-actions {
    align-items: center;
    color: var(--dksmt-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 10px;
}

.dksmt-link-button {
    background: none;
    border: 0;
    color: var(--dksmt-primary-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    min-height: 36px;
    padding: 5px 2px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dksmt-asset-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dksmt-asset-card {
    background: var(--dksmt-paper);
    border: 2px solid var(--dksmt-ink);
    border-radius: 16px 13px 18px 14px;
    box-shadow: 4px 5px 0 rgba(41, 43, 74, .08);
    display: grid;
    grid-template-columns: 104px 1fr;
    min-height: 142px;
    overflow: hidden;
    position: relative;
}

.dksmt-asset-card.is-disabled {
    background: #fafafa;
    opacity: .76;
}

.dksmt-check {
    left: 9px;
    position: absolute;
    top: 9px;
    z-index: 2;
}

.dksmt-check input {
    accent-color: var(--dksmt-primary);
    height: 20px;
    width: 20px;
}

.dksmt-asset-preview {
    align-items: center;
    background:
        linear-gradient(45deg, #eef1f5 25%, transparent 25%),
        linear-gradient(-45deg, #eef1f5 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef1f5 75%),
        linear-gradient(-45deg, transparent 75%, #eef1f5 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    display: flex;
    justify-content: center;
    min-height: 142px;
    overflow: hidden;
}

.dksmt-asset-preview img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.dksmt-format-icon {
    align-items: center;
    background: rgba(255,255,255,.88);
    border: 2px solid var(--dksmt-ink);
    border-radius: 13px 11px 14px 12px;
    color: #5c6676;
    display: flex;
    font-size: 15px;
    font-weight: 900;
    height: 52px;
    justify-content: center;
    width: 58px;
}

.dksmt-asset-body {
    min-width: 0;
    padding: 13px 13px 11px;
}

.dksmt-card-topline,
.dksmt-meta {
    align-items: center;
    color: var(--dksmt-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 6px;
    justify-content: space-between;
}

.dksmt-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    white-space: nowrap;
}

.dksmt-status.success { background: #eaf8f0; color: var(--dksmt-success); }
.dksmt-status.warning { background: #fff4d9; color: var(--dksmt-warning); }
.dksmt-status.danger { background: #ffeded; color: var(--dksmt-danger); }
.dksmt-status.muted { background: #eef1f5; color: #5d6675; }

.dksmt-asset-body h3 {
    color: var(--dksmt-ink);
    font-size: 16px;
    line-height: 1.25;
    margin: 8px 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dksmt-asset-body p {
    font-size: 12px;
    margin: 0 0 8px;
}

.dksmt-meta {
    justify-content: flex-start;
}

.dksmt-meta span {
    background: var(--dksmt-soft);
    border-radius: 5px;
    padding: 3px 5px;
}

.dksmt-card-warning,
.dksmt-review-note {
    color: var(--dksmt-warning) !important;
    font-size: 11px !important;
    line-height: 1.45;
    margin: 7px 0 0 !important;
}

.dksmt-pagination {
    align-items: center;
    color: var(--dksmt-muted);
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 22px 0 86px;
}

.dksmt-sticky-actions {
    align-items: center;
    background: rgba(255,255,255,.96);
    border: 2px solid var(--dksmt-ink);
    border-radius: 16px 13px 18px 14px;
    bottom: 16px;
    box-shadow: 5px 6px 0 rgba(41, 43, 74, .13);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 20px;
    padding: 12px 14px;
    position: sticky;
    z-index: 10;
}

.dksmt-sticky-actions > span {
    color: var(--dksmt-muted);
    font-size: 14px;
}

.dksmt-risk-confirm {
    align-items: center;
    color: var(--dksmt-warning);
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    gap: 7px;
    margin-left: auto;
}

.dksmt-risk-confirm input {
    accent-color: var(--dksmt-primary);
    height: 18px;
    width: 18px;
}

.dksmt-translation-summary,
.dksmt-scope-note {
    background: var(--dksmt-soft);
    border: 2px solid var(--dksmt-ink);
    border-radius: 16px 13px 18px 14px;
    box-shadow: 3px 4px 0 rgba(41, 43, 74, .06);
    margin-top: 16px;
    padding: 18px;
}

.dksmt-translation-summary {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.dksmt-translation-summary strong {
    font-size: 18px;
}

.dksmt-translation-summary span,
.dksmt-scope-note p {
    color: var(--dksmt-muted);
}

.dksmt-scope-note p {
    line-height: 1.7;
    margin: 6px 0 0;
}

.dksmt-centered-actions {
    display: flex;
    justify-content: center;
    margin: 24px 0 4px;
}

.dksmt-translation-list {
    display: grid;
    gap: 12px;
}

.dksmt-translation-row {
    align-items: start;
    background: var(--dksmt-paper);
    border: 2px solid var(--dksmt-ink);
    border-radius: 16px 13px 18px 14px;
    box-shadow: 3px 4px 0 rgba(41, 43, 74, .07);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(155px, .72fr) minmax(220px, 1fr) minmax(260px, 1.2fr);
    padding: 15px;
}

.dksmt-translation-location {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dksmt-translation-location .dksmt-status {
    align-self: flex-start;
}

.dksmt-translation-location strong {
    font-size: 14px;
}

.dksmt-translation-location small {
    color: var(--dksmt-muted);
    line-height: 1.45;
}

.dksmt-translation-row label {
    color: #475467;
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.dksmt-translation-row textarea {
    background: #fff;
    border: 2px solid #b9b2aa;
    border-radius: 10px 8px 11px 9px;
    color: var(--dksmt-ink);
    display: block;
    font: inherit;
    font-size: 14px;
    line-height: 1.55;
    margin-top: 6px;
    min-height: 76px;
    padding: 9px 10px;
    resize: vertical;
    width: 100%;
}

.dksmt-translation-row textarea:focus {
    border-color: var(--dksmt-primary);
    box-shadow: 0 0 0 3px rgba(85, 136, 245, .18);
    outline: none;
}

.dksmt-translation-row textarea[readonly] {
    background: #f7f8fa;
    color: #475467;
}

.dksmt-empty {
    background: var(--dksmt-soft);
    border: 1px dashed #cbd3df;
    border-radius: 13px;
    color: var(--dksmt-muted);
    grid-column: 1 / -1;
    padding: 36px 20px;
    text-align: center;
}

.dksmt-toast {
    background: #16202d;
    border-radius: 10px;
    bottom: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    color: #fff;
    left: 50%;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 99999;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

@media (max-width: 980px) {
    .dksmt-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dksmt-translation-row { grid-template-columns: 1fr 1fr; }
    .dksmt-translation-location { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .dksmt-shell { padding: 0; }
    .dksmt-hero { border-radius: 22px; padding: 28px 22px; }
    .dksmt-hero p { font-size: 15px; }
    .dksmt-panel, .dksmt-gate-card { border-radius: 15px; padding: 18px 14px; }
    .dksmt-notice { display: block; font-size: 13px; }
    .dksmt-notice strong { display: block; margin-bottom: 3px; }
    .dksmt-steps { gap: 6px; }
    .dksmt-steps span { align-items: center; flex-direction: column; font-size: 11px; justify-content: center; padding: 7px 3px; text-align: center; }
    .dksmt-dropzone { min-height: 285px; padding: 28px 12px; }
    .dksmt-dropzone h2 { font-size: 20px; }
    .dksmt-result-heading, .dksmt-toolbar, .dksmt-translation-summary { align-items: stretch; flex-direction: column; }
    .dksmt-result-heading .dksmt-button { width: 100%; }
    .dksmt-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dksmt-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .dksmt-asset-grid { grid-template-columns: 1fr; }
    .dksmt-asset-card { grid-template-columns: 112px 1fr; }
    .dksmt-translation-row { grid-template-columns: 1fr; }
    .dksmt-translation-location { grid-column: auto; }
    .dksmt-pagination { margin-bottom: 102px; }
    .dksmt-sticky-actions { align-items: stretch; bottom: 8px; flex-direction: column; gap: 8px; }
    .dksmt-risk-confirm { margin-left: 0; }
    .dksmt-sticky-actions .dksmt-button { width: 100%; }
}
