:root {
  --bg: #f5f7fa;
  --paper: #fff;
  --ink: #17273c;
  --muted: #798699;
  --line: #e8edf3;
  --teal: #087e82;
  --teal-dark: #076568;
  --navy: #102b38;
  --radius: 16px;
  --shadow: 0 5px 24px #152c4310;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #45b5b6;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.7;
  letter-spacing: -0.7px;
  margin-bottom: 7px;
}
h2 {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 10px;
}
h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
small {
  font-size: 11px;
}
code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
code {
  background: #eef3f6;
  border-radius: 4px;
  padding: 2px 5px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #087e821c;
  border-color: var(--teal);
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #98a3b2;
  font-size: 12px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
}
label input,
label textarea {
  margin-top: 7px;
}
form {
  margin: 0;
}
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 246px;
  background: var(--navy);
  color: #e9f3f5;
  padding: 34px 20px 0;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.4;
  padding: 0 10px;
}
.brand-mark {
  height: 45px;
  width: 45px;
  background: #1f8790;
  border-radius: 13px;
  display: grid;
  place-content: center;
  font-size: 27px;
  position: relative;
}
.brand-mark span {
  position: absolute;
  top: -1px;
  right: 4px;
  font-size: 20px;
  color: #81dfd1;
}
.brand-light {
  font-weight: 400;
  color: #94d1d1;
}
.brand small {
  display: block;
  direction: rtl;
  font-weight: 400;
  font-size: 10px;
  color: #91aeb7;
  letter-spacing: 0.4px;
}
.sidebar-label {
  font-size: 10px;
  color: #73919e;
  margin: 48px 14px 15px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 10px;
  padding: 13px 14px;
  margin: 4px 0;
  color: #b6cbd3;
  font-size: 12px;
  transition: background 0.15s;
}
.nav-item span {
  font-size: 23px;
  line-height: 1;
}
.nav-item.selected,
.nav-item:hover {
  background: #1d414e;
  color: #fff;
}
.nav-item.selected {
  box-shadow: inset -3px 0 #4cc3ba;
}
.sidebar-card {
  border: 1px solid #31515e;
  border-radius: 12px;
  padding: 17px 14px;
  font-size: 11px;
  margin-top: auto;
  color: #d6e8e9;
  background: #183541;
}
.sidebar-card p {
  font-size: 11px;
  color: #95b0ba;
  margin: 8px 0 13px;
  line-height: 1.9;
}
.status-dot,
.mini-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #61d0b5;
  border-radius: 50%;
  margin-left: 5px;
  box-shadow: 0 0 0 4px #61d0b512;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 25px 2px;
  border-top: 1px solid #31515e;
  margin-top: 26px;
  font-size: 12px;
}
.sidebar-footer small {
  display: block;
  color: #93aeb9;
  font-size: 10px;
}
.sidebar-footer form {
  margin-right: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #33515e;
  color: #b9e8e4;
  font-weight: bold;
}
.logout {
  border: 0;
  background: transparent;
  color: #abc5cd;
  font-size: 24px;
}
.workspace {
  margin-right: 246px;
  min-height: 100vh;
}
.topbar {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 38px;
  border-bottom: 1px solid var(--line);
  background: #ffffffd9;
  font-size: 11px;
  color: #929cac;
}
.topbar strong {
  font-weight: 500;
  color: #4a5b70;
}
.separator {
  padding: 0 13px;
  color: #c7ced7;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 20px;
}
.timezone {
  color: #7a8998;
  font-size: 10px;
}
.main {
  max-width: 1600px;
  margin: auto;
  padding: 34px 38px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.7px;
  margin-bottom: 7px;
}
.accent {
  color: var(--teal);
  margin: 0 3px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 9px #087e8220;
}
.primary:hover {
  background: var(--teal-dark);
}
.secondary {
  background: #fff;
  border-color: #dfe6ed;
  color: #43556d;
}
.secondary:hover {
  background: #f5f8fa;
}
.danger {
  background: #fff1f1;
  color: #b54848;
  border-color: #f5dada;
}
.light {
  background: #fff;
  color: #154a56;
}
.ghost {
  background: transparent;
  border-color: #5b8088;
  color: #f0fbfc;
}
.wide {
  width: 100%;
}
.tag {
  display: inline-block;
  white-space: nowrap;
  border: 1px solid #cde8e4;
  background: #edf8f5;
  color: #218079;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.8;
}
.tag.dark {
  background: #214d58;
  color: #a4e0d4;
  border-color: #3b656d;
  font-size: 8px;
}
.tag.subtle {
  color: #8c99a8;
  background: #f6f8fa;
  border-color: #edf0f4;
}
.notice {
  border: 1px solid #d5e9e6;
  background: #edf7f5;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 12px;
  margin-bottom: 24px;
  line-height: 1.9;
}
.notice p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #608480;
}
.notice.mock-banner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mock-banner .tag {
  margin-right: auto;
}
.banner-icon {
  font-size: 30px;
  color: var(--teal);
  background: #dff0ed;
  border-radius: 9px;
  height: 43px;
  width: 43px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
}
.notice.warning {
  background: #fff9eb;
  border-color: #f1e1b9;
  color: #8b6928;
}
.notice.error {
  background: #fff1f1;
  border-color: #f5d4d4;
  color: #a84040;
}
.notice.success {
  color: #247d69;
  background: #edf8f2;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  background: var(--paper);
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.stat-label {
  display: block;
  font-size: 11px;
  color: #7d8a9e;
  margin-bottom: 12px;
  padding-left: 25px;
}
.stat strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 35px;
  line-height: 1.3;
  font-weight: 600;
}
.stat small {
  display: block;
  color: #99a4b3;
  margin-top: 12px;
  font-size: 9px;
}
.stat-icon {
  position: absolute;
  top: 18px;
  left: 17px;
  border-radius: 10px;
  width: 31px;
  height: 31px;
  display: grid;
  place-content: center;
  font-size: 20px;
}
.stat-icon.blue {
  color: #5c86b7;
  background: #edf3fc;
}
.stat-icon.green {
  color: #299a83;
  background: #ecf8f3;
}
.stat-icon.orange {
  color: #c89a48;
  background: #fcf5e9;
}
.stat-icon.purple {
  color: #9c83c8;
  background: #f4f0fb;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 23px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  margin-bottom: 0;
  font-size: 14px;
}
.panel-heading p {
  color: #97a0af;
  font-size: 10px;
  margin: 5px 0 0;
}
.count {
  font-family: Arial, sans-serif;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  background: #f0f4f7;
  border: 1px solid #e5ebf1;
  border-radius: 6px;
  min-width: 25px;
  height: 23px;
  margin-right: 6px;
  color: #758398;
}
.panel-body {
  padding: 22px 23px;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 17px 23px;
}
.filters .search {
  flex: 1;
}
.filters input,
.filters select {
  margin: 0;
  padding: 9px 12px;
  font-size: 11px;
  background: #fcfdfe;
}
.filters select {
  max-width: 155px;
}
.filters .button {
  padding: 8px 14px;
  font-size: 11px;
}
.clear {
  font-size: 11px;
  color: var(--teal);
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: right;
}
th {
  background: #f9fafc;
  color: #8a96a7;
  font-size: 9px;
  font-weight: 500;
  border-block: 1px solid var(--line);
  padding: 13px 15px;
}
td {
  padding: 17px 15px;
  border-bottom: 1px solid #f0f3f6;
  font-size: 11px;
}
tr:last-child td {
  border-bottom: 0;
}
th:first-child,
td:first-child {
  padding-right: 23px;
}
.subscriber-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  max-width: 230px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.subscriber-name:hover {
  color: var(--teal);
}
td small {
  display: block;
  color: #97a3b3;
  font-size: 9px;
  margin-top: 5px;
}
.date-cell {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #68778d;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 9px;
  white-space: nowrap;
}
.pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pill.active {
  background: #edf8f3;
  color: #2f9679;
}
.pill.suspended {
  background: #f3f1fb;
  color: #9674b6;
}
.pill.expired {
  background: #fff3ee;
  color: #c3805b;
}
.pill.inactive {
  background: #f1f4f8;
  color: #8a96a8;
}
.sync {
  font-size: 9px;
  display: inline-block;
  white-space: nowrap;
}
.sync.ok {
  color: #5e9c8a;
}
.sync.waiting {
  color: #ba8e4b;
}
.row-action {
  display: grid;
  place-content: center;
  width: 25px;
  height: 25px;
  background: #f6f8fa;
  border-radius: 6px;
  color: #8396a5;
}
.row-action:hover {
  background: #e7f3f0;
  color: var(--teal);
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 23px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #98a4b3;
  background: #fdfefe;
}
.dashboard-aside {
  display: grid;
  gap: 21px;
}
.dashboard-aside .panel-heading {
  padding: 18px 20px;
}
.dashboard-aside .panel-body {
  padding: 19px 20px;
}
.adapter-name {
  font-weight: 600;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
  line-height: 1.9;
}
.compact-dl {
  margin: 18px 0;
}
.compact-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 11px 0;
  font-size: 9px;
}
.compact-dl dt {
  color: #8c99a9;
}
.compact-dl dd {
  margin: 0;
  font-size: 9px;
  color: #60728a;
}
.mini-dot {
  width: 6px;
  height: 6px;
}
.mini-dot.offline {
  background: #d39554;
  box-shadow: 0 0 0 4px #d3955412;
}
.activity-list {
  display: grid;
  gap: 0;
}
.activity {
  display: flex;
  gap: 13px;
  padding-bottom: 17px;
  font-size: 10px;
  position: relative;
}
.activity:not(:last-child):before {
  content: "";
  position: absolute;
  right: 10px;
  top: 26px;
  width: 1px;
  height: calc(100% - 29px);
  background: #edf1f5;
}
.activity:last-child {
  padding-bottom: 0;
}
.activity strong {
  font-size: 10px;
  font-weight: 500;
}
.activity small {
  display: block;
  color: #9ba6b4;
  font-size: 9px;
  margin-top: 2px;
}
.activity-icon {
  width: 22px;
  height: 22px;
  border: 1px solid #e9eef3;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: #68a297;
  flex-shrink: 0;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #a4afbd;
  font-size: 9px;
  padding: 20px 38px;
  max-width: 1600px;
  margin: auto;
}
.empty-state {
  text-align: center;
  padding: 55px 25px;
}
.empty-state > span {
  display: inline-grid;
  place-items: center;
  background: #edf7f4;
  color: #78aca2;
  border-radius: 15px;
  width: 55px;
  height: 55px;
  font-size: 30px;
  margin-bottom: 20px;
}
.empty-state h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
}
.back-link {
  display: inline-block;
  color: #708798;
  font-size: 11px;
  margin-bottom: 19px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 27px;
  max-width: 1150px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stack h3,
.stack p {
  margin-bottom: 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.optional {
  font-size: 10px;
  color: #9ca9b8;
  font-weight: 400;
  margin-right: 5px;
}
.form-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}
.field-help {
  font-size: 10px;
  color: #8796aa;
  margin: 12px 0 0;
  line-height: 2;
}
.stack .field-help {
  margin-top: -10px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
}
.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
  margin: 0;
}
.form-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 4px;
}
.info-card {
  background: #edf4f5;
  border: 1px solid #dce9eb;
  border-radius: 15px;
  padding: 30px 25px;
}
.info-card h2 {
  font-size: 18px;
  margin: 10px 0 20px;
}
.info-card ol {
  padding-right: 18px;
  color: #5e7884;
  font-size: 12px;
  line-height: 2.6;
  margin-bottom: 26px;
}
.info-card .notice {
  font-size: 11px;
  padding: 13px;
  margin-bottom: 17px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 25px;
  align-items: start;
}
.detail-dl {
  margin: 0;
}
.detail-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #f0f3f7;
  padding: 13px 0;
  font-size: 12px;
}
.detail-dl > div:first-child {
  padding-top: 0;
}
.detail-dl dt {
  color: #8b99a9;
}
.detail-dl dd {
  margin: 0;
  color: #475f74;
}
.notes {
  padding: 18px;
  background: #f7f9fb;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 12px;
}
.notes p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
.action-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.connection-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #163844, #1b5a60);
  color: white;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.connection-card .tag {
  align-self: flex-start;
}
.connection-card h2 {
  font-size: 19px;
  margin: 4px 0 0;
}
.connection-card p {
  font-size: 12px;
  color: #bad8db;
  margin: 0 0 4px;
}
.connection-card small {
  font-size: 10px;
  color: #a0c4ca;
  margin-top: 4px;
}
.section-gap {
  margin-top: 25px;
}
.qr-panel {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 35px;
}
.qr-panel img {
  width: min(100%, 420px);
  height: auto;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.qr-panel ol {
  padding-right: 18px;
  line-height: 2.5;
  font-size: 12px;
}
.qr-panel p {
  font-size: 12px;
}
.error-panel {
  padding: 45px;
  max-width: 650px;
  margin: 8vh auto;
}
.login-main {
  max-width: 1150px;
  min-height: 100vh;
  padding: 65px 30px;
  margin: auto;
  display: grid;
  place-items: center;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 25px 80px #142d4210;
  overflow: hidden;
  width: 100%;
  min-height: 650px;
}
.login-intro {
  background: radial-gradient(ellipse at top left, #23565c, #102b38 75%);
  color: #e5f3f3;
  padding: 54px 45px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.login-intro h1 {
  font-family: Arial, sans-serif;
  font-size: 58px;
  letter-spacing: -2px;
  line-height: 1.3;
  margin: 15px 0 30px;
}
.login-intro h1 > span:first-child {
  font-weight: 300;
  color: #a0d3d0;
}
.logo-dot {
  color: #6bcebb;
}
.eyebrow.light {
  color: #8cbabb;
  letter-spacing: 2px;
  font-size: 9px;
}
.login-intro h2 {
  font-size: 28px;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.login-intro p {
  color: #8fbbc3;
  font-size: 12px;
  max-width: 300px;
  line-height: 2.2;
}
.intro-lines {
  display: grid;
  gap: 13px;
  margin-top: 16px;
  color: #64aaa8;
  font-size: 10px;
}
.intro-lines b {
  font-size: 11px;
  color: #b9d4d9;
  margin-right: 14px;
  font-weight: 400;
}
.login-intro > small {
  margin-top: auto;
  padding-top: 28px;
  color: #70969e;
  font-size: 9px;
}
.login-card {
  padding: 65px 48px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.login-card > .tag {
  align-self: flex-start;
  margin-bottom: 27px;
}
.login-card h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.login-card > p {
  font-size: 12px;
  margin-bottom: 30px;
}
.login-card .stack {
  gap: 20px;
}
.login-card .button {
  margin-top: 8px;
  padding: 13px;
}
.login-note {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
  color: #98a6b4;
  font-size: 10px;
  line-height: 2;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  right: 260px;
  top: -80px;
  z-index: 10;
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
}
.skip:focus {
  top: 10px;
}
@media (min-width: 1600px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .stat {
    padding: 25px;
  }
}
@media (max-width: 1300px) {
  .sidebar {
    width: 215px;
    padding-inline: 15px;
  }
  .workspace {
    margin-right: 215px;
  }
  .main {
    padding: 28px 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-aside {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 20px 16px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat small {
    font-size: 8px;
  }
  .qr-panel {
    flex-direction: column;
  }
  .page-footer {
    padding-inline: 25px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px 22px;
    flex-direction: row;
    align-items: center;
    gap: 25px;
  }
  .brand {
    padding: 0;
    font-size: 22px;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
    font-size: 23px;
  }
  .sidebar-label,
  .sidebar-card,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 12px;
    margin-right: auto;
  }
  .nav-item {
    padding: 9px 12px;
    font-size: 11px;
  }
  .nav-item span {
    font-size: 19px;
  }
  .workspace {
    margin-right: 0;
  }
  .topbar {
    min-height: 58px;
  }
  .main {
    padding: 26px 23px;
  }
  .topbar .timezone {
    display: none;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .login-layout {
    min-height: 600px;
  }
  .login-intro {
    padding: 40px 30px;
  }
  .login-card {
    padding: 45px 30px;
  }
  .login-intro h2 {
    font-size: 24px;
  }
  .skip {
    right: 15px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  }
}
@media (max-width: 700px) {
  .sidebar {
    padding: 14px 17px;
    gap: 12px;
  }
  .brand small {
    display: none;
  }
  .brand {
    font-size: 21px;
    gap: 8px;
  }
  .brand-mark {
    width: 31px;
    height: 33px;
    border-radius: 9px;
  }
  .sidebar nav {
    gap: 5px;
  }
  .nav-item {
    font-size: 0;
    padding: 9px 10px;
    margin: 0;
  }
  .nav-item span {
    font-size: 23px;
  }
  .topbar {
    padding: 12px 18px;
    font-size: 10px;
    min-height: 53px;
  }
  .topbar-end {
    gap: 0;
  }
  .separator {
    padding: 0 7px;
  }
  .main {
    padding: 25px 17px 15px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 22px;
    line-height: 1.7;
    letter-spacing: -0.5px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .page-heading > .button {
    padding: 9px 11px;
    font-size: 10px;
    margin-top: 20px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .notice.mock-banner {
    padding: 15px;
    gap: 12px;
    align-items: flex-start;
  }
  .mock-banner > .tag {
    display: none;
  }
  .banner-icon {
    width: 33px;
    height: 33px;
    font-size: 24px;
  }
  .notice strong {
    font-size: 11px;
  }
  .notice p {
    font-size: 10px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 30px;
  }
  .stat small {
    font-size: 8px;
    line-height: 1.8;
  }
  .stat-label {
    margin-bottom: 10px;
    font-size: 10px;
  }
  .stat-icon {
    height: 25px;
    width: 25px;
    font-size: 16px;
    left: 13px;
    top: 14px;
  }
  .panel-heading {
    padding: 18px 16px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .panel-heading > .tag {
    font-size: 8px;
  }
  .filters {
    flex-wrap: wrap;
    padding: 15px;
    gap: 8px;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .filters select {
    max-width: 190px;
    font-size: 10px;
  }
  .filters label:not(.search) {
    flex: 1;
  }
  .filters select {
    width: 100%;
    max-width: 100%;
  }
  .filters .button {
    padding: 8px 15px;
  }
  .table-footer {
    padding: 13px 15px;
    display: block;
    line-height: 2;
  }
  .table-footer > span {
    display: block;
  }
  .dashboard-aside {
    grid-template-columns: 1fr;
  }
  .page-footer {
    padding: 18px;
    font-size: 8px;
    gap: 10px;
  }
  .form-layout,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .panel-body {
    padding: 20px 17px;
  }
  .form-layout > aside {
    order: 2;
  }
  .info-card {
    padding: 24px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .two-col {
    gap: 12px;
  }
  .two-col label {
    font-size: 11px;
  }
  .detail-dl > div {
    font-size: 11px;
  }
  .detail-grid .stack {
    gap: 18px;
  }
  .connection-card {
    padding: 25px;
  }
  .inline-badges {
    flex-wrap: wrap;
    gap: 8px;
  }
  .qr-panel {
    padding: 22px;
    gap: 20px;
  }
  .qr-panel img {
    width: 100%;
    max-width: 360px;
  }
  .login-main {
    padding: 20px 17px;
    display: block;
    min-height: 100vh;
  }
  .login-layout {
    grid-template-columns: 1fr;
    border-radius: 18px;
    min-height: 0;
  }
  .login-intro {
    padding: 28px 27px;
  }
  .login-intro h1 {
    font-size: 43px;
    margin: 8px 0;
  }
  .login-intro h2 {
    font-size: 21px;
    margin: 8px 0;
  }
  .login-intro h2 br {
    display: none;
  }
  .login-intro p,
  .intro-lines,
  .login-intro > small {
    display: none;
  }
  .login-intro .eyebrow {
    font-size: 8px;
  }
  .login-card {
    padding: 30px 26px;
  }
  .login-card > .tag {
    margin-bottom: 20px;
  }
  .login-card h2 {
    font-size: 24px;
  }
  .login-note {
    font-size: 9px;
  }
  .error-panel {
    padding: 28px;
    margin-top: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.mobile-logout {
  display: none;
}
@media (max-width: 950px) {
  .mobile-logout {
    display: block;
  }
  .mobile-logout .logout {
    color: var(--muted);
  }
}

/* Secret-bearing security pages: responsive, locally rendered, no external fonts/assets. */
.security-card { width: 100%; max-width: 800px; margin: 0 auto; }
.mfa-qr { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: white; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 16px; overflow-wrap: anywhere; }
.recovery-codes code { font-size: 14px; letter-spacing: .03em; user-select: all; }
