/* Persönliche Cora-Home-Darstellung. Der blaue Stil bleibt der Standard. */

html[data-cora-theme="silver"] {
    color-scheme: light;

    --bg-deep: #aab3ba;
    --bg-panel: rgba(238, 241, 243, 0.96);
    --bg-panel-soft: rgba(205, 212, 217, 0.84);

    --line: rgba(49, 69, 82, 0.22);
    --line-strong: rgba(34, 58, 73, 0.46);

    --text: #15232d;
    --text-soft: #415663;
    --text-muted: #667985;

    --light-blue: #0876b8;
    --electric-blue: #078fdc;
    --silver: #e9eef1;

    --shadow:
        0 30px 80px rgba(31, 43, 51, 0.34),
        0 4px 12px rgba(255, 255, 255, 0.5);

    --focus:
        0 0 0 3px #ffffff,
        0 0 0 6px rgba(4, 123, 185, 0.38);

    background: #aab3ba;
}

body[data-cora-theme="silver"] {
    color: var(--text);
    background:
        radial-gradient(
            circle at 9% 8%,
            rgba(255, 255, 255, 0.96),
            transparent 30rem
        ),
        radial-gradient(
            circle at 92% 84%,
            rgba(105, 129, 145, 0.34),
            transparent 38rem
        ),
        linear-gradient(
            135deg,
            #dfe4e7 0%,
            #b7c0c7 46%,
            #eef1f3 100%
        );
}

body[data-cora-theme="silver"] .ambient-field {
    background:
        linear-gradient(
            116deg,
            transparent 0 35%,
            rgba(255, 255, 255, 0.34) 35.3%,
            transparent 36.5% 100%
        ),
        radial-gradient(
            circle at 52% -10%,
            rgba(255, 255, 255, 0.72),
            transparent 34rem
        ),
        repeating-linear-gradient(
            92deg,
            rgba(255, 255, 255, 0.045) 0 1px,
            transparent 1px 5px
        );
    opacity: 0.9;
}

body[data-cora-theme="silver"] .app-frame {
    border-color: rgba(51, 72, 86, 0.48);
    background:
        linear-gradient(
            145deg,
            rgba(247, 249, 250, 0.98),
            rgba(195, 203, 209, 0.97)
        );
    box-shadow:
        0 32px 86px rgba(38, 50, 58, 0.38),
        0 3px 8px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(62, 81, 94, 0.18);
}

body[data-cora-theme="silver"] .sidebar {
    border-color: rgba(50, 70, 83, 0.28);
    background:
        linear-gradient(
            180deg,
            rgba(231, 235, 238, 0.98),
            rgba(174, 185, 193, 0.98)
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 0 1px,
            transparent 1px 4px
        );
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.74),
        inset -10px 0 28px rgba(65, 82, 94, 0.08);
}

body[data-cora-theme="silver"] .sidebar-brand img,
body[data-cora-theme="silver"] .workspace-mobile-brand img,
body[data-cora-theme="silver"] .welcome img {
    padding: 6px;
    border: 1px solid rgba(88, 120, 140, 0.7);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 38% 32%,
            rgba(25, 58, 83, 0.98),
            rgba(3, 12, 21, 0.99) 68%
        );
    box-shadow:
        0 13px 28px rgba(31, 43, 52, 0.34),
        0 0 0 5px rgba(255, 255, 255, 0.36),
        0 0 0 6px rgba(64, 87, 101, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -8px 18px rgba(0, 0, 0, 0.38);
    filter:
        drop-shadow(0 0 12px rgba(0, 116, 181, 0.28));
}

body[data-cora-theme="silver"] .sidebar-brand strong,
body[data-cora-theme="silver"] .workspace-header h1,
body[data-cora-theme="silver"] .welcome h2 {
    color: #14232d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
}

body[data-cora-theme="silver"] .workspace-header,
body[data-cora-theme="silver"] .account-navigation,
body[data-cora-theme="silver"] .preferences-form,
body[data-cora-theme="silver"] .hints-heading {
    border-color: rgba(48, 69, 82, 0.22);
}

body[data-cora-theme="silver"] .nav-item:hover,
body[data-cora-theme="silver"] .nav-item:focus-visible,
body[data-cora-theme="silver"] .nav-item.active,
body[data-cora-theme="silver"] .nav-item[aria-current="page"],
body[data-cora-theme="silver"] .nav-item[aria-expanded="true"] {
    border-color: rgba(45, 70, 86, 0.24);
    color: #10222d;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.62),
            rgba(156, 173, 184, 0.25)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 5px 12px rgba(43, 58, 68, 0.08);
}

body[data-cora-theme="silver"] .new-chat-button {
    border-color: rgba(40, 79, 104, 0.44);
    color: #f6fbff;
    background:
        linear-gradient(
            145deg,
            #1689c9,
            #075b91
        );
    box-shadow:
        0 10px 22px rgba(28, 64, 86, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(1, 42, 68, 0.5);
    opacity: 0.92;
}

body[data-cora-theme="silver"] .sidebar-toggle {
    border-color: rgba(45, 67, 81, 0.28);
    color: #465b68;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.76),
            rgba(174, 184, 191, 0.7)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 10px rgba(42, 57, 67, 0.12);
}

body[data-cora-theme="silver"] .conversation-item {
    background: rgba(239, 242, 244, 0.32);
}

body[data-cora-theme="silver"] .conversation-item:hover,
body[data-cora-theme="silver"] .conversation-item:focus-within,
body[data-cora-theme="silver"] .conversation-item.active {
    border-color: rgba(25, 110, 158, 0.28);
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.72),
            rgba(139, 161, 175, 0.28)
        );
}

body[data-cora-theme="silver"] .conversation-item.active {
    box-shadow:
        inset 2px 0 0 rgba(7, 125, 188, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-cora-theme="silver"] .light-beam {
    border-color: rgba(54, 88, 108, 0.16);
    box-shadow:
        0 0 105px rgba(111, 133, 146, 0.16),
        inset 0 0 84px rgba(255, 255, 255, 0.25);
}

body[data-cora-theme="silver"] .message-bubble,
body[data-cora-theme="silver"] .search-result-card,
body[data-cora-theme="silver"] .hint-card,
body[data-cora-theme="silver"] .preferences-section,
body[data-cora-theme="silver"] .memory-card {
    border-color: rgba(44, 68, 82, 0.25);
    color: var(--text);
    background:
        linear-gradient(
            145deg,
            rgba(249, 250, 251, 0.96),
            rgba(190, 199, 205, 0.94)
        );
    box-shadow:
        0 14px 30px rgba(40, 54, 63, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -1px 0 rgba(62, 81, 94, 0.16);
}

/* Nutzerblasen bleiben bewusst Cora-blau. */
body[data-cora-theme="silver"] .message-row.user .message-bubble {
    border-color: rgba(14, 102, 157, 0.52);
    color: #f3fbff;
    background:
        linear-gradient(
            145deg,
            #167daf,
            #074d78
        );
    box-shadow:
        0 14px 28px rgba(26, 65, 88, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body[data-cora-theme="silver"] .message-row.user .message-author,
body[data-cora-theme="silver"] .message-row.user .message-time {
    color: #3c5969;
}

body[data-cora-theme="silver"] .composer-shell,
body[data-cora-theme="silver"] .search-form {
    border-color: rgba(46, 70, 84, 0.42);
    background:
        linear-gradient(
            180deg,
            rgba(252, 253, 253, 0.98),
            rgba(190, 199, 205, 0.97)
        );
    box-shadow:
        0 18px 38px rgba(38, 52, 61, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(52, 72, 84, 0.17);
}

body[data-cora-theme="silver"] .composer-shell textarea,
body[data-cora-theme="silver"] .search-form input {
    color: #152630;
}

body[data-cora-theme="silver"] .composer-shell textarea::placeholder,
body[data-cora-theme="silver"] .search-form input::placeholder {
    color: #687b87;
}

body[data-cora-theme="silver"] .preferences-field input[type="text"],
body[data-cora-theme="silver"] .preferences-field input[type="email"],
body[data-cora-theme="silver"] .preferences-options label > span,
body[data-cora-theme="silver"] .preferences-switch,
body[data-cora-theme="silver"] .theme-option {
    border-color: rgba(48, 70, 83, 0.25);
    color: var(--text-soft);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.68),
            rgba(178, 188, 195, 0.44)
        );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-cora-theme="silver"] .preferences-options input:checked + span,
body[data-cora-theme="silver"] .theme-option:has(input:checked) {
    border-color: rgba(7, 111, 171, 0.52);
    color: #10232e;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.9),
            rgba(141, 175, 195, 0.42)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 0 0 1px rgba(11, 117, 176, 0.08),
        0 8px 20px rgba(39, 58, 69, 0.12);
}

body[data-cora-theme="silver"] .switch-track {
    border-color: rgba(45, 67, 81, 0.32);
    background: #9da9b1;
}

body[data-cora-theme="silver"] .switch-track::after {
    background: linear-gradient(145deg, #ffffff, #c8d0d5);
}

body[data-cora-theme="silver"] .hints-empty {
    border-color: rgba(43, 75, 94, 0.3);
    color: var(--text-soft);
    background:
        linear-gradient(
            145deg,
            rgba(250, 251, 252, 0.7),
            rgba(178, 188, 195, 0.42)
        );
}

body[data-cora-theme="silver"] .hint-card-warning {
    border-color: rgba(154, 111, 21, 0.34);
    background: linear-gradient(145deg, #fff8e7, #d8c9a3);
}

body[data-cora-theme="silver"] .hint-card-error {
    border-color: rgba(163, 49, 57, 0.34);
    background: linear-gradient(145deg, #fff0f1, #d6b5b8);
}

body[data-cora-theme="silver"] .chat-status {
    border-color: rgba(19, 113, 168, 0.38);
    color: #14374a;
    background: rgba(233, 241, 245, 0.98);
    box-shadow: 0 12px 28px rgba(37, 53, 63, 0.24);
}

body[data-cora-theme="silver"] .cora-dialog-shell {
    border-color: rgba(49, 72, 86, 0.44);
    color: var(--text);
    background:
        linear-gradient(
            145deg,
            rgba(249, 250, 251, 0.99),
            rgba(184, 194, 201, 0.99)
        );
    box-shadow:
        0 30px 80px rgba(31, 43, 51, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body[data-cora-theme="silver"] .connection-state {
    border-color: rgba(35, 130, 79, 0.34);
    color: #176039;
    background: rgba(196, 232, 211, 0.62);
}

body[data-cora-theme="silver"] .preferences-message {
    color: #1b6240;
    background: rgba(204, 235, 218, 0.72);
}

@media (max-width: 820px) {
    body[data-cora-theme="silver"] .sidebar {
        box-shadow:
            20px 0 54px rgba(35, 48, 56, 0.34),
            inset -1px 0 0 rgba(255, 255, 255, 0.72);
    }

    body[data-cora-theme="silver"] .sidebar-backdrop {
        background: rgba(50, 62, 70, 0.48);
    }
}


body[data-cora-theme="silver"] .login-panel {
    border-color: rgba(50, 72, 86, 0.48);
    background:
        linear-gradient(
            145deg,
            rgba(247, 249, 250, 0.98),
            rgba(190, 199, 205, 0.98)
        );
    box-shadow:
        0 30px 80px rgba(31, 43, 51, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(62, 81, 94, 0.17);
}

body[data-cora-theme="silver"] .brand-zone {
    border-color: rgba(50, 70, 83, 0.25);
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(26, 123, 181, 0.22),
            transparent 17rem
        ),
        linear-gradient(
            180deg,
            rgba(230, 235, 238, 0.98),
            rgba(169, 181, 190, 0.86)
        );
}

body[data-cora-theme="silver"] .login-logo {
    padding: 12px;
    border: 1px solid rgba(88, 120, 140, 0.7);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 38% 32%,
            rgba(25, 58, 83, 0.98),
            rgba(3, 12, 21, 0.99) 68%
        );
    box-shadow:
        0 16px 34px rgba(31, 43, 52, 0.34),
        0 0 0 6px rgba(255, 255, 255, 0.34),
        0 0 0 7px rgba(64, 87, 101, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -10px 22px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 0 16px rgba(0, 116, 181, 0.3));
}

body[data-cora-theme="silver"] .brand-zone h1,
body[data-cora-theme="silver"] .login-form-zone h2 {
    color: #14232d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
}

body[data-cora-theme="silver"] .field label {
    color: #334c5b;
}

body[data-cora-theme="silver"] .field input {
    border-color: rgba(48, 70, 83, 0.32);
    color: #142630;
    background:
        linear-gradient(
            180deg,
            rgba(253, 254, 254, 0.95),
            rgba(206, 214, 219, 0.88)
        );
    box-shadow:
        inset 0 1px 7px rgba(50, 66, 76, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

body[data-cora-theme="silver"] .secondary-button {
    border-color: rgba(48, 70, 83, 0.28);
    color: #294454;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.72),
            rgba(176, 187, 194, 0.48)
        );
}
