@font-face {
  font-family: Plex;
  src: url('fonts/ibmplex-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F
}

@font-face {
  font-family: Plex;
  src: url('fonts/ibmplex-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-024F
}

@font-face {
  font-family: Plex;
  src: url('fonts/ibmplex-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-024F
}

@font-face {
  font-family: Plex;
  src: url('fonts/ibmplex-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-024F
}

:root {
  --bg: #f7f4f3;
  --paper: #fff;
  --ink: #292328;
  --muted: #71656b;
  --line: #e8dfe1;
  --accent: #b52136;
  --accent-hover: #94192b;
  --sidebar-bg: #211c20;
  --accent-soft: #fff0f1;
  --highlight: #fa8491;
  --gold: #936713;
  --danger: #b42332;
  --success: #23704f;
  --shadow: 0 2px 8px rgba(47,22,30,.035);
  --radius: 12px;
  --sidebar: 250px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 Plex,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;
  -webkit-font-smoothing: antialiased
}

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

button,a,input,select,textarea,summary {
  touch-action: manipulation
}

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

button {
  cursor: pointer
}

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

button,input,select,textarea {
  color: inherit
}

img,svg {
  max-width: 100%
}

h1,h2,h3,p {
  margin: 0
}

h1 {
  font-size: 30px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.65px
}

h2 {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600
}

h3 {
  font-size: 17px;
  font-weight: 600
}

small {
  font-size: 15px
}

strong {
  font-weight: 600
}

ul {
  padding-inline-start: 20px
}

code,.mono,pre {
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: 15px
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle
}

a: focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid #d84d62;
  outline-offset: 3px
}

input: focus,select:focus,textarea:focus {
  border-color: var(--accent)
}

::selection {
  background: #ffd5db;
  color: #631222
}

::placeholder {
  color: #81757c
}

input[type=checkbox] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0
}

input[type=number] {
  font-variant-numeric: tabular-nums
}

input[type=file] {
  padding: 8px;
  font-size: 15px
}

input[type=file]::file-selector-button {
  font: inherit;
  padding: 5px 11px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-inline-end: 10px;
  cursor: pointer
}

textarea {
  resize: vertical;
  min-height: 86px
}

input[type=search]::-webkit-search-cancel-button {
  cursor: pointer
}

[hidden] {
  display: none!important
}

.muted {
  color: var(--muted)
}

.positive {
  color: var(--success)
}

.negative,.danger-text {
  color: var(--danger)!important
}

.required {
  color: var(--accent)
}

.text-link {
  font-weight: 500;
  color: var(--accent);
  font-size: 16px
}

.text-link:hover {
  text-decoration: underline
}

.skip-link {
  position: fixed;
  top: -80px;
  inset-inline-start: 20px;
  padding: 12px 22px;
  background: var(--accent);
  color: white;
  z-index: 200;
  border-radius: 8px
}

.skip-link:focus {
  top: 12px
}

/* Crimson workspace: charcoal navigation, warm surfaces, red actions. */

/* Navigation */
.sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--sidebar);
  background: var(--sidebar-bg);
  color: #d8cbd0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  padding: 28px 17px 14px;
  border-inline-end: 1px solid #3f3037;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #65515b transparent
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 600;
  color: white;
  line-height: 1.25;
  padding-inline: 10px;
  margin-bottom: 36px;
  letter-spacing: -.6px
}

.brand small {
  display: block;
  color: #b8a6ae;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 39px;
  position: relative;
  transform: rotate(-8deg);
  flex-shrink: 0
}

.brand-mark span {
  display: block;
  position: absolute;
  width: 9px;
  border-radius: 3px;
  background: #ee5269;
  transform: rotate(31deg)
}

.brand-mark span:nth-child(1) {
  height: 23px;
  inset-inline-start: 2px;
  top: 11px
}

.brand-mark span:nth-child(2) {
  height: 36px;
  inset-inline-start: 14px;
  top: 0
}

.brand-mark span:nth-child(3) {
  height: 23px;
  inset-inline-start: 26px;
  top: 3px
}

.nav-groups {
  display: flex;
  flex-direction: column;
  gap: 25px
}

.nav-group {
  display: grid;
  gap: 5px
}

.nav-label {
  font-size: 11px;
  color: #ae98a3;
  padding: 0 14px;
  margin-bottom: 7px;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 14px;
  transition: background .15s,color .15s;
  position: relative
}

.nav-link .icon {
  width: 18px;
  height: 18px;
  color: #bba6b0
}

.nav-link:hover {
  background: #352930;
  color: #fff
}

.nav-link.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 12px #10090e40
}

.nav-link.is-active .icon {
  color: #fff
}

.nav-current-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffc0ca;
  margin-inline-start: auto
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px
}

.sidebar-note {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #46313b;
  border-radius: 8px;
  padding: 14px 11px;
  margin-bottom: 20px;
  background: #2a2228
}

.sidebar-note>.icon {
  color: #f07a8b;
  width: 23px;
  height: 23px
}

.sidebar-note strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #f3e9ed
}

.sidebar-note span {
  font-size: 12px;
  color: #bdabb4
}

.account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 7px;
  border-top: 1px solid #45313b
}

.account-link>span:nth-child(2) {
  flex: 1;
  min-width: 0
}

.account-link strong {
  display: block;
  color: #f0e7eb;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis
}

.account-link small {
  display: block;
  font-size: 13px;
  color: #bba5af
}

.account-link>.icon {
  width: 16px;
  color: #bca3af
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f5c9d1;
  color: #782034;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600
}

.logout-form {
  padding-inline: 7px
}

.logout-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  color: #c3adb7;
  font-size: 13px;
  padding: 6px
}

.logout-form button:hover {
  color: #fff
}

.logout-form .icon {
  width: 13px;
  height: 13px
}

.mobile-nav-close,.mobile-nav-toggle {
  display: none!important
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: #21171dc2;
  border: 0;
  backdrop-filter: blur(3px)
}

.workspace {
  margin-inline-start: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

.topbar {
  height: 74px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  background: #fffdfcf2;
  gap: 16px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30
}

.topbar-start,.topbar-end {
  display: flex;
  align-items: center;
  gap: 22px
}

.breadcrumb {
  font-size: 14px;
  color: #807178;
  display: flex;
  align-items: center;
  gap: 13px
}

.breadcrumb strong {
  color: #40323a;
  font-weight: 500
}

.breadcrumb>span {
  color: #bdb5b7
}

.global-search {
  display: flex;
  align-items: center;
  gap: 9px
}

.global-search>.icon {
  width: 16px;
  height: 16px;
  color: #9e9396
}

.global-search input {
  width: 148px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  padding: 8px 0
}

.global-search kbd {
  border: 1px solid #e6e4e4;
  border-radius: 4px;
  color: #aca3a5;
  display: flex;
  width: 19px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 13px
}

.topbar-profile {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 22px;
  color: #827578
}

.topbar-profile>.icon {
  width: 18px;
  height: 18px
}

.main-content {
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
  padding: 33px 36px 24px;
  flex: 1;
  min-width: 0
}

.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0 36px;
  padding: 19px 0 22px;
  border-top: 1px solid var(--line);
  color: #7d7077;
  font-size: 13px
}

.footer-dot {
  padding: 0 6px
}

/* Building blocks */
.page-heading {
  margin-bottom: 24px
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  margin-bottom: 4px;
  text-transform: uppercase
}

.page-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-top: 7px;
  max-width: 660px
}

.heading-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px
}

.heading-with-actions>.page-heading {
  margin-bottom: 0
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 41px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  transition: background .15s,transform .15s,box-shadow .15s
}

.button:active:not(:disabled) {
  transform: translateY(1px)
}

.button>.icon {
  width: 16px;
  height: 16px
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 3px #8f122318
}

.button-primary:hover {
  background: var(--accent-hover)
}

.button-secondary {
  background: #fff;
  color: #493b43;
  border-color: #d9cbd1;
  box-shadow: none
}

.button-secondary:hover {
  background: #fcf2f3;
  border-color: #bd929e
}

.button-ghost {
  background: transparent;
  color: #75545f;
  border-color: transparent
}

.button-ghost:hover {
  background: var(--accent-soft)
}

.button-danger {
  background: #a21d2e;
  color: #fff
}

.button-danger:hover {
  background: #821425
}

.button-small {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 14px
}

.button-full {
  width: 100%;
  min-height: 46px
}

.button-on-dark {
  background: #fff0f2;
  color: #851b2e;
  border-color: #fff0f2
}

.button-on-dark:hover {
  background: #ffdde4
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #87787c;
  flex-shrink: 0
}

.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent)
}

.icon-button .icon {
  width: 17px;
  height: 17px
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  margin-bottom: 24px
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px
}

.card-header>div>p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.8
}

.card-header>.icon {
  color: #9d9295
}

.card-header h2>.icon {
  color: var(--accent);
  margin-inline-end: 6px
}

.form-body {
  padding: 0 25px 24px
}

.form-body>.field,.form-body>form>.field {
  margin-bottom: 17px
}

.form-body>.field:last-child {
  margin-bottom: 0
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px 20px;
  margin-bottom: 19px
}

.duration-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0
}

.duration-fields legend {
  grid-column: 1/-1;
  font-size: 14px;
  font-weight: 500;
  color: #53414a;
  padding: 0;
  margin-bottom: 7px
}

.duration-fields .duration-hint {
  grid-column: 1/-1;
  margin-top: 0
}

.duration-fields input:disabled {
  background: #f3eef0;
  border-color: #e4dce0;
  color: #90858b;
  cursor: not-allowed;
  opacity: .7
}

.duration-fields>.field {
  margin-bottom: 0
}

.duration-fields input {
  width: 100%;
  min-width: 0
}

.batch-bar .duration-fields {
  flex: 1;
  max-width: 310px
}

.batch-bar .duration-fields .field {
  min-width: 0;
  max-width: none
}

.batch-bar .duration-fields input {
  max-width: none
}

.form-grid-three {
  grid-template-columns: repeat(3,minmax(0,1fr))
}

.field {
  min-width: 0
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #53414a;
  margin-bottom: 7px
}

.field input,.field select,.field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9cdd2;
  background: #fff;
  border-radius: 7px;
  min-height: 42px;
  transition: border-color .15s;
  line-height: 1.5;
  font-size: 15px;
  box-shadow: 0 1px 2px #32132204
}

.field select {
  padding-inline-end: 27px
}

.field input[readonly] {
  background: #f8f4f5;
  color: #74656d
}

.field-hint {
  font-size: 13px;
  line-height: 1.9;
  color: #918488;
  margin-top: 7px
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  flex-wrap: wrap
}

.form-note {
  font-size: 13px;
  color: var(--muted)
}

.form-divider {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 22px
}

.form-divider h3 {
  margin-bottom: 10px
}

.form-divider>.field-hint {
  margin-bottom: 18px
}

.section-symbol {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.section-symbol .icon {
  width: 23px;
  height: 23px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.5
}

.badge>span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85
}

.badge-success {
  background: #e8f5ed;
  color: #246242
}

.badge-warning {
  background: #fff3d9;
  color: #825a0c
}

.badge-danger {
  background: #ffecef;
  color: #a51d32
}

.badge-info {
  background: #eaf1fc;
  color: #33598a
}

.badge-neutral {
  background: #f1ecef;
  color: #6b5460
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid;
  border-radius: 11px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8
}

.notice>.icon {
  margin-top: 1px
}

.notice>div {
  flex: 1;
  min-width: 0
}

.notice strong {
  display: block
}

.notice p {
  font-size: 14px;
  margin-top: 3px;
  line-height: 1.9
}

.notice>a {
  font-size: 14px;
  text-decoration: underline;
  flex-shrink: 0
}

.notice ul {
  margin: 6px 0 0
}

.notice .icon-button {
  margin-top: -4px;
  margin-bottom: -4px
}

.notice-success {
  background: #eff8f2;
  border-color: #cbdfd0;
  color: #2b6142
}

.notice-info {
  background: #f1f5fb;
  border-color: #d6e2f1;
  color: #3c6083
}

.notice-warning {
  background: #fff8e9;
  border-color: #efdfb9;
  color: #805f1b
}

.notice-error {
  background: #fff1f3;
  border-color: #efc9d0;
  color: #962035
}

.notice code {
  overflow-wrap: anywhere;
  font-size: 14px;
  display: inline-block
}

.empty-state {
  padding: 48px 22px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border: 1px solid #e7e5e5;
  background: #fbf1f3;
  color: #9f5364;
  border-radius: 15px;
  margin-bottom: 17px;
  box-shadow: 0 4px 8px #5b515404;
  border-color: #eed6dc
}

.empty-icon>.icon {
  width: 25px;
  height: 25px
}

.empty-state h3 {
  font-size: 16px;
  color: #563c47
}

.empty-state p {
  color: #7d6871;
  font-size: 14px;
  max-width: 390px;
  line-height: 1.9;
  margin-top: 6px
}

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

.two-column>.card {
  height: calc(100% - 24px)
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line)
}

.filter-bar>.field {
  min-width: 135px;
  max-width: 210px
}

.filter-bar>.field label {
  font-size: 13px;
  margin-bottom: 4px
}

.filter-bar>.field select,.filter-bar>.field input {
  font-size: 14px;
  min-height: 38px;
  padding: 8px 10px
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e4e1e2;
  border-radius: 7px;
  padding: 8px 12px;
  min-height: 38px;
  min-width: 200px;
  flex: 1;
  background: #fcf9fa;
  border-color: #dfd2d8
}

.search-field>.icon {
  width: 16px;
  height: 16px;
  color: #928689
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  min-width: 0;
  padding: 0
}

.search-field:focus-within {
  border-color: var(--accent);
  outline: 3px solid #b521361c
}

.filter-bar>.button {
  min-height: 38px
}

.filter-reset {
  font-size: 13px;
  color: #8b7e81;
  padding: 9px 5px
}

.filter-reset:hover {
  text-decoration: underline
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd9da transparent
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: start;
  font-size: 14px;
  white-space: nowrap
}

th {
  text-align: start;
  color: #71606a;
  background: #f8f3f4;
  font-weight: 600;
  font-size: 13px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line)
}

td {
  padding: 17px 20px;
  border-bottom: 1px solid #f0e8eb;
  color: #594750;
  vertical-align: middle
}

tbody tr:last-child td {
  border-bottom: 0
}

tbody tr:hover {
  background: #fff8f9
}

td strong {
  color: #33242d
}

.check-cell {
  width: 34px;
  padding-inline: 19px 6px
}

.actions-cell {
  width: 80px
}

.cell-note {
  display: block;
  font-size: 12px;
  color: #9d9295;
  margin-top: 3px
}

.date-cell {
  font-size: 13px;
  white-space: nowrap;
  color: #93868a
}

.key-cell {
  display: flex;
  align-items: center;
  gap: 9px
}

.key-cell code {
  color: #643441;
  letter-spacing: .1px;
  font-size: 13px
}

.key-cell small {
  display: block;
  font-size: 12px;
  color: #9d9194;
  margin-top: 2px
}

.copy-inline {
  border: 0;
  background: #f9e9ed;
  color: #a45468;
  border-radius: 6px;
  width: 27px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center
}

.copy-inline:hover {
  color: var(--accent)
}

.copy-inline>.icon {
  width: 12px;
  height: 12px
}

.device-count {
  display: inline-block;
  background: #fbf5f7;
  border: 1px solid #e8e6e6;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 13px;
  color: #785966;
  border-color: #eadbe1
}

.row-menu {
  position: relative;
  min-width: 35px
}

.row-menu>summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
  font-size: 16px;
  width: 32px;
  height: 28px;
  border-radius: 5px;
  color: #8d8083
}

.row-menu>summary::-webkit-details-marker {
  display: none
}

.row-menu>summary:hover,.row-menu[open]>summary {
  background: #eeebec
}

.row-menu-panel {
  margin-top: 7px;
  display: grid;
  gap: 2px;
  background: #f8f8f8;
  border: 1px solid #e4e0e1;
  border-radius: 9px;
  padding: 6px;
  min-width: 148px
}

.row-menu-panel>a,.row-menu-panel button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  min-height: 31px;
  font-size: 13px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: start;
  border-radius: 5px;
  color: #595052
}

.row-menu-panel button:hover,.row-menu-panel a:hover {
  background: #ebe8e9
}

.row-menu-panel .icon {
  width: 13px;
  height: 13px
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 15px 24px;
  font-size: 13px;
  color: #908386
}

.pagination>nav {
  display: flex;
  align-items: center;
  gap: 9px
}

.page-count {
  padding: 0 6px;
  font-size: 13px;
  white-space: nowrap
}

.batch-bar {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: #fbf6f7
}

.batch-bar>span {
  font-size: 13px;
  color: #84777a;
  align-self: center;
  white-space: nowrap
}

.batch-bar .field {
  min-width: 115px;
  max-width: 180px
}

.batch-bar .field label {
  font-size: 12px;
  margin-bottom: 3px
}

.batch-bar .field select,.batch-bar .field input {
  padding: 5px 8px;
  min-height: 32px;
  font-size: 13px
}

.batch-bar .field input {
  max-width: 115px
}

.avatar-soft {
  background: #eeeded;
  color: #72676a;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  font-size: 17px
}

.generated-card {
  border-color: #d9d5d6;
  background: #fcfcfc
}

.license-output {
  margin: 0 25px 24px;
  background: #f1eff0;
  border: 1px solid #e2dfe0;
  padding: 17px;
  border-radius: 9px;
  overflow: auto;
  line-height: 2;
  font-size: 15px;
  max-height: 240px;
  text-align: left
}

/* Overview */
.overview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  isolation: isolate;
  min-height: 212px;
  background: #ece9ea;
  border: 1px solid #e1dedf;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 25px;
  overflow: hidden
}

.banner-kicker {
  font-size: 14px;
  color: #7a6e71
}

.overview-banner h2 {
  font-size: 27px;
  font-weight: 500;
  color: #423c3d;
  margin-top: 6px;
  line-height: 1.5
}

.overview-banner p {
  font-size: 14px;
  line-height: 1.9;
  color: #8b7d81;
  margin-top: 7px;
  max-width: 390px
}

.overview-banner a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #5b5154;
  margin-top: 18px
}

.overview-banner a>.icon {
  width: 15px;
  height: 15px
}

.banner-note {
  position: absolute;
  inset-inline-end: 24px;
  bottom: 16px;
  font-size: 12px;
  color: #8a7c80;
  display: flex;
  align-items: center;
  gap: 7px
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8e8184;
  box-shadow: 0 0 0 4px #8e818412;
  display: inline-block;
  flex-shrink: 0
}

.orbit-art {
  position: relative;
  width: 290px;
  height: 155px;
  margin-inline-end: 50px;
  flex-shrink: 0
}

.orbit-ring {
  position: absolute;
  border: 1px solid #d1cbcd;
  border-radius: 50%;
  width: 236px;
  height: 148px;
  inset-inline-start: 23px;
  top: 9px;
  transform: rotate(25deg)
}

.orbit-ring-two {
  transform: rotate(-32deg);
  border-color: #d1cbcd80
}

.orbit-center {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  top: 40px;
  inset-inline-start: 100px;
  background: #4b4345;
  transform: rotate(-10deg);
  box-shadow: 12px 16px 25px #71656812,0 0 0 11px #e3e0e1
}

.orbit-center>.icon {
  width: 35px;
  height: 35px;
  color: #d7d3d4;
  transform: rotate(10deg)
}

.orbit-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: 12px;
  background: #f7f6f6;
  box-shadow: 0 6px 14px #4e46480d;
  color: #877a7d;
  border: 1px solid #ddd8da;
  position: absolute
}

.orbit-node>.icon {
  width: 20px;
  height: 20px
}

.node-one {
  top: 1px;
  inset-inline-start: 53px;
  transform: rotate(-8deg)
}

.node-two {
  bottom: 0;
  inset-inline-end: 17px;
  transform: rotate(10deg)
}

.orbit-small-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #a49a9d;
  border: 3px solid #efedee;
  border-radius: 50%;
  top: 22px;
  inset-inline-end: 16px
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
  margin-bottom: 25px
}

.stat-card {
  background: white;
  border: 1px solid var(--line);
  padding: 19px 21px 17px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent)
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8b7e81;
  font-size: 13px
}

.stat-icon {
  background: var(--accent-soft);
  border: 1px solid #f2d7dd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  color: var(--accent)
}

.stat-icon>.icon {
  width: 16px;
  height: 16px
}

.stat-value {
  display: block;
  text-align: start;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.5;
  color: #30222b;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px
}

.stat-card p {
  margin-top: 5px;
  font-size: 12px;
  color: #a09497;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* Applications */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px
}

.app-card {
  padding: 24px;
  margin: 0
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px
}

.app-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #efedee;
  color: #7e7174
}

.app-symbol>.icon {
  width: 25px;
  height: 25px
}

.app-card h2 {
  font-size: 19px
}

.app-slug {
  font-size: 13px;
  color: #9d9295;
  text-align: start;
  margin-top: 2px
}

.app-description {
  font-size: 14px;
  color: #8e8184;
  margin-top: 13px;
  min-height: 40px;
  line-height: 1.9;
  overflow-wrap: anywhere
}

.app-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 19px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line)
}

.app-meta dt {
  font-size: 12px;
  color: #a19799
}

.app-meta dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: #615659
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px
}

.app-card-footer>a:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--accent)
}

.app-card-footer .icon {
  width: 14px;
  height: 14px
}

.app-grid+.pagination {
  margin: 22px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px
}

.danger-card {
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.danger-card h3 {
  font-size: 16px
}

.danger-card p {
  font-size: 14px;
  color: #928589;
  margin-top: 4px
}

.fingerprint {
  font-size: 12px;
  color: #93878a
}

.config-value {
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr);
  gap: 24px
}

.maintenance-card {
  padding: 25px
}

.maintenance-card>.section-symbol {
  margin-bottom: 16px
}

.maintenance-card h2 {
  margin-bottom: 10px
}

.maintenance-card>p {
  font-size: 14px;
  color: #978a8e;
  line-height: 1.95;
  margin: 17px 0
}

.maintenance-card form>.button {
  width: 100%
}

.maintenance-card>.field-hint {
  font-size: 13px;
  margin-bottom: 0;
  color: #a69b9e
}

.profile-overview {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 25px 29px
}

.profile-avatar {
  width: 58px;
  height: 58px;
  font-size: 28px;
  border-radius: 16px;
  background: #fae0e7;
  color: var(--accent)
}

.profile-overview h2 {
  font-size: 19px
}

.profile-overview p {
  font-size: 14px;
  color: #95888c;
  margin-top: 3px
}

.profile-security {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #908386
}

.profile-security>.icon {
  width: 18px
}

.security-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px
}

.security-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ece9ea;
  width: 51px;
  height: 51px;
  border-radius: 13px;
  color: #8f8285;
  flex-shrink: 0
}

.security-symbol>.icon {
  width: 26px;
  height: 26px
}

.security-intro p {
  font-size: 14px;
  color: #998e91;
  margin-top: 5px
}

.totp-setup {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 25px
}

.setup-steps {
  flex: 1
}

.setup-steps>p:not(.eyebrow) {
  font-size: 14px;
  color: #928689;
  margin-top: 8px;
  line-height: 1.9
}

.secret-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f4f2f3;
  border: 1px solid #e2dedf;
  border-radius: 8px;
  padding: 10px 13px;
  margin: 15px 0;
  max-width: 100%
}

.secret-box>code {
  overflow-wrap: anywhere;
  font-size: 16px;
  letter-spacing: 1px;
  color: #6e6265
}

.qr-box {
  width: 170px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-shrink: 0
}

.qr-box>svg {
  display: block;
  width: 100%;
  height: auto
}

.security-details>summary {
  color: #987b61;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0
}

.security-details>form {
  margin-top: 18px
}

.otp-input {
  max-width: 260px;
  text-align: center!important;
  font-size: 23px!important;
  letter-spacing: 9px;
  font-weight: 500
}

.recovery-codes {
  line-height: 2.1;
  text-align: left;
  font-size: 15px
}

/* Sign in and public pages */
.guest-page {
  background: #f7f3f2;
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

.guest-header {
  max-width: 1240px;
  width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px 20px
}

.brand-guest {
  color: #552231;
  margin: 0;
  font-size: 29px;
  padding: 0
}

.brand-guest .brand-mark span {
  background: var(--accent)
}

.guest-header>span {
  font-size: 14px;
  color: #988b8f
}

.guest-main {
  max-width: 1170px;
  width: 100%;
  margin: auto;
  padding: 20px 40px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  min-height: 635px;
  border: 1px solid #e5d7dc;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 65px #49222e0a;
  overflow: hidden
}

.auth-form-side {
  padding: 55px 55px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: .5px
}

.auth-form-side h1 {
  font-size: 34px;
  font-weight: 600;
  color: #35232d;
  letter-spacing: -1px
}

.auth-description {
  font-size: 15px;
  color: #998d90;
  line-height: 2;
  margin-top: 10px;
  margin-bottom: 29px
}

.auth-form>.field {
  margin-bottom: 20px
}

.auth-form label {
  font-size: 14px;
  color: #7d7073
}

.auth-form input:not([type=checkbox]) {
  background: #fff;
  border-color: #dcccd3;
  min-height: 48px
}

.auth-form>.button {
  margin-top: 23px;
  min-height: 48px
}

.password-control {
  position: relative
}

.password-control>input {
  padding-inline-end: 55px
}

.password-control>button {
  position: absolute;
  inset-inline-end: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #9b9093;
  font-size: 12px;
  padding: 7px
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px!important;
  color: #998e91!important;
  margin-top: 4px
}

.checkbox-label>input {
  width: 14px;
  height: 14px
}

.auth-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #a59b9e;
  margin-top: 22px
}

.auth-help>a {
  color: var(--accent);
  font-weight: 500
}

.auth-help>a:hover {
  text-decoration: underline
}

.auth-secondary-link {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  margin-top: 22px
}

.auth-trust {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 33px;
  padding-top: 20px;
  border-top: 1px solid #eceaea;
  color: #aaa0a3;
  font-size: 12px;
  line-height: 1.9
}

.auth-trust>.icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--accent)
}

.auth-story {
  background: #61172a;
  color: #fff0f4;
  padding: 36px 38px 31px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.auth-story:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,#8e223b 0%,#61172a 55%,#341723 100%);
  z-index: -1
}

.auth-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.story-pill {
  font-size: 12px;
  color: #ffe1e9;
  padding: 6px 12px;
  border: 1px solid #d18195;
  border-radius: 5px;
  background: #a4345035
}

.story-number {
  font-size: 11px;
  color: #edb1c1;
  direction: ltr;
  letter-spacing: 1px
}

.auth-art {
  height: 248px;
  position: relative;
  margin: 20px 0 12px
}

.auth-art-orbit {
  position: absolute;
  border: 1px solid #d07a9270;
  width: 265px;
  height: 173px;
  border-radius: 20px;
  top: 38px;
  left: 50%;
  transform: translateX(-50%) rotate(-20deg)
}

.orbit-second {
  transform: translateX(-50%) rotate(38deg);
  border-color: #76696d33
}

.auth-art-core {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 61px;
  transform: translateX(-50%) rotate(-13deg);
  background: #e95370;
  width: 113px;
  height: 113px;
  border-radius: 22px;
  box-shadow: 13px 22px 35px #28041033,0 0 0 14px #ce5a7b20,0 0 0 33px #e3789310
}

.auth-art-core>.icon {
  width: 48px;
  height: 48px;
  color: #fff2f6;
  transform: rotate(13deg)
}

.auth-art-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  border: 1px solid #a6516b;
  border-radius: 6px;
  background: #6f2239;
  color: #ffe0e9;
  font-size: 12px;
  padding: 10px 13px;
  box-shadow: 0 9px 18px #27060e20;
  white-space: nowrap
}

.auth-art-tag>.icon {
  width: 15px;
  height: 15px
}

.tag-top {
  top: 26px;
  left: 0;
  transform: rotate(5deg)
}

.tag-bottom {
  right: 0;
  bottom: 35px;
  transform: rotate(-5deg)
}

.auth-art-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 3px solid #a34f67;
  background: #ffadbf;
  border-radius: 50%;
  bottom: 24px;
  left: 64px
}

.auth-story-copy h2 {
  font-size: 32px;
  line-height: 1.65;
  font-weight: 600;
  color: #fff1f5
}

.auth-story-copy p {
  font-size: 14px;
  line-height: 2;
  color: #edc1ce;
  max-width: 280px;
  margin-top: 11px
}

.auth-story-bottom {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #e5afbf;
  font-size: 12px;
  border-top: 1px solid #a756704d;
  padding-top: 21px;
  margin-top: auto
}

.auth-story-bottom i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #efa4b8
}

.guest-footer {
  font-size: 12px;
  color: #a49a9d;
  text-align: center;
  padding: 0 20px 25px
}

.standalone-card {
  background: #fff;
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 21px;
  margin: 30px auto;
  padding: 40px 42px;
  box-shadow: 0 10px 45px #4a424405
}

.standalone-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeded;
  border: 1px solid #dfdcdd;
  width: 59px;
  height: 59px;
  border-radius: 17px;
  color: #86787c;
  margin-bottom: 24px
}

.standalone-symbol>.icon {
  width: 27px;
  height: 27px
}

.standalone-card h1 {
  font-size: 27px;
  color: #4f4749
}

.standalone-card .page-description {
  font-size: 15px;
  color: #9c9093;
  line-height: 2;
  margin: 12px 0 28px
}

.standalone-card .auth-trust {
  margin-top: 23px
}

.standalone-card .eyebrow {
  color: #9e9295
}

.error-state {
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 75px 25px;
  overflow: hidden;
  isolation: isolate
}

.error-number {
  font-size: 200px;
  line-height: 1;
  font-weight: 600;
  color: #e5e3e3;
  position: absolute;
  top: 35px;
  z-index: -1;
  opacity: .65;
  letter-spacing: 6px
}

.error-state>.standalone-symbol {
  margin-top: 45px;
  background: #f7f7f7;
  box-shadow: 0 5px 15px #72676a0a
}

.error-state h1 {
  font-size: 28px;
  color: #64595c
}

.error-state p {
  font-size: 15px;
  color: #a2979a;
  max-width: 440px;
  line-height: 2;
  margin: 14px 0 25px
}

.error-state>small {
  font-size: 12px;
  color: #aca3a5;
  margin-top: 25px
}

.confirm-dialog {
  border: 1px solid #dfcbd3;
  border-radius: 14px;
  padding: 30px;
  max-width: 420px;
  width: calc(100% - 32px);
  color: #3d2632;
  background: #fff;
  box-shadow: 0 20px 80px #32132340
}

.confirm-dialog::backdrop {
  background: #271b23a8;
  backdrop-filter: blur(4px)
}

.dialog-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff0f2;
  width: 47px;
  height: 47px;
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 15px
}

.dialog-symbol>.icon {
  width: 22px;
  height: 22px
}

.confirm-dialog h2 {
  font-size: 20px
}

.confirm-dialog p {
  font-size: 15px;
  color: #75606c;
  line-height: 2;
  margin-top: 12px
}

.confirm-dialog .form-actions {
  justify-content: flex-start
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 23px;
  border-radius: 10px;
  background: #35202d;
  color: #fff2f7;
  font-size: 15px;
  z-index: 210;
  box-shadow: 0 6px 25px #33111f25;
  max-width: calc(100vw - 30px);
  text-align: center;
  border: 1px solid #603647
}

/* Responsive */
@media(min-width:1600px) {
  :root {
    --sidebar: 266px
  }

  .main-content {
    padding-top: 40px
  }

  .sidebar {
    padding-top: 34px
  }

  .nav-link {
    min-height: 46px;
    font-size: 16px
  }

  .nav-groups {
    gap: 29px
  }

  .overview-banner {
    min-height: 225px
  }

  .stat-value {
    font-size: 34px
  }

  .auth-shell {
    min-height: 650px
  }

}

@media(max-width:1250px) {
  :root {
    --sidebar: 222px
  }

  .sidebar {
    padding-inline: 14px
  }

  .brand {
    font-size: 25px;
    padding-inline: 8px
  }

  .brand small {
    font-size: 12px
  }

  .nav-link {
    font-size: 15px;
    gap: 10px;
    padding-inline: 10px
  }

  .main-content {
    padding: 28px 26px
  }

  .topbar {
    padding-inline: 26px
  }

  .workspace-footer {
    margin-inline: 26px
  }

  .overview-banner {
    padding: 27px
  }

  .orbit-art {
    margin-inline-end: 5px;
    width: 255px
  }

  .stat-grid {
    gap: 13px
  }

  .stat-card {
    padding: 16px
  }

  .stat-top {
    font-size: 12px
  }

  .stat-value {
    font-size: 28px
  }

  .stat-card p {
    font-size: 11px
  }

  .card-header {
    padding: 20px
  }

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

  .auth-form-side {
    padding: 48px 40px
  }

  .auth-story {
    padding-inline: 30px
  }

  .auth-story-copy h2 {
    font-size: 30px
  }

}

@media(max-width:1040px) {
  :root {
    --sidebar: 210px
  }

  .nav-label {
    font-size: 12px
  }

  .nav-link {
    font-size: 14px;
    min-height: 40px
  }

  .nav-groups {
    gap: 20px
  }

  .sidebar-note {
    padding: 10px 8px
  }

  .sidebar-note strong {
    font-size: 13px
  }

  .sidebar-note span {
    font-size: 11px
  }

  .brand small {
    display: none
  }

  .main-content {
    padding: 25px 22px
  }

  .topbar {
    padding-inline: 22px
  }

  .workspace-footer {
    margin-inline: 22px;
    font-size: 12px
  }

  h1 {
    font-size: 27px
  }

  .heading-with-actions {
    gap: 15px;
    align-items: flex-start
  }

  .heading-with-actions>.button,.heading-actions .button {
    font-size: 13px;
    min-height: 36px;
    padding: 8px 12px
  }

  .overview-banner {
    min-height: 190px
  }

  .overview-banner h2 {
    font-size: 24px
  }

  .overview-banner p {
    max-width: 290px;
    font-size: 13px
  }

  .orbit-art {
    width: 190px;
    height: 138px;
    margin-inline-end: 0;
    transform: scale(.85);
    transform-origin: left center
  }

  .orbit-ring {
    inset-inline-start: -6px
  }

  .orbit-center {
    inset-inline-start: 65px
  }

  .node-one {
    inset-inline-start: 7px
  }

  .node-two {
    inset-inline-end: -25px
  }

  .orbit-small-dot {
    inset-inline-end: -7px
  }

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

  .stat-top {
    font-size: 14px
  }

  .stat-value {
    font-size: 31px
  }

  .stat-card p {
    font-size: 12px
  }

  .two-column {
    gap: 18px
  }

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

  .form-body {
    padding-inline: 20px
  }

  .form-grid {
    gap: 16px
  }

  .form-actions {
    gap: 10px
  }

  .form-note {
    font-size: 12px
  }

  .settings-grid {
    grid-template-columns: 1fr
  }

  .settings-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start
  }

  .profile-security {
    font-size: 13px;
    max-width: 170px
  }

  .auth-form-side {
    padding: 42px 30px
  }

  .auth-form-side h1 {
    font-size: 29px
  }

  .auth-story {
    padding-inline: 25px
  }

  .auth-story-copy h2 {
    font-size: 27px
  }

  .auth-art {
    transform: scale(.9);
    transform-origin: center center
  }

  .guest-main {
    padding-inline: 30px
  }

  .guest-header {
    padding-inline: 30px
  }

}

@media(max-width:820px) {
  :root {
    --sidebar: 246px
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
    padding: 27px 18px 15px
  }

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

  .nav-open {
    overflow: hidden
  }

  .workspace {
    margin-inline-start: 0
  }

  .mobile-nav-toggle,.mobile-nav-close {
    display: inline-flex!important
  }

  .mobile-nav-close {
    position: absolute;
    top: 28px;
    inset-inline-end: 12px;
    color: #aaa1a3!important
  }

  .mobile-nav-close:hover {
    background: #453e40!important
  }

  .brand small {
    display: block
  }

  .nav-link {
    font-size: 16px;
    min-height: 42px
  }

  .nav-groups {
    gap: 22px
  }

  .nav-label {
    font-size: 13px
  }

  .sidebar-note strong {
    font-size: 14px
  }

  .sidebar-note span {
    font-size: 12px
  }

  .topbar {
    height: 67px;
    padding-inline: 20px
  }

  .topbar-start,.topbar-end {
    gap: 13px
  }

  .breadcrumb {
    font-size: 13px;
    gap: 8px
  }

  .topbar-profile {
    padding-inline-start: 13px
  }

  .global-search input {
    width: 130px
  }

  .main-content {
    padding: 25px 24px
  }

  .workspace-footer {
    margin-inline: 24px
  }

  .overview-banner {
    min-height: 200px
  }

  .orbit-art {
    width: 220px;
    transform: scale(.9)
  }

  .orbit-ring {
    inset-inline-start: 0
  }

  .orbit-center {
    inset-inline-start: 76px
  }

  .node-two {
    inset-inline-end: -10px
  }

  .two-column {
    grid-template-columns: 1fr
  }

  .two-column>.card {
    height: auto
  }

  .auth-shell {
    min-height: 600px
  }

  .auth-form-side {
    padding: 36px 27px
  }

  .auth-story {
    padding-inline: 25px
  }

  .auth-art {
    transform: scale(.82);
    margin-inline: -20px
  }

  .auth-description {
    font-size: 14px
  }

  .auth-story-copy h2 {
    font-size: 25px
  }

  .auth-story-copy p {
    font-size: 13px
  }

  .story-number {
    display: none
  }

  .guest-main {
    padding-inline: 22px
  }

  .guest-header {
    padding-inline: 28px
  }

  .profile-security {
    max-width: none
  }

  .totp-setup {
    gap: 20px
  }

}

@media(max-width:620px) {
  html {
    scroll-padding-top: 78px
  }

  .main-content {
    padding: 22px 16px
  }

  .topbar {
    padding-inline: 12px;
    height: 61px
  }

  .topbar-start {
    gap: 6px
  }

  .topbar-end {
    gap: 6px
  }

  .breadcrumb {
    font-size: 12px
  }

  .global-search {
    display: none
  }

  .topbar-profile {
    border: 0;
    padding-inline: 8px
  }

  .workspace-footer {
    margin-inline: 16px;
    font-size: 11px;
    flex-direction: column;
    gap: 5px;
    padding-top: 15px
  }

  .heading-with-actions {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 14px
  }

  .heading-with-actions>.page-heading {
    margin: 0
  }

  .heading-actions {
    width: 100%;
    gap: 8px
  }

  .heading-actions>.button {
    flex: 1
  }

  .heading-with-actions>.button {
    font-size: 14px
  }

  .page-heading {
    margin-bottom: 20px
  }

  h1 {
    font-size: 26px
  }

  .eyebrow {
    font-size: 12px
  }

  .page-description {
    font-size: 14px;
    line-height: 1.9
  }

  .overview-banner {
    padding: 23px 21px;
    min-height: 188px;
    gap: 0
  }

  .overview-banner h2 {
    font-size: 23px;
    max-width: 240px
  }

  .overview-banner p {
    font-size: 13px;
    max-width: 220px
  }

  .banner-kicker {
    font-size: 13px
  }

  .orbit-art {
    position: absolute;
    inset-inline-end: -42px;
    bottom: 28px;
    transform: scale(.65);
    opacity: .6;
    z-index: -1;
    width: 170px;
    transform-origin: left bottom
  }

  .overview-banner>div:first-child {
    max-width: 83%
  }

  .banner-note {
    font-size: 11px;
    inset-inline-end: 18px;
    bottom: 12px
  }

  .overview-banner a {
    font-size: 13px;
    margin-top: 14px
  }

  .stat-grid {
    gap: 11px;
    margin-bottom: 20px
  }

  .stat-card {
    padding: 14px 15px
  }

  .stat-top {
    font-size: 12px;
    gap: 5px
  }

  .stat-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px
  }

  .stat-icon>.icon {
    width: 14px;
    height: 14px
  }

  .stat-value {
    font-size: 28px;
    margin-top: 6px
  }

  .stat-card p {
    font-size: 11px
  }

  .card {
    border-radius: 13px;
    margin-bottom: 20px
  }

  .card-header {
    padding: 19px 18px;
    gap: 13px
  }

  .card-header h2 {
    font-size: 18px
  }

  .card-header>div>p:not(.eyebrow) {
    font-size: 13px
  }

  .form-body {
    padding: 0 18px 20px
  }

  .form-grid,.form-grid-three {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px
  }

  .field label {
    font-size: 14px
  }

  .field input,.field select,.field textarea {
    min-height: 44px;
    font-size: 15px
  }

  .button {
    min-height: 40px;
    font-size: 14px;
    padding: 9px 14px
  }

  .button-small {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px
  }

  .form-actions {
    margin-top: 20px
  }

  .form-actions>.form-note {
    width: 100%
  }

  .two-column {
    gap: 0
  }

  .filter-bar {
    padding: 16px;
    gap: 10px
  }

  .filter-bar>.search-field {
    flex-basis: 100%;
    min-width: 0
  }

  .filter-bar>.field {
    flex: 1;
    min-width: 105px;
    max-width: none
  }

  .filter-bar>.field input,.filter-bar>.field select {
    font-size: 13px
  }

  .filter-bar>.field label {
    font-size: 12px
  }

  .filter-bar>.button {
    font-size: 13px;
    min-height: 36px
  }

  .table-scroll {
    border-radius: 0
  }

  th {
    font-size: 12px;
    padding: 11px 15px
  }

  td {
    font-size: 13px;
    padding: 14px 15px
  }

  .pagination {
    padding: 14px 16px;
    gap: 10px;
    font-size: 12px
  }

  .page-count {
    font-size: 12px;
    padding: 0 3px
  }

  .pagination>nav {
    gap: 5px
  }

  .pagination .button {
    font-size: 12px;
    min-height: 29px;
    padding: 6px 8px
  }

  .batch-bar {
    padding: 14px 16px;
    gap: 10px
  }

  .batch-bar>.field {
    min-width: 100px;
    max-width: none;
    flex: 1
  }

  .batch-bar>span {
    flex-basis: 100%
  }

  .batch-bar>.button {
    width: 100%
  }

  .notice {
    padding: 13px 14px;
    gap: 9px;
    font-size: 14px;
    flex-wrap: wrap
  }

  .notice>.icon {
    width: 17px;
    height: 17px
  }

  .notice>div {
    flex-basis: calc(100% - 52px)
  }

  .notice p {
    font-size: 13px
  }

  .notice>a {
    margin-inline-start: 26px
  }

  .notice .icon-button {
    margin-inline-start: auto
  }

  .notice>.button {
    margin-inline-start: 26px
  }

  .empty-state {
    padding: 35px 18px
  }

  .empty-state h3 {
    font-size: 16px
  }

  .empty-state p {
    font-size: 13px
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px
  }

  .app-card {
    padding: 22px;
    margin: 0
  }

  .app-grid+.pagination {
    margin: 0 0 20px
  }

  .danger-card {
    padding: 19px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px
  }

  .settings-aside {
    display: block
  }

  .maintenance-card {
    padding: 22px
  }

  .profile-overview {
    padding: 23px;
    gap: 14px;
    flex-wrap: wrap
  }

  .profile-overview h2 {
    font-size: 19px
  }

  .profile-overview p {
    font-size: 13px
  }

  .profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 24px
  }

  .profile-security {
    width: 100%;
    margin-inline-start: 0;
    font-size: 13px;
    border-top: 1px solid var(--line);
    padding-top: 17px;
    margin-top: 3px
  }

  .profile-security>.icon {
    width: 16px
  }

  .totp-setup {
    flex-direction: column;
    align-items: flex-start
  }

  .qr-box {
    align-self: center
  }

  .security-intro {
    gap: 12px
  }

  .security-intro h3 {
    font-size: 16px
  }

  .security-intro p {
    font-size: 13px
  }

  .secret-box>code {
    font-size: 14px;
    letter-spacing: .7px
  }

  .guest-header {
    padding: 26px 25px 16px
  }

  .guest-header>span {
    font-size: 12px
  }

  .brand-guest {
    font-size: 26px
  }

  .brand-guest .brand-mark {
    transform: scale(.85)
  }

  .guest-main {
    padding: 15px 19px 30px
  }

  .auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 19px
  }

  .auth-form-side {
    padding: 35px 28px 30px
  }

  .auth-form-side h1 {
    font-size: 30px
  }

  .auth-eyebrow {
    font-size: 12px
  }

  .auth-description {
    font-size: 14px;
    margin-bottom: 27px
  }

  .auth-form label {
    font-size: 14px
  }

  .auth-form>.button {
    font-size: 15px
  }

  .auth-story {
    display: none
  }

  .auth-trust {
    margin-top: 28px;
    font-size: 12px
  }

  .guest-footer {
    font-size: 11px;
    padding-bottom: 22px
  }

  .standalone-card {
    padding: 30px 25px;
    margin: 8px auto
  }

  .standalone-card h1 {
    font-size: 25px
  }

  .standalone-card .page-description {
    font-size: 14px
  }

  .standalone-symbol {
    width: 53px;
    height: 53px;
    border-radius: 15px
  }

  .error-state {
    padding: 60px 15px
  }

  .error-state h1 {
    font-size: 24px
  }

  .error-state p {
    font-size: 14px
  }

  .error-number {
    font-size: 160px;
    top: 30px
  }

  .error-state>.standalone-symbol {
    margin-top: 30px
  }

  .confirm-dialog {
    padding: 25px
  }

  .confirm-dialog h2 {
    font-size: 20px
  }

  .confirm-dialog p {
    font-size: 14px
  }

  .toast {
    bottom: 19px;
    font-size: 14px
  }

  .generated-card .card-header {
    align-items: flex-start
  }

  .generated-card .card-header h2 {
    font-size: 16px
  }

  .generated-card .button {
    font-size: 12px;
    min-height: 30px;
    padding: 5px 10px
  }

  .license-output {
    margin-inline: 18px;
    padding: 13px;
    font-size: 13px
  }

  .card-header .section-symbol {
    width: 38px;
    height: 38px
  }

  .card-header .section-symbol>.icon {
    width: 19px;
    height: 19px
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,*:before,*:after {
    animation: none!important;
    transition: none!important
  }

}

@media print {
  .sidebar,.topbar,.workspace-footer,.heading-actions,.filter-bar,.batch-bar,.row-menu,.editor-card,.toast {
    display: none!important
  }

  .workspace {
    margin: 0
  }

  .main-content {
    padding: 0;
    max-width: none
  }

  .card {
    box-shadow: none;
    break-inside: avoid
  }

  body {
    background: white
  }

  .table-scroll {
    overflow: visible
  }

  .stat-grid {
    grid-template-columns: repeat(4,1fr)
  }

  a {
    color: inherit
  }

}

.main-content .page-description,.main-content .card-header>div>p:not(.eyebrow),.main-content .field-hint,.main-content .form-note,.main-content .muted,.stat-card p,.stat-top,.date-cell,.cell-note,th,.pagination,.app-description,.app-slug,.app-meta dt,.maintenance-card>p,.profile-overview p,.profile-security {
  color: var(--muted)
}

.auth-description,.auth-form label,.auth-help,.auth-trust,.guest-header>span,.guest-footer {
  color: #75606b
}

.auth-story-copy p {
  color: #edc1ce
}

.checkbox-label {
  color: #705462!important
}

.key-cell small {
  color: #817477
}

.auth-story-bottom {
  color: #e5afbf
}

.qr-box canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated
}

/* Language selection */

/* Application settings: scope, values and package approval are separate tasks. */
.application-settings {
  max-width: 1180px;
  margin-inline: auto
}

.config-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px
}

.config-tabs>a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  font-weight: 500
}

.config-tabs>a:hover {
  color: var(--ink)
}

.config-tabs>a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600
}

.config-tabs .icon {
  width: 17px;
  height: 17px
}

.config-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 21px;
  padding-inline: 6px;
  border-radius: 5px;
  background: #eee9eb;
  color: #65555e;
  font-size: 12px;
  font-variant-numeric: tabular-nums
}

.config-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 0 26px;
  flex-wrap: wrap
}

.config-scope-description {
  display: flex;
  align-items: center;
  gap: 12px
}

.config-scope-description h2 {
  font-size: 16px
}

.config-scope-description p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px
}

.config-scope-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted)
}

.config-scope-icon .icon {
  width: 19px;
  height: 19px
}

.config-scope-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: 0 1 440px;
  min-width: 0
}

.config-scope-form>.field {
  flex: 1;
  min-width: 0
}

.config-scope-form label {
  font-size: 12px;
  margin-bottom: 5px
}

.config-scope-form select {
  font-size: 14px
}

.config-scope-overflow {
  width: 100%;
  font-size: 13px;
  color: var(--muted)
}

.config-workspace {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  gap: 22px
}

.config-workspace.has-editor {
  grid-template-columns: minmax(310px,1fr) minmax(0,1.35fr)
}

.config-workspace>.card {
  margin-bottom: 0
}

.application-settings .card-header {
  padding: 22px 24px;
  align-items: flex-start
}

.application-settings .card-header>div {
  min-width: 0
}

.application-settings .card-header h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
  line-height: 1.5
}

.application-settings .card-header p {
  font-size: 13px
}

.config-list-header>.button {
  flex-shrink: 0
}

.config-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 16px;
  font-size: 12px;
  color: var(--muted)
}

.config-list-meta .text-link {
  font-size: 12px
}

.config-list-meta .icon,.config-footnote .text-link .icon {
  width: 14px;
  height: 14px;
  margin-inline-start: 3px
}

.config-table {
  table-layout: fixed;
  white-space: normal
}

.config-table th {
  padding: 11px 24px;
  font-size: 12px;
  background: #faf8f8
}

.config-table th:first-child {
  width: 29%
}

.config-table th:last-child {
  width: 124px
}

.config-table td {
  padding: 18px 24px;
  vertical-align: top;
  overflow-wrap: anywhere
}

.config-table td:last-child {
  padding-inline: 8px 16px
}

.config-table .config-name code {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600
}

.config-table .is-editing {
  background: var(--accent-soft)
}

.config-table .is-editing .config-name {
  box-shadow: inset 3px 0 var(--accent)
}

.config-actions-heading {
  text-align: end
}

.config-value-text {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7
}

.config-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin-top: -5px
}

.config-row-actions>.button {
  padding-inline: 8px;
  font-size: 13px
}

.config-row-actions .icon {
  width: 15px;
  height: 15px
}

.config-delete:hover {
  color: var(--danger);
  background: #ffedf0
}

.config-value-details summary,.config-fingerprints summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  min-height: 30px
}

.config-value-details[open] summary {
  margin-bottom: 8px
}

.config-editor {
  border-top: 3px solid var(--accent);
  scroll-margin-top: 90px
}

.config-editor-scope strong {
  font-weight: 500;
  overflow-wrap: anywhere
}

.config-editor .form-body,.config-package-editor .form-body {
  padding-inline: 24px
}

.config-editor .field label {
  font-size: 13px
}

.config-editor input,.config-editor textarea {
  font-size: 14px
}

.config-editor .field-hint,.config-editor .form-note {
  font-size: 12px;
  line-height: 1.7
}

.config-editor-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
  flex-wrap: wrap
}

.config-footnote {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: 13px
}

.config-footnote>.icon {
  width: 17px;
  height: 17px;
  margin-top: 3px
}

.config-footnote .text-link {
  font-size: 13px;
  display: inline-block
}

.config-package-editor {
  scroll-margin-top: 90px;
  border-top: 3px solid var(--accent)
}

.config-fieldset {
  min-width: 0;
  margin: 0;
  padding: 16px 0 0;
  border: 0
}

.config-fieldset+.config-fieldset {
  margin-top: 26px;
  border-top: 1px solid var(--line)
}

.config-fieldset legend {
  padding: 0 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink)
}

.config-fieldset>.field-hint {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 12px
}

.config-fieldset .form-grid {
  margin-bottom: 12px
}

.config-fieldset:last-of-type .form-grid {
  margin-bottom: 0
}

.config-packages {
  border-top: 1px solid var(--line)
}

.config-package {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 20px;
  row-gap: 14px;
  padding: 22px 24px
}

.config-package+.config-package {
  border-top: 1px solid var(--line)
}

.config-package-main {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0
}

.config-package-main>div {
  min-width: 0;
  flex: 1
}

.config-package-main h3 {
  font-size: 14px;
  overflow-wrap: anywhere
}

.config-package-main p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 3px
}

.config-package-actions {
  display: flex;
  align-items: center;
  gap: 4px
}

.config-fingerprints {
  grid-column: 1/-1;
  padding-inline-start: 52px
}

.config-fingerprints dl {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin: 10px 0 0
}

.config-fingerprints dt {
  font-size: 12px;
  color: var(--muted)
}

.config-fingerprints dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere
}

.config-fingerprints code {
  font-size: 12px
}

.application-settings .empty-state {
  padding: 32px 24px 38px
}

@media(max-width:1200px) {
  .config-workspace.has-editor {
    grid-template-columns: minmax(0,1fr)
  }

  .config-package {
    grid-template-columns: minmax(0,1fr)
  }

  .config-package-actions {
    padding-inline-start: 52px
  }

}

@media(max-width:700px) {
  .config-scope-form {
    flex-basis: 100%
  }

  .config-scope {
    gap: 16px
  }

  .config-tabs {
    gap: 22px;
    margin-bottom: 24px
  }

  .config-tabs>a {
    font-size: 13px;
    gap: 7px
  }

  .application-settings .card-header {
    padding: 20px
  }

  .config-list-header {
    flex-wrap: wrap;
    gap: 16px
  }

  .config-list-meta {
    padding-inline: 20px;
    flex-wrap: wrap
  }

  .config-editor .form-body,.config-package-editor .form-body {
    padding-inline: 20px
  }

  .config-package {
    padding: 20px
  }

  .config-fingerprints dl {
    grid-template-columns: minmax(0,1fr)
  }

}

@media(max-width:480px) {
  .config-tabs {
    gap: 14px
  }

  .config-tabs>a {
    flex: 1;
    gap: 6px;
    font-size: 12px
  }

  .config-tabs .icon {
    display: none
  }

  .config-scope-form {
    gap: 8px
  }

  .config-scope-form .button {
    font-size: 12px;
    padding-inline: 12px
  }

  .config-scope-form select {
    font-size: 13px
  }

  .config-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap
  }

  .config-table,.config-table tbody {
    display: block;
    width: 100%
  }

  .config-table tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    padding: 16px 20px;
    gap: 8px 10px;
    border-top: 1px solid var(--line)
  }

  .config-table td,.config-table td:last-child {
    padding: 0;
    border: 0
  }

  .config-table .config-value-cell {
    grid-row: 2;
    grid-column: 1/-1
  }

  .config-table td:last-child {
    grid-column: 2;
    grid-row: 1
  }

  .config-table .is-editing .config-name {
    box-shadow: none
  }

  .config-table .is-editing {
    box-shadow: inset 3px 0 var(--accent)
  }

  .config-row-actions {
    margin-top: -4px
  }

  .config-package-main {
    flex-wrap: wrap
  }

  .config-package-main>.badge {
    margin-inline-start: 52px
  }

  .config-package-actions {
    padding-inline-start: 0;
    flex-wrap: wrap
  }

  .config-fingerprints {
    padding-inline-start: 0
  }

  .config-editor-actions>.button {
    flex: 1
  }

}

.language-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0
}

.language-switcher a {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  color: #73505e;
  white-space: nowrap
}

.language-switcher a:hover {
  background: var(--accent-soft)
}

.language-switcher a[aria-current="true"] {
  color: #92263d;
  background: #ffeef2;
  border-color: #edc6d1;
  font-weight: 600
}

.guest-header {
  gap: 20px;
  flex-wrap: wrap
}

.guest-header>.language-switcher {
  margin-inline-start: auto
}

.topbar-start {
  min-width: 0
}

.breadcrumb {
  min-width: 0
}

.breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.stat-card p {
  white-space: normal;
  overflow: visible
}

.auth-help {
  flex-wrap: wrap
}

.auth-story-copy h2 {
  line-height: 1.4
}

html[lang="zh-CN"] h1,html[lang="zh-CN"] h2 {
  letter-spacing: 0
}

@media(max-width:1040px) {
  .topbar .global-search {
    display: none
  }

  .topbar-start,.topbar-end {
    gap: 10px
  }

  .language-switcher a {
    padding: 5px 6px
  }

}

@media(max-width:620px) {
  .breadcrumb {
    max-width: calc(100vw - 228px)
  }

  .breadcrumb>span {
    display: none
  }

  .breadcrumb {
    font-size: 0
  }

  .breadcrumb strong {
    font-size: 12px
  }

  .guest-header>span {
    display: none
  }

  .guest-header {
    padding-inline: 22px
  }

  .guest-header>.language-switcher {
    gap: 2px
  }

  .guest-header .brand {
    margin-bottom: 0
  }

  .auth-form-side h1 {
    font-size: 27px
  }

}

/* Shared workspace rules stay after page variants so every screen uses the same spacing and controls. */
.workspace-page {
  max-width: 1180px;
  margin-inline: auto;
  min-width: 0
}

.main-content h1 {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -.5px
}

.main-content .page-description {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 7px;
  max-width: 700px
}

.workspace-page>.page-heading,.workspace-page>.heading-with-actions {
  margin-bottom: 26px
}

.workspace-page .card {
  margin-bottom: 22px;
  box-shadow: var(--shadow)
}

.workspace-page .card-header {
  padding: 22px 24px;
  align-items: flex-start;
  gap: 16px
}

.workspace-page .card-header>div {
  min-width: 0
}

.workspace-page .card-header h2 {
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere
}

.workspace-page .card-header>div>p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.8
}

.workspace-page .card-header>.button {
  flex-shrink: 0
}

.workspace-page .form-body {
  padding: 0 24px 24px
}

.workspace-page .field label {
  font-size: 13px;
  color: #53414a
}

.workspace-page .field input,.workspace-page .field select,.workspace-page .field textarea {
  font-size: 14px;
  min-height: 42px
}

.workspace-page .field-hint,.workspace-page .form-note {
  font-size: 12px;
  line-height: 1.75
}

.workspace-page .empty-state {
  padding: 34px 24px 40px
}

.workspace-page .empty-state h3 {
  font-size: 16px
}

.workspace-page .empty-state p {
  font-size: 13px;
  max-width: 460px
}

.workspace-page .empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  margin-bottom: 14px
}

.workspace-page .empty-icon .icon {
  width: 22px;
  height: 22px
}

.workspace-page .text-link {
  font-size: 13px
}

.workspace-tabs {
  display: flex;
  align-items: stretch;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: thin
}

.workspace-tabs>a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 52px;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap
}

.workspace-tabs>a:hover {
  color: var(--ink)
}

.workspace-tabs>a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 600
}

.workspace-tabs .icon {
  width: 17px;
  height: 17px
}

.workspace-tabs .badge {
  font-size: 11px;
  padding: 2px 6px
}

.workspace-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 6px 0 17px
}

.workspace-section-heading h2 {
  font-size: 16px;
  line-height: 1.5
}

.workspace-section-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px
}

.workspace-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffcfc;
  margin-bottom: 24px
}

.workspace-context>div {
  min-width: 0
}

.workspace-context>.icon+div {
  flex: 1
}

.workspace-context strong,.workspace-context h2,.workspace-context h3 {
  font-size: 14px;
  font-weight: 600
}

.workspace-context p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  overflow-wrap: anywhere
}

.workspace-context>.icon {
  color: var(--muted);
  width: 19px;
  height: 19px
}

.workspace-context .badge {
  font-size: 12px
}

.workspace-context .button {
  flex-shrink: 0
}

.workspace-editor {
  border-top: 3px solid var(--accent);
  scroll-margin-top: 90px
}

.workspace-fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
  padding: 19px 0 0;
  margin: 24px 0 0
}

.workspace-fieldset:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 5px
}

.workspace-fieldset legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px 0 0;
  color: var(--ink)
}

.workspace-fieldset>.field-hint {
  margin-top: 0;
  margin-bottom: 16px
}

.workspace-fieldset>.field {
  margin-bottom: 18px
}

.workspace-fieldset .form-grid {
  margin-bottom: 0
}

.workspace-fieldset .form-grid+.field {
  margin-top: 18px
}

.license-duration-picker {
  min-width: 0
}

.duration-picker-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink)
}

.duration-picker-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: start
}

.duration-picker-trigger>.icon {
  color: var(--accent)
}

.duration-picker-trigger>strong {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere
}

.duration-picker-trigger>span {
  font-size: 12px;
  color: var(--accent)
}

.duration-picker-trigger:hover,.duration-choice:hover,.duration-custom-choice:hover {
  border-color: var(--accent)
}

.duration-dialog {
  width: min(560px,calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px #0004;
  overflow: auto;
  overscroll-behavior: contain
}

.duration-dialog:not([open]) {
  display: none
}

.duration-dialog::backdrop {
  background: #17121db3;
  backdrop-filter: blur(4px)
}

body:has(.duration-dialog[open]) {
  overflow: hidden
}

.duration-dialog-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 20px
}

.duration-dialog-title {
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 0
}

.duration-dialog-title h2 {
  font-size: 19px
}

.duration-dialog-title p,.duration-dialog-footer>p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6
}

.duration-dialog-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent)
}

.duration-dialog-body {
  padding: 0 24px 24px
}

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

.duration-choice,.duration-custom-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  text-align: start;
  font-weight: 500
}

.duration-choice>span:first-child,.duration-custom-choice>span:first-of-type {
  flex: 1
}

.duration-choice[aria-pressed=true],.duration-custom-choice[aria-pressed=true] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent)
}

.duration-choice-check {
  display: inline-flex;
  visibility: hidden
}

.duration-choice-check>.icon {
  width: 16px;
  height: 16px
}

[aria-pressed=true]>.duration-choice-check {
  visibility: visible
}

.duration-custom-choice {
  width: 100%;
  margin-top: 12px;
  min-height: 50px
}

.duration-custom-fields {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg)
}

.duration-lifetime-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin-bottom: 14px;
  cursor: pointer
}

.duration-custom-fields .form-grid {
  margin-bottom: 0;
  gap: 12px
}

.duration-custom-fields .field label {
  color: var(--ink)
}

.duration-custom-fields .field input {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink)
}

.duration-dialog .field-hint {
  color: var(--muted)
}

.duration-error {
  margin-top: 9px;
  color: var(--danger);
  font-size: 13px
}

.duration-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px solid var(--line)
}

.duration-dialog-footer>div {
  display: flex;
  flex-shrink: 0;
  gap: 8px
}

@media (max-width: 520px) {
  .duration-dialog-header {
    padding: 20px 18px 18px
  }

  .duration-dialog-body {
    padding: 0 18px 20px
  }

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

  .duration-dialog-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px
  }

  .duration-dialog-footer>div>.button {
    flex: 1
  }
}

.workspace-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

.workspace-form-actions .form-note {
  margin-inline-start: 4px
}

.workspace-resource-list {
  min-width: 0
}

.workspace-resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 23px 24px;
  border-top: 1px solid var(--line)
}

.workspace-resource-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 300px
}

.workspace-resource-main>div {
  min-width: 0
}

.workspace-resource-main h2,.workspace-resource-main h3 {
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere
}

.workspace-resource-main p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 3px
}

.workspace-resource-main .app-symbol {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  font-size: 18px
}

.workspace-resource-main .app-symbol>.icon {
  width: 21px;
  height: 21px
}

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

.workspace-meta {
  display: flex;
  gap: 14px 22px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted)
}

.workspace-meta>div {
  display: flex;
  align-items: baseline;
  gap: 6px
}

.workspace-meta dt {
  font-size: 12px;
  color: var(--muted)
}

.workspace-meta dd {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  color: var(--ink)
}

.workspace-disclosure {
  border-top: 1px solid var(--line)
}

.workspace-disclosure>summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  list-style: none
}

.workspace-disclosure>summary::-webkit-details-marker {
  display: none
}

.workspace-disclosure>summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted)
}

.workspace-disclosure[open]>summary::after {
  content: '−'
}

.workspace-disclosure>summary:hover {
  background: #fcf8f9
}

.workspace-disclosure>summary>span:first-of-type {
  margin-inline-end: auto
}

.workspace-disclosure>summary .workspace-selection-count {
  font-size: 12px;
  color: var(--muted);
  text-align: end
}

.workspace-disclosure>.form-body>.duration-fields {
  max-width: 450px;
  margin-top: 20px
}

.workspace-disclosure .batch-bar {
  border-top: 1px solid var(--line);
  background: #fcf9fa;
  padding: 18px 24px
}

.workspace-page .filter-bar {
  background: #fffcfc;
  padding: 17px 24px;
  gap: 12px
}

.workspace-page .filter-bar>.field {
  flex: 1 1 150px;
  max-width: 220px;
  min-width: 0
}

.workspace-page .filter-bar>.search-field {
  min-width: 200px;
  flex: 2 1 230px
}

.workspace-page .filter-bar>.button {
  min-height: 42px
}

.workspace-page .search-field {
  min-height: 42px;
  background: #fff
}

.workspace-page .filter-bar+.table-scroll th {
  background: #faf8f8
}

.workspace-page th {
  font-size: 12px;
  padding-block: 12px
}

.workspace-page td {
  font-size: 13px;
  padding-block: 17px
}

.workspace-page .pagination {
  font-size: 12px;
  padding: 15px 24px
}

.workspace-page .stat-grid {
  gap: 16px;
  margin-bottom: 24px
}

.workspace-page.overview-page .stat-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.overview-page .stat-card {
  display: flex;
  flex-direction: column;
}

.overview-page .stat-card p {
  white-space: normal;
}

.overview-page .stat-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
}

.overview-page .stat-link .icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .workspace-page.overview-page .stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 420px) {
  .workspace-page.overview-page .stat-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.workspace-page .stat-card {
  padding: 20px;
  border-radius: var(--radius)
}

.workspace-page .stat-top {
  font-size: 13px;
  align-items: flex-start;
  gap: 10px
}

.workspace-page .stat-value {
  font-size: 30px;
  margin-top: 13px;
  line-height: 1.3
}

.workspace-page .stat-card p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 7px
}

.workspace-page .stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px
}

.workspace-page .stat-icon .icon {
  width: 17px;
  height: 17px
}

.workspace-page .profile-overview {
  padding: 22px 24px;
  margin-bottom: 24px;
  gap: 16px
}

.workspace-page .profile-overview h2 {
  font-size: 19px;
  overflow-wrap: anywhere
}

.workspace-page .profile-overview p {
  font-size: 13px;
  overflow-wrap: anywhere
}

.workspace-page .profile-overview>div {
  min-width: 0
}

.workspace-page .profile-security {
  font-size: 13px
}

.workspace-page .two-column {
  gap: 22px
}

.workspace-page .two-column>.card {
  height: auto
}

.workspace-page .maintenance-card {
  padding: 24px
}

.workspace-page .maintenance-card h2 {
  font-size: 18px
}

.workspace-page .maintenance-card>p {
  font-size: 13px
}

.workspace-page .danger-card {
  gap: 20px;
  align-items: center
}

.workspace-page .danger-card h3 {
  font-size: 15px
}

.workspace-page .danger-card p {
  font-size: 13px
}

.workspace-page .security-intro h3 {
  font-size: 16px
}

.workspace-page .security-intro p {
  font-size: 13px
}

.workspace-page .notice {
  font-size: 14px
}

.workspace-page .notice p {
  font-size: 13px
}

.guest-main {
  max-width: 620px;
  padding-top: 25px;
  padding-bottom: 40px
}

.auth-shell {
  display: block;
  min-height: 0;
  border-radius: 12px;
  box-shadow: var(--shadow)
}

.auth-form-side {
  padding: 32px
}

.auth-form-side h1 {
  font-size: 28px;
  letter-spacing: -.5px
}

.auth-description {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px
}

.auth-eyebrow {
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase
}

.auth-trust {
  margin-top: 25px;
  padding-top: 20px;
  color: var(--muted)
}

.standalone-card {
  max-width: 540px;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow)
}

.standalone-card h1 {
  font-size: 28px;
  letter-spacing: -.5px
}

.standalone-card .page-description {
  font-size: 14px
}

.standalone-symbol {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 18px
}

.standalone-symbol>.icon {
  width: 23px;
  height: 23px
}

.error-state {
  padding: 34px;
  max-width: 620px;
  margin: 35px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow)
}

.error-state .error-number {
  position: static;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 16px
}

.error-state>.standalone-symbol {
  margin-top: 0
}

.error-state h1 {
  font-size: 24px
}

.error-state p {
  font-size: 14px;
  margin-top: 10px
}

.error-state small {
  font-size: 12px;
  overflow-wrap: anywhere
}

@media(max-width:1200px) {
  .workspace-tabs {
    gap: 20px
  }

}

@media(max-width:820px) {
  .workspace-context {
    flex-wrap: wrap
  }

  .sidebar {
    visibility: hidden
  }

  .nav-open .sidebar {
    visibility: visible
  }

  .workspace-resource-row {
    align-items: flex-start
  }

  .workspace-resource-actions {
    width: 100%;
    padding-inline-start: 54px
  }

  .workspace-page .two-column {
    grid-template-columns: minmax(0,1fr);
    gap: 0
  }

  .workspace-page .profile-security {
    margin-inline-start: 0
  }

}

@media(max-width:620px) {
  .main-content h1 {
    font-size: 24px
  }

  .workspace-page>.page-heading,.workspace-page>.heading-with-actions {
    margin-bottom: 22px
  }

  .workspace-page .heading-with-actions {
    align-items: flex-start
  }

  .workspace-page .heading-actions {
    width: 100%;
    gap: 8px
  }

  .workspace-page .heading-actions>.button {
    flex: 1
  }

  .workspace-page .card-header {
    padding: 20px;
    flex-wrap: wrap;
    gap: 12px
  }

  .workspace-page .card-header h2 {
    font-size: 17px
  }

  .workspace-page .form-body {
    padding: 0 20px 20px
  }

  .workspace-tabs {
    gap: 20px;
    margin-bottom: 22px
  }

  .workspace-tabs>a {
    font-size: 13px;
    min-height: 48px
  }

  .workspace-tabs .icon {
    width: 15px;
    height: 15px
  }

  .workspace-page .filter-bar {
    padding: 16px 20px;
    gap: 12px 10px
  }

  .workspace-page .filter-bar>.search-field {
    flex-basis: 100%;
    min-width: 0
  }

  .workspace-page .filter-bar>.field {
    flex: 1 1 120px;
    max-width: none
  }

  .workspace-page .filter-bar>.button {
    align-self: flex-end
  }

  .workspace-page .pagination {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px
  }

  .workspace-page .pagination>nav {
    margin-inline-start: auto
  }

  .workspace-context {
    padding: 15px 17px;
    gap: 12px
  }

  .workspace-context .button {
    font-size: 12px
  }

  .workspace-page .stat-grid {
    gap: 12px
  }

  .workspace-page .stat-card {
    padding: 16px
  }

  .workspace-page .stat-top {
    font-size: 12px;
    gap: 8px
  }

  .workspace-page .stat-value {
    font-size: 27px
  }

  .workspace-page .stat-icon {
    display: none
  }

  .workspace-page .stat-card p {
    font-size: 11px
  }

  .workspace-page .profile-overview {
    padding: 20px;
    gap: 12px
  }

  .workspace-page .profile-security {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--line)
  }

  .workspace-page .maintenance-card {
    padding: 20px
  }

  .workspace-resource-row {
    padding: 20px;
    gap: 16px
  }

  .workspace-resource-main {
    flex-basis: 100%
  }

  .workspace-resource-actions {
    padding-inline-start: 0
  }

  .workspace-resource-actions .button {
    font-size: 12px
  }

  .workspace-meta {
    gap: 8px 16px
  }

  .workspace-disclosure>summary {
    padding: 16px 20px
  }

  .workspace-disclosure .batch-bar {
    padding: 16px 20px
  }

  .workspace-disclosure .batch-bar>.field {
    flex: 1 1 135px;
    max-width: none;
    min-width: 0
  }

  .workspace-disclosure .batch-bar .duration-fields {
    flex-basis: 100%;
    max-width: none
  }

  .workspace-form-actions .button {
    flex: 1
  }

  .workspace-form-actions .form-note {
    flex-basis: 100%;
    margin: 0
  }

  .workspace-page .empty-state {
    padding: 28px 20px 32px
  }

  .auth-form-side {
    padding: 28px 24px
  }

  .guest-main {
    padding: 16px 18px 32px
  }

  .standalone-card {
    padding: 26px 24px
  }

  .error-state {
    padding: 26px 22px;
    margin-top: 10px
  }

}

@media(max-width:480px) {
  .workspace-tabs {
    gap: 18px
  }

  .workspace-tabs>a {
    font-size: 12px
  }

  .workspace-tabs>a>.icon {
    display: none
  }

  .workspace-disclosure>summary {
    flex-wrap: wrap;
    gap: 8px
  }

  .workspace-disclosure>summary .workspace-selection-count {
    font-size: 11px
  }

}

@media print {
  .workspace-editor,.workspace-tabs,.workspace-disclosure,.workspace-form-actions {
    display: none!important
  }

}
