:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #19222c;
  background: #f4f6f8;
  font-synthesis: none;
  --green: #138a63;
  --green-strong: #087554;
  --green-soft: #eaf7f1;
  --blue: #2869d8;
  --blue-soft: #eef4ff;
  --red: #c33b43;
  --amber: #9a6814;
  --text: #19222c;
  --muted: #68727d;
  --border: #dfe3e7;
  --border-strong: #cbd1d7;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --topbar-height: 60px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }

.auth-shell { display: grid; min-height: 100%; place-items: center; padding: 24px; background: #edf2f0; }
.auth-panel { width: min(400px, 100%); padding: 32px; border: 1px solid #d7dfdc; border-radius: 8px; background: white; box-shadow: 0 12px 30px rgb(20 40 34 / 8%); }
.product-mark { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 6px; background: var(--green-strong); color: white; font-weight: 800; }
.auth-panel h1 { margin: 20px 0 4px; font-size: 24px; }
label { display: block; margin: 18px 0 6px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 6px; padding: 10px 12px; background: white; color: var(--text); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #a8c7fa; outline-offset: 1px; }
.auth-panel button, .agent-create-form button { width: 100%; margin-top: 20px; border: 0; border-radius: 6px; padding: 12px; background: var(--green-strong); color: white; font-weight: 700; }
.form-error, .error { border-left: 3px solid var(--red); padding: 10px; background: #fff1f1; color: #a62c2c; }

.workspace { height: 100dvh; overflow: hidden; background: var(--surface); }
.topbar { position: relative; z-index: 20; display: flex; height: var(--topbar-height); align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.identity, .topbar-actions { display: flex; min-width: 0; align-items: center; gap: 12px; }
.topbar-actions { position: relative; }
.identity strong { white-space: nowrap; font-size: 17px; }
.connection-state { display: inline-flex; align-items: center; gap: 7px; padding-left: 12px; border-left: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: #9aa3ac; }
.connection-state.live i { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.icon-button { display: inline-grid; width: 36px; height: 36px; min-width: 36px; place-items: center; border: 1px solid transparent; border-radius: 6px; padding: 0; background: transparent; color: #46515c; }
.icon-button:hover { border-color: var(--border); background: var(--surface-soft); color: var(--text); }
.icon-button svg { width: 18px; height: 18px; }
.topbar-menu { margin-right: 2px; }
.availability { display: flex; align-items: center; gap: 8px; margin: 0 2px 0 8px; color: #46515c; font-size: 13px; font-weight: 600; cursor: pointer; }
.availability input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.availability-switch { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #cfd5da; transition: background 160ms ease; }
.availability-switch::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / 18%); content: ""; transition: transform 160ms ease; }
.availability input:checked + .availability-switch { background: var(--green); }
.availability input:checked + .availability-switch::after { transform: translateX(14px); }
.agent-avatar, .case-avatar { display: inline-grid; flex: 0 0 auto; place-items: center; border: 1px solid #d6dce1; border-radius: 50%; background: #edf0f3; color: #38434e; font-size: 11px; font-weight: 750; }
.agent-avatar { width: 32px; height: 32px; }
.agent-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #46515c; font-size: 13px; }
.agent-profile { position: relative; }
.agent-profile-button { display: flex; min-width: 0; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; padding: 3px 5px; background: transparent; color: var(--text); }
.agent-profile-button:hover, .agent-profile-button[aria-expanded="true"] { border-color: var(--border); background: var(--surface-soft); }
.agent-profile-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 45; width: 280px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px; background: white; box-shadow: 0 18px 44px rgb(25 34 44 / 18%); }
.agent-profile-menu[hidden] { display: none; }
.profile-summary { display: flex; gap: 11px; padding: 10px 9px 12px; border-bottom: 1px solid var(--border); }
.profile-summary > div { display: grid; min-width: 0; gap: 2px; }
.profile-summary strong, .profile-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary strong { font-size: 13px; }
.profile-summary span { color: #46515c; font-size: 11px; }
.profile-summary small { color: var(--muted); font-size: 10px; }
.profile-status { display: flex; align-items: center; gap: 8px; padding: 10px; color: #46515c; font-size: 11px; }
.profile-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.agent-profile-menu > button { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; border-radius: 5px; padding: 9px 10px; background: transparent; color: #46515c; font-size: 12px; text-align: left; }
.agent-profile-menu > button:hover { background: var(--surface-soft); color: var(--text); }
.agent-profile-menu > button svg { width: 16px; height: 16px; }

.support-grid { display: grid; grid-template-columns: 72px minmax(280px, 320px) minmax(0, 1fr) 306px; height: calc(100dvh - var(--topbar-height)); min-height: 0; overflow: hidden; transition: grid-template-columns 180ms ease; }
.support-grid.details-closed { grid-template-columns: 72px minmax(280px, 320px) minmax(0, 1fr) 0; }
.support-grid.rail-collapsed { grid-template-columns: 0 minmax(280px, 320px) minmax(0, 1fr) 306px; }
.support-grid.rail-collapsed.details-closed { grid-template-columns: 0 minmax(280px, 320px) minmax(0, 1fr) 0; }
.support-grid.rail-collapsed .workspace-rail { visibility: hidden; padding-right: 0; padding-left: 0; border-right: 0; overflow: hidden; }
.workspace-rail, .case-list, .conversation-pane, .case-details { min-width: 0; min-height: 0; border-right: 1px solid var(--border); background: var(--surface); }
.workspace-rail { display: flex; align-items: center; flex-direction: column; padding: 14px 10px 12px; }
.rail-agent { position: relative; margin-bottom: 24px; }
.agent-avatar.large { width: 42px; height: 42px; font-size: 12px; }
.presence-dot, .case-presence { border-radius: 50%; background: var(--green); }
.presence-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border: 2px solid white; }
.rail-primary, .rail-secondary { display: grid; width: 100%; justify-items: center; gap: 8px; }
.rail-secondary { margin-top: auto; }
.rail-button { position: relative; display: grid; width: 46px; height: 42px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #65707c; text-decoration: none; }
.rail-button:hover { background: var(--surface-soft); color: var(--text); }
.rail-button.active { background: var(--blue-soft); color: var(--blue); }
.rail-button.active::before { position: absolute; top: 7px; bottom: 7px; left: -10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); content: ""; }
.rail-count { position: absolute; top: 2px; right: 1px; display: grid; min-width: 17px; height: 17px; place-items: center; border: 2px solid white; border-radius: 9px; padding: 0 3px; background: var(--blue); color: white; font-size: 9px; font-weight: 750; }
.rail-count:empty, .rail-count[data-empty="true"] { display: none; }

.case-list { display: grid; grid-template-rows: 74px 48px 49px minmax(0, 1fr); overflow: hidden; }
.case-list-header, .conversation-header, .case-details > header { display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.case-list-header { justify-content: space-between; padding: 12px 14px 8px 18px; }
.case-list h1 { margin: 0 0 4px; font-size: 19px; line-height: 1.15; }
.case-list-header .muted { font-size: 11px; }
.case-search-wrap { position: relative; display: flex; align-items: center; padding: 6px 14px; }
.case-search-wrap > svg { position: absolute; left: 25px; width: 16px; height: 16px; color: #7b858f; pointer-events: none; }
.case-search-wrap input { height: 36px; border-color: var(--border); padding: 7px 12px 7px 35px; background: var(--surface-soft); font-size: 13px; }
.queue-tabs { display: grid; grid-template-columns: .7fr 1.25fr .7fr; align-items: end; padding: 0 10px; border-bottom: 1px solid var(--border); }
.queue-button { position: relative; display: flex; height: 42px; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.queue-button::after { position: absolute; right: 6px; bottom: -1px; left: 6px; height: 2px; background: transparent; content: ""; }
.queue-button:hover { color: var(--text); }
.queue-button.active { color: var(--blue); }
.queue-button.active::after { background: var(--blue); }
.queue-button span { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 9px; padding: 0 5px; background: #edf0f3; color: #606b75; font-size: 10px; }
#case-list-items { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.case-row { position: relative; display: grid; width: 100%; grid-template-columns: 8px 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid #edf0f2; padding: 13px 14px 13px 10px; background: white; text-align: left; }
.case-row:hover { background: #f8fafb; }
.case-row.selected { background: var(--blue-soft); }
.case-row.selected::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--blue); content: ""; }
.case-presence { width: 7px; height: 7px; }
.case-avatar { width: 38px; height: 38px; font-size: 11px; }
.case-row-copy { display: grid; min-width: 0; gap: 4px; }
.case-row-copy strong, .case-row-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-row-copy strong { font-size: 13px; font-weight: 700; }
.case-row-copy span { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.case-time { align-self: start; color: var(--muted); font-size: 10px; white-space: nowrap; }
.empty-state { padding: 28px 18px; color: var(--muted); font-size: 13px; text-align: center; }

.conversation-pane { display: grid; grid-template-rows: 72px minmax(0, 1fr) auto; overflow: hidden; }
.conversation-header { gap: 11px; padding: 10px 14px 10px 18px; background: white; }
.conversation-back { display: none; }
.conversation-avatar { width: 42px; height: 42px; }
.conversation-identity { min-width: 0; }
.conversation-title-line { display: flex; min-width: 0; align-items: center; gap: 8px; }
.conversation-header h2 { max-width: 360px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.conversation-header .muted { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.status-pill { border-radius: 9px; padding: 2px 7px; background: var(--green-soft); color: var(--green-strong); font-size: 10px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.conversation-toolbar { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.message-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 18px clamp(18px, 3vw, 42px); background: #f6f7f7; }
.message { width: fit-content; max-width: min(72%, 620px); margin: 0 0 12px; border: 1px solid #e4e7e9; border-radius: 8px; padding: 10px 12px 7px; background: white; box-shadow: 0 1px 2px rgb(25 34 44 / 6%); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.message.outbound { margin-left: auto; border-color: #cfe9dc; background: #e4f6ed; }
.message small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; text-align: right; }
.conversation-placeholder { display: grid; min-height: 100%; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.conversation-placeholder p { max-width: 320px; margin: 7px 0 0; font-size: 12px; line-height: 1.5; }
.conversation-placeholder strong { color: #46515c; font-size: 14px; }
.placeholder-icon { display: grid; width: 44px; height: 44px; margin-bottom: 12px; place-items: center; border-radius: 50%; background: #e9edef; color: #71808b; }
.reply-composer { padding: 10px 16px 14px; border-top: 1px solid var(--border); background: white; }
.composer-label { margin: 0 0 7px; color: #52606c; font-size: 11px; font-weight: 650; }
.composer-field { position: relative; border: 1px solid var(--border-strong); border-radius: 7px; background: white; }
.composer-field:focus-within { border-color: #8caee7; box-shadow: 0 0 0 2px #e9f1ff; }
.composer-field textarea { min-height: 54px; max-height: 130px; resize: vertical; border: 0; padding: 11px 12px 4px; background: transparent; font-size: 13px; line-height: 1.4; outline: 0; }
.composer-tools { position: absolute; bottom: 7px; left: 7px; display: flex; gap: 2px; color: #74808b; }
.composer-tools svg { width: 16px; height: 16px; }
.composer-tools > button { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 5px; padding: 0; background: transparent; color: #66737e; }
.composer-tools > button:hover:not(:disabled), .composer-tools > button[aria-expanded="true"] { background: var(--surface-soft); color: var(--text); }
.emoji-picker { position: absolute; bottom: 38px; left: 0; z-index: 12; display: grid; width: 220px; grid-template-columns: repeat(6, 1fr); gap: 3px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px; background: white; box-shadow: 0 12px 32px rgb(25 34 44 / 16%); }
.emoji-picker[hidden] { display: none; }
.emoji-picker button { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 5px; padding: 0; background: transparent; font-size: 18px; }
.emoji-picker button:hover { background: var(--surface-soft); }
.attachment-preview { display: flex; width: fit-content; max-width: calc(100% - 24px); align-items: center; gap: 8px; margin: 8px 10px 1px; border: 1px solid #cdd9e8; border-radius: 6px; padding: 7px 8px; background: var(--blue-soft); color: #36526f; }
.attachment-preview[hidden] { display: none; }
.attachment-preview > svg { width: 16px; height: 16px; }
.attachment-preview > span { display: grid; min-width: 0; }
.attachment-preview strong { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.attachment-preview small { color: var(--muted); font-size: 9px; }
.attachment-preview button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 4px; padding: 0; background: transparent; color: #52606c; }
.attachment-preview button:hover { background: #dfeafa; }
.attachment-preview button svg { width: 14px; height: 14px; }
.composer-footer { display: flex; min-height: 38px; align-items: center; justify-content: flex-end; gap: 12px; padding: 4px 8px 6px 70px; }
.composer-footer > span { color: var(--muted); font-size: 9px; }
.composer-footer button { display: inline-flex; min-width: 82px; height: 32px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 6px; background: var(--green-strong); color: white; font-size: 12px; font-weight: 700; }
.composer-footer button:hover:not(:disabled) { background: #066246; }
.composer-footer button svg { width: 15px; height: 15px; }
button:disabled, textarea:disabled, select:disabled { cursor: not-allowed; opacity: .48; }

.case-details { display: none; border-right: 0; overflow: hidden; }
.case-details.open { display: grid; grid-template-rows: 72px minmax(0, 1fr); }
.case-details > header { justify-content: space-between; padding: 0 14px 0 18px; }
.case-details h2 { margin: 0; font-size: 15px; }
.details-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.customer-summary { display: flex; align-items: center; gap: 11px; padding: 18px; border-bottom: 1px solid var(--border); }
.details-avatar { width: 44px; height: 44px; }
.customer-summary strong, .customer-summary span { display: block; }
.customer-summary strong { margin-bottom: 4px; font-size: 13px; }
.customer-summary span { font-size: 11px; }
.details-list { margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.details-list div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 7px 0; }
.details-list dt, .details-list dd { margin: 0; font-size: 11px; }
.details-list dt { color: var(--muted); }
.details-list dd { overflow-wrap: anywhere; text-align: right; text-transform: capitalize; }
.detail-section { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.detail-section h3 { margin: 0 0 10px; font-size: 12px; }
.detail-section p { margin-bottom: 10px; font-size: 11px; }
.detail-section label { margin: 10px 0 5px; color: var(--muted); font-size: 10px; }
.detail-section select { padding: 8px; font-size: 11px; }
.secondary-button { width: 100%; margin-top: 8px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 8px; background: white; color: var(--text); font-size: 11px; font-weight: 650; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.action-grid button { display: grid; min-width: 0; min-height: 68px; place-content: center; justify-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 7px; background: white; color: #46515c; font-size: 10px; }
.action-grid button:hover:not(:disabled) { border-color: #b9c8dc; background: var(--blue-soft); color: var(--blue); }
.action-grid svg { width: 19px; height: 19px; }
.secondary-actions { display: grid; gap: 4px; margin-top: 10px; }
.secondary-actions button { border: 0; border-radius: 5px; padding: 7px 8px; background: transparent; color: #52606c; font-size: 11px; text-align: left; }
.secondary-actions button:hover:not(:disabled) { background: var(--surface-soft); color: var(--text); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 360px; border: 1px solid #bddfce; border-radius: 7px; padding: 11px 14px; background: #f0faf5; box-shadow: 0 10px 30px rgb(25 34 44 / 16%); color: #205e49; font-size: 12px; }
.toast.error { border-color: #edbec1; background: #fff3f3; color: #9e3036; }

.management-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: white; box-shadow: 0 24px 60px rgb(15 30 25 / 22%); }
.management-dialog::backdrop { background: rgb(14 25 22 / 45%); }
.management-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.management-dialog h2 { margin: 0 0 4px; font-size: 18px; }
.management-dialog p { margin-bottom: 0; }
.agent-create-form { display: grid; grid-template-columns: 1fr 1.4fr 130px 130px; gap: 10px; align-items: end; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.agent-create-form label { margin: 0 0 4px; font-size: 13px; }
.agent-create-form button { margin: 0; }
.temporary-password { margin: 14px 20px; border-left: 3px solid #ad7c12; padding: 10px; background: #fff8e7; }
.agent-list { max-height: 360px; overflow-y: auto; }
.agent-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid #e7ecea; }
.agent-row strong, .agent-row span { display: block; }
.agent-row span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.agent-row > div:last-child { display: flex; gap: 8px; }
.agent-row button { border: 1px solid var(--border-strong); border-radius: 5px; padding: 7px 9px; background: white; }
.audit-list { margin: 0; padding: 16px 44px 24px; }
.audit-list li { padding: 8px 0; border-bottom: 1px solid #e7ecea; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1180px) {
  .support-grid { grid-template-columns: 66px 286px minmax(0, 1fr) 278px; }
  .support-grid.details-closed { grid-template-columns: 66px 286px minmax(0, 1fr) 0; }
  .support-grid.rail-collapsed { grid-template-columns: 0 286px minmax(0, 1fr) 278px; }
  .support-grid.rail-collapsed.details-closed { grid-template-columns: 0 286px minmax(0, 1fr) 0; }
  .agent-name, .availability-label { display: none; }
}

@media (max-width: 940px) {
  .support-grid, .support-grid.details-closed { grid-template-columns: 64px minmax(260px, 330px) minmax(0, 1fr); }
  .support-grid.rail-collapsed, .support-grid.rail-collapsed.details-closed { grid-template-columns: 0 minmax(260px, 330px) minmax(0, 1fr); }
  .case-details { position: fixed; top: var(--topbar-height); right: 0; bottom: 0; z-index: 30; width: min(320px, calc(100vw - 64px)); border-left: 1px solid var(--border); box-shadow: -12px 0 30px rgb(25 34 44 / 10%); }
  .case-details.open { display: grid; }
}

@media (max-width: 720px) {
  .topbar { padding: 0 10px; }
  .topbar-menu, .identity .product-mark, .identity strong, .connection-state, .agent-name { display: none; }
  .identity::before { color: var(--text); content: "Support"; font-size: 16px; font-weight: 750; }
  .support-grid, .support-grid.details-closed { grid-template-columns: 1fr; }
  .support-grid.rail-collapsed, .support-grid.rail-collapsed.details-closed { grid-template-columns: 1fr; }
  .support-grid.rail-collapsed .workspace-rail { visibility: visible; padding: 7px 10px; border-top: 1px solid var(--border); overflow: visible; }
  .workspace-rail { position: fixed; right: 0; bottom: 0; left: 0; z-index: 25; display: flex; height: 58px; flex-direction: row; justify-content: center; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--border); border-right: 0; }
  .rail-agent, .rail-secondary { display: none; }
  .rail-primary { display: flex; width: auto; gap: 10px; }
  .rail-button.active::before { inset: auto 8px -7px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .case-list { height: calc(100dvh - var(--topbar-height) - 58px); border-right: 0; }
  .conversation-pane { position: fixed; inset: var(--topbar-height) 0 0; z-index: 27; display: none; background: white; }
  .conversation-pane.open { display: grid; }
  .conversation-back { display: inline-grid; }
  .conversation-avatar { display: none; }
  .conversation-header { padding-left: 10px; }
  .conversation-header h2 { max-width: 175px; }
  .status-pill { display: none; }
  .message { max-width: 84%; }
  .reply-composer { padding: 9px 10px 10px; }
  .case-details { top: var(--topbar-height); width: 100%; }
  .toast { right: 12px; bottom: 70px; left: 12px; max-width: none; }
  .agent-create-form { grid-template-columns: 1fr; }
  .agent-row { align-items: flex-start; flex-direction: column; }
}
