/* Round 31 – Technik Tabs direkt editierbar */
.tech-tabs-managed .tab-shell,
.tech-admin-card {
    min-width: 0;
}

.tech-tabs-managed .tab-stage {
    overflow: visible;
}

.managed-tab-head {
    display: grid;
    gap: .6rem;
    margin-bottom: 1.1rem;
}

.managed-tab-head h3 {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
}

.managed-tab-head h3 span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(100,159,159,.14);
    border: 1px solid rgba(100,159,159,.26);
}

.managed-tab-head p {
    max-width: 760px;
    margin: 0;
    color: rgba(244,247,247,.72);
    line-height: 1.6;
}

.managed-tech-list li {
    overflow-wrap: anywhere;
}

.tech-empty-public {
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 22px;
    padding: 1.2rem;
    color: rgba(244,247,247,.72);
    background: rgba(255,255,255,.035);
}

.tech-admin-hero code,
.tech-help-card code,
.tech-tab-form code {
    color: var(--sb-warm, #d7b98c);
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.08);
    padding: 2px 6px;
    border-radius: 7px;
}

.tech-admin-shell {
    display: grid;
    gap: clamp(22px, 3vw, 34px);
}

.tech-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: clamp(18px, 3vw, 28px);
    align-items: start;
}

.tech-admin-card {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 30px;
    padding: clamp(18px, 3vw, 30px);
    background:
        radial-gradient(circle at top left, rgba(100,159,159,.14), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.032));
    box-shadow: 0 22px 70px rgba(0,0,0,.22);
}

.tech-admin-card h2,
.tech-admin-list-head h2 {
    margin: .2rem 0 1rem;
    font-size: clamp(1.75rem, 3.3vw, 3rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.tech-help-card p,
.tech-help-card li {
    color: rgba(244,247,247,.72);
    line-height: 1.65;
}

.tech-help-card ul {
    padding-left: 1.2rem;
}

.tech-tab-form {
    display: grid;
    gap: 14px;
}

.tech-form-row {
    display: grid;
    gap: 14px;
}

.tech-form-row.three {
    grid-template-columns: 90px minmax(0, 1fr) 120px;
}

.tech-tab-form label {
    display: grid;
    gap: 8px;
    color: var(--sb-text, #f4f7f7);
    font-weight: 850;
    font-size: .92rem;
}

.tech-tab-form label small {
    color: rgba(244,247,247,.62);
    font-weight: 650;
}

.tech-tab-form input,
.tech-tab-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.065);
    color: var(--sb-text, #f4f7f7);
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

.tech-tab-form textarea {
    resize: vertical;
    min-height: 92px;
    line-height: 1.55;
}

.tech-tab-form input:focus,
.tech-tab-form textarea:focus {
    border-color: rgba(100,159,159,.65);
    box-shadow: 0 0 0 4px rgba(100,159,159,.15);
}

.tech-tab-form .check-row {
    display: inline-flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .65rem;
    color: rgba(244,247,247,.76);
}

.tech-tab-form .check-row input {
    width: 18px;
    height: 18px;
    padding: 0;
}

.tech-admin-list-head {
    margin-top: 1rem;
}

.tech-tab-edit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 26px);
}

.tech-edit-card {
    display: grid;
    gap: 16px;
}

.tech-edit-card.is-inactive {
    opacity: .7;
    border-style: dashed;
}

.tech-edit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.tech-edit-head > div {
    display: grid;
    gap: .25rem;
}

.tech-edit-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(100,159,159,.14);
    border: 1px solid rgba(100,159,159,.24);
    font-size: 1.35rem;
}

.tech-edit-head strong {
    display: block;
    margin-top: .4rem;
    font-size: clamp(1.22rem, 2vw, 1.55rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.tech-edit-head small {
    color: rgba(244,247,247,.62);
    overflow-wrap: anywhere;
}

.tech-status-pill {
    flex: 0 0 auto;
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(100,159,159,.14);
    border: 1px solid rgba(100,159,159,.24);
    color: #b9eeee;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tech-admin-actions,
.tech-delete-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-delete-form {
    padding-top: .85rem;
    border-top: 1px solid rgba(255,255,255,.09);
}

.btn-danger {
    border-color: rgba(255,107,107,.55);
    background: rgba(255,107,107,.13);
    color: #ffd7d7;
}

.btn-danger:hover {
    background: rgba(255,107,107,.20);
}

@media (max-width: 1120px) {
    .tech-admin-grid,
    .tech-tab-edit-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .tech-form-row.three {
        grid-template-columns: 1fr;
    }

    .tech-admin-card {
        border-radius: 24px;
    }

    .tech-edit-head {
        flex-direction: column;
        align-items: stretch;
    }

    .tech-admin-actions .btn,
    .tech-delete-form .btn {
        width: 100%;
    }
}

/* Round 38 – Bild-Emotes in Technik-Tabs */
.tech-tab-button-icon,
.tech-managed-icon,
.tech-edit-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.tech-tab-button-img,
.tech-managed-img,
.inline-emote-img {
    display: inline-block;
    width: 1.45em;
    height: 1.45em;
    object-fit: contain;
    vertical-align: -0.28em;
}

.tech-tab-button-img {
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.22em;
}

.tech-managed-icon .tech-managed-img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.tech-edit-icon .inline-emote-img {
    width: 34px;
    height: 34px;
    vertical-align: middle;
}

.tech-emote-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
    align-items: center;
}

.tech-emote-open {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(100,159,159,.16);
    color: #dffafa;
    font-weight: 900;
    cursor: pointer;
}

.tech-emote-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.tech-emote-modal.is-open { display: flex; }
.tech-emote-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,8,10,.74);
    backdrop-filter: blur(12px);
}
.tech-emote-dialog {
    position: relative;
    z-index: 1;
    width: min(860px,100%);
    max-height: 86vh;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(145deg,rgba(20,27,30,.98),rgba(13,18,20,.98));
    box-shadow: 0 30px 110px rgba(0,0,0,.55);
}
.tech-emote-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.tech-emote-head h2 {
    margin: .25rem 0 0;
    font-size: clamp(1.6rem,3vw,2.7rem);
    line-height: 1;
    letter-spacing: -.05em;
}
.tech-emote-close {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.07);
    color: #f4f7f7;
    font-size: 1.4rem;
    cursor: pointer;
}
.tech-emote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(135px,1fr));
    gap: 12px;
    max-height: 56vh;
    overflow: auto;
    padding: 20px;
}
.tech-emote-choice {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 112px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    color: #f4f7f7;
    cursor: pointer;
    text-align: center;
}
.tech-emote-choice:hover {
    border-color: rgba(100,159,159,.45);
    background: rgba(100,159,159,.14);
}
.tech-emote-choice span {
    font-size: 2rem;
    min-height: 40px;
    display: grid;
    place-items: center;
}
.tech-emote-choice img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.tech-emote-choice small {
    max-width: 100%;
    color: rgba(244,247,247,.72);
    overflow: hidden;
    text-overflow: ellipsis;
}
.tech-emote-foot {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
}
@media(max-width:700px){
    .tech-emote-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .tech-emote-dialog{border-radius:24px}
}
