:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #1e293b;
  background: #f4f7fa;
  font-synthesis: none;
  --navy: #14283f;
  --accent: #087f8c;
  --line: #e5ebf0;
  --muted: #66788a;
  --sidebar-width: 176px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 10px 17px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:not(:disabled):hover {
  filter: brightness(0.95);
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 19px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--accent);
}
.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 6px #087f8c15;
}
.secondary {
  background: white;
  border: 1px solid #d7e0e7;
  color: #34475b;
}
.text-button {
  background: transparent;
  color: var(--accent);
  padding: 5px 8px;
}
.full {
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.35;
}
.brand small {
  display: block;
  color: #b2c4d6;
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 400;
  margin-top: 5px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #15a4ae;
  color: #fff;
  font-size: 21px;
  border-radius: 12px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--navy);
  color: white;
  padding: 26px 12px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding-left: 6px;
  gap: 9px;
  font-size: 20px;
}
.nav-caption {
  font-size: 12px;
  letter-spacing: 2px;
  color: #91a6bb;
  margin: 48px 14px 16px;
}
.nav-item {
  width: 100%;
  text-align: left;
  background: none;
  color: #b9cad9;
  padding: 14px;
  margin-bottom: 7px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.nav-item span {
  width: 22px;
  font-size: 20px;
  font-weight: 400;
}
.nav-item.active {
  background: #ffffff13;
  color: white;
  border-left: 3px solid #37cad0;
  padding-left: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff14;
  padding: 20px 8px 0;
  font-size: 13px;
  color: #bfd0de;
}
.sidebar-bottom .muted {
  font-size: 12px;
  color: #94aabd;
  margin: 8px 0 0 14px;
}
.dot,
.badge i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28b6a1;
  margin-right: 6px;
}
.main {
  margin-left: var(--sidebar-width);
  min-width: 0;
  flex: 1;
}
header {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: #ffffffb8;
  gap: 20px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 16px;
  color: #b3bec8;
}
.breadcrumb b {
  font-weight: 500;
  color: #34475b;
}
.account {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
.account select {
  max-width: 190px;
  width: auto;
}
.content {
  padding: 28px 24px;
  max-width: 2200px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  margin: 5px 0 8px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading-actions .muted {
  font-size: 12px;
  margin-right: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 22px 24px;
}
.stat > span {
  font-size: 14px;
  color: #53687d;
}
.stat strong {
  display: block;
  font-size: 35px;
  font-weight: 600;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.stat small {
  color: #778797;
}
.stat.warn {
  border-color: #ebc69a;
  background: #fffcf7;
}
.stat.warn strong {
  color: #ac651e;
}
.mode-strip {
  border: 1px solid #cfe8e9;
  background: #edf8f8;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.mode-symbol {
  background: #d5eeed;
  color: var(--accent);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 23px;
}
.mode-strip b {
  font-size: 15px;
}
.mode-strip span:not(.mode-symbol) {
  font-size: 13px;
  margin-left: 12px;
  color: var(--accent);
}
.mode-strip small {
  display: block;
  margin-top: 3px;
  color: #617f86;
}
.mode-strip button {
  margin-left: auto;
}
.workflow-summary {
  border: 1px solid #cfe8e9;
  background: linear-gradient(115deg, #edf8f8, #f7fbfc);
  border-radius: 12px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.workflow-summary h2 {
  margin: 5px 0 4px;
}
.workflow-summary p,
.workflow-card p,
.workflow-description > p {
  color: var(--muted);
  font-size: 14px;
}
.workflow-count {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #d5eeed;
  color: var(--accent);
  font-size: 28px;
  font-weight: 650;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.workflow-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.inline-settings {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.inline-settings .dialog-body {
  padding: 0;
}
.inline-settings .dialog-heading {
  flex-wrap: wrap;
  gap: 12px;
}
.inline-settings .dialog-heading h2 {
  font-size: 18px;
}
.inline-settings form {
  max-width: 760px;
}
.workflow-card.with-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.with-config .inline-settings {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  border-left: 0;
}
.compact-heading,
.compact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.compact-heading {
  justify-content: space-between;
}
.compact-heading .check {
  margin: 0;
}
.compact-row {
  align-items: flex-end;
  margin: 12px 0;
}
.compact-row label {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.compact-row button {
  flex-shrink: 0;
  min-height: 43px;
}
.compact-config [role="alert"]:empty {
  display: none;
}
.manual-trigger {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.tenant-picker-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}
.tenant-picker small { color: var(--muted); }
#batch-form .tenant-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
#batch-form .tenant-picker-list .check { font-size: 14px; overflow-wrap: anywhere; }
.batch-unavailable { margin-top: 14px; color: var(--muted); font-size: 13px; }
.batch-confirmation { margin: 16px 0 8px; font-size: 13px; }
.schedule-scope {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}
.schedule-scope[hidden] { display: none; }
.schedule-tenant-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--muted);
}
.schedule-tenant-summary span { min-width: 0; overflow-wrap: anywhere; }
.schedule-tenant-summary button { flex-shrink: 0; }
.schedule-scope .tenant-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}
.schedule-scope .tenant-picker-list .check { margin: 6px 0; font-size: 13px; }
.schedule-scope > .check { margin-top: 0; }
.schedule-scope .tenant-picker-list {
  max-height: 150px;
  margin: 8px 0;
  background: white;
}
@media (max-width: 1000px) {
  .workflow-card.with-config { grid-template-columns: 1fr; gap: 20px; }
  .with-config .inline-settings { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}
.workflow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.workflow-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e7f5f4;
  color: var(--accent);
  font-size: 20px;
  font-weight: 650;
}
.workflow-card h2 {
  margin: 7px 0 8px;
  font-size: 21px;
}
.workflow-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin: 20px 0;
  font-size: 13px;
}
.workflow-card dt {
  color: #7b8d9d;
}
.workflow-card dd {
  margin: 0;
  color: #405469;
}
.workflow-card.with-config {
  padding: 16px;
  gap: 16px;
  min-width: 0;
  align-items: start;
  align-content: start;
}
.with-config .workflow-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
}
.with-config .workflow-card-top {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.with-config .workflow-icon,
.with-config .workflow-info > .eyebrow,
.with-config .workflow-info > dl {
  display: none;
}
.workflow-card > p,
.workflow-card > dl {
  display: none;
}
.with-config .workflow-info .workflow-detail {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
}
.with-config .workflow-info h2 {
  grid-column: 1;
  grid-row: 1;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 6px;
}
.with-config .workflow-info > p {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 13px;
}
.with-config .inline-settings {
  padding: 12px 0 0;
}
.with-config .compact-heading {
  font-size: 14px;
}
.with-config .compact-row {
  margin: 6px 0;
  gap: 8px;
}
.with-config .compact-row label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  font-size: 12px;
}
.with-config .compact-row input {
  min-width: 0;
  margin: 0;
  padding: 6px 9px;
  height: 36px;
  flex: auto;
  font-size: 13px;
}
.with-config button {
  padding: 6px 12px;
  min-height: 36px;
  font-size: 13px;
}
.with-config .compact-config > small {
  font-size: 12px;
}
.with-config .manual-trigger {
  margin-top: 8px;
  padding-top: 8px;
}
.with-config .manual-trigger > b {
  display: none;
}
.with-config .manual-trigger .compact-row {
  flex-wrap: wrap;
}
.with-config .manual-trigger .compact-row label {
  flex: 1 1 140px;
}
.with-config .manual-trigger .compact-row button {
  margin-left: 0;
}
.dispatch-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.with-config .dispatch-actions {
  width: 100%;
  justify-content: flex-end;
}
.with-config .schedule-scope .tenant-picker-list {
  grid-template-columns: 1fr;
  padding-inline: 8px;
}
.with-config .schedule-scope .check {
  overflow-wrap: anywhere;
}
@media (max-width: 1359px) {
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .workflow-card.with-config { gap: 12px; }
  .with-config .inline-settings { padding: 12px 0 0; }
}
.workflow-description {
  padding-bottom: 44px;
}
.workflow-description .dialog-heading {
  align-items: flex-start;
}
.workflow-description .dialog-heading > div {
  min-width: 0;
}
.workflow-description .dialog-heading h2 {
  overflow-wrap: anywhere;
}
.workflow-description .close {
  flex: 0 0 auto;
}
.workflow-overview {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #d9ecea;
  border-radius: 12px;
  background: linear-gradient(145deg, #f2faf9, #f8fbfd);
}
.workflow-overview p {
  margin: 8px 0 0;
  color: #405469;
  font-size: 14px;
  line-height: 1.85;
}
.workflow-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 6px;
}
.workflow-facts > div {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.workflow-facts span {
  color: #81909e;
  font-size: 12px;
}
.workflow-facts p {
  margin: 6px 0 0;
  color: #354a5e;
  font-size: 13px;
  line-height: 1.6;
}
.workflow-detail-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.workflow-detail-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.workflow-detail-section > p {
  margin: 0;
  color: #405469;
  font-size: 14px;
  line-height: 1.8;
}
.workflow-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #405469;
  font-size: 14px;
  line-height: 1.75;
}
.workflow-detail-list li::marker {
  color: var(--accent);
  font-weight: 650;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.card-heading {
  padding: 23px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.card-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.task-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #e3eaf0;
}
.tenant-businesses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin: 20px 0;
}
.tenant-business {
  padding: 20px 24px;
}
.tenant-business p, .tenant-business small {
  color: #667b91;
}
.business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.task-filters label {
  display: grid;
  gap: 6px;
  flex: 1 1 150px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}
.task-filters input, .task-filters select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}
.filters {
  display: flex;
  gap: 10px;
}
.filters input {
  max-width: 205px;
}
input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9e2e9;
  border-radius: 7px;
  background: white;
  color: #26394c;
  font-size: 14px;
  min-height: 42px;
}
input:focus,
select:focus {
  border-color: var(--accent);
}
input:disabled {
  background: #f5f7f9;
  color: #718096;
}
.filters select {
  width: 130px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
  text-align: left;
}
thead {
  background: #f8fafc;
  color: #708194;
  font-size: 13px;
  font-weight: 400;
}
th {
  padding: 12px 24px;
  font-weight: 500;
  border-block: 1px solid var(--line);
}
td {
  padding: 19px 24px;
  border-bottom: 1px solid #eff3f6;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  font-weight: 500;
}
td small {
  display: block;
  color: #7b8d9d;
  margin-top: 4px;
}
td small span {
  margin-left: 12px;
  font-size: 12px;
}
tbody tr:hover {
  background: #fafcfd;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 12px;
  white-space: nowrap;
  background: #eef2f6;
  color: #53687d;
}
.badge i {
  background: currentColor;
  margin-right: 3px;
  width: 5px;
  height: 5px;
}
.succeeded,
.remote {
  background: #e8f6f2;
  color: #168167;
}
.running,
.claimed {
  background: #e9f2ff;
  color: #376dac;
}
.needs_attention,
.failed {
  background: #fff2e3;
  color: #a76a22;
}
.pending {
  background: #edf1f6;
  color: #5c6e83;
}
.cancelled {
  color: #788591;
}
.empty {
  padding: 65px 24px;
  text-align: center;
  color: #526779;
}
.empty b {
  font-size: 17px;
  font-weight: 500;
}
.empty p {
  font-size: 14px;
  margin-top: 10px;
  color: #7b8d9d;
}
.device {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px;
}
.device-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #eef3f8;
  color: #71899d;
  border-radius: 10px;
}
.device > span:last-child {
  margin-left: auto;
}
.device p {
  color: #7b8d9d;
  margin: 4px 0;
}
.device small {
  color: #7b8d9d;
}
.device h3 .badge {
  margin-left: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(400px, 1.6fr) minmax(240px, 1fr);
  gap: 40px;
}
.form-body {
  padding: 0 25px 28px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 20px 0;
}
label input,
label select {
  display: block;
  margin-top: 8px;
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-row > * {
  flex: 1;
  min-width: 0;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
details {
  border-block: 1px solid var(--line);
  padding: 15px 0;
  font-size: 14px;
  color: #526779;
}
summary {
  cursor: pointer;
}
.confirmation {
  margin-top: 24px;
}
.form-body .primary {
  margin-top: 24px;
}
.settings-help {
  padding: 20px 10px;
}
.settings-help h2 {
  font-size: 28px;
  margin-top: 10px;
  line-height: 1.5;
}
.settings-help ol {
  padding-left: 22px;
  margin-top: 28px;
}
.settings-help li {
  padding-left: 7px;
  margin-bottom: 23px;
  color: var(--accent);
}
.settings-help li b {
  color: #34475b;
  font-size: 15px;
  font-weight: 500;
}
.settings-help li p {
  font-size: 14px;
  color: #7b8d9d;
  margin-top: 5px;
}
.help-note {
  font-size: 13px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #687e90;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
}
.table-scroll {
  overflow-x: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(470px, calc(100vw - 32px));
  padding: 0;
  color: #26394c;
  box-shadow: 0 25px 100px #16283f33;
}
dialog::backdrop {
  background: #16283f55;
  backdrop-filter: blur(2px);
}
.dialog-body {
  padding: 28px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.close {
  font-size: 25px;
  font-weight: 400;
  padding: 0 8px;
  background: transparent;
  color: #718096;
}
.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(530px, 100vw);
  max-width: 100vw;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 0;
}
.drawer dl {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px 10px;
  font-size: 14px;
  margin: 30px 0;
}
.drawer dt {
  color: var(--muted);
}
.drawer dd {
  margin: 0;
}
.drawer h3 {
  margin: 28px 0 15px;
}
.error-note {
  padding: 16px;
  border: 1px solid #f1ddba;
  background: #fff9ef;
  color: #935d1e;
  border-radius: 8px;
  font-size: 14px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  border-left: 2px solid #dce8ee;
  padding: 0 0 24px 18px;
  margin-left: 5px;
  font-size: 14px;
  position: relative;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #85acb9;
}
.timeline time {
  font-size: 12px;
  color: #7b8d9d;
}
.danger {
  color: #a86431;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
}
.login-story {
  background: var(--navy);
  color: white;
  padding: 55px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story .brand small {
  margin: 0 0 0 10px;
  font-size: 11px;
}
.login-story h1 {
  font-size: 48px;
  line-height: 1.4;
  margin: 24px 0;
}
.login-story p {
  color: #aebfd0;
  line-height: 1.9;
}
.login-story .eyebrow {
  color: #5dc9cb;
}
.login-story > small {
  color: #849bb2;
}
.flow {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 44px;
  font-size: 13px;
  color: #b9d2dc;
}
.flow span {
  border: 1px solid #ffffff20;
  padding: 10px;
  border-radius: 6px;
}
.flow b {
  color: #458e9f;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-panel form {
  width: min(350px, 100%);
}
.login-panel h2 {
  font-size: 28px;
  margin: 10px 0;
}
.login-panel .muted {
  margin-bottom: 35px;
}
.login-panel label {
  margin: 22px 0;
}
.login-panel input {
  padding: 13px;
}
.login-note {
  font-size: 13px;
  line-height: 1.8;
  color: #8796a6;
  text-align: center;
  margin-top: 30px;
}
#login-error,
#create-error {
  color: #a54d29;
  font-size: 14px;
  margin: 15px 0;
}
#connection:not(:empty) {
  border: 1px solid #efcfa6;
  background: #fff8ed;
  color: #945c1f;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}
#notice {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(620px, 90vw);
  z-index: 10;
  border: 1px solid #bdded9;
  background: #f0faf7;
  color: #235c50;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 30px #14283f20;
  font-size: 14px;
}
#notice.show {
  display: block;
}
#notice.error {
  border-color: #e7c2a2;
  background: #fff8ed;
  color: #945c1f;
}
@media (max-width: 1150px) {
  .content {
    padding: 28px 24px;
  }
  header {
    padding-inline: 24px;
  }
  .heading-actions .muted {
    display: none;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .card-heading {
    flex-wrap: wrap;
  }
  .settings-grid {
    gap: 20px;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 40px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px 20px;
  }
  .sidebar .brand {
    font-size: 18px;
  }
  .sidebar .brand small,
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 15px;
  }
  .nav-item {
    padding: 8px !important;
    border: 0 !important;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    margin: 0;
  }
  .nav-item span {
    font-size: 17px;
  }
  .workspace {
    display: block;
  }
  .main {
    margin: 0;
  }
  header {
    height: auto;
    min-height: 64px;
    padding: 14px 20px;
  }
  .breadcrumb {
    display: none;
  }
  .account {
    margin-left: auto;
    flex-wrap: wrap;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    gap: 8px 12px;
  }
  .content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .heading-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .mode-strip {
    padding: 15px;
    gap: 10px;
  }
  .mode-strip span:not(.mode-symbol) {
    display: block;
    margin: 0;
  }
  .mode-strip button {
    white-space: nowrap;
  }
  .workflow-summary {
    padding: 19px;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .workflow-description {
    padding: 22px 18px 36px;
  }
  .workflow-description .dialog-heading h2 {
    font-size: 21px;
  }
  .workflow-overview {
    padding: 16px;
  }
  .workflow-facts {
    grid-template-columns: 1fr;
  }
  .card-heading {
    padding: 20px;
  }
  .filters {
    width: 100%;
  }
  .filters input {
    max-width: none;
  }
  .settings-grid {
    display: block;
  }
  .settings-help {
    padding: 30px 10px;
  }
  .device {
    padding: 20px 15px;
    gap: 12px;
  }
  .device-icon {
    display: none;
  }
  .device h3 .badge {
    display: block;
    width: max-content;
    margin: 5px 0;
  }
  .device .mono {
    font-size: 12px;
  }
  .login {
    display: block;
  }
  .login-story {
    min-height: auto;
    padding: 28px;
  }
  .login-story > div:nth-child(2),
  .login-story > small {
    display: none;
  }
  .login-panel {
    min-height: calc(100vh - 100px);
    padding: 35px 25px;
  }
  .form-row {
    gap: 12px;
  }
}
