:root {
    --bg: #f2f4f7;
    --card: #ffffff;
    --text: #16202b;
    --muted: #5b6b7c;
    --line: #d8dee6;
    --primary: #1b3a5c;
    --send: #1f7a4d;
    --bubble: #e8edf3;
    --draft-bg: #fff8e8;
    --draft-line: #e0c98a;
    --error-bg: #fff4f4;
    --error-line: #e2b4b4;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #10161d;
        --card: #1a222b;
        --text: #e8edf3;
        --muted: #9aabbb;
        --line: #2c3844;
        --primary: #8fb6dd;
        --send: #4fae7c;
        --bubble: #232d38;
        --draft-bg: #2a2418;
        --draft-line: #5c4f2c;
        --error-bg: #2a1d1d;
        --error-line: #5c3a3a;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    font-size: 17px;
    line-height: 1.45;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
}

h1 {
    font-size: 19px;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#btn-logout {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 10px;
}

main {
    padding: 14px 16px 88px;
    max-width: 640px;
    margin: 0 auto;
}

.label {
    color: var(--muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.label.spaced {
    margin-top: 12px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.from {
    font-weight: 600;
    margin: 2px 0 8px;
    word-break: break-word;
}

.subject {
    font-weight: 600;
    margin: 0 0 8px;
}

.body {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    white-space: pre-wrap;
    max-height: 9em;
    overflow-y: auto;
}

.proposal {
    background: var(--draft-bg);
    border: 1px solid var(--draft-line);
    border-radius: 12px;
    padding: 14px;
    white-space: pre-wrap;
    margin-top: 8px;
}

.error {
    background: var(--error-bg);
    border: 1px solid var(--error-line);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

textarea,
input {
    width: 100%;
    font: inherit;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
}

textarea {
    min-height: 14em;
}

button {
    font: inherit;
    font-weight: 600;
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    padding: 12px 16px;
    width: 100%;
    margin-top: 12px;
}

button:disabled {
    opacity: 0.55;
}

button.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

button.send {
    background: var(--send);
    border-color: var(--send);
    color: #fff;
}

.row {
    display: flex;
    gap: 10px;
}

.row button {
    flex: 1;
}

.row.wrap {
    flex-wrap: wrap;
}

.status {
    color: var(--muted);
    font-size: 15px;
    margin-top: 12px;
}

.hint {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 8px 0 4px;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 48px 8px;
}

.mail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    padding: 48px 8px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

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

.chat-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-threads {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.chat-thread-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    max-width: 150px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: inherit;
    font-size: 13px;
    white-space: nowrap;
}

.chat-thread-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.chat-thread-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-thread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--send);
    animation: chat-thread-pulse 1s ease-in-out infinite;
}

.chat-thread-pending {
    font-weight: 700;
}

.chat-thread-add {
    flex: 0 0 auto;
    width: 34px;
    padding: 6px 0;
    border: 1px dashed var(--line);
    border-radius: 999px;
    background: transparent;
    color: inherit;
}

.chat-thread-add:disabled {
    opacity: 0.4;
}

@keyframes chat-thread-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

.bubble {
    border-radius: 12px;
    padding: 12px 14px;
    white-space: pre-wrap;
    border: 1px solid var(--line);
    max-width: 92%;
}

.bubble.user {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    align-self: flex-end;
}

.bubble.assistant {
    background: var(--bubble);
    align-self: flex-start;
}

.has-copy {
    position: relative;
}

.bubble.has-copy,
.body.has-copy,
.proposal.has-copy {
    padding-right: 42px;
}

.copy-button {
    position: absolute;
    top: -12px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

/* The mail body scrolls; keep the button inside so it is not clipped. */
.body.has-copy .copy-button {
    top: 4px;
}

.copy-button svg {
    display: block;
}

.copy-button.copied {
    color: var(--send);
    border-color: var(--send);
}

.copy-button:active {
    transform: scale(0.94);
}

.mcp-ui-text {
    margin-top: 6px;
}

.mcp-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.mcp-form-title {
    margin: 0;
    font-size: 16px;
}

.mcp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--muted);
}

.mcp-field-inline {
    flex-direction: row;
    align-items: center;
}

.mcp-field input,
.mcp-field select {
    margin-top: 0;
}

.mcp-field input[type="checkbox"] {
    width: auto;
    min-height: 0;
}

.mcp-form-submit,
.mcp-button {
    width: auto;
    min-height: 44px;
    margin-top: 4px;
    align-self: flex-start;
}

.mcp-form-done {
    margin: 0;
    color: var(--send);
    font-size: 14px;
}

.mcp-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.mcp-box.is-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.activity {
    color: var(--muted);
    font-size: 14px;
    margin-top: 10px;
    min-height: 1.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composer {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.composer input {
    margin-top: 0;
    flex: 1;
}

.composer button {
    width: auto;
    min-width: 96px;
    margin-top: 0;
}

.row .icon-button {
    flex: 0 0 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    font-size: 20px;
}

#tab-chat .row {
    margin-top: 12px;
}

#tab-chat .row button {
    margin-top: 0;
}

.tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    gap: 6px;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    max-width: 640px;
    margin: 0 auto;
    box-sizing: border-box;
}

.tab-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    margin: 0;
    position: relative;
    padding: 10px 2px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tab-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    background: var(--send);
    color: #fff;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 13px;
}

.toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    background: var(--send);
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 600;
    text-align: center;
}

[hidden] {
    display: none !important;
}

.progress {
    position: sticky;
    top: 53px;
    z-index: 5;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 6px 16px 8px;
}

.progress-bar {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--send), var(--primary));
    background-size: 200% 100%;
    animation: progress-slide 1.4s linear infinite;
}

@keyframes progress-slide {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: 0 0;
    }
}

.progress span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.markdown > *:first-child {
    margin-top: 0;
}

.markdown > *:last-child {
    margin-bottom: 0;
}

.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5 {
    font-size: 17px;
    margin: 12px 0 6px;
}

.markdown p {
    margin: 0 0 8px;
}

.markdown ul,
.markdown ol {
    margin: 0 0 8px;
    padding-left: 20px;
}

.markdown li {
    margin-bottom: 4px;
}

.markdown code {
    background: var(--bubble);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 15px;
}

.markdown pre {
    background: var(--bubble);
    border-radius: 8px;
    padding: 10px;
    overflow-x: auto;
}

.markdown pre code {
    background: none;
    padding: 0;
}

.markdown a {
    color: var(--primary);
}

.chart {
    margin-top: 10px;
}

.chart-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 15px;
}

.chart-label {
    flex: 0 0 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-track {
    flex: 1;
    background: var(--bubble);
    border-radius: 3px;
    height: 12px;
    overflow: hidden;
}

.chart-bar {
    display: block;
    height: 100%;
    background: var(--primary);
}

.chart-value {
    flex: 0 0 auto;
    min-width: 52px;
    text-align: right;
    color: var(--muted);
}

.icon-button {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 6px 12px;
    font-size: 20px;
    line-height: 1;
    border-radius: 10px;
}

.back {
    width: auto;
    min-height: 44px;
    padding: 8px 14px;
}

#btn-mail-back {
    margin-bottom: 12px;
}

h2 {
    font-size: 17px;
    margin: 16px 0 8px;
}

.skill-row {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 600;
}

.skill-meta {
    color: var(--muted);
    font-size: 14px;
    margin: 2px 0 8px;
    word-break: break-word;
}

button.secondary {
    background: var(--bubble);
    color: var(--muted);
    border-style: dashed;
}

button.logout {
    background: var(--error-bg);
    color: var(--text);
    border-color: var(--error-line);
}

#btn-home {
    cursor: pointer;
    user-select: none;
}

#task-result {
    margin-top: 16px;
}

.bubble {
    cursor: pointer;
}

.composer .icon-button {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    font-size: 20px;
}

#settings-prompt {
    width: 100%;
    min-height: 140px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.4;
}

.help-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.help-search-row input {
    margin-top: 0;
    padding-right: 42px;
}

.help-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    color: var(--text);
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.help-topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.help-topic-btn {
    margin: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}

.help-topic-btn:hover {
    background: var(--bubble);
}

.help-topic-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.help-btn-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.help-card-icon {
    font-size: 24px;
}

.help-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.help-card-body {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.help-card-body h3 {
    margin: 14px 0 6px;
    font-size: 16px;
    color: var(--text);
}

.help-card-body p {
    margin: 6px 0;
}

.help-card-body ul,
.help-card-body ol {
    margin: 6px 0;
    padding-left: 20px;
}

.help-card-body li {
    margin-bottom: 4px;
}

.help-card-body code {
    background: var(--bubble);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

.help-card-body pre {
    background: var(--bubble);
    border-radius: 8px;
    padding: 10px;
    overflow-x: auto;
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 14px 0;
}

.help-nav-row {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.help-nav-row button {
    margin-top: 0;
    font-size: 14px;
    min-height: 44px;
}

/* Plan card: vertical flow chart */

.plan-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.plan-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-icon {
    font-size: 22px;
    line-height: 1;
}

.plan-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-title {
    font-size: 15px;
}

.plan-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border-radius: 999px;
    padding: 2px 8px;
}

.plan-badge.is-done {
    color: var(--send);
    background: color-mix(in srgb, var(--send) 15%, transparent);
}

.plan-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-intro,
.plan-outro,
.plan-text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
}

.plan-intro > *:first-child,
.plan-outro > *:first-child,
.plan-text > *:first-child {
    margin-top: 0;
}

.plan-intro > *:last-child,
.plan-outro > *:last-child,
.plan-text > *:last-child {
    margin-bottom: 0;
}

.plan-stepper {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
}

.plan-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bubble);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
}

.plan-step + .plan-step {
    margin-top: 24px;
}

.plan-step + .plan-step::before {
    content: "";
    position: absolute;
    left: 23px;
    top: -24px;
    width: 2px;
    height: 24px;
    background: var(--primary);
    opacity: 0.45;
}

.plan-step + .plan-step::after {
    content: "";
    position: absolute;
    left: 19px;
    top: -9px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--primary);
    opacity: 0.8;
}

.plan-step-no {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.plan-step-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
}

.plan-step-text > *:first-child {
    margin-top: 0;
}

.plan-step-text > *:last-child {
    margin-bottom: 0;
}

.plan-note {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.plan-actions {
    display: flex;
    gap: 10px;
}

.plan-actions button {
    flex: 1;
    margin-top: 0;
    min-height: 44px;
    font-size: 15px;
}

.plan-execute {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.plan-discard {
    background: var(--card);
}

/* "Aufgaben" tab: one list of prompts (pills) and skills (rectangles) */

.task-toolbar {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.task-toolbar #prompt-new {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
}

.task-toolbar #task-stop {
    flex: 1;
    margin-top: 0;
    min-height: 44px;
}

#task-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
}

.task-skill,
.prompt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 0;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.task-skill:active,
.prompt-row:active {
    background: var(--bubble);
}

.task-icon {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.task-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#mail-actions,
#mail-skill-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.prompt-shared {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 6px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.overlay[hidden] {
    display: none;
}

.overlay-card {
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.overlay-card input,
.overlay-card textarea {
    margin-top: 10px;
}

.overlay-card .row {
    margin-top: 12px;
}

.sheet-preview {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 30vh;
    overflow-y: auto;
    color: var(--muted);
    font-size: 14px;
}

.mail-classification {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: var(--bubble);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.classification-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.mail-list-tags {
    margin: 6px 0;
    gap: 4px;
}

.mail-list-tags .classification-badge {
    font-size: 11px;
    padding: 1px 6px;
}

.classification-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
}

.badge-category {
    background: #e1ecf7;
    color: #1b3a5c;
}

.badge-urgent-hoch {
    background: #fde8e8;
    color: #9b1c1c;
}

.badge-urgent-normal {
    background: #edf7ed;
    color: #1e4620;
}

.badge-urgent-niedrig {
    background: #f4f5f7;
    color: #5b6b7c;
}

.badge-action {
    background: #ffedd5;
    color: #9a3412;
}

.badge-action-needed {
    background: #ffedd5;
    color: #9a3412;
    font-weight: 600;
}

.badge-action-none {
    background: #f1f5f9;
    color: #64748b;
}

.badge-tonality-sachlich {
    background: #f0f3f6;
    color: #374151;
}

.badge-tonality-freundlich {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-tonality-draengend,
.badge-tonality-drängend {
    background: #fef3c7;
    color: #92400e;
}

.badge-tonality-kritisch {
    background: #fee2e2;
    color: #991b1b;
}

@media (prefers-color-scheme: dark) {
    .badge-category {
        background: #1e3a5f;
        color: #93c5fd;
    }
    .badge-urgent-hoch {
        background: #5c2020;
        color: #fca5a5;
    }
    .badge-urgent-normal {
        background: #1e3a24;
        color: #86efac;
    }
    .badge-urgent-niedrig {
        background: #2a3441;
        color: #9aabbb;
    }
    .badge-action {
        background: #431407;
        color: #fdba74;
    }
    .badge-action-needed {
        background: #431407;
        color: #fdba74;
        font-weight: 600;
    }
    .badge-action-none {
        background: #1e293b;
        color: #94a3b8;
    }
    .badge-tonality-sachlich {
        background: #2a3441;
        color: #d1d5db;
    }
    .badge-tonality-freundlich {
        background: #1e3a5f;
        color: #7dd3fc;
    }
    .badge-tonality-draengend,
    .badge-tonality-drängend {
        background: #4d3800;
        color: #fcd34d;
    }
    .badge-tonality-kritisch {
        background: #5c2020;
        color: #fca5a5;
    }
}
