html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 28px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.project-workspace-ocr {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #172033;
    min-height: 620px;
}

.pwo-header,
.pwo-upload,
.pwo-quick-add,
.pwo-shell,
.pwo-empty {
    border: 1px solid #d9e0ea;
    background: #ffffff;
    border-radius: 8px;
}

.pwo-header {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
}

.pwo-header h3 {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 700;
}

.pwo-eyebrow,
.pwo-label,
.pwo-table th {
    color: #5f6f86;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pwo-title {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 700;
}

.pwo-subtitle {
    margin: 4px 0 0;
    color: #66758d;
    font-size: 13px;
}

.pwo-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pwo-stat {
    min-width: 88px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: right;
}

.pwo-stats > div {
    min-width: 88px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: right;
}

.pwo-stat strong {
    display: block;
    color: #18233a;
    font-size: 18px;
}

.pwo-stats strong {
    display: block;
    color: #18233a;
    font-size: 18px;
}

.pwo-stats span,
.pwo-upload span,
.pwo-toolbar span,
.pwo-file small {
    color: #6b7890;
    font-size: 12px;
}

.pwo-stat span,
.pwo-note,
.pwo-muted {
    color: #6b7890;
    font-size: 12px;
}

.pwo-upload,
.pwo-quick-add {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, auto);
    gap: 12px;
    align-items: end;
    padding: 12px;
}

.pwo-upload-controls,
.pwo-inline-form,
.pwo-toolbar,
.pwo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pwo-upload > div,
.pwo-quick-add > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pwo-quick-add > div > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pwo-input,
.pwo-file,
.pwo-select {
    min-height: 34px;
    border: 1px solid #c9d2df;
    border-radius: 6px;
    background: #ffffff;
    color: #172033;
    padding: 6px 8px;
}

.project-workspace-ocr input,
.project-workspace-ocr select {
    min-height: 34px;
    border: 1px solid #c9d2df;
    border-radius: 6px;
    background: #ffffff;
    color: #172033;
    padding: 6px 8px;
}

.project-workspace-ocr button {
    min-height: 34px;
    border: 1px solid #b9c6d8;
    border-radius: 6px;
    background: #f7f9fc;
    color: #1f2f4a;
    padding: 6px 10px;
    font-weight: 600;
}

.project-workspace-ocr button:hover:not(:disabled) {
    background: #eef3fa;
}

.project-workspace-ocr button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pwo-upload input[type="file"] {
    width: 100%;
}

.pwo-input {
    min-width: 190px;
}

.pwo-button,
.pwo-tab {
    min-height: 34px;
    border: 1px solid #b9c6d8;
    border-radius: 6px;
    background: #f7f9fc;
    color: #1f2f4a;
    padding: 6px 10px;
    font-weight: 600;
}

.pwo-button:hover,
.pwo-tab:hover {
    background: #eef3fa;
}

.pwo-button.primary {
    border-color: #2d6cdf;
    background: #2d6cdf;
    color: #ffffff;
}

.pwo-button.danger {
    border-color: #c94747;
    color: #9f2d2d;
}

.pwo-tab.active {
    border-color: #2d6cdf;
    background: #eaf1ff;
    color: #174ea6;
}

.pwo-switch {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: #40516b;
    font-size: 13px;
}

.pwo-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    min-height: 460px;
    overflow: hidden;
}

.pwo-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    min-height: 460px;
    border: 1px solid #d9e0ea;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.pwo-side {
    border-right: 1px solid #d9e0ea;
    background: #f8fafc;
    padding: 12px;
}

.pwo-files {
    border-right: 1px solid #d9e0ea;
    background: #f8fafc;
    padding: 12px;
}

.pwo-section-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.pwo-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px;
}

.pwo-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.pwo-list-button {
    width: 100%;
    border: 1px solid #d6deea;
    border-radius: 6px;
    background: #ffffff;
    color: #24324c;
    padding: 8px;
    text-align: left;
}

.pwo-list-button.active {
    border-color: #2d6cdf;
    background: #edf4ff;
}

.pwo-file {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-bottom: 6px;
    text-align: left;
}

.pwo-file.is-active,
.pwo-tabs button.is-active {
    border-color: #2d6cdf;
    background: #eaf1ff;
    color: #174ea6;
}

.pwo-tab-content,
.pwo-review-summary {
    min-width: 0;
}

.pwo-review-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.pwo-review-summary > div {
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 8px 10px;
}

.pwo-review-summary span {
    display: block;
    color: #6b7890;
    font-size: 12px;
}

.pwo-review-summary strong {
    display: block;
    color: #18233a;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.pwo-scroll {
    overflow: auto;
}

.pwo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.pwo-table th,
.pwo-table td {
    border-bottom: 1px solid #e4e9f1;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.pwo-table input,
.pwo-table select {
    width: 100%;
    min-width: 92px;
}

.pwo-table .pwo-time,
.pwo-table .pwo-time-input {
    width: 96px;
    min-width: 96px;
}

.pwo-number {
    max-width: 110px;
}

.pwo-table tbody tr:hover {
    background: #f8fbff;
}

.pwo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border: 1px solid #d4dce8;
    border-radius: 999px;
    background: #f6f8fb;
    color: #42526e;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

.pwo-badge.ok {
    border-color: #a4d7b3;
    background: #eef9f1;
    color: #23713a;
}

.pwo-badge.warn {
    border-color: #f2d38a;
    background: #fff8e7;
    color: #8a5c00;
}

.pwo-empty {
    padding: 20px;
    color: #596a84;
}

.pwo-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #40516b;
    font-size: 13px;
}

.pwo-check input {
    min-height: auto;
}

.pwo-status {
    border: 1px solid #a4d7b3;
    border-radius: 8px;
    background: #eef9f1;
    color: #23713a;
    padding: 10px 12px;
}

.pwo-status.is-error {
    border-color: #e4a1a1;
    background: #fff1f1;
    color: #9f2d2d;
}

@media (max-width: 980px) {
    .pwo-header,
    .pwo-upload,
    .pwo-quick-add,
    .pwo-shell,
    .pwo-layout,
    .pwo-review-summary {
        grid-template-columns: 1fr;
    }

    .pwo-stats {
        justify-content: flex-start;
    }

    .pwo-side {
        border-right: 0;
        border-bottom: 1px solid #d9e0ea;
    }

    .pwo-files {
        border-right: 0;
        border-bottom: 1px solid #d9e0ea;
    }
}

.project-workspace-ocr {
    --pwo-bg: #f7f8fb;
    --pwo-panel: #ffffff;
    --pwo-ink: #171b25;
    --pwo-muted: #657084;
    --pwo-line: #e2e6ee;
    --pwo-accent: #2563eb;
    --pwo-accent-2: #10b981;
    --pwo-accent-3: #d946ef;
    --pwo-shadow: 0 18px 45px rgba(19, 28, 46, 0.08);
    display: grid;
    gap: 14px;
    min-height: 680px;
    padding: 18px;
    border: 1px solid var(--pwo-line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, var(--pwo-bg) 42%, #ffffff 100%);
    color: var(--pwo-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.project-workspace-ocr * {
    box-sizing: border-box;
}

.pwo-hero195 {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: stretch;
    overflow: hidden;
    min-height: 188px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--pwo-shadow);
}

.pwo-hero195::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid transparent;
    background:
        linear-gradient(var(--pwo-panel), var(--pwo-panel)) padding-box,
        linear-gradient(120deg, rgba(37, 99, 235, 0.42), rgba(16, 185, 129, 0.24), rgba(217, 70, 239, 0.32)) border-box;
    opacity: 0.7;
    mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.pwo-trace {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 18px;
    width: 22px;
}

.pwo-trace::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 0;
    left: 10px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.8), rgba(16, 185, 129, 0.65), rgba(217, 70, 239, 0));
}

.pwo-trace span {
    position: absolute;
    top: 0;
    left: 4px;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
}

.pwo-trace span::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background: var(--pwo-accent-2);
}

.pwo-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-left: 34px;
    position: relative;
    z-index: 1;
}

.pwo-eyebrow,
.pwo-label,
.pwo-table th {
    color: #677386;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pwo-hero-copy h2 {
    margin: 6px 0 8px;
    max-width: 980px;
    color: #111827;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 750;
}

.pwo-hero-copy p,
.pwo-toolbar p,
.pwo-upload-panel small {
    margin: 0;
    color: var(--pwo-muted);
    font-size: 13px;
}

.pwo-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    gap: 10px;
    margin-top: 18px;
    max-width: 640px;
}

.pwo-stats > div {
    min-width: 0;
    border: 1px solid var(--pwo-line);
    border-radius: 8px;
    background: #fbfcfe;
    padding: 10px 12px;
    text-align: left;
}

.pwo-stats span {
    display: block;
    color: var(--pwo-muted);
    font-size: 12px;
}

.pwo-stats strong {
    display: block;
    margin-top: 2px;
    color: var(--pwo-ink);
    font-size: 22px;
    line-height: 1;
}

.pwo-upload-panel,
.pwo-command-card,
.pwo-workbench {
    border: 1px solid var(--pwo-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
}

.pwo-upload-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    box-shadow: 0 10px 26px rgba(19, 28, 46, 0.07);
}

.pwo-panel-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.pwo-panel-title span {
    color: var(--pwo-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pwo-panel-title strong {
    color: #0f172a;
    font-size: 14px;
}

.pwo-upload-panel input[type="file"] {
    width: 100%;
    min-height: 40px;
    border: 1px dashed #b8c4d7;
    border-radius: 8px;
    background: #f8fafc;
    padding: 7px;
}

.pwo-upload-panel input[type="file"]::file-selector-button {
    min-height: 28px;
    margin-right: 8px;
    border: 1px solid #c7d2e2;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font-weight: 650;
}

.pwo-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    color: #334155;
    font-size: 13px;
}

.pwo-check input {
    min-height: auto;
}

.pwo-command-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr) minmax(360px, 1.25fr);
    gap: 12px;
}

.pwo-command-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(19, 28, 46, 0.045);
}

.pwo-command-card > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.project-workspace-ocr input,
.project-workspace-ocr select {
    min-height: 36px;
    border: 1px solid #ccd5e2;
    border-radius: 7px;
    background: #ffffff;
    color: #111827;
    padding: 7px 9px;
    font-size: 13px;
    outline: none;
}

.project-workspace-ocr input:focus,
.project-workspace-ocr select:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.project-workspace-ocr button {
    min-height: 36px;
    border: 1px solid #c4cedd;
    border-radius: 7px;
    background: #ffffff;
    color: #182033;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
}

.project-workspace-ocr button:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #f7f9fc;
}

.project-workspace-ocr button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.pwo-toolbar button:nth-of-type(3),
.pwo-upload-panel input[type="file"]::file-selector-button:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background: #ecfdf5;
    color: #047857;
}

.pwo-workbench {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    overflow: hidden;
    min-height: 520px;
    box-shadow: var(--pwo-shadow);
}

.pwo-workbench.is-files-collapsed {
    grid-template-columns: 46px minmax(0, 1fr);
}

.pwo-files {
    min-width: 0;
    border-right: 1px solid var(--pwo-line);
    background: #f8fafc;
    padding: 14px;
}

.pwo-files.is-collapsed {
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    padding: 10px 6px;
}

.pwo-section-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.pwo-files.is-collapsed .pwo-section-head {
    justify-content: center;
    margin-bottom: 10px;
}

.project-workspace-ocr .pwo-files-toggle {
    width: 34px;
    min-height: 32px;
    padding: 4px 6px;
    line-height: 1;
}

.project-workspace-ocr .pwo-files-rail {
    width: 34px;
    min-height: 96px;
    padding: 8px 4px;
    letter-spacing: 0;
    line-height: 1.1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.pwo-file-list {
    display: grid;
    gap: 8px;
    max-height: 460px;
    overflow: auto;
    padding-right: 4px;
}

.pwo-file {
    display: grid;
    gap: 4px;
    width: 100%;
    min-height: 54px;
    border-color: #d7dee9;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
}

.pwo-file span {
    overflow: hidden;
    color: #182033;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwo-file small {
    overflow: hidden;
    color: var(--pwo-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwo-file.is-active,
.pwo-tabs button.is-active {
    border-color: rgba(37, 99, 235, 0.58);
    background: #eff6ff;
    color: #174ea6;
}

.pwo-main {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 14px;
}

.pwo-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(4, auto);
    gap: 8px;
    align-items: center;
    padding-bottom: 2px;
}

.pwo-toolbar strong {
    display: block;
    margin-top: 2px;
    color: var(--pwo-ink);
    font-size: 18px;
}

.pwo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1px solid var(--pwo-line);
    border-radius: 8px;
    background: #f4f6fa;
    padding: 5px;
}

.pwo-tabs button {
    min-height: 32px;
    border-color: transparent;
    background: transparent;
    color: #475569;
}

.pwo-tab-content {
    min-width: 0;
    overflow: auto;
    border: 1px solid var(--pwo-line);
    border-radius: 8px;
    background: #ffffff;
}

.pwo-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
}

.pwo-table-scroll::-webkit-scrollbar {
    height: 11px;
}

.pwo-table-scroll::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.pwo-table-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
}

.pwo-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

.pwo-timesheet-table {
    min-width: 1180px;
}

.pwo-traceability-table {
    min-width: 1460px;
}

.pwo-table th,
.pwo-table td {
    border-bottom: 1px solid #e7ecf3;
    padding: 8px 8px;
    text-align: left;
    vertical-align: middle;
}

.pwo-table tbody tr:hover {
    background: #f8fbff;
}

.pwo-table input,
.pwo-table select {
    width: 100%;
    min-width: 76px;
    min-height: 34px;
    padding: 6px 9px;
}

.pwo-table .pwo-time {
    width: 88px;
    min-width: 88px;
}

.pwo-timesheet-table th:nth-child(1),
.pwo-timesheet-table td:nth-child(1) {
    min-width: 132px;
}

.pwo-timesheet-table th:nth-child(2),
.pwo-timesheet-table td:nth-child(2) {
    min-width: 250px;
}

.pwo-timesheet-table th:nth-child(10),
.pwo-timesheet-table td:nth-child(10) {
    min-width: 250px;
}

.pwo-traceability-table th:nth-child(1),
.pwo-traceability-table td:nth-child(1) {
    min-width: 136px;
}

.pwo-traceability-table th:nth-child(2),
.pwo-traceability-table td:nth-child(2) {
    min-width: 112px;
}

.pwo-traceability-table th:nth-child(3),
.pwo-traceability-table td:nth-child(3) {
    min-width: 126px;
}

.pwo-traceability-table th:nth-child(n+4):nth-child(-n+8),
.pwo-traceability-table td:nth-child(n+4):nth-child(-n+8) {
    min-width: 82px;
}

.pwo-traceability-table th:nth-child(n+9):nth-child(-n+13),
.pwo-traceability-table td:nth-child(n+9):nth-child(-n+13) {
    min-width: 104px;
}

.pwo-traceability-table th:nth-child(16),
.pwo-traceability-table td:nth-child(16) {
    min-width: 220px;
}

.pwo-table .pwo-row-actions {
    display: inline-flex;
    gap: 6px;
    min-width: 118px;
}

.pwo-table .pwo-row-actions button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 12px;
}

.pwo-row-approve {
    border-color: #84d6a7 !important;
    background: #eefaf2 !important;
    color: #176534 !important;
}

.pwo-row-reject {
    border-color: #f1b7b7 !important;
    background: #fff4f4 !important;
    color: #9f2d2d !important;
}

.pwo-review-approved {
    background: #f3fbf6;
}

.pwo-review-rejected {
    background: #fff6f6;
}

.pwo-review-created {
    background: #f7f8fb;
}

.pwo-decision {
    display: inline-flex;
    align-items: center;
    min-width: 66px;
    justify-content: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

.pwo-decision.is-approved {
    background: #dcfce7;
    color: #166534;
}

.pwo-decision.is-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.pwo-decision.is-created {
    background: #e0e7ff;
    color: #3730a3;
}

.pwo-decision.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.pwo-number {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 90px;
}

.pwo-review-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
    padding: 12px;
}

.pwo-review-section {
    border-top: 1px solid #e7ecf3;
}

.pwo-review-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 6px;
    color: var(--pwo-ink);
}

.pwo-review-section-head span,
.pwo-cell-hint {
    color: var(--pwo-muted);
    font-size: 12px;
}

.pwo-cell-hint {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.pwo-review-summary > div {
    border: 1px solid var(--pwo-line);
    border-radius: 8px;
    background: #fbfcfe;
    padding: 10px 12px;
}

.pwo-review-summary span {
    display: block;
    color: var(--pwo-muted);
    font-size: 12px;
    font-weight: 650;
}

.pwo-review-summary strong {
    display: block;
    color: var(--pwo-ink);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.pwo-empty {
    border: 1px solid var(--pwo-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--pwo-muted);
    padding: 18px;
}

.pwo-status {
    border: 1px solid #a7d9b4;
    border-radius: 8px;
    background: #eefaf2;
    color: #176534;
    padding: 10px 12px;
}

.pwo-status.is-error {
    border-color: #e6a4a4;
    background: #fff1f1;
    color: #9f2d2d;
}

.pwo-button-progress {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.pwo-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(37, 99, 235, 0.24);
    border-top-color: currentColor;
    border-radius: 999px;
    animation: pwo-spin 0.8s linear infinite;
}

.pwo-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.42);
    padding: 24px;
}

.pwo-preview-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    width: min(1120px, 96vw);
    height: min(760px, 90vh);
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.pwo-preview-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5eaf2;
    padding: 12px 14px;
}

.pwo-preview-head strong {
    display: block;
    color: var(--pwo-ink);
    overflow-wrap: anywhere;
}

.pwo-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
}

.pwo-preview-pdf {
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.pwo-preview-excel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
    background: #f8fafc;
}

.pwo-preview-sheet-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 1px solid #dbe3ef;
    padding: 8px 10px;
    background: #ffffff;
}

.pwo-preview-sheet-tabs button {
    flex: 0 0 auto;
    border: 1px solid #c8d5e7;
    border-radius: 6px;
    background: #ffffff;
    padding: 7px 10px;
    color: var(--pwo-ink);
    font-weight: 700;
}

.pwo-preview-sheet-tabs button.is-active {
    border-color: var(--pwo-blue);
    background: #eff6ff;
    color: #1d4ed8;
}

.pwo-preview-note {
    border-bottom: 1px solid #e5eaf2;
    padding: 8px 12px;
    color: var(--pwo-muted);
    font-size: 12px;
}

.pwo-preview-sheet-body {
    min-height: 0;
    overflow: auto;
}

.pwo-excel-table {
    min-width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: var(--pwo-ink);
    font-size: 12px;
}

.pwo-excel-table td {
    min-width: 88px;
    max-width: 320px;
    border: 1px solid #dbe3ef;
    padding: 6px 8px;
    white-space: nowrap;
}

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

@media (max-width: 1180px) {
    .pwo-hero195,
    .pwo-command-grid,
    .pwo-workbench,
    .pwo-toolbar {
        grid-template-columns: 1fr;
    }

    .pwo-workbench.is-files-collapsed {
        grid-template-columns: 1fr;
    }

    .pwo-files {
        border-right: 0;
        border-bottom: 1px solid var(--pwo-line);
    }

    .pwo-files.is-collapsed {
        min-height: 46px;
    }

    .project-workspace-ocr .pwo-files-rail {
        min-height: 34px;
        width: 100%;
        writing-mode: horizontal-tb;
    }
}

@media (max-width: 760px) {
    .project-workspace-ocr {
        padding: 10px;
    }

    .pwo-hero195 {
        padding: 14px;
    }

    .pwo-hero-copy {
        padding-left: 28px;
    }

    .pwo-hero-copy h2 {
        font-size: 22px;
    }

    .pwo-stats,
    .pwo-review-summary {
        grid-template-columns: 1fr 1fr;
    }
}
