.or-status-banner {
  display: flex;
  min-width: 0;
  align-items: center;
  min-height: 54px;
  margin: 0 0 22px;
  padding: 13px 17px;
  border: 1px solid rgba(129, 154, 184, .18);
  border-radius: 13px;
  color: var(--text, #e8edf5);
  background: linear-gradient(105deg, rgba(37, 52, 72, .55), rgba(19, 27, 38, .82));
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.or-page-heading { align-items: flex-start; }
.or-page-heading > div, .or-target-heading > div, .or-detail-card > .or-section-heading > div { min-width: 0; }
.or-page-heading h1 { font-size: clamp(25px, 3vw, 30px); }
.or-page-heading .muted { max-width: 600px; }
.or-target-card { width: 100%; min-width: 0; margin: 0 0 18px; padding: 20px; border-color: rgba(105, 163, 238, .38); border-radius: 13px; background: linear-gradient(115deg, rgba(31, 54, 82, .62), rgba(13, 20, 29, .9)); box-shadow: inset 3px 0 #83b3f3, 0 12px 30px rgba(0, 0, 0, .12); }
.or-target-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.or-target-heading h2 { margin: 3px 0 0; font-size: clamp(17px, 2vw, 20px); }
.or-target-heading .muted { max-width: 760px; margin: 6px 0 0; font-size: 12px; line-height: 1.55; }
.or-target-card .or-coordinate-row { width: min(100%, 560px); max-width: none; margin-top: 16px; }
.or-target-card .or-coordinate-row label { font-size: 12px; }
.or-target-card .or-coordinate-row input { min-height: 43px; font-size: 15px; }
.or-army-details { margin-top: 13px; color: #cbd7e6; font-size: 12px; }
.or-army-details summary { width: max-content; cursor: pointer; color: #a9c8f0; font-weight: 650; }
.or-army-details[open] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.or-army-details[open] summary { grid-column: 1 / -1; margin-bottom: 4px; }
.or-target-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(140, 158, 181, .13); }
.or-target-actions .muted { margin: 0; font-size: 11px; }
.or-target-actions .button { min-width: 220px; justify-content: center; }
.or-workspace { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.75fr); gap: 16px; align-items: start; }
.or-roster-card, .or-detail-card { min-width: 0; padding: 21px; }
.or-roster-card { position: sticky; top: 18px; }
.or-section-heading, .or-module-head, .or-account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.or-section-heading { margin-bottom: 17px; }
.or-section-heading h2, .or-module-head h3 { margin: 3px 0 0; }
.or-section-heading h2 { font-size: 18px; }
.or-module-head h3 { font-size: 16px; }
.or-account-list { display: grid; gap: 9px; max-height: min(68vh, 760px); overflow: auto; padding-right: 3px; }
.or-account-card { padding: 13px; border: 1px solid rgba(140, 158, 181, .14); border-radius: 12px; background: rgba(9, 14, 21, .36); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.or-account-card:hover { transform: translateY(-1px); border-color: rgba(122, 169, 230, .36); }
.or-account-card.selected { border-color: rgba(120, 174, 246, .66); background: linear-gradient(120deg, rgba(46, 77, 115, .28), rgba(14, 21, 31, .55)); box-shadow: inset 3px 0 #83b3f3; }
.or-account-head { align-items: center; }
.or-account-head strong { overflow-wrap: anywhere; font-size: 14px; }
.or-account-card .bot-status { flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-account-card > p { margin: 7px 0 12px; font-size: 12px; }
.or-account-actions, .or-actions, .or-stop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.or-account-actions .small-button { min-height: 34px; }
.or-detail-card > .or-section-heading { align-items: flex-start; padding-bottom: 17px; border-bottom: 1px solid rgba(140, 158, 181, .13); }
.or-detail-card > .or-section-heading .muted { margin: 6px 0 0; font-size: 12px; }
.or-actions { margin: 16px 0; }
.or-log-card { margin: 0 0 15px; padding: 13px 14px; border: 1px solid rgba(140, 158, 181, .14); border-radius: 12px; background: rgba(7, 12, 18, .34); }
.or-log-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.or-log-heading h3 { margin: 2px 0 0; font-size: 14px; }
.or-log-list { display: grid; gap: 6px; max-height: 270px; overflow: auto; padding: 1px 4px 1px 0; scrollbar-color: rgba(125, 151, 183, .4) transparent; }
.or-log-row { padding: 8px 10px; border-left: 2px solid rgba(128, 151, 181, .38); border-radius: 0 7px 7px 0; background: rgba(24, 33, 46, .58); }
.or-log-row.warning { border-left-color: #d4a34d; background: rgba(92, 66, 24, .18); }
.or-log-row.error { border-left-color: #e16f78; background: rgba(105, 37, 43, .2); }
.or-log-row.success { border-left-color: #59c992; background: rgba(25, 97, 67, .18); }
.or-log-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: #aebdd0; font-size: 10px; }
.or-log-meta strong { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.or-log-meta time { flex: 0 0 auto; color: #8190a4; font-variant-numeric: tabular-nums; }
.or-log-row p { margin: 4px 0 0; color: #d1dae6; font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.or-log-empty { margin: 0; padding: 12px 3px; color: #8d9bae; font-size: 12px; }
.or-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.or-module-card { min-width: 0; padding: 16px; border: 1px solid rgba(140, 158, 181, .14); border-radius: 13px; background: linear-gradient(150deg, rgba(25, 34, 47, .85), rgba(13, 19, 27, .84)); animation: or-card-in .32s ease both; }
.or-module-card:nth-child(2) { animation-delay: 35ms; }
.or-module-card:nth-child(3) { animation-delay: 70ms; }
.or-module-card:nth-child(4) { animation-delay: 105ms; }
.or-module-card:nth-child(5) { animation-delay: 140ms; }
.or-module-card .muted { min-height: 37px; margin: 11px 0 14px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.or-module-card > .button { width: 100%; justify-content: center; }
.or-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 3px 9px; border: 1px solid rgba(137, 154, 178, .2); border-radius: 999px; color: #b8c6d9; background: rgba(7, 12, 18, .45); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.or-pill[data-state="active"], .or-pill[data-state="connected"], .or-pill[data-state="watching"] { border-color: rgba(77, 190, 139, .35); color: #91e0b7; background: rgba(29, 104, 72, .16); }
.or-pill[data-state="error"] { border-color: rgba(224, 100, 100, .35); color: #ffaaaa; background: rgba(132, 40, 40, .18); }
.or-inventory-list { display: grid; gap: 2px; max-height: 220px; overflow: auto; margin-top: 11px; }
.or-inventory-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 2px; border-bottom: 1px solid rgba(140, 158, 181, .1); font-size: 12px; }
.or-inventory-row span { overflow: hidden; color: #c4cedd; text-overflow: ellipsis; white-space: nowrap; }
.or-inventory-row strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.or-assignment-label { display: grid; gap: 7px; margin-top: 13px; color: #dce4ee; font-size: 12px; font-weight: 650; }
.or-coordinate-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.or-coordinate-row label { display: grid; gap: 6px; color: #dce4ee; font-size: 11px; font-weight: 650; }
.or-coordinate-row input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid rgba(140, 158, 181, .2); border-radius: 8px; outline: none; color: #e6edf7; background: rgba(5, 9, 14, .65); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.or-coordinate-row input:focus { border-color: rgba(125, 177, 241, .7); box-shadow: 0 0 0 3px rgba(82, 137, 207, .12); }
.or-assignment-label small { color: #8795a8; font-size: 10px; font-weight: 400; }
.or-assignment-label textarea { width: 100%; resize: vertical; padding: 9px 10px; border: 1px solid rgba(140, 158, 181, .2); border-radius: 8px; outline: none; color: #e6edf7; background: rgba(5, 9, 14, .65); font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.or-assignment-label textarea:focus { border-color: rgba(125, 177, 241, .7); box-shadow: 0 0 0 3px rgba(82, 137, 207, .12); }
.or-stop-actions { justify-content: flex-end; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(140, 158, 181, .13); }
.or-empty { display: grid; justify-items: start; gap: 6px; padding: 18px 7px; }
.or-empty h3, .or-empty p { margin: 0; }
.or-empty h3 { font-size: 15px; }
.or-empty p { color: #96a4b6; font-size: 12px; line-height: 1.5; }
@keyframes or-card-in { from { opacity: .6; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) {
  .or-workspace { grid-template-columns: minmax(220px, .72fr) minmax(0, 1.4fr); gap: 12px; }
  .or-roster-card, .or-detail-card { padding: 16px; }
  .or-module-grid { gap: 9px; }
  .or-module-card { padding: 13px; }
}
@media (max-width: 760px) {
  .or-target-card { padding: 16px; }
  .or-target-heading { gap: 10px; }
  .or-target-actions { align-items: stretch; flex-direction: column; }
  .or-target-actions .button { width: 100%; min-width: 0; }
  .or-army-details[open] { grid-template-columns: minmax(0, 1fr); }
  .or-army-details[open] summary { grid-column: 1; }
  .or-workspace { grid-template-columns: minmax(0, 1fr); }
  .or-roster-card { position: static; }
  .or-account-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 330px; }
  .or-module-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .or-target-card { padding: 13px; }
  .or-target-heading h2 { font-size: 17px; }
  .or-roster-card, .or-detail-card { padding: 13px; }
  .or-account-list { grid-template-columns: minmax(0, 1fr); max-height: 280px; }
  .or-account-card { padding: 11px; }
  .or-module-card { padding: 13px; }
  .or-account-actions > button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .or-account-card, .or-module-card { animation: none; transition: none; }
}

/* Dedicated, registered-user OR control center route. */
.or-portal-home { display: none; color: #c7d1e3; text-decoration: none; font-size: 13.5px; font-weight: 650; }
.or-portal-home:hover { color: #fff; }
body.or-control-only .app-nav { display: none !important; }
body.or-control-only .app-layout { display: block; grid-template-columns: minmax(0, 1fr); gap: 0; }
body.or-control-only .app-content { padding-top: 24px; }
body.or-control-only .app-content > .page:not(#orAutomationPage) { display: none !important; }
body.or-control-only #orAutomationPage { display: block !important; width: 100%; max-width: none; }
body.or-control-only .workspace-label { color: #c7d1e3; }
body.or-control-only .or-portal-home { display: inline-flex; align-items: center; gap: 5px; }
body.or-control-only .or-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.or-control-only #orAutomationPage .page-heading { align-items: flex-start; }
@media (max-width: 760px) {
  body.or-control-only .app-content { padding-top: 18px; }
  body.or-control-only .or-module-grid { grid-template-columns: minmax(0, 1fr); }
}
