:root {
    --bg: #07020d;
    --bg-2: #0b0612;
    --panel: rgba(28, 16, 39, 0.88);
    --panel-2: rgba(39, 25, 53, 0.86);
    --border: rgba(173, 125, 255, 0.14);
    --soft-border: rgba(255, 255, 255, 0.07);
    --text: #efe7fb;
    --muted: #8e829e;
    --primary: #8c3fff;
    --primary-2: #a85bff;
    --success: #27d36c;
    --danger: #ff3030;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(140, 63, 255, 0.14), transparent 25%),
        radial-gradient(circle at bottom right, rgba(140, 63, 255, 0.08), transparent 25%),
        linear-gradient(180deg, var(--bg) 0%, #07020b 100%);
}

a { text-decoration: none; }

.login-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell { max-width: 1100px; }
.login-card {
    min-height: 620px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(12, 6, 18, 0.97), rgba(9, 4, 15, 0.97));
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
}
.login-panel,
.login-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-side {
    background: linear-gradient(135deg, rgba(27, 15, 39, 0.96), rgba(104, 47, 219, 0.72));
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.eyebrow {
    color: #b291ff;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
}
.brand-line {
    display: flex;
    align-items: center;
    gap: 14px;
}
.shield-icon {
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary);
    border-radius: 9px;
    position: relative;
}
.shield-icon::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(189, 141, 255, 0.5);
    border-radius: 6px;
}
.login-panel h1,
.page-title-row h1 {
    font-size: clamp(2rem, 3vw, 2.95rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.login-panel p,
.page-title-row p,
.preview-copy {
    color: var(--muted);
}
.preview-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: .45rem .8rem;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.preview-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    max-width: 520px;
}
.account-list {
    display: grid;
    gap: 12px;
    margin-top: 1.8rem;
}
.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.dark-input,
.dark-input:focus,
.form-select.dark-input {
    background: rgba(255,255,255,.03);
    color: var(--text);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    box-shadow: none;
}
.dark-input::placeholder { color: #7d708e; }
.form-select.dark-input option { color: #111; }
.primary-btn {
    border: 0;
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 50px rgba(140, 63, 255, 0.24);
}
.primary-btn:hover { color: #fff; background: linear-gradient(135deg, #9449ff, #b269ff); }
.secondary-btn {
    color: #d8d0e6;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
}

.app-header {
    border-bottom: 1px solid var(--soft-border);
    background: rgba(10, 5, 16, 0.88);
    backdrop-filter: blur(14px);
}
.header-top,
.header-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 18px;
}
.header-sub {
    border-top: 1px solid var(--soft-border);
}
.brand-text {
    font-weight: 800;
    font-size: 1.05rem;
}
.server-switch-link,
.logout-link {
    border: 0;
    background: transparent;
    color: #b1a3c2;
}
.server-switch-link:hover,
.logout-link:hover { color: #fff; }
.header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lang-chip,
.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    font-weight: 700;
}
.role-chip {
    border-radius: 8px;
    padding: .2rem .55rem;
}
.role-admin {
    background: rgba(228, 67, 67, 0.16);
    border: 1px solid rgba(228, 67, 67, 0.22);
    color: #ff8a8a;
}
.role-player {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c8c8cf;
}
.username-label { color: #b1a3c2; }

.app-main {
    padding: 28px 8px 56px;
}
.page-title-row {
    padding: 10px 0 6px;
    margin-bottom: 20px;
}
.page-title-row p {
    font-size: 1.05rem;
    margin-bottom: 0;
}
.toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.tracker-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 6px;
}
.tracker-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: .72rem 1rem;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
}
.tracker-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.tracker-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: .78rem;
    background: rgba(255,255,255,.09);
}
.add-btn {
    padding: .95rem 1.35rem;
    min-width: 170px;
}
.board-section { margin-bottom: 40px; }
.board-section h2 {
    font-weight: 800;
    font-size: 1.12rem;
    margin-bottom: 18px;
}
.task-card {
    height: 100%;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 16px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(180deg, rgba(31, 19, 43, 0.9), rgba(24, 15, 35, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.01);
}
.task-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
}
.task-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
}
.task-meta {
    margin-top: 14px;
    color: #8a7d9c;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
}
.task-meta span { margin-left: 5px; }
.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 12px;
}
.action-link {
    border: 0;
    background: transparent;
    padding: 0;
    font-weight: 600;
}
.action-success { color: var(--success); }
.action-danger { color: var(--danger); }
.action-restore { color: #b34dff; }

.action-success:hover {
    background: var(--success) !important;
    color: #fff !important;
    border-color: var(--success) !important;
}
.action-danger:hover {
    background: var(--danger) !important;
    color: #fff !important;
    border-color: var(--danger) !important;
}
.action-warning:hover {
    background: #f39c12 !important;
    color: #fff !important;
    border-color: #f39c12 !important;
}

.empty-card {
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.archived-card { opacity: .62; }
.archived-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.archived-card h3 {
    text-decoration: line-through;
    color: #9c8fae;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .2rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(140, 63, 255, 0.3);
    color: #d9b6ff;
}

.flash-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
}
.flash-success {
    background: rgba(39, 211, 108, .12);
    border: 1px solid rgba(39, 211, 108, .16);
    color: #bcf3d2;
}
.flash-danger {
    background: rgba(255, 48, 48, .12);
    border: 1px solid rgba(255, 48, 48, .16);
    color: #ffc6c6;
}

.app-offcanvas,
.app-modal {
    background: linear-gradient(180deg, rgba(12, 6, 18, 0.98), rgba(10, 5, 16, 0.98));
    color: var(--text);
    border: 1px solid var(--border);
}
.server-choice {
    text-align: left;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    color: var(--text);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.server-choice.active,
.server-choice:hover {
    background: rgba(140, 63, 255, 0.16);
    border-color: rgba(140, 63, 255, 0.22);
}
.server-choice small { color: var(--muted); }

@media (min-width: 1200px) {
    .app-main {
        padding-left: 8px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .header-top,
    .header-sub { padding: 0 12px; }
    .header-meta { gap: 10px; }
    .tracker-tabs { width: 100%; }
    .toolbar-row { align-items: stretch; }
    .add-btn { width: 100%; }
    .preview-title { font-size: 2.15rem; }
}


.card-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.action-warning { color: #f39c12; }
.flash-muted {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
    color: #b9abc8;
}
.handled-meta {
    margin-top: 10px;
    color: #7f7294;
    font-size: .88rem;
}
.pill-done {
    background: rgba(31, 197, 104, 0.16);
    color: #29d27b;
}
.pill-deleted {
    background: rgba(255, 72, 72, 0.18);
    color: #ff8b8b;
}
.pill-fixed {
    background: rgba(31, 197, 104, 0.16);
    color: #29d27b;
}
.pill-wontfix {
    background: rgba(243, 156, 18, 0.16);
    color: #f39c12;
}
.pill-accepted {
    background: rgba(31, 197, 104, 0.16);
    color: #29d27b;
}
.pill-rejected {
    background: rgba(243, 156, 18, 0.16);
    color: #f39c12;
}
.pill-answered {
    background: rgba(91, 110, 255, 0.18);
    color: #8fa4ff;
}
.pill-neutral {
    background: rgba(255,255,255,.12);
    color: #d7d0e5;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.form-note {
    color: #9c8fb0;
    font-size: .92rem;
}


/* WordPress integration: keep only WP header/footer outside */
html, body { min-height: 100%; }
body.dev-body {
    margin: 0 !important;
    background: #07020d !important;
    color: var(--text) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#dev-app {
    width: 100%;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(140, 63, 255, 0.14), transparent 25%),
        radial-gradient(circle at bottom right, rgba(140, 63, 255, 0.08), transparent 25%),
        linear-gradient(180deg, var(--bg) 0%, #07020b 100%);
}

.dev-login-surface {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 48px 24px 72px;
}

.dev-dashboard-surface {
    min-height: calc(100vh - 180px);
}

.login-shell {
    width: min(1100px, 100%);
    max-width: 1100px;
    margin: 0 auto;
}

.app-main.container-fluid {
    width: 100%;
    max-width: none;
    padding: 28px 24px 56px;
}

.page-title-row,
.toolbar-row,
.board-section {
    max-width: none;
}

/* force project look over WP theme defaults */
#dev-app h1, #dev-app h2, #dev-app h3, #dev-app h4, #dev-app h5, #dev-app h6,
#dev-app p, #dev-app span, #dev-app label, #dev-app strong, #dev-app small, #dev-app a, #dev-app button, #dev-app input, #dev-app textarea, #dev-app select, #dev-app div {
    font-family: inherit;
}

#dev-app .page-title-row h1,
#dev-app .brand-text,
#dev-app .task-card h3,
#dev-app .board-section h2,
#dev-app .preview-title,
#dev-app .login-panel h1 {
    color: var(--text);
}

#dev-app .page-title-row p,
#dev-app .task-card p,
#dev-app .task-meta,
#dev-app .handled-meta,
#dev-app .preview-copy,
#dev-app .form-label,
#dev-app .account-item span {
    color: var(--muted);
}

#dev-app .tracker-tab { color: var(--muted); }
#dev-app .tracker-tab.active { color: #fff; }
#dev-app .task-card,
#dev-app .archived-card,
#dev-app .app-offcanvas,
#dev-app .app-modal .modal-content,
#dev-app .app-modal {
    background-color: transparent;
}

@media (max-width: 991.98px) {
    .dev-login-surface { padding: 24px 14px 48px; }
    .app-main.container-fluid { padding: 24px 14px 48px; }
    .login-card { min-height: auto; }
}


/* Full-width WP integration fixes */
#dev-app {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.dev-login-surface {
    min-height: calc(100vh - 180px);
    padding: 0 24px 72px;
    align-items: start;
}

.login-shell {
    width: min(1180px, calc(100vw - 48px));
    max-width: none;
    margin: 0 auto;
}

.login-card {
    margin-top: 0;
}

.dev-dashboard-surface {
    min-height: calc(100vh - 180px);
    padding-bottom: 56px;
}

.app-main {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 28px 36px 56px;
}

.toolbar-row,
.page-title-row,
.board-section {
    width: 100%;
}

#dev-app .row {
    --bs-gutter-x: 1.6rem;
}

#dev-app .col-xl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    border-bottom: 1px solid var(--soft-border);
    padding: 0 36px;
    background: rgba(10, 5, 16, 0.58);
}

.server-switch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.answer-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

.answer-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c8bbdc;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.answer-text {
    color: #dfd6eb;
    line-height: 1.5;
}

@media (max-width: 1399.98px) {
    #dev-app .col-xl-4 {
        width: 50%;
    }
}

@media (max-width: 991.98px) {
    .dev-login-surface {
        padding: 0 14px 48px;
    }

    .login-shell {
        width: calc(100vw - 28px);
    }

    .app-main {
        padding: 24px 14px 48px;
    }

    .utility-bar {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-height: auto;
        padding: 14px;
    }

    #dev-app .col-xl-4 {
        width: 100%;
    }
}

/* Final adjustments */
.app-main-wide {
    max-width: none;
    width: 100%;
    padding-left: 36px;
    padding-right: 36px;
}

.dev-login-surface {
    position: relative;
    background:
        radial-gradient(circle at 0 0, rgba(140, 63, 255, 0.22), transparent 26%),
        radial-gradient(circle at 100% 100%, rgba(140, 63, 255, 0.08), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, #07020b 100%);
}

.success-empty {
    min-height: 240px;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(18, 56, 36, 0.92), rgba(14, 44, 29, 0.95));
    border-color: rgba(61, 184, 108, 0.24);
}

.empty-check {
    font-size: 3rem;
    color: #65e09a;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #e9fff1;
    margin-bottom: 6px;
}

.empty-copy {
    color: #b8dec8;
    max-width: 320px;
}

.reason-box {
    background: rgba(255, 174, 0, 0.08);
    border-color: rgba(255, 174, 0, 0.14);
}

.server-choice small {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-section {
    margin-top: 8px;
}

.chat-panel {
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(25, 16, 36, 0.94), rgba(17, 11, 27, 0.96));
    padding: 20px;
}

.chat-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.chat-head h2 {
    margin-bottom: 6px;
}

.chat-head p {
    margin: 0;
    color: var(--muted);
}

.chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .55rem .8rem;
    border-radius: 999px;
    background: rgba(140, 63, 255, 0.14);
    color: #d8bcff;
    font-weight: 700;
}

.chat-messages {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}

.chat-message {
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
}

.chat-message-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #cdbde2;
}

.chat-message-head strong {
    color: #fff;
}

.chat-message-copy {
    color: #ddd3ea;
    line-height: 1.5;
}

.chat-form {
    display: grid;
    gap: 12px;
}

.chat-input {
    min-height: 86px;
    resize: vertical;
}

.chat-form-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.chat-empty {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 16px;
    color: #b8dec8;
    background: rgba(18, 56, 36, 0.22);
}

.chat-empty i {
    font-size: 2rem;
    color: #65e09a;
}

@media (max-width: 991.98px) {
    .app-main-wide {
        padding-left: 14px;
        padding-right: 14px;
    }

    .chat-head,
    .chat-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* 2026-03 update */
.pill-warning {
    background: rgba(255, 153, 51, 0.18) !important;
    color: #ffb15c !important;
    border-color: rgba(255, 153, 51, 0.35) !important;
}
.reason-box .answer-label {
    color: #ffb15c;
}


.handled-meta.handled-positive {
    color: #29d27b !important;
}
.handled-meta.handled-negative {
    color: #f39c12 !important;
}


/* 2026-03-22 layout refinements */
.dev-login-surface {
    min-height: calc(100vh - 180px);
    padding: 82px 24px 56px;
    align-items: start;
}

.login-shell {
    width: min(720px, calc(100vw - 48px));
    max-width: 720px;
    margin: 0 auto;
}

.login-card {
    min-height: 0;
    border-radius: 26px;
}

.login-panel,
.login-side {
    padding: 42px 46px !important;
}

.login-panel h1 {
    font-size: clamp(1.8rem, 2.8vw, 2.75rem);
}

.preview-title {
    max-width: 340px;
    font-size: clamp(1.65rem, 2.2vw, 2.65rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.login-side-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.side-cta-wrap {
    margin-top: 1.4rem;
}

.side-cta {
    min-width: 220px;
}

.dark-input,
.dark-input:focus,
.form-select.dark-input,
.dark-input:-webkit-autofill,
.dark-input:-webkit-autofill:hover,
.dark-input:-webkit-autofill:focus,
.dark-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,.03) inset !important;
    caret-color: var(--text);
}

/* keep top-left glow flush with the layout */
.dev-login-surface,
.dev-dashboard-surface {
    position: relative;
}

.dev-login-surface::before,
.dev-dashboard-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(140,63,255,.14), transparent 26%);
}

.server-picker-dialog {
    max-width: 410px;
    margin: 0;
    position: fixed;
    top: 86px;
    left: 18px;
}

.server-picker-modal {
    border-radius: 16px;
    overflow: hidden;
}

.server-picker-modal .modal-body {
    padding: 0 14px 14px;
}

.server-picker-modal .modal-header {
    padding: 14px 16px 6px;
}

.server-choice {
    min-height: 64px;
    justify-content: center;
}

.server-choice strong {
    font-size: 1.02rem;
}

.server-choice small {
    text-transform: uppercase;
    letter-spacing: .02em;
}

.modal-backdrop.show {
    opacity: .35;
}

@media (max-width: 991.98px) {
    .dev-login-surface {
        padding: 56px 16px 40px;
    }
    .login-shell {
        width: min(720px, calc(100vw - 32px));
    }
    .login-panel,
    .login-side {
        padding: 30px 24px !important;
    }
    .server-picker-dialog {
        left: 12px;
        right: 12px;
        max-width: calc(100vw - 24px);
    }
}


.action-secondary {
    color: #cfc7de;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}
.action-secondary:hover {
    color: #fff;
    background: rgba(255,255,255,.11);
}

.chat-empty {
    color: #9da3b4;
    background: rgba(255,255,255,.02);
    border-color: rgba(255,255,255,.08);
}

.chat-empty i {
    color: #9499a8;
}

.chat-form-row {
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.chat-submit-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.chat-submit-btn {
    min-width: 220px;
}

.server-picker-modal .modal-header {
    padding: 10px 14px 0;
    min-height: 36px;
}

.server-picker-dialog {
    top: 74px;
}


.shell-menu { background: linear-gradient(180deg, rgba(12, 6, 18, 0.98), rgba(10, 5, 16, 0.98)); border: 1px solid var(--border); border-radius: 16px; padding: 10px; min-width: 230px; box-shadow: 0 20px 48px rgba(0,0,0,.35); }
.toolbar-left,.header-meta{display:flex;align-items:center;gap:12px}.header-meta{flex-wrap:wrap;justify-content:flex-end}.header-cta{display:inline-flex;align-items:center;gap:8px;padding:.7rem .95rem;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#e7ddf6;font-weight:700}.header-cta:hover{color:#fff;background:rgba(255,255,255,.08)}.header-cta-strong{background:linear-gradient(135deg,rgba(140,63,255,.18),rgba(168,91,255,.14));border-color:rgba(140,63,255,.28)}
.lang-trigger{display:inline-flex;align-items:center;gap:10px;padding:.68rem .92rem;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#e7ddf6;font-weight:700}.lang-trigger:hover{background:rgba(255,255,255,.07)}.flag-emoji{font-size:1.05rem;line-height:1}.lang-option{display:flex;align-items:center;gap:12px;color:#eee !important;border-radius:10px;padding:.65rem .8rem}.lang-option:hover{background:rgba(255,255,255,.05)}
.server-dropdown{margin-top:12px;min-width:300px}.server-dropdown form+form{margin-top:8px}.server-choice{width:100%}
.login-topbar{display:flex;justify-content:flex-end;align-items:center;margin-bottom:18px}
.chat-status-hidden{opacity:0}.chat-empty{color:#a3a1aa !important;background:rgba(255,255,255,.035)!important;border-color:rgba(255,255,255,.06)!important}.chat-empty i{color:#9f9ba8!important}.chat-submit-wrap{width:100%;display:flex;justify-content:center}.chat-submit-btn{min-width:220px}.form-note#chatStatus{min-height:1.2rem}
.blog-filter-row{display:grid;grid-template-columns:1fr 1fr auto;gap:16px;align-items:end}.blog-filter-submit{display:flex;align-items:end}.blog-copy-box{margin-top:18px}.devblog-textarea{min-height:520px;white-space:pre;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media(max-width:991.98px){.blog-filter-row{grid-template-columns:1fr}.header-meta{justify-content:flex-start}.server-dropdown{min-width:240px}}


.server-switch-link.compact{padding:.68rem .95rem;display:inline-flex;align-items:center;gap:10px;min-height:46px}
.server-switch-label{display:inline-flex;align-items:center;gap:10px;font-weight:700;color:#efe7fb}
.server-switch-label i{color:#b291ff}
#chatStatus.chat-status-hidden{opacity:0;visibility:hidden}
#chatStatus.chat-status-error{color:#ff7b7b;opacity:1;visibility:visible}
#chatStatus.chat-status-success{color:#9acfb0;opacity:1;visibility:visible}
.page-title-row .header-cta{min-height:46px;display:inline-flex;align-items:center;justify-content:center}
.page-title-row .header-cta i{line-height:1}
.page-title-row{display:flex;justify-content:space-between;align-items:center;gap:18px}
.page-title-row > div{flex:1}


/* login-form compatibility fix */
.login-form .form-control,
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f4ecff;
    box-shadow: none !important;
    outline: none;
    transition: .2s ease;
}
.login-form .form-control::placeholder,
.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder { color: rgba(244,236,255,.45); }
.login-form .form-control:focus,
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: rgba(160,92,255,.45) !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(138,92,246,.12) !important;
}
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus,
.login-form input:-webkit-autofill:active {
    -webkit-text-fill-color: #f4ecff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.06) inset !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,.06) inset !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 16px !important;
}


/* Passwortfeld exakt wie Benutzername, auch bei Browser-Autofill */
.login-form .dark-input,
.login-form .dark-input:focus,
.login-form input.dark-input,
.login-form input.dark-input:focus {
    background: rgba(255,255,255,.03) !important;
    background-color: rgba(255,255,255,.03) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.login-form .dark-input:-webkit-autofill,
.login-form .dark-input:-webkit-autofill:hover,
.login-form .dark-input:-webkit-autofill:focus,
.login-form .dark-input:-webkit-autofill:active,
.login-form input.dark-input:-webkit-autofill,
.login-form input.dark-input:-webkit-autofill:hover,
.login-form input.dark-input:-webkit-autofill:focus,
.login-form input.dark-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important;
    transition: background-color 99999s ease-in-out 0s !important;
}


.login-panel .mb-0 strong, .login-panel p strong { color: #ffffff; font-weight: 800; }
.dark-input[type="password"], input.dark-input[type="password"], .login-form input[type="password"] {
    background: rgba(255,255,255,.03) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}
.dark-input[type="password"]:-webkit-autofill,
.dark-input[type="password"]:-webkit-autofill:hover,
.dark-input[type="password"]:-webkit-autofill:focus,
.login-form input[type="password"]:-webkit-autofill {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}
.dev-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(135deg,var(--avatar-1,#8c3fff),var(--avatar-2,#c06cff));color:#fff;font-weight:800;line-height:1;box-shadow:0 10px 26px rgba(0,0,0,.22);flex:0 0 auto;}
.dev-avatar-xs{width:22px;height:22px;font-size:.68rem;}
.dev-avatar-sm{width:30px;height:30px;font-size:.78rem;}
.dev-avatar-md{width:36px;height:36px;font-size:.88rem;}
.task-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.meta-author{font-weight:600;color:#d8d0e6;}
.handled-avatars{display:flex;gap:6px;align-items:center;margin-top:14px;}
.chat-message{display:flex;gap:12px;align-items:flex-start;}
.chat-message-body{flex:1;min-width:0;}
.chat-avatar{flex:0 0 auto;}


/* forum login + avatar fixes */
.login-input,
.login-input.form-control,
.login-form .login-input[type="password"],
.login-form .login-input[type="text"] {
    background: rgba(255,255,255,.03) !important;
    background-color: rgba(255,255,255,.03) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.login-input::placeholder { color: #7d708e !important; }
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,.03) inset !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important;
}
.login-links-row { display:flex; justify-content:flex-end; margin-top:-4px; }
.forgot-link { color:#bdafff; font-size:.92rem; }
.forgot-link:hover { color:#fff; }
.avatar-image-wrap { overflow:hidden; }
.avatar-image { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.chat-message { display:flex; gap:12px; align-items:flex-start; }
.chat-avatar { flex:0 0 auto; }
.chat-message-body { flex:1 1 auto; }
.devblog-list { margin:0; padding-left:1.1rem; color:var(--text); }
.devblog-card { min-height: 100%; }
.blog-actions { display:flex; gap:12px; flex-wrap:wrap; }

.remember-row{gap:1rem}.remember-check .form-check-input{background-color:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16)}.remember-check .form-check-label{color:var(--text-soft)}.login-recaptcha{display:flex;justify-content:center}.comment-preview-box{margin-top:14px}.severity-note .status-pill{display:inline-flex}.comment-list-modal{display:flex;flex-direction:column;gap:12px}.comment-modal-item{padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}.comment-modal-head{display:flex;justify-content:space-between;gap:12px;color:var(--text-soft);font-size:.88rem;margin-bottom:8px}.comment-modal-copy{white-space:pre-wrap;color:var(--text-main)}

.login-recaptcha{display:flex;justify-content:center;padding:14px 16px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);min-height:96px}.login-recaptcha>div{margin:0 auto}.task-meta .meta-date{margin-left:0;opacity:.8}.rank-pill{display:inline-flex;align-items:center;padding:.26rem .58rem;border-radius:999px;font-size:.78rem;font-weight:700;line-height:1;border:1px solid rgba(255,255,255,.10)}.rank-red{background:rgba(255,76,76,.14);color:#ff6d6d;border-color:rgba(255,76,76,.25)}.rank-orange{background:rgba(255,164,76,.14);color:#ffb15f;border-color:rgba(255,164,76,.25)}.rank-green{background:rgba(63,211,126,.14);color:#55e08e;border-color:rgba(63,211,126,.25)}.rank-purple{background:rgba(161,107,255,.14);color:#b88cff;border-color:rgba(161,107,255,.25)}.rank-gray{background:rgba(185,188,204,.10);color:#c6cad8;border-color:rgba(185,188,204,.16)}.comment-list-modal{display:flex;flex-direction:column;gap:12px}.comment-modal-item{padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);box-shadow:0 10px 24px rgba(0,0,0,.18)}.comment-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text-soft);font-size:.88rem;margin-bottom:8px}.comment-meta-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.comment-modal-copy{white-space:pre-wrap;color:var(--text-main)}

/* final adjust */
.login-recaptcha{display:block;justify-content:initial;padding:0 !important;border:none !important;background:transparent !important;min-height:0 !important}
.login-recaptcha>div{margin:0 !important}
.task-card h3,.task-card p,.answer-text,.comment-modal-copy,.form-note,.handled-text{overflow-wrap:anywhere;word-break:break-word}
.comment-modal-item{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:18px;box-shadow:0 8px 22px rgba(0,0,0,.22)}
.comment-meta-left strong{margin-right:2px}
.comment-meta-left span{margin-left:2px}
.handled-line{margin-top:12px;display:flex;align-items:center;gap:10px}
.handled-line .dev-avatar{flex:0 0 auto}
.handled-text{line-height:1.4}
.task-meta{flex-wrap:wrap;gap:10px}
.task-meta .meta-author{margin-right:2px}
.task-meta .meta-date{margin-left:2px}

.comment-entry-summary{margin-bottom:14px}.comment-entry-card{padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);box-shadow:0 8px 20px rgba(0,0,0,.18)}.comment-entry-title-wrap h3{margin:0 0 10px;font-size:1.05rem}.comment-entry-description{margin:0 0 12px;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.handled-line.handled-positive .handled-text{color:#29d27b}.handled-line.handled-warning .handled-text{color:#f39c12}.handled-line.handled-danger .handled-text{color:#ff6d6d}.chat-delete-btn{margin-left:auto;border:0;background:rgba(255,255,255,.06);color:#cfc7dc;border:1px solid rgba(255,255,255,.08);padding:.28rem .55rem;border-radius:10px;font-size:.78rem;display:inline-flex;align-items:center;gap:6px}.chat-delete-btn:hover{color:#fff;background:rgba(255,255,255,.10)}
