:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #71808d;
  --soft-muted: #9aa7b3;
  --line: #e2e8ee;
  --paper: #f4f6f8;
  --panel: #ffffff;
  --blue: #1769d2;
  --blue-soft: #eaf2ff;
  --blue-line: #c8dcfb;
  --purple: #6852c7;
  --purple-soft: #f0edff;
  --green: #16814f;
  --green-soft: #e8f7ef;
  --red: #b73d3d;
  --red-soft: #fff0f0;
  --system: #7d8b98;
  --system-soft: #f0f3f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 1120px;
  height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 18px; }
h2 { font-size: 17px; }
h3 { font-size: 13px; }

.site-header {
  height: 70px;
  padding: 16px clamp(18px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f8;
}
.site-brand {
  display: grid;
  gap: 1px;
  color: #20242a;
  text-decoration: none;
}
.site-brand strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}
.site-brand small {
  color: #66717c;
  font-size: 11px;
  line-height: 1.2;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-dropdown {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}
.site-nav a,
.site-nav button,
.nav-link {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(24, 33, 43, 0.12);
  border-radius: 8px;
  color: #23262b;
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
#site-login-button {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 80;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(24, 33, 43, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  visibility: hidden;
}
.nav-dropdown:hover .product-menu,
.nav-dropdown:focus-within .product-menu,
.nav-dropdown.is-open .product-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}
.product-menu a {
  display: block;
  padding: 9px 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.product-menu a:hover,
.product-menu a:focus-visible {
  background: rgba(23, 105, 210, 0.08);
  color: #111827;
  outline: none;
}
.site-nav a:hover,
.site-nav button:hover {
  color: var(--blue);
}

.topbar {
  height: 72px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.brand-block, .topbar-right, .legend, .composer-controls, .composer-foot, .section-heading, .project-item, .task-item {
  display: flex;
  align-items: center;
}

.brand-block { gap: 11px; }
.brand-mark, .welcome-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  overflow: hidden;
}
.brand-mark img, .welcome-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.eyebrow, .section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.topbar-right { gap: 16px; }
.window-hint { color: var(--soft-muted); font-size: 12px; }

.status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status-muted { color: var(--muted); background: #edf1f4; }
.status-running { color: var(--blue); background: var(--blue-soft); }
.status-completed { color: var(--green); background: var(--green-soft); }
.status-failed, .status-needs_attention, .status-cancelled { color: var(--red); background: var(--red-soft); }

.app-shell {
  height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 294px minmax(0, 1fr);
}

.sidebar {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.side-section { padding: 20px 18px; border-bottom: 1px solid var(--line); }
.section-heading { justify-content: space-between; margin-bottom: 12px; }
.section-kicker { color: var(--soft-muted); }
.add-project-button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #405161;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.add-project-button:hover { border-color: var(--blue-line); color: var(--blue); background: var(--blue-soft); }
.project-list, .task-list { display: grid; gap: 4px; }
.project-item, .task-item {
  position: relative;
  width: 100%;
  min-height: 34px;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #324252;
  background: transparent;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.project-item:hover, .task-item:hover, .project-item.active, .task-item.active {
  border-color: var(--blue-line);
  background: var(--blue-soft);
}
.project-item.dragging { opacity: .5; }
.project-item.drop-target { border-color: var(--blue); box-shadow: inset 0 0 0 1px rgba(23, 105, 210, .18); }
.project-icon { color: #556777; font-size: 13px; }
.project-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-rename-input {
  flex: 1;
  min-width: 0;
  height: 25px;
  padding: 2px 6px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(23, 105, 210, .13);
}
.project-actions {
  margin-left: auto;
  display: flex;
  gap: 2px;
  align-items: center;
}
.project-action-button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  color: #657584;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.project-action-button:hover { color: var(--blue); background: #ffffff; }
.project-menu {
  position: absolute;
  right: 8px;
  top: 31px;
  z-index: 5;
  min-width: 72px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 33, 43, .13);
}
.project-menu button {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  color: var(--red);
  background: transparent;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.project-menu button:hover { background: var(--red-soft); }
.task-item { display: block; }
.task-item strong, .task-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-item strong { font-size: 12px; }
.task-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.current-section h2 { margin: 8px 0 5px; font-size: 15px; line-height: 1.35; }
.current-section p { margin-bottom: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sidebar-cancel { margin-top: 12px; }
.side-footer { padding: 17px 20px; color: var(--soft-muted); font-size: 11px; }
.author-info {
  padding: 3px 20px 22px;
  display: grid;
  gap: 6px;
  color: #5d6c79;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}
.author-info span {
  overflow-wrap: anywhere;
}
.author-info a {
  color: var(--blue);
  text-decoration: none;
}
.author-info a:hover {
  text-decoration: underline;
}
.version-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-update-button {
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 4px;
  color: #fff;
  background: #2f9bff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-decoration: none;
}
.download-update-button:hover {
  background: #147bd8;
  text-decoration: none;
}
.profile-button {
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #cbd7e4;
  border-radius: 5px;
  color: #405161;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}
.profile-button:hover {
  border-color: var(--blue-line);
  color: var(--blue);
  background: var(--blue-soft);
}
.profile-email {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #405161;
  background: #fff;
  overflow-wrap: anywhere;
}
.empty-state { color: var(--soft-muted); font-size: 12px; line-height: 1.5; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  color: var(--ink);
  border: 1px solid #ccd6df;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  font-size: 12px;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(23, 105, 210, .13); }
.button {
  min-height: 35px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.button:disabled { opacity: .45; cursor: default; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover:not(:disabled) { background: #0d55b5; }
.button-danger { color: var(--red); border-color: #e4bcbc; background: #fff; }
.button-ghost { color: #405161; border-color: #ccd6df; background: #fff; }
.button-ghost:hover { border-color: var(--blue-line); color: var(--blue); background: var(--blue-soft); }
.count-badge { min-width: 22px; padding: 3px 7px; border-radius: 99px; color: var(--blue); background: var(--blue-soft); font-size: 11px; text-align: center; }

.conversation { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #f5f7fa; }
.conversation-head {
  min-height: 77px;
  padding: 14px 27px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  column-gap: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.conversation-head h2 { margin-top: 4px; }
.conversation-title { justify-self: start; }
.conversation-brand {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 392px;
}
.conversation-brand .brand-block {
  gap: 10px;
}
.conversation-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.conversation-brand h1 {
  font-size: 18px;
  line-height: 1.05;
}
.legend { gap: 12px; color: var(--muted); font-size: 11px; }
.conversation-head .legend { justify-self: end; }
.legend span { display: flex; gap: 5px; align-items: center; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.dot-user { background: var(--blue); }.dot-codex { background: var(--purple); }.dot-claude { background: var(--green); }.dot-system { background: var(--system); }

.messages { min-height: 0; flex: 1; overflow: auto; padding: 25px max(28px, calc((100% - 980px) / 2)); }
.welcome-message { max-width: 480px; margin: 80px auto; text-align: center; }
.welcome-icon { margin: 0 auto 14px; width: 44px; height: 44px; }
.welcome-message h2 { margin-bottom: 8px; }
.welcome-message p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.message { display: flex; gap: 11px; margin-bottom: 18px; align-items: flex-start; }
.message.user { flex-direction: row-reverse; }
.avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 10px; font-weight: 800; }
.avatar-user { background: var(--blue); }.avatar-codex { background: var(--purple); }.avatar-claude { background: var(--green); }.avatar-system { background: var(--system); }
.message-stack { min-width: 0; max-width: min(760px, calc(100% - 48px)); }
.message.user .message-stack { text-align: right; }
.message-head { margin: 0 0 5px 2px; display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 11px; }
.message.user .message-head { justify-content: flex-end; }
.message-head strong { color: var(--ink); font-size: 12px; }
.message-bubble { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px 10px 10px 10px; color: #2b3946; background: #fff; box-shadow: 0 1px 2px rgba(24, 33, 43, .03); }
.message.user .message-bubble { border-color: var(--blue-line); border-radius: 10px 4px 10px 10px; color: #123b70; background: var(--blue-soft); text-align: left; }
.message.phase .message-bubble { border-color: #dfe3e7; color: #62717e; background: var(--system-soft); }
.message.action .message-bubble { border-color: #ddd8f8; color: #55488d; background: var(--purple-soft); }
.message.error .message-bubble { border-color: #f0caca; color: #9c3333; background: var(--red-soft); }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.65 Consolas, "Cascadia Code", "Microsoft YaHei", sans-serif; }
.message.user .message-body { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
.message-attachments { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.message-attachment { padding: 4px 7px; border: 1px solid var(--blue-line); border-radius: 4px; color: #40648d; background: rgba(255,255,255,.65); font-size: 10px; }

.composer-wrap { padding: 15px max(28px, calc((100% - 980px) / 2)) 20px; border-top: 1px solid var(--line); background: #fff; }
.composer-attachments {
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: stretch;
}
.composer-attachment-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #43515d;
  font-size: 12px;
  font-weight: 800;
}
.paste-target {
  min-height: 52px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #aec2dc;
  border-radius: 7px;
  color: var(--blue);
  background: #f7faff;
  cursor: text;
}
.paste-target:focus, .paste-target.drag-over { outline: 2px solid rgba(23, 105, 210, .16); border-color: var(--blue); background: #eef6ff; }
.paste-target strong { font-size: 12px; }
.paste-target small { color: var(--muted); font-size: 11px; }
.paste-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-line);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.paste-icon:hover { border-color: var(--blue); background: var(--blue-soft); }
.attachment-list { grid-column: 2; display: grid; gap: 6px; }
.attachment-item { min-height: 39px; padding: 5px 7px; display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; }
.attachment-item img { width: 34px; height: 27px; object-fit: cover; border: 1px solid #d9e1e8; border-radius: 3px; }
.attachment-item span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-icon {
  width: 34px;
  height: 27px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #d9e1e8;
  border-radius: 3px;
  color: #55708c;
  background: #f5f8fb;
  font-size: 9px;
  font-weight: 800;
}
.attachment-icon img { width: 100%; height: 100%; }
.icon-button { width: 22px; height: 22px; flex: none; border: 1px solid #d4dee7; border-radius: 4px; color: #657584; background: #fff; cursor: pointer; }
.icon-button:hover { color: var(--red); border-color: #e4bcbc; }

.composer { padding: 10px 12px 8px; border: 1px solid #cdd8e2; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(24, 33, 43, .05); }
.composer textarea { min-height: 54px; margin: 0; padding: 4px 3px; resize: none; border: 0; box-shadow: none; font-size: 13px; line-height: 1.55; }
.composer textarea:focus { box-shadow: none; }
.composer-controls { gap: 8px; align-items: end; }
.control-field { display: grid; gap: 4px; min-width: 0; }
.control-field span, .composer-readonly span { color: #566675; font-size: 10px; font-weight: 800; }
.control-rounds { width: 78px; }
.control-cli { width: 108px; }
.control-agent { width: 128px; }
.control-strength { width: 82px; }
.control-cli-worker span, .control-worker span { color: var(--blue); }
.control-cli-reviewer span, .control-reviewer span { color: var(--green); }
.control-cli-worker select, .control-worker select { border-color: var(--blue-line); background: #f7faff; }
.control-cli-reviewer select, .control-reviewer select { border-color: #bfe3d0; background: #f7fcf9; }
.composer-readonly { position: relative; width: 70px; display: flex; gap: 5px; align-items: center; padding-bottom: 8px; }
.composer-readonly input { width: 14px; height: 14px; accent-color: var(--blue); }
.help-tip {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid #c5d2df;
  border-radius: 50%;
  color: #607080;
  background: #fff;
  font-size: 10px;
  line-height: 1;
  cursor: help;
}
.help-tip::after {
  content: attr(aria-label);
  position: absolute;
  right: 0;
  bottom: 31px;
  z-index: 20;
  width: 232px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #334251;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 33, 43, .13);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease;
}
.help-tip:hover::after,
.composer-readonly:hover .help-tip::after {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 20, 28, .34);
}
.modal-backdrop[hidden] { display: none; }
.modal-panel {
  width: min(520px, calc(100vw - 48px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(24, 33, 43, .24);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-head h2 { font-size: 18px; }
.modal-kicker {
  color: #1f2933;
  font-size: 14px;
}
.modal-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #6d7b88;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #edf1f4; color: var(--ink); }
.modal-field, .source-block { display: grid; gap: 8px; }
.modal-field span, .source-title {
  color: #405161;
  font-size: 12px;
  font-weight: 800;
}
.source-block { margin-top: 18px; }
.folder-picker {
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px dashed #aec2dc;
  border-radius: 7px;
  color: #405161;
  background: #f9fbfd;
  font-size: 13px;
  cursor: pointer;
}
.folder-picker:hover { border-color: var(--blue); color: var(--blue); background: #f7faff; }
.folder-plus {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--blue-line);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  font-size: 18px;
}
.modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.login-panel {
  width: min(454px, calc(100vw - 48px));
  padding: 30px 22px 28px;
  border-radius: 0;
}
.login-panel .modal-head {
  margin-bottom: 38px;
}
.login-panel h2 {
  margin-bottom: 24px;
  font-size: 23px;
}
.login-panel .modal-field {
  margin-bottom: 16px;
}
.login-panel .modal-field span {
  font-size: 14px;
}
.login-panel input {
  height: 46px;
  padding: 0 13px;
  border-radius: 0;
  font-size: 14px;
}
.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 101px;
  gap: 10px;
}
.login-code-row .button {
  height: 46px;
  border-radius: 0;
  color: #111827;
  background: #f8fafc;
}
.login-submit {
  width: 100%;
  height: 46px;
  margin-top: -4px;
  border-radius: 0;
  font-size: 14px;
}
.login-status {
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.login-status.error {
  color: var(--red);
}
.login-status.success {
  color: var(--green);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-modal.is-open {
  display: flex;
}
.contact-modal[hidden] {
  display: none;
}
.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 22, 0.58);
  backdrop-filter: blur(10px);
}
.contact-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.contact-kicker {
  margin: 0 0 6px;
  color: #2997ff;
  font-size: 13px;
  font-weight: 900;
}
.contact-card h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}
.contact-qr-wrap {
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.contact-qr {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}
.contact-phone {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(41, 151, 255, 0.18);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(41, 151, 255, 0.06);
  font-size: 13px;
}
.contact-phone strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

@media (max-width: 1240px) {
  body { min-width: 980px; }
  .app-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .legend { display: none; }
  .control-agent { width: 112px; }
  .control-strength { width: 74px; }
}
