:root {
    --ls-report-forest-950: #092c28;
    --ls-report-forest-900: #0d3730;
    --ls-report-forest-800: #124b40;
    --ls-report-forest-700: #176454;
    --ls-report-forest-500: #438b77;
    --ls-report-gold-700: #9e753b;
    --ls-report-gold-500: #c29a5a;
    --ls-report-gold-300: #dcc18e;
    --ls-report-ivory: #f7f3e9;
    --ls-report-paper: #fffdf8;
    --ls-report-ink: #1b2c28;
    --ls-report-muted: #64736f;
    --ls-report-danger: #9e4038;
}

body.ls-report-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.ls-report-modal[hidden],
.ls-report-minibar[hidden],
.ls-report-progress[hidden],
.ls-report-results[hidden],
.ls-report-modal__form-error[hidden],
.ls-report-modal__footer-button[hidden] {
    display: none !important;
}

.ls-report-modal {
    position: fixed;
    z-index: 2147482000;
    inset: 0;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: clamp(14px, 2.4vw, 34px);
    color: var(--ls-report-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ls-report-modal *,
.ls-report-modal *::before,
.ls-report-modal *::after,
.ls-report-minibar,
.ls-report-minibar * {
    box-sizing: border-box;
}

.ls-report-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 24, 21, 0.76);
    backdrop-filter: blur(11px) saturate(0.86);
    -webkit-backdrop-filter: blur(11px) saturate(0.86);
}

.ls-report-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    min-width: 0;
    min-height: 0;
    max-height: min(720px, calc(100vh - clamp(28px, 4.8vw, 68px)));
    max-height: min(720px, calc(100dvh - clamp(28px, 4.8vw, 68px)));
    overflow: hidden;
    border: 1px solid rgba(220, 193, 142, 0.55);
    border-radius: 24px;
    background: var(--ls-report-paper);
    box-shadow: 0 30px 90px rgba(2, 24, 20, 0.4), 0 2px 12px rgba(2, 24, 20, 0.2);
    outline: none;
}

.ls-report-modal__dialog::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ls-report-forest-800), var(--ls-report-gold-500) 46%, #6d8f82 72%, var(--ls-report-forest-700));
}

.ls-report-modal__header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    padding: 19px 22px 17px;
    color: #f7f2e7;
    background:
        radial-gradient(circle at 82% 14%, rgba(205, 172, 105, 0.16), transparent 30%),
        linear-gradient(126deg, var(--ls-report-forest-950), var(--ls-report-forest-900) 54%, #123e37);
}

.ls-report-modal__brand {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(220, 193, 142, 0.65);
    border-radius: 18px 10px 18px 10px;
    transform: rotate(5deg);
    background: rgba(255, 255, 255, 0.035);
}

.ls-report-modal__brand-mark {
    color: #ead4a7;
    font-family: STKaiti, KaiTi, serif;
    font-size: 18px;
    font-weight: 700;
    transform: rotate(-5deg);
}

.ls-report-modal__brand-line {
    position: absolute;
    width: 29px;
    height: 1px;
    margin-top: 30px;
    background: linear-gradient(90deg, transparent, var(--ls-report-gold-300), transparent);
}

.ls-report-modal__heading {
    min-width: 0;
}

.ls-report-modal__eyebrow,
.ls-report-progress__kicker {
    margin: 0 0 4px;
    color: var(--ls-report-gold-300);
    font-family: Verdana, system-ui, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.ls-report-modal__heading h2 {
    margin: 0;
    color: #fffdfa;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 720;
    line-height: 1.26;
    letter-spacing: 0.01em;
}

.ls-report-modal__heading > p:last-child {
    max-width: 720px;
    margin: 5px 0 0;
    color: rgba(247, 242, 231, 0.7);
    font-size: 12px;
    line-height: 1.5;
}

.ls-report-modal__window-actions {
    display: flex;
    align-self: start;
    gap: 7px;
}

.ls-report-modal__icon-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(238, 219, 183, 0.25);
    border-radius: 10px;
    color: #f8f0df;
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.ls-report-modal__icon-button:hover,
.ls-report-modal__icon-button:focus-visible {
    border-color: rgba(238, 219, 183, 0.62);
    background: rgba(255, 255, 255, 0.11);
    outline: 3px solid rgba(220, 193, 142, 0.18);
    outline-offset: 2px;
}

.ls-report-modal__body {
    display: grid;
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.55fr);
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    overscroll-behavior: contain;
    background: var(--ls-report-paper);
}

.ls-report-modal__brief {
    min-width: 0;
    min-height: 0;
    padding: 21px 20px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border-right: 1px solid rgba(31, 91, 75, 0.13);
    background:
        linear-gradient(rgba(247, 243, 233, 0.94), rgba(247, 243, 233, 0.96)),
        radial-gradient(circle at 15% 15%, rgba(194, 154, 90, 0.2), transparent 34%);
}

.ls-report-modal__region-card {
    padding: 15px 16px;
    border: 1px solid rgba(22, 100, 84, 0.19);
    border-left: 4px solid var(--ls-report-gold-500);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 7px 18px rgba(30, 67, 58, 0.045);
}

.ls-report-modal__region-card span,
.ls-report-modal__region-card small {
    display: block;
    color: var(--ls-report-muted);
    font-size: 10px;
    line-height: 1.45;
}

.ls-report-modal__region-card strong {
    display: block;
    margin: 4px 0 3px;
    color: var(--ls-report-forest-900);
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ls-report-modal__scope {
    margin-top: 20px;
}

.ls-report-modal__scope h3,
.ls-report-progress h3,
.ls-report-results h3 {
    margin: 0;
    color: var(--ls-report-forest-900);
    font-size: 14px;
    line-height: 1.4;
}

.ls-report-modal__scope ul {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ls-report-modal__scope li {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
}

.ls-report-modal__scope li > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid rgba(22, 100, 84, 0.25);
    border-radius: 50%;
    color: var(--ls-report-forest-700);
    background: rgba(255, 255, 255, 0.7);
    font-family: Verdana, sans-serif;
    font-size: 8px;
    font-weight: 800;
}

.ls-report-modal__scope li strong,
.ls-report-modal__scope li small {
    display: block;
}

.ls-report-modal__scope li strong {
    color: #29433c;
    font-size: 11px;
    line-height: 1.4;
}

.ls-report-modal__scope li small {
    margin-top: 1px;
    color: #74817d;
    font-size: 9px;
    line-height: 1.5;
}

.ls-report-modal__principle {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(24, 85, 70, 0.13);
}

.ls-report-modal__principle strong {
    color: var(--ls-report-gold-700);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.ls-report-modal__principle p {
    margin: 5px 0 0;
    color: #667771;
    font-size: 10px;
    line-height: 1.65;
}

.ls-report-modal__workspace {
    min-width: 0;
    min-height: 0;
    padding: 23px clamp(20px, 3vw, 34px) 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.ls-report-modal__formats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ls-report-modal__formats legend {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 8px;
    color: var(--ls-report-forest-900);
    font-size: 15px;
    font-weight: 720;
}

.ls-report-format-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 76px;
    padding: 13px 34px 13px 13px;
    border: 1px solid rgba(33, 88, 73, 0.18);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ls-report-format-card:has(input:checked) {
    border-color: rgba(23, 100, 84, 0.55);
    background: linear-gradient(135deg, rgba(239, 248, 243, 0.88), rgba(255, 252, 245, 0.95));
    box-shadow: 0 8px 19px rgba(17, 72, 61, 0.08);
}

.ls-report-format-card:hover {
    transform: translateY(-1px);
    border-color: rgba(23, 100, 84, 0.42);
}

.ls-report-format-card:focus-within {
    outline: 3px solid rgba(23, 100, 84, 0.15);
    outline-offset: 2px;
}

.ls-report-format-card input {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 16px;
    height: 16px;
    accent-color: var(--ls-report-forest-700);
}

.ls-report-format-card__badge {
    display: grid;
    place-items: center;
    width: 43px;
    height: 31px;
    border: 1px solid rgba(148, 57, 46, 0.3);
    border-radius: 7px;
    color: #944438;
    background: #fff5f1;
    font-family: Verdana, sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.ls-report-format-card__badge--docx {
    color: #315f8b;
    border-color: rgba(49, 95, 139, 0.28);
    background: #f0f6fc;
}

.ls-report-format-card strong,
.ls-report-format-card small {
    display: block;
}

.ls-report-format-card strong {
    color: #263d37;
    font-size: 12px;
    line-height: 1.4;
}

.ls-report-format-card small {
    margin-top: 3px;
    color: #73817d;
    font-size: 9px;
    line-height: 1.5;
}

.ls-report-modal__readiness {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 11px 13px;
    border: 1px solid rgba(194, 154, 90, 0.24);
    border-radius: 11px;
    background: #fcf8ef;
}

.ls-report-modal__readiness-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--ls-report-gold-500);
    box-shadow: 0 0 0 4px rgba(194, 154, 90, 0.12);
}

.ls-report-modal__readiness p {
    margin: 0;
    color: #6c614c;
    font-size: 10px;
    line-height: 1.65;
}

.ls-report-modal__form-error {
    margin-top: 11px;
    padding: 10px 12px;
    border: 1px solid rgba(158, 64, 56, 0.28);
    border-radius: 9px;
    color: var(--ls-report-danger);
    background: #fff5f3;
    font-size: 11px;
    line-height: 1.5;
}

.ls-report-modal__submit-row {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(180px, 1fr);
    align-items: center;
    gap: 14px;
    margin-top: 17px;
}

.ls-report-modal__submit {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 52px;
    padding: 9px 15px;
    border: 1px solid rgba(220, 193, 142, 0.52);
    border-radius: 12px;
    color: #fffaf0;
    background: linear-gradient(128deg, var(--ls-report-forest-800), var(--ls-report-forest-900));
    box-shadow: 0 10px 24px rgba(10, 58, 49, 0.2);
    cursor: pointer;
    text-align: left;
}

.ls-report-modal__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 13px 30px rgba(10, 58, 49, 0.26);
}

.ls-report-modal__submit:focus-visible {
    outline: 3px solid rgba(194, 154, 90, 0.3);
    outline-offset: 3px;
}

.ls-report-modal__submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.ls-report-modal__submit-mark {
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    height: 31px;
    border: 1px solid rgba(235, 215, 174, 0.55);
    border-radius: 50%;
    color: #e6ca95;
    font-family: Verdana, sans-serif;
    font-size: 9px;
    font-weight: 800;
}

.ls-report-modal__submit strong,
.ls-report-modal__submit small {
    display: block;
}

.ls-report-modal__submit strong {
    font-size: 12px;
    line-height: 1.4;
}

.ls-report-modal__submit small {
    margin-top: 2px;
    color: rgba(255, 250, 240, 0.65);
    font-size: 9px;
    line-height: 1.35;
}

.ls-report-modal__submit-row > p {
    margin: 0;
    color: #78847f;
    font-size: 9px;
    line-height: 1.6;
}

.ls-report-progress,
.ls-report-results {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(24, 85, 70, 0.14);
}

.ls-report-progress__head,
.ls-report-results__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ls-report-progress__kicker {
    color: var(--ls-report-gold-700);
}

.ls-report-progress__percent {
    flex: 0 0 auto;
    color: var(--ls-report-forest-800);
    font-family: Verdana, sans-serif;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.ls-report-progress__total {
    position: relative;
    height: 12px;
    margin-top: 13px;
    overflow: hidden;
    border: 1px solid rgba(20, 82, 68, 0.12);
    border-radius: 999px;
    background: #e7eee9;
}

.ls-report-progress__total > span,
.ls-report-progress__track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ls-report-progress__total > span {
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg, var(--ls-report-forest-800) 0%, #277362 34%, var(--ls-report-gold-500) 67%, #6b8d82 84%, var(--ls-report-forest-700) 100%);
    background-size: 180% 100%;
    box-shadow: 0 0 12px rgba(35, 112, 92, 0.22);
    animation: ls-report-gradient-shift 2.8s linear infinite;
}

.ls-report-progress__total > span::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    animation: ls-report-sheen 2.2s ease-in-out infinite;
}

.ls-report-progress__streams {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-top: 13px;
}

.ls-report-progress__stream > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    color: #667671;
    font-size: 9px;
    line-height: 1.4;
}

.ls-report-progress__stream b {
    color: var(--ls-report-forest-700);
    font-family: Verdana, sans-serif;
    font-size: 8px;
}

.ls-report-progress__track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ece8;
}

.ls-report-progress__track > span {
    background: linear-gradient(90deg, var(--ls-report-forest-700), var(--ls-report-gold-500));
}

.ls-report-progress__stream:nth-child(2) .ls-report-progress__track > span {
    background: linear-gradient(90deg, #2a7768, #718e80, #c29a5a);
}

.ls-report-progress__stream:nth-child(3) .ls-report-progress__track > span {
    background: linear-gradient(90deg, #99713b, #c29a5a, #387766);
}

.ls-report-progress__message {
    min-height: 19px;
    margin: 12px 0 0;
    color: #4d625c;
    font-size: 10px;
    line-height: 1.6;
}

.ls-report-progress__steps {
    display: grid;
    gap: 6px;
    max-height: 180px;
    margin: 11px 0 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.ls-report-progress__steps li {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    color: #677772;
    background: #f4f7f4;
    font-size: 9px;
    line-height: 1.45;
}

.ls-report-progress__steps li::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin-top: 2px;
    border: 2px solid #b5c2bd;
    border-radius: 50%;
}

.ls-report-progress__steps li[data-state="active"] {
    color: #274f45;
    background: #edf5f1;
}

.ls-report-progress__steps li[data-state="active"]::before {
    border-color: var(--ls-report-gold-500);
    box-shadow: 0 0 0 4px rgba(194, 154, 90, 0.13);
    animation: ls-report-dot-pulse 1.4s ease-in-out infinite;
}

.ls-report-progress__steps li[data-state="complete"]::before {
    border-color: var(--ls-report-forest-700);
    background: var(--ls-report-forest-700);
    box-shadow: inset 0 0 0 2px #fff;
}

.ls-report-progress__steps li[data-state="failed"]::before {
    border-color: var(--ls-report-danger);
    background: var(--ls-report-danger);
}

.ls-report-progress__steps li small {
    color: #8a9692;
    font-size: 8px;
}

.ls-report-results__head > span {
    max-width: 54%;
    color: #71807b;
    font-size: 9px;
    line-height: 1.5;
    text-align: right;
}

.ls-report-results__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 12px;
}

.ls-report-results__readiness {
    margin-top: 11px;
    padding: 10px 12px;
    border: 1px solid rgba(158, 117, 59, 0.28);
    border-left-width: 4px;
    border-radius: 9px;
    color: #6d5b3d;
    background: #fcf7ec;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ls-report-results__readiness[data-state="ready"] {
    border-color: rgba(23, 100, 84, 0.38);
    color: var(--ls-report-forest-800);
    background: #edf6f1;
}

.ls-report-result-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(27, 91, 75, 0.16);
    border-radius: 12px;
    background: linear-gradient(145deg, #fff, #f6f8f5);
}

.ls-report-result-card__head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ls-report-result-card__badge {
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    height: 27px;
    border: 1px solid rgba(23, 100, 84, 0.25);
    border-radius: 6px;
    color: var(--ls-report-forest-700);
    background: #f0f7f3;
    font-family: Verdana, sans-serif;
    font-size: 8px;
    font-weight: 800;
}

.ls-report-result-card__head div {
    min-width: 0;
}

.ls-report-result-card__head strong,
.ls-report-result-card__head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-report-result-card__head strong {
    color: #2b443d;
    font-size: 10px;
}

.ls-report-result-card__head small,
.ls-report-result-card__verification,
.ls-report-result-card__meta {
    color: #7b8884;
    font-size: 8px;
    line-height: 1.5;
}

.ls-report-result-card__verification {
    min-height: 25px;
    margin: 9px 0 7px;
    overflow-wrap: anywhere;
}

.ls-report-result-card__verification[data-state="valid"] {
    color: var(--ls-report-forest-700);
}

.ls-report-result-card__verification[data-state="invalid"] {
    color: var(--ls-report-danger);
}

.ls-report-result-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.ls-report-result-card__download,
.ls-report-result-card__direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.ls-report-result-card__download {
    border: 1px solid var(--ls-report-forest-700);
    color: #fff;
    background: var(--ls-report-forest-700);
    cursor: pointer;
}

.ls-report-result-card__download:disabled {
    cursor: wait;
    opacity: 0.65;
}

.ls-report-result-card__direct {
    color: #736346;
    border: 1px solid rgba(158, 117, 59, 0.3);
    background: #fffaf0;
}

.ls-report-result-card__download:focus-visible,
.ls-report-result-card__direct:focus-visible {
    outline: 3px solid rgba(23, 100, 84, 0.16);
    outline-offset: 2px;
}

.ls-report-result-card__meta {
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.ls-report-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 0 0 auto;
    min-height: 57px;
    padding: 10px 18px;
    border-top: 1px solid rgba(24, 85, 70, 0.13);
    background: #f7f5ee;
}

.ls-report-modal__footer > span {
    min-width: 0;
    color: #65736f;
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ls-report-modal__footer > div {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.ls-report-modal__footer-button {
    min-height: 35px;
    padding: 7px 12px;
    border: 1px solid rgba(23, 100, 84, 0.24);
    border-radius: 8px;
    color: var(--ls-report-forest-800);
    background: #fff;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
}

.ls-report-modal__footer-button--primary {
    color: #fff;
    border-color: var(--ls-report-forest-700);
    background: var(--ls-report-forest-700);
}

.ls-report-modal__footer-button:focus-visible {
    outline: 3px solid rgba(23, 100, 84, 0.16);
    outline-offset: 2px;
}

.ls-report-minibar {
    position: fixed;
    z-index: 2147481900;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(330px, calc(100vw - 28px));
    min-height: 58px;
    padding: 10px 13px;
    border: 1px solid rgba(220, 193, 142, 0.56);
    border-radius: 15px;
    color: #fffaf0;
    background: linear-gradient(125deg, var(--ls-report-forest-950), var(--ls-report-forest-800));
    box-shadow: 0 16px 40px rgba(3, 33, 27, 0.32);
    cursor: pointer;
    text-align: left;
}

.ls-report-minibar:focus-visible {
    outline: 3px solid rgba(220, 193, 142, 0.32);
    outline-offset: 3px;
}

.ls-report-minibar__pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ls-report-gold-300);
    box-shadow: 0 0 0 5px rgba(220, 193, 142, 0.13);
    animation: ls-report-dot-pulse 1.5s ease-in-out infinite;
}

.ls-report-minibar__copy {
    min-width: 0;
}

.ls-report-minibar__copy strong,
.ls-report-minibar__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-report-minibar__copy strong {
    font-size: 10px;
}

.ls-report-minibar__copy small {
    margin-top: 2px;
    color: rgba(255, 250, 240, 0.64);
    font-size: 8px;
}

.ls-report-minibar__percent {
    color: var(--ls-report-gold-300);
    font-family: Verdana, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

@keyframes ls-report-gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 180% 50%; }
}

@keyframes ls-report-sheen {
    0%, 28% { transform: translateX(-100%); }
    72%, 100% { transform: translateX(100%); }
}

@keyframes ls-report-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.86); }
}

@media (max-width: 760px) {
    .ls-report-modal__body {
        grid-template-columns: minmax(0, 1fr);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
    }

    .ls-report-modal__brief {
        border-right: 0;
        border-bottom: 1px solid rgba(31, 91, 75, 0.13);
    }

    .ls-report-modal__brief,
    .ls-report-modal__workspace {
        overflow: visible;
        scrollbar-gutter: auto;
    }

    .ls-report-modal__scope ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ls-report-modal__principle {
        margin-top: 15px;
    }
}

@media (max-width: 620px) {
    .ls-report-modal {
        padding:
            max(8px, env(safe-area-inset-top))
            max(8px, env(safe-area-inset-right))
            max(8px, env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left));
    }

    .ls-report-modal__dialog {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 18px;
    }

    .ls-report-modal__header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        padding: max(14px, env(safe-area-inset-top)) 13px 13px;
    }

    .ls-report-modal__brand {
        width: 42px;
        height: 42px;
        border-radius: 14px 8px 14px 8px;
    }

    .ls-report-modal__brand-mark {
        font-size: 15px;
    }

    .ls-report-modal__brand-line,
    .ls-report-modal__heading > p:last-child {
        display: none;
    }

    .ls-report-modal__heading h2 {
        font-size: 16px;
    }

    .ls-report-modal__eyebrow {
        font-size: 7px;
        letter-spacing: 0.11em;
    }

    .ls-report-modal__window-actions {
        gap: 4px;
    }

    .ls-report-modal__icon-button {
        width: 40px;
        height: 40px;
    }

    .ls-report-modal__brief,
    .ls-report-modal__workspace {
        padding: 15px 14px 18px;
    }

    .ls-report-modal__brief {
        padding-bottom: 13px;
    }

    .ls-report-modal__scope,
    .ls-report-modal__principle {
        display: none;
    }

    .ls-report-modal__formats,
    .ls-report-modal__submit-row,
    .ls-report-progress__streams,
    .ls-report-results__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ls-report-modal__scope ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .ls-report-modal__formats {
        gap: 8px;
    }

    .ls-report-format-card {
        min-height: 67px;
    }

    .ls-report-modal__submit-row {
        gap: 9px;
    }

    .ls-report-progress__streams {
        gap: 8px;
    }

    .ls-report-progress__steps {
        max-height: none;
        overflow: visible;
    }

    .ls-report-modal__footer {
        padding: 9px 12px max(9px, env(safe-area-inset-bottom));
    }

    .ls-report-modal__footer > span {
        display: none;
    }

    .ls-report-modal__footer > div {
        width: 100%;
    }

    .ls-report-modal__footer-button {
        flex: 1 1 50%;
    }

    .ls-report-results__head > span {
        max-width: 100%;
        text-align: left;
    }

    .ls-report-results__head {
        flex-direction: column;
        gap: 5px;
    }

    .ls-report-minibar {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 390px) {
    .ls-report-modal__brand {
        display: none;
    }

    .ls-report-modal__header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ls-report-modal__scope ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-height: 520px) {
    .ls-report-modal {
        padding:
            max(7px, env(safe-area-inset-top))
            max(7px, env(safe-area-inset-right))
            max(7px, env(safe-area-inset-bottom))
            max(7px, env(safe-area-inset-left));
    }

    .ls-report-modal__dialog {
        max-height: calc(100vh - 14px);
        max-height: calc(100dvh - 14px);
        border-radius: 16px;
    }

    .ls-report-modal__header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ls-report-modal__footer {
        min-height: 48px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (max-height: 700px) and (min-width: 621px) {
    .ls-report-modal__header {
        padding-top: 13px;
        padding-bottom: 12px;
    }

    .ls-report-modal__brand {
        width: 44px;
        height: 44px;
    }

    .ls-report-modal__brief,
    .ls-report-modal__workspace {
        padding-top: 15px;
        padding-bottom: 16px;
    }

    .ls-report-modal__scope li small,
    .ls-report-modal__principle {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ls-report-modal *,
    .ls-report-modal *::before,
    .ls-report-modal *::after,
    .ls-report-minibar,
    .ls-report-minibar * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    .ls-report-modal__dialog,
    .ls-report-format-card,
    .ls-report-result-card {
        border-width: 2px;
    }
}
