:root {
    --t6-navy: #001C8A;
    --t6-navy-2: #00156e;
    --t6-navy-3: #001047;
    --t6-blue: #001C8A;
    --t6-blue-2: #0026b8;
    --t6-green: #2f9e44;
    --t6-red: #c53030;
    --t6-red-2: #e53e3e;
    --t6-bg: #e8eef5;
    --t6-line: #c5d0de;
    --t6-text: #1a2332;
    --t6-muted: #5a6a7a;
    --t6-bubble-me: #eceff3;
    --t6-bubble-you: #d7ebfb;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.t6-app {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 13px;
    color: var(--t6-text);
    background: var(--t6-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.t6-login-body {
    min-height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #001C8A, #001047);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.t6-login-card {
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 10px;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.t6-login-brand {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--t6-navy);
    letter-spacing: .04em;
}
.t6-login p { color: var(--t6-muted); margin: .35rem 0 1rem; }
.t6-login label { display: block; font-size: .78rem; margin: .55rem 0 .2rem; color: var(--t6-navy); }
.t6-login input {
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid var(--t6-line);
    border-radius: 6px;
    font: inherit;
}
.t6-login button {
    margin-top: 1rem;
    width: 100%;
    background: var(--t6-navy);
    color: #fff;
    border: 0;
    padding: .7rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.t6-login-error { color: var(--t6-red); font-size: .85rem; }

.t6-top {
    background: var(--t6-navy);
    color: #fff;
    display: flex;
    justify-content: stretch;
    gap: .3rem;
    padding: .35rem .4rem;
    flex-shrink: 0;
    align-items: stretch;
    flex-wrap: nowrap;
}
.t6-top > .t6-btn,
.t6-top > .t6-agent {
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.t6-top > .t6-btn {
    overflow: hidden;
    text-overflow: ellipsis;
}
.t6-top .t6-btn, .t6-agent-btn { font-variant-emoji: text; }
.t6-btn {
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    color: #fff;
    font: inherit;
    padding: .28rem .55rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.t6-btn:hover { background: rgba(255,255,255,.16); }
.t6-btn-ghost { border-color: transparent; }
.t6-btn-pause { background: #001C8A; font-weight: 700; }
.t6-btn-pause.on { background: #c05621; }
#btnLast.on { background: #c05621; border-color: transparent; }
.t6-btn-primary { background: var(--t6-navy); color: #fff; border: 0; width: 100%; padding: .45rem; margin-top: .4rem; }
.t6-btn-blue { background: var(--t6-blue); border-color: transparent; color: #fff; }
.t6-btn-green { background: var(--t6-green); border-color: transparent; color: #fff; }
.t6-btn-red { background: var(--t6-red); border-color: transparent; color: #fff; }
.t6-btn-send { background: var(--t6-blue); border-color: transparent; color: #fff; font-weight: 700; min-width: 110px; }
.t6-btn-send:disabled { background: #9aa8b8; cursor: not-allowed; }
.t6-btn-block { width: calc(100% - 12px); margin: .4rem 6px .6rem; }
.t6-col .t6-btn { color: #fff; }

.t6-agent { position: relative; }
.t6-agent-btn {
    width: 100%;
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    font: inherit;
    padding: .28rem .55rem;
    border-radius: 4px;
    cursor: pointer;
}
.t6-agent-drop {
    position: absolute; right: 0; top: 110%;
    background: #fff; color: var(--t6-text);
    min-width: 220px; border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 20;
    padding: .35rem 0;
}
.t6-agent-drop button {
    width: 100%; border: 0; background: none; padding: .5rem .7rem; text-align: left; cursor: pointer;
}
.t6-agent-drop button:hover { background: #edf2f7; }
.t6-agent-me, .t6-agent-online { padding: .45rem .7rem; border-bottom: 1px solid #edf2f7; }
.t6-agent-me strong, .t6-agent-online p { display: block; }
.t6-agent-me small { display: block; color: var(--t6-muted); font-size: .72rem; }
.t6-online-row {
    display: flex; gap: .4rem; align-items: center; margin-top: .3rem;
}
.t6-online-row img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.t6-online-row small { display: block; color: var(--t6-muted); font-size: .68rem; }

.t6-timer {
    text-align: center;
    color: var(--t6-red-2);
    font-weight: 800;
    padding: .2rem;
    background: #fff;
    border-bottom: 1px solid var(--t6-line);
    flex-shrink: 0;
}
.t6-timer.pause {
    color: #c05621;
    font-size: 1.05rem;
    letter-spacing: .04em;
}
.t6-timer.idle {
    color: var(--t6-muted, #8a94a6);
    font-weight: 700;
}
.t6-form input[readonly] {
    background: #eef1f6;
    color: #445;
    cursor: default;
}
.t6-img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: .45rem;
    max-height: 360px;
    overflow: auto;
    margin: .5rem 0 .8rem;
}
.t6-img-grid button {
    border: 1px solid var(--t6-line);
    background: #fff;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}
.t6-img-grid img { width: 100%; height: 88px; object-fit: cover; display: block; }
.t6-img-grid small { display: block; padding: .15rem .3rem; font-size: .65rem; color: var(--t6-muted); }
.t6-compose-attach {
    margin: .25rem 0 .15rem;
    padding: .25rem 0 0;
}
.t6-attach-previews {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.t6-attach-previews li {
    position: relative;
    width: 72px;
}
.t6-attach-previews img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--t6-line);
    background: #f4f6fb;
}
.t6-attach-previews .t6-attach-x {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 4px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .7rem;
    line-height: 18px;
    cursor: pointer;
    padding: 0;
}
.t6-paid-hint {
    margin: .3rem 0 0;
    font-size: .78rem;
    font-weight: 700;
    color: #8a4b00;
}
.t6-paid-flag {
    display: inline-block;
    margin-left: .35rem;
    font-size: .72rem;
    font-style: normal;
    font-weight: 700;
    color: #8a4b00;
}
.t6-dropup {
    position: relative;
    display: inline-block;
    margin: .35rem 0 .5rem;
}
.t6-btn-link {
    background: none;
    border: 0;
    color: #001C8A;
    font-weight: 700;
    cursor: pointer;
    padding: .25rem .1rem;
}
.t6-btn-link:hover { text-decoration: underline; }
.t6-dropdown {
    position: absolute;
    left: 0;
    bottom: calc(100% + 4px);
    min-width: 220px;
    max-width: 280px;
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--t6-line);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
    z-index: 40;
    padding: .2rem 0;
}
.t6-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    padding: .4rem .75rem;
    cursor: pointer;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.t6-dropdown button:hover { background: #eef2ff; }
.t6-sticker-pop {
    position: fixed;
    z-index: 240;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    width: min(520px, 94vw);
    background: #fff;
    border: 1px solid var(--t6-line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.t6-sticker-inner { padding: .55rem .65rem .7rem; }
.t6-sticker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .35rem;
}
.t6-sticker-head h3 { margin: 0; font-size: 1rem; }
.t6-sticker-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
    list-style: none;
    margin: 0 0 .4rem;
    padding: 0;
    max-height: 88px;
    overflow: auto;
}
.t6-sticker-tabs button {
    border: 1px solid var(--t6-line);
    background: #f6f7fb;
    border-radius: 4px;
    padding: .15rem .4rem;
    font-size: .72rem;
    cursor: pointer;
}
.t6-sticker-tabs button.on {
    background: #001C8A;
    color: #fff;
    border-color: #001C8A;
}
.t6-sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .35rem;
    max-height: 260px;
    overflow: auto;
}
.t6-sticker-grid button {
    border: 1px solid var(--t6-line);
    background: #fff;
    padding: 2px;
    border-radius: 4px;
    cursor: pointer;
}
.t6-sticker-grid img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: contain;
}
.t6-modal-wide { width: min(640px, 94vw); }
.t6-modal-xl { width: min(860px, 96vw); }
.t6-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .35rem;
}
.t6-modal-head h3 { margin: 0; }
.t6-modal-x {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #001C8A;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.t6-modal-x:hover { background: #0026c2; }
.t6-modal-close-bar {
    display: block;
    width: 100%;
    margin-top: .55rem;
    padding: .55rem .8rem;
    font-weight: 700;
    font-size: .95rem;
}
.t6-stat.in b { color: #2f9e44; }
.t6-stat.out b { color: #c53030; }

.t6-toast {
    position: fixed; top: 52px; left: 50%; transform: translateX(-50%);
    background: var(--t6-navy); color: #fff; padding: .45rem .9rem;
    border-radius: 6px; z-index: 250; box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.t6-grid {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(160px, 220fr) minmax(170px, 230fr) minmax(280px, 1.4fr) minmax(180px, 240fr) minmax(150px, 210fr);
    gap: 0;
    padding: 0;
}
.t6-col {
    position: relative;
    background: #fff;
    border: 1px solid var(--t6-line);
    border-left-width: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.t6-col:first-child { border-left-width: 1px; }
.t6-col-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: col-resize;
    z-index: 8;
    touch-action: none;
}
.t6-col-resizer:hover,
.t6-col-resizer.on {
    background: rgba(0, 28, 138, .28);
}
body.t6-col-dragging {
    cursor: col-resize;
    user-select: none;
}
body.t6-col-dragging * { cursor: col-resize !important; }
.t6-col h2 {
    margin: 0;
    background: var(--t6-navy);
    color: #fff;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .4rem .55rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    min-height: 2.05rem;
    box-sizing: border-box;
}
.t6-col h2 .t6-cog {
    color: #fff;
}
.t6-col h2 .t6-cog:hover {
    color: #fff;
    background: rgba(255,255,255,.16);
}
.t6-inbox-refresh {
    margin-left: auto;
    border: 0;
    background: rgba(255,255,255,.16);
    color: #fff;
    font: inherit;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    padding: .16rem .45rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.t6-inbox-refresh:hover { background: rgba(255,255,255,.28); }
.t6-inbox-refresh.busy { opacity: .55; pointer-events: none; }
.t6-col h3 {
    margin: .5rem 0 .3rem;
    font-size: .78rem;
    color: var(--t6-navy);
}

.t6-search { padding: .35rem .4rem; flex-shrink: 0; }
.t6-search input, .t6-form input, .t6-form select, .t6-form textarea,
.t6-followup input, .t6-followup select, .t6-notes-label textarea, .t6-compose textarea {
    width: 100%;
    border: 1px solid var(--t6-line);
    border-radius: 4px;
    padding: .28rem .4rem;
    font: inherit;
}
.t6-tabs {
    display: flex;
    border-bottom: 1px solid var(--t6-line);
    flex-shrink: 0;
}
.t6-tabs button {
    flex: 1;
    border: 0;
    background: #f4f7fb;
    padding: .35rem .15rem;
    font: inherit;
    font-size: .7rem;
    cursor: pointer;
    color: var(--t6-navy);
}
.t6-tabs button.active { background: #fff; font-weight: 700; border-bottom: 2px solid var(--t6-blue); }
.t6-list { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }
.t6-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: .4rem;
    padding: .4rem .5rem;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}
.t6-item-main {
    min-width: 0;
    overflow: hidden;
}
.t6-item-main strong,
.t6-item-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.t6-item-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    z-index: 2;
    background: #fff;
}
.t6-item:hover .t6-item-tools,
.t6-item.active .t6-item-tools { background: #eef4fb; }
.t6-item-tools .t6-cog {
    flex-shrink: 0;
    color: var(--t6-navy);
}
.t6-item:hover, .t6-item.active { background: #eef4fb; }
.t6-item-ava {
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
}
.t6-item-ava.has-new::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #e31c3d;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(227, 28, 61, .25);
}
.t6-item-ava.is-online::before {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
}
.t6-on-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    background: #22c55e;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .28);
}
.t6-on-lab {
    font-size: .62rem;
    font-weight: 800;
    color: #16a34a;
    margin-right: .3rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}
.t6-item.online { background: #f3fbf5; }
#colCustomer h2 .t6-on-lab { font-size: .7rem; }
.t6-item-lc-activate {
    background: #fff8e8;
    box-shadow: inset 3px 0 0 #e67e22;
}
.t6-item-lc-activate.active,
.t6-item-lc-activate:hover { background: #fff3e0; }
.t6-item-lc-activate .t6-item-tools { background: #fff8e8; }
.t6-item-lc-activate.active .t6-item-tools,
.t6-item-lc-activate:hover .t6-item-tools { background: #fff3e0; }
.t6-site {
    display: inline-block;
    margin-right: .35rem;
    padding: .05rem .32rem;
    border-radius: 3px;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .03em;
    vertical-align: middle;
    line-height: 1.3;
}
.t6-site-6togo { background: #001C8A; color: #fff; }
.t6-site-sexcafe { background: #9b2c6a; color: #fff; }
.t6-site-lc { background: #e67e22; color: #fff; }
.t6-site-frivol { background: #8e44ad; color: #fff; }
.t6-site-mdh { background: #c0392b; color: #fff; }
.t6-item[data-site="livecreator"] { box-shadow: inset 3px 0 0 #e67e22; }
.t6-item[data-site="frivol"] { box-shadow: inset 3px 0 0 #8e44ad; }
.t6-item[data-site="traumsexcafe"] { box-shadow: inset 3px 0 0 #001C8A; }
.t6-lc-ava {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 2px;
    border-radius: 50%;
    background: #2f9e44;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
}
.t6-lc-idle-inline {
    padding: 1.15rem 1rem 1.3rem;
}
.t6-lc-idle-inline .t6-lc-idle-title {
    font-size: 1.15rem;
    margin-bottom: .45rem;
}
.t6-lc-idle-inline .t6-btn { margin-top: .65rem; }
html.theme-dunkel .t6-item-lc-activate {
    background: #1a2744;
    box-shadow: inset 3px 0 0 #e67e22;
}
html.theme-dunkel .t6-item-lc-activate.active,
html.theme-dunkel .t6-item-lc-activate:hover { background: #223258; }
html.theme-dunkel .t6-item-lc-activate .t6-item-tools { background: #1a2744; }
html.theme-dunkel .t6-item-lc-activate.active .t6-item-tools,
html.theme-dunkel .t6-item-lc-activate:hover .t6-item-tools { background: #223258; }
html.theme-modern .t6-item-lc-activate {
    background: rgba(244, 168, 200, .12);
    box-shadow: inset 3px 0 0 #2f9e44;
}
html.theme-modern .t6-item-lc-activate.active,
html.theme-modern .t6-item-lc-activate:hover { background: rgba(244, 168, 200, .2); }
.t6-item img, .t6-ava {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #d9e2ec;
}
.t6-col-photo { padding: .45rem .55rem .15rem; }
.t6-portrait {
    position: relative;
    width: 92px;
    height: 92px;
    border: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
    background: #1a2744;
    display: block;
}
.t6-portrait.sm { width: 36px; height: 36px; border-radius: 50%; }
.t6-portrait-bg {
    display: none;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, #6b7c99 0 14%, transparent 15%),
        linear-gradient(145deg, #3a4d6e, #152238);
}
.t6-portrait-bg::after {
    content: "📷";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
}
.t6-portrait.sm .t6-portrait-bg::after { font-size: .95rem; }
.t6-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}
html[data-photos="hide"] .t6-portrait { cursor: pointer; }
html[data-photos="hide"] .t6-portrait-bg { display: block; }
html[data-photos="hide"] .t6-portrait img { display: none; }
html[data-photos="distort"] .t6-portrait img {
    filter: blur(20px) contrast(1.7) saturate(.12) brightness(.65);
    transform: scale(1.18);
}
html[data-photos="distort"] .t6-portrait:hover img,
html[data-photos="distort"] .t6-portrait:focus img {
    filter: none;
    transform: none;
}
html[data-photos="distort"] .t6-chat-img img,
html[data-photos="distort"] .t6-img-zoom img {
    filter: blur(20px) contrast(1.7) saturate(.12) brightness(.65);
    transform: scale(1.08);
}
html[data-photos="distort"] .t6-chat-img:hover img,
html[data-photos="distort"] .t6-chat-img:focus-within img,
html[data-photos="distort"] .t6-img-zoom img:hover {
    filter: none;
    transform: none;
}
html[data-photos="hide"] .t6-chat-img {
    cursor: pointer;
    min-width: 96px;
    min-height: 96px;
    display: inline-grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, #6b7c99 0 14%, transparent 15%),
        linear-gradient(145deg, #3a4d6e, #152238);
    border-radius: 8px;
}
html[data-photos="hide"] .t6-chat-img::before {
    content: "📷";
    font-size: 1.8rem;
    grid-area: 1 / 1;
    z-index: 1;
}
html[data-photos="hide"] .t6-chat-img img { display: none; }
html[data-photos="hide"] .t6-chat-img em { z-index: 2; }
.t6-photo-peek {
    background: rgba(0,0,0,.88);
    z-index: 120;
}
.t6-photo-peek img {
    max-width: min(420px, 86vw);
    max-height: 70vh;
    border-radius: 12px;
    object-fit: contain;
}
.t6-photo-peek p { color: #fff; margin-top: .8rem; font-weight: 700; }
.t6-img-zoom {
    background: rgba(8, 12, 20, .88);
    z-index: 240;
    cursor: zoom-out;
}
.t6-img-zoom img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.t6-item strong { display: block; font-size: .8rem; }
.t6-item small { display: block; color: var(--t6-muted); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t6-item .t6-time {
    color: var(--t6-muted);
    font-size: .68rem;
    white-space: nowrap;
}
.t6-badge {
    display: inline-grid; place-items: center;
    min-width: 20px; height: 20px; padding: 0 5px;
    background: #e31c3d; color: #fff; border-radius: 99px;
    font-size: .72rem; font-weight: 800; line-height: 1;
}
.t6-pager {
    display: flex; justify-content: space-between; align-items: center;
    padding: .25rem .45rem; font-size: .7rem; color: var(--t6-muted);
    border-top: 1px solid var(--t6-line); flex-shrink: 0;
}
.t6-pager button {
    border: 1px solid var(--t6-line); background: #fff; min-width: 22px; height: 22px; cursor: pointer;
}

.t6-form, .t6-followup, .t6-notes-label { padding: .4rem .55rem; overflow: auto; }
.t6-form label, .t6-followup label, .t6-notes-label {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: .3rem;
    align-items: center;
    margin-bottom: .28rem;
    font-size: .72rem;
    color: var(--t6-navy);
}
.t6-form label:has(textarea), .t6-notes-label {
    grid-template-columns: 1fr;
    align-items: stretch;
}
.t6-zip-row {
    display: flex;
    gap: 4px;
    align-items: stretch;
    min-width: 0;
}
.t6-zip-row input { width: auto; flex: 1; min-width: 0; }
.t6-zip-lup {
    flex: 0 0 28px;
    width: 28px;
    border: 1px solid var(--t6-line);
    background: #fff;
    color: var(--t6-navy);
    border-radius: 4px;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}
.t6-zip-lup:hover { background: #e8eef8; }
.t6-geo-search { display: flex; gap: .35rem; align-items: stretch; margin-bottom: .45rem; }
.t6-geo-search > input[type="text"] { flex: 1; min-width: 0; padding: .35rem .45rem; border: 1px solid var(--t6-line); border-radius: 4px; font: inherit; }
.t6-geo-radius-lab {
    display: flex; align-items: center; gap: .3rem;
    font-size: .72rem; color: var(--t6-navy); white-space: nowrap;
}
.t6-geo-radius-lab input[type="range"] { width: 92px; accent-color: var(--t6-navy); }
.t6-geo-radius-lab input[type="number"] {
    width: 52px; border: 1px solid var(--t6-line); border-radius: 4px;
    font: inherit; padding: .2rem .25rem; text-align: right;
}
.t6-geo-places, .t6-geo-cities { max-height: 240px; overflow: auto; margin-bottom: .45rem; }
.t6-geo-place, .t6-geo-city {
    display: flex; gap: .5rem; align-items: center; width: 100%;
    text-align: left; border: 0; border-bottom: 1px solid #edf2f7;
    background: #fff; padding: .45rem .35rem; cursor: pointer; font: inherit;
}
.t6-geo-place:hover, .t6-geo-city:hover { background: #eef4fb; }
.t6-geo-place.on, .t6-geo-city.on { background: #e3edff; }
.t6-geo-city span, .t6-geo-place span { display: block; min-width: 0; }
.t6-geo-city small, .t6-geo-place small { display: block; color: var(--t6-muted); font-size: .72rem; }
.t6-geo-km { margin-left: auto; font-weight: 700; color: var(--t6-navy); font-size: .78rem; white-space: nowrap; }
.t6-geo-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa8b8; flex-shrink: 0; }
.t6-geo-dot.on { background: #2f9e44; }
.t6-check { display: flex !important; align-items: center; gap: .35rem; grid-template-columns: 1fr !important; }
.t6-check-end { justify-content: space-between; }
.t6-check-end input { margin-left: auto; }
.t6-cust-actions { display: flex; gap: .3rem; padding: .4rem .5rem 0; }
.t6-cust-actions .t6-btn { flex: 1; font-size: .72rem; }

.t6-chat { background: #f7f9fc; }
.t6-latest {
    margin: .4rem;
    background: #fff;
    border: 1px solid var(--t6-line);
    padding: .4rem .5rem;
    font-size: .78rem;
    flex-shrink: 0;
}
.t6-cog {
    border: 0;
    background: transparent;
    color: var(--t6-muted);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
}
.t6-cog:hover { color: var(--t6-navy); background: #eef4fb; }
.t6-latest p { margin: .2rem 0 0; color: var(--t6-muted); }
.t6-chat-head {
    padding: 0 .55rem .25rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--t6-navy);
    text-transform: uppercase;
    flex-shrink: 0;
}
.t6-thread {
    flex: 1;
    overflow: auto;
    padding: .4rem .7rem .8rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 0;
    background: var(--t6-chat-bg, transparent);
    color: var(--t6-chat-fg, inherit);
    font-family: var(--t6-chat-font, inherit);
    font-size: var(--t6-chat-size, inherit);
}
html.t6-read-on .t6-thread,
html.t6-read-on .t6-bubble,
html.t6-read-on .t6-compose textarea {
    font-family: var(--t6-chat-font, inherit);
    font-size: var(--t6-chat-size, inherit);
    color: var(--t6-chat-fg, inherit);
}
html.t6-read-on .t6-compose textarea {
    background: var(--t6-chat-bg, #fff);
}
.t6-read-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem .7rem;
    margin: .4rem 0 .7rem;
}
.t6-read-fields label {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .82rem;
    color: var(--t6-muted);
}
.t6-read-fields input[type="color"] {
    width: 100%;
    height: 32px;
    border: 1px solid var(--t6-line);
    border-radius: 6px;
    background: #fff;
    padding: 0 2px;
    cursor: pointer;
}
.t6-read-fields select,
.t6-read-fields input[type="range"] {
    width: 100%;
}
#btnReadReset { margin-bottom: .8rem; }
.t6-bubble {
    max-width: 78%;
    padding: .4rem .55rem;
    border-radius: 8px;
    font-size: .82rem;
    line-height: 1.35;
}
.t6-bubble .meta { display: block; font-size: .65rem; color: var(--t6-muted); margin-bottom: .15rem; }
.t6-bubble .t6-via {
    display: block;
    font-size: .6rem;
    color: var(--t6-muted);
    opacity: .72;
    margin: -.08rem 0 .18rem;
    font-weight: 400;
}
.t6-bubble .t6-when {
    display: block;
    font-size: .62rem;
    color: var(--t6-muted);
    margin-top: .22rem;
    opacity: .9;
}
.t6-bubble.you .t6-when { text-align: right; }
.t6-bubble.me { align-self: flex-start; background: var(--t6-bubble-me); }
.t6-bubble.you { align-self: flex-end; background: var(--t6-bubble-you); }
.t6-bubble.sys {
    align-self: center;
    background: #c53030;
    color: #fff;
    font-size: .75rem;
    max-width: 90%;
}
.t6-bubble.sys .meta { color: #fed7d7; }
.t6-compose { background: #fff; border-top: 1px solid var(--t6-line); padding: .4rem .5rem; flex-shrink: 0; }
.t6-emoji-bar {
    display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: .3rem;
    max-height: 72px; overflow: auto;
}
.t6-emoji-bar[hidden] { display: none; }
.t6-emo {
    border: 0; background: #f4f7fb; cursor: pointer; font-size: 1.05rem;
    width: 28px; height: 28px; border-radius: 4px; padding: 0;
}
.t6-emo:hover { background: #e2eaf4; }
.t6-compose-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px;
    gap: .3rem;
    align-items: end;
}
.t6-compose-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.t6-icon { border: 0; background: none; cursor: pointer; font-size: 1.2rem; height: 36px; }
.t6-icon.t6-ai { font-size: 1.05rem; height: 28px; line-height: 1; }
.t6-icon.t6-ai:disabled { opacity: .35; cursor: not-allowed; }
.t6-icon.t6-ai.busy { animation: t6-ai-pulse .85s ease-in-out infinite; }
@keyframes t6-ai-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: .65; }
}
.t6-compose textarea { min-height: 64px; resize: vertical; }
.t6-send-arrow {
    height: 44px; width: 44px;
    border: 0; border-radius: 6px;
    background: var(--t6-blue); color: #fff;
    font-size: 1.2rem; cursor: pointer; font-weight: 700;
}
.t6-send-arrow:disabled { background: #9aa8b8; cursor: not-allowed; }
.t6-compose-row { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .35rem; }
.t6-friend-ask {
    display: block;
    margin-top: .45rem;
}
.t6-friend-ask .t6-accept-friend,
.t6-accept-friend {
    display: inline-block;
    min-width: 140px;
    padding: .45rem .9rem;
    font-size: .95rem;
    font-weight: 700;
    background: #2f9e44 !important;
    color: #fff !important;
    border: 0;
    cursor: pointer;
}
#btnAcceptFriend { font-weight: 700; background: #2f9e44; color: #fff; }
.t6-compose-row select { max-width: 150px; }
.t6-session-copy {
    font: inherit; color: #fff; background: rgba(255,255,255,.12);
    border: 1px dashed rgba(255,255,255,.4); border-radius: 4px;
    padding: .2rem .45rem; cursor: pointer; letter-spacing: .04em;
}
.t6-foot {
    background: var(--t6-navy-2);
    color: #fff;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: .55rem;
    padding: .3rem .6rem;
    flex-shrink: 0;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
}
.t6-foot > * { flex-shrink: 0; }
.t6-foot select { padding: .25rem .4rem; }
.t6-plat-stats { opacity: .95; font-size: .78rem; margin-left: auto; }
.t6-info-pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #001C8A;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .18rem .5rem;
    border-radius: 99px;
}
.t6-info-pill[hidden] { display: none !important; }

.t6-theme-picks { display: grid; gap: .55rem; margin: .7rem 0 1rem; }
.t6-theme-opt {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--t6-navy);
    font-weight: 600;
    cursor: pointer;
    padding: .55rem .7rem;
    border: 1px solid var(--t6-line);
    border-radius: 10px;
    background: #f7f9fc;
    user-select: none;
}
.t6-theme-opt input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #9aa8bd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.t6-theme-opt input:checked {
    background: #001C8A;
    border-color: #001C8A;
}
.t6-theme-opt input:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.t6-theme-opt.on {
    border-color: #001C8A;
    box-shadow: 0 0 0 2px rgba(0, 28, 138, .15);
    background: #eef2ff;
}

.t6-modal-alert {
    background: #9b1028;
    z-index: 200;
    padding: 1.5rem;
}
.t6-alert-inner {
    width: min(720px, 94vw);
    color: #fff;
    text-align: center;
}
.t6-alert-inner h2 { margin: 0 0 .8rem; font-size: 1.8rem; letter-spacing: .03em; }
.t6-alert-inner p { font-size: 1.05rem; line-height: 1.45; margin: 0 0 .85rem; }
.t6-btn-alert {
    background: #fff !important;
    color: #9b1028 !important;
    font-weight: 800;
    padding: .55rem 1.1rem;
}
.t6-lc-idle-card {
    width: min(560px, 94vw);
    background: #fff;
    color: #1a2332;
    border-radius: 10px;
    padding: 1.15rem 1.25rem 1.05rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.t6-lc-idle-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.t6-lc-idle-copy { flex: 1; min-width: 0; }
.t6-lc-idle-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #14213d;
    margin-bottom: .35rem;
}
.t6-lc-idle-text { font-size: .95rem; line-height: 1.4; color: #3b4a5c; }
.t6-lc-idle-icon { color: #2f9e44; flex-shrink: 0; }
.t6-lc-idle-hint {
    margin: .85rem 0 .7rem;
    font-size: .9rem;
    color: #3b4a5c;
}
.t6-lc-idle-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.t6-lc-idle-stay {
    background: #2b3340 !important;
    color: #fff !important;
}
.t6-lc-idle-go {
    background: #2f9e44 !important;
    color: #fff !important;
    font-weight: 800;
}
.t6-lc-idle-go:disabled,
.t6-lc-idle-stay:disabled { opacity: .55; cursor: wait; }
.t6-modal-card label { display: grid; gap: .25rem; margin: .55rem 0; font-size: .85rem; color: var(--t6-navy); }
.t6-modal-card label input { padding: .35rem .45rem; }

.t6-switch {
    display: flex; align-items: center; gap: .45rem;
    padding: .45rem .55rem; font-size: .78rem; font-weight: 600; color: var(--t6-green);
}
.t6-switch input { accent-color: var(--t6-green); transform: scale(1.2); }
.t6-regs .t6-item { cursor: default; }

.t6-modal {
    position: fixed; inset: 0; background: rgba(15, 36, 61, .55);
    display: grid; place-items: center; z-index: 80;
}
.t6-modal[hidden] { display: none; }
.t6-modal.t6-modal-alert { z-index: 200; }
.t6-modal.t6-lc-idle {
    z-index: 230;
    background: rgba(12, 18, 32, .72);
    padding: 1.2rem;
}
.t6-modal-card {
    background: #fff; width: min(520px, 92vw); padding: 1.1rem 1.2rem;
    border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.t6-modal-card h3 { margin: 0 0 .5rem; color: var(--t6-navy); }
.t6-modal-card .t6-theme-opt {
    display: flex;
    margin: 0;
}
.t6-modal-card .t6-theme-opt input {
    padding: 0;
    width: 22px;
    height: 22px;
}
#modalSettings.t6-modal {
    padding: 1rem;
    overflow: auto;
    align-content: center;
}
#modalSettings .t6-modal-card,
.t6-modal-card.t6-modal-scroll {
    width: min(540px, 94vw);
    max-height: min(90dvh, 740px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
#modalSettings .t6-modal-card > h3:first-child,
.t6-modal-scroll > h3:first-child {
    margin: 0;
    padding: .95rem 1.2rem .7rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--t6-line, #e4eaf2);
}
.t6-modal-scroll-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: .85rem 1.2rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 28, 138, .45) #eef2f8;
}
.t6-modal-scroll-body h3 {
    margin: 1.05rem 0 .35rem;
    font-size: 1rem;
}
.t6-modal-scroll-body h3:first-child { margin-top: 0; }
.t6-modal-scroll-body p {
    margin: 0 0 .45rem;
    color: var(--t6-muted);
    font-size: .82rem;
}
.t6-modal-scroll-body .t6-theme-picks { margin: .35rem 0 .2rem; }
#modalSettings .t6-modal-actions,
.t6-modal-scroll > .t6-modal-actions {
    margin: 0;
    padding: .7rem 1.2rem .9rem;
    border-top: 1px solid var(--t6-line, #e4eaf2);
    flex-shrink: 0;
    background: inherit;
}
#btnColsDefault { margin: .15rem 0 .2rem; }
.t6-modal-actions { display: flex; justify-content: flex-end; gap: .4rem; margin-top: 1rem; }
.t6-modal-actions .t6-btn { color: #fff; background: var(--t6-navy); }
.t6-pick-list { max-height: 320px; overflow: auto; margin-bottom: .6rem; }
.t6-pick-list button {
    display: block; width: 100%; text-align: left; padding: .45rem .5rem;
    border: 0; border-bottom: 1px solid #edf2f7; background: #fff; cursor: pointer;
}
.t6-pick-list button:hover { background: #eef4fb; }

.t6-empty { padding: 1rem .7rem; color: var(--t6-muted); font-size: .8rem; }
.t6-empty.t6-searching {
    margin: auto;
    text-align: center;
    font-size: .95rem;
    padding: 2.4rem 1rem;
}

@media (max-width: 1280px) {
    .t6-grid { grid-template-columns: minmax(160px, 200fr) minmax(170px, 200fr) minmax(240px, 1fr) minmax(180px, 210fr); }
    #colNew { display: none; }
}
@media (max-width: 960px) {
    body.t6-app { overflow: auto; height: auto; }
    .t6-grid { display: block; }
    .t6-col { min-height: 420px; margin-bottom: 4px; }
    .t6-col-resizer { display: none !important; }
}

html:has(body.t6-hub-body) {
    height: 100%;
    overflow: hidden;
}
.t6-hub-body {
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #001C8A, #001047);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #fff;
}
.t6-hub {
    width: min(1200px, 96vw);
    margin: 0 auto;
    padding: .75rem .7rem .85rem;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    overflow: hidden;
}
.t6-hub-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.t6-hub-who {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .65rem;
    min-width: 0;
}
.t6-hub-who .t6-login-brand { margin: 0; }
.t6-hub-head p { margin: 0; opacity: .9; }
.t6-role-pill {
    display: inline-flex;
    align-items: center;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    padding: .18rem .55rem;
}
.t6-hub-go {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    margin: 0;
    margin-left: auto;
}
.t6-hub-go .t6-fetz { order: 0; }
.t6-hub-go #hubLogout { margin-left: .15rem; }
.t6-hub-session { text-align: right; }
.t6-hub-session span { display: block; font-size: .75rem; opacity: .75; margin-bottom: .2rem; }
.t6-hub-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: .5rem;
    margin: 0;
    flex-shrink: 0;
}
.t6-stat {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: .7rem .6rem;
    text-align: center;
    color: inherit;
    font: inherit;
    cursor: pointer;
    width: 100%;
}
button.t6-stat.on {
    background: rgba(255,255,255,.28);
    border-color: #fff;
}
.t6-stat b { display: block; font-size: 1.35rem; }
.t6-stat span { font-size: .72rem; opacity: .85; }
.t6-hub-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: .7rem; flex: 1; min-height: 0; overflow: hidden; }
.t6-hub-card {
    background: #fff; color: var(--t6-text);
    border-radius: 10px; padding: .85rem 1rem;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.t6-hub-card h2 { margin: 0 0 .3rem; color: var(--t6-navy); font-size: 1rem; }
.t6-hub-card .t6-theme-picks + h2 { margin-top: .65rem; }
.t6-hub .t6-theme-picks { margin: .25rem 0 .15rem; gap: .35rem; }
.t6-hub .t6-theme-opt { padding: .4rem .55rem; }
.t6-muted { color: var(--t6-muted); font-size: .82rem; }
.t6-hub-form { flex-shrink: 0; }
.t6-hub-form input, .t6-hub-form textarea {
    width: 100%; margin: .25rem 0; padding: .45rem .5rem;
    border: 1px solid var(--t6-line); border-radius: 6px; font: inherit;
}
.t6-hub-texts { margin-top: .45rem; max-height: none; flex: 1; min-height: 0; overflow: auto; }
.t6-text-row {
    display: flex; justify-content: space-between; gap: .5rem;
    border-top: 1px solid #edf2f7; padding: .45rem 0;
}
.t6-text-row p { margin: .15rem 0 0; font-size: .8rem; color: var(--t6-muted); }
.t6-text-row button {
    border: 0; background: #edf2f7; cursor: pointer; border-radius: 4px; height: 28px;
}
.t6-fetz {
    margin-top: 0;
    background: #fff; color: #001C8A;
    border: 0; border-radius: 8px;
    font-size: 1.05rem; font-weight: 800;
    padding: .55rem 1.25rem; cursor: pointer;
    letter-spacing: .02em;
}
.t6-online-list { flex: 1; min-height: 0; overflow: auto; }
.t6-hub-go a.t6-btn { text-decoration: none; display: inline-flex; align-items: center; }
.t6-hub-go a.t6-btn-blue { background: #fff; color: #001C8A; }
.t6-hub-err { color: #feb2b2; }
.t6-modal-card .t6-hub-stats { color: var(--t6-text); }
.t6-modal-card .t6-stat { background: #f4f7fb; border-color: var(--t6-line); }

html.theme-dunkel {
    --t6-bg: #0b1020;
    --t6-text: #e8edf7;
    --t6-muted: #9aa8bd;
    --t6-line: #243049;
    --t6-bubble-me: #1a2438;
    --t6-bubble-you: #13224a;
}
html.theme-dunkel body.t6-app,
html.theme-dunkel .t6-col,
html.theme-dunkel .t6-compose,
html.theme-dunkel .t6-latest,
html.theme-dunkel .t6-timer,
html.theme-dunkel .t6-modal-card,
html.theme-dunkel .t6-hub-card,
html.theme-dunkel .t6-hub-sent,
html.theme-dunkel .t6-agent-drop,
html.theme-dunkel .t6-login-card { background: #121a2c; color: var(--t6-text); }
html.theme-dunkel .t6-chat { background: #0d1424; }
html.theme-dunkel .t6-tabs button { background: #1a2438; color: #c5d0e6; }
html.theme-dunkel .t6-item:hover, html.theme-dunkel .t6-item.active { background: #1a2744; }
html.theme-dunkel .t6-item.online { background: #13291c; }
html.theme-dunkel .t6-on-lab { color: #4ade80; }
html.theme-dunkel .t6-item-tools { background: #121a2c; }
html.theme-dunkel .t6-item:hover .t6-item-tools,
html.theme-dunkel .t6-item.active .t6-item-tools { background: #1a2744; }
html.theme-dunkel .t6-item-ava.has-new::after { border-color: #121a2c; }
html.theme-dunkel .t6-item-ava.is-online::before { border-color: #121a2c; }
html.theme-dunkel .t6-cog { color: #9aabc4; }
html.theme-dunkel .t6-cog:hover { color: #e8edf7; background: #1a2744; }
html.theme-dunkel .t6-item-tools .t6-cog { color: #c5d0e6; }
html.theme-dunkel .t6-col-resizer:hover,
html.theme-dunkel .t6-col-resizer.on { background: rgba(90, 140, 255, .4); }
html.theme-dunkel .t6-search input,
html.theme-dunkel .t6-form input,
html.theme-dunkel .t6-form select,
html.theme-dunkel .t6-form textarea,
html.theme-dunkel .t6-compose textarea,
html.theme-dunkel .t6-geo-search input,
html.theme-dunkel .t6-geo-search select,
html.theme-dunkel .t6-geo-radius-lab input,
html.theme-dunkel .t6-zip-lup { background: #0b1020; color: #e8edf7; border-color: #2a3a58; }
html.theme-dunkel .t6-geo-place,
html.theme-dunkel .t6-geo-city { background: #121a2c; color: #e8edf7; border-color: #243049; }
html.theme-dunkel .t6-geo-place:hover,
html.theme-dunkel .t6-geo-city:hover,
html.theme-dunkel .t6-geo-place.on,
html.theme-dunkel .t6-geo-city.on { background: #1a2744; }
html.theme-dunkel .t6-zip-lup:hover { background: #1a2744; }
html.theme-dunkel .t6-sent-item { background: #0d1424; }
html.theme-dunkel .t6-sent-tabs button { background: #1a2438; color: #c5d0e6; border-color: #2a3a58; }
html.theme-dunkel .t6-sent-tabs button.active { background: #001C8A; color: #fff; border-color: #001C8A; }
html.theme-dunkel .t6-sent-head input[type="search"] { background: #0b1020; color: #e8edf7; border-color: #2a3a58; }
html.theme-dunkel .t6-sent-via { color: #9ec0ff; }

html.theme-graustufe,
html.theme-graustufe body,
html.theme-graustufe .t6-app,
html.theme-graustufe .t6-hub-body {
    filter: grayscale(1) contrast(1.08);
}
html.theme-graustufe {
    --t6-bg: #cfcfcf;
    --t6-text: #1a1a1a;
    --t6-muted: #555;
    --t6-line: #9a9a9a;
    --t6-bubble-me: #e6e6e6;
    --t6-bubble-you: #d2d2d2;
    --t6-navy: #222;
    --t6-navy-2: #333;
}
html.theme-graustufe body.t6-app,
html.theme-graustufe .t6-col,
html.theme-graustufe .t6-compose,
html.theme-graustufe .t6-latest,
html.theme-graustufe .t6-timer,
html.theme-graustufe .t6-modal-card,
html.theme-graustufe .t6-hub-card,
html.theme-graustufe .t6-hub-body {
    background: #d8d8d8 !important;
    color: #1a1a1a;
}
html.theme-graustufe .t6-top,
html.theme-graustufe .t6-col h2,
html.theme-graustufe .t6-foot,
html.theme-graustufe .t6-btn-blue,
html.theme-graustufe .t6-send-arrow,
html.theme-graustufe .t6-btn-primary,
html.theme-graustufe .t6-fetz {
    background: #4a4a4a !important;
    color: #f2f2f2 !important;
    filter: grayscale(1);
}

html.theme-braun {
    --t6-bg: #efe4d4;
    --t6-text: #3b2414;
    --t6-muted: #7a5a40;
    --t6-line: #d2b48c;
    --t6-bubble-me: #f4eadc;
    --t6-bubble-you: #ead7b8;
}
html.theme-braun body.t6-app,
html.theme-braun .t6-col,
html.theme-braun .t6-compose,
html.theme-braun .t6-latest,
html.theme-braun .t6-timer,
html.theme-braun .t6-modal-card,
html.theme-braun .t6-hub-card { background: #f7efe4; }

html.theme-modern {
    --t6-bg: #08080c;
    --t6-text: #f4eef4;
    --t6-muted: #b59aae;
    --t6-line: #3a2e3c;
    --t6-bubble-me: #2a1824;
    --t6-bubble-you: #001C8A;
    --t6-navy-3: #0a0614;
    color-scheme: dark;
}
html.theme-modern body.t6-app,
html.theme-modern .t6-hub-body,
html.theme-modern .t6-login-body,
html.theme-modern .t6-staff-body {
    background:
        radial-gradient(1200px 480px at 8% -10%, rgba(0, 28, 138, .42), transparent 58%),
        radial-gradient(900px 420px at 100% 0%, rgba(244, 168, 200, .16), transparent 52%),
        linear-gradient(165deg, #0a0a10 0%, #08080c 42%, #140a12 100%);
    color: var(--t6-text);
    -webkit-font-smoothing: antialiased;
}
html.theme-modern body.t6-app,
html.theme-modern .t6-col,
html.theme-modern .t6-compose,
html.theme-modern .t6-latest,
html.theme-modern .t6-timer,
html.theme-modern .t6-modal-card,
html.theme-modern .t6-hub-card,
html.theme-modern .t6-agent-drop,
html.theme-modern .t6-login-card,
html.theme-modern .t6-lc-idle-card,
html.theme-modern .t6-staff-detail {
    background: #121017;
    color: var(--t6-text);
    border-color: var(--t6-line);
}
html.theme-modern .t6-col {
    background: rgba(18, 16, 23, .92);
    border-color: rgba(244, 168, 200, .14);
    backdrop-filter: blur(10px);
}
html.theme-modern .t6-top {
    background: linear-gradient(90deg, #001C8A 0%, #0c0a12 58%, #2a1020 100%);
    border-bottom: 1px solid rgba(244, 168, 200, .22);
}
html.theme-modern .t6-col h2 {
    background: linear-gradient(90deg, #001C8A 0%, #141018 70%, #241018 100%);
    box-shadow: inset 0 -1px 0 rgba(244, 168, 200, .18);
}
html.theme-modern .t6-foot {
    background: linear-gradient(90deg, #001056 0%, #0c0a12 55%, #1e0c16 100%);
    border-top: 1px solid rgba(244, 168, 200, .18);
}
html.theme-modern .t6-chat {
    background:
        radial-gradient(680px 280px at 100% 0%, rgba(0, 28, 138, .28), transparent 60%),
        radial-gradient(520px 240px at 0% 100%, rgba(244, 168, 200, .1), transparent 55%),
        #0c0a10;
}
html.theme-modern .t6-timer {
    background: #16121a;
    border-bottom-color: rgba(244, 168, 200, .16);
    color: #ff8fb3;
}
html.theme-modern .t6-latest {
    background: #18141c;
    border-color: rgba(244, 168, 200, .16);
}
html.theme-modern .t6-compose { background: #141018; border-top-color: rgba(244, 168, 200, .16); }
html.theme-modern .t6-bubble {
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
html.theme-modern .t6-bubble.me {
    background: linear-gradient(180deg, #32202c, #241820);
    border: 1px solid rgba(244, 168, 200, .22);
}
html.theme-modern .t6-bubble.you {
    background: linear-gradient(180deg, #0024b0, #001C8A);
    color: #fff;
    border: 1px solid rgba(180, 200, 255, .28);
}
html.theme-modern .t6-bubble.you .meta { color: rgba(255, 255, 255, .72); }
html.theme-modern .t6-tabs { border-bottom-color: rgba(244, 168, 200, .16); }
html.theme-modern .t6-tabs button {
    background: #18141e;
    color: #f0c6d8;
}
html.theme-modern .t6-tabs button.active {
    background: #121017;
    color: #fff;
    border-bottom-color: #f4a8c8;
}
html.theme-modern .t6-item { border-bottom-color: rgba(244, 168, 200, .08); }
html.theme-modern .t6-item:hover,
html.theme-modern .t6-item.active {
    background: linear-gradient(90deg, rgba(0, 28, 138, .28), rgba(244, 168, 200, .12));
}
html.theme-modern .t6-item-tools { background: #121017; }
html.theme-modern .t6-item:hover .t6-item-tools,
html.theme-modern .t6-item.active .t6-item-tools {
    background: transparent;
}
html.theme-modern .t6-item-ava.has-new::after { border-color: #121017; }
html.theme-modern .t6-item.locked { background: rgba(244, 168, 200, .08); }
html.theme-modern .t6-item.locked.active { box-shadow: inset 3px 0 0 #f4a8c8; }
html.theme-modern .t6-item .t6-lock { color: #f4a8c8; }
html.theme-modern .t6-cog { color: #c9a8bc; }
html.theme-modern .t6-cog:hover { color: #fff; background: rgba(244, 168, 200, .16); }
html.theme-modern .t6-item-tools .t6-cog { color: #f0c6d8; }
html.theme-modern .t6-col-resizer:hover,
html.theme-modern .t6-col-resizer.on { background: rgba(244, 168, 200, .38); }
html.theme-modern .t6-search input,
html.theme-modern .t6-form input,
html.theme-modern .t6-form select,
html.theme-modern .t6-form textarea,
html.theme-modern .t6-compose textarea,
html.theme-modern .t6-followup input,
html.theme-modern .t6-followup select,
html.theme-modern .t6-notes-label textarea,
html.theme-modern .t6-geo-search input,
html.theme-modern .t6-geo-search select,
html.theme-modern .t6-geo-radius-lab input,
html.theme-modern .t6-zip-lup,
html.theme-modern .t6-hub-form input,
html.theme-modern .t6-hub-form textarea,
html.theme-modern .t6-hub-form select,
html.theme-modern .t6-login input,
html.theme-modern .t6-staff-form input,
html.theme-modern .t6-staff-form select,
html.theme-modern .t6-staff-form textarea,
html.theme-modern .t6-modal-card input,
html.theme-modern .t6-modal-card textarea,
html.theme-modern .t6-modal-card select,
html.theme-modern .t6-access-search,
html.theme-modern .t6-compose-row select {
    background: #0c0a10;
    color: #f4eef4;
    border-color: #4a3648;
}
html.theme-modern .t6-form input[readonly] {
    background: #1a1620;
    color: #c9b4c4;
}
html.theme-modern .t6-geo-place,
html.theme-modern .t6-geo-city,
html.theme-modern .t6-pick-list button {
    background: #121017;
    color: var(--t6-text);
    border-bottom-color: rgba(244, 168, 200, .1);
}
html.theme-modern .t6-geo-place:hover,
html.theme-modern .t6-geo-city:hover,
html.theme-modern .t6-geo-place.on,
html.theme-modern .t6-geo-city.on,
html.theme-modern .t6-pick-list button:hover,
html.theme-modern .t6-zip-lup:hover,
html.theme-modern .t6-agent-drop button:hover {
    background: linear-gradient(90deg, rgba(0, 28, 138, .35), rgba(244, 168, 200, .14));
}
html.theme-modern .t6-agent-me,
html.theme-modern .t6-agent-online { border-bottom-color: rgba(244, 168, 200, .12); }
html.theme-modern .t6-emo { background: #1c1620; }
html.theme-modern .t6-emo:hover { background: rgba(244, 168, 200, .2); }
html.theme-modern .t6-note,
html.theme-modern .t6-text-row button,
html.theme-modern .t6-access-site,
html.theme-modern .t6-flag,
html.theme-modern .t6-modal-card .t6-stat {
    background: #1a1620;
    border-color: rgba(244, 168, 200, .14);
    color: var(--t6-text);
}
html.theme-modern .t6-theme-opt {
    background: #1a1620;
    color: #f4eef4;
    border-color: rgba(244, 168, 200, .18);
}
html.theme-modern .t6-theme-opt input { background: #0c0a10; border-color: #6a4e60; }
html.theme-modern .t6-theme-opt input:checked {
    background: #001C8A;
    border-color: #001C8A;
    box-shadow: 0 0 0 3px rgba(244, 168, 200, .22);
}
html.theme-modern .t6-theme-opt.on {
    border-color: #f4a8c8;
    background: linear-gradient(90deg, rgba(0, 28, 138, .38), rgba(244, 168, 200, .16));
    box-shadow: 0 0 0 2px rgba(244, 168, 200, .18);
}
html.theme-modern .t6-login-brand,
html.theme-modern .t6-hub-card h2,
html.theme-modern .t6-modal-card h3,
html.theme-modern .t6-col h3,
html.theme-modern .t6-chat-head,
html.theme-modern .t6-notes-head,
html.theme-modern .t6-form label,
html.theme-modern .t6-followup label,
html.theme-modern .t6-modal-card label,
html.theme-modern .t6-login label,
html.theme-modern .t6-staff-form-head h2,
html.theme-modern .t6-staff-form legend,
html.theme-modern .t6-staff-form label {
    color: #f4a8c8;
}
html.theme-modern .t6-info-pill {
    background: linear-gradient(90deg, #001C8A, #3a1830);
    color: #fff;
    border: 1px solid rgba(244, 168, 200, .35);
}
html.theme-modern .t6-lock-banner {
    background: #241820;
    color: #f4c4d8;
    border-color: rgba(244, 168, 200, .28);
}
html.theme-modern .t6-lock-banner.taken {
    background: #2a1420;
    color: #ffb3c8;
    border-color: rgba(255, 140, 170, .35);
}
html.theme-modern body.t6-dialog-taken .t6-compose textarea {
    background: #1a1218;
    color: #f0c6d8;
}
html.theme-modern .t6-lc-chat-banner {
    background: #241820;
    color: #f4c4d8;
    border-color: #f4a8c8;
}
html.theme-modern .t6-lc-chat-banner strong { color: #ff9ec4; }
html.theme-modern .t6-kiss-banner {
    background: #241820;
    color: #f4c4d8;
    border-color: #f4a8c8;
}
html.theme-modern .t6-kiss-banner strong { color: #ff9ec4; }
html.theme-modern .t6-toast {
    background: linear-gradient(90deg, #001C8A, #2a1020);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(244, 168, 200, .22);
}
html.theme-modern .t6-modal { background: rgba(6, 4, 10, .72); }
html.theme-modern .t6-modal-card {
    border: 1px solid rgba(244, 168, 200, .2);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(0, 28, 138, .18);
}
html.theme-modern .t6-fetz {
    background: linear-gradient(90deg, #001C8A, #2a1020);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 28, 138, .35);
}
html.theme-modern .t6-staff-card {
    background: #16121a;
    color: var(--t6-text);
    border-color: rgba(244, 168, 200, .14);
}
html.theme-modern .t6-staff-card:hover { border-color: #f4a8c8; }
html.theme-modern .t6-staff-card.on {
    border-color: #001C8A;
    background: linear-gradient(90deg, rgba(0, 28, 138, .4), rgba(244, 168, 200, .12));
}
html.theme-modern .t6-pill { background: #241830; color: #f4a8c8; }
html.theme-modern .t6-staff-detail .t6-btn-ghost {
    background: #241830;
    color: #f4a8c8;
}
html.theme-modern ::selection {
    background: rgba(244, 168, 200, .35);
    color: #fff;
}

.t6-notes { padding: .4rem .55rem; border-top: 1px solid var(--t6-line); }
.t6-notes-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .72rem; font-weight: 700; color: var(--t6-navy); margin-bottom: .25rem;
}
.t6-notes-edit {
    border: 0; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1;
}
.t6-notes-list { max-height: 160px; overflow: auto; display: grid; gap: .35rem; margin-bottom: .35rem; }
.t6-note {
    background: #f4f7fb; border: 1px solid var(--t6-line); border-radius: 4px; padding: .35rem .45rem;
}
.t6-notes-list.editing .t6-note { outline: 1px dashed var(--t6-blue); cursor: text; }
.t6-note p { margin: 0; white-space: pre-wrap; font-size: .74rem; }
.t6-note small { display: block; margin-top: .2rem; color: var(--t6-muted); font-size: .62rem; }
.t6-note textarea, .t6-notes textarea, .t6-modal-card textarea {
    width: 100%; box-sizing: border-box; font: inherit; padding: .35rem .45rem;
}
.t6-chat-img { display: block; position: relative; margin-top: .35rem; max-width: 100%; }
.t6-chat-img img {
    max-width: min(220px, 100%);
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #0f1724;
    border-radius: 8px;
    display: block;
    cursor: zoom-in;
}
.t6-chat-img.locked img { cursor: zoom-in; }
.t6-chat-img em {
    position: absolute; inset: auto 6px 6px auto;
    background: rgba(0,0,0,.65); color: #fff; font-size: .65rem; padding: .15rem .35rem; border-radius: 3px;
}
.t6-hub-stats { grid-template-columns: repeat(4, minmax(110px, 1fr)); max-width: none; }
.t6-hub-stats-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    margin: 0;
    flex: 0 1 auto;
    max-height: min(36vh, 320px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.45) transparent;
}
.t6-hub-stats-detail[hidden] { display: none !important; }
.t6-hub-texts, .t6-online-list, .t6-modal-scroll-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 28, 138, .4) #eef2f8;
}
.t6-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    margin-top: .4rem;
}
.t6-stats-table th, .t6-stats-table td {
    text-align: left;
    padding: .28rem .4rem;
    border-bottom: 1px solid var(--t6-line, #e4eaf2);
}
.t6-stats-table th { font-size: .72rem; opacity: .75; font-weight: 700; }
.t6-stats-table .t6-num, .t6-stats-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.t6-stats-block { margin: .7rem 0 0; }
.t6-stats-block h4 { margin: 0 0 .25rem; font-size: .9rem; }
.t6-modal-card .t6-stats-table th, .t6-modal-card .t6-stats-table td { color: var(--t6-text); }
.t6-modal #panelStats { max-height: min(70vh, 640px); overflow: auto; }
.t6-stats-totals { max-width: none; margin: 0 0 .6rem; }
.t6-hub-sent {
    background: #fff;
    color: var(--t6-text);
    border-radius: 10px;
    padding: .75rem .9rem .85rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 0 0 auto;
    max-height: none;
    overflow: hidden;
}
.t6-hub-sent[hidden] { display: none !important; }
.t6-hub-sent .t6-muted { margin: 0 0 .45rem; }
.t6-hub-sent h2 { margin: 0; color: var(--t6-navy); font-size: 1rem; }
.t6-sent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-bottom: .35rem;
}
.t6-sent-head h4 { margin: 0; font-size: .95rem; }
.t6-sent-head input[type="search"] {
    flex: 1 1 220px;
    min-width: 160px;
    padding: .4rem .55rem;
    border: 1px solid var(--t6-line);
    border-radius: 6px;
    font: inherit;
}
.t6-sent-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin: 0 0 .5rem;
    flex-shrink: 0;
}
.t6-sent-tabs button {
    border: 1px solid var(--t6-line);
    background: #f4f7fb;
    color: var(--t6-text);
    border-radius: 999px;
    padding: .22rem .7rem;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}
.t6-sent-tabs button.active {
    background: #001C8A;
    border-color: #001C8A;
    color: #fff;
}
.t6-sent-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: .45rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 28, 138, .4) #eef2f8;
}
.t6-sent-item {
    background: #f7f9fc;
    border: 1px solid var(--t6-line);
    border-radius: 8px;
    padding: .5rem .65rem;
}
.t6-sent-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .55rem;
    font-size: .72rem;
    color: var(--t6-muted);
}
.t6-sent-meta time { font-variant-numeric: tabular-nums; }
.t6-sent-via { font-weight: 700; color: var(--t6-navy); }
.t6-sent-body {
    margin: .35rem 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .86rem;
    line-height: 1.4;
    color: var(--t6-text);
}
.t6-sent-wrap { margin-top: .85rem; }
.t6-modal-card .t6-sent-item { background: #f7f9fc; }
.t6-modal-card .t6-sent-list { max-height: min(42vh, 380px); }
.t6-text-row small { display: block; opacity: .7; font-size: .72rem; margin-top: .1rem; }
.t6-hub-form select { width: 100%; padding: .4rem .5rem; margin-bottom: .4rem; }

.t6-item.locked {
    opacity: .78;
    background: #fff8f0;
    cursor: pointer;
}
.t6-item.locked.active {
    opacity: 1;
    box-shadow: inset 3px 0 0 #c05621;
}
.t6-item .t6-lock {
    font-size: .62rem; color: #9a4a16; font-weight: 700; white-space: nowrap;
}
.t6-lock-banner {
    margin: .35rem .5rem 0;
    background: #fff4e5; color: #7a3b00;
    border: 1px solid #f3d2a4; border-radius: 6px;
    padding: .35rem .5rem; font-size: .75rem;
}
.t6-lock-banner.taken {
    background: #fdecea;
    color: #8a1f1f;
    border-color: #f3c0be;
}
body.t6-dialog-taken .t6-compose textarea {
    background: #f6f1ea;
    color: #7a3b00;
    cursor: not-allowed;
}
.t6-lc-chat-banner,
.t6-lc-chat-banner {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0 0 .45rem;
    background: #fff3e0;
    color: #7a2e00;
    border: 2px solid #e67e22;
    border-radius: 8px;
    padding: .5rem .6rem;
    font-size: .85rem;
    line-height: 1.35;
}
.t6-lc-chat-banner[hidden],
.t6-lc-chat-banner[hidden] { display: none !important; }
.t6-lc-chat-banner strong,
.t6-lc-chat-banner strong { font-size: .95rem; color: #9b1028; }
.t6-lc-chat-banner .t6-btn { align-self: flex-start; }
.t6-kiss-banner {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin: 0 0 .45rem;
    background: #fde8f0;
    color: #6b1030;
    border: 2px solid #e85a8a;
    border-radius: 8px;
    padding: .5rem .6rem;
    font-size: .85rem;
    line-height: 1.35;
}
.t6-kiss-banner[hidden] { display: none !important; }
.t6-kiss-banner strong { font-size: .95rem; color: #9b1028; }
.t6-kiss-banner .t6-btn { align-self: flex-start; }
.t6-kiss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .15rem;
}
.t6-kiss-actions .t6-btn { align-self: auto; }
.t6-kiss-banner #btnKissUnlock {
    background: #fff;
    color: #9b1028;
    border: 1px solid #e85a8a;
    font-weight: 700;
}
.t6-kiss-banner #btnKissUnlock:hover { background: #fff5f8; }
.t6-kiss-choices {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: .15rem;
}
.t6-kiss-choice {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    color: #6b1030;
    border: 1px solid #e85a8a;
    border-radius: 6px;
    padding: .4rem .55rem;
    font-size: .82rem;
    line-height: 1.35;
    cursor: pointer;
}
.t6-kiss-choice:hover { background: #fff5f8; }
.t6-kiss-choice.on {
    background: #9b1028;
    color: #fff;
    border-color: #9b1028;
}
html.theme-modern .t6-kiss-choice {
    background: #1a1218;
    color: #f4c4d8;
    border-color: #f4a8c8;
}
html.theme-modern .t6-kiss-choice:hover { background: #2a1820; }
html.theme-modern .t6-kiss-choice.on {
    background: #f4a8c8;
    color: #1a1218;
    border-color: #f4a8c8;
}
.t6-modal.t6-lc-idle { display: none !important; }
body.t6-readonly .t6-compose-line,
body.t6-readonly .t6-compose-row {
    opacity: .55;
}

.t6-staff-body {
    min-height: 100%;
    margin: 0;
    background: linear-gradient(180deg, #001C8A, #001047);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #fff;
}
.t6-staff-top, .t6-staff-nav {
    display: flex; justify-content: space-between; align-items: center; gap: .6rem;
}
.t6-staff-top {
    width: min(1240px, 94vw); margin: 1.2rem auto .4rem;
}
.t6-staff-top p { margin: .15rem 0 0; opacity: .8; font-size: .85rem; }
.t6-staff-nav a.t6-btn { text-decoration: none; display: inline-flex; align-items: center; }
.t6-staff-body .t6-btn {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.t6-staff-body .t6-btn-blue {
    background: #fff;
    color: #001C8A;
    border-color: transparent;
}
.t6-staff-detail .t6-btn,
.t6-staff-detail .t6-btn-blue {
    background: #001C8A;
    color: #fff;
}
.t6-staff-detail .t6-btn-red {
    background: var(--t6-red);
    color: #fff;
}
.t6-staff-detail .t6-btn-ghost {
    background: #e8eef8;
    color: #001C8A;
}
.t6-staff-stats {
    width: min(1240px, 94vw); margin: .6rem auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
}
.t6-staff-err {
    width: min(1180px, 94vw); margin: 0 auto .5rem;
    background: #fff; color: var(--t6-navy); padding: .45rem .7rem; border-radius: 6px;
}
.t6-staff-err.on { color: var(--t6-red); }
.t6-staff-layout {
    width: min(1180px, 94vw); margin: 0 auto 2.4rem;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: .8rem;
    align-items: start;
}
.t6-staff-layout[hidden],
.t6-ag-home[hidden],
.t6-ag-page[hidden],
#panelNotices[hidden],
#agencyListView[hidden],
#agencyPageView[hidden] {
    display: none !important;
}
.t6-staff-list-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem;
}
.t6-staff-list-head h1 { margin: 0; font-size: 1.15rem; }
.t6-staff-grid { display: grid; gap: .45rem; }
.t6-staff-card {
    display: grid; grid-template-columns: 52px 1fr; gap: .65rem; align-items: center;
    width: 100%; text-align: left; cursor: pointer; font: inherit;
    background: #fff; color: var(--t6-text);
    border: 1px solid transparent; border-radius: 10px;
    padding: .7rem .8rem;
}
.t6-staff-card:hover { border-color: #9db0d8; }
.t6-staff-card.on { border-color: #001C8A; background: #f3f6ff; }
.t6-staff-card.blocked { opacity: .55; }
.t6-staff-ava { position: relative; width: 52px; height: 52px; }
.t6-staff-ava img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #d9e2ec; }
.t6-staff-ava i {
    position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px;
    border-radius: 50%; background: #9aa8b8; border: 2px solid #fff;
}
.t6-staff-ava i.on { background: #2f9e44; }
.t6-staff-meta strong { display: block; font-size: .95rem; }
.t6-staff-meta small { display: block; color: var(--t6-muted); margin: .1rem 0 .3rem; }
.t6-staff-pills { display: flex; flex-wrap: wrap; gap: .25rem; }
.t6-pill {
    display: inline-block; font-size: .65rem; padding: .12rem .4rem;
    border-radius: 99px; background: #e8eef8; color: var(--t6-navy);
}
.t6-pill.warn { background: #fde8e8; color: #9b1c1c; }
.t6-pill.gear { background: #fff4e0; color: #8a4b08; }
.t6-pill.lock { background: #e7f6ec; color: #1f7a3a; }
.t6-pill.dim { background: #eef1f5; color: #5a6a7a; }
.t6-staff-detail {
    background: #fff; color: var(--t6-text);
    border-radius: 10px; padding: 1rem 1.05rem;
    position: sticky; top: .7rem;
}
.t6-staff-form-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.t6-staff-form-head h2 { margin: 0; color: var(--t6-navy); font-size: 1.05rem; }
.t6-staff-form fieldset {
    border: 1px solid var(--t6-line); border-radius: 8px; margin: .7rem 0 0; padding: .7rem .75rem;
}
.t6-staff-form legend { color: var(--t6-navy); font-weight: 700; padding: 0 .3rem; }
.t6-staff-form label { display: block; font-size: .75rem; color: var(--t6-navy); margin: .28rem 0; }
.t6-staff-form input, .t6-staff-form select, .t6-staff-form textarea {
    width: 100%; margin-top: .15rem; padding: .4rem .45rem;
    border: 1px solid var(--t6-line); border-radius: 6px; font: inherit; color: var(--t6-text);
}
.t6-staff-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .55rem; }
.t6-span-2 { grid-column: 1 / -1; }
.t6-pass-box { margin: .28rem 0; }
.t6-pass-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .3rem;
    align-items: stretch;
}
.t6-pass-row input { margin-top: .15rem; }
.t6-pass-row .t6-btn {
    margin-top: .15rem;
    white-space: nowrap;
    align-self: stretch;
}
.t6-pass-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .4rem;
}
.t6-pass-hint { margin: .35rem 0 0; font-size: .72rem; }
.t6-staff-block { font-weight: 600; }
.t6-staff-actions {
    margin-top: .8rem;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}
.t6-staff-actions .t6-btn-red { margin-left: auto; }
.t6-access-tree { display: grid; gap: .45rem; }
.t6-access-site { background: #f6f8fc; border-radius: 8px; padding: .45rem .55rem; }
.t6-access-head, .t6-access-src {
    display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--t6-text);
}
.t6-access-head { flex-wrap: wrap; }
.t6-access-toggle {
    flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; border: 0; border-radius: 4px;
    background: #e4eaf6; color: var(--t6-navy); cursor: pointer; font-size: .7rem; line-height: 1;
    transition: transform .15s ease;
}
.t6-access-site.open .t6-access-toggle { transform: rotate(90deg); }
.t6-access-name {
    border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700;
    color: inherit; cursor: pointer; text-align: left;
}
.t6-access-all { margin-left: auto; font-weight: 600; cursor: pointer; }
.t6-access-search {
    width: 100%; margin: .1rem 0 .15rem; padding: .3rem .45rem;
    border: 1px solid var(--t6-line); border-radius: 6px; font: inherit; font-size: .8rem;
}
.t6-access-children { margin: .3rem 0 0 .2rem; display: grid; gap: .2rem; max-height: 240px; overflow: auto; }
.t6-access-children[hidden] { display: none; }
.t6-access-children .t6-muted { margin: 0; font-size: .72rem; }
.t6-access-src[hidden] { display: none; }
.t6-access-src-lab {
    display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 0; cursor: pointer;
}
.t6-src-photo-wrap {
    position: relative; flex: 0 0 36px; width: 36px; height: 36px;
}
.t6-src-photo-wrap input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.t6-src-photo, .t6-src-photo-empty {
    width: 36px; height: 36px; border-radius: 8px; display: block; background: #e4eaf6;
    object-fit: cover;
}
.t6-src-photo-empty {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: #6b7c99; font-weight: 700;
}
img.t6-src-photo-mini {
    width: 18px; height: 18px; border-radius: 4px; display: inline-block;
    vertical-align: middle; object-fit: cover;
}
.t6-fleet-photo { display: flex; align-items: center; gap: .65rem; margin: .45rem 0 .7rem; }
.t6-fleet-photo img, .t6-fleet-photo .t6-src-photo-empty {
    width: 72px; height: 72px; border-radius: 12px;
}
.t6-doc-upload { display: grid; grid-template-columns: 140px 1fr auto; gap: .35rem; margin-bottom: .55rem; }
.t6-doc-grid { display: grid; gap: .4rem; }
.t6-doc {
    display: grid; grid-template-columns: 56px 1fr auto; gap: .45rem; align-items: center;
    border: 1px solid var(--t6-line); border-radius: 8px; padding: .35rem;
}
.t6-doc img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.t6-doc-file {
    display: grid; place-items: center; width: 56px; height: 56px;
    background: #001C8A; color: #fff; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.t6-doc small { display: block; color: var(--t6-muted); }
.t6-doc button {
    border: 0; background: #edf2f7; border-radius: 4px; padding: .3rem .45rem; cursor: pointer;
}
.t6-flag-list { display: grid; gap: .4rem; max-height: 280px; overflow: auto; }
.t6-flag {
    border-radius: 8px; padding: .45rem .55rem; background: #f7f9fc; border-left: 3px solid #cbd5e0;
}
.t6-flag.warn { border-left-color: #c53030; background: #fdf6f6; }
.t6-flag.gear { border-left-color: #c05621; background: #fff8f0; }
.t6-flag strong, .t6-flag span, .t6-flag small, .t6-flag p { display: block; }
.t6-flag span { font-size: .78rem; }
.t6-flag small { color: var(--t6-muted); font-size: .68rem; margin-top: .1rem; }
.t6-flag p { margin: .25rem 0 0; font-size: .78rem; white-space: pre-wrap; }

@media (max-width: 800px) {
    html:has(body.t6-hub-body) { overflow: auto; }
    .t6-hub-body { height: auto; max-height: none; overflow: auto; }
    .t6-hub { overflow: visible; height: auto; }
    .t6-hub-grid { grid-template-columns: 1fr; overflow: visible; }
    .t6-hub-stats-detail { max-height: none; }
    .t6-hub-card { min-height: 0; }
    .t6-staff-layout, .t6-staff-stats, .t6-staff-2, .t6-doc-upload, .t6-pass-row {
        grid-template-columns: 1fr;
    }
    .t6-staff-detail { position: static; }
}

html.theme-modern .t6-note,
html.theme-modern .t6-access-site,
html.theme-modern .t6-flag,
html.theme-modern .t6-staff-card,
html.theme-modern .t6-staff-detail {
    background: #1a1620;
    color: var(--t6-text);
    border-color: rgba(244, 168, 200, .16);
}
html.theme-modern .t6-item.locked { background: rgba(244, 168, 200, .1); }
html.theme-modern .t6-item.locked.active { box-shadow: inset 3px 0 0 #f4a8c8; }
html.theme-modern .t6-item .t6-lock { color: #f4a8c8; }
html.theme-modern .t6-lock-banner,
html.theme-modern .t6-lc-chat-banner,
html.theme-modern .t6-kiss-banner {
    background: #241820;
    color: #f4c4d8;
    border-color: rgba(244, 168, 200, .35);
}
html.theme-modern .t6-lock-banner.taken {
    background: #2a1420;
    color: #ffb3c8;
}
html.theme-modern body.t6-dialog-taken .t6-compose textarea {
    background: #1a1218;
    color: #f0c6d8;
}
html.theme-modern .t6-notes-head,
html.theme-modern .t6-chat-head,
html.theme-modern .t6-form label,
html.theme-modern .t6-staff-form-head h2,
html.theme-modern .t6-staff-form legend,
html.theme-modern .t6-staff-form label {
    color: #f4a8c8;
}
html.theme-modern .t6-send-arrow,
html.theme-modern .t6-btn-blue,
html.theme-modern .t6-btn-primary {
    background: #001C8A;
    color: #fff;
}
html.theme-modern .t6-empty { color: var(--t6-muted); }
html.theme-modern .t6-staff-body {
    background:
        radial-gradient(900px 420px at 0% 0%, rgba(0, 28, 138, .55), transparent 55%),
        radial-gradient(700px 380px at 100% 0%, rgba(244, 168, 200, .18), transparent 50%),
        #08080c;
}
html.theme-modern .t6-staff-card.on {
    border-color: #001C8A;
    background: linear-gradient(90deg, rgba(0, 28, 138, .4), rgba(244, 168, 200, .12));
}
html.theme-modern .t6-pill { background: #241830; color: #f4a8c8; }
html.theme-modern .t6-doc button { background: #241830; color: #f4eef4; }

/* ========== Nachrichtenpanel ========== */
.t6-msg-body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(1100px 520px at 8% -10%, rgba(49, 130, 206, .28), transparent 55%),
        radial-gradient(800px 420px at 100% 0%, rgba(155, 44, 106, .22), transparent 50%),
        linear-gradient(180deg, #001C8A, #001047);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #fff;
}
.t6-msg-top, .t6-msg-nav {
    display: flex; justify-content: space-between; align-items: center; gap: .6rem;
    flex-wrap: wrap;
}
.t6-msg-top {
    width: min(1080px, 94vw);
    margin: 1.1rem auto .35rem;
}
.t6-msg-top p { margin: .15rem 0 0; opacity: .82; font-size: .85rem; }
.t6-msg-nav a.t6-btn { text-decoration: none; display: inline-flex; align-items: center; }
.t6-msg-body .t6-btn {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.t6-msg-body .t6-btn-blue { background: #fff; color: #001C8A; border-color: transparent; }
.t6-msg-body .t6-btn-red { background: var(--t6-red); color: #fff; }
.t6-msg-stats {
    width: min(1080px, 94vw);
    margin: .55rem auto .2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
}
.t6-msg-toolbar {
    width: min(1080px, 94vw);
    margin: .55rem auto .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .7rem;
    align-items: center;
}
.t6-msg-toolbar .t6-sent-tabs button {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.18);
}
.t6-msg-toolbar .t6-sent-tabs button.active {
    background: #fff;
    color: #001C8A;
    border-color: #fff;
}
.t6-msg-toolbar input[type="search"] {
    flex: 1 1 220px;
    min-width: 180px;
    padding: .45rem .7rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
}
.t6-msg-err {
    width: min(1080px, 94vw);
    margin: 0 auto .6rem;
    background: #fff;
    color: var(--t6-red);
    padding: .45rem .7rem;
    border-radius: 8px;
}
.t6-msg-board {
    width: min(1080px, 94vw);
    margin: 0 auto 1.2rem;
    display: grid;
    gap: .85rem;
}
.t6-msg-empty {
    background: rgba(255,255,255,.1);
    border: 1px dashed rgba(255,255,255,.28);
    border-radius: 14px;
    padding: 2.2rem 1rem;
    text-align: center;
    color: rgba(255,255,255,.85);
}
.t6-msg-card {
    background: #fff;
    color: var(--t6-text);
    border-radius: 16px;
    padding: 1rem 1.1rem 1.05rem;
    box-shadow: 0 16px 40px rgba(0, 8, 40, .22);
    border: 1px solid rgba(255,255,255,.4);
    border-left: 6px solid #001C8A;
}
.t6-msg-card.is-up { border-left-color: #2f9e44; }
.t6-msg-card.is-down { border-left-color: #c53030; background: #fffaf9; }
.t6-msg-card-top {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    align-items: flex-start;
}
.t6-msg-who { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; }
.t6-msg-who strong { color: #001C8A; }
.t6-msg-who span { color: var(--t6-muted); font-size: .82rem; }
.t6-msg-card-top time { color: var(--t6-muted); font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t6-msg-quote {
    margin: .75rem 0 .55rem;
    padding: .85rem 1rem;
    background: linear-gradient(180deg, #f5f8fd, #eef3fb);
    border-radius: 12px;
    font-size: 1.02rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.t6-msg-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: flex-start;
    justify-content: space-between;
}
.t6-msg-thumbs { display: flex; gap: .4rem; }
.t6-thumb {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--t6-line);
    background: #f4f7fb;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.t6-thumb:hover { transform: translateY(-1px); }
.t6-thumb.up.on {
    background: #e6f6ea;
    border-color: #2f9e44;
    box-shadow: 0 0 0 3px rgba(47, 158, 68, .18);
}
.t6-thumb.down.on {
    background: #fdecea;
    border-color: #c53030;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, .16);
}
.t6-msg-stamp {
    display: inline-flex; align-items: center;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}
.t6-msg-stamp.up { background: #e6f6ea; color: #216e32; }
.t6-msg-stamp.down { background: #fdecea; color: #9b1c1c; }
.t6-msg-reason {
    flex: 1 1 240px;
    background: #fff1f0;
    border: 1px solid #f5c2c0;
    border-radius: 10px;
    padding: .5rem .7rem;
}
.t6-msg-reason strong { color: #9b1c1c; font-size: .75rem; letter-spacing: .02em; }
.t6-msg-reason p { margin: .2rem 0 .15rem; white-space: pre-wrap; }
.t6-msg-reason small { color: var(--t6-muted); }
.t6-msg-pager {
    width: min(1080px, 94vw);
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.88);
}
.t6-msg-pager button {
    background: #fff; color: #001C8A; border: 0;
    border-radius: 8px; padding: .35rem .75rem; cursor: pointer; font: inherit; font-weight: 700;
}
.t6-msg-down-card, .t6-msg-review-card { width: min(560px, 94vw); }
.t6-msg-preview {
    margin: .4rem 0 .7rem;
    padding: .7rem .8rem;
    background: #f4f7fb;
    border-radius: 10px;
    white-space: pre-wrap;
    color: var(--t6-text);
    max-height: 140px;
    overflow: auto;
}
.t6-msg-reason-lab { display: block; font-weight: 700; color: var(--t6-text); }
.t6-msg-reason-lab textarea {
    display: block; width: 100%; margin-top: .35rem;
    min-height: 110px; resize: vertical;
    border: 1px solid var(--t6-line); border-radius: 8px;
    padding: .5rem .6rem; font: inherit;
}
.t6-msg-alert {
    background: #fff7f6;
    border: 1px solid #f3c4c0;
    border-radius: 12px;
    padding: .75rem .85rem;
    margin-bottom: .65rem;
    color: var(--t6-text);
}
.t6-msg-alert-head { margin: 0 0 .45rem; }
.t6-msg-alert blockquote {
    margin: 0 0 .45rem;
    padding: .5rem .65rem;
    background: #fff;
    border-radius: 8px;
    white-space: pre-wrap;
}
.t6-msg-alert-why { margin: 0; }
.t6-msg-alert .t6-sent-body { white-space: pre-wrap; margin: 0; }
.t6-msg-portal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.t6-msg-portal a.t6-btn { text-decoration: none; }
.t6-hub-sent .t6-msg-portal h2 { margin: 0 0 .15rem; }
#modalNotice { z-index: 240; }
.t6-agency-tabs { width: min(1240px, 94vw); margin: .4rem auto; }
.t6-ag-home, .t6-ag-page {
    width: min(1240px, 94vw);
    margin: 0 auto 2.4rem;
}
.t6-ag-home-head { margin-bottom: .7rem; }
.t6-ag-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: .75rem;
}
.t6-ag-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    background: #fff;
    color: var(--t6-text);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 1rem 1.05rem 1.05rem;
    min-height: 168px;
}
.t6-ag-card:hover { border-color: #9db0d8; }
.t6-ag-card.on { border-color: #001C8A; box-shadow: 0 0 0 2px rgba(0, 28, 138, .18); }
.t6-ag-card.blocked { opacity: .55; }
.t6-ag-card strong { display: block; font-size: 1.08rem; color: var(--t6-navy); }
.t6-ag-card .t6-ag-next {
    display: block;
    margin-top: .35rem;
    color: var(--t6-muted);
    font-size: .72rem;
}
.t6-ag-card-nums {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .35rem;
}
.t6-ag-card-nums b { display: block; font-size: 1.05rem; color: var(--t6-navy); }
.t6-ag-card-nums span { color: var(--t6-muted); font-size: .68rem; }
.t6-ag-page-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .7rem;
}
.t6-ag-page-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.t6-ag-form { margin: 0; }
.t6-ag-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    color: var(--t6-text);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: .65rem;
}
.t6-ag-kicker {
    margin: 0;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--t6-muted);
}
.t6-ag-hero h1 { margin: .1rem 0 .2rem; font-size: 1.45rem; color: var(--t6-navy); }
.t6-ag-hero-meta { margin: 0; color: var(--t6-muted); font-size: .85rem; }
.t6-ag-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .5rem;
    margin-bottom: .65rem;
}
.t6-ag-stat {
    background: #fff;
    color: var(--t6-text);
    border-radius: 12px;
    padding: .7rem .8rem;
}
.t6-ag-stat b { display: block; font-size: 1.2rem; color: var(--t6-navy); }
.t6-ag-stat span { color: var(--t6-muted); font-size: .72rem; }
.t6-ag-tile {
    background: #fff;
    color: var(--t6-text);
    border-radius: 14px;
    margin-bottom: .55rem;
    overflow: hidden;
}
.t6-ag-tile-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .45rem 1rem;
    align-items: center;
    width: 100%;
    text-align: left;
    font: inherit;
    background: transparent;
    border: 0;
    padding: .9rem 1.05rem;
    cursor: pointer;
    color: var(--t6-navy);
}
.t6-ag-tile-head span { font-weight: 800; font-size: 1.02rem; }
.t6-ag-tile-head small { color: var(--t6-muted); font-weight: 600; }
.t6-ag-tile-head i {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 6px;
    background: #e8eef8;
    font-style: normal;
    font-size: .75rem;
    transition: transform .15s ease;
}
.t6-ag-tile.open .t6-ag-tile-head i { transform: rotate(90deg); }
.t6-ag-tile-body { padding: 0 1.05rem 1rem; }
.t6-ag-tile-body[hidden] { display: none; }
.t6-ag-sites { display: grid; gap: .45rem; }
.t6-ag-site { background: #f6f8fc; border-radius: 10px; overflow: hidden; }
.t6-ag-site-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .4rem .7rem;
    align-items: center;
    padding: .55rem .7rem;
}
.t6-ag-site-head button {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 800;
    color: var(--t6-navy);
    cursor: pointer;
    text-align: left;
}
.t6-ag-site-head small { color: var(--t6-muted); font-size: .75rem; }
.t6-ag-site .t6-access-children {
    max-height: 380px;
    margin: 0;
    padding: .15rem .7rem .7rem;
}
.t6-ag-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .5rem;
    max-height: none;
    overflow: visible;
}
.t6-ag-person {
    background: #f6f8fc;
    border-radius: 12px;
    overflow: hidden;
}
.t6-ag-person.open { grid-column: 1 / -1; }
.t6-ag-person-head {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: .55rem;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    padding: .65rem .7rem;
    color: var(--t6-text);
}
.t6-ag-person-head img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #d9e2ec;
}
.t6-ag-person-head strong { display: block; color: var(--t6-navy); }
.t6-ag-person-head .t6-person-name,
.t6-staff-meta .t6-person-name {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: .82rem;
    color: var(--t6-text, #1a2332);
    margin: .08rem 0 .05rem;
}
.t6-ag-person-head small { display: block; color: var(--t6-muted); font-size: .72rem; margin: .1rem 0 .25rem; }
.t6-ag-person-head i {
    font-style: normal;
    width: 1.5rem; height: 1.5rem;
    display: grid; place-items: center;
    background: #e4eaf6; border-radius: 6px;
    transition: transform .15s ease;
}
.t6-ag-person.open .t6-ag-person-head i { transform: rotate(90deg); }
.t6-ag-person-body { padding: 0 .7rem .75rem; }
.t6-ag-person-body[hidden] { display: none; }
.t6-ag-person-body .t6-ag-sites { margin-top: .35rem; }
body.t6-staff-body .t6-ag-page .t6-btn,
body.t6-staff-body .t6-ag-tile .t6-btn {
    background: #e8eef8;
    color: #001C8A;
}
body.t6-staff-body .t6-ag-page .t6-btn-blue,
body.t6-staff-body .t6-ag-tile .t6-btn-blue {
    background: #001C8A;
    color: #fff;
}
body.t6-staff-body .t6-ag-page .t6-btn-red {
    background: var(--t6-red);
    color: #fff;
}
html.theme-modern .t6-ag-card,
html.theme-modern .t6-ag-hero,
html.theme-modern .t6-ag-stat,
html.theme-modern .t6-ag-tile,
html.theme-modern .t6-ag-site,
html.theme-modern .t6-ag-person {
    background: #1a1620;
    color: var(--t6-text);
}
html.theme-modern .t6-ag-card strong,
html.theme-modern .t6-ag-hero h1,
html.theme-modern .t6-ag-stat b,
html.theme-modern .t6-ag-tile-head,
html.theme-modern .t6-ag-site-head button,
html.theme-modern .t6-ag-person-head strong {
    color: #f4a8c8;
}
html.theme-modern .t6-ag-tile-head i,
html.theme-modern .t6-ag-person-head i {
    background: #241830;
    color: #f4a8c8;
}
.t6-agency-all { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin: .35rem 0 .6rem; }
.t6-agency-create {
    margin-top: .7rem;
    padding: .7rem .8rem;
    background: #f6f8fc;
    border-radius: 10px;
}
.t6-agency-create h3 {
    margin: 0 0 .35rem;
    font-size: .95rem;
    color: var(--t6-navy);
}
.t6-agency-create p { margin: 0 0 .45rem; font-size: .82rem; }
.t6-agency-create .t6-pass-actions { margin-top: .45rem; }
.t6-agency-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .4rem;
    max-height: 260px;
    overflow: auto;
}
.t6-agency-member {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #f6f8fc;
    border-radius: 8px;
    padding: .35rem .45rem;
    cursor: pointer;
    color: var(--t6-text);
    font-size: .82rem;
}
.t6-agency-member img {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #d9e2ec;
}
.t6-agency-member small { display: block; color: var(--t6-muted); font-size: .68rem; }
.t6-dim { opacity: .62; pointer-events: none; }
@media (max-width: 760px) {
    .t6-msg-stats { grid-template-columns: 1fr 1fr; }
}

.t6-pill-live {
    background: #c6f6d5;
    color: #276749;
}
.t6-access-src.live span { font-weight: 600; }
.t6-access-src.locked { opacity: .55; }
.t6-staff-card.live { box-shadow: inset 3px 0 0 #38a169; }
.t6-agency-bound { margin-bottom: .55rem; }
.t6-agency-bound-list { display: flex; flex-wrap: wrap; gap: .3rem; }
.t6-fleet-servers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .5rem;
    margin: 0 .8rem .6rem;
}
.t6-fleet-server {
    background: #f6f8fc;
    border-radius: 8px;
    padding: .5rem .65rem;
    display: grid;
    gap: .15rem;
}
.t6-fleet-server.full { background: #fff5f5; }
.t6-fleet-server small { color: var(--t6-muted); font-size: .72rem; }
.t6-fleet-bar {
    display: block;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.t6-fleet-bar i {
    display: block;
    height: 100%;
    background: #001C8A;
}
.t6-fleet-server.full .t6-fleet-bar i { background: #c53030; }
.t6-fleet-shot {
    margin-top: .6rem;
    border: 1px solid var(--t6-line);
    border-radius: 8px;
    overflow: auto;
    max-height: 70vh;
    background: #111;
}
.t6-fleet-shot img { display: block; width: 100%; }
