:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --line: #dce3ec;
  --soft: #eef3f8;
  --text: #17202a;
  --muted: #667085;
  --brand: #12695f;
  --brand-dark: #0f3f3b;
  --accent: #2f63d3;
  --warn: #b76e00;
  --danger: #b42318;
  --shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(18, 105, 95, .08), transparent 300px),
    var(--bg);
  color: var(--text);
  font: 14px/1.5 "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

h1, h2, p { margin: 0; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 16px; font-weight: 800; }
a { color: inherit; }
button, select, input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}
button { padding: 7px 12px; cursor: pointer; font-weight: 700; }
select, input { padding: 6px 10px; }
button:hover { border-color: #98d7ce; color: var(--brand); }
button.on, .panel-title a {
  border-color: #98d7ce;
  background: #eefaf7;
  color: var(--brand);
}
button.danger {
  border-color: #f4b4aa;
  background: #fff3f1;
  color: var(--danger);
}
button.danger:hover {
  border-color: #f08a7d;
  background: #ffe8e4;
  color: var(--danger);
}
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #10213f;
  color: #e2e8f0;
}

.brand {
  min-height: 48px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #22c2a7;
  color: #052f2b;
  font-weight: 900;
}

.brand strong { font-size: 17px; }

.side-nav nav {
  display: grid;
  gap: 6px;
}

.side-nav nav a,
.side-nav form button {
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  text-decoration: none;
}

.side-nav nav a:hover,
.side-nav nav a.active,
.side-nav form button:hover {
  background: rgba(34, 194, 167, .16);
  color: #ffffff;
}

.side-nav form { margin-top: auto; }
.side-nav form button { width: 100%; }

.main-surface {
  min-width: 0;
  padding: 24px;
}

.workspace-head {
  min-height: 92px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.workspace-head p,
.panel-title span,
small,
.metric span,
.metric small,
.agent-status-card span,
.agent-status-card small {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-switcher label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.platform-switcher select { min-width: 280px; }

.agent-status-card,
.panel,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.agent-status-card {
  min-height: 74px;
  margin-bottom: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.agent-status-card strong {
  display: block;
  font-size: 18px;
}

.agent-status-card form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.switch-line {
  min-height: 36px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
}

.switch-line input { min-height: auto; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric {
  min-height: 116px;
  padding: 16px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.metric strong {
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.notice-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 1.15fr);
  gap: 14px;
  margin-bottom: 14px;
}

.work-grid.three {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}

.panel {
  min-height: 260px;
  overflow: hidden;
}

.panel.compact { min-height: 220px; }

.ticket-board {
  min-height: 0;
  margin-bottom: 14px;
}

.panel-title {
  min-height: 58px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title a {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #98d7ce;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.toolbar, .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.actions { justify-content: flex-end; }

.ticket-flow {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.ticket-flow span {
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-weight: 800;
  text-align: center;
}

.ticket-table th:nth-child(2),
.ticket-table td:nth-child(2) {
  width: 24%;
}

.ticket-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.compact-actions {
  gap: 5px;
}

.ticket-actions button {
  min-height: 32px;
  padding: 5px 9px;
}

.status-pill {
  min-height: 26px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #eef3f8;
  color: #344054;
  font-weight: 800;
}

.status-pending {
  background: #fff7e8;
  color: var(--warn);
}

.status-accepted,
.status-processing {
  background: #eefaf7;
  color: var(--brand);
}

.status-tech_required {
  background: #eef3ff;
  color: var(--accent);
}

.status-resolved {
  background: #ecfdf3;
  color: #027a48;
}

.status-closed {
  background: #f2f4f7;
  color: #667085;
}

.muted-text {
  color: var(--muted);
  font-weight: 700;
}

.agent-chat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-message {
  position: relative;
}

.agent-message.selected {
  outline: 2px solid #98d7ce;
  outline-offset: 1px;
}

.agent-message-check {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agent-message.checkable {
  padding-left: 42px;
}

.agent-message-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.task-list { padding: 8px; }

.task-row {
  min-height: 78px;
  padding: 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #edf1f5;
}

.task-row strong,
.task-row small {
  display: block;
  overflow-wrap: anywhere;
}

.interval-form {
  display: grid;
  grid-template-columns: 86px 58px;
  gap: 6px;
}

.interval-form input { width: 86px; }

.log-stream {
  height: 440px;
  overflow: auto;
  background: #111827;
  padding: 10px;
}

.log-line {
  display: grid;
  grid-template-columns: 64px 58px minmax(160px, .9fr) minmax(220px, 1.4fr);
  gap: 8px;
  min-height: 30px;
  padding: 6px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #d8dee9;
}

.log-line time { color: #9ca3af; }
.log-line span, .log-line p { overflow-wrap: anywhere; }
.log-line.info b { color: #9ad0ff; }
.log-line.warning b { color: #ffd166; }
.log-line.error b { color: #ff8a80; }
.log-line.hidden { display: none; }
.empty.dark { color: #9ca3af; }

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  min-height: 38px;
  padding: 10px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  overflow-wrap: anywhere;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}

td form { margin: 0; }

.badge {
  display: inline-grid;
  min-width: 28px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #eefaf7;
  color: var(--brand);
  font-weight: 800;
}

.badge.warn {
  background: #fff7e8;
  color: var(--warn);
}

.empty {
  padding: 18px;
  color: var(--muted);
}

.agent-main { padding-bottom: 0; }

.agent-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 140px);
}

.agent-sessions,
.agent-chat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.agent-session {
  width: 100%;
  min-height: 78px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  border-radius: 0;
  background: #ffffff;
  text-align: left;
}

.agent-session:hover, .agent-session.active { background: #f1fbf8; }

.agent-notification-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.agent-notification-controls { display: flex; gap: 8px; }
.agent-session.has-unread [data-unread-count] { color: var(--danger); font-weight: 800; }

.agent-session strong,
.agent-session span,
.agent-session small {
  display: block;
  overflow-wrap: anywhere;
}

.agent-messages {
  height: calc(100vh - 270px);
  min-height: 380px;
  overflow: auto;
  padding: 16px;
  background: #f8fafc;
}

.agent-message {
  max-width: 72%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.agent-message.mine {
  margin-left: auto;
  border-color: #98d7ce;
  background: #eefaf7;
}

.agent-message p {
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-unread-tag {
  display: inline-flex;
  min-height: 20px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7e8;
  color: #b76e00;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.message-image {
  display: block;
  margin-top: 8px;
  cursor: zoom-in;
}

.message-image img {
  display: block;
  max-width: min(360px, 100%);
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .72);
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer-dialog {
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.image-viewer-head {
  min-height: 54px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.image-viewer-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.image-viewer-actions a {
  min-height: 36px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.image-viewer-body {
  min-height: 0;
  padding: 14px;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #111827;
}

.image-viewer-body img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

.image-viewer-open {
  overflow: hidden;
}

.message-file {
  min-height: 44px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.message-file span {
  display: grid;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #eef3ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.message-file strong {
  overflow-wrap: anywhere;
  color: var(--text);
}

.message-file small {
  grid-column: 2;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.agent-reply {
  min-height: 112px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.agent-reply-tools,
.agent-reply-line,
.agent-attachment-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-reply-tools button {
  min-width: 62px;
}

.screenshot-option {
  min-height: 36px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 700;
}

.screenshot-option input {
  min-height: auto;
}

.agent-attachment-preview {
  min-height: 52px;
  padding: 8px;
  border: 1px dashed #98d7ce;
  border-radius: 8px;
  background: #f1fbf8;
  align-items: stretch;
}

.agent-attachment-preview[hidden] {
  display: none;
}

.agent-attachment-preview img {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}

.attachment-image-preview {
  width: 56px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  cursor: zoom-in;
}

.attachment-image-preview:hover {
  outline: 2px solid #98d7ce;
}

.attachment-image-preview img {
  width: 100%;
  height: 100%;
}

.agent-attachment-item {
  min-width: min(280px, 100%);
  padding: 6px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #dcefe9;
  border-radius: 8px;
  background: #ffffff;
}

.agent-attachment-item div {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1;
}

.agent-attachment-item strong,
.agent-attachment-item small {
  overflow-wrap: anywhere;
}

.file-chip {
  display: grid;
  width: 56px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #eef3ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.agent-reply-line {
  flex-wrap: nowrap;
  align-items: stretch;
}

.agent-reply-line input {
  width: 100%;
  flex: 1;
  min-width: 0;
}

.agent-submit-actions {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

.emoji-toggle {
  width: 40px;
  min-width: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.emoji-toggle.on {
  background: #eefaf7;
}

.send-button {
  width: 78px;
}

.agent-emoji-panel {
  width: min(380px, 100%);
  margin: 0 10px 2px auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(8, 36px);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.agent-emoji-panel[hidden] {
  display: none;
}

.emoji-choice {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 19px;
  line-height: 1;
}

.emoji-choice:hover,
.emoji-choice:focus {
  border-color: #98d7ce;
  background: #eefaf7;
}

.capture-hidden .app-layout {
  visibility: hidden;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 194, 167, .24), transparent 32%),
    linear-gradient(135deg, #0b1730 0%, #10213f 48%, #0f3f3b 100%);
}

.login-shell {
  width: min(1040px, calc(100vw - 40px));
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

.login-copy {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.login-copy .eyebrow {
  color: #9ff0df;
}

.login-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 8px;
  background: #22c2a7;
  color: #052f2b;
  font-size: 20px;
  font-weight: 900;
}

.login-copy h1 {
  max-width: 560px;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.12;
}

.login-copy p {
  max-width: 540px;
  color: #dbeafe;
  font-size: 16px;
}

.login-highlights {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-highlights span {
  min-height: 34px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #f8fafc;
  font-weight: 700;
}

.login-panel {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.login-panel-head {
  margin-bottom: 24px;
}

.login-panel-head span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-panel h2 {
  margin: 6px 0 8px;
  color: #111827;
  font-size: 28px;
}

.login-panel p {
  color: var(--muted);
}

.login-panel form {
  display: grid;
  gap: 16px;
}

.login-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 800;
}

.login-panel input {
  width: 100%;
  min-height: 44px;
  border-color: #cfd8e3;
  background: #f8fafc;
}

.login-panel input:focus {
  outline: 3px solid rgba(34, 194, 167, .22);
  border-color: #22c2a7;
  background: #ffffff;
}

.login-panel button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.login-panel button:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.login-panel a {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
}

.form-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #f4b4aa;
  border-radius: 8px;
  background: #fff3f1;
  color: var(--danger);
}

.notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #98d7ce;
  border-radius: 8px;
  background: #eefaf7;
  color: var(--brand);
  font-weight: 800;
}

.notice-stack .notice {
  margin-bottom: 0;
}

.notice.error {
  border-color: #f4b4aa;
  background: #fff3f1;
  color: var(--danger);
}

.api-token-panel {
  margin-bottom: 14px;
}

.api-token-box,
.api-code-form,
.api-info {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.api-token-box label,
.api-code-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 800;
}

.api-token-box input,
.api-code-form input {
  width: 100%;
}

.api-token-box input {
  font-family: Consolas, "Courier New", monospace;
}

.api-code-form button {
  width: fit-content;
}

.api-info strong {
  font-family: Consolas, "Courier New", monospace;
  color: var(--accent);
}

.api-code-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
}

.api-code-prefix code {
  min-width: 104px;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Consolas, "Courier New", monospace;
  color: #344054;
}

.api-code-prefix code.revealed {
  color: var(--accent);
}

.api-code-reveal {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eefaf7;
  color: var(--brand);
}

.api-code-reveal svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.api-code-reveal.copied {
  border-color: #98d7ce;
  background: var(--brand);
  color: #ffffff;
}

.api-code-reveal.disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 1100px) {
  .app-layout { grid-template-columns: 1fr; }
  .side-nav {
    position: static;
    height: auto;
  }
  .side-nav nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workspace-head,
  .agent-status-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics,
  .work-grid,
  .work-grid.three,
  .agent-shell {
    grid-template-columns: 1fr;
  }
  .ticket-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .login-copy {
    padding: 30px;
  }
  .login-copy h1 {
    font-size: 30px;
  }
  .login-panel {
    padding: 30px;
  }
  .platform-switcher select { min-width: min(320px, 100%); }
  .log-line { grid-template-columns: 56px 48px 1fr; }
  .log-line p { grid-column: 1 / -1; }
  .agent-reply-line {
    flex-wrap: wrap;
  }
  .agent-submit-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .agent-emoji-panel {
    width: 100%;
    margin-right: 0;
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
