:root {
    --bg: #0a0b10;
    --panel: #13151b;
    --panel-soft: #1a1d25;
    --ink: #e8e8e8;
    --muted: #8a8f98;
    --line: rgba(255, 255, 255, 0.08);
    --brand: #00d4ff;
    --brand-dark: #00b8db;
    --brand-soft: rgba(0, 212, 255, 0.08);
    --success: #00e676;
    --warning: #ffb800;
    --warning-soft: rgba(255, 184, 0, 0.15);
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    --radius: 8px;
    --font: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
}

button,
textarea,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

@keyframes toastInOut {
    0% {
        opacity: 0;
        transform: translateY(-14px) scale(0.98);
    }
    12%,
    82% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0.88;
        transform: translateY(-4px) scale(0.99);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(0, 212, 255, 0), var(--shadow);
    }
    50% {
        box-shadow: 0 0 28px rgba(0, 212, 255, 0.36), var(--shadow);
    }
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(rgba(10, 11, 16, 0.78), rgba(10, 11, 16, 0.9)),
        radial-gradient(circle at 50% 10%, rgba(0, 212, 255, 0.18), transparent 38%),
        var(--bg);
}

.login-card {
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(19, 21, 27, 0.94);
    box-shadow: var(--shadow);
    padding: 26px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
}

.login-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #000;
    font-weight: 900;
}

.login-brand strong,
.login-brand span {
    display: block;
}

.login-brand span {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.45;
}

.login-card label {
    display: block;
    margin: 14px 0 6px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.login-card input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    color: var(--ink);
    padding: 0 12px;
}

.login-card input:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.login-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: #000;
    font-weight: 900;
}

.support-app {
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    min-height: 72px;
    padding: 16px 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-header h1 {
    margin: 0;
    font-size: 1.18rem;
}

.app-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.world-clock {
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 8px;
    align-items: center;
}

.world-clock div {
    min-width: 74px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    padding: 7px 9px;
    text-align: center;
}

.world-clock span,
.world-clock strong {
    display: block;
}

.world-clock span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
}

.world-clock strong {
    color: var(--brand);
    font-size: 0.82rem;
    margin-top: 2px;
    white-space: nowrap;
}

.agent-pill {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 999px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
}

.logout-btn {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    padding: 0 12px;
    font-weight: 800;
}

.logout-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

.admin-nav-btn {
    min-height: 36px;
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    padding: 0 12px;
    font-weight: 900;
}

.table-action-btn,
.secondary-form-btn {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    color: var(--ink);
    padding: 0 10px;
    font-weight: 800;
}

.table-action-btn:hover,
.secondary-form-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

.secondary-form-btn {
    width: 100%;
    margin-top: 10px;
}

.form-error,
.form-message {
    margin-top: 12px;
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 800;
}

.form-error {
    border: 1px solid rgba(255, 82, 82, 0.35);
    background: rgba(255, 82, 82, 0.1);
    color: #ff8a8a;
}

.form-message {
    border: 1px solid rgba(0, 212, 255, 0.25);
    background: var(--brand-soft);
    color: var(--brand);
}

.admin-layout {
    flex: 1;
    min-height: 0;
    padding: 16px 24px 24px;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
}

.admin-user-form,
.admin-users-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.admin-user-form {
    padding: 18px;
    align-self: start;
}

.admin-user-form h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.admin-user-form label {
    display: block;
    margin: 12px 0 6px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 900;
}

.admin-user-form input,
.admin-user-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    color: var(--ink);
    padding: 0 12px;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
}

.admin-users-panel {
    min-width: 0;
    overflow: hidden;
}

.users-table-wrap {
    overflow: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.users-table th,
.users-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
    text-align: left;
    font-size: 0.86rem;
}

.users-table th {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.ping-notification {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 20;
    width: min(430px, calc(100vw - 28px));
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(19, 21, 27, 0.94);
    color: var(--ink);
    border-radius: 12px;
    min-height: 70px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: toastInOut 5s ease both, glowPulse 2s ease-in-out infinite;
}

.ping-notification strong,
.ping-notification span {
    display: block;
}

.ping-notification span {
    color: var(--muted);
    margin-top: 3px;
}

.ping-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: #000;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex: 0 0 auto;
}

.ping-actions {
    margin-left: auto;
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
}

.ping-action,
.silence-action {
    color: var(--brand) !important;
    font-weight: 800;
}

.silence-action {
    color: var(--muted) !important;
    font-size: 0.78rem;
}

.silence-action:hover {
    color: var(--ink) !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.58);
    display: grid;
    place-items: center;
    padding: 24px;
}

.instruction-modal {
    width: min(860px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 12px;
    background: rgba(19, 21, 27, 0.98);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.modal-header {
    min-height: 68px;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.modal-header h2,
.modal-header p {
    margin: 0;
}

.modal-header h2 {
    font-size: 1.05rem;
}

.modal-header p {
    color: var(--muted);
    font-size: 0.84rem;
    margin-top: 4px;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel-soft);
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
}

.instruction-search-row {
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
}

.instruction-search-row input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    color: var(--ink);
    padding: 0 12px;
}

.instruction-modal-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
}

.instruction-results {
    min-height: 0;
    overflow: auto;
    border-right: 1px solid var(--line);
    padding: 10px;
}

.instruction-result {
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    text-align: left;
    padding: 10px;
}

.instruction-result + .instruction-result {
    margin-top: 6px;
}

.instruction-result.active,
.instruction-result:hover {
    border-color: var(--line);
    background: var(--panel-soft);
}

.instruction-result strong,
.instruction-result span {
    display: block;
}

.instruction-result span {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    margin-top: 5px;
}

.instruction-empty {
    color: var(--muted);
    padding: 16px;
    text-align: center;
}

.instruction-preview {
    min-height: 0;
    overflow: auto;
    padding: 18px;
}

.instruction-preview > span {
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.instruction-preview h3 {
    margin: 8px 0 12px;
    font-size: 1.2rem;
}

.instruction-preview p {
    margin: 0;
    color: var(--ink);
    line-height: 1.6;
}

.modal-actions {
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.chat-layout {
    flex: 1;
    min-height: 0;
    padding: 16px 24px 24px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 16px;
}

.chat-list-panel,
.chat-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 0;
}

.chat-list-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-title {
    min-height: 64px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title h2 {
    margin: 0;
    font-size: 0.98rem;
}

.list-tabs {
    display: flex;
    gap: 4px;
    margin-top: 7px;
}

.list-tabs button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 800;
}

.list-tabs button.active {
    background: var(--brand-soft);
    color: var(--brand);
}

.panel-title span {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
}

.history-tools {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(0, 212, 255, 0.04);
}

.history-tools > span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    margin-right: auto;
}

.calendar-picker {
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    font-size: 0.74rem;
    font-weight: 900;
}

.calendar-picker input {
    width: 22px;
    min-height: 24px;
    border: 0;
    background: transparent;
    color: transparent;
    color-scheme: dark;
    padding: 0;
}

.history-search {
    min-height: 32px;
    width: min(100%, 150px);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--ink);
    padding: 0 10px;
    font-size: 0.76rem;
}

.history-search::placeholder {
    color: var(--muted);
}

.clear-date-btn {
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: 0 9px;
    font-size: 0.74rem;
    font-weight: 900;
}

.chat-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
}

.chat-list::-webkit-scrollbar,
.messages::-webkit-scrollbar {
    width: 8px;
}

.chat-list::-webkit-scrollbar-track,
.messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-list::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.chat-list::-webkit-scrollbar-thumb:hover,
.messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.38);
}

.empty-list {
    color: var(--muted);
    padding: 16px;
    text-align: center;
    font-size: 0.86rem;
}

.history-date {
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.history-date:hover {
    background: var(--panel-soft);
    color: var(--brand);
}

.chat-list-item {
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    padding: 11px;
    display: flex;
    gap: 10px;
    text-align: left;
}

.chat-list-item + .chat-list-item {
    margin-top: 6px;
}

.chat-list-item.active,
.chat-list-item:hover {
    border-color: var(--line);
    background: var(--panel-soft);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
    flex: 0 0 auto;
}

.avatar.large {
    width: 46px;
    height: 46px;
}

.chat-list-body {
    min-width: 0;
    flex: 1;
}

.chat-list-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.chat-list-top span,
.chat-list-body small {
    color: var(--muted);
    font-size: 0.78rem;
}

.chat-list-body p {
    margin: 5px 0 4px;
    color: var(--ink);
    font-size: 0.86rem;
}

.chat-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.technician-header {
    border-bottom: 1px solid var(--line);
    padding: 14px;
    display: grid;
    gap: 14px;
}

.tech-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-main h2 {
    margin: 0;
    font-size: 1.04rem;
}

.tech-main p {
    margin: 4px 0 0;
    color: var(--success);
    font-size: 0.84rem;
    font-weight: 800;
}

.close-chat-btn {
    margin-left: auto;
    min-height: 36px;
    border: 1px solid rgba(255, 82, 82, 0.4);
    border-radius: var(--radius);
    background: rgba(255, 82, 82, 0.1);
    color: #ff8a8a;
    padding: 0 12px;
    font-weight: 800;
}

.close-chat-btn:hover {
    background: rgba(255, 82, 82, 0.18);
}

.no-chat-state {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
}

.no-chat-state h2 {
    margin: 0;
}

.no-chat-state p {
    margin: 0;
    color: var(--muted);
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px;
}

.tech-details div {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 10px;
}

.tech-details span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.tech-details strong {
    display: block;
    font-size: 0.84rem;
}

.evidence-bar {
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(0, 212, 255, 0.04);
}

.evidence-bar strong,
.evidence-bar span {
    display: block;
}

.evidence-bar span {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 3px;
}

.evidence-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 48%;
}

.evidence-thumb {
    width: 132px;
    min-width: 132px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
}

.evidence-thumb img {
    width: 100%;
    height: 62px;
    object-fit: cover;
    display: block;
}

.evidence-thumb span {
    padding: 6px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages {
    overflow: auto;
    padding: 18px;
    background: #0f1117;
}

.message {
    display: flex;
    margin-bottom: 12px;
}

.message.agent {
    justify-content: flex-end;
}

.bubble {
    max-width: min(620px, 76%);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    padding: 10px 12px;
}

.support-typing {
    max-width: min(280px, 76%);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 800;
}

.typing-dots {
    display: inline-flex;
    gap: 3px;
}

.typing-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: typingDot 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingDot {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.message.agent .bubble {
    background: var(--brand);
    border-color: var(--brand);
    color: #000;
}

.bubble p {
    margin: 0;
    line-height: 1.45;
}

.bubble span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.72rem;
}

.message-meta {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

.delivery-ticks {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
    color: var(--muted);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
}

.delivery-ticks.read {
    color: var(--brand);
}

.photo-message {
    width: min(280px, 76%);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
}

.photo-message img {
    width: 100%;
    height: 158px;
    object-fit: cover;
    display: block;
}

.photo-message div {
    padding: 10px;
}

.photo-message strong,
.photo-message span {
    display: block;
}

.photo-message span {
    color: var(--muted);
    font-size: 0.74rem;
    margin-top: 4px;
}

.message.agent .bubble span {
    color: rgba(0, 0, 0, 0.56);
}

.message.agent .delivery-ticks {
    color: rgba(0, 0, 0, 0.55);
}

.message.agent .delivery-ticks.read {
    color: #003747;
}

.closed-chat-note {
    border-top: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    padding: 14px;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 800;
}

.composer {
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.composer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
    align-items: stretch;
}

.free-chat-box {
    min-width: 0;
}

.case-instructions {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 212, 255, 0.04);
    padding: 10px;
}

.case-instructions label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.case-instructions span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.instruction-btn {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    color: var(--ink);
    padding: 0 10px;
    font-weight: 800;
}

.instruction-btn.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #000;
}

.quick-replies {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.quick-replies button {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 999px;
    padding: 7px 10px;
    white-space: nowrap;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.78rem;
}

.composer-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.composer textarea {
    flex: 1;
    min-height: 44px;
    max-height: 110px;
    resize: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
    color: var(--ink);
    background: var(--panel-soft);
}

.send-btn {
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand);
    color: #000;
    padding: 0 18px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .tech-details {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .evidence-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .evidence-strip {
        max-width: 100%;
    }

    .composer-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .instruction-actions {
        grid-template-columns: 1fr 1fr;
    }

    .instruction-modal-body {
        grid-template-columns: 1fr;
    }

    .instruction-results {
        max-height: 220px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .world-clock {
        width: 100%;
        margin-left: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ping-notification {
        top: 12px;
        right: 12px;
    }

    .chat-layout {
        margin-left: 12px;
        margin-right: 12px;
    }

    .chat-layout {
        padding: 12px 0 18px;
    }

    .tech-details {
        grid-template-columns: 1fr;
    }
}
