:root {
    --bg: #f3f6fa;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --line: #e2e8f0;
    --text: #14213d;
    --ink: #14213d;
    --muted: #64748b;
    --green: #0b8f68;
    --green-2: #15a979;
    --green-soft: #e4f7f0;
    --blue: #3569d4;
    --amber: #b86d08;
    --red: #c73d4d;
    --sidebar: #0c1a2a;
    --shadow: 0 12px 36px rgba(15, 23, 42, .055);
    --shadow-hover: 0 18px 44px rgba(15, 23, 42, .1);
    --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif; color: var(--text); background: radial-gradient(circle at 100% 0, rgba(38, 184, 139, .045), transparent 32%), var(--bg); font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; background: linear-gradient(180deg, #0b1928 0%, #0f2230 58%, #102a2b 100%); color: #dbe8e2; z-index: 20; box-shadow: 12px 0 36px rgba(15, 23, 42, .08); }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.075); }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 7px; border: 1px solid rgba(129,237,197,.18); border-radius: 14px; background: linear-gradient(145deg, #123d34, #0e2928); color: white; box-shadow: 0 8px 20px rgba(2,20,23,.2); }
.brand strong, .brand small { display: block; }
.brand strong { color: white; font-size: 14px; line-height: 1.15; letter-spacing: -.01em; }
.brand small { color: #829da6; margin-top: 3px; font-size: 8px; letter-spacing: .035em; }
.recycling-logo { display: block; width: 100%; height: 100%; overflow: visible; }
.recycling-orbit, .recycling-arrow { fill: none; stroke: #69dfb5; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.recycling-cardboard { fill: #e0a75e; stroke: #fff0d2; stroke-width: 1.5; stroke-linejoin: round; }
.recycling-cardboard-body { fill: #bc7d35; stroke: #fff0d2; stroke-width: 1.5; stroke-linejoin: round; }
.recycling-cardboard-line { fill: none; stroke: #fff0d2; stroke-width: 1.4; stroke-linecap: round; }
.main-nav { display: grid; gap: 5px; margin-top: 22px; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid transparent; border-radius: 12px; color: #9fb2ba; font-weight: 650; transition: color .18s ease, background .18s ease, transform .18s ease; }
.main-nav a:hover { background: rgba(255,255,255,.06); color: white; transform: translateX(2px); }
.main-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(41, 209, 154, .2), rgba(41, 209, 154, .08)); border-color: rgba(94, 234, 182, .08); box-shadow: inset 3px 0 #32d6a0; }
.nav-icon { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 auto; }
.nav-icon svg { width: 20px; height: 20px; }
.nav-badge { margin-left: auto; padding: 2px 7px; border-radius: 20px; color: white; background: #d44757; font-size: 10px; }
.nav-badge[hidden] { display: none; }
.sidebar-foot { margin-top: auto; display: grid; gap: 12px; }
.operation-chip { padding: 10px 12px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; color: #a9bdb4; background: rgba(255,255,255,.025); font-size: 11px; }
.operation-chip span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }
.operation-chip.open span { background: #28d199; box-shadow: 0 0 0 4px rgba(40,209,153,.11); }
.operation-chip.closed span { background: #e19a33; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(255,255,255,.055); border-radius: 14px; background: rgba(255,255,255,.05); }
.user-card > span:nth-child(2) { min-width: 0; flex: 1; }
.user-card strong, .user-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card strong { color: white; font-size: 12px; }
.user-card small { color: #8aa0aa; font-size: 10px; margin-top: 2px; }
.user-card > a { color: #9db1b9; font-size: 17px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #1aa97b, #08765a); color: white; font-weight: 800; box-shadow: 0 6px 16px rgba(11,143,104,.18); }
.avatar.large { width: 46px; height: 46px; border-radius: 14px; font-size: 17px; }
.avatar.has-photo { overflow: hidden; background: #dfe8e4; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.main-content { min-width: 0; }
.topbar { height: 86px; display: flex; align-items: center; gap: 15px; padding: 0 32px; background: rgba(255,255,255,.86); border-bottom: 1px solid rgba(226,232,240,.85); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); }
.topbar h1 { font-size: 21px; line-height: 1.1; margin: 3px 0 0; letter-spacing: -.03em; }
.topbar-kicker { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.topbar-copy { min-width: 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-date { padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 650; }
.menu-button { display: none; border: 0; background: transparent; font-size: 21px; }
.notification-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); }
.notification-button svg { width: 18px; height: 18px; }
.notification-button span { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: white; font-size: 9px; }
.device-notification-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 11px; border: 1px solid #b9ddcf; border-radius: 11px; background: #eff9f5; color: #08745e; cursor: pointer; font: inherit; font-size: 9px; font-weight: 850; }
.device-notification-button:hover { border-color: #75c6a9; background: #e1f5ed; }
.device-notification-button svg { width: 16px; height: 16px; }
.device-notification-button.blocked { border-color: #efd4a2; background: #fff6e4; color: #8b5b09; }
.device-notification-button[hidden] { display: none; }
.page-content { padding: 28px 32px 46px; }

.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.page-intro h2, .selection-banner h2 { margin: 3px 0 4px; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.page-intro p, .selection-banner p { margin: 0; color: var(--muted); font-size: 12px; }
.eyebrow, .section-kicker { display: block; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.selection-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 17px 19px; border: 1px solid #d7ece4; border-radius: var(--radius); background: linear-gradient(100deg, #effaf6, #fff); box-shadow: var(--shadow); }
.selection-banner > div { display: flex; align-items: center; gap: 13px; }
.selection-banner h2 { font-size: 18px; }
.surface-toolbar { padding: 15px 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.78); box-shadow: 0 7px 22px rgba(15,23,42,.035); }
.surface-toolbar, .surface-toolbar .toolbar { margin-bottom: 20px; }
.surface-toolbar .toolbar { margin-bottom: 0; }

.alert { margin-bottom: 20px; padding: 13px 16px; border-radius: 13px; border: 1px solid; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.alert.success { background: #e9f8f2; border-color: #bde8d6; color: #146b4d; }
.alert.error { background: #fff0f2; border-color: #f0caca; color: #9d2e3e; }
.alert.warning { background: #fff8e9; border-color: #efdaa8; color: #805413; }
.modal-open { overflow: hidden; }
.system-modal-backdrop[hidden] { display: none; }
.system-modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; background: rgba(8, 20, 33, .62); backdrop-filter: blur(6px); animation: modal-fade .18s ease-out; }
#system-modal { z-index: 1600; }
.system-modal-panel { position: relative; width: min(440px, 100%); padding: 28px; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: #fff; box-shadow: 0 28px 90px rgba(7, 18, 30, .34); outline: none; animation: modal-rise .22s ease-out; }
.system-modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 19px; line-height: 1; }
.system-modal-close:hover { color: var(--text); background: #eef2f6; }
.system-modal-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 16px; background: #eaf1ff; color: var(--blue); font-size: 22px; font-weight: 850; box-shadow: 0 9px 22px rgba(53,105,212,.14); }
.system-modal-kicker { display: block; margin-bottom: 5px; color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.system-modal-panel h2 { margin: 0; color: var(--text); font-size: 21px; letter-spacing: -.03em; }
.system-modal-panel p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; white-space: pre-line; }
.system-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.system-modal-actions [hidden] { display: none; }
.system-modal-backdrop[data-type="success"] .system-modal-icon { color: var(--green); background: var(--green-soft); box-shadow: 0 9px 22px rgba(11,143,104,.14); }
.system-modal-backdrop[data-type="success"] .system-modal-kicker { color: var(--green); }
.system-modal-backdrop[data-type="error"] .system-modal-icon { color: var(--red); background: #fdecef; box-shadow: 0 9px 22px rgba(199,61,77,.13); }
.system-modal-backdrop[data-type="error"] .system-modal-kicker { color: var(--red); }
.system-modal-backdrop[data-type="warning"] .system-modal-icon,
.system-modal-backdrop[data-type="confirm"] .system-modal-icon { color: var(--amber); background: #fff3db; box-shadow: 0 9px 22px rgba(184,109,8,.13); }
.system-modal-backdrop[data-type="warning"] .system-modal-kicker,
.system-modal-backdrop[data-type="confirm"] .system-modal-kicker { color: var(--amber); }
.notification-confirm-modal .system-modal-panel { width: min(520px, 100%); }
.notification-message-preview { margin-top: 18px; padding: 13px; border: 1px solid #dfe8e4; border-radius: 15px; background: #f4f7f5; }
.notification-message-preview > span { display: block; margin: 0 0 8px 3px; color: #66756f; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.notification-message-bubble { position: relative; max-height: 250px; padding: 12px 13px; overflow-y: auto; border-radius: 12px 12px 3px 12px; background: #d9fdd3; color: #17251f; box-shadow: 0 1px 2px rgba(14, 44, 34, .12); }
.notification-message-bubble strong { color: #08745e; font-size: 10px; font-weight: 900; }
.notification-message-bubble small { color: #527067; font-size: 9px; }
.notification-message-bubble p { margin: 8px 0 0; color: #17251f; font-size: 11px; line-height: 1.5; white-space: pre-line; }
.notification-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.notification-choice { display: grid; gap: 3px; min-height: 66px; padding: 12px 13px; border: 1px solid #dfe5e2; border-radius: 13px; background: #fff; color: #364740; cursor: pointer; font: inherit; text-align: left; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.notification-choice strong { font-size: 11px; }
.notification-choice span { color: #718079; font-size: 8px; line-height: 1.4; }
.notification-choice:hover { border-color: #aebdb7; box-shadow: 0 7px 18px rgba(20, 55, 44, .09); transform: translateY(-1px); }
.notification-choice-send { border-color: #81cbb5; background: #eaf8f3; color: #08745e; }
.notification-choice-send:hover { border-color: #159b76; box-shadow: 0 7px 20px rgba(8, 116, 94, .14); }
.notification-choice[hidden] { display: none; }
.notification-review-button { display: block; margin: 13px auto 0; padding: 5px 8px; border: 0; background: transparent; color: #63736c; cursor: pointer; font: inherit; font-size: 9px; font-weight: 750; }
.notification-review-button:hover { color: #223d34; text-decoration: underline; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid rgba(226,232,240,.95); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.card-body { padding: 21px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 2px 0 0; font-size: 15px; letter-spacing: -.015em; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.kpi { position: relative; min-height: 126px; padding: 21px; overflow: hidden; }
.kpi:before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--green), #54d7ad); opacity: .85; }
.kpi:after { content: ""; position: absolute; right: -28px; top: -35px; width: 105px; height: 105px; border-radius: 50%; background: linear-gradient(145deg, var(--green-soft), rgba(228,247,240,.25)); }
.kpi .label { color: var(--muted); font-size: 11px; font-weight: 700; }
.kpi strong { display: block; margin-top: 10px; font-size: 30px; letter-spacing: -1.2px; }
.kpi small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.kpi .icon { position: absolute; right: 20px; top: 20px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #cfecdf; border-radius: 13px; background: var(--green-soft); color: var(--green); font-size: 18px; font-weight: 800; }

.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.toolbar .grow, .grow { flex: 1; }
.toolbar label, .form-group label { display: block; margin-bottom: 6px; color: #536176; font-size: 10px; font-weight: 750; letter-spacing: .015em; }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #d7e0ea; border-radius: 11px; background: white; color: var(--text); outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #bdcad7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(21,169,121,.1); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 750; font-size: 11px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--green), #087d61); color: white; box-shadow: 0 7px 16px rgba(11,143,104,.18); }
.button.primary:hover { background: linear-gradient(135deg, #087e5d, #076f56); box-shadow: 0 10px 22px rgba(11,143,104,.24); }
.button.secondary { background: white; border-color: var(--line); color: #334155; box-shadow: 0 3px 9px rgba(15,23,42,.025); }
.button.secondary:hover { border-color: #cad5e0; background: #f9fbfd; }
.button.danger { background: #fff2f3; color: var(--red); border-color: #f2cdd2; }
.button.small { min-height: 32px; padding: 6px 10px; font-size: 10px; border-radius: 9px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 15px; color: #728096; background: var(--surface-2); border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .075em; white-space: nowrap; }
.table td { padding: 14px 15px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s ease; }
.table tr:hover td { background: #f9fcfb; }
.table tr.selected-row td { background: #f0faf6; }
.table strong { font-size: 12px; }
.client-registry-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.client-registry-tab { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); box-shadow: var(--shadow); }
.client-registry-tab span { font-size: 11px; font-weight: 850; }
.client-registry-tab strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; min-width: 34px; padding: 7px 9px; border-radius: 10px; background: var(--surface-2); color: var(--green); text-align: center; font-size: 15px; }
.client-registry-tab small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.client-registry-tab:hover { border-color: rgba(0,128,105,.35); transform: translateY(-1px); }
.client-registry-tab.active { border-color: rgba(0,128,105,.42); background: linear-gradient(135deg,#effaf6,#fff); box-shadow: 0 10px 30px rgba(0,128,105,.11); }
.client-registry-tab.pending.active { border-color: rgba(232,163,24,.42); background: linear-gradient(135deg,#fff8e8,#fff); }
.client-registry-tab.pending strong { background: #fff1cb; color: #9a6200; }
.filter-readonly { min-width: 175px; padding: 10px 12px; border: 1px solid #f1dca7; border-radius: 10px; background: #fff8e8; color: #875d0a; font-size: 10px; font-weight: 750; }
@media (max-width: 720px) { .client-registry-tabs { grid-template-columns: 1fr; } }
.align-right { text-align: right !important; }
.subtle { color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 20px; font-size: 9px; font-weight: 800; letter-spacing: .015em; background: #edf1f5; color: #596575; white-space: nowrap; }
.badge.success { background: #def5ea; color: #126747; }
.badge.danger { background: #fde8eb; color: #a42f3c; }
.badge.info { background: #e8effd; color: #2e58ae; }
.badge.warning { background: #fff2d4; color: #895b10; }
.stack { display: grid; gap: 12px; }
.empty { padding: 38px 20px; color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--text); margin-bottom: 5px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.progress { height: 7px; overflow: hidden; border-radius: 10px; background: #e9eef3; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), #54d7ad); }
.progress.over span { background: var(--red); }
.bar-chart { display: flex; align-items: end; gap: 12px; height: 180px; padding-top: 20px; }
.bar-item { min-width: 35px; flex: 1; text-align: center; }
.bar { width: 100%; min-height: 3px; border-radius: 7px 7px 2px 2px; background: linear-gradient(#38c997, #0b8f68); box-shadow: 0 5px 12px rgba(11,143,104,.12); }
.bar-item small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.bar-item b { font-size: 10px; }

.movement-chart-legend { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 750; }
.movement-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.movement-chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.movement-chart-legend i.created { background: #0b8f68; }
.movement-chart-legend i.cancelled { background: #d95060; }
.movement-chart { display: flex; align-items: stretch; gap: 11px; min-height: 220px; padding-top: 8px; }
.movement-day { min-width: 35px; flex: 1; display: grid; grid-template-rows: 82px 82px 22px; text-align: center; }
.movement-half { display: flex; flex-direction: column; align-items: center; }
.movement-half.positive { justify-content: flex-end; border-bottom: 1px solid #cad5dc; }
.movement-half.negative { justify-content: flex-start; }
.movement-half b { min-height: 15px; color: var(--ink); font-size: 10px; line-height: 15px; }
.movement-half.negative b { color: #b33b49; }
.movement-bar { width: min(100%, 44px); flex: 0 0 auto; transition: height .2s ease; }
.movement-bar.created { border-radius: 7px 7px 2px 2px; background: linear-gradient(#38c997, #0b8f68); box-shadow: 0 5px 12px rgba(11,143,104,.12); }
.movement-bar.cancelled { border-radius: 2px 2px 7px 7px; background: linear-gradient(#d95060, #f08b96); box-shadow: 0 5px 12px rgba(199,61,77,.12); }
.movement-bar.empty { background: transparent; box-shadow: none; }
.movement-day > small { align-self: end; color: var(--muted); font-size: 9px; }
.request-number-link { color: var(--ink); text-decoration: none; }
.request-number-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.request-group-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 18px; }
.request-group-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 6px 18px rgba(17,50,41,.045); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.request-group-tab:hover { border-color: #9dcebd; box-shadow: 0 10px 24px rgba(13,86,65,.09); transform: translateY(-1px); }
.request-group-tab span { min-width: 0; }
.request-group-tab strong, .request-group-tab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-group-tab strong { font-size: 11px; }
.request-group-tab small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-group-tab b { display: grid; place-items: center; flex: 0 0 auto; min-width: 29px; height: 29px; padding: 0 7px; border-radius: 10px; color: #456158; background: #edf3f0; font-size: 10px; }
.request-group-tab.active { border-color: #86cbb4; background: linear-gradient(135deg,#eaf8f3,#fff); box-shadow: inset 3px 0 #0b8f68,0 8px 22px rgba(11,143,104,.08); }
.request-group-tab.active b { color: #fff; background: var(--green); }
.request-group-tab.cancelled.active { border-color: #edb4bc; background: linear-gradient(135deg,#fff2f4,#fff); box-shadow: inset 3px 0 #cf4656,0 8px 22px rgba(207,70,86,.07); }
.request-group-tab.cancelled.active b { background: #cf4656; }
.request-list-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.request-list-hint > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 15px; font-weight: 900; }
.request-list-hint small { font-size: 8px; line-height: 1.35; }
.request-table .request-clickable-row { cursor: pointer; outline: 0; transition: background .14s ease, box-shadow .14s ease; }
.request-table .request-clickable-row:hover, .request-table .request-clickable-row:focus { background: #f0faf6; box-shadow: inset 3px 0 var(--green); }
.request-table .request-clickable-row.cancelled { background: #fffafa; }
.request-table .request-clickable-row.cancelled:hover, .request-table .request-clickable-row.cancelled:focus { background: #fff2f4; box-shadow: inset 3px 0 #cf4656; }
.request-row-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #527269; background: #edf4f1; font-size: 20px; line-height: 1; }
.cancelled-group .card-head { border-bottom-color: #f1d8dc; background: linear-gradient(135deg,#fff8f9,#fff); }
.request-details-modal .system-modal-panel { width: min(960px, calc(100vw - 28px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.request-details-modal .system-modal-icon { flex: 0 0 auto; margin: 0; }
.request-details-modal .request-details-heading { display: flex; align-items: center; gap: 14px; padding-right: 38px; }
.request-details-modal .request-details-heading > div:nth-child(2) { min-width: 0; flex: 1; }
.request-details-modal .request-details-heading p { margin-top: 3px; }
.request-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.request-details-grid > div { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.request-details-grid span, .request-details-note > span, .request-cancellation-summary > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.request-details-grid strong { color: var(--ink); font-size: 12px; }
.request-details-grid small { color: var(--muted); font-size: 10px; }
.request-cancellation-summary { display: grid; gap: 6px; margin-top: 20px; padding: 15px 16px; border: 1px solid #f2c6cc; border-radius: 14px; background: #fff3f5; }
.request-cancellation-summary > span, .request-cancellation-summary small { color: #a42f3c; }
.request-cancellation-summary strong { color: #7f2631; font-size: 13px; line-height: 1.5; }
.request-cancellation-summary small { font-size: 10px; }
.request-details-note { margin-top: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; }
.request-details-note p { margin-top: 5px; color: var(--ink); }
.request-edit-panel { margin-top: 15px; overflow: hidden; border: 1px solid #cfe2da; border-radius: 15px; background: #fff; }
.request-edit-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; background: linear-gradient(135deg,#eff9f5,#fbfdfc); }
.request-edit-panel > summary::-webkit-details-marker { display: none; }
.request-edit-panel > summary strong, .request-edit-panel > summary small { display: block; }
.request-edit-panel > summary strong { color: #125b48; font-size: 11px; }
.request-edit-panel > summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.request-edit-panel > summary i { color: #41816f; font-size: 18px; font-style: normal; transition: transform .15s ease; }
.request-edit-panel[open] > summary i { transform: rotate(180deg); }
.request-edit-form { padding: 16px; border-top: 1px solid #dce9e4; }
.request-edit-form .form-group { margin: 0; }
.request-edit-form .form-group > small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.request-edit-client { padding: 11px 13px; border: 1px solid #e0e9e5; border-radius: 12px; background: var(--surface-2); }
.request-edit-client span, .request-edit-client strong, .request-edit-client small { display: block; }
.request-edit-client span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.request-edit-client strong { margin-top: 3px; font-size: 11px; }
.request-edit-client small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-edit-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 4px; }
.request-edit-actions > span { color: var(--muted); font-size: 9px; }
.request-modal-operations { margin-top: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #f8fbfa; }
.request-modal-section-head { margin-bottom: 12px; }
.request-modal-section-head h3 { margin: 3px 0 4px; font-size: 13px; }
.request-modal-section-head p { margin: 0; color: var(--muted); font-size: 9px; }
.request-operation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.request-operation-card { display: grid; align-content: start; gap: 9px; padding: 13px; border: 1px solid #dce7e3; border-radius: 13px; background: #fff; }
.request-operation-card > div strong, .request-operation-card > div small { display: block; }
.request-operation-card > div strong { font-size: 10px; }
.request-operation-card > div small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-operation-card .button { width: 100%; }
.request-danger-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px 13px; border: 1px solid #f0d2d6; border-radius: 12px; background: #fff7f8; }
.request-danger-action strong, .request-danger-action small { display: block; }
.request-danger-action strong { color: #9c3040; font-size: 10px; }
.request-danger-action small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.request-closed-notice { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid #d8e7e1; border-radius: 12px; background: #fff; }
.request-closed-notice > span { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: #6d817a; font-weight: 900; }
.request-closed-notice strong, .request-closed-notice small { display: block; }
.request-closed-notice strong { font-size: 10px; }
.request-closed-notice small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.request-status-timeline { display: grid; gap: 11px; margin-top: 20px; }
.request-status-timeline h3 { margin: 0; color: var(--ink); font-size: 12px; }
.request-status-event { display: grid; grid-template-columns: 10px 1fr; gap: 9px; }
.request-status-event > i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.request-status-event > div { display: grid; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.request-status-event strong { font-size: 11px; }
.request-status-event small { color: var(--muted); font-size: 9px; }
.request-status-event p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
@media (max-width: 860px) { .request-group-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .request-details-grid, .request-operation-grid { grid-template-columns: 1fr; } .request-details-modal .request-details-heading { align-items: flex-start; flex-wrap: wrap; } .request-group-tabs { grid-template-columns: 1fr; } .request-list-hint { display: none; } .request-edit-actions, .request-danger-action { align-items: stretch; flex-direction: column; } .request-edit-actions .button, .request-danger-action .button { width: 100%; } }

.modal-details { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.modal-details summary { cursor: pointer; padding: 15px 18px; background: var(--surface-2); font-weight: 750; list-style-position: inside; }
.modal-details summary span, .modal-details summary small { display: inline-block; }
.modal-details summary small { margin-left: 8px; color: var(--muted); font-weight: 500; }
.modal-details > div { padding: 20px; border-top: 1px solid var(--line); }
.alert-recipient-check { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.alert-recipient-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green); }
.alert-recipient-check span { display: grid; gap: 3px; }
.alert-recipient-check small { color: var(--muted); font-weight: 500; }
.service-log-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; }
.service-log-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 14px; background: linear-gradient(145deg, #fff, #f7fbfa); }
.service-log-card.urgent { border-left-color: var(--red); background: linear-gradient(145deg, #fff, #fff8f8); }
.service-log-copy { color: var(--text); font-size: 13px; line-height: 1.65; }
.service-log-copy strong { font-weight: 800; }
.service-log-card footer { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.completion-actions { align-items: center; justify-content: space-between; gap: 16px; }
.completion-actions > span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.company-lookup { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(300px, 1.2fr); align-items: end; gap: 18px; padding: 16px; border: 1px solid #b9dfd1; border-radius: 14px; background: linear-gradient(135deg, #f2fbf7, #fbfdfc); }
.company-lookup label { color: #165c47; font-size: 11px; }
.lookup-copy p, .form-section p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.lookup-controls { display: flex; align-items: center; gap: 9px; }
.lookup-controls .input { flex: 1; min-width: 0; }
.lookup-controls .button { flex: 0 0 auto; }
.form-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 3px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.form-section strong { display: block; margin-top: 2px; color: var(--ink); font-size: 13px; }
.check-option { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 11px; font-weight: 700; cursor: pointer; }
.check-option input { width: 17px; height: 17px; accent-color: var(--primary); }
.units-section { overflow: hidden; }
.unit-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.unit-summary { display: flex; gap: 13px; padding: 16px; }
.unit-summary p { margin: 4px 0 8px; color: var(--muted); font-size: 11px; }
.unit-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 18px; }
.unit-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.unit-meta span { padding: 4px 8px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 9px; }
.inline-editor { border-top: 1px solid var(--line); background: #fbfcfe; }
.inline-editor summary { cursor: pointer; padding: 10px 16px; color: var(--green); font-size: 10px; font-weight: 800; }
.inline-editor form { padding: 17px; border-top: 1px solid var(--line); }
.inline-editor.add-unit { border: 1px dashed #b8d9cc; border-radius: 14px; background: #f6fcf9; }
.inline-delete { display: flex; justify-content: flex-end; padding: 0 17px 17px; }
.inline-delete form { padding: 0; border: 0; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 14px; border: 1px solid #f0d2d6; border-radius: 13px; background: #fff7f8; }
.danger-zone strong, .danger-zone span { display: block; }
.danger-zone strong { color: #9c3040; font-size: 11px; }
.danger-zone span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.dumpster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.dumpster-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dumpster-card > .unit-meta { padding: 0 16px 16px; }
.dumpster-card-head { display: flex; align-items: center; gap: 11px; padding: 15px 16px 10px; }
.dumpster-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.dumpster-symbol { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--green-soft), #d5f1e6); color: var(--green); font-size: 18px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.contact-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.contact-card-head { display: flex; align-items: center; gap: 11px; padding: 15px 16px 10px; }
.contact-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.contact-card > .unit-meta { padding: 0 16px 16px; }
.contact-checks { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 22px; }
.profile-photo-field { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px dashed #c9ddd5; border-radius: 13px; background: #f7fbf9; }
.profile-photo-field .grow { min-width: 0; }
.profile-photo-field .input { margin-top: 5px; background: #fff; }
.check-option.compact { width: fit-content; margin-top: 7px; font-size: 9px; }

.chat-layout { position: relative; display: grid; grid-template-columns: 360px minmax(390px, 1fr) 320px; min-height: calc(100vh - 86px); padding: 0; overflow: hidden; border-top: 1px solid #dce6e2; background: #e8efec; }
.chat-list, .chat-main, .chat-info { min-width: 0; }
.chat-main { display: flex; flex-direction: column; height: calc(100vh - 86px); }
.chat-list { border-right: 1px solid #dce6e2; background: linear-gradient(180deg, #fbfdfc, #f4f8f6); }
.chat-main { background: #f3f0ea; }
.chat-info { overflow-y: auto; border-left: 1px solid #dce6e2; background: #f8fbfa; }
.chat-panel-head { position: relative; z-index: 3; padding: 14px 13px 12px; border-bottom: 1px solid #dce6e2; background: rgba(250,253,252,.96); box-shadow: 0 7px 22px rgba(16,53,43,.055); backdrop-filter: blur(12px); }
.chat-inbox-hud { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.chat-hud-copy { min-width: 0; }
.chat-live-label { display: inline-flex; align-items: center; gap: 6px; color: #08745e; font-size: 8px; font-weight: 900; letter-spacing: .095em; text-transform: uppercase; }
.chat-live-label i { width: 7px; height: 7px; border-radius: 50%; background: #20c887; box-shadow: 0 0 0 4px rgba(32,200,135,.13); animation: chat-live-pulse 2.2s ease-in-out infinite; }
.chat-hud-metrics { display: flex; align-items: baseline; gap: 7px; margin-top: 4px; }
.chat-hud-metrics strong { color: #152a23; font-size: 15px; letter-spacing: -.025em; }
.chat-hud-metrics small { color: #718079; font-size: 9px; }
.chat-search { position: relative; }
.chat-search::before { position: absolute; z-index: 1; top: 50%; left: 12px; content: '⌕'; color: #6f817a; font-size: 17px; transform: translateY(-53%); pointer-events: none; }
.chat-search .input { min-height: 40px; padding-left: 35px; border-color: #e0e9e5; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(21,58,47,.035); }
.conversation-items { max-height: calc(100vh - 226px); padding: 7px; overflow: auto; }
.conversation-item { display: flex; gap: 12px; min-height: 74px; margin-bottom: 4px; padding: 11px 10px; border: 1px solid transparent; border-radius: 13px; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.conversation-item:hover { border-color: #e0e9e5; background: #fff; box-shadow: 0 7px 19px rgba(14,48,38,.055); transform: translateY(-1px); }
.conversation-item.active { border-color: #b7dfd1; background: linear-gradient(135deg, #e8f7f1, #f3fbf8); box-shadow: inset 3px 0 0 #0b8f68, 0 7px 20px rgba(10,108,82,.07); }
.conversation-item.unidentified { box-shadow: inset 3px 0 0 #e7a527; }
.conversation-item.unidentified.active { border-color: #efdaa5; background: linear-gradient(135deg, #fff7e2, #fffcf5); box-shadow: inset 3px 0 0 #e7a527, 0 7px 20px rgba(151,102,10,.07); }
.unidentified-contact-badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-top: 5px; padding: 3px 7px; border-radius: 999px; background: #fff0c7; color: #8a5800; font-size: 8px; font-weight: 800; }
.unidentified-contact-badge span { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: #dfa020; color: #fff; font-size: 8px; }
.conversation-copy { min-width: 0; flex: 1; }
.conversation-copy .split { margin-bottom: 4px; }
.conversation-copy p { margin: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.conversation-preview-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.conversation-preview-row p { min-width: 0; flex: 1; }
.conversation-unread-count { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #25d366; color: #fff; font-size: 9px; font-weight: 850; line-height: 1; box-shadow: 0 2px 6px rgba(37,211,102,.28); }
.conversation-item.has-unread .split strong { font-weight: 850; }
.conversation-item.has-unread .conversation-copy time { color: #128c7e; font-weight: 800; }
.conversation-item.has-unread .conversation-preview-row p { color: #263238; font-weight: 650; }
.conversation-nav-badge { background: #25d366; }
.conversation-company { display: block; margin: -1px 0 3px; color: var(--green); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-copy time { color: var(--muted); font-size: 9px; }
.chat-header { position: relative; z-index: 12; min-height: 70px; padding: 10px 14px; border-bottom: 1px solid #dce6e2; display: flex; align-items: center; gap: 10px; background: rgba(250,253,252,.95); box-shadow: 0 5px 20px rgba(18,52,43,.045); backdrop-filter: blur(12px); }
.chat-header .grow { min-width: 0; flex: 1; }
.chat-header h2 { margin: 0; font-size: 12px; }
.chat-header p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chat-profile-summary { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 3px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.chat-profile-summary:hover { background: #e3e7e9; }
.chat-profile-summary .grow { display: block; min-width: 0; }
.chat-profile-summary strong, .chat-profile-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-profile-summary strong { font-size: 12px; }
.chat-profile-summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.chat-header-actions, .chat-mode-actions { display: flex; align-items: center; gap: 6px; }
.chat-header-actions { flex: 0 0 auto; margin-left: auto; }
.chat-routing-state { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 6px 9px; border: 1px solid #bfe4d6; border-radius: 999px; background: #ecf9f4; color: #08745e; font-size: 8px; font-weight: 850; white-space: nowrap; }
.chat-routing-state i { width: 7px; height: 7px; border-radius: 50%; background: #18bb7d; box-shadow: 0 0 0 3px rgba(24,187,125,.12); }
.chat-routing-state.human { border-color: #f0d89f; background: #fff7e4; color: #8c5b09; }
.chat-routing-state.human i { background: #e7a527; box-shadow: 0 0 0 3px rgba(231,165,39,.13); }
.chat-routing-state.closed { border-color: #d9e1de; background: #f1f4f3; color: #6d7a75; }
.chat-routing-state.closed i { background: #92a09b; box-shadow: none; }
.unidentified-contact-alert { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #edd49a; background: linear-gradient(90deg, #fff6dc, #fffaf0); color: #704800; }
.unidentified-contact-alert > div { min-width: 0; flex: 1; }
.unidentified-contact-alert strong { display: block; font-size: 11px; }
.unidentified-contact-alert p { margin: 2px 0 0; color: #876629; font-size: 9px; }
.unidentified-contact-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #e6a523; color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 4px 10px rgba(175,112,0,.2); }
.unidentified-contact-alert .button.warning { border-color: #d79b22; background: #fff; color: #785000; white-space: nowrap; }
.chat-mode-actions { margin: 0; }
.chat-mode-actions .button { min-height: 34px; padding: 7px 12px; border-radius: 18px; white-space: nowrap; }
.chat-actions-menu { position: relative; }
.chat-actions-menu summary { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #54656f; cursor: pointer; font-size: 25px; line-height: 1; list-style: none; user-select: none; }
.chat-actions-menu summary::-webkit-details-marker { display: none; }
.chat-actions-menu summary:hover, .chat-actions-menu[open] summary { background: #dfe3e5; }
.chat-actions-popover { position: absolute; z-index: 40; top: 44px; right: 0; width: 224px; padding: 7px; border: 1px solid #e2e6e8; border-radius: 9px; background: white; box-shadow: 0 8px 24px rgba(11,20,26,.18); }
.chat-actions-popover form { margin: 0; }
.chat-menu-action { display: flex; align-items: center; width: 100%; min-height: 39px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 10px; font-weight: 650; text-align: left; }
.chat-menu-action:hover { background: #f0f2f5; }
.chat-menu-action.danger-text { color: #b42332; }
.message-selection-bar { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid #cfe5dc; background: #f2fbf7; color: #173f35; }
.message-selection-bar[hidden] { display: none; }
.message-selection-bar strong { flex: 1; font-size: 12px; }
.message-selection-bar form { margin: 0; }
.message-selection-cancel, .message-selection-delete { border: 0; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.message-selection-cancel { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #375b52; font-size: 23px; }
.message-selection-cancel:hover { background: #e1f3eb; }
.message-selection-delete { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 18px; color: #b42335; font-size: 10px; }
.message-selection-delete:hover:not(:disabled) { background: #fdebee; }
.message-selection-delete:disabled { cursor: not-allowed; opacity: .4; }
.conversation-owner { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messages { flex: 1; min-height: 220px; height: auto; overflow-y: auto; padding: 22px 6%; background-color: #eef2ef; background-image: radial-gradient(rgba(70,101,90,.07) .75px, transparent .75px), linear-gradient(145deg, rgba(255,255,255,.28), transparent 46%); background-size: 17px 17px, 100% 100%; }
.message-row { position: relative; display: flex; align-items: flex-start; margin-bottom: 10px; transition: background .15s ease; }
.message-row.out { justify-content: flex-end; }
.message-selector { display: none; align-self: center; flex: 0 0 31px; width: 31px; cursor: pointer; }
.message-selection-mode .message-row { margin-right: -12px; margin-left: -12px; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.message-selection-mode .message-row:hover, .message-row.message-selected { background: rgba(10, 139, 100, .1); }
.message-selection-mode .message-selector { display: grid; place-items: center; }
.message-selector input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.message-selector span { display: block; width: 19px; height: 19px; border: 2px solid #81958e; border-radius: 50%; background: #fff; transition: all .15s ease; }
.message-selector input:checked + span { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.message-selection-mode .message-row.out .message-selector { order: -1; }
.bubble { display: inline-block; align-self: flex-start; width: auto; min-width: 0; max-width: 74%; height: auto; padding: 7px 9px 5px; border-radius: 8px 8px 8px 2px; background: white; box-shadow: 0 1px 1px rgba(11,20,26,.13); white-space: normal; overflow-wrap: anywhere; }
.message-row.out .bubble { background: #d9fdd3; border-radius: 8px 8px 2px 8px; }
.message-sender { margin-bottom: 3px; color: #0a765b; font-size: 9px; line-height: 1.25; }
.message-sender strong { font-weight: 900; }
.message-sender span { font-weight: 500; }
.message-row.in .message-sender { color: #4e6f67; }
.bubble-content { display: block; font-size: 11px; line-height: 1.45; white-space: normal; }
.message-date-options { display: grid; gap: 5px; margin-top: 9px; }
.message-date-option { display: block; padding: 8px 10px; border: 1px solid rgba(0,128,105,.22); border-radius: 7px; background: rgba(255,255,255,.82); color: #08745e; font-size: 10px; font-weight: 700; text-align: center; }
.message-structured-options { display: grid; margin: 9px -9px -5px; border-top: 1px solid #e4e8e6; }
.message-structured-option { display: block; padding: 9px 12px; color: #08745e; font-size: 10px; font-weight: 800; text-align: center; }
.message-structured-option + .message-structured-option { border-top: 1px solid #e4e8e6; }
.bubble-meta { display: flex; justify-content: flex-end; gap: 5px; margin-top: 4px; color: #78827d; font-size: 9px; }
.media-preview { display: block; max-width: 260px; max-height: 220px; margin-bottom: 6px; border-radius: 9px; }
.media-open-link { display: block; width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.video-open-link { position: relative; cursor: pointer; }
.video-preview { display: block; width: min(320px, 100%); max-height: 280px; margin-bottom: 6px; border-radius: 9px; background: #111; pointer-events: none; }
.video-play-indicator { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; padding-left: 3px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(10,20,26,.72); color: #fff; font-size: 17px; transform: translate(-50%,-50%); box-shadow: 0 5px 18px rgba(0,0,0,.28); pointer-events: none; }
.media-viewer-backdrop[hidden] { display: none; }
.media-viewer-backdrop { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 22px; background: rgba(5, 13, 20, .88); backdrop-filter: blur(8px); animation: modal-fade .18s ease-out; }
.media-viewer-panel { width: min(1040px, 100%); max-height: calc(100vh - 44px); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: #101a20; box-shadow: 0 28px 100px rgba(0,0,0,.5); outline: none; animation: modal-rise .2s ease-out; }
.media-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px 12px 18px; color: #fff; background: #202c33; }
.media-viewer-header > div:first-child { display: grid; gap: 2px; min-width: 0; }
.media-viewer-header span { color: #9eb2aa; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.media-viewer-header strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-viewer-header-actions { display: flex; align-items: center; gap: 8px; }
.media-viewer-header .button { color: #d9fdd3; border-color: #49645b; background: #2a3942; }
.media-viewer-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #49605a; border-radius: 10px; background: #2a3942; color: #fff; font-size: 20px; cursor: pointer; }
.media-viewer-close:hover { background: #354750; }
.media-viewer-content { display: grid; place-items: center; min-height: 220px; max-height: calc(100vh - 115px); padding: 18px; overflow: auto; background: #0b141a; }
.media-viewer-content img, .media-viewer-content video { display: block; max-width: 100%; max-height: calc(100vh - 155px); border-radius: 8px; box-shadow: 0 12px 45px rgba(0,0,0,.32); }
.media-viewer-content [hidden] { display: none; }
.client-profile-backdrop[hidden] { display: none; }
.client-profile-backdrop { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; padding: 22px; background: rgba(7, 18, 25, .64); backdrop-filter: blur(7px); animation: modal-fade .18s ease-out; }
.client-profile-panel { position: relative; width: min(520px, 100%); max-height: calc(100vh - 44px); overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: #fff; box-shadow: 0 30px 95px rgba(5,20,28,.38); outline: none; animation: modal-rise .22s ease-out; }
.client-profile-close { position: absolute; z-index: 2; top: 13px; right: 13px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 11px; background: rgba(15,43,36,.48); color: #fff; font-size: 20px; cursor: pointer; backdrop-filter: blur(5px); }
.client-profile-close:hover { background: rgba(15,43,36,.7); }
.client-profile-cover { height: 105px; background: radial-gradient(circle at 18% 30%, rgba(255,255,255,.24), transparent 24%), linear-gradient(135deg, #04795d, #12a77c 56%, #87d8bc); }
.client-profile-identity { position: relative; padding: 0 24px 18px; text-align: center; }
.client-profile-identity .profile-avatar { width: 82px; height: 82px; margin: -43px auto 10px; border: 5px solid #fff; border-radius: 26px; font-size: 28px; box-shadow: 0 10px 28px rgba(5,76,58,.22); }
.client-profile-identity h2 { margin: 4px 0 3px; font-size: 22px; letter-spacing: -.035em; }
.client-profile-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.client-profile-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.client-profile-badges span { padding: 4px 8px; border-radius: 999px; background: #e8f7f1; color: #087359; font-size: 8px; font-weight: 800; }
.client-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 20px; overflow: hidden; border: 1px solid #dfe9e5; border-radius: 14px; background: #f8fbfa; }
.client-profile-stats div { padding: 11px 8px; text-align: center; }
.client-profile-stats div + div { border-left: 1px solid #dfe9e5; }
.client-profile-stats strong, .client-profile-stats span { display: block; }
.client-profile-stats strong { color: #075e4a; font-size: 17px; }
.client-profile-stats span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.client-profile-body { display: grid; gap: 15px; padding: 18px 20px; }
.client-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.client-profile-facts div { min-width: 0; padding: 10px 11px; border: 1px solid #e4ece9; border-radius: 11px; }
.client-profile-facts span, .client-profile-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-profile-facts span { color: var(--muted); font-size: 8px; }
.client-profile-facts strong { margin-top: 3px; font-size: 10px; }
.client-profile-section h3 { margin: 0 0 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.client-profile-row { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 7px 3px; color: inherit; border-bottom: 1px solid #edf2f0; }
.client-profile-row > span { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 9px; background: #e7f5ef; color: #087359; font-weight: 850; }
.client-profile-row div { min-width: 0; }
.client-profile-row strong, .client-profile-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-profile-row strong { font-size: 10px; }
.client-profile-row small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.client-profile-note { padding: 11px 12px; border-radius: 12px; background: #fff8e8; }
.client-profile-note span { color: #896000; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.client-profile-note p { margin: 4px 0 0; color: #705b2a; font-size: 10px; line-height: 1.5; }
.client-profile-footer { position: sticky; bottom: 0; padding: 13px 20px; border-top: 1px solid #e4ece9; background: rgba(255,255,255,.94); backdrop-filter: blur(7px); }
.client-profile-footer .button { width: 100%; }
.audio-preview { width: 250px; max-width: 100%; }
.message-document { display: grid; grid-template-columns: 38px minmax(0,1fr) 22px; align-items: center; gap: 9px; width: min(310px,100%); min-width: 220px; padding: 8px; border-radius: 9px; color: #17231f; background: rgba(255,255,255,.68); }
.message-document > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #fff; background: #e65d67; font-size: 18px; font-weight: 900; }
.message-document > span:nth-child(2) { min-width: 0; }
.message-document strong, .message-document small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-document strong { font-size: 10px; }
.message-document small { margin-top: 3px; color: #66736e; font-size: 8px; font-weight: 750; }
.message-document i { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #bdd0c9; border-radius: 50%; color: #42665b; font-size: 13px; font-style: normal; }
.audio-transcription { max-width: 360px; margin-top: 7px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.62); color: #30433c; font-size: 11px; line-height: 1.45; }
.audio-transcription strong { display: block; margin-bottom: 2px; color: #16725c; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.message-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(15,23,42,.07); }
.message-actions:empty { display: none; }
.message-actions form { margin: 0; }
.message-actions button { padding: 0; border: 0; background: transparent; color: #466d65; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.message-actions button:hover { text-decoration: underline; }
.message-actions .danger-link { color: #b33d49; }
.message-hidden .bubble { border: 1px dashed #c9a2a7; background: #fff8f8; opacity: .9; }
.message-hidden-label { margin-bottom: 6px; color: #a43d48; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.message-origin { margin-top: 6px; color: #57736b; font-size: 8px; font-weight: 750; letter-spacing: .025em; }
.chat-compose { position: relative; min-height: 62px; display: flex; flex-direction: column; gap: 7px; align-items: stretch; padding: 8px 12px 9px; border-top: 1px solid var(--line); background: #f0f2f5; }
.chat-compose.dragging-file { background: #ddf3eb; box-shadow: inset 0 0 0 2px #20a77f; }
.compose-bar { display: flex; align-items: flex-end; gap: 5px; width: 100%; }
.compose-action-anchor { position: relative; flex: 0 0 auto; }
.compose-icon-button, .compose-send-button { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: #54656f; background: transparent; cursor: pointer; transition: color .15s ease, background .15s ease, transform .15s ease; }
.compose-icon-button:hover { color: #1e7965; background: #e2e8e5; }
.compose-icon-button:active, .compose-send-button:active { transform: scale(.94); }
.compose-icon-button svg, .compose-send-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compose-send-button { margin-left: 2px; color: #fff; background: #00a884; box-shadow: 0 4px 12px rgba(0,168,132,.2); }
.compose-send-button:hover { background: #008f70; }
.compose-send-button:disabled { cursor: wait; opacity: .58; }
.compose-input-shell { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 42px; padding: 9px 14px; border-radius: 22px; background: #fff; box-shadow: 0 1px 1px rgba(11,20,26,.04); }
.compose-input-shell textarea { display: block; width: 100%; min-height: 22px; max-height: 112px; padding: 0; resize: none; overflow-y: auto; border: 0; outline: 0; color: #24332e; background: transparent; font: inherit; font-size: 11px; line-height: 1.55; scrollbar-width: thin; }
.compose-input-shell textarea::placeholder { color: #83918c; }
.emoji-picker[hidden], .attachment-picker[hidden], .compose-attachment-preview[hidden] { display: none; }
.emoji-picker, .attachment-picker { position: absolute; z-index: 30; bottom: calc(100% + 11px); left: 0; border: 1px solid #dce6e2; border-radius: 15px; background: #fff; box-shadow: 0 18px 48px rgba(11,31,25,.2); animation: modal-rise .15s ease-out; }
.emoji-picker { width: 300px; padding: 10px; }
.emoji-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 9px; border-bottom: 1px solid #edf2f0; }
.emoji-picker-head strong { font-size: 10px; }
.emoji-picker-head small { color: var(--muted); font-size: 8px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 2px; max-height: 190px; padding-top: 7px; overflow-y: auto; }
.emoji-grid button { display: grid; place-items: center; width: 33px; height: 33px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 19px; transition: background .12s ease, transform .12s ease; }
.emoji-grid button:hover { background: #edf7f3; transform: scale(1.12); }
.attachment-picker { width: 245px; padding: 7px; }
.attachment-picker > button { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.attachment-picker > button:hover { background: #f0f7f4; }
.attachment-picker > button > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; font-size: 17px; font-weight: 850; }
.attachment-choice-media { background: linear-gradient(145deg,#8e56d9,#6b38c5); }
.attachment-choice-audio { background: linear-gradient(145deg,#f39b38,#e37422); }
.attachment-choice-document { background: linear-gradient(145deg,#45a8e8,#267fca); }
.attachment-picker strong, .attachment-picker small { display: block; }
.attachment-picker strong { font-size: 10px; }
.attachment-picker small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.compose-attachment-preview { display: grid; grid-template-columns: 40px minmax(0,1fr) 30px; align-items: center; gap: 9px; width: min(430px,calc(100% - 8px)); margin-left: 4px; padding: 8px; border: 1px solid #d3e3dd; border-radius: 13px; background: #fff; box-shadow: 0 4px 14px rgba(17,50,41,.06); }
.compose-preview-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; background: #00a884; font-size: 18px; font-weight: 850; }
.compose-preview-icon.has-thumbnail { background-position: center; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.compose-preview-copy { min-width: 0; }
.compose-preview-copy strong, .compose-preview-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-preview-copy strong { font-size: 10px; }
.compose-preview-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.compose-attachment-preview > button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: #65756f; background: #edf2f0; cursor: pointer; font-size: 18px; }
.compose-attachment-preview > button:hover { color: #a82d3b; background: #fdebee; }
.delivery-status { color: #6c7b75; }
.delivery-status.failed { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #fff; background: #cf3e4c; font-size: 9px; font-weight: 900; }
.chat-paused { padding: 9px 14px; background: #fff4d8; color: #775016; border-top: 1px solid #efdcae; font-size: 11px; }
.info-section { padding: 17px; border-bottom: 1px solid var(--line); }
.info-section h3 { margin: 0 0 11px; font-size: 9px; color: var(--green); text-transform: uppercase; letter-spacing: .09em; }
.info-list { display: grid; gap: 9px; }
.info-list div { font-size: 11px; }
.info-list span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; }
.request-mini { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.request-mini strong, .request-mini small { display: block; }
.request-mini small { color: var(--muted); margin-top: 4px; }
.team-list { gap: 7px; }
.team-member { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; }
.team-member.active { border-color: #9fd5c2; background: #effaf5; box-shadow: inset 3px 0 var(--green); }
.team-member .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.team-member strong, .team-member small { display: block; }
.team-member strong { font-size: 10px; }
.team-member small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.global-message-notification[hidden] { display: none; }
.global-message-notification { position: fixed; z-index: 1400; top: 86px; right: 22px; display: grid; grid-template-columns: 42px minmax(0,1fr) 22px; align-items: center; gap: 11px; width: min(390px, calc(100vw - 28px)); padding: 12px; border: 1px solid rgba(133,218,188,.62); border-radius: 17px; background: rgba(12,35,29,.97); color: #fff; box-shadow: 0 20px 58px rgba(5,25,19,.3); opacity: 0; transform: translateY(-12px) scale(.97); backdrop-filter: blur(14px); transition: opacity .2s ease, transform .2s ease; }
.global-message-notification.show { opacity: 1; transform: translateY(0) scale(1); }
.global-message-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg,#21bd88,#08785b); color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 7px 18px rgba(18,173,122,.24); }
.global-message-copy { min-width: 0; }
.global-message-copy small, .global-message-copy strong, .global-message-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-message-copy small { color: #8fd7bd; font-size: 7px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.global-message-copy strong { margin-top: 2px; font-size: 11px; }
.global-message-copy > span { margin-top: 2px; color: #c5d7d0; font-size: 9px; }
.global-message-arrow { color: #8fd7bd; font-size: 19px; font-weight: 700; }
@keyframes chat-live-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .62; transform: scale(.82); } }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; overflow-x: hidden; background: radial-gradient(circle at 12% 10%, rgba(36,204,149,.2) 0, transparent 30%), radial-gradient(circle at 88% 88%, rgba(45,108,190,.14) 0, transparent 28%), linear-gradient(145deg,#071521 0%,#0b2028 52%,#0b2925 100%); }
.login-page:before, .login-page:after { content: ""; position: fixed; pointer-events: none; border: 1px solid rgba(112,226,184,.09); border-radius: 50%; }
.login-page:before { top: -170px; right: -130px; width: 480px; height: 480px; }
.login-page:after { bottom: -240px; left: -180px; width: 590px; height: 590px; }
.login-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(390px,.85fr); width: min(1040px,100%); min-height: 620px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 30px; background: rgba(255,255,255,.98); box-shadow: 0 35px 100px rgba(0,0,0,.38); }
.login-showcase { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 46px 50px 38px; overflow: hidden; background: linear-gradient(145deg,#0d302c 0%,#0a2528 55%,#091b29 100%); color: white; }
.login-showcase:before { content: ""; position: absolute; top: 20%; right: -23%; width: 460px; height: 460px; border: 1px solid rgba(91,224,176,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(91,224,176,.025), 0 0 0 145px rgba(91,224,176,.018); }
.login-showcase:after { content: ""; position: absolute; right: 48px; bottom: 44px; width: 95px; height: 95px; border-right: 2px solid rgba(105,223,181,.17); border-bottom: 2px solid rgba(105,223,181,.17); border-radius: 0 0 28px; }
.login-company-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.login-company-logo { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; padding: 9px; border: 1px solid rgba(133,237,199,.22); border-radius: 17px; background: rgba(255,255,255,.065); color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.login-company-brand strong, .login-company-brand span { display: block; }
.login-company-brand strong { color: #fff; font-size: 18px; line-height: 1.1; letter-spacing: -.025em; }
.login-company-brand span { margin-top: 5px; color: #83cdb3; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-showcase-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; margin: auto; color: #fff; text-align: center; }
.login-showcase-emblem { display: grid; place-items: center; width: 150px; height: 150px; padding: 28px; border: 1px solid rgba(133,237,199,.16); border-radius: 42px; background: rgba(255,255,255,.045); color: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.login-showcase-copy > strong { font-size: 25px; letter-spacing: -.035em; }
.login-card { align-self: center; width: 100%; max-width: 450px; margin: 0 auto; padding: 50px 46px; background: transparent; }
.login-brand { display: none; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-logo { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; padding: 9px; border: 1px solid #c4e8db; border-radius: 16px; background: linear-gradient(145deg, #123d34, #0e2928); color: white; box-shadow: 0 9px 20px rgba(11,143,104,.14); }
.login-brand > div:last-child { min-width: 0; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { color: var(--ink); font-size: 17px; line-height: 1.15; letter-spacing: -.02em; }
.login-brand span { margin-top: 5px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-card h1 { margin: 0 0 29px; font-size: 30px; line-height: 1.08; letter-spacing: -.045em; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .form-group label { margin-bottom: 7px; color: #3d4d62; font-size: 10px; }
.login-card .input { min-height: 48px; border-radius: 13px; background: #fbfcfd; }
.login-card .button { width: 100%; min-height: 47px; margin-top: 8px; border-radius: 13px; }
.account-card { width: 500px; }
.app-entry-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 12px; }
.app-entry-actions .button { min-width: 0; margin-top: 0; font-size: 10px; }
.login-links { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.login-links a { color: var(--green); font-size: 11px; font-weight: 750; }
.login-links a:hover { text-decoration: underline; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.sidebar-app-actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
.sidebar-app-actions button { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 8px 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.04); color: #a9bdb4; cursor: pointer; font-size: 9px; font-weight: 700; }
.sidebar-app-actions button:hover { color: white; background: rgba(255,255,255,.08); }
.sidebar-app-actions button[hidden] { display: none; }

.settings-layout { display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); gap: 18px; align-items: start; }
.settings-response-form { overflow: hidden; border-top: 1px solid var(--line); }
.settings-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 14px 0; background: var(--surface-2); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.settings-tab { flex: 0 0 auto; padding: 10px 12px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 800; white-space: nowrap; }
.settings-tab:hover { color: var(--ink); background: rgba(255,255,255,.72); }
.settings-tab.active { border-color: var(--line); background: white; color: var(--green); box-shadow: 0 -3px 10px rgba(19,50,43,.04); }
.settings-tab-panel:not([hidden]) { display: block; padding: 18px; }
.settings-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.settings-panel-heading h3 { margin: 3px 0 5px; font-size: 15px; }
.settings-panel-heading p { max-width: 560px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.response-fields { display: grid; gap: 14px; }
.response-field { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.response-field .textarea { min-height: 82px; background: white; }
.field-variables { display: inline-flex; margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: #e4f5ef; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.settings-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-top: 1px solid var(--line); background: white; }
.settings-save-bar strong, .settings-save-bar span { display: block; }
.settings-save-bar strong { color: var(--ink); font-size: 10px; }
.settings-save-bar span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.ai-lab { position: sticky; top: 104px; overflow: hidden; }
.lab-context { border-bottom: 1px solid var(--line); }
.lab-messages { height: 390px; overflow-y: auto; padding: 20px; background-color: #eef3f0; background-image: radial-gradient(rgba(83,99,91,.075) .8px, transparent .8px); background-size: 17px 17px; }
.lab-diagnostic { border-top: 1px solid var(--line); }
.lab-diagnostic h3 { margin: 0 0 12px; font-size: 12px; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.diagnostic-grid div { padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.diagnostic-grid span, .diagnostic-grid strong { display: block; }
.diagnostic-grid span { color: var(--muted); font-size: 9px; }
.diagnostic-grid strong { margin-top: 3px; font-size: 11px; text-transform: capitalize; }
.weekday-capacity-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 11px; }
.weekday-capacity { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.weekday-capacity > span { display: inline-grid; place-items: center; width: 32px; height: 24px; margin-bottom: 10px; border-radius: 8px; background: #dff5ec; color: var(--green); font-size: 9px; font-weight: 850; }
.weekday-capacity label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 10px; font-weight: 750; }
.weekday-capacity .input { padding-right: 58px; font-size: 17px; font-weight: 800; }
.weekday-capacity small { position: absolute; right: 25px; bottom: 26px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.capacity-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.capacity-footer p { margin: 0; color: var(--muted); font-size: 10px; }

/* Agenda operacional */
.agenda-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 24px 26px; overflow: hidden; border: 1px solid #cfe8df; border-radius: 20px; background: linear-gradient(120deg, #eefaf6 0%, #fff 58%, #edf6ff 100%); box-shadow: var(--shadow); }
.agenda-hero:after { content: ""; position: absolute; right: -55px; bottom: -85px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(18,169,124,.13), rgba(18,169,124,0) 70%); pointer-events: none; }
.agenda-hero h2 { margin: 4px 0 6px; font-size: 27px; line-height: 1.1; letter-spacing: -.04em; }
.agenda-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.agenda-hero-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; min-width: 260px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.9); border-radius: 14px; background: rgba(255,255,255,.75); box-shadow: 0 8px 24px rgba(15,23,42,.055); backdrop-filter: blur(8px); }
.agenda-hero-status strong, .agenda-hero-status small { display: block; }
.agenda-hero-status strong { font-size: 11px; }
.agenda-hero-status small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.agenda-integration-dot { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; }
.agenda-integration-dot.online { background: #17ad7c; box-shadow: 0 0 0 5px rgba(23,173,124,.12); }
.agenda-integration-dot.pending { background: #e2a32b; box-shadow: 0 0 0 5px rgba(226,163,43,.13); }

.agenda-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.agenda-summary article { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(15,23,42,.035); }
.agenda-summary-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; font-size: 16px; font-weight: 900; }
.agenda-summary-icon.green { color: #08765a; background: #e1f6ee; }
.agenda-summary-icon.blue { color: #315fbd; background: #e8effd; }
.agenda-summary-icon.amber { color: #9a6509; background: #fff2d3; }
.agenda-summary-icon.violet { color: #6e4bb2; background: #f0eafd; }
.agenda-summary article > div { min-width: 0; }
.agenda-summary small, .agenda-summary strong, .agenda-summary p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-summary small { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.agenda-summary strong { margin-top: 2px; font-size: 22px; letter-spacing: -.04em; }
.agenda-summary .agenda-summary-time { font-size: 17px; letter-spacing: -.025em; }
.agenda-summary p { margin: 1px 0 0; color: var(--muted); font-size: 8px; }

.agenda-toolbar { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 6px 20px rgba(15,23,42,.035); }
.agenda-navigation { display: flex; align-items: center; gap: 5px; }
.agenda-nav-button, .agenda-today-button { display: grid; place-items: center; height: 36px; border: 1px solid var(--line); background: #fff; color: #425168; font-weight: 800; }
.agenda-nav-button { width: 36px; border-radius: 10px; font-size: 21px; line-height: 1; }
.agenda-today-button { min-width: 58px; padding: 0 13px; border-radius: 10px; font-size: 9px; }
.agenda-nav-button:hover, .agenda-today-button:hover, .agenda-today-button.active { color: var(--green); border-color: #b9ddcf; background: #eff9f5; }
.agenda-period-copy { min-width: 0; flex: 1; }
.agenda-period-copy strong, .agenda-period-copy small { display: block; }
.agenda-period-copy strong { font-size: 11px; }
.agenda-period-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.agenda-date-picker { display: flex; align-items: end; gap: 7px; }
.agenda-date-picker label { display: block; margin-right: 3px; padding-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 750; }
.agenda-date-picker .input, .agenda-date-picker .button { min-height: 36px; height: 36px; }
.agenda-date-picker .input { width: 150px; padding-block: 6px; font-size: 10px; }
.agenda-date-picker .button { padding-block: 6px; }

.agenda-board { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.agenda-day { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.agenda-day:hover { border-color: #cbd8d4; box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.agenda-day.today { border-color: #77c9ab; box-shadow: 0 12px 34px rgba(11,143,104,.11); }
.agenda-day.full { border-color: #ecd2d5; }
.agenda-day.closed { background: #fafbfc; }
.agenda-day-header { display: flex; align-items: center; gap: 13px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.agenda-day.today .agenda-day-header { background: linear-gradient(90deg,#eefaf6,#fff); }
.agenda-date-block { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; flex: 0 0 57px; width: 57px; min-height: 57px; padding: 7px 8px; border-radius: 13px; background: #eef4f3; color: #38524c; }
.agenda-day.today .agenda-date-block { color: #fff; background: linear-gradient(145deg,#13a477,#08785b); box-shadow: 0 7px 17px rgba(11,143,104,.2); }
.agenda-day.closed .agenda-date-block { color: #697586; background: #eef1f4; }
.agenda-date-block > span { grid-column: 1 / span 2; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.agenda-date-block strong { font-size: 23px; line-height: 1; letter-spacing: -.06em; }
.agenda-date-block small { padding-bottom: 1px; font-size: 7px; font-weight: 850; }
.agenda-day-title { min-width: 0; flex: 1; }
.agenda-day-title span, .agenda-day-title strong, .agenda-day-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-day-title span { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.agenda-day-title strong { margin-top: 3px; font-size: 13px; }
.agenda-day-title small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.agenda-day-state { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 850; }
.agenda-day-state.available { color: #0a704f; background: #ddf5eb; }
.agenda-day-state.full { color: #a52f3e; background: #fde8eb; }
.agenda-day-state.closed { color: #637083; background: #edf0f3; }

.agenda-capacity { padding: 11px 15px 12px; background: #fbfcfd; }
.agenda-capacity > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.agenda-capacity span { color: var(--muted); font-size: 8px; }
.agenda-capacity strong { font-size: 8px; }
.agenda-capacity-track { height: 5px; overflow: hidden; border-radius: 999px; background: #e8edf1; }
.agenda-capacity-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#21b786,#62d6b1); }
.agenda-day.full .agenda-capacity-track span { background: linear-gradient(90deg,#db5361,#ef8792); }

.agenda-events { display: grid; gap: 0; min-height: 103px; padding: 4px 15px; }
.agenda-event { display: grid; grid-template-columns: 56px 7px minmax(0,1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 11px 0; border-bottom: 1px solid #edf1f3; }
.agenda-event:last-child { border-bottom: 0; }
.agenda-event:hover .agenda-event-main strong { color: var(--green); }
.agenda-event-time { color: #4f5f72; font-size: 9px; font-weight: 800; }
.agenda-event-marker { width: 7px; height: 28px; border-radius: 999px; background: #7e91a9; }
.agenda-event-marker.papelao { background: #c58a45; }
.agenda-event-marker.plastico { background: #3e79d8; }
.agenda-event-main { min-width: 0; }
.agenda-event-main strong, .agenda-event-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-event-main strong { font-size: 10px; transition: color .15s ease; }
.agenda-event-main small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.agenda-event-side { display: grid; justify-items: end; gap: 4px; }
.agenda-event-side small { max-width: 150px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-empty-day { display: grid; justify-items: center; align-content: center; min-height: 94px; padding: 14px; color: var(--muted); text-align: center; }
.agenda-empty-day > span { display: grid; place-items: center; width: 27px; height: 27px; margin-bottom: 6px; border-radius: 9px; color: var(--green); background: #e9f7f1; font-weight: 850; }
.agenda-day.closed .agenda-empty-day > span { color: #768192; background: #edf0f3; }
.agenda-empty-day strong { color: #526174; font-size: 9px; }
.agenda-empty-day small { margin-top: 2px; font-size: 8px; }
.agenda-day-footer { padding: 9px 15px; border-top: 1px solid var(--line); background: #fbfcfd; }
.agenda-day-footer a { display: flex; align-items: center; justify-content: space-between; color: #35705f; font-size: 8px; font-weight: 800; }
.agenda-day-footer a:hover { color: var(--green); }
.agenda-day-footer span { font-size: 13px; }

.agenda-exception-editor { margin-top: 18px; overflow: hidden; border: 1px solid #d9e5e1; border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.agenda-exception-editor summary { display: flex; align-items: center; gap: 12px; padding: 15px 17px; cursor: pointer; list-style: none; }
.agenda-exception-editor summary::-webkit-details-marker { display: none; }
.agenda-exception-editor summary > span:nth-child(2) { min-width: 0; flex: 1; }
.agenda-exception-editor summary strong, .agenda-exception-editor summary small { display: block; }
.agenda-exception-editor summary strong { font-size: 11px; }
.agenda-exception-editor summary small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.agenda-exception-plus { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: var(--green); font-size: 18px; }
.agenda-exception-arrow { color: var(--muted); font-size: 18px; transition: transform .2s ease; }
.agenda-exception-editor[open] .agenda-exception-arrow { transform: rotate(180deg); }
.agenda-exception-editor > div { padding: 18px; border-top: 1px solid var(--line); background: #fbfcfc; }
.agenda-block-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid #d9eee7; border-radius: 12px; color: #286453; background: #f1faf7; }
.agenda-block-note strong { font-size: 11px; }
.agenda-block-note span { color: var(--muted); font-size: 10px; }
.agenda-exceptions-card { margin-top: 18px; overflow: hidden; }
.agenda-exceptions-card form { margin: 0; }
.agenda-exceptions-launcher { display: flex; justify-content: flex-end; margin-top: 12px; }
.agenda-exceptions-launcher .button { gap: 9px; }
.agenda-exceptions-modal .system-modal-panel { width: min(860px, calc(100vw - 28px)); max-width: 860px; }
.agenda-exceptions-modal-list { max-height: min(55vh, 520px); margin: 15px -4px 4px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.agenda-exceptions-modal-list form { margin: 0; }

@media (max-width: 1180px) {
    .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .chat-layout { grid-template-columns: 290px 1fr; }
    .chat-info { display: none; }
    .agenda-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1100px) {
    .settings-layout { grid-template-columns: 1fr; }
    .ai-lab { position: static; }
    .weekday-capacity-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .login-page { padding: 22px; }
    .login-shell { grid-template-columns: 1fr; width: min(500px,100%); min-height: 0; }
    .login-showcase { display: none; }
    .login-card { max-width: none; }
    .login-brand { display: flex; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -290px; width: 268px; transition: left .2s ease; }
    .sidebar.shown { left: 0; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
    .menu-button { display: block; }
    .page-content { padding: 22px; }
    .topbar { padding: 0 22px; }
    .agenda-board { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .chat-mode-actions .button { padding-inline: 9px; }
    .chat-routing-state { display: none; }
}
@media (max-width: 720px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid, .company-lookup { grid-template-columns: 1fr; }
    .lookup-controls, .form-section, .completion-actions { align-items: stretch; flex-direction: column; }
    .page-intro, .selection-banner { align-items: flex-start; flex-direction: column; }
    .page-intro .button { width: 100%; }
    .chat-layout { display: block; }
    .chat-list { display: none; }
    .chat-layout.show-list .chat-list { display: block; }
    .messages { padding: 16px; }
    .chat-header { padding-inline: 10px; }
    .chat-mode-actions .button { font-size: 8px; }
    .chat-main { height: calc(100vh - 86px); }
    .chat-list { min-height: calc(100vh - 86px); }
    .conversation-items { max-height: calc(100vh - 228px); }
    .global-message-notification { top: 82px; right: 10px; left: 10px; width: auto; }
    .bubble { max-width: 88%; }
    .page-content { padding: 16px; }
    .settings-panel-heading, .settings-save-bar { align-items: stretch; flex-direction: column; }
    .settings-save-bar .button { width: 100%; }
    .topbar { height: 74px; padding: 0 16px; }
    .topbar-date { display: none; }
    .device-notification-button { width: 38px; justify-content: center; padding: 8px; }
    .device-notification-button span { display: none; }
    .toolbar { align-items: stretch; }
    .toolbar > * { width: 100%; }
    .unit-summary { align-items: flex-start; }
    .dumpster-grid, .contact-grid { grid-template-columns: 1fr; }
    .danger-zone { align-items: stretch; flex-direction: column; }
    .danger-zone .button { width: 100%; }
    .modal-details summary small { display: block; margin: 3px 0 0 18px; }
    .system-modal-backdrop { align-items: end; padding: 12px; }
    .system-modal-panel { width: 100%; padding: 24px 20px 20px; border-radius: 20px; }
    .system-modal-actions { flex-direction: column-reverse; }
    .system-modal-actions .button { width: 100%; }
    .notification-choice-grid { grid-template-columns: 1fr; }
    .media-viewer-backdrop { padding: 0; }
    .media-viewer-panel { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; }
    .media-viewer-content { max-height: calc(100dvh - 59px); padding: 10px; }
    .media-viewer-content img, .media-viewer-content video { max-height: calc(100dvh - 90px); }
    .client-profile-backdrop { align-items: end; padding: 0; }
    .client-profile-panel { width: 100%; max-height: 92dvh; border: 0; border-radius: 22px 22px 0 0; }
    .client-profile-facts { grid-template-columns: 1fr; }
    .weekday-capacity-grid { grid-template-columns: 1fr; }
    .capacity-footer { align-items: stretch; flex-direction: column; }
    .capacity-footer .button { width: 100%; }
    .agenda-hero { align-items: stretch; flex-direction: column; padding: 20px; }
    .agenda-hero-status { min-width: 0; }
    .agenda-summary { grid-template-columns: 1fr 1fr; }
    .agenda-toolbar { align-items: stretch; flex-wrap: wrap; }
    .agenda-period-copy { order: -1; flex-basis: 100%; }
    .agenda-date-picker { width: 100%; align-items: stretch; flex-wrap: wrap; }
    .agenda-date-picker label { width: 100%; padding: 0; }
    .agenda-date-picker .input { min-width: 0; width: auto; flex: 1; }
    .agenda-event { grid-template-columns: 48px 7px minmax(0,1fr); }
    .agenda-event-side { grid-column: 3; justify-items: start; }
}
@media (max-width: 430px) {
    .login-page { display: block; min-height: 100dvh; padding: 0; background: #fff; }
    .login-page:before, .login-page:after { display: none; }
    .login-shell { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
    .login-card { align-self: start; padding: 38px 25px 28px; }
    .login-brand { margin-bottom: 42px; }
    .login-card h1 { font-size: 28px; }
    .agenda-summary { grid-template-columns: 1fr; }
    .agenda-navigation { width: 100%; }
    .agenda-today-button { flex: 1; }
    .agenda-date-picker .button { width: 100%; }
}
