/*! Generated from resources/scss/dashboard.scss. Edit Sass sources and run npm run build. */
:root {
  --font-small: 0.875rem;
  --font-ui: 0.9375rem;
  --font-body: 1rem;
  --font-section: 1.25rem;
  --font-section-large: 1.375rem;
  --font-page: 1.875rem;
  --font-page-mobile: 1.75rem;
  --canvas: #f5f7fb;
  --surface: #fff;
  --ink: #17243b;
  --muted: #6b778d;
  --line: #e7ecf3;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --sidebar: #122039;
  --sidebar-width: 18rem;
  --sidebar-compact: 5.125rem;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

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

button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

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

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

.text-strong {
  font-weight: 600;
}

.eyebrow {
  display: block;
  font-size: var(--font-small);
  font-weight: 750;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  color: var(--primary);
}

.dashboard-body {
  background: var(--canvas);
}

.workspace {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  overflow-y: auto;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #b5c0d4;
  z-index: 40;
  padding: 32px 18px 20px;
  transition: width 0.2s ease, transform 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  min-height: 3rem;
  white-space: nowrap;
}

.brand:hover {
  color: white;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3377ee;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: white;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -1.8px;
}

.brand-mark span {
  font-weight: 400;
}

.brand-label {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.brand-label small {
  display: block;
  font-size: var(--font-small);
  font-weight: 550;
  letter-spacing: 0.13em;
  color: #b3bed1;
  margin-top: 4px;
}

.sidebar .brand {
  margin: 0 10px 44px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin: 0 14px 12px;
  font-size: var(--font-small);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #8391aa;
}

.sidebar nav {
  display: grid;
  gap: 7px;
}

.nav-link, .nav-group summary {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 3rem;
  padding: 12px 14px;
  border-radius: 9px;
  color: #b6c2d6;
  font-size: var(--font-body);
  font-weight: 550;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-group summary:hover {
  color: #fff;
  background: #1d2c47;
}

.nav-link.is-active {
  background: #25406a;
  color: #9fc4ff;
}

.nav-group {
  margin: 0;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  color: #e8edf7;
}

.nav-group summary::-webkit-details-marker, .account-menu summary::-webkit-details-marker {
  display: none;
}

.group-chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.nav-group[open] .group-chevron {
  transform: rotate(90deg);
}

.nav-submenu {
  margin: 3px 0 5px;
}

.nav-submenu .nav-link {
  min-height: 2.75rem;
  padding-left: 23px;
  font-size: var(--font-ui);
}

.nav-submenu .icon {
  width: 14px;
  height: 14px;
}

.nav-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  margin: 0 4px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-site-name {
  font-size: var(--font-small);
  margin: 14px 0 7px 23px;
  color: #8698b7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  margin: auto 12px 0;
  padding-top: 28px;
  border-top: 1px solid #27344c;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--font-ui);
}

.sidebar-footer small {
  display: block;
  font-size: var(--font-small);
  color: #8391aa;
  margin-top: 4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ad3b6;
  flex-shrink: 0;
}

.workspace-main {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin 0.2s, width 0.2s;
}

.topbar {
  min-height: 5.25rem;
  padding: 0.75rem 38px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.icon-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #6c7890;
  cursor: pointer;
}

.icon-button:hover {
  background: #edf2fa;
  color: var(--ink);
}

.topbar-divider {
  height: 20px;
  width: 1px;
  background: var(--line);
}

.topbar-location {
  font-weight: 550;
  color: var(--muted);
  font-size: var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
}

.account-menu summary:hover {
  background: #f7f9fc;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-ui);
  font-weight: 700;
  color: #3769bd;
  background: #eaf1ff;
  flex: 0 0 auto;
}

.account-identity {
  max-width: 190px;
  font-size: var(--font-ui);
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-identity small {
  display: block;
  font-size: var(--font-small);
  color: var(--muted);
  font-weight: 450;
  margin-top: 3px;
}

.account-chevron {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
  margin-left: 8px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 8px;
  box-shadow: 0 16px 50px rgba(20, 43, 77, 0.1294117647);
}

.dropdown-identity {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.dropdown-identity strong, .dropdown-identity span {
  display: block;
}

.dropdown-identity strong {
  font-size: var(--font-ui);
  margin-bottom: 4px;
}

.dropdown-identity span {
  color: var(--muted);
  font-size: var(--font-small);
}

.account-dropdown a, .account-dropdown button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  font-size: var(--font-ui);
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
}

.account-dropdown a:hover, .account-dropdown button:hover {
  background: #f1f5fc;
}

.account-dropdown .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.page-content {
  padding: 36px 38px 48px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

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

h1 {
  font-size: var(--font-page);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  font-size: var(--font-body);
}

.heading-secondary {
  color: #7e8ba2;
  font-size: 0.75em;
  font-weight: 500;
}

.page-heading .btn {
  flex-shrink: 0;
}

.btn {
  border-radius: 8px;
  font-size: var(--font-ui);
  font-weight: 600;
  min-height: 3rem;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-hover);
  --bs-btn-hover-border-color: var(--primary-hover);
  --bs-btn-active-bg: var(--primary-hover);
  --bs-btn-active-border-color: var(--primary-hover);
  box-shadow: 0 3px 5px rgba(37, 99, 235, 0.0745098039);
}

.btn-light {
  background: white;
  border-color: #dbe2ed;
  color: #536078;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: #c8d7f3;
  --bs-btn-hover-bg: #eff5ff;
  --bs-btn-hover-color: var(--primary);
  --bs-btn-hover-border-color: #9ebcef;
}

.btn-outline-danger {
  --bs-btn-color: #c64b55;
  --bs-btn-border-color: #efcfd3;
  --bs-btn-hover-bg: #fff1f3;
  --bs-btn-hover-color: #b83745;
  --bs-btn-hover-border-color: #df9ca4;
}

.btn-sm {
  padding: 6px 10px;
  min-height: 2.25rem;
  font-size: var(--font-small);
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 7px rgba(20, 43, 77, 0.0117647059);
  overflow: hidden;
  margin-bottom: 24px;
}

.panel-header {
  padding: 25px 28px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  font-size: var(--font-section);
  font-weight: 650;
  letter-spacing: -0.2px;
  margin: 0 0 6px;
}

.panel-header p {
  font-size: var(--font-ui);
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.panel-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #f2f5fc;
  color: #6888bd;
  border-radius: 9px;
}

.panel-body {
  padding: 27px 28px;
}

.form-panel {
  max-width: 100%;
  scroll-margin-top: 104px;
}

.workspace-table {
  margin-bottom: 0;
  font-size: var(--font-ui);
}

.workspace-table > thead > tr > th {
  color: #6b778d;
  font-size: var(--font-small);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  background: #fbfcfe;
  padding: 15px 24px;
  border-color: var(--line);
  white-space: nowrap;
}

.workspace-table > tbody > tr > td {
  padding: 19px 24px;
  border-color: #eff2f7;
  vertical-align: middle;
  color: #536078;
}

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

.workspace-table > tbody > tr:hover > td {
  background: #fcfdff;
}

.table-primary-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: var(--font-ui);
  font-weight: 600;
  min-width: 150px;
}

.record-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #e5eaf3;
  background: #f6f8fc;
  color: #637fae;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
}

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

.count-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 28px;
  justify-content: center;
  background: #f0f4fb;
  color: #536b93;
  font-size: var(--font-small);
  font-weight: 600;
}

.table-action {
  font-weight: 600;
  font-size: var(--font-small);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px;
  white-space: nowrap;
}

.table-action .icon {
  width: 16px;
}

.table-footer {
  padding: 0 24px;
}

.table-footer:has(nav) {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.pagination {
  margin-bottom: 0;
  font-size: var(--font-ui);
}

.page-link {
  border-color: #e4eaf4;
  color: var(--primary);
  font-size: var(--font-ui);
  padding: 8px 14px;
}

.table-footer nav p {
  font-size: var(--font-small);
  color: var(--muted);
}

.badge-soft {
  display: inline-flex;
  background: #f0f4fb;
  color: #5b7197;
  padding: 6px 9px;
  font-size: var(--font-small);
  font-weight: 550;
  border-radius: 5px;
  line-height: 1.4;
}

.status-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: var(--font-small);
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 9px;
}

.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-active {
  color: #218766;
  background: #edf9f3;
}

.status-muted {
  color: #7d889a;
  background: #f0f2f6;
}

.empty-state {
  text-align: center;
  padding: 55px 20px;
}

.empty-icon {
  background: #f0f5fd;
  color: #7b99c9;
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: 17px;
}

.empty-state h3 {
  font-size: var(--font-section);
  font-weight: 650;
  margin: 0 0 8px;
}

.empty-state p {
  font-size: var(--font-ui);
  color: var(--muted);
  margin: 0 auto;
  max-width: 360px;
  line-height: 1.7;
}

.empty-state.compact {
  padding: 28px 20px;
}

.empty-state.compact > .icon {
  margin-bottom: 13px;
  color: #7b99c9;
}

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

.field {
  margin-bottom: 22px;
  min-width: 0;
}

.field:last-child {
  margin-bottom: 0;
}

.form-grid .field {
  margin-bottom: 22px;
}

.form-label {
  font-size: var(--font-small);
  font-weight: 600;
  color: #36465f;
  margin-bottom: 9px;
}

.form-control, .form-select {
  background-color: #fff;
  font-size: var(--font-body);
  line-height: 1.5;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  min-height: 3rem;
  color: #24364f;
  padding: 11px 13px;
}

.form-control::placeholder {
  color: #6b778d;
}

.form-control:focus, .form-select:focus {
  border-color: #88aff5;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.0745098039);
}

textarea.form-control {
  resize: vertical;
  min-height: 94px;
}

.form-text {
  color: #6b778d;
  font-size: var(--font-small);
  line-height: 1.6;
  margin-top: 8px;
}

.optional {
  color: #6b778d;
  font-size: var(--font-small);
  font-weight: 400;
  margin-left: 5px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  background: #fcfdff;
}

.form-actions.standalone {
  border: 0;
  padding: 0;
  background: transparent;
  margin-top: 4px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #6b778d;
  font-size: var(--font-small);
  line-height: 1.6;
  margin-bottom: 0;
}

.form-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}

.invalid-feedback {
  font-size: var(--font-small);
  margin-top: 7px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 10px;
  padding: 16px 19px;
  margin-bottom: 22px;
  font-size: var(--font-ui);
  line-height: 1.7;
  border: 1px solid transparent;
}

.notice > .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice-success {
  color: #297459;
  background: #f0faf5;
  border-color: #d6eee2;
}

.notice-error {
  color: #a7424f;
  background: #fff4f5;
  border-color: #f1dce1;
}

.notice-neutral {
  color: #5a7092;
  background: #eff5ff;
  border-color: #dfebfd;
}

.notice ul {
  padding-left: 18px;
  margin-bottom: 0;
  margin-top: 5px;
}

.back-link {
  display: inline-block;
  font-size: var(--font-small);
  font-weight: 550;
  color: #75849c;
  margin-bottom: 22px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
  align-items: start;
}

.editor-main {
  min-width: 0;
}

.editor-aside {
  position: sticky;
  top: 108px;
}

.advice-card {
  padding: 26px;
}

.advice-icon {
  width: 43px;
  height: 43px;
  background: #eff5ff;
  color: #6388c5;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 19px;
}

.advice-card h2 {
  font-size: var(--font-section);
  font-weight: 650;
  margin-bottom: 9px;
}

.advice-card p, .advice-card li {
  font-size: var(--font-small);
  color: var(--muted);
  line-height: 1.8;
}

.advice-card ul {
  padding-left: 16px;
  margin: 18px 0;
}

.advice-card li {
  margin-bottom: 10px;
}

.advice-note {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.advice-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: #8295b3;
}

.advice-note p {
  margin: 0;
  font-size: var(--font-small);
}

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

.choice-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
  min-height: 60px;
}

.choice-card:hover {
  border-color: #bdd0ef;
}

.choice-card:has(input:checked) {
  background: #f5f9ff;
  border-color: #a8c5f7;
}

.choice-card input {
  flex-shrink: 0;
  margin: 0;
  width: 16px;
  height: 16px;
}

.choice-card strong {
  display: block;
  font-size: var(--font-ui);
  font-weight: 550;
}

.choice-card small {
  display: block;
  font-size: var(--font-small);
  color: #6b778d;
  margin-top: 3px;
}

.choice-card > .icon {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: #9caac0;
}

.permission-choices {
  display: grid;
  gap: 10px;
}

.role-name strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--font-ui);
}

.role-name small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-small);
  color: #6b778d;
  margin-top: 6px;
}

.role-name .icon {
  width: 11px;
  height: 11px;
}

.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 410px;
}

.permission-tags span {
  font-size: var(--font-small);
  color: #6e7d97;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f5f7fb;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.identifier {
  font-size: var(--font-small);
  color: #8391a7;
}

.avatar-small {
  width: 32px;
  height: 32px;
  font-size: var(--font-small);
}

.avatar-large {
  width: 76px;
  height: 76px;
  font-size: 1.5rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.profile-card {
  padding: 32px 25px;
  text-align: center;
}

.profile-card h2 {
  font-size: var(--font-section-large);
  font-weight: 650;
  margin: 18px 0 12px;
  overflow-wrap: anywhere;
}

.profile-card p {
  font-size: var(--font-small);
  color: #6b778d;
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.profile-access {
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  text-align: left;
  font-size: var(--font-small);
  line-height: 1.7;
  color: #6b778d;
}

.profile-access .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.profile-forms {
  min-width: 0;
}

.two-factor-qr {
  margin-bottom: 1.5rem;
}
.two-factor-qr img {
  display: block;
  max-width: 100%;
  height: auto;
}

.two-factor-secret {
  display: block;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.two-factor-recovery-codes {
  padding-left: 1.5rem;
}
.two-factor-recovery-codes li {
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.two-factor-recovery-option {
  margin-top: 1.5rem;
}

.credential-panel {
  max-width: 780px;
}

.credential-value {
  border: 1px dashed #c4d4ea;
  background: #f7faff;
  border-radius: 9px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: var(--font-body);
  color: #3b5376;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-status {
  font-size: var(--font-small);
  color: var(--muted);
  margin: 10px 0 0;
}

.workspace-footer {
  padding: 18px 38px;
  border-top: 1px solid var(--line);
  color: #6b778d;
  font-size: var(--font-small);
  display: flex;
  justify-content: space-between;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 20px rgba(23, 36, 59, 0.1450980392);
}

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

.mobile-sidebar-close {
  display: none;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(16, 31, 58, 0.4);
  border: 0;
}

.sidebar-collapsed .sidebar {
  width: var(--sidebar-compact);
  padding-inline: 12px;
}

.sidebar-collapsed .workspace-main {
  margin-left: var(--sidebar-compact);
  width: calc(100% - var(--sidebar-compact));
}

.sidebar-collapsed .sidebar .brand {
  margin-left: 8px;
  margin-right: 0;
}

.sidebar-collapsed .sidebar .brand-label, .sidebar-collapsed .sidebar .nav-label, .sidebar-collapsed .group-chevron {
  display: none;
}

.sidebar-collapsed .sidebar-heading {
  margin-inline: 0;
}

.sidebar-collapsed .nav-link, .sidebar-collapsed .nav-group summary {
  justify-content: center;
  padding-inline: 0;
}

.sidebar-collapsed .nav-site-name {
  display: none;
}

.sidebar-collapsed .sidebar-footer {
  justify-content: center;
  margin-inline: 0;
}

/* Account access */
.auth-body {
  background: white;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-story {
  background: radial-gradient(ellipse at 10% 90%, #244f81 0, transparent 65%), linear-gradient(130deg, #101f39, #193355);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 48px 56px 30px;
  display: flex;
  flex-direction: column;
}

.auth-story::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(176, 208, 255, 0.0509803922);
  border-radius: 50%;
  top: -280px;
  right: -410px;
  pointer-events: none;
}

.auth-story::after {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  border: 1px solid rgba(176, 208, 255, 0.0431372549);
  border-radius: 50%;
  top: -320px;
  right: -450px;
  pointer-events: none;
}

.auth-story > .brand {
  position: relative;
  z-index: 1;
}

.auth-story-content {
  max-width: 540px;
  margin: auto;
  padding: 58px 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.auth-story .eyebrow {
  color: #83b5ff;
  font-size: var(--font-small);
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}

.auth-story h1 {
  font-size: clamp(2.375rem, 4.1vw, 3.875rem);
  line-height: 1.13;
  letter-spacing: -2px;
  margin-bottom: 23px;
  font-weight: 650;
}

.auth-story-content > p {
  max-width: 340px;
  color: #b2c1d9;
  font-size: var(--font-body);
  line-height: 1.9;
  margin-bottom: 40px;
}

.workspace-illustration {
  border: 1px solid rgba(126, 159, 195, 0.2);
  border-radius: 13px;
  background: #192c48;
  box-shadow: 0 22px 55px rgba(8, 24, 48, 0.3333333333);
  transform: rotate(-2deg);
  padding: 0;
  overflow: hidden;
}

.illustration-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(107, 141, 168, 0.1490196078);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #95a9c7;
}

.mini-brand {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -1px;
  color: #e7efff;
}

.mini-avatar {
  margin-left: auto;
  background: #3a597e;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 7px;
  color: white;
  letter-spacing: 0;
}

.illustration-body {
  display: flex;
}

.illustration-nav {
  width: 100px;
  flex-shrink: 0;
  padding: 17px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 8px;
  color: #879cbd;
}

.illustration-nav span {
  padding: 8px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.illustration-nav .icon {
  width: 12px;
  height: 12px;
}

.illustration-nav .selected {
  background: #2b466c;
  color: #aecbff;
  border-radius: 5px;
}

.illustration-content {
  flex: 1;
  min-width: 0;
  background: #f6f8fc;
  padding: 22px 20px;
}

.illustration-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #34475f;
  font-size: 10px;
  font-weight: 650;
  margin-bottom: 18px;
}

.illustration-pill {
  font-size: 6px;
  border-radius: 10px;
  background: #e2f5e9;
  color: #509f72;
  padding: 4px 7px;
}

.illustration-card {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e5eaf3;
  background: #fff;
  border-radius: 6px;
  padding: 12px 10px;
  color: #53627b;
  margin-bottom: 9px;
  font-size: 9px;
}

.illustration-card small {
  display: block;
  font-size: 7px;
  color: #a0aabc;
  margin-top: 4px;
}

.illustration-icon {
  width: 28px;
  height: 28px;
  background: #edf3ff;
  color: #6793d3;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.illustration-icon .icon {
  width: 13px;
  height: 13px;
}

.illustration-icon.violet {
  background: #f1edfb;
  color: #9c85ce;
}

.illustration-card > .icon {
  color: #7fc3a2;
  width: 12px;
  height: 12px;
  margin-left: auto;
}

.illustration-lines {
  display: flex;
  gap: 8px;
  padding-top: 9px;
}

.illustration-lines span {
  height: 4px;
  flex: 1;
  background: #e7edf5;
  border-radius: 10px;
}

.auth-story-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-small);
  color: #8fa4c1;
  margin: 0;
}

.auth-story-footer .icon {
  width: 14px;
  height: 14px;
}

.auth-form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px;
  position: relative;
}

.auth-panel {
  width: 100%;
  max-width: 28rem;
  padding: 40px 0;
}

.auth-panel h2 {
  font-size: var(--font-page);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}

.auth-symbol {
  background: #eff5ff;
  color: #477ed1;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
}

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

.auth-panel .eyebrow {
  font-size: var(--font-small);
  margin-bottom: 12px;
}

.auth-intro {
  color: #6b778d;
  font-size: var(--font-body);
  line-height: 1.8;
  margin-bottom: 32px;
}

.auth-form .field {
  margin-bottom: 23px;
}

.auth-form .form-control {
  min-height: 48px;
}

.auth-form .form-label {
  font-size: var(--font-small);
}

.auth-submit {
  width: 100%;
  min-height: 47px;
  margin-top: 7px;
  justify-content: space-between;
  padding-inline: 18px;
}

.auth-form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--font-small);
  margin: -3px 0 25px;
}

.auth-form-links span {
  color: #6b778d;
}

.auth-form-links a {
  font-weight: 600;
}

.auth-help {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 25px;
  margin-top: 33px;
  border-top: 1px solid var(--line);
}

.auth-help > .icon {
  color: #9aaac4;
  width: 18px;
  height: 18px;
}

.auth-help p {
  font-size: var(--font-small);
  color: #5f6e84;
  font-weight: 550;
  margin: 0;
  line-height: 1.9;
}

.auth-help span {
  color: #6b778d;
  font-weight: 400;
}

.auth-footer {
  position: absolute;
  bottom: 23px;
  font-size: var(--font-small);
  color: #6b778d;
  margin: 0;
}

.auth-mobile-brand {
  display: none;
}

.auth-back {
  display: block;
  margin-top: 25px;
  font-size: var(--font-small);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 2.25rem;
  right: 6px;
}

.password-toggle .icon {
  width: 17px;
  height: 17px;
}

@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
  }
  .page-content {
    padding-inline: 28px;
  }
  .topbar {
    padding-inline: 28px;
  }
  .profile-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
  }
  .auth-story {
    padding-inline: 36px;
  }
  .auth-story-content > p {
    font-size: var(--font-body);
  }
}
@media (max-width: 1023px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 20px;
  }
  .sidebar .brand {
    margin-bottom: 20px;
  }
  .sidebar-footer {
    display: none;
  }
  .sidebar-heading {
    margin-top: 0;
  }
  .workspace-main {
    width: 100%;
    margin-left: 0;
  }
  .sidebar-collapsed .workspace-main {
    width: 100%;
    margin-left: 0;
  }
  .dashboard-body[data-navigation-ready] .sidebar {
    position: fixed;
    width: min(var(--sidebar-width), 100vw);
    padding: 30px 18px;
    transform: translateX(-100%);
  }
  .dashboard-body[data-navigation-ready].sidebar-open .sidebar {
    transform: translateX(0);
  }
  .dashboard-body[data-navigation-ready] .sidebar .brand {
    margin-bottom: 28px;
  }
  .dashboard-body[data-navigation-ready] .sidebar-footer {
    display: flex;
  }
  .mobile-sidebar-close {
    display: inline-flex;
    color: #8fa1bf;
    width: 24px;
    height: 24px;
  }
  .mobile-sidebar-close:hover {
    background: #243752;
    color: #fff;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .sidebar-open {
    overflow: hidden;
  }
  .auth-story h1 {
    font-size: 2.6875rem;
  }
  .illustration-nav {
    display: none;
  }
  .auth-story {
    padding-inline: 30px;
  }
  .auth-form-side {
    padding-inline: 32px;
  }
}
@media (max-width: 767px) {
  .topbar {
    min-height: 4.5rem;
    height: auto;
    padding-inline: 20px;
  }
  .topbar-context {
    gap: 12px;
  }
  .account-identity {
    display: none;
  }
  .account-chevron {
    margin-left: 0;
  }
  .page-content {
    padding: 26px 20px 36px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: var(--font-page-mobile);
  }
  .page-heading p {
    font-size: var(--font-body);
  }
  .panel-header {
    padding: 22px;
  }
  .panel-body {
    padding: 24px 22px;
  }
  .panel-header-inline {
    flex-wrap: wrap;
  }
  .form-grid, .choice-grid, .editor-layout, .profile-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .editor-aside {
    position: static;
    margin-top: 28px;
  }
  .form-actions {
    padding: 18px 22px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .form-actions.standalone {
    padding: 0;
  }
  .profile-card {
    display: none;
  }
  .workspace-footer {
    padding-inline: 20px;
  }
  .workspace-footer span {
    display: none;
  }
  .workspace-table > thead > tr > th, .workspace-table > tbody > tr > td {
    padding-inline: 20px;
  }
  .auth-shell {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-form-side {
    min-height: 100vh;
    padding: 25px 28px 65px;
    justify-content: flex-start;
    background: linear-gradient(#f6f9fe 0%, white 30%);
  }
  .auth-mobile-brand {
    display: block;
    color: #285fae;
    font-size: 1rem;
    font-weight: 700;
    align-self: flex-start;
    margin: 7px 0 32px;
  }
  .auth-panel {
    padding-block: 20px 30px;
  }
  .auth-panel h2 {
    font-size: var(--font-page-mobile);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
h1, h2, .page-heading p {
  overflow-wrap: anywhere;
}
