:root {
  --bg: #f4f7fc;
  --panel: rgba(255, 255, 255, 0.42);
  --panel-strong: rgba(255, 255, 255, 0.62);
  --panel-soft: rgba(255, 255, 255, 0.3);
  --border: rgba(255, 255, 255, 0.8);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-dark: #0f172a;
  --emerald: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --slate: #475569;
  --violet: #7c3aed;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(96, 165, 250, 0.28), transparent 26%),
    radial-gradient(circle at 88% 25%, rgba(167, 139, 250, 0.18), transparent 30%),
    radial-gradient(circle at 40% 92%, rgba(52, 211, 153, 0.14), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

code {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.92em;
}

.shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 14px 14px;
  position: relative;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.5);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.brand-mark.large {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.05rem;
}

.brand-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 160ms ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.36);
  color: var(--text);
}

.sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.sidebar-link.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.sidebar-link-button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sidebar-user {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  margin-top: 12px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar-user-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.workspace {
  position: relative;
  flex: 1;
  padding: 14px 14px 14px 0;
  display: flex;
}

.workspace-panel {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: calc(100vh - 28px);
  padding: 34px 34px 38px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 40px 0 0 0;
  box-shadow:
    -10px -10px 30px rgba(255, 255, 255, 0.75),
    18px 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(40px);
}

.workspace-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
}

.workspace-glow-a {
  top: -14%;
  left: -10%;
  width: 42%;
  height: 36%;
  background: rgba(96, 165, 250, 0.22);
}

.workspace-glow-b {
  top: 18%;
  right: -10%;
  width: 42%;
  height: 42%;
  background: rgba(167, 139, 250, 0.16);
}

.workspace-glow-c {
  bottom: -16%;
  left: 26%;
  width: 34%;
  height: 32%;
  background: rgba(52, 211, 153, 0.13);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.workspace-header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.workspace-header p,
.section-hint,
.muted {
  color: var(--muted);
}

.workspace-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.search-box {
  width: min(320px, 100%);
}

.search-box input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
  transition: 160ms ease;
}

.search-box input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.84rem;
  color: #334155;
  font-weight: 700;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: 160ms ease;
}

.button.primary,
.button.dark {
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border-color: rgba(51, 65, 85, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.button.primary:hover,
.button.dark:hover {
  background: rgba(37, 99, 235, 0.94);
  border-color: rgba(59, 130, 246, 0.8);
}

.button.glass {
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(255, 255, 255, 0.82);
  color: #475569;
  backdrop-filter: blur(16px);
}

.button.glass:hover {
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
}

.button.danger {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.22);
  color: var(--rose);
}

.button.compact {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.button.wide {
  width: 100%;
}

.button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.text-danger {
  color: var(--rose);
}

.text-warning {
  color: var(--amber);
}

.sidebar-link:focus-visible,
.button:focus-visible,
.category-pill:focus-visible,
.recent-chip:focus-visible,
.service-card a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: 2px;
}

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

.overview-card {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 44px;
  height: 6px;
  border-radius: 0 0 999px 999px;
}

.overview-card.accent-blue::before {
  background: #60a5fa;
}

.overview-card.accent-amber::before {
  background: #fbbf24;
}

.overview-card.accent-emerald::before {
  background: #34d399;
}

.overview-card.accent-violet::before {
  background: #a78bfa;
}

.overview-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.overview-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.overview-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.glass-section,
.glass-form-card,
.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}

.glass-section {
  padding: 22px;
}

.glass-section.compact {
  padding: 18px 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.filter-grid,
.field-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.filter-actions,
.form-actions,
.row-actions,
.table-actions,
.toggle-row,
.service-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-actions {
  align-self: end;
}

.category-strip,
.recent-strip {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding-bottom: 2px;
}

.favorite-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-pill,
.recent-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px);
  font-weight: 700;
  color: #475569;
}

.category-pill span,
.recent-chip span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.category-pill.is-active {
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  border-color: rgba(30, 41, 59, 0.96);
}

.category-pill.is-active span {
  color: rgba(255, 255, 255, 0.75);
}

.recent-chip {
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
}

.hub-spotlight {
  padding: 22px 24px;
}

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

.spotlight-card,
.favorite-card,
.security-summary-card,
.security-info-item,
.policy-item,
.detail-meta-item,
.detail-hero-card {
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.spotlight-card {
  padding: 18px;
  border-radius: 22px;
}

.spotlight-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-card strong {
  display: block;
  margin: 6px 0;
  font-size: 1.08rem;
}

.spotlight-card p {
  margin: 0;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  min-height: 320px;
  transition: 180ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.service-card.is-muted {
  opacity: 0.72;
  filter: grayscale(0.15);
}

.service-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.service-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.service-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.service-title-link:hover {
  color: var(--blue);
}

.service-head p,
.service-body p {
  margin: 0;
  color: var(--muted);
}

.service-body {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.56);
  min-height: 94px;
}

.service-meta {
  display: grid;
  gap: 12px;
}

.service-meta div {
  display: grid;
  gap: 4px;
}

.service-meta span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.favorite-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
}

.favorite-card strong {
  display: block;
  margin-bottom: 6px;
}

.favorite-card p {
  margin: 0;
  color: var(--muted);
}

.favorite-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.service-tags span,
.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.42);
  color: #475569;
}

.mini-badge {
  background: rgba(251, 191, 36, 0.18);
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.34);
}

.mini-badge.accent {
  color: #7c2d12;
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.34);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: block;
}

.status-online {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.24);
}

.status-online i {
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.6);
}

.status-offline {
  background: rgba(244, 63, 94, 0.1);
  color: var(--rose);
  border-color: rgba(244, 63, 94, 0.2);
}

.status-offline i {
  background: var(--rose);
}

.status-unknown {
  background: rgba(100, 116, 139, 0.1);
  color: var(--slate);
  border-color: rgba(100, 116, 139, 0.18);
}

.status-unknown i {
  background: var(--slate);
}

.empty-card {
  min-height: 220px;
  justify-content: center;
}

.manage-table-shell {
  padding-bottom: 10px;
}

.manage-table-wrap {
  overflow: auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.manage-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.manage-table th,
.manage-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
}

.manage-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.18);
}

.manage-service-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.manage-service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  color: var(--blue);
}

.manage-service-cell strong,
.recent-chip strong {
  display: block;
}

.manage-service-cell span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.editor-stack {
  display: grid;
  gap: 20px;
}

.glass-form-card {
  padding: 22px;
}

.editor-form {
  display: grid;
  gap: 16px;
}

.toggle-row {
  margin-top: 4px;
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: #334155;
  font-weight: 700;
}

.toggle-field input {
  width: 18px;
  height: 18px;
}

.row-actions {
  margin-top: 18px;
}

.alert {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.18);
  color: var(--rose);
}

.alert.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.18);
  color: var(--emerald);
}

.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
}

.login-glow-a {
  top: 12%;
  left: 16%;
  width: 32%;
  height: 30%;
  background: rgba(96, 165, 250, 0.28);
}

.login-glow-b {
  right: 14%;
  bottom: 10%;
  width: 34%;
  height: 32%;
  background: rgba(167, 139, 250, 0.18);
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  padding: 34px 32px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.login-card.wide-card {
  width: min(760px, 100%);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.login-brand h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.login-brand p {
  margin: 8px 0 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form.compact-form {
  margin-top: 16px;
}

.otp-input {
  font-size: 1.3rem;
  letter-spacing: 0.24em;
  text-align: center;
  font-weight: 700;
}

.totp-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.totp-setup-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.totp-panel {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.totp-panel h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.totp-qr {
  display: block;
  width: min(100%, 220px);
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}

.totp-meta {
  display: grid;
  gap: 12px;
}

.totp-meta div {
  display: grid;
  gap: 4px;
}

.totp-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.totp-meta strong,
.totp-meta code {
  word-break: break-all;
}

.recovery-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

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

.recovery-grid code {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.recovery-actions {
  margin-top: 18px;
}

.action-form {
  flex: 1 1 240px;
}

.action-form .button {
  width: 100%;
}

.security-actions {
  justify-content: flex-end;
}

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

.service-group-section {
  padding: 22px;
}

.service-footer-split {
  align-items: flex-end;
}

.service-card-actions {
  justify-content: flex-end;
}

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

.security-summary-card {
  padding: 16px 18px;
  border-radius: 20px;
}

.security-summary-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.security-summary-card strong {
  display: block;
  margin-bottom: 6px;
}

.security-summary-card p {
  margin: 0;
  color: var(--muted);
}

.security-summary-card.is-danger {
  background: rgba(225, 29, 72, 0.1);
  border-color: rgba(225, 29, 72, 0.18);
}

.security-summary-card.is-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.18);
}

.security-layout,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.security-info-list,
.policy-list,
.detail-meta-list {
  display: grid;
  gap: 12px;
}

.security-info-item,
.policy-item,
.detail-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
}

.security-info-item span,
.detail-meta-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.policy-item p,
.detail-copy p,
.detail-hero-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.detail-hero-card {
  padding: 22px;
  border-radius: 26px;
}

.detail-hero-card strong {
  display: block;
  margin: 6px 0 8px;
}

.detail-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-tags {
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .overview-grid,
  .services-grid,
  .edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .favorite-strip,
  .spotlight-grid,
  .detail-hero,
  .security-summary-grid,
  .security-layout,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 14px 12px 0;
    gap: 12px;
  }

  .brand {
    margin-bottom: 0;
    padding: 0 4px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy span {
    font-size: 0.76rem;
  }

  .sidebar-nav,
  .sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sidebar-user {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
  }

  .workspace {
    padding: 0 12px 12px;
  }

  .workspace-panel {
    min-height: auto;
    border-radius: 30px;
    padding: 24px 20px 28px;
  }

  .workspace-header,
  .section-head,
  .service-head {
    flex-direction: column;
  }

  .overview-grid,
  .services-grid,
  .edit-grid,
  .favorite-strip,
  .spotlight-grid,
  .detail-hero,
  .security-summary-grid,
  .security-layout,
  .detail-grid,
  .field-grid.two-col,
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding-top: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-copy span {
    display: none;
  }

  .sidebar-nav,
  .sidebar-footer {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sidebar-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .workspace-header-actions,
  .filter-actions,
  .table-actions,
  .row-actions,
  .form-actions,
  .service-footer {
    width: 100%;
  }

  .button,
  .button.compact {
    width: 100%;
  }

  .totp-setup-grid {
    grid-template-columns: 1fr;
  }

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