:root {
  --ink: #092b46;
  --ink-soft: #607287;
  --blue: #1478f2;
  --blue-dark: #0e65d2;
  --blue-soft: #eaf4ff;
  --teal: #08bda6;
  --teal-soft: #e5faf6;
  --orange: #ff6f3b;
  --orange-soft: #fff0e8;
  --red: #f04444;
  --red-soft: #fff0f1;
  --surface: #ffffff;
  --surface-soft: #f6f9fd;
  --border: #e3ebf5;
  --shadow: 0 12px 30px rgba(24, 73, 116, 0.08);
  --radius: 16px;
  --sidebar-width: 236px;
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.panorama-product-catalog {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #d6e4f2;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #f4fffd 100%);
}

.panorama-product-catalog > header h3,
.panorama-product-platform h4 {
  margin: 0;
  color: #0f3556;
}

.panorama-product-catalog > header p,
.panorama-product-platform header p {
  margin: 5px 0 0;
  color: #678097;
  font-size: 13px;
  line-height: 1.6;
}

.panorama-product-platform {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d8e7f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 72, 112, 0.06);
}

.panorama-product-platform > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panorama-product-platform-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.panorama-product-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #687b8f;
  font-size: 12px;
  font-weight: 700;
}

.panorama-product-state.ok {
  background: #e5faf1;
  color: #07835c;
}

.panorama-product-state.configuration_required {
  background: #fff3dc;
  color: #a46000;
}

.panorama-product-state.storage_error {
  background: #fff0f1;
  color: #c53342;
}

.panorama-match-status {
  display: inline-flex;
  min-width: max-content;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.panorama-match-status.matched {
  border-color: #a9e2ce;
  background: #e5faf1;
  color: #087653;
}

.panorama-match-status.candidate {
  border-color: #f2cf8f;
  background: #fff4df;
  color: #925800;
}

.panorama-match-status.conflict {
  border-color: #f0b6bd;
  background: #fff0f1;
  color: #b52c3a;
}

.panorama-match-status.unmatched {
  border-color: #d8e1e9;
  background: #f1f5f8;
  color: #5e7285;
}

.panorama-product-summary,
.panorama-product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.panorama-product-summary > span,
.panorama-product-facts > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8fc;
}

.panorama-product-summary small,
.panorama-product-facts small {
  color: #7890a5;
  font-size: 11px;
}

.panorama-product-summary strong,
.panorama-product-facts strong {
  overflow-wrap: anywhere;
  color: #173c5e;
  font-size: 15px;
}

.panorama-product-list {
  display: grid;
  gap: 8px;
}

.panorama-product-card {
  overflow: hidden;
  border: 1px solid #dde8f2;
  border-radius: 12px;
  background: #fff;
}

.panorama-product-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.panorama-product-card > summary::-webkit-details-marker {
  display: none;
}

.panorama-product-card > summary > span:first-child {
  display: grid;
  flex: 1 1 220px;
  gap: 4px;
  min-width: 0;
}

.panorama-product-card > summary strong,
.panorama-product-card > summary small {
  overflow-wrap: anywhere;
}

.panorama-product-card > summary strong {
  color: #123a5e;
}

.panorama-product-card > summary small {
  color: #738ba0;
  font-size: 12px;
}

.panorama-product-card-price {
  flex: 0 0 auto;
  color: #0878ee;
  font-weight: 800;
}

.panorama-product-card-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.panorama-product-match {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbe8f2;
  border-radius: 11px;
  background: #f8fbfe;
}

.panorama-product-match > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #173c5e;
  font-size: 12px;
}

.panorama-product-match-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.panorama-product-match-facts > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #fff;
}

.panorama-product-match-facts small {
  color: #7890a5;
  font-size: 11px;
}

.panorama-product-match-facts strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #173c5e;
  font-size: 12px;
}

.panorama-product-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panorama-product-sku-table-wrap {
  overflow-x: auto;
}

.panorama-product-sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.panorama-product-sku-table th,
.panorama-product-sku-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e7eef5;
  text-align: left;
  white-space: nowrap;
}

.panorama-product-sku-table th {
  color: #6d8296;
  background: #f7fafc;
}

.panorama-product-limit-note {
  margin: 6px 0 0;
  color: #748ba0;
  font-size: 12px;
}

@media (max-width: 760px) {
  .panorama-product-platform > header {
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-product-platform-actions {
    justify-content: space-between;
  }

  .panorama-product-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[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;
}

:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.3);
  outline-offset: 3px;
}

/* Public site */

.public-site {
  min-height: 100vh;
  background: #fff;
}

.public-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 7%;
  border-bottom: 1px solid rgba(219, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.workbench-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #187ef5 5%, #09bda8 100%);
  box-shadow: 0 7px 15px rgba(20, 120, 242, 0.2);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
  font-weight: 700;
}

.brand-name {
  color: #112d45;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 34px);
  color: #41546a;
  font-size: 15px;
  font-weight: 500;
}

.public-nav > a {
  position: relative;
  padding: 26px 0 24px;
  transition: color 160ms ease;
}

.public-nav > a:hover,
.public-nav > a.active {
  color: var(--blue);
}

.public-nav > a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  content: "";
}

.workbench-entry,
.primary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1682f7, #066be7);
  box-shadow: 0 9px 20px rgba(20, 120, 242, 0.2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.workbench-entry:hover,
.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 120, 242, 0.28);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 22px;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 602px;
  overflow: hidden;
  align-items: center;
  padding: 72px 7% 84px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 83% 45%, rgba(93, 224, 202, 0.14), transparent 32%),
    radial-gradient(circle at 62% 80%, rgba(28, 128, 247, 0.09), transparent 29%),
    linear-gradient(120deg, #fff 5%, #fbfdff 50%, #f2fcfa 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 69%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #1372dd;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-content h1 {
  margin: 0;
  color: #092d49;
  font-size: clamp(45px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.12;
}

.hero-description {
  max-width: 800px;
  margin: 26px 0 0;
  color: #607083;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

.primary-action {
  min-height: 48px;
  padding: 0 22px;
}

.text-action {
  color: #136fdd;
  font-size: 16px;
  font-weight: 700;
}

.provider-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 0;
  color: #5f7282;
  font-size: 14px;
}

.provider-note span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(8, 189, 166, 0.1);
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  top: 52%;
  right: 8%;
  width: 360px;
  height: 360px;
  transform: translateY(-50%);
  border: 1px solid rgba(20, 120, 242, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(20, 120, 242, 0.025),
    0 0 0 106px rgba(8, 189, 166, 0.025);
}

.hero-orbit span {
  position: absolute;
  top: 18%;
  right: 9%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(20, 120, 242, 0.4);
}

.public-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 96px 32px;
}

.public-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 16px 0 36px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.capability-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #fff, #f8fbff);
  box-shadow: var(--shadow);
}

.capability-card > span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.capability-card h3 {
  margin: 38px 0 13px;
  font-size: 21px;
}

.capability-card p,
.process-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.process-section {
  max-width: none;
  padding-right: max(7%, calc((100% - 1156px) / 2));
  padding-left: max(7%, calc((100% - 1156px) / 2));
  background: var(--surface-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.process-grid article {
  display: flex;
  min-height: 135px;
  flex-direction: column;
  gap: 13px;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.process-grid strong {
  font-size: 18px;
}

.process-grid span {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.process-note {
  margin-top: 26px;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 7%;
  color: var(--ink-soft);
  font-size: 14px;
}

.public-footer > div,
.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.public-footer strong {
  color: var(--ink);
}

/* Workbench */

.workbench-open {
  overflow: hidden;
  background: #f4f8fc;
}

.workbench {
  display: grid;
  height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: 76px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 0%, rgba(98, 222, 204, 0.13), transparent 31%),
    #f4f8fc;
}

.workbench-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr minmax(300px, 480px) 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 18px rgba(44, 77, 111, 0.04);
  backdrop-filter: blur(14px);
}

.workbench-brand strong {
  font-size: 20px;
}

.header-divider {
  width: 1px;
  height: 24px;
  margin: 0 8px;
  background: #d8e2ec;
}

.global-search {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid #d9e5f3;
  border-radius: 13px;
  background: #f7faff;
  color: #65809b;
  box-shadow: inset 0 1px 1px rgba(30, 75, 113, 0.02);
}

.global-search > span:not(.sr-only) {
  font-size: 25px;
  line-height: 1;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.global-search input::placeholder {
  color: #8ea1b5;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.icon-button,
.user-button,
.return-home {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 26px;
}

.icon-button:hover,
.user-button:hover {
  background: var(--surface-soft);
}

.icon-button i {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
}

.user-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 3px 9px 3px 4px;
  border-radius: 12px;
  font-weight: 700;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #54b8ff, #2582ea);
}

.return-home {
  min-height: 42px;
  padding: 0 6px;
  color: var(--blue);
  font-weight: 700;
}

.workbench-sidebar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 16px 26px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.91);
}

.workbench-sidebar nav {
  display: grid;
  gap: 9px;
}

.sidebar-item {
  display: grid;
  min-height: 52px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.sidebar-item:hover {
  transform: translateX(2px);
  background: #f5f9fe;
}

.sidebar-item.active {
  color: var(--blue);
  background: linear-gradient(90deg, #e5f2ff, #eff7ff);
}

.sidebar-item span {
  font-size: 22px;
}

.sidebar-item b {
  font-size: 16px;
  font-weight: 700;
}

.sidebar-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #94a7ba;
  text-align: center;
}

.sidebar-company > span {
  margin-bottom: 4px;
  font-size: 24px;
}

.sidebar-company strong {
  max-width: 180px;
  font-size: 12px;
  font-weight: 600;
}

.sidebar-company small {
  font-size: 12px;
}

.workbench-content {
  min-width: 0;
  overflow: auto;
  padding: 30px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.heading-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-heading h1 {
  margin: 0;
  color: #0a2e4a;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.04em;
}

#workbench-title:focus {
  outline: none;
}

.section-heading p {
  margin: 7px 0 0;
  color: #697e93;
  font-size: 16px;
}

.demo-badge {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--blue);
  background: #dcedff;
  font-size: 13px;
  font-weight: 800;
}

.demo-badge.live {
  color: #087c6e;
  background: var(--teal-soft);
}

/* Local automation center */

.local-automation-section {
  display: grid;
  gap: 16px;
}

[data-local-device-panel] {
  display: grid;
  gap: 16px;
}

.cloud-status-center {
  overflow: hidden;
  border-color: rgba(20, 120, 242, 0.2);
  background:
    radial-gradient(circle at 92% 0%, rgba(8, 189, 166, 0.12), transparent 34%),
    #fff;
}

.cloud-status-heading {
  margin-bottom: 18px;
}

.cloud-status-heading h2,
.fleet-table-heading h3 {
  margin: 0;
}

.cloud-status-heading small,
.fleet-table-heading small {
  display: block;
  margin-top: 5px;
  color: #71869b;
  font-size: 13px;
}

.cloud-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #71869b;
  font-size: 13px;
}

.text-button {
  min-height: 38px;
  border: 0;
  color: #5d7187;
  background: transparent;
  cursor: pointer;
}

.cloud-access-form {
  display: grid;
  grid-template-columns: auto minmax(230px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dce8f5;
  border-radius: 15px;
  background: #f7fbff;
}

.cloud-access-form[hidden],
.cloud-status-content[hidden],
.cloud-status-actions[hidden],
[data-local-device-panel][hidden] {
  display: none;
}

.cloud-access-form strong,
.cloud-access-form p {
  display: block;
  margin: 0;
}

.cloud-access-form p {
  margin-top: 5px;
  color: #71869b;
  font-size: 13px;
  line-height: 1.6;
}

.cloud-access-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cddbea;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  font: inherit;
}

.cloud-access-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 120, 242, 0.12);
}

.cloud-access-form .inline-message {
  grid-column: 3 / -1;
  margin-top: -8px;
  color: #d54a55;
}

.cloud-lock {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #1478f2, #08bda6);
  font-size: 14px;
  font-weight: 800;
}

.cloud-status-content {
  display: grid;
  gap: 18px;
}

.cloud-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cloud-summary-grid article {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 14px 17px;
  border: 1px solid #e0e9f3;
  border-radius: 13px;
  background: rgba(248, 251, 255, 0.88);
}

.cloud-summary-grid small {
  color: #71869b;
  font-size: 13px;
}

.cloud-summary-grid strong {
  color: #17334f;
  font-size: 25px;
}

.success-text,
.device-normal {
  color: #0b947e !important;
}

.running-text {
  color: var(--blue) !important;
}

.failed-text,
.device-failure {
  color: #d54a55 !important;
}

.cloud-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.cloud-device-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dde8f3;
  border-left: 4px solid #b7c7d8;
  border-radius: 13px;
  background: #fff;
}

.cloud-device-card.online {
  border-left-color: #08a98f;
}

.cloud-device-card.unstable {
  border-left-color: #ef9b37;
}

.cloud-device-card.offline {
  border-left-color: #9aaabd;
  background: #fafbfd;
}

.cloud-device-card > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.cloud-device-card > div:first-child > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.cloud-device-card strong,
.cloud-device-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-device-card small,
.cloud-device-card > div:last-child {
  color: #71869b;
  font-size: 12px;
}

.cloud-device-card > div:last-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.cloud-device-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #1478f2, #08bda6);
  font-weight: 800;
}

.fleet-table-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 4px;
}

.fleet-automation-table td:first-child,
.fleet-automation-table td:nth-child(2),
.fleet-automation-table td:nth-child(4) {
  min-width: 150px;
}

@media (max-width: 900px) {
  .cloud-access-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cloud-access-form label,
  .cloud-access-form .primary-action,
  .cloud-access-form .inline-message {
    grid-column: 1 / -1;
  }

  .cloud-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cloud-status-heading,
  .cloud-status-actions {
    align-items: flex-start;
  }

  .cloud-status-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .cloud-access-form {
    grid-template-columns: 1fr;
  }

  .cloud-lock,
  .cloud-access-form > div,
  .cloud-access-form label,
  .cloud-access-form .primary-action,
  .cloud-access-form .inline-message {
    grid-column: 1;
  }

  .cloud-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cloud-device-card > div:last-child {
    flex-direction: column;
  }
}

.local-device-strip {
  display: grid;
  min-height: 92px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 17px 20px;
  border: 1px solid rgba(8, 189, 166, 0.23);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 10%, rgba(8, 189, 166, 0.11), transparent 38%),
    #fff;
  box-shadow: var(--shadow);
}

.local-device-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.local-launch-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.device-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.device-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #1478f2, #08bda6);
  box-shadow: 0 10px 22px rgba(20, 120, 242, 0.2);
  font-size: 25px;
  font-weight: 800;
}

.device-identity > span:last-child,
.device-connection {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.device-identity small,
.device-identity em,
.device-connection small {
  overflow: hidden;
  color: #75899e;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-identity strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-connection {
  align-items: flex-end;
}

.connection-pill,
.run-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 800;
}

.connection-pill {
  padding: 7px 11px;
  font-size: 13px;
}

.connection-pill i,
.run-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.connection-pill.checking,
.connection-pill.offline {
  color: #687c91;
  background: #edf2f7;
}

.connection-pill.online {
  color: #078c7a;
  background: var(--teal-soft);
}

.secondary-action {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #d3e1ef;
  border-radius: 10px;
  color: #31526f;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-action:hover {
  border-color: #9ec8f5;
  color: var(--blue);
  background: #f7fbff;
}

.secondary-action:disabled,
.primary-action:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.local-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.local-summary-card {
  display: grid;
  min-height: 96px;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.local-summary-card .summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 20px;
}

.local-summary-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.local-summary-card small {
  color: #75899e;
  font-size: 13px;
  font-weight: 700;
}

.local-summary-card strong {
  overflow: hidden;
  color: #123b5c;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.75fr);
  gap: 16px;
}

.codex-command-panel .panel-heading,
.local-services-panel .panel-heading,
.automation-registry-panel .panel-heading,
.codex-history-panel .panel-heading {
  min-height: 68px;
}

.codex-command-panel .panel-heading > div,
.local-services-panel .panel-heading > div,
.registry-heading > div:first-child,
.codex-history-panel .panel-heading > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.codex-command-panel .panel-heading small,
.local-services-panel .panel-heading small,
.registry-heading small,
.codex-history-panel .panel-heading small {
  color: #7a8ea4;
  font-size: 12px;
}

.safe-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: #087c6e;
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 800;
}

.codex-task-form {
  display: grid;
  gap: 10px;
  padding: 17px 18px 15px;
}

.codex-task-form label {
  font-size: 14px;
  font-weight: 800;
}

.codex-task-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid #d7e3ef;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
}

.codex-task-form textarea:focus {
  border-color: #78aff0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 120, 242, 0.1);
}

.codex-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.codex-form-footer p,
.inline-message {
  margin: 0;
  color: #71859a;
  font-size: 12px;
  line-height: 1.55;
}

.codex-form-footer .primary-action {
  min-width: 106px;
  min-height: 42px;
  flex: 0 0 auto;
}

.inline-message {
  min-height: 19px;
  color: #315a78;
}

.service-status-list {
  padding: 3px 16px 10px;
}

.service-status-row {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.service-status-row:last-child {
  border-bottom: 0;
}

.service-status-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.service-status-row strong {
  font-size: 14px;
}

.service-status-row small {
  overflow: hidden;
  color: #7a8ea4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  font-size: 11px;
}

.run-status.success,
.run-status.active {
  color: #078c7a;
  background: var(--teal-soft);
}

.run-status.failed {
  color: #cf3434;
  background: var(--red-soft);
}

.run-status.partial,
.run-status.running {
  color: #d8611f;
  background: var(--orange-soft);
}

.run-status.paused,
.run-status.unknown {
  color: #718397;
  background: #edf2f7;
}

.registry-heading {
  gap: 20px;
}

.registry-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #71859a;
  font-size: 12px;
}

.registry-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.success { background: var(--teal); }
.legend-dot.failed { background: var(--red); }
.legend-dot.unknown { background: #93a5b7; }

.automation-table-wrap {
  overflow-x: auto;
}

.automation-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.automation-table th,
.automation-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}

.automation-table th {
  color: #71859a;
  background: #f8fafd;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.automation-table tbody tr:last-child td {
  border-bottom: 0;
}

.automation-table td:first-child {
  min-width: 270px;
}

.automation-table td:nth-child(2),
.automation-table td:nth-child(3),
.automation-table td:nth-child(5) {
  white-space: nowrap;
}

.automation-table td strong,
.automation-table td small {
  display: block;
}

.automation-table td small {
  max-width: 310px;
  margin-top: 5px;
  overflow: hidden;
  color: #7a8ea4;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-table td:nth-child(4) .run-status {
  margin-bottom: 2px;
}

.table-empty,
.empty-inline {
  padding: 24px;
  color: #7a8ea4;
  font-size: 13px;
  text-align: center;
}

.codex-task-list {
  padding: 3px 16px 10px;
}

.codex-task-row {
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
}

.codex-task-row:last-child {
  border-bottom: 0;
}

.codex-task-row > div,
.codex-task-row > div > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.codex-task-row > div > div {
  align-items: center;
  flex-direction: row;
}

.codex-task-row strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-task-row small {
  color: #7a8ea4;
  font-size: 12px;
}

.codex-task-row details {
  margin-top: 5px;
}

.codex-task-row summary {
  width: max-content;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.codex-task-row pre {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  color: #dcecff;
  background: #0d2d45;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.task-error {
  margin: 3px 0 0;
  color: #c43b3b;
  font-size: 12px;
}

.stop-task-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #f0b6b6;
  border-radius: 9px;
  color: #c23939;
  background: #fff8f8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-sidebar-button {
  display: none;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  display: grid;
  min-height: 116px;
  grid-template-columns: 64px 1fr 18px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.summary-card:hover,
.platform-card:hover,
.quick-grid button:hover,
.quick-grid a:hover,
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 73, 116, 0.12);
}

.summary-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 15px;
  font-size: 28px;
  font-weight: 800;
}

.summary-icon.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.summary-icon.orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.summary-icon.teal {
  color: #078c7a;
  background: var(--teal-soft);
}

.summary-icon.red {
  color: var(--red);
  background: var(--red-soft);
}

.summary-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.summary-card small {
  font-size: 15px;
  font-weight: 700;
}

.summary-card strong {
  color: #1373ea;
  font-size: 35px;
  line-height: 1;
}

.summary-card strong.danger {
  color: #ee4c31;
}

.summary-card strong.warning {
  color: #eb5a2a;
}

.summary-card sup {
  color: #7c8da3;
  font-size: 21px;
}

.summary-card em {
  color: #8fa4ba;
  font-size: 26px;
  font-style: normal;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.12fr) minmax(260px, 1fr) minmax(245px, 0.92fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2,
.quick-panel > h2 {
  margin: 0;
  font-size: 19px;
}

.panel-heading button {
  border: 0;
  color: #7890a7;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.task-list {
  padding: 4px 18px 7px;
}

.task-row {
  display: grid;
  min-height: 79px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.task-row:last-child {
  border-bottom: 0;
}

.task-check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #afbdcc;
  cursor: pointer;
}

.task-check.blue {
  background: #58a2f7;
}

.task-check.done {
  background: var(--teal);
}

.task-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.task-row strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row span {
  overflow: hidden;
  color: #8092a6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  min-width: 70px;
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.status-pill.progress {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-pill.pending {
  color: #e96c25;
  background: var(--orange-soft);
}

.status-pill.done {
  color: #078c7a;
  background: var(--teal-soft);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
}

.platform-card {
  position: relative;
  display: grid;
  min-height: 135px;
  grid-template-columns: 34px 1fr;
  align-content: start;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.platform-logo {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.platform-logo.douyin {
  background: #111827;
}

.platform-logo.kuaishou {
  background: #ff530e;
}

.platform-logo.channels {
  color: #965d00;
  background: #ffb300;
}

.platform-logo.redbook {
  background: #f22d45;
}

.platform-card > strong {
  font-size: 15px;
}

.sparkline {
  position: relative;
  display: block;
  height: 34px;
  grid-column: 1 / -1;
  margin-top: 7px;
  overflow: hidden;
  border-bottom: 2px solid currentColor;
  clip-path: polygon(0 84%, 17% 61%, 33% 70%, 49% 38%, 63% 70%, 80% 28%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.86;
}

.blue-line {
  color: #1680f4;
  background: linear-gradient(180deg, rgba(22, 128, 244, 0.3), transparent);
}

.orange-line {
  color: #ff6b25;
  background: linear-gradient(180deg, rgba(255, 107, 37, 0.25), transparent);
}

.teal-line {
  color: #0eb69c;
  background: linear-gradient(180deg, rgba(14, 182, 156, 0.25), transparent);
}

.spark-bars {
  display: flex;
  height: 35px;
  grid-column: 1 / -1;
  align-items: flex-end;
  gap: 5px;
  margin-top: 6px;
}

.spark-bars i {
  width: 14%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#ffb9c1, #f77d8c);
}

.spark-bars i:nth-child(1) { height: 35%; }
.spark-bars i:nth-child(2) { height: 58%; }
.spark-bars i:nth-child(3) { height: 48%; }
.spark-bars i:nth-child(4) { height: 70%; }
.spark-bars i:nth-child(5) { height: 80%; }
.spark-bars i:nth-child(6) { height: 100%; }

.platform-card small {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.platform-card small > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.normal {
  color: #089b84;
}

.waiting {
  color: #8899ad;
}

.right-stack {
  display: grid;
  gap: 16px;
}

.alert-row {
  display: grid;
  width: calc(100% - 24px);
  min-height: 68px;
  grid-template-columns: 34px 1fr 15px;
  align-items: center;
  gap: 9px;
  margin: 11px 12px 0;
  padding: 10px 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.alert-row:last-child {
  margin-bottom: 12px;
}

.alert-row > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.alert-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.alert-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row small {
  overflow: hidden;
  color: #8294a8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row em {
  color: #8fa4ba;
  font-size: 21px;
  font-style: normal;
}

.automation-list {
  padding: 6px 15px 10px;
}

.automation-list > div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.automation-list > div:last-child {
  border-bottom: 0;
}

.automation-list span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.automation-list b {
  min-width: 59px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
}

.automation-list .running,
.automation-list .complete {
  color: #078c7a;
  background: var(--teal-soft);
}

.automation-list .disabled {
  color: #7f91a5;
  background: #edf1f6;
}

.dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.dot.active {
  background: var(--teal);
}

.dot.muted {
  background: #9badc0;
}

.automation-list .pulse {
  animation: highlight 900ms ease 2;
}

@keyframes highlight {
  50% { background: #e6f7ff; }
}

.quick-panel {
  display: grid;
  grid-template-columns: 115px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 15px 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-grid button,
.quick-grid a {
  display: grid;
  min-height: 72px;
  grid-template-columns: 40px 1fr 12px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.quick-grid em {
  color: #97aabc;
  font-size: 20px;
  font-style: normal;
}

.quick-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
}

.quick-icon.feishu {
  background: linear-gradient(145deg, #08c4ab, #1b82f2);
}

.quick-icon.chart,
.quick-icon.play {
  background: var(--blue);
}

.quick-icon.jushuitan {
  background: #1599e6;
}

/* Company application links */

.resource-section,
.resource-groups {
  display: grid;
  gap: 16px;
}

.resource-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
}

.resource-overview h2,
.resource-overview p {
  margin: 0;
}

.resource-overview h2 {
  margin-top: 6px;
  font-size: 23px;
}

.resource-overview p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 14px;
}

.resource-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.resource-count {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #087c6e;
  background: var(--teal-soft);
  font-size: 13px;
  font-weight: 700;
}

.resource-count strong {
  font-size: 18px;
}

.resource-group {
  padding-bottom: 18px;
}

.resource-group-heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.resource-group-heading h2 {
  margin: 0;
  font-size: 19px;
}

.resource-group-heading span {
  color: #75899d;
  font-size: 13px;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  padding: 18px 20px 0;
}

.resource-card {
  display: grid;
  min-height: 116px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid #dbe7f2;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.resource-card:hover {
  border-color: #acd0f6;
}

.resource-card:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.2);
  outline-offset: 2px;
}

.resource-app-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #1478f2, #08bda6);
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(20, 120, 242, 0.2);
}

.resource-card-content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.resource-card-content small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.resource-card-content strong {
  font-size: 16px;
}

.resource-card-content > span {
  color: #71859a;
  font-size: 13px;
  line-height: 1.5;
}

.resource-open {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* Company identity and permissions */

.auth-gate {
  position: relative;
  z-index: 80;
  display: grid;
  height: 100vh;
  min-height: 100vh;
  overflow: auto;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  place-items: safe center;
  padding: 28px;
  background:
    radial-gradient(circle at 78% 18%, rgba(8, 189, 166, 0.17), transparent 30%),
    radial-gradient(circle at 18% 88%, rgba(20, 120, 242, 0.13), transparent 34%),
    #f5f9fd;
}

.auth-card {
  width: min(600px, 100%);
  padding: 44px;
  border: 1px solid rgba(207, 222, 237, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(24, 73, 116, 0.14);
  text-align: center;
}

.auth-brand {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 16px;
  font-size: 31px;
}

.auth-eyebrow {
  margin: 0 0 11px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.auth-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 31px;
  letter-spacing: -0.04em;
}

.auth-card > p:not(.auth-eyebrow, .auth-state) {
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.pin-login-form,
.bootstrap-form {
  display: grid;
  gap: 14px;
  margin-top: 25px;
  text-align: left;
}

.bootstrap-form {
  grid-template-columns: 1fr 1fr;
}

.pin-login-form[hidden],
.bootstrap-form[hidden] {
  display: none;
}

.pin-login-form label,
.bootstrap-form label,
.create-user-form > label {
  display: grid;
  gap: 7px;
  color: #49647e;
  font-size: 13px;
  font-weight: 800;
}

.pin-login-form input,
.bootstrap-form input,
.create-user-form input,
.create-user-form select,
.pin-reset-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cedceb;
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.pin-login-form input:focus,
.bootstrap-form input:focus,
.create-user-form input:focus,
.create-user-form select:focus,
.pin-reset-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 120, 242, 0.12);
}

.pin-login-form .primary-action,
.bootstrap-form .primary-action {
  width: 100%;
  min-height: 48px;
  border: 0;
  cursor: pointer;
}

.bootstrap-form .form-note,
.bootstrap-form > .primary-action {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: #49647e;
  background: #eef6ff;
  font-size: 13px;
  line-height: 1.6;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.feishu-login {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #3370ff, #1d5bea);
  box-shadow: 0 12px 26px rgba(51, 112, 255, 0.24);
  font-weight: 800;
}

.feishu-login span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #3370ff;
  background: #fff;
  font-size: 14px;
}

.auth-state {
  margin: 20px 0 0;
  color: #75899d;
  font-size: 13px;
}

.auth-subject {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border: 1px dashed #cad9e8;
  border-radius: 11px;
  color: #61788f;
  background: #f8fbfe;
  font-size: 12px;
}

.auth-subject code {
  overflow-wrap: anywhere;
  color: #264967;
  font-size: 11px;
}

.auth-subject .text-button {
  min-height: 30px;
  color: var(--blue);
  font-weight: 700;
}

.user-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-copy strong {
  font-size: 14px;
}

.user-copy small {
  color: #75899d;
  font-size: 11px;
  font-weight: 600;
}

.header-logout {
  color: var(--blue);
  font-weight: 700;
}

.cloud-access-message {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid #dce8f5;
  border-radius: 15px;
  background: #f7fbff;
}

.cloud-access-message strong,
.cloud-access-message p {
  display: block;
  margin: 0;
}

.cloud-access-message p {
  margin-top: 5px;
  color: #71869b;
  font-size: 13px;
}

.admin-section {
  display: grid;
  gap: 16px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-toolbar h2,
.admin-toolbar p {
  margin: 0;
}

.admin-toolbar p {
  margin-top: 7px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.admin-summary {
  padding: 13px 18px;
  border: 1px solid rgba(20, 120, 242, 0.16);
  border-radius: 12px;
  color: #315270;
  background: #eef6ff;
  font-size: 14px;
  font-weight: 700;
}

.create-user-panel {
  display: grid;
  gap: 18px;
}

.create-user-panel .panel-heading h2,
.create-user-panel .panel-heading p {
  margin: 0;
}

.create-user-panel .panel-heading p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.create-user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.create-permission-fieldset,
.create-user-actions {
  grid-column: 1 / -1;
}

.create-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.create-user-actions p {
  margin: 0;
  color: #75899d;
  font-size: 12px;
}

.user-management {
  display: grid;
  gap: 14px;
}

.user-access-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.user-access-heading,
.managed-user-identity,
.user-access-controls,
.user-access-footer {
  display: flex;
  align-items: center;
}

.user-access-heading,
.user-access-footer {
  justify-content: space-between;
  gap: 16px;
}

.managed-user-identity {
  min-width: 0;
  gap: 12px;
}

.managed-user-identity > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.managed-user-identity strong,
.managed-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-user-identity small,
.user-access-footer > span {
  color: #75899d;
  font-size: 12px;
}

.account-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #86611c;
  background: #fff4d8;
  font-size: 12px;
  font-weight: 800;
}

.account-state.active {
  color: #087c6e;
  background: var(--teal-soft);
}

.account-state.disabled {
  color: #9b4750;
  background: var(--red-soft);
}

.user-access-controls {
  flex-wrap: wrap;
  gap: 12px;
}

.user-access-controls select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid #cedceb;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.permission-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.permission-fieldset legend {
  margin-bottom: 10px;
  color: #49647e;
  font-size: 13px;
  font-weight: 800;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.permission-grid label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #e1e9f2;
  border-radius: 10px;
  background: #f8fbfe;
  cursor: pointer;
}

.permission-grid input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.permission-grid span {
  font-size: 13px;
  font-weight: 700;
}

.compact-action {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.protected-owner-note {
  margin: 0;
  padding: 13px 15px;
  border-radius: 11px;
  color: #49647e;
  background: #f3f8fd;
  font-size: 13px;
}

.pin-reset-panel {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.pin-reset-panel input {
  min-height: 40px;
}

.pin-reset-panel small {
  color: #75899d;
  font-size: 12px;
}

.audit-list {
  display: grid;
  gap: 8px;
}

.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.audit-row:last-child {
  border-bottom: 0;
}

.audit-row > span {
  display: grid;
  gap: 4px;
}

.audit-row small,
.audit-row time {
  color: #75899d;
  font-size: 12px;
}

/* Panorama workspace */

.panorama-section {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 20px;
  color: var(--ink);
  overflow-x: clip;
}

.panorama-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(20, 120, 242, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 8%, rgba(8, 189, 166, 0.14), transparent 34%),
    linear-gradient(125deg, var(--surface) 8%, var(--blue-soft) 58%, var(--teal-soft));
  box-shadow: var(--shadow);
}

.panorama-heading > div:first-child {
  min-width: 0;
}

.panorama-heading h2 {
  margin: 9px 0 7px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.panorama-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.panorama-status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(8, 189, 166, 0.3);
  border-radius: 999px;
  color: #087f72;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.panorama-status-badge::before {
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 189, 166, 0.14);
  content: "";
}

.panorama-mode {
  display: inline-grid;
  flex: 0 0 auto;
  grid-auto-columns: minmax(72px, 1fr);
  grid-auto-flow: column;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(20, 120, 242, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 4px 14px rgba(24, 73, 116, 0.06);
}

.panorama-mode button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.panorama-mode button:hover {
  border-color: rgba(20, 120, 242, 0.18);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.panorama-mode button[aria-pressed="true"] {
  border-width: 1px;
  border-color: rgba(20, 120, 242, 0.32);
  background: var(--surface);
  box-shadow:
    inset 0 -3px 0 var(--blue),
    0 3px 9px rgba(20, 120, 242, 0.12);
  color: var(--blue-dark);
  font-weight: 800;
}

.panorama-mode-note {
  margin: -8px 2px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.panorama-toolbar {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panorama-search {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.panorama-search > span,
.panorama-filter-grid label > span {
  color: #476077;
  font-size: 12px;
  font-weight: 800;
}

.panorama-search input,
.panorama-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cfdeed;
  border-radius: 10px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.panorama-search input::placeholder {
  color: #8799ab;
}

.panorama-search input:hover,
.panorama-filter-grid select:hover {
  border-color: #9ec8f5;
  background: var(--surface);
}

.panorama-important-only {
  display: inline-flex;
  min-height: 44px;
  align-self: end;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: #476077;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.panorama-important-only:hover,
.panorama-important-only:focus-within {
  border-color: #9ec8f5;
  background: var(--blue-soft);
}

.panorama-important-only input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.panorama-filter-grid {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.panorama-filter-grid label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.panorama-account-overview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 120, 242, 0.2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 18px;
}

.panorama-account-overview[open] {
  border-color: rgba(8, 189, 166, 0.34);
}

.panorama-account-overview > summary {
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  list-style: none;
  background: linear-gradient(105deg, var(--surface), var(--blue-soft), var(--teal-soft));
  cursor: pointer;
}

.panorama-account-overview > summary::-webkit-details-marker {
  display: none;
}

.panorama-account-overview > summary::marker {
  content: "";
}

.panorama-account-overview > summary::after {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #bed5e8;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-dark);
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.panorama-account-overview[open] > summary::after {
  content: "−";
}

.panorama-account-overview > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.panorama-account-overview > summary strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.panorama-account-overview > summary small {
  color: var(--ink-soft);
  font-size: 12px;
}

.panorama-account-overview > summary > span[data-panorama-account-toggle] {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.panorama-account-body {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--border);
}

.panorama-account-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panorama-account-header h3,
.panorama-account-column-heading h3 {
  margin: 0;
  font-size: 15px;
}

.panorama-account-header p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.panorama-account-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.panorama-account-actions button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.panorama-account-actions button[aria-busy="true"],
.panorama-account-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.panorama-account-actions .text-button {
  color: #5b7187;
}

.panorama-account-sync-meta {
  margin: -7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.panorama-account-summary-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.panorama-account-summary-grid article {
  display: grid;
  min-width: 0;
  min-height: 76px;
  align-content: center;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: var(--surface-soft);
}

.panorama-account-summary-grid small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.panorama-account-summary-grid strong {
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.03em;
}

.panorama-account-status {
  margin: 0;
  padding: 10px 13px;
  overflow-wrap: anywhere;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  color: #35645f;
  font-size: 12px;
  line-height: 1.55;
}

.panorama-account-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 14px;
}

.panorama-account-layout > section {
  display: grid;
  min-width: 0;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fbfdff;
}

.panorama-account-column-heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.panorama-account-column-heading small {
  color: var(--ink-soft);
  font-size: 11px;
}

.panorama-account-store-list,
.panorama-account-relationships {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.panorama-account-store-button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid #d9e5ef;
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.panorama-account-store-button:hover {
  border-color: #9ec8f5;
  background: var(--blue-soft);
}

.panorama-account-store-button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

.panorama-account-store-title,
.panorama-account-store-meta,
.panorama-account-tags {
  display: flex;
  min-width: 0;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.panorama-account-store-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.panorama-account-store-meta,
.panorama-account-tags {
  color: var(--ink-soft);
  font-size: 11px;
}

.panorama-account-tag {
  min-width: 0;
  max-width: 100%;
  padding: 3px 7px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(20, 120, 242, 0.16);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #426681;
  font-size: 10px;
  font-weight: 750;
}

.panorama-account-relationship,
.panorama-account-orphans {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: var(--surface);
}

.panorama-account-relation-path {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #385c7d;
  font-size: 12px;
  font-weight: 750;
}

.panorama-account-relation-path span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panorama-account-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 11px;
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  background: var(--surface-soft);
}

.panorama-account-card h4,
.panorama-account-orphans h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.panorama-account-fields {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}

.panorama-account-fields div {
  min-width: 0;
}

.panorama-account-fields dt {
  color: #75899d;
  font-size: 10px;
  font-weight: 750;
}

.panorama-account-fields dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}

.panorama-account-orphans {
  border-style: dashed;
  border-color: #e2b973;
  background: #fffaf0;
}

.panorama-summary-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panorama-summary-grid article {
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(24, 73, 116, 0.06);
}

.panorama-summary-grid small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.panorama-summary-grid strong {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.panorama-source-status {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(20, 120, 242, 0.14);
  border-radius: 11px;
  background: var(--blue-soft);
  color: #355774;
  font-size: 13px;
  line-height: 1.55;
}

.panorama-source-status::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(20, 120, 242, 0.24);
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--surface);
  content: "i";
  font-size: 12px;
  font-weight: 900;
}

.panorama-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  align-items: start;
  gap: 18px;
}

.panorama-modules {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.panorama-module {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24, 73, 116, 0.07);
  scroll-margin-top: 18px;
}

.panorama-module[open] {
  border-color: rgba(20, 120, 242, 0.24);
}

.panorama-module > summary {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  list-style: none;
  background: linear-gradient(100deg, var(--surface), var(--surface-soft));
  cursor: pointer;
  transition: background-color 160ms ease;
}

.panorama-module > summary::-webkit-details-marker {
  display: none;
}

.panorama-module > summary::marker {
  content: "";
}

.panorama-module > summary::after {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cbdcec;
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue-dark);
  content: "+";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.panorama-module[open] > summary::after {
  content: "−";
}

.panorama-module > summary:hover {
  background: var(--blue-soft);
}

.panorama-module > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.panorama-module > summary span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.panorama-module-body {
  display: grid;
  min-width: 0;
  gap: 15px;
  padding: 17px;
  border-top: 1px solid var(--border);
}

.panorama-module-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.panorama-module-filter-keys {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.panorama-module-filter-keys span {
  padding: 4px 8px;
  border: 1px solid rgba(8, 189, 166, 0.2);
  border-radius: 999px;
  background: var(--teal-soft);
  color: #176f68;
  font-size: 11px;
  font-weight: 750;
}

.panorama-related-links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.panorama-related-links button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #d5e2ef;
  border-radius: 9px;
  background: var(--surface-soft);
  color: #385c7d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.panorama-related-links button:hover {
  border-color: #9ec8f5;
  background: var(--blue-soft);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.panorama-module-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
  border-top: 1px solid #edf2f7;
}

.panorama-module .text-button {
  min-height: 36px;
  padding: 0 8px;
  color: #5b7187;
}

.panorama-module .text-button:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.panorama-source-list {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.panorama-source-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: var(--surface-soft);
}

.panorama-source-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.panorama-source-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panorama-source-heading h4 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.panorama-source-state {
  display: inline-flex;
  min-height: 25px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(8, 189, 166, 0.24);
  border-radius: 999px;
  background: var(--teal-soft);
  color: #176f68;
  font-size: 11px;
  font-weight: 800;
}

.panorama-source-state::before {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--teal);
  content: "";
}

.panorama-source-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  justify-self: start;
  padding: 0 13px;
  border: 1px solid rgba(20, 120, 242, 0.28);
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.panorama-source-link::after {
  content: "↗";
  font-size: 14px;
}

.panorama-source-link:hover {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 6px 14px rgba(20, 120, 242, 0.12);
  transform: translateY(-1px);
}

.panorama-hidden-panels {
  position: sticky;
  top: 0;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(8, 189, 166, 0.34);
  border-left-width: 4px;
  border-radius: var(--radius);
  outline: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(145deg, var(--surface), var(--teal-soft));
  box-shadow: var(--shadow);
}

.panorama-hidden-panels h3 {
  margin: 0;
  font-size: 16px;
}

.panorama-hidden-panels p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

[data-panorama-hidden-list] {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin-top: 14px;
}

.panorama-restore-button {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px dashed #9ebfd9;
  border-radius: 9px;
  background: var(--surface);
  color: #315d7a;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.panorama-restore-button:hover {
  border-color: var(--teal);
  border-style: solid;
  background: var(--teal-soft);
  color: #087f72;
}

.panorama-hidden-panels .secondary-action {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border-color: rgba(20, 120, 242, 0.24);
  background: var(--surface);
}

.panorama-hidden-panels .secondary-action:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.panorama-section .empty-inline {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px dashed #cbdcec;
  border-radius: 11px;
  background: var(--surface-soft);
  overflow-wrap: anywhere;
  text-align: center;
}

.panorama-mode button:focus-visible,
.panorama-toolbar input:focus-visible,
.panorama-toolbar select:focus-visible,
.panorama-account-overview > summary:focus-visible,
.panorama-account-actions button:focus-visible,
.panorama-account-store-button:focus-visible,
.panorama-module > summary:focus-visible,
.panorama-related-links button:focus-visible,
.panorama-source-link:focus-visible,
.panorama-restore-button:focus-visible,
.panorama-module .text-button:focus-visible,
.panorama-hidden-panels .secondary-action:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.3);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface);
}

.panorama-module > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(20, 120, 242, 0.48);
}

.panorama-account-overview > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(20, 120, 242, 0.48);
}

.placeholder-section {
  display: flex;
  min-height: calc(100vh - 190px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  text-align: center;
}

.placeholder-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--teal));
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 36px;
  box-shadow: 0 15px 30px rgba(20, 120, 242, 0.23);
}

.placeholder-section h2 {
  margin: 24px 0 8px;
  font-size: 30px;
}

.placeholder-section p {
  max-width: 580px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.placeholder-section button {
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 28px;
  bottom: 26px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 18px;
  border: 1px solid rgba(20, 120, 242, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(9, 43, 70, 0.95);
  box-shadow: 0 16px 38px rgba(9, 43, 70, 0.24);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .panorama-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panorama-modules {
    grid-template-columns: 1fr;
  }

  .panorama-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .right-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .local-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1260px) {
  .workbench-header {
    grid-template-columns: 1fr minmax(260px, 360px) auto;
  }

  .workbench-brand .brand-name {
    display: none;
  }

}

@media (max-width: 1020px) {
  .create-user-form {
    grid-template-columns: 1fr 1fr;
  }

  .public-header {
    padding: 0 24px;
  }

  .public-nav {
    gap: 18px;
  }

  .public-nav > a {
    display: none;
  }

  .public-nav > a.active {
    display: block;
  }

  .hero-content {
    width: min(760px, 82%);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workbench {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .workbench-sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .sidebar-item {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .sidebar-item b,
  .sidebar-company strong,
  .sidebar-company small {
    display: none;
  }

  .workbench-header {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    padding: 0 18px;
  }

  .workbench-brand strong,
  .header-divider,
  .user-button span:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .panorama-section {
    gap: 16px;
  }

  .panorama-heading {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .panorama-mode {
    align-self: stretch;
  }

  .panorama-toolbar {
    grid-template-columns: 1fr;
  }

  .panorama-important-only {
    justify-self: stretch;
  }

  .panorama-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-account-header {
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-account-layout {
    grid-template-columns: 1fr;
  }

  .panorama-account-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-product-match-facts {
    grid-template-columns: 1fr;
  }

  .panorama-workspace {
    grid-template-columns: 1fr;
  }

  .panorama-hidden-panels {
    position: static;
  }

  .auth-gate {
    padding: 16px;
  }

  .auth-card {
    padding: 34px 22px;
  }

  .auth-card h1 {
    font-size: 27px;
  }

  .bootstrap-form,
  .create-user-form {
    grid-template-columns: 1fr;
  }

  .bootstrap-form .form-note,
  .bootstrap-form > .primary-action,
  .create-permission-fieldset,
  .create-user-actions {
    grid-column: 1;
  }

  .public-header {
    min-height: 66px;
  }

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .public-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .public-nav.open {
    display: flex;
  }

  .public-nav > a,
  .public-nav > a.active {
    display: block;
    padding: 13px 12px;
  }

  .public-nav > a.active::after {
    display: none;
  }

  .workbench-entry {
    margin-top: 7px;
  }

  .hero-section {
    min-height: 580px;
    align-items: start;
    padding: 78px 24px 66px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(38px, 11vw, 53px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-orbit {
    top: auto;
    right: -120px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    transform: none;
  }

  .public-section {
    padding: 70px 24px;
  }

  .capability-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .public-footer {
    flex-direction: column;
    padding: 32px 24px;
  }

  .workbench {
    display: block;
    height: 100vh;
  }

  .workbench-header {
    display: flex;
    height: 68px;
    justify-content: space-between;
    padding: 0 14px;
  }

  .workbench-brand .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .global-search,
  .icon-button,
  .user-button {
    display: none;
  }

  .return-home {
    font-size: 14px;
  }

  .workbench-sidebar {
    position: fixed;
    z-index: 45;
    top: 68px;
    bottom: 0;
    left: 0;
    width: 245px;
    padding: 18px 14px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 16px 0 34px rgba(24, 73, 116, 0.13);
  }

  .workbench-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    justify-content: normal;
    padding: 0 18px;
  }

  .sidebar-item b,
  .sidebar-company strong,
  .sidebar-company small {
    display: block;
  }

  .workbench-content {
    height: calc(100vh - 68px);
    padding: 22px 16px 36px;
  }

  .admin-toolbar,
  .resource-overview,
  .user-access-heading,
  .user-access-footer,
  .audit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-toolbar .secondary-action,
  .user-access-footer .primary-action {
    width: 100%;
  }

  .create-user-actions,
  .pin-reset-panel {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .resource-card-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .resource-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .resource-app-icon {
    width: 48px;
    height: 48px;
  }

  .resource-open {
    grid-column: 2;
  }

  .permission-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h1 {
    font-size: 30px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .mobile-sidebar-button {
    display: block;
  }

  .summary-grid,
  .dashboard-grid,
  .right-stack,
  .quick-grid,
  .local-summary-grid,
  .local-work-grid {
    grid-template-columns: 1fr;
  }

  .local-device-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .device-connection {
    align-items: flex-start;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .local-device-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .registry-legend {
    display: none;
  }

  .automation-table {
    min-width: 850px;
  }

  .right-stack {
    grid-column: auto;
  }

  .quick-panel {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 98px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (max-width: 560px) {
  .panorama-section {
    gap: 14px;
  }

  .panorama-heading,
  .panorama-toolbar,
  .panorama-hidden-panels {
    padding: 16px;
  }

  .panorama-heading h2 {
    font-size: 28px;
  }

  .panorama-mode {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .panorama-mode button,
  .panorama-search input,
  .panorama-filter-grid select,
  .panorama-important-only,
  .panorama-related-links button,
  .panorama-source-link,
  .panorama-restore-button,
  .panorama-module .text-button {
    min-height: 44px;
  }

  .panorama-filter-grid {
    grid-template-columns: 1fr;
  }

  .panorama-account-overview > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .panorama-account-overview > summary > span[data-panorama-account-toggle] {
    display: none;
  }

  .panorama-account-actions,
  .panorama-account-summary-grid,
  .panorama-account-fields {
    grid-template-columns: 1fr;
  }

  .panorama-account-actions {
    display: grid;
  }

  .panorama-account-actions button {
    min-height: 44px;
  }

  .panorama-summary-grid {
    grid-template-columns: 1fr;
  }

  .panorama-summary-grid article {
    min-height: 78px;
  }

  .panorama-module > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .panorama-module > summary span {
    display: none;
  }

  .panorama-module-body {
    padding: 15px;
  }

  .panorama-source-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panorama-source-state {
    flex: 0 1 auto;
  }

  .panorama-related-links,
  .panorama-module-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panorama-related-links button,
  .panorama-source-link,
  .panorama-module .text-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .panorama-section,
  .panorama-section *,
  .panorama-section *::before,
  .panorama-section *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
