:root {
    --sapro-black: #111111;
    --sapro-grey-900: #262626;
    --sapro-grey-700: #6f6f6f;
    --sapro-grey-600: #6f6f6f;
    --sapro-grey-300: #ddddda;
    --sapro-grey-300-strong: #c9c9c5;
    --sapro-grey-150: #ececea;
    --sapro-grey-050: #f7f7f6;
    --sapro-line-strong: #c9c9c5;
    --sapro-white: #ffffff;
}

.sapro-app,
.sapro-app * {
    box-sizing: border-box;
}

.sapro-app {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--sapro-black);
    background: var(--sapro-white);
    border: 1px solid var(--sapro-grey-300);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.055);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.sapro-topline {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 30px 16px;
    color: var(--sapro-black);
    background: #ffffff;
    border-bottom: 1px solid var(--sapro-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sapro-intro {
    padding: clamp(42px, 7vw, 88px) clamp(24px, 7vw, 82px) clamp(36px, 5vw, 60px);
    background: #ffffff;
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-kicker {
    margin: 0 0 24px !important;
    color: var(--sapro-grey-600);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.19em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sapro-intro h2 {
    max-width: 930px;
    margin: 0 0 24px !important;
    color: var(--sapro-black);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: clamp(31px, 4.7vw, 58px);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.sapro-intro > p:last-child {
    max-width: 760px;
    margin: 0 !important;
    color: var(--sapro-grey-600);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: 0.005em;
}

.sapro-form {
    padding: clamp(34px, 6vw, 68px) clamp(24px, 7vw, 82px);
    background: #ffffff;
}

.sapro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
}

.sapro-field-wide {
    grid-column: 1 / -1;
}

.sapro-field label {
    display: block;
    margin-bottom: 10px;
    color: var(--sapro-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sapro-field input,
.sapro-field select,
.sapro-field textarea,
.sapro-custom-revision input,
.sapro-result {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 15px 16px;
    color: var(--sapro-black);
    background: var(--sapro-grey-050);
    border: 1px solid transparent;
    border-bottom-color: var(--sapro-grey-300-strong);
    border-radius: 0;
    box-shadow: none;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    transition: border-color 150ms ease, background 150ms ease;
}

.sapro-field input::placeholder,
.sapro-field textarea::placeholder,
.sapro-custom-revision input::placeholder {
    color: #9a9a96;
    opacity: 1;
}

.sapro-field input:focus,
.sapro-field select:focus,
.sapro-field textarea:focus,
.sapro-custom-revision input:focus,
.sapro-result:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--sapro-black);
    box-shadow: none;
}

.sapro-field textarea {
    resize: vertical;
}

.sapro-briefing {
    margin-top: 30px;
}

.sapro-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    color: var(--sapro-grey-600);
    font-size: 13px;
    line-height: 1.55;
}

.sapro-check input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--sapro-black);
}

.sapro-actions {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.sapro-action-language {
    min-width: 190px;
}

.sapro-action-language label {
    display: block;
    margin-bottom: 8px;
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sapro-action-language select,
.sapro-action-language input {
    width: 100%;
    min-height: 54px;
    padding: 0 38px 0 14px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 0;
    font: inherit;
    font-size: 13px;
}

.sapro-action-language input {
    padding-right: 14px;
}

.sapro-primary,
.sapro-copy,
.sapro-revision-buttons button,
.sapro-custom-revision button {
    appearance: none;
    border-radius: 0;
    cursor: pointer;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.sapro-primary {
    min-height: 54px;
    padding: 0 28px;
    color: #ffffff;
    background: var(--sapro-black);
    border: 1px solid var(--sapro-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sapro-primary:hover {
    color: var(--sapro-black);
    background: #ffffff;
}

.sapro-primary:disabled,
.sapro-revision button:disabled {
    cursor: wait;
    opacity: 0.45;
}

.sapro-status {
    color: var(--sapro-grey-600);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.sapro-status.is-error {
    color: #8a1f1f;
}

.sapro-result-wrap {
    padding: clamp(34px, 6vw, 68px) clamp(24px, 7vw, 82px);
    background: #fafafa;
    border-top: 1px solid var(--sapro-grey-300);
}

.sapro-result-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.sapro-result-label {
    display: block;
    margin-bottom: 8px;
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sapro-result-head h3 {
    margin: 0 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.025em;
}

.sapro-copy {
    padding: 11px 15px;
    color: var(--sapro-black);
    background: transparent;
    border: 1px solid var(--sapro-grey-300-strong);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sapro-copy:hover {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-result {
    min-height: 390px;
    padding: 25px;
    color: #1b1b1b;
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    resize: vertical;
}

.sapro-revision {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--sapro-grey-300);
}

.sapro-revision > span {
    display: block;
    margin-bottom: 13px;
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sapro-revision-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sapro-revision-buttons button,
.sapro-custom-revision button {
    min-height: 42px;
    padding: 0 15px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    font-size: 12px;
    font-weight: 400;
}

.sapro-revision-buttons button:hover,
.sapro-custom-revision button:hover {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-custom-revision {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 12px;
}

.sapro-custom-revision input {
    min-height: 44px;
}

.sapro-custom-revision button {
    min-width: 130px;
}

.sapro-access-note {
    padding: 20px;
    color: var(--sapro-black);
    background: #f6f6f4;
    border-left: 2px solid var(--sapro-black);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
}

@media (max-width: 720px) {
    .sapro-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .sapro-grid {
        grid-template-columns: 1fr;
    }

    .sapro-field-wide {
        grid-column: auto;
    }

    .sapro-result-head {
        align-items: stretch;
        flex-direction: column;
    }

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

    .sapro-primary,
    .sapro-copy {
        width: 100%;
    }

    .sapro-custom-revision {
        grid-template-columns: 1fr;
    }
}


/* Editorial Editor, Übersetzung und Export */
.sapro-output-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.sapro-output-actions button,
.sapro-editor-toolbar button,
.sapro-translation-inline button {
    appearance:none; min-height:38px; padding:0 13px; border:1px solid var(--sapro-grey-300-strong); border-radius:0;
    color:var(--sapro-black); background:#fff; font:inherit; font-size:11px; cursor:pointer;
    transition:background 150ms ease,color 150ms ease,border-color 150ms ease;
}
.sapro-output-actions button:hover,
.sapro-editor-toolbar button:hover,
.sapro-translation-inline button:hover {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 18px 0 0;
    border-top: 1px solid var(--sapro-grey-300);
}

.sapro-result-footer-label {
    flex: 0 0 auto;
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sapro-result-footer .sapro-output-actions {
    margin-left: auto;
}

.sapro-result-footer .sapro-new-task {
    border-color: var(--sapro-black);
    font-weight: 600;
}
.sapro-editor-toolbar { display:flex; flex-wrap:wrap; gap:6px; padding:10px; border:1px solid var(--sapro-grey-300-strong); border-bottom:0; background:#f7f7f6; }
.sapro-editor-toolbar button strong { font-weight:700; }
.sapro-result {
    min-height:390px; padding:28px; overflow:auto; resize:vertical; border:1px solid var(--sapro-grey-300-strong); background:#fff;
    font-family:"Helvetica Neue",Helvetica,Arial,"Nimbus Sans L",sans-serif; font-size:15px; line-height:1.75; outline:none;
}
.sapro-result:focus { border-color:var(--sapro-black); }
.sapro-result:empty:before { content:"Der generierte und formatierbare Text erscheint hier."; color:#9a9a96; pointer-events:none; }
.sapro-result h2 { margin:0 0 22px; font:400 clamp(25px,3vw,38px)/1.12 "Helvetica Neue",Helvetica,Arial,sans-serif; letter-spacing:-.025em; }
.sapro-result h3 { margin:28px 0 10px; font:600 17px/1.35 "Helvetica Neue",Helvetica,Arial,sans-serif; }
.sapro-result p { margin:0 0 15px; }
.sapro-result ul, .sapro-result ol { margin:0 0 18px 24px; padding:0; }
.sapro-result li { margin:0 0 7px; }
.sapro-result blockquote {
    margin: 22px 0;
    padding: 16px 19px;
    border-left: 3px solid #777;
    background: #f4f4f2;
    font-weight: 500;
}

.sapro-translation-inline {
    display: flex;
    align-items: stretch;
    width: fit-content;
    gap: 6px;
    margin: 0 0 12px;
}

.sapro-translation-inline select {
    min-height: 42px;
    padding: 0 34px 0 12px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 0;
    font: inherit;
    font-size: 12px;
}

.sapro-custom-language-field[hidden], .sapro-docx[hidden] { display:none!important; }
.sapro-app.is-rtl .sapro-result { text-align:right; }
@media(max-width:720px){
    .sapro-result-footer{align-items:stretch;flex-direction:column}
    .sapro-result-footer .sapro-output-actions{width:100%;margin-left:0;justify-content:flex-start}
    .sapro-output-actions{width:100%;justify-content:flex-start}.sapro-output-actions button{flex:1 1 calc(50% - 8px)}.sapro-action-language{width:100%;min-width:0}.sapro-translation-inline{width:100%;margin-left:0}.sapro-translation-inline select{flex:1 1 auto}
}

/* Temporärer Bild- und Textupload */
.sapro-upload-section {
    margin-top: 30px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300);
}

.sapro-upload-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.sapro-upload-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sapro-upload-heading strong {
    display: block;
    color: var(--sapro-black);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.sapro-upload-heading small {
    color: var(--sapro-grey-600);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.sapro-upload-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 16px 18px;
    cursor: pointer;
    background: var(--sapro-grey-050);
    border: 1px dashed var(--sapro-line-strong);
    transition: background 150ms ease, border-color 150ms ease;
}

.sapro-upload-box:hover,
.sapro-upload-box.has-file {
    background: #f1f1ef;
    border-color: var(--sapro-black);
}

.sapro-upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.sapro-upload-action {
    color: var(--sapro-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.sapro-upload-formats {
    color: var(--sapro-grey-600);
    font-size: 12px;
}

.sapro-upload-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding: 11px 13px;
    background: #f1f1ef;
}

.sapro-upload-selected[hidden] {
    display: none !important;
}

.sapro-upload-filename {
    min-width: 0;
    overflow: hidden;
    color: var(--sapro-black);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sapro-upload-remove {
    appearance: none;
    padding: 0;
    cursor: pointer;
    color: var(--sapro-black);
    background: transparent;
    border: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sapro-upload-usage {
    margin-top: 18px;
}

@media (max-width: 720px) {
    .sapro-upload-heading,
    .sapro-upload-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .sapro-upload-heading small {
        white-space: normal;
    }
}

/* Sichtbare, rein lokale Prozessanzeige – keine zusätzlichen Server- oder API-Aufrufe */
.sapro-process {
    margin-top: 22px;
    padding: 22px 24px 20px;
    background: #fafafa;
    border: 1px solid rgba(20, 20, 20, 0.14);
}

.sapro-process[hidden] {
    display: none !important;
}

.sapro-process-head {
    display: grid;
    gap: 5px;
}

.sapro-process-kicker {
    color: rgba(20, 20, 20, 0.52);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.sapro-process-title {
    color: #141414;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.sapro-process-current {
    min-height: 1.45em;
    margin: 0;
    color: rgba(20, 20, 20, 0.64);
    font-size: 13px;
    line-height: 1.45;
}

.sapro-process-track {
    position: relative;
    height: 2px;
    margin: 16px 0 17px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.12);
}

.sapro-process-track span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: #141414;
    animation: sapro-process-track 1.7s ease-in-out infinite;
}

@keyframes sapro-process-track {
    0% { transform: translateX(-110%); }
    55% { transform: translateX(115%); }
    100% { transform: translateX(245%); }
}

.sapro-process-steps li[hidden] {
    display: none !important;
}

.sapro-process-steps {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sapro-process-steps li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    color: rgba(20, 20, 20, 0.42);
    font-size: 13px;
    line-height: 1.42;
    transition: color 220ms ease, opacity 220ms ease;
}

.sapro-process-steps li.is-active {
    color: #141414;
}

.sapro-process-steps li.is-complete {
    color: rgba(20, 20, 20, 0.68);
}

.sapro-process-dot {
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border: 1px solid rgba(20, 20, 20, 0.34);
    border-radius: 50%;
    background: transparent;
}

.sapro-process-steps li.is-active .sapro-process-dot {
    border-color: #141414;
    background: #141414;
    animation: sapro-process-pulse 1.35s ease-in-out infinite;
}

.sapro-process-steps li.is-complete .sapro-process-dot {
    border-color: rgba(20, 20, 20, 0.58);
    background: rgba(20, 20, 20, 0.58);
}

@keyframes sapro-process-pulse {
    0%, 100% { transform: scale(0.82); opacity: 0.58; }
    50% { transform: scale(1.16); opacity: 1; }
}

.sapro-process-note {
    margin: 16px 0 0;
    color: rgba(20, 20, 20, 0.5);
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .sapro-process {
        padding: 19px 18px 18px;
    }

    .sapro-process-title {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sapro-process-track span,
    .sapro-process-steps li.is-active .sapro-process-dot {
        animation: none;
    }

    .sapro-process-track span {
        width: 100%;
        transform: none;
    }
}


/* SmartAssist Pro – intelligente, formulargebundene Sprachsteuerung */
.sapro-office-assist {
    margin: 0 0 38px;
    padding: 26px;
    background: #f7f7f6;
    border: 1px solid var(--sapro-grey-300);
}

.sapro-office-assist-head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
    gap: 28px;
    align-items: end;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-office-assist-head span,
.sapro-office-preview-block > span,
.sapro-speech-label span,
.sapro-speech-controls label > span {
    display: block;
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sapro-office-assist-head h3 {
    margin: 7px 0 0 !important;
    color: var(--sapro-black);
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    font-size: clamp(25px, 3.2vw, 38px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.028em;
}

.sapro-office-assist-head p {
    margin: 0 !important;
    color: var(--sapro-grey-600);
    font-size: 13px;
    line-height: 1.62;
}

.sapro-office-assist-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.sapro-office-record,
.sapro-office-apply,
.sapro-office-read-answer,
.sapro-office-pause,
.sapro-office-resume,
.sapro-office-stop,
.sapro-office-discard,
.sapro-speech-controls button {
    appearance: none;
    border-radius: 0;
    cursor: pointer;
    font-family: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.sapro-office-record {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 50px;
    padding: 0 20px;
    color: #ffffff;
    background: var(--sapro-black);
    border: 1px solid var(--sapro-black);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sapro-office-record:hover {
    color: var(--sapro-black);
    background: #ffffff;
}

.sapro-office-record.is-recording {
    color: #ffffff;
    background: #7d1e1e;
    border-color: #7d1e1e;
}

.sapro-mic-dot {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 8px;
}

.sapro-mic-dot::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 7px;
    height: 5px;
    border: 1.5px solid currentColor;
    border-top: 0;
    border-radius: 0 0 7px 7px;
    transform: translateX(-50%);
}

.sapro-office-record.is-recording .sapro-mic-dot {
    animation: sapro-office-pulse 1.15s ease-in-out infinite;
}

@keyframes sapro-office-pulse {
    0%, 100% { opacity: 0.62; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.08); }
}

.sapro-office-status {
    color: var(--sapro-grey-600);
    font-size: 12px;
    line-height: 1.5;
}

.sapro-office-status.is-error {
    color: #8a1f1f;
}

.sapro-office-preview {
    margin-top: 22px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300);
}

.sapro-office-preview[hidden],
.sapro-office-changes[hidden],
.sapro-office-preview-actions button[hidden] {
    display: none !important;
}

.sapro-office-preview-block + .sapro-office-preview-block {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid var(--sapro-grey-150);
}

.sapro-office-preview-block p {
    margin: 7px 0 0 !important;
    color: var(--sapro-black);
    font-size: 13px;
    line-height: 1.62;
    white-space: pre-wrap;
}

.sapro-office-changes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sapro-office-changes li {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 12px 13px;
    background: #f7f7f6;
    border-left: 2px solid var(--sapro-black);
}

.sapro-office-changes strong {
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sapro-office-changes span {
    color: var(--sapro-black);
    font-size: 12px;
    line-height: 1.48;
    white-space: pre-wrap;
}

.sapro-office-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.sapro-office-apply,
.sapro-office-read-answer,
.sapro-office-pause,
.sapro-office-resume,
.sapro-office-stop,
.sapro-office-discard {
    min-height: 42px;
    padding: 0 15px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sapro-office-apply {
    color: #ffffff;
    background: var(--sapro-black);
    border: 1px solid var(--sapro-black);
}

.sapro-office-read-answer,
.sapro-office-pause,
.sapro-office-resume,
.sapro-office-stop,
.sapro-office-discard {
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
}

.sapro-office-apply:hover {
    color: var(--sapro-black);
    background: #ffffff;
}

.sapro-office-read-answer:hover:not(:disabled),
.sapro-office-pause:hover:not(:disabled),
.sapro-office-resume:hover:not(:disabled),
.sapro-office-stop:hover:not(:disabled),
.sapro-office-discard:hover:not(:disabled) {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-office-privacy {
    margin: 17px 0 0 !important;
    color: rgba(20, 20, 20, 0.52);
    font-size: 10px;
    line-height: 1.55;
}

/* SmartAssist Pro – Sprachausgabe */
.sapro-speech-panel {
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1.58fr);
    gap: 18px 24px;
    align-items: end;
    padding: 15px 16px;
    background: #f7f7f6;
    border: 1px solid var(--sapro-grey-300-strong);
    border-bottom: 0;
}

.sapro-speech-label strong {
    display: block;
    margin-top: 5px;
    color: var(--sapro-black);
    font-size: 14px;
    font-weight: 400;
}

.sapro-speech-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.sapro-speech-controls label {
    display: grid;
    gap: 4px;
}

.sapro-speech-controls select {
    min-height: 38px;
    padding: 0 30px 0 10px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 0;
    font: inherit;
    font-size: 11px;
}

.sapro-speech-controls button {
    align-self: end;
    min-height: 38px;
    padding: 0 12px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    font-size: 10px;
}

.sapro-speech-controls button:hover:not(:disabled) {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-speech-controls button:disabled,
.sapro-office-record:disabled,
.sapro-office-preview-actions button:disabled {
    cursor: wait;
    opacity: 0.42;
}

.sapro-speech-status {
    grid-column: 1 / -1;
    color: var(--sapro-grey-600);
    font-size: 10px;
    line-height: 1.45;
}

.sapro-custom-revision {
    grid-template-columns: minmax(0, 1fr) auto;
}


@media (max-width: 820px) {
    .sapro-office-assist-head,
    .sapro-speech-panel {
        grid-template-columns: 1fr;
    }

    .sapro-speech-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .sapro-office-assist {
        padding: 20px 18px;
    }

    .sapro-office-assist-controls,
    .sapro-office-preview-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sapro-office-record,
    .sapro-office-preview-actions button {
        width: 100%;
        justify-content: center;
    }

    .sapro-office-changes {
        grid-template-columns: 1fr;
    }

    .sapro-speech-controls label {
        flex: 1 1 42%;
    }

    .sapro-speech-controls select,
    .sapro-speech-controls button {
        width: 100%;
    }

    .sapro-speech-controls button {
        flex: 1 1 45%;
    }

    .sapro-custom-revision {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sapro-office-record.is-recording .sapro-mic-dot {
        animation: none;
    }
}

/* SmartAssist Pro 1.2 – einheitliches Formular mit optionalem Assistenten */
.sapro-assistant-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 0 0 34px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-assistant-entry-text {
    display: grid;
    gap: 6px;
    max-width: 690px;
}

.sapro-assistant-entry-text > span,
.sapro-dialog-head span,
.sapro-dialog-proposal-head > span {
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sapro-assistant-entry-text p {
    margin: 0 !important;
    color: var(--sapro-grey-600);
    font-size: 12px;
    line-height: 1.55;
}

.sapro-assistant-launch {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 17px;
    color: #ffffff;
    background: var(--sapro-black);
    border: 1px solid var(--sapro-black);
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition: color 150ms ease, background 150ms ease;
}

.sapro-assistant-launch:hover,
.sapro-assistant-launch:focus-visible,
.sapro-assistant-launch.is-open {
    color: var(--sapro-black);
    background: #ffffff;
    outline: none;
}

.sapro-dialog-panel[hidden],
.sapro-dialog-proposal[hidden] {
    display: none !important;
}

.sapro-dialog-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    padding: 0;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-black);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.sapro-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-dialog-head h3 {
    margin: 5px 0 0 !important;
    font-family: inherit;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.sapro-dialog-close {
    min-height: 34px;
    padding: 0 10px;
    color: var(--sapro-grey-600);
    background: transparent;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sapro-dialog-close:hover,
.sapro-dialog-close:focus-visible {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
    outline: none;
}

.sapro-dialog-intro {
    margin: 0 !important;
    padding: 12px 18px 13px;
    color: var(--sapro-grey-600);
    background: #ffffff;
    border-bottom: 1px solid var(--sapro-grey-300);
    font-size: 11px;
    line-height: 1.55;
}

.sapro-dialog-history {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    max-height: 38vh;
    overflow-y: auto;
    padding: 14px;
    background: #f4f4f2;
    scroll-behavior: smooth;
}

.sapro-dialog-message {
    width: 88%;
    padding: 12px 13px;
    border: 1px solid var(--sapro-grey-300);
}

.sapro-dialog-message.is-assistant {
    align-self: flex-start;
    background: #ffffff;
}

.sapro-dialog-message.is-user {
    align-self: flex-end;
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-dialog-message.is-pending {
    opacity: 0.58;
}

.sapro-dialog-message > span {
    display: block;
    margin-bottom: 6px;
    color: var(--sapro-grey-600);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sapro-dialog-message.is-user > span {
    color: rgba(255, 255, 255, 0.65);
}

.sapro-dialog-message p {
    margin: 0 !important;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.58;
}

.sapro-dialog-proposal {
    max-height: 32vh;
    overflow-y: auto;
    padding: 15px;
    background: #ffffff;
    border-top: 2px solid var(--sapro-black);
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-dialog-proposal-head {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
}

.sapro-dialog-proposal-head strong {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.sapro-dialog-proposal-changes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0 0 12px !important;
    padding: 0 !important;
    list-style: none;
    background: var(--sapro-grey-300);
}

.sapro-dialog-proposal-changes li {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    background: #f7f7f6;
}

.sapro-dialog-proposal-changes strong {
    color: var(--sapro-grey-600);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.sapro-dialog-proposal-changes span {
    font-size: 11px;
    line-height: 1.45;
}

.sapro-dialog-proposal-actions,
.sapro-dialog-composer-actions,
.sapro-dialog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.sapro-dialog-proposal-actions button,
.sapro-dialog-composer-actions button,
.sapro-dialog-controls button {
    min-height: 38px;
    padding: 0 12px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sapro-dialog-apply,
.sapro-dialog-send {
    color: #ffffff !important;
    background: var(--sapro-black) !important;
    border-color: var(--sapro-black) !important;
}

.sapro-dialog-proposal-actions button:hover:not(:disabled),
.sapro-dialog-composer-actions button:hover:not(:disabled),
.sapro-dialog-controls button:hover:not(:disabled) {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-dialog-apply:hover:not(:disabled),
.sapro-dialog-send:hover:not(:disabled) {
    color: var(--sapro-black) !important;
    background: #ffffff !important;
}

.sapro-dialog-composer {
    flex: 0 0 auto;
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid var(--sapro-grey-300);
}

.sapro-dialog-composer > label {
    display: block;
    margin-bottom: 7px;
    color: var(--sapro-grey-600);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sapro-dialog-input {
    width: 100%;
    min-height: 72px;
    max-height: 150px;
    margin: 0 0 9px;
    padding: 11px 12px;
    color: var(--sapro-black);
    background: #f7f7f6;
    border: 1px solid transparent;
    border-bottom-color: var(--sapro-grey-300-strong);
    border-radius: 0;
    resize: vertical;
    font: inherit;
    font-size: 12px;
    line-height: 1.55;
}

.sapro-dialog-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--sapro-black);
}

.sapro-dialog-record {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sapro-dialog-record.is-recording {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-dialog-record.is-recording .sapro-mic-dot {
    animation: sapro-office-pulse 1.15s ease-in-out infinite;
}

.sapro-dialog-controls {
    flex: 0 0 auto;
    padding: 0 14px 12px;
    background: #ffffff;
}

.sapro-dialog-controls label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
    color: var(--sapro-grey-600);
    font-size: 10px;
}

.sapro-dialog-controls input {
    width: 15px;
    height: 15px;
    accent-color: var(--sapro-black);
}

.sapro-dialog-status {
    flex: 1 1 100%;
    min-height: 16px;
    color: var(--sapro-grey-600);
    font-size: 10px;
    line-height: 1.45;
}

.sapro-dialog-status.is-error {
    color: #8a1f1f;
}

.sapro-dialog-panel .sapro-office-privacy {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 14px 13px;
    color: var(--sapro-grey-600);
    background: #ffffff;
    font-size: 9px;
    line-height: 1.45;
}

.sapro-field.is-dialog-updated,
.sapro-check.is-dialog-updated {
    animation: sapro-dialog-field-highlight 3.2s ease-out;
}

@keyframes sapro-dialog-field-highlight {
    0%, 35% { box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.24); }
    100% { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0); }
}

.sapro-assistant-launch:disabled,
.sapro-dialog-record:disabled,
.sapro-dialog-send:disabled,
.sapro-dialog-proposal-actions button:disabled,
.sapro-dialog-controls button:disabled {
    cursor: wait;
    opacity: 0.46;
}

@media (max-width: 720px) {
    .sapro-assistant-entry {
        align-items: stretch;
        flex-direction: column;
    }

    .sapro-assistant-launch {
        width: 100%;
    }

    .sapro-dialog-panel {
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .sapro-dialog-history {
        min-height: 170px;
        max-height: 34vh;
    }

    .sapro-dialog-message {
        width: 94%;
    }

    .sapro-dialog-proposal-actions,
    .sapro-dialog-composer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sapro-dialog-proposal-actions button,
    .sapro-dialog-composer-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sapro-dialog-record.is-recording .sapro-mic-dot,
    .sapro-field.is-dialog-updated,
    .sapro-check.is-dialog-updated {
        animation: none;
    }
}

/* SmartAssist Pro: echter Realtime-Dialog */
.sapro-realtime-panel {
    width: min(520px, calc(100vw - 32px));
}

.sapro-realtime-stage {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 14px;
    text-align: left;
    background: var(--sapro-grey-050);
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-realtime-orb {
    position: relative;
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 50%;
    background: #ffffff;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.sapro-realtime-orb::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sapro-black);
}

.sapro-realtime-orb span {
    position: absolute;
    inset: 4px;
    border: 1px solid var(--sapro-grey-300);
    border-radius: 50%;
    opacity: 0;
}

.sapro-realtime-state {
    color: var(--sapro-black);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.sapro-realtime-hint {
    max-width: none;
    color: var(--sapro-grey-600);
    font-size: 10px;
    line-height: 1.55;
}

.sapro-realtime-stage[data-state="connecting"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="working"] .sapro-realtime-orb {
    animation: sapro-realtime-breathe 1.45s ease-in-out infinite;
}

.sapro-realtime-stage[data-state="connected"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="listening"] .sapro-realtime-orb {
    border-color: var(--sapro-black);
}

.sapro-realtime-stage[data-state="listening"] .sapro-realtime-orb span,
.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb span {
    animation: sapro-realtime-ripple 1.8s ease-out infinite;
}

.sapro-realtime-stage[data-state="listening"] .sapro-realtime-orb span:nth-child(2),
.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb span:nth-child(2) {
    animation-delay: 0.38s;
}

.sapro-realtime-stage[data-state="listening"] .sapro-realtime-orb span:nth-child(3),
.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb span:nth-child(3) {
    animation-delay: 0.76s;
}

.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb::after {
    background: #ffffff;
}

.sapro-realtime-stage[data-state="muted"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="ended"] .sapro-realtime-orb {
    opacity: 0.58;
}

.sapro-realtime-stage[data-state="error"] {
    background: #fff8f8;
}

.sapro-realtime-stage[data-state="error"] .sapro-realtime-orb {
    border-color: #8a1f1f;
}

.sapro-realtime-stage[data-state="error"] .sapro-realtime-orb::after {
    background: #8a1f1f;
}

.sapro-realtime-audio {
    display: none;
}

.sapro-realtime-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 12px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-realtime-controls button,
.sapro-realtime-transcript-head button {
    min-height: 38px;
    padding: 0 11px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sapro-realtime-controls button:hover:not(:disabled),
.sapro-realtime-controls button:focus-visible,
.sapro-realtime-transcript-head button:hover,
.sapro-realtime-transcript-head button:focus-visible {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
    outline: none;
}

.sapro-realtime-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.sapro-realtime-end {
    color: #ffffff !important;
    background: var(--sapro-black) !important;
    border-color: var(--sapro-black) !important;
}

.sapro-realtime-end:hover:not(:disabled),
.sapro-realtime-end:focus-visible {
    color: var(--sapro-black) !important;
    background: #ffffff !important;
}

.sapro-realtime-transcript-wrap {
    min-height: 150px;
    background: #f4f4f2;
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-realtime-transcript-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--sapro-grey-300);
}

.sapro-realtime-transcript-head > span {
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.sapro-realtime-transcript-head button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 8px;
}

.sapro-realtime-transcript {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 112px;
    max-height: 28vh;
    overflow-y: auto;
    padding: 12px 14px 15px;
    scroll-behavior: smooth;
}

.sapro-realtime-empty {
    margin: auto 0 !important;
    color: var(--sapro-grey-600);
    text-align: center;
    font-size: 10px;
    line-height: 1.55;
}

.sapro-realtime-turn {
    width: 88%;
    padding: 10px 11px;
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300);
}

.sapro-realtime-turn.is-user {
    align-self: flex-end;
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-realtime-turn.is-assistant {
    align-self: flex-start;
}

.sapro-realtime-turn > span {
    display: block;
    margin-bottom: 5px;
    color: var(--sapro-grey-600);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sapro-realtime-turn.is-user > span {
    color: rgba(255, 255, 255, 0.65);
}

.sapro-realtime-turn p {
    margin: 0 !important;
    white-space: pre-wrap;
    font-size: 11px;
    line-height: 1.55;
}

@keyframes sapro-realtime-breathe {
    0%, 100% { transform: scale(0.94); }
    50% { transform: scale(1.04); }
}

@keyframes sapro-realtime-ripple {
    0% { transform: scale(0.72); opacity: 0.5; }
    80%, 100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 720px) {
    .sapro-realtime-panel {
        width: calc(100vw - 16px);
    }

    .sapro-realtime-stage {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 10px 12px;
    }

    .sapro-realtime-orb {
        width: 34px;
        height: 34px;
    }

    .sapro-realtime-controls {
        grid-template-columns: 1fr;
    }

    .sapro-realtime-turn {
        width: 95%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sapro-realtime-stage .sapro-realtime-orb,
    .sapro-realtime-stage .sapro-realtime-orb span {
        animation: none !important;
    }
}

/* SmartAssist Pro 2.0 – schlanke Quellen- und Qualitätslogik */
.sapro-web-research {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.88);
    align-items: flex-start;
}
.sapro-web-research > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sapro-web-research strong {
    font-size: 14px;
    line-height: 1.35;
}
.sapro-web-research small {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.72;
}
.sapro-result a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sapro-result h3 + ol:last-child {
    font-size: 13px;
    line-height: 1.5;
}

/* SmartAssist Pro 3.0 – sichtbare Premium-Arbeitsintelligenz */
:root {
    --sapro-plus: #2596be;
    --sapro-plus-dark: #0e5d78;
    --sapro-plus-soft: #eaf6fa;
    --sapro-plus-glow: rgba(37, 150, 190, 0.18);
    --sapro-ink: #10232c;
}

.sapro-app {
    border: 1px solid rgba(16, 35, 44, 0.12);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(14, 45, 58, 0.10);
}

.sapro-topline {
    align-items: center;
    min-height: 58px;
    padding: 14px 28px;
    color: var(--sapro-ink);
    border-bottom-color: rgba(16, 35, 44, 0.10);
    letter-spacing: 0.13em;
}

.sapro-brand-lockup {
    font-size: 11px;
}

.sapro-brand-lockup b {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: 7px;
    padding: 0 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--sapro-plus), #55b5d2);
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.16em;
}

.sapro-premium-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #526a74;
}

.sapro-premium-status i {
    width: 7px;
    height: 7px;
    background: var(--sapro-plus);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--sapro-plus-glow);
}

.sapro-intro {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(37, 150, 190, 0.12), transparent 27%),
        linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}

.sapro-intro::after {
    content: "+";
    position: absolute;
    right: clamp(22px, 7vw, 80px);
    bottom: -62px;
    color: rgba(37, 150, 190, 0.055);
    font-size: clamp(180px, 25vw, 340px);
    font-weight: 200;
    line-height: 1;
    pointer-events: none;
}

.sapro-pro-signature {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.sapro-pro-signature span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 0 11px;
    color: #fff;
    background: var(--sapro-plus);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.sapro-pro-signature em {
    color: #607680;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sapro-intro h2,
.sapro-intro > p,
.sapro-kicker {
    position: relative;
    z-index: 1;
}

.sapro-assistant-entry {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 24px 26px;
    background: linear-gradient(135deg, #0e2530 0%, #153d4d 62%, #17647d 100%);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(14, 45, 58, 0.18);
}

.sapro-assistant-entry::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    top: -90px;
    background: radial-gradient(circle, rgba(94, 200, 232, 0.30), transparent 66%);
    pointer-events: none;
}

.sapro-assistant-entry-text > span,
.sapro-assistant-entry-text p {
    position: relative;
    z-index: 1;
    color: #fff;
}

.sapro-assistant-entry-text p {
    color: rgba(255, 255, 255, 0.72);
}

.sapro-live-badge {
    display: inline-flex;
    margin-left: 9px;
    padding: 4px 8px;
    color: #bcefff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(188, 239, 255, 0.22);
    border-radius: 999px;
    font-size: 8px;
    letter-spacing: 0.10em;
    vertical-align: middle;
}

.sapro-assistant-launch {
    position: relative;
    z-index: 1;
    color: #0e3747;
    background: #fff;
    border-color: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.sapro-assistant-launch:hover {
    color: #fff;
    background: var(--sapro-plus);
    border-color: var(--sapro-plus);
}

.sapro-dialog-panel {
    border: 1px solid rgba(37, 150, 190, 0.24);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(14, 45, 58, 0.22);
}

.sapro-realtime-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -2px 0 18px;
}

.sapro-realtime-capabilities span {
    padding: 6px 9px;
    color: var(--sapro-plus-dark);
    background: var(--sapro-plus-soft);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sapro-realtime-stage[data-state="researching"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="working"] .sapro-realtime-orb {
    background: var(--sapro-plus);
    box-shadow: 0 0 0 8px var(--sapro-plus-glow), 0 10px 28px rgba(37, 150, 190, 0.24);
}

.sapro-realtime-research-card {
    width: 94%;
    margin: 10px auto;
    padding: 13px 14px;
    background: linear-gradient(135deg, #effafd, #ffffff);
    border: 1px solid rgba(37, 150, 190, 0.23);
    border-radius: 12px;
}

.sapro-realtime-research-card > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.sapro-realtime-research-card span {
    color: var(--sapro-plus-dark);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.sapro-realtime-research-card strong {
    color: #31535f;
    font-size: 10px;
}

.sapro-realtime-research-card ul {
    margin: 0;
    padding-left: 16px;
}

.sapro-realtime-research-card li {
    margin: 4px 0;
    font-size: 10px;
}

.sapro-realtime-research-card a {
    color: var(--sapro-plus-dark);
    text-decoration: none;
}

.sapro-field input,
.sapro-field select,
.sapro-field textarea,
.sapro-custom-revision input,
.sapro-result,
.sapro-action-language select,
.sapro-action-language input {
    border-radius: 10px;
}

.sapro-field input:focus,
.sapro-field select:focus,
.sapro-field textarea:focus,
.sapro-custom-revision input:focus,
.sapro-result:focus {
    border-color: var(--sapro-plus);
    box-shadow: 0 0 0 3px var(--sapro-plus-glow);
}

.sapro-primary {
    border-color: var(--sapro-plus);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sapro-plus-dark), var(--sapro-plus));
    box-shadow: 0 12px 28px rgba(37, 150, 190, 0.24);
}

.sapro-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--sapro-plus), #4db5d3);
    border-color: var(--sapro-plus);
}

.sapro-web-research {
    background: linear-gradient(135deg, rgba(234, 246, 250, 0.80), #fff);
    border-color: rgba(37, 150, 190, 0.22);
}

.sapro-web-research input {
    accent-color: var(--sapro-plus);
}

.sapro-result-wrap {
    padding-top: clamp(28px, 5vw, 52px);
    background: linear-gradient(180deg, #f6fafc 0%, #ffffff 36%);
}

.sapro-quality-ribbon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 20px;
    color: #fff;
    background: linear-gradient(135deg, #0f2f3c, #13556b 72%, #177b99);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(14, 45, 58, 0.18);
}

.sapro-quality-seal {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 15px;
}

.sapro-quality-seal span {
    font-size: 28px;
    font-weight: 200;
    line-height: 1;
}

.sapro-quality-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sapro-quality-copy > span {
    color: #aee9fb;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.sapro-quality-copy strong {
    font-size: 17px;
    font-weight: 500;
}

.sapro-quality-copy small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.45;
}

.sapro-quality-metrics {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 16px;
}

.sapro-quality-metrics span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 58px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.sapro-quality-metrics b {
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.sapro-result-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
    padding: 5px;
    overflow-x: auto;
    background: #edf3f5;
    border-radius: 13px;
}

.sapro-result-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 16px;
    color: #60727a;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.sapro-result-tabs button.is-active {
    color: var(--sapro-ink);
    background: #fff;
    box-shadow: 0 5px 16px rgba(14, 45, 58, 0.08);
}

.sapro-tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: var(--sapro-plus-dark);
    background: var(--sapro-plus-soft);
    border-radius: 999px;
    font-size: 9px;
}

.sapro-result-panel {
    min-height: 300px;
    padding: 26px;
    background: #fff;
    border: 1px solid rgba(16, 35, 44, 0.10);
    border-radius: 16px;
}

.sapro-result-panel[hidden] {
    display: none !important;
}

.sapro-result-panel[data-result-panel="document"] {
    padding: 0;
    background: transparent;
    border: 0;
}

.sapro-insight-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.sapro-insight-head > span {
    display: block;
    margin-bottom: 8px;
    color: var(--sapro-plus-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.sapro-insight-head h3 {
    margin: 0 0 10px !important;
    color: var(--sapro-ink);
    font-size: 28px;
    font-weight: 350;
    letter-spacing: -0.025em;
}

.sapro-insight-head p {
    margin: 0 !important;
    color: #63767f;
    font-size: 14px;
    line-height: 1.65;
}

.sapro-insight-grid,
.sapro-audit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sapro-insight-grid article,
.sapro-audit-grid article {
    padding: 20px;
    background: #f7fafb;
    border-radius: 13px;
}

.sapro-insight-grid article > span,
.sapro-audit-grid article > span,
.sapro-source-block > span {
    display: block;
    margin-bottom: 12px;
    color: #4b616b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sapro-insight-grid ul,
.sapro-audit-grid ul,
.sapro-open-points-list {
    margin: 0;
    padding-left: 19px;
}

.sapro-insight-grid li,
.sapro-audit-grid li,
.sapro-open-points-list li {
    margin: 8px 0;
    color: #263e48;
    font-size: 13px;
    line-height: 1.55;
}

.sapro-insight-grid li.is-empty,
.sapro-audit-grid li.is-empty {
    color: #71838b;
}

.sapro-open-state {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 19px 20px;
    color: #1d5b46;
    background: #effaf5;
    border: 1px solid #ccecdf;
    border-radius: 13px;
}

.sapro-open-state strong {
    font-size: 14px;
}

.sapro-open-state span {
    font-size: 12px;
    line-height: 1.5;
}

.sapro-open-state[hidden],
.sapro-open-points-list[hidden] {
    display: none !important;
}

.sapro-open-points-list:not([hidden]) {
    padding: 18px 20px 18px 40px;
    background: #fff8ee;
    border: 1px solid #f0dcc1;
    border-radius: 13px;
}

.sapro-source-block {
    margin-top: 18px;
    padding: 20px;
    background: #f7fafb;
    border-radius: 13px;
}

.sapro-source-list {
    margin: 0;
    padding-left: 21px;
}

.sapro-source-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin: 9px 0;
    color: #405761;
    font-size: 12px;
}

.sapro-source-list a {
    color: var(--sapro-plus-dark);
    font-weight: 600;
    text-decoration: none;
}

.sapro-source-list a:hover {
    text-decoration: underline;
}

.sapro-source-list span {
    color: #87979e;
    font-size: 10px;
}

.sapro-no-sources {
    margin: 0 !important;
    color: #71838b;
    font-size: 12px;
}

.sapro-inline-citation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    margin: 0 2px;
    color: var(--sapro-plus-dark) !important;
    background: var(--sapro-plus-soft);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    vertical-align: 1px;
}

.sapro-result-footer {
    margin-top: 22px;
    padding-top: 20px;
}

.sapro-copy,
.sapro-revision-buttons button,
.sapro-custom-revision button,
.sapro-output-actions button,
.sapro-editor-toolbar button,
.sapro-speech-controls button {
    border-radius: 8px;
}

@media (max-width: 900px) {
    .sapro-quality-ribbon {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .sapro-quality-metrics {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }
}

@media (max-width: 720px) {
    .sapro-app {
        border-radius: 14px;
    }
    .sapro-topline {
        padding: 12px 16px;
    }
    .sapro-premium-status {
        font-size: 8px;
    }
    .sapro-pro-signature {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .sapro-assistant-entry {
        padding: 20px;
        border-radius: 14px;
    }
    .sapro-live-badge {
        display: flex;
        width: fit-content;
        margin: 7px 0 0;
    }
    .sapro-quality-ribbon {
        padding: 16px;
        border-radius: 14px;
    }
    .sapro-quality-seal {
        width: 42px;
        height: 42px;
    }
    .sapro-quality-metrics {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .sapro-quality-metrics span {
        min-width: 0;
        font-size: 7px;
    }
    .sapro-result-tabs {
        justify-content: flex-start;
    }
    .sapro-result-tabs button {
        padding: 0 12px;
    }
    .sapro-result-panel {
        padding: 20px;
        border-radius: 13px;
    }
    .sapro-insight-grid,
    .sapro-audit-grid {
        grid-template-columns: 1fr;
    }
    .sapro-source-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* SmartAssist Pro 1.1 – Projekte, Lizenzfunktionen und Sprachkontingent */
.sapro-projects {
    margin: 0 0 24px;
    padding: 22px;
    background: #fbfbfa;
    border: 1px solid var(--sapro-grey-300);
    border-radius: 12px;
}

.sapro-projects-head,
.sapro-project-controls,
.sapro-project-create,
.sapro-voice-quota {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.sapro-projects-head {
    margin-bottom: 16px;
}

.sapro-projects-head div > span,
.sapro-project-memory > span {
    display: block;
    margin-bottom: 4px;
    color: var(--sapro-grey-600);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sapro-projects-head strong {
    font-size: 22px;
    font-weight: 400;
}

.sapro-projects-head small,
.sapro-project-memory small {
    color: var(--sapro-grey-600);
    font-size: 12px;
    line-height: 1.5;
}

.sapro-project-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.sapro-project-controls select,
.sapro-project-create input,
.sapro-project-memory textarea {
    min-height: 44px;
    padding: 10px 12px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 8px;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
}

.sapro-project-controls select {
    min-width: min(360px, 100%);
}

.sapro-project-controls button,
.sapro-project-create button,
.sapro-voice-quota-link {
    min-height: 42px;
    padding: 0 15px;
    color: var(--sapro-black);
    background: #ffffff;
    border: 1px solid var(--sapro-grey-300-strong);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    text-decoration: none;
}

.sapro-project-controls button:hover,
.sapro-project-create button:hover,
.sapro-voice-quota-link:hover {
    color: #ffffff;
    background: var(--sapro-black);
    border-color: var(--sapro-black);
}

.sapro-project-controls button:disabled,
.sapro-project-create button:disabled {
    cursor: default;
    opacity: 0.42;
}

.sapro-project-create {
    justify-content: flex-start;
    margin-top: 14px;
}

.sapro-project-create input {
    width: min(420px, 100%);
}

.sapro-project-memory {
    display: block;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--sapro-grey-300);
}

.sapro-project-memory textarea {
    width: 100%;
    min-height: 86px;
    margin: 6px 0 5px;
    resize: vertical;
}

.sapro-project-status {
    min-height: 18px;
    margin: 12px 0 0 !important;
    color: var(--sapro-grey-600);
    font-size: 12px;
}

.sapro-project-status.is-error {
    color: #8a1f1f;
}

.sapro-voice-quota {
    margin: 0 0 18px;
    padding: 15px 18px;
    background: #fff8e8;
    border: 1px solid #d8c48b;
    border-radius: 10px;
}

.sapro-voice-quota.is-blocked {
    background: #fff1f1;
    border-color: #c88d8d;
}

.sapro-voice-quota > div {
    min-width: 0;
}

.sapro-voice-quota strong,
.sapro-voice-quota span {
    display: block;
}

.sapro-voice-quota strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.sapro-voice-quota span {
    color: var(--sapro-grey-600);
    font-size: 12px;
    line-height: 1.5;
}

.sapro-voice-quota-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .sapro-projects-head,
    .sapro-project-controls,
    .sapro-project-create,
    .sapro-voice-quota {
        align-items: stretch;
        flex-direction: column;
    }
    .sapro-project-controls select,
    .sapro-project-controls button,
    .sapro-project-create input,
    .sapro-project-create button,
    .sapro-voice-quota-link {
        width: 100%;
    }
}

/* SmartAssist Pro 1.1.1 – puristische Schwarz-Grau-Weiß-Oberfläche */
:root {
    --sapro-plus: #111111;
    --sapro-plus-dark: #111111;
    --sapro-plus-soft: #f2f2f2;
    --sapro-plus-glow: rgba(0, 0, 0, 0.08);
    --sapro-ink: #111111;
}

.sapro-app,
.sapro-app * {
    text-shadow: none !important;
}

.sapro-app {
    color: #111111;
    background: #ffffff !important;
    border: 1px solid #d7d7d7;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sapro-app * {
    box-shadow: none !important;
}

.sapro-topline,
.sapro-pro-signature,
.sapro-kicker,
.sapro-premium-status {
    display: none !important;
}

.sapro-intro {
    padding: clamp(34px, 5vw, 58px) clamp(24px, 6vw, 70px);
    background: #ffffff !important;
    background-image: none !important;
    border-bottom: 1px solid #dedede;
}

.sapro-intro::after,
.sapro-assistant-entry::after {
    display: none !important;
    content: none !important;
}

.sapro-intro h2 {
    max-width: none;
    margin: 0 !important;
    color: #111111;
    font-size: clamp(34px, 4.3vw, 52px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.sapro-intro > p {
    display: none !important;
}

.sapro-form,
.sapro-result-wrap {
    background: #ffffff !important;
    background-image: none !important;
}

.sapro-form {
    padding: clamp(30px, 5vw, 58px) clamp(24px, 6vw, 70px);
}

.sapro-projects,
.sapro-assistant-entry,
.sapro-dialog-panel,
.sapro-upload-section,
.sapro-process,
.sapro-result-panel,
.sapro-speech-panel,
.sapro-insight-grid article,
.sapro-audit-grid article,
.sapro-source-block,
.sapro-realtime-research-card,
.sapro-realtime-transcript-wrap,
.sapro-open-state,
.sapro-open-points-list:not([hidden]),
.sapro-office-assist,
.sapro-office-preview,
.sapro-dialog-proposal,
.sapro-voice-quota {
    color: #111111 !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 0 !important;
}

.sapro-projects,
.sapro-upload-section,
.sapro-process,
.sapro-result-panel,
.sapro-source-block,
.sapro-insight-grid article,
.sapro-audit-grid article {
    background: #fafafa !important;
}

.sapro-assistant-entry {
    margin-bottom: 30px;
    padding: 21px 22px;
    border-left: 3px solid #111111 !important;
}

.sapro-assistant-entry-text > span,
.sapro-assistant-entry-text p,
.sapro-assistant-entry-text strong {
    color: #111111 !important;
}

.sapro-assistant-entry-text > span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sapro-assistant-entry-text p {
    color: #666666 !important;
}

.sapro-live-badge,
.sapro-realtime-capabilities span,
.sapro-tab-count,
.sapro-inline-citation {
    color: #333333 !important;
    background: #f1f1f1 !important;
    background-image: none !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 2px !important;
}

.sapro-live-badge {
    padding: 3px 6px;
}

.sapro-assistant-launch,
.sapro-primary {
    color: #ffffff !important;
    background: #111111 !important;
    background-image: none !important;
    border: 1px solid #111111 !important;
    border-radius: 2px !important;
}

.sapro-assistant-launch:hover,
.sapro-primary:hover {
    color: #111111 !important;
    background: #ffffff !important;
    border-color: #111111 !important;
}

.sapro-mic-dot,
.sapro-realtime-orb,
.sapro-realtime-stage[data-state="researching"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="working"] .sapro-realtime-orb {
    background: #111111 !important;
    background-image: none !important;
}

.sapro-realtime-orb span {
    background: #ffffff !important;
}

.sapro-dialog-panel {
    padding: clamp(20px, 4vw, 34px);
}

.sapro-dialog-head,
.sapro-realtime-transcript-head,
.sapro-office-assist-head,
.sapro-dialog-proposal-head {
    border-color: #dedede !important;
}

.sapro-dialog-head span,
.sapro-dialog-intro,
.sapro-office-privacy,
.sapro-realtime-hint,
.sapro-realtime-empty,
.sapro-realtime-turn span,
.sapro-projects-head small,
.sapro-project-memory small,
.sapro-project-status,
.sapro-voice-quota span,
.sapro-quality-copy small,
.sapro-process-note,
.sapro-no-sources,
.sapro-speech-status {
    color: #666666 !important;
}

.sapro-field input,
.sapro-field select,
.sapro-field textarea,
.sapro-custom-revision input,
.sapro-result,
.sapro-action-language select,
.sapro-action-language input,
.sapro-project-controls select,
.sapro-project-create input,
.sapro-project-memory textarea,
.sapro-dialog-input,
.sapro-dialog-composer textarea {
    color: #111111 !important;
    background: #fafafa !important;
    background-image: none !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 0 !important;
}

.sapro-field input:focus,
.sapro-field select:focus,
.sapro-field textarea:focus,
.sapro-custom-revision input:focus,
.sapro-result:focus,
.sapro-action-language select:focus,
.sapro-action-language input:focus,
.sapro-project-controls select:focus,
.sapro-project-create input:focus,
.sapro-project-memory textarea:focus,
.sapro-dialog-input:focus,
.sapro-dialog-composer textarea:focus {
    background: #ffffff !important;
    border-color: #111111 !important;
    outline: none !important;
}

.sapro-check input,
.sapro-web-research input {
    accent-color: #111111 !important;
}

.sapro-web-research,
.sapro-check,
.sapro-upload-box {
    color: #333333 !important;
    background: #ffffff !important;
    background-image: none !important;
    border-color: #d8d8d8 !important;
    border-radius: 0 !important;
}

.sapro-upload-box:hover {
    border-color: #111111 !important;
}

.sapro-upload-action,
.sapro-upload-heading strong,
.sapro-projects-head strong,
.sapro-realtime-state,
.sapro-quality-copy strong,
.sapro-insight-head h3 {
    color: #111111 !important;
}

.sapro-upload-formats,
.sapro-upload-heading small,
.sapro-upload-heading span,
.sapro-projects-head div > span,
.sapro-project-memory > span,
.sapro-result-label,
.sapro-result-footer-label,
.sapro-insight-head > span,
.sapro-insight-grid article > span,
.sapro-audit-grid article > span,
.sapro-source-block > span,
.sapro-process-kicker,
.sapro-quality-copy > span,
.sapro-speech-label span {
    color: #686868 !important;
}

.sapro-project-controls button,
.sapro-project-create button,
.sapro-voice-quota-link,
.sapro-copy,
.sapro-revision-buttons button,
.sapro-custom-revision button,
.sapro-output-actions button,
.sapro-editor-toolbar button,
.sapro-speech-controls button,
.sapro-dialog-close,
.sapro-realtime-controls button,
.sapro-realtime-clear,
.sapro-office-assist-controls button,
.sapro-dialog-proposal-actions button,
.sapro-dialog-composer-actions button {
    color: #111111 !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #bdbdbd !important;
    border-radius: 2px !important;
}

.sapro-project-controls button:hover,
.sapro-project-create button:hover,
.sapro-voice-quota-link:hover,
.sapro-copy:hover,
.sapro-revision-buttons button:hover,
.sapro-custom-revision button:hover,
.sapro-output-actions button:hover,
.sapro-editor-toolbar button:hover,
.sapro-speech-controls button:hover,
.sapro-dialog-close:hover,
.sapro-realtime-controls button:hover,
.sapro-realtime-clear:hover,
.sapro-office-assist-controls button:hover,
.sapro-dialog-proposal-actions button:hover,
.sapro-dialog-composer-actions button:hover {
    color: #ffffff !important;
    background: #111111 !important;
    border-color: #111111 !important;
}

.sapro-process-track {
    background: #e5e5e5 !important;
    background-image: none !important;
}

.sapro-process-track span,
.sapro-process-dot,
.sapro-process-steps li.is-complete .sapro-process-dot,
.sapro-process-steps li.is-active .sapro-process-dot {
    background: #111111 !important;
    background-image: none !important;
    border-color: #111111 !important;
}

.sapro-quality-ribbon {
    color: #111111 !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #111111 !important;
    border-radius: 0 !important;
}

.sapro-quality-seal {
    display: none !important;
}

.sapro-quality-metrics span,
.sapro-quality-metrics b {
    color: #111111 !important;
}

.sapro-quality-metrics span {
    color: #6a6a6a !important;
}

.sapro-result-tabs {
    gap: 0;
    padding: 0;
    background: #f3f3f3 !important;
    background-image: none !important;
    border: 1px solid #d8d8d8;
    border-radius: 0 !important;
}

.sapro-result-tabs button {
    color: #666666 !important;
    background: transparent !important;
    border-right: 1px solid #d8d8d8 !important;
    border-radius: 0 !important;
}

.sapro-result-tabs button.is-active {
    color: #111111 !important;
    background: #ffffff !important;
    border-bottom: 2px solid #111111 !important;
}

.sapro-result-panel[data-result-panel="document"] {
    background: transparent !important;
    border: 0 !important;
}

.sapro-open-state,
.sapro-open-points-list:not([hidden]),
.sapro-voice-quota,
.sapro-voice-quota.is-blocked {
    color: #111111 !important;
    background: #f6f6f6 !important;
    border-color: #bdbdbd !important;
}

.sapro-voice-quota.is-blocked {
    border-color: #111111 !important;
}

.sapro-source-list a,
.sapro-realtime-research-card a,
.sapro-inline-citation {
    color: #111111 !important;
}

.sapro-speech-panel,
.sapro-realtime-stage,
.sapro-realtime-transcript,
.sapro-dialog-history,
.sapro-office-changes {
    background: #fafafa !important;
    background-image: none !important;
    border-color: #d8d8d8 !important;
    border-radius: 0 !important;
}

.sapro-realtime-turn[data-role="assistant"],
.sapro-dialog-message[data-role="assistant"] {
    background: #f1f1f1 !important;
    color: #111111 !important;
    border-color: #d8d8d8 !important;
}

.sapro-realtime-turn[data-role="user"],
.sapro-dialog-message[data-role="user"] {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #bdbdbd !important;
}

.sapro-result,
.sapro-editor-toolbar,
.sapro-result-footer {
    border-color: #d8d8d8 !important;
}

.sapro-projects,
.sapro-assistant-entry,
.sapro-upload-section,
.sapro-process,
.sapro-quality-ribbon,
.sapro-result-panel,
.sapro-dialog-panel,
.sapro-speech-panel,
.sapro-voice-quota {
    transition: none !important;
}

@media (max-width: 720px) {
    .sapro-intro {
        padding: 30px 20px;
    }

    .sapro-form {
        padding: 28px 20px;
    }

    .sapro-assistant-entry,
    .sapro-projects,
    .sapro-upload-section,
    .sapro-process,
    .sapro-quality-ribbon,
    .sapro-result-panel,
    .sapro-dialog-panel,
    .sapro-speech-panel,
    .sapro-voice-quota {
        border-radius: 0 !important;
    }
}

/* SmartAssist Pro 1.1.2 – kompakter, eleganter Realtime-Indikator */
.sapro-realtime-stage {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
}

.sapro-realtime-orb,
.sapro-realtime-stage[data-state="researching"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="working"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb {
    width: 24px !important;
    height: 24px !important;
    background: #ffffff !important;
    border: 1px solid #c7c7c7 !important;
    box-shadow: none !important;
}

.sapro-realtime-orb::after,
.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb::after {
    width: 5px;
    height: 5px;
    background: #555555 !important;
}

.sapro-realtime-orb span {
    inset: 2px;
    background: transparent !important;
    border-color: #a9a9a9 !important;
}

.sapro-realtime-stage[data-state="connected"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="listening"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb {
    border-color: #777777 !important;
}

.sapro-realtime-stage[data-state="connecting"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="working"] .sapro-realtime-orb,
.sapro-realtime-stage[data-state="researching"] .sapro-realtime-orb {
    animation: sapro-realtime-soft-pulse 1.8s ease-in-out infinite !important;
}

.sapro-realtime-stage[data-state="listening"] .sapro-realtime-orb span,
.sapro-realtime-stage[data-state="speaking"] .sapro-realtime-orb span {
    animation-duration: 2.15s;
}

@keyframes sapro-realtime-soft-pulse {
    0%, 100% { transform: scale(0.97); opacity: 0.78; }
    50% { transform: scale(1.02); opacity: 1; }
}

@media (max-width: 720px) {
    .sapro-realtime-stage {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .sapro-realtime-orb {
        width: 22px !important;
        height: 22px !important;
    }
}

/* SmartAssist Pro 1.1.4 – live geprüfter, zurückhaltender Kontingenthinweis */
.sapro-voice-quota[hidden],
.sapro-voice-quota-link[hidden] {
    display: none !important;
}

.sapro-voice-quota {
    margin: 26px 0 0 !important;
    padding: 12px 14px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #222222 !important;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-left: 2px solid #8a8a8a !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sapro-voice-quota.is-blocked {
    border-left-color: #111111 !important;
}

.sapro-voice-quota > div {
    min-width: 0;
}

.sapro-voice-quota strong {
    margin: 0 0 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35;
}

.sapro-voice-quota span {
    color: #6a6a6a !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}

.sapro-voice-quota-link {
    min-height: 34px !important;
    padding: 0 11px !important;
    flex: 0 0 auto;
    color: #333333 !important;
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    white-space: nowrap;
}

.sapro-voice-quota-link:hover {
    color: #ffffff !important;
    background: #111111 !important;
    border-color: #111111 !important;
}

@media (max-width: 720px) {
    .sapro-voice-quota {
        align-items: flex-start;
        flex-direction: column;
    }

    .sapro-voice-quota-link {
        width: auto !important;
    }
}


/* SmartAssist Pro 1.1.5 – reduzierte Frontend-UI */
.sapro-projects {
    padding: 0 !important;
}

.sapro-projects > summary {
    list-style: none;
}

.sapro-projects > summary::-webkit-details-marker {
    display: none;
}

.sapro-projects-head {
    margin: 0 !important;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.sapro-projects-head:focus-visible {
    outline: 1px solid #111111;
    outline-offset: -1px;
}

.sapro-projects-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sapro-projects-toggle {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.sapro-projects-toggle::before,
.sapro-projects-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1px;
    background: #111111;
    transform: translate(-50%, -50%);
}

.sapro-projects-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: opacity 120ms ease;
}

.sapro-projects[open] .sapro-projects-toggle::after {
    opacity: 0;
}

.sapro-projects-body {
    padding: 0 20px 20px;
    border-top: 1px solid #dedede;
}

.sapro-projects-body .sapro-project-controls {
    padding-top: 18px;
}

.sapro-assistant-launch-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 30px;
}

.sapro-assistant-launch-row .sapro-assistant-launch {
    box-shadow: none !important;
}

.sapro-briefing textarea {
    min-height: 150px;
    max-height: 70vh;
    resize: vertical !important;
    overflow: auto;
}

@media (max-width: 720px) {
    .sapro-projects-head {
        align-items: flex-start;
        padding: 16px;
    }

    .sapro-projects-meta {
        gap: 8px;
    }

    .sapro-projects-head small {
        display: none;
    }

    .sapro-projects-body {
        padding: 0 16px 16px;
    }

    .sapro-assistant-launch-row {
        justify-content: stretch;
    }

    .sapro-assistant-launch-row .sapro-assistant-launch {
        width: 100%;
    }

}


/* SmartAssist Pro 1.1.6 – reduzierte Voice-Aktionen */
.sapro-realtime-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid #dedede;
}

.sapro-realtime-next[hidden] {
    display: none !important;
}

.sapro-realtime-next span {
    color: #666666;
    font-size: 11px;
    line-height: 1.5;
}

.sapro-realtime-generate {
    min-height: 40px;
    padding: 0 16px;
    color: #ffffff;
    background: #111111;
    border: 1px solid #111111;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sapro-realtime-generate:hover,
.sapro-realtime-generate:focus-visible {
    color: #111111;
    background: #ffffff;
    outline: none;
}

@media (max-width: 720px) {
    .sapro-realtime-next {
        align-items: stretch;
        flex-direction: column;
    }

    .sapro-realtime-generate {
        width: 100%;
    }
}

/* SmartAssist Pro 1.1.9 – reduzierte Vorgangsauswahl */
.sapro-realtime-route-choice {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 16px;
    background: #ffffff;
    border-top: 1px solid #dedede;
}

.sapro-realtime-route-choice[hidden] {
    display: none !important;
}

.sapro-realtime-route-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 520px);
    gap: 8px;
}

.sapro-realtime-route-actions button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #bdbdbd;
    border-radius: 2px;
    background: #ffffff;
    color: #222222;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sapro-realtime-route-actions button:hover,
.sapro-realtime-route-actions button:focus-visible {
    border-color: #111111;
    outline: none;
}

.sapro-realtime-route-new {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

.sapro-realtime-route-new:hover,
.sapro-realtime-route-new:focus-visible {
    background: #ffffff !important;
    color: #111111 !important;
}

.sapro-realtime-research-progress {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin: 10px 0;
    padding: 9px 11px;
    border: 1px solid #dedede;
    border-radius: 2px;
    background: #ffffff;
    color: #555555;
}

.sapro-realtime-research-progress strong {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
}

.sapro-realtime-research-spinner {
    display: block;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 1px solid #b7b7b7;
    border-top-color: #222222;
    border-radius: 50%;
}

.sapro-realtime-research-progress.is-active .sapro-realtime-research-spinner {
    animation: sapro-research-spin 0.8s linear infinite;
}

.sapro-realtime-research-progress.is-complete .sapro-realtime-research-spinner {
    width: 7px;
    height: 7px;
    margin: 0 2px;
    border: 0;
    background: #555555;
}

.sapro-realtime-research-progress.is-error .sapro-realtime-research-spinner {
    border-color: #777777;
    border-top-color: #777777;
}

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

@media (prefers-reduced-motion: reduce) {
    .sapro-realtime-research-progress.is-active .sapro-realtime-research-spinner {
        animation-duration: 1.8s;
    }
}

@media (max-width: 760px) {
    .sapro-realtime-route-choice {
        align-items: stretch;
    }

    .sapro-realtime-route-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .sapro-realtime-route-actions button {
        width: 100%;
    }
}

/* SmartAssist Pro 1.2.0 – puristische Hilfefunktion */
.sapro-assistant-launch-row {
    align-items: center;
    gap: 10px;
}

.sapro-help-launch {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #333333;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.sapro-help-launch:hover,
.sapro-help-launch:focus-visible,
.sapro-help-launch[aria-expanded="true"] {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
    outline: none;
}

.sapro-help-overlay[hidden] {
    display: none !important;
}

.sapro-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 17, 17, 0.14);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.sapro-help-dialog {
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    color: #111111;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 17, 17, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.sapro-help-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dedede;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.sapro-help-head h3 {
    margin: 0 !important;
    font-family: inherit;
    font-size: 25px;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.sapro-help-close {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #555555;
    background: transparent;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    font-size: 21px;
    font-weight: 300;
    line-height: 1;
}

.sapro-help-close:hover,
.sapro-help-close:focus-visible {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
    outline: none;
}

.sapro-help-content {
    padding: 0 22px 22px;
}

.sapro-help-content details {
    margin: 0;
    border-bottom: 1px solid #dedede;
}

.sapro-help-content summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 16px 42px 16px 0;
    color: #111111;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.sapro-help-content summary::-webkit-details-marker {
    display: none;
}

.sapro-help-content summary::before,
.sapro-help-content summary::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 50%;
    width: 13px;
    height: 1px;
    background: #333333;
    transform: translateY(-50%);
}

.sapro-help-content summary::after {
    transform: translateY(-50%) rotate(90deg);
    transition: opacity 120ms ease;
}

.sapro-help-content details[open] summary::after {
    opacity: 0;
}

.sapro-help-content summary:focus-visible {
    outline: 1px solid #111111;
    outline-offset: 3px;
}

.sapro-help-content p {
    margin: -2px 0 20px !important;
    max-width: 54em;
    color: #555555;
    font-size: 12px;
    line-height: 1.65;
}

@media (max-width: 720px) {
    .sapro-assistant-launch-row {
        flex-wrap: nowrap;
    }

    .sapro-assistant-launch-row .sapro-assistant-launch {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .sapro-help-launch {
        flex-basis: 44px;
    }

    .sapro-help-overlay {
        align-items: end;
        padding: 12px;
    }

    .sapro-help-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .sapro-help-head {
        padding: 18px;
    }

    .sapro-help-content {
        padding: 0 18px 18px;
    }
}


/* SmartAssist Pro 1.2.5 – kompakte, stets sichtbare Prozessanzeige auf kleinen Displays */
@media (max-width: 1024px) {
    .sapro-process:not([hidden]) {
        position: fixed;
        left: 50%;
        bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 1000000;
        width: min(520px, calc(100vw - 24px));
        margin: 0;
        padding: 15px 17px 13px;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(17, 17, 17, 0.18);
        box-shadow: 0 16px 46px rgba(0, 0, 0, 0.14);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        animation: sapro-process-mobile-in 180ms ease-out both;
    }

    .sapro-process .sapro-process-kicker,
    .sapro-process .sapro-process-steps,
    .sapro-process .sapro-process-note {
        display: none;
    }

    .sapro-process .sapro-process-head {
        gap: 3px;
    }

    .sapro-process .sapro-process-title {
        font-size: 15px;
        font-weight: 500;
        line-height: 1.35;
    }

    .sapro-process .sapro-process-current {
        min-height: 0;
        font-size: 12px;
        line-height: 1.4;
    }

    .sapro-process .sapro-process-current:empty {
        display: none;
    }

    .sapro-process .sapro-process-track {
        margin: 11px 0 0;
    }
}

@keyframes sapro-process-mobile-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .sapro-process:not([hidden]) {
        bottom: max(8px, env(safe-area-inset-bottom));
        width: calc(100vw - 16px);
        padding: 14px 15px 12px;
    }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
    .sapro-process:not([hidden]) {
        animation: none;
    }
}
