:root {
  color-scheme: light;
  font-family: Arial, "Segoe UI", sans-serif;
  --navy: #0a47a8;
  --navy-2: #083d92;
  --blue: #075eea;
  --blue-soft: #eaf3ff;
  --green: #16a05d;
  --green-soft: #eaf8f1;
  --orange: #e98b09;
  --red: #d93434;
  --ink: #17202c;
  --muted: #687789;
  --line: #d9e1ea;
  --surface: #ffffff;
  --canvas: #f7f9fc;
  --shadow: 0 6px 18px rgba(18, 63, 127, 0.07);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  direction: rtl;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.58; }
.hidden { display: none !important; }
.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;
}

.topbar {
  height: 68px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 23, 50, 0.2);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid #9bc7ff;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  background: var(--blue);
}
.brand-title { font-size: 22px; font-weight: 700; }
.brand-subtitle { font-size: 12px; color: #bdd4ec; margin-top: 2px; }
.top-status { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--green); }
.status-dot.orange { background: var(--orange); }
.status-dot.red { background: var(--red); }
.status-dot.blue { background: var(--blue); }

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  border-radius: 7px;
  padding: 9px 16px;
  font-weight: 700;
  transition: 140ms ease;
}
.btn:hover { border-color: #9db6d0; background: #f8fbff; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #055bc9; border-color: #055bc9; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-danger { color: var(--red); border-color: #efb2b2; }
.btn-quiet { background: transparent; color: inherit; border-color: transparent; }
.btn-small { min-height: 34px; padding: 5px 11px; font-size: 13px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: #4d5d70; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #cbd6e2;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 104, 232, 0.12);
}
.field textarea { min-height: 88px; resize: vertical; }
.error-box {
  border: 1px solid #f0b4b4;
  background: #fff2f2;
  color: #a51f1f;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
}
.empty-state { color: var(--muted); text-align: center; padding: 34px 18px; }

/* Client */
.client-shell { min-height: 100vh; display: flex; flex-direction: column; }
.client-main { width: min(1180px, calc(100% - 32px)); margin: 26px auto; flex: 1; }
.choice-view {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.choice-connection {
  margin: 16px;
  padding: 15px 20px;
  min-height: 78px;
  border: 1px solid #a9ddbd;
  border-radius: 8px;
  background: var(--green-soft);
  color: #147443;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.choice-connection strong { display: block; font-size: 22px; margin-bottom: 5px; }
.choice-connection span { font-size: 14px; }
.choice-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.choice-heading { text-align: center; padding: 6px 20px 18px; }
.choice-heading h1 { margin: 0 0 7px; font-size: 30px; color: #082b5c; }
.choice-heading p { margin: 0; color: var(--muted); }
.offline-help-entry {
  width: calc(100% - 48px);
  min-height: 74px;
  margin: 0 24px 14px;
  padding: 12px 18px;
  border: 1px solid #83b5f3;
  border-radius: 8px;
  background: #edf6ff;
  color: #103b75;
  display: grid;
  grid-template-columns: 54px 1fr 24px;
  align-items: center;
  gap: 15px;
  text-align: right;
}
.offline-help-entry:hover { border-color: var(--blue); background: #e5f1ff; }
.offline-help-entry strong { display: block; font-size: 19px; color: #0755bd; }
.offline-help-entry small { display: block; margin-top: 4px; color: #526b89; font-size: 13px; }
.offline-entry-icon {
  direction: ltr;
  width: 50px;
  height: 46px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.offline-entry-arrow { color: var(--blue); font-size: 30px; font-weight: 700; }
.support-tool-grid {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.support-tool {
  min-height: 94px;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  background: #fff;
  color: #15274a;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}
.support-tool:hover { border-color: var(--blue); background: #f6faff; }
.tool-symbol {
  direction: ltr;
  min-width: 48px;
  height: 42px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.support-tool small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.support-tool-locked { background: #f4f5f7; color: #697586; }
.choice-footer {
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
}
.choice-footer span { color: var(--muted); text-align: left; font-size: 13px; }
.client-welcome {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.welcome-copy { padding: 42px; background: var(--navy); color: #fff; }
.welcome-copy h1 { margin: 0 0 14px; font-size: 34px; letter-spacing: 0; }
.welcome-copy p { margin: 0; color: #d4e4f4; line-height: 1.7; font-size: 17px; max-width: 580px; }
.welcome-points { display: grid; gap: 16px; margin-top: 30px; }
.welcome-point { display: flex; gap: 12px; align-items: flex-start; }
.point-number {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  font-weight: 700;
}
.welcome-form { padding: 34px; display: grid; gap: 17px; align-content: center; }
.welcome-form h2 { margin: 0 0 4px; font-size: 22px; }
.client-grid { display: grid; grid-template-columns: 0.95fr 1.5fr; gap: 16px; min-height: calc(100vh - 120px); }
.client-side, .client-chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.client-side { display: flex; flex-direction: column; }
.client-session-head { padding: 22px; border-bottom: 1px solid var(--line); }
.client-session-head h1 { margin: 0 0 8px; font-size: 22px; }
.client-session-head p { margin: 0; color: var(--muted); }
.connection-banner {
  margin: 16px;
  border: 1px solid #bce3ce;
  background: var(--green-soft);
  padding: 13px;
  border-radius: 7px;
  color: #116a40;
  font-weight: 700;
}
.action-area { padding: 0 16px 16px; display: grid; gap: 12px; }
.action-area h2 { font-size: 17px; margin: 2px 0 0; }
.client-action {
  border: 1px solid #b9d3f6;
  background: #f4f9ff;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 9px;
}
.client-action h3 { margin: 0; font-size: 17px; }
.client-action p { margin: 0; color: #52657b; line-height: 1.45; font-size: 14px; }
.client-action.done { border-color: #a9d9bf; background: var(--green-soft); }
.client-action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.client-chat { display: flex; flex-direction: column; min-height: 650px; }
.panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 18px; }
.messages { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.message { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.message.mine { align-self: flex-start; }
.message.theirs { align-self: flex-end; align-items: flex-end; }
.message.system { align-self: center; align-items: center; max-width: 92%; }
.message-name { font-size: 12px; color: var(--blue); margin: 0 6px 4px; font-weight: 700; }
.message-bubble { background: #edf3f9; border: 1px solid #d7e2ed; border-radius: 8px; padding: 10px 12px; line-height: 1.45; }
.message.mine .message-bubble { background: var(--blue-soft); border-color: #c7dcf8; }
.message.system .message-bubble { color: #526173; background: #f4f5f7; font-size: 13px; text-align: center; }
.message-time { font-size: 11px; color: #8792a0; margin: 4px 7px 0; }
.message-bubble.token-bubble {
  min-width: 310px;
  border-color: #8fbef7;
  background: #f1f7ff;
  display: grid;
  gap: 10px;
}
.token-code-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.token-code { direction: ltr; font-size: 25px; font-weight: 700; letter-spacing: 4px; user-select: all; color: #075fcf; }
.token-copy { color: var(--blue); border-color: #9fc5f3; }
.token-note { color: var(--muted); }
.chat-compose { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; }
.chat-compose input { flex: 1; min-width: 0; border: 1px solid #cbd6e2; border-radius: 7px; padding: 11px; outline: none; }
.chat-compose input:focus { border-color: var(--blue); }

/* Offline Ethernet guide */
body.modal-open { overflow: hidden; }
.offline-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.offline-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 27, 55, 0.64); }
.offline-guide-card {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #b8cbe2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(5, 31, 68, 0.28);
}
.offline-guide-head {
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #d7e1ed;
}
.offline-guide-head h2 { margin: 0 0 5px; color: #0a4fae; font-size: 25px; }
.offline-guide-head p { margin: 0; color: #5d6d81; }
.offline-guide-head button { width: 38px; height: 38px; border: 1px solid #cbd6e2; border-radius: 6px; background: #fff; color: #4d5d70; font-size: 24px; }
.offline-guide-body { padding: 20px 22px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center; }
.offline-guide-body img { width: 100%; border: 1px solid #d4dfeb; border-radius: 7px; display: block; }
.offline-guide-copy h3 { margin: 0 0 10px; color: #143762; font-size: 19px; }
.offline-guide-copy ul { margin: 0 0 16px; padding-right: 20px; color: #435873; line-height: 1.65; }
.offline-guide-steps { display: grid; gap: 8px; }
.offline-guide-steps div { min-height: 43px; display: flex; align-items: center; gap: 10px; border: 1px solid #d7e2ef; border-radius: 6px; padding: 7px 9px; background: #f9fbfe; }
.offline-guide-steps b { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.offline-guide-actions { padding: 14px 22px; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid #d7e1ed; background: #fbfcfe; }
.offline-guide-actions .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.offline-guide-status { padding: 0 22px 16px; color: #627287; background: #fbfcfe; font-size: 13px; }
.offline-guide-status.success { color: #147443; font-weight: 700; }
.offline-guide-status.failure { color: #b33b32; font-weight: 700; }

/* Remote support approval screen */
.remote-view {
  background: #fff;
  border: 1px solid #cfd9e6;
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  overflow: hidden;
  color: #132b56;
}
.remote-meta-row {
  min-height: 58px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #d9e2ee;
}
.remote-ticket { direction: rtl; color: #314566; }
.remote-ticket strong { color: #102d61; font-size: 18px; }
.remote-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.remote-badge {
  min-height: 34px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #bfe1cb;
  border-radius: 6px;
  background: #effaf3;
  color: #257446;
  font-size: 13px;
}
.remote-badge-icon { direction: ltr; font-size: 10px; font-weight: 700; color: #118246; }
.remote-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #cfd9e6;
  background: #fff;
}
.remote-tabs button {
  min-height: 48px;
  border: 0;
  border-left: 1px solid #d8e0eb;
  background: #fff;
  color: #52637d;
  font-weight: 700;
}
.remote-tabs button:last-child { border-left: 0; }
.remote-tabs button:hover { background: #f7faff; color: var(--blue); }
.remote-tabs button.active {
  color: var(--blue);
  box-shadow: inset 0 3px var(--blue);
  background: #fbfdff;
}
.remote-workspace {
  min-height: 500px;
  padding: 12px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px;
  direction: ltr;
  background: #fbfcfe;
}
.remote-chat-panel,
.remote-content {
  direction: rtl;
  border: 1px solid #d4deea;
  border-radius: 7px;
  background: #fff;
}
.remote-chat-panel { min-height: 470px; display: flex; flex-direction: column; overflow: hidden; }
.remote-chat-head { padding: 14px 15px; border-bottom: 1px solid #dbe3ed; }
.remote-chat-head strong { display: block; font-size: 17px; margin-bottom: 7px; }
.remote-chat-head span { color: #278151; font-size: 12px; }
.remote-chat-head i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.remote-messages { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.remote-messages .message { max-width: 92%; }
.remote-messages .message-bubble { font-size: 13px; }
.remote-messages .message-bubble.token-bubble { min-width: 0; width: 100%; }
.remote-messages .token-code-row { align-items: stretch; flex-direction: column; }
.remote-chat-compose { padding: 10px; display: flex; gap: 7px; border-top: 1px solid #dbe3ed; }
.remote-chat-compose input { min-width: 0; flex: 1; border: 1px solid #cbd6e2; border-radius: 6px; padding: 10px; outline: 0; }
.remote-chat-compose input:focus { border-color: var(--blue); }
.remote-chat-compose button { border: 0; border-radius: 6px; padding: 0 12px; background: var(--blue); color: #fff; font-weight: 700; }
.remote-content { padding: 22px 48px; text-align: center; }
.remote-content h1 { margin: 0 0 18px; font-size: 28px; color: #102d61; }
.technician-card {
  width: min(650px, 100%);
  min-height: 94px;
  margin: 0 auto 20px;
  border: 1px solid #cdd9e8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #fff;
}
.technician-avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f2ff;
  border: 4px solid #d5e6ff;
  color: #0a4dac;
  font-size: 21px;
  font-weight: 700;
}
.technician-card strong { display: block; font-size: 20px; margin-bottom: 8px; }
.technician-card span { display: inline-block; padding: 5px 10px; border-radius: 5px; background: #eaf8f0; color: #25814e; font-size: 13px; }
.remote-explanation { margin: 0 0 18px; color: #425674; font-size: 17px; }
.remote-permissions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.remote-permissions > div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid #d1dceb;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
}
.permission-icon { direction: ltr; color: var(--blue); font-size: 11px; font-weight: 700; }
.remote-permissions i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #0c61d2; color: #fff; font-style: normal; }
.remote-actions { width: min(700px, 100%); margin: 18px auto 12px; display: grid; grid-template-columns: 1fr 190px; gap: 12px; }
.remote-confirm { min-height: 52px; font-size: 18px; }
.remote-back { min-height: 52px; color: #45566f; }
.remote-security {
  width: min(700px, 100%);
  min-height: 62px;
  margin: 0 auto;
  border: 1px solid #a8c9f4;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f3f8ff;
  color: #2863aa;
  font-size: 13px;
}
.remote-security > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #1262c8; color: #fff; font-size: 24px; font-weight: 700; }
.remote-footer {
  min-height: 60px;
  padding: 10px 18px;
  border-top: 1px solid #d5deea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #52627a;
  font-size: 13px;
}

/* Agent */
.agent-body { height: 100vh; overflow: hidden; }
.agent-shell { height: 100vh; display: flex; flex-direction: column; }
.agent-main {
  flex: 1;
  min-height: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 300px minmax(540px, 1fr) 320px;
  gap: 10px;
  direction: ltr;
}
.agent-panel {
  direction: rtl;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 0;
  overflow: hidden;
}
.action-panel { display: flex; flex-direction: column; }
.quick-actions { padding: 10px; display: grid; gap: 8px; overflow: auto; }
.quick-action {
  min-height: 54px;
  text-align: right;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd7e3;
  background: #fff;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ink);
}
.quick-action:hover { border-color: var(--blue); background: #f6faff; }
.quick-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.remote-buttons { margin-top: auto; padding: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.remote-main { min-height: 58px; font-size: 17px; }
.remote-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.session-panel { display: flex; flex-direction: column; }
.session-summary {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.customer-title h1 { margin: 0 0 5px; font-size: 24px; }
.customer-title p { margin: 0; color: var(--muted); font-size: 13px; }
.summary-stat { text-align: center; min-width: 100px; }
.summary-stat span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.summary-stat strong { font-size: 19px; }
.live-chat { flex: 1; min-height: 300px; display: flex; flex-direction: column; }
.agent-lower { min-height: 228px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 0.9fr; }
.device-card, .timeline-card { min-width: 0; overflow: auto; }
.device-card { border-left: 1px solid var(--line); }
.device-grid { padding: 9px 15px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.device-row { padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.device-row span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.device-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 7px 16px 15px; }
.timeline li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: start; padding: 6px 0; font-size: 12px; }
.timeline-mark { width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 10px; }
.timeline-time { color: var(--muted); direction: ltr; }
.queue-panel { display: flex; flex-direction: column; }
.queue-list { overflow: auto; flex: 1; }
.queue-item { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 15px; text-align: right; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.queue-item:hover { background: #f8fbff; }
.queue-item.active { background: var(--blue-soft); box-shadow: inset -3px 0 var(--blue); }
.queue-name { font-weight: 700; font-size: 16px; }
.queue-issue { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-time { color: #526173; font-size: 12px; direction: ltr; }
.queue-footer { padding: 10px; border-top: 1px solid var(--line); }
.agent-footer { height: 44px; background: var(--navy); color: #d8e6f4; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; font-size: 12px; }
.login-layer { position: fixed; inset: 0; z-index: 20; background: var(--navy); display: grid; place-items: center; padding: 20px; }
.login-card { width: min(390px, 100%); background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3); display: grid; gap: 17px; }
.login-card h1 { margin: 0; font-size: 23px; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.notes-area { border-top: 1px solid var(--line); padding: 10px 12px; }
.notes-area textarea { width: 100%; min-height: 62px; resize: vertical; border: 1px solid #cbd6e2; border-radius: 7px; padding: 9px; }

.toast { position: fixed; left: 20px; bottom: 58px; z-index: 30; background: #172d45; color: #fff; padding: 11px 16px; border-radius: 7px; box-shadow: var(--shadow); max-width: 360px; }

/* FixIT Remote visual system */
.topbar {
  height: 62px;
  background: var(--navy);
  border-bottom: 1px solid #073b8a;
  box-shadow: 0 2px 7px rgba(5, 50, 115, 0.16);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-color: #bcd4ff;
  background: #0b62dc;
  font-size: 16px;
}
.brand-title { font-size: 20px; }
.brand-subtitle { color: #dbe9ff; }
.client-main { width: min(1300px, calc(100% - 34px)); margin-top: 20px; }
.client-welcome,
.choice-view,
.client-side,
.client-chat {
  box-shadow: none;
  border-color: #d5ddeb;
}
.client-welcome { background: #fff; }
.welcome-copy {
  background: #fff;
  color: #102d61;
  border-left: 1px solid var(--line);
}
.welcome-copy h1 { color: #0b4fc3; font-size: 31px; }
.welcome-copy p { color: #445671; }
.welcome-point { color: #263b5d; }
.point-number { background: #0b5ed7; }
.welcome-form h2,
.panel-head h2,
.panel-head h3,
.action-area h2 { color: #102d61; }
.choice-view { border-top: 3px solid var(--blue); }
.choice-connection { background: #f0fbf4; }
.choice-heading h1 { font-size: 32px; }
.support-tool { box-shadow: 0 1px 2px rgba(25, 66, 124, 0.03); }
.support-tool:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.choice-footer { background: #fbfcfe; }
.client-session-head { border-top: 3px solid var(--blue); }
.connection-banner { margin-top: 12px; }
.panel-head { min-height: 54px; background: #fbfcff; }
.messages { background: #fff; }
.message-bubble { border-radius: 6px; }
.chat-compose { background: #fbfcff; }
.btn { border-radius: 6px; }
.btn-primary { background: #075eea; }
.btn-primary:hover { background: #064fc4; }

@media (max-width: 1100px) {
  .agent-body { height: auto; overflow: auto; }
  .agent-shell { height: auto; min-height: 100vh; }
  .agent-main { grid-template-columns: 250px 1fr; grid-template-areas: "actions session" "queue queue"; }
  .action-panel { grid-area: actions; }
  .session-panel { grid-area: session; min-height: 760px; }
  .queue-panel { grid-area: queue; min-height: 320px; }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 64px; padding: 10px 14px; }
  .brand-title { font-size: 18px; }
  .top-status .desktop-only { display: none; }
  .client-welcome { grid-template-columns: 1fr; }
  .choice-connection { margin: 10px; padding: 12px; }
  .choice-connection strong { font-size: 18px; }
  .choice-heading h1 { font-size: 24px; }
  .offline-help-entry { width: calc(100% - 24px); margin: 0 12px 12px; grid-template-columns: 46px 1fr 18px; }
  .support-tool-grid { grid-template-columns: 1fr; padding: 0 12px 14px; }
  .support-tool { min-height: 70px; justify-content: flex-start; }
  .choice-footer { grid-template-columns: 1fr; padding: 12px; }
  .choice-footer span { text-align: center; }
  .welcome-copy { padding: 28px 24px; }
  .welcome-copy h1 { font-size: 28px; }
  .welcome-form { padding: 24px; }
  .client-grid { grid-template-columns: 1fr; }
  .client-chat { min-height: 600px; }
  .remote-meta-row { align-items: flex-start; flex-direction: column; }
  .remote-tabs { grid-template-columns: 1fr 1fr; }
  .remote-workspace { grid-template-columns: 1fr; }
  .remote-chat-panel { min-height: 320px; }
  .remote-content { padding: 20px 14px; }
  .technician-card { align-items: center; flex-direction: column; padding: 15px; }
  .remote-permissions { grid-template-columns: 1fr; }
  .remote-actions { grid-template-columns: 1fr; }
  .remote-footer { align-items: stretch; flex-direction: column; gap: 10px; text-align: center; }
  .offline-modal { padding: 8px; }
  .offline-guide-card { max-height: calc(100vh - 16px); }
  .offline-guide-head { padding: 14px; }
  .offline-guide-head h2 { font-size: 21px; }
  .offline-guide-body { padding: 14px; grid-template-columns: 1fr; }
  .offline-guide-actions { padding: 12px 14px; flex-direction: column; }
  .agent-main { display: flex; flex-direction: column; padding: 7px; }
  .action-panel, .session-panel, .queue-panel { min-height: auto; }
  .session-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .customer-title { grid-column: 1 / -1; }
  .agent-lower { grid-template-columns: 1fr; }
  .device-card { border-left: 0; border-bottom: 1px solid var(--line); }
  .device-grid { grid-template-columns: 1fr; }
  .agent-footer { flex-wrap: wrap; height: auto; min-height: 44px; gap: 8px; padding: 8px 14px; }
}
