/* Generated from frontend/style-sources.json; edit its component sources. */
/* Component: tokens. Delivery: app/static/design-system.css. */
:root {
  --ds-motion-fast: 140ms;
  --ds-motion-normal: 180ms;
  --ds-motion-progress: 280ms;
  --ds-motion-ease: cubic-bezier(.2,.8,.2,1);
  --ds-bg: #f7f9f8;
  --ds-surface: #ffffff;
  --ds-text: #1a211e;
  --ds-text-primary: var(--ds-text);
  --ds-text-secondary: color-mix(in srgb, var(--ds-text) 72%, var(--ds-surface) 28%);
  --ds-text-muted: #5f6563;
  --ds-border: #d7dad9;
  --ds-border-strong: color-mix(in srgb, var(--ds-border) 72%, var(--ds-text) 28%);
  --ds-surface-subtle: color-mix(in srgb, var(--ds-surface) 92%, var(--ds-bg) 8%);
  --ds-surface-muted: color-mix(in srgb, var(--ds-surface) 82%, var(--ds-bg) 18%);
  --ds-accent: #067a6f;
  --ds-accent-hover: #075f57;
  --ds-accent-strong: var(--ds-accent-hover);
  --ds-accent-subtle: color-mix(in srgb, var(--ds-accent) 7%, var(--ds-surface) 93%);
  --ds-accent-soft: color-mix(in srgb, var(--ds-accent) 13%, var(--ds-surface) 87%);
  --ds-accent-border: color-mix(in srgb, var(--ds-accent) 38%, var(--ds-border) 62%);
  --ds-success: #256a4a;
  --ds-success-soft: color-mix(in srgb, var(--ds-success) 11%, var(--ds-surface) 89%);
  --ds-warning: #725714;
  --ds-warning-soft: #fff4d6;
  --ds-danger: #9f2f35;
  --ds-danger-hover: #7f252a;
  --ds-danger-soft: color-mix(in srgb, var(--ds-danger) 10%, var(--ds-surface) 90%);
  --ds-focus: var(--ds-accent);
  --ds-shadow-sm: 0 1px 2px rgba(26, 33, 30, .06);
  --ds-shadow-md: 0 12px 30px rgba(26, 33, 30, .08);
  --ds-shadow-lg: 0 28px 70px rgba(27, 54, 35, .18);
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 18px;
  --ds-radius-xl: 22px;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-7: 32px;
  --ds-space-8: 40px;
  --ds-control: 46px;
  --ds-control-sm: 38px;
  --ds-sidebar-width: 248px;
  --ds-topbar-height: 88px;
}

/* Component: base. Delivery: app/static/design-system.css. */
* {
  box-sizing: border-box;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--ds-text-muted);
}
.stack {
  display: grid;
  gap: 14px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.col-8 {
  grid-column: span 8;
}
.col-7 {
  grid-column: span 7;
}
.col-6 {
  grid-column: span 6;
}
.col-5 {
  grid-column: span 5;
}
.col-4 {
  grid-column: span 4;
}
.col-12 {
  grid-column: span 12;
}
.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  z-index: 200;
}
@media (max-width: 1180px) {
.col-8,
.col-7,
.col-6,
.col-5,
.col-4 {
  grid-column: span 12;
}
}
@media (max-width: 760px) {
.topbar {
  min-height: var(--ds-topbar-height);
  height: auto;
}
}
@media (max-width: 760px) {
.toast-stack {
  left: 12px;
  right: 12px;
  bottom: 12px;
}
}
@media (max-width: 760px) {
.toast {
  min-width: 0;
  width: 100%;
  max-width: none;
}
}
@media (max-width: 520px) {
.metric {
  padding: 14px;
}
}
@media (max-width: 520px) {
.metric-value {
  font-size: 23px;
}
}
.sidebar-backdrop {
  display: none;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, .44);
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ds-text);
  background: var(--ds-bg);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--ds-accent);
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--ds-accent);
  color: #fff;
  border-radius: 10px;
}
.skip-link:focus {
  top: 14px;
}
.small {
  font-size: 14px;
}
.eyebrow {
  color: var(--ds-accent);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ds-text-muted);
}
.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  color: var(--ds-accent);
  background: var(--ds-accent-soft);
}
.mobile-brand,
.sidebar-footer,
.sidebar-backdrop {
  display: none;
}
.topbar {
  position: static;
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  z-index: auto;
  min-width: 0;
}
.metric {
  border: 1px solid var(--ds-border);
  padding: 22px 24px;
  border-radius: 16px;
  background: #e5f1e9;
  border-color: #d9e6db;
}
.metric:nth-child(4n + 2) {
  background: #e5f3f1;
  border-color: #d3e7e1;
}
.metric:nth-child(4n + 3) {
  background: #fbf0db;
  border-color: #eee2c5;
}
.metric:nth-child(4n + 4) {
  background: #f8e9e0;
  border-color: #efded2;
}
.metric:nth-child(4n + 5) {
  background: #edf0e2;
  border-color: #e2e6d2;
}
@media (max-width: 760px) {
.metric {
  padding: 19px 17px;
}
}
@media (max-width: 760px) {
.metric-value {
  font-size: 30px;
}
}
@media (max-width: 760px) {
.metric-label {
  font-size: 13px;
}
}
@media (prefers-reduced-motion: reduce) {
html {
  scroll-behavior: auto;
}
}
:focus-visible {
  outline: 3px solid var(--ds-focus);
  outline-offset: 3px;
}
.metric,
.metric:nth-child(n) {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-sm);
}
.metric-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ds-text-secondary);
}
.metric-value {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.045em;
  color: var(--ds-text);
}
.metric[data-tone="attention"] {
  background: var(--ds-warning-soft);
  border-color: #ead89f;
}
.metric[data-tone="success"] {
  background: var(--ds-success-soft);
  border-color: #c9e5d4;
}
.toast {
  min-width: 280px;
  max-width: 430px;
  padding: 13px 15px;
  border-radius: 13px;
  font-size: 15px;
  color: var(--ds-text);
  background: var(--ds-surface);
  border-color: var(--ds-border);
  box-shadow: var(--ds-shadow-md);
}
.toast.success {
  background: var(--ds-surface);
  border-left-color: var(--ds-success);
}
.toast.error {
  background: var(--ds-surface);
  border-left-color: var(--ds-danger);
}
.password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: -4px 0 20px;
  padding: 0;
  list-style: none;
}
.password-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-text-muted);
  font-size: 13px;
  line-height: 1.4;
}
.password-rule.passed {
  color: var(--ds-success);
}
@media (max-width: 520px) {
.password-rules {
  grid-template-columns: 1fr;
}
}
.password-generator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 20px;
}
img,
video,
svg {
  max-width: 100%;
}
del {
  color: #64748b;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
  scroll-behavior: auto !important;
  animation-iteration-count: 1 !important;
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
}
}
body {
  background: var(--ds-bg);
  color: var(--ds-text);
}
.muted,
.small.muted {
  color: var(--ds-text-muted);
}
.sidebar {
  position: static;
  display: block;
  height: auto;
  width: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: var(--ds-text);
  z-index: auto;
  transform: none;
  box-shadow: none;
  flex: 1 1 0;
  min-width: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: visible;
  min-width: 0;
}
.account-toggle:hover,
.account-toggle[aria-expanded="true"] {
  background: var(--ds-surface-subtle);
  color: var(--ds-accent);
}
.account-toggle {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 3px 5px 3px 3px;
  color: var(--ds-text);
}
.account-menu {
  min-width: 230px;
}
.account-menu-summary {
  display: grid;
  gap: 3px;
  padding: 9px 11px 12px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--ds-border);
}
.account-menu-summary strong {
  font-size: 14px;
}
.account-menu-summary span {
  font-size: 12px;
  color: var(--ds-text-muted);
}
@media (hover: none), (pointer: coarse) {
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  textarea, select {
  font-size: max(16px, 1em) !important;
}
}
@media (hover: none), (pointer: coarse) {
.toast-stack {
  bottom: max(12px,env(safe-area-inset-bottom));
}
}

/* Component: shell. Delivery: app/static/design-system.css. */
.page-title {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 19px;
}
@media (max-width: 1180px) {
.metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.hero {
  align-items: flex-start;
  flex-direction: column;
}
}
@media (max-width: 640px) {
.user-meta {
  display: none;
}
}
@media (max-width: 760px) {
.page-title {
  font-size: 16px;
}
}
@media (max-width: 520px) {
.metrics {
  gap: 10px;
}
}
@media (max-width: 520px) {
.hero h1 {
  font-size: 27px;
}
}
.nav-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 800;
  padding: 12px 12px 8px;
  color: #a7b6d4;
}
.user-toolbar {
  justify-content: flex-end;
}
.user-toolbar .search {
  width: min(400px, 100%);
}
@media (max-width: 520px) {
.user-toolbar .search {
  width: 100%;
}
}
.metrics.metrics-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) {
.metrics.metrics-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.metrics.metrics-4 {
  grid-template-columns: 1fr;
}
}
.platform-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  width: 100%;
  min-width: 0;
  gap: clamp(12px, 1.5vw, 24px);
  align-items: center;
  min-height: var(--ds-topbar-height);
  padding: 10px clamp(16px, 1.6vw, 28px);
  background: #fff;
  border-bottom: 1px solid var(--ds-border);
}
.platform-home {
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
  border-radius: 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
  font-size: 18px;
  gap: 11px;
  color: var(--ds-text);
  min-width: 0;
  max-width: 100%;
}
.brand-logo {
  place-items: center;
  color: var(--ds-accent);
  font-weight: 900;
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 3px;
  object-fit: contain;
  overflow: hidden;
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  background: #fff;
}
.brand-wordmark {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.brand-wordmark strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.3;
}
.brand-wordmark small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ds-text-muted);
}
.nav-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  min-height: 46px;
  padding: 11px 13px;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ds-text-muted);
  text-align: left;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--ds-surface-subtle);
  color: var(--ds-accent);
}
.nav-item.active {
  background: var(--ds-accent-soft);
  color: var(--ds-accent);
}
.nav-icon {
  width: 19px;
  height: 19px;
}
.user-chip {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  gap: 11px;
  min-width: 0;
  border-radius: 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ds-accent-soft);
  color: var(--ds-accent-hover);
  font-size: 14px;
  font-weight: 700;
}
.user-meta {
  min-width: 0;
  line-height: 1.35;
  max-width: 175px;
}
.user-name {
  display: block;
  max-width: 100%;
  font-size: 14px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-role {
  color: var(--ds-text-muted);
  font-size: 12px;
  margin-top: 2px;
}
.platform-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1384px, calc(100% - 56px));
  margin: auto auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--ds-border);
  color: var(--ds-text-muted);
  font-size: 12px;
}
.platform-footer > span:first-child {
  font-weight: 700;
  color: var(--ds-text-secondary);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 2.8vw, 36px);
  letter-spacing: -.035em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero p {
  margin: 0;
  color: var(--ds-text-muted);
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
}
.card-body {
  padding: 22px 24px 24px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1180px) {
.platform-header {
  gap: 18px;
  padding-inline: 24px;
}
}
@media (max-width: 1180px) {
.platform-header .user-meta {
  display: none;
}
}
@media (max-width: 1180px) {
.nav-item {
  padding-inline: 12px;
}
}
@media (max-width: 1000px) {
.brand-wordmark small {
  display: none;
}
}
@media (max-width: 1000px) {
.brand-logo {
  width: 43px;
  height: 43px;
}
}
@media (max-width: 1000px) {
.platform-header {
  gap: 12px;
  padding-inline: 18px;
}
}
@media (max-width: 1000px) {
.nav-item {
  font-size: 14px;
  padding-inline: 10px;
}
}
@media (max-width: 1000px) {
.nav-item .nav-icon {
  display: none;
}
}
@media (max-width: 1000px) {
.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 760px) {
.hero {
  align-items: flex-start;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 25px;
}
}
@media (max-width: 760px) {
.hero h1 {
  font-size: 29px;
}
}
@media (max-width: 760px) {
.hero p {
  font-size: 15px;
}
}
@media (max-width: 760px) {
.metrics,
.metrics.metrics-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
}
@media (max-width: 760px) {
.card-head {
  padding: 21px 20px 0;
}
}
@media (max-width: 760px) {
.card-body {
  padding: 20px;
}
}
@media (max-width: 760px) {
.platform-footer {
  width: calc(100% - 36px);
  font-size: 11px;
}
}
@media (max-width: 520px) {
.platform-footer {
  flex-direction: column;
  gap: 4px;
}
}
@media (max-width: 380px) {
.brand-wordmark small {
  display: none;
}
}
@media (max-width: 380px) {
.metrics,
.metrics.metrics-4 {
  grid-template-columns: minmax(0, 1fr);
}
}
@media (max-width: 380px) {
.hero h1 {
  font-size: 27px;
}
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ds-space-6);
  margin: 0 0 var(--ds-space-6);
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--ds-border);
}
.page-header-copy {
  min-width: 0;
}
.page-header h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.page-header p {
  margin: 0;
  color: var(--ds-text-secondary);
  line-height: 1.6;
}
.page-header-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.card {
  overflow: hidden;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: none;
}
.card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 24px 0;
  border-color: var(--ds-border);
}
.card-title {
  letter-spacing: -.015em;
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-text);
}
@media (max-width: 1000px) {
.page-header {
  align-items: flex-start;
  flex-direction: column;
}
}
@media (max-width: 1000px) {
.page-header-actions {
  width: 100%;
}
}
.site-logo {
  width: 210px;
  height: auto;
  mix-blend-mode: multiply;
}
@media (max-width: 760px) {
.site-logo {
  width: 95px;
}
}
@media (max-width: 380px) {
.site-logo {
  width: 76px;
}
}
.platform-header .brand-wordmark small {
  display: none;
}
.platform-header .mobile-menu {
  display: none;
}
.header-popover-wrap {
  position: relative;
}
.header-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  min-width: 210px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 13px;
  box-shadow: 0 18px 46px rgba(25,52,40,.14);
}
.header-popover[hidden] {
  display: none;
}
.header-menu-item {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ds-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.header-menu-item:hover {
  background: var(--ds-accent-soft);
  color: var(--ds-accent-hover);
}
.header-menu-item.danger {
  color: var(--ds-danger);
}
.account-toggle .avatar {
  width: 40px;
  height: 40px;
}
.platform-header.shell-dense {
  gap: 10px;
  padding-inline: 16px;
}
.platform-header.shell-dense .platform-home {
  max-width: 210px;
  overflow: hidden;
}
.platform-header.shell-dense .brand-wordmark strong {
  font-size: 16px;
  letter-spacing: .065em;
}
.platform-header.shell-dense .nav {
  gap: 2px;
}
.platform-header.shell-dense .nav-item {
  min-height: 44px;
  padding: 10px 9px;
  gap: 0;
  font-size: 14px;
}
.platform-header.shell-dense .nav-item .nav-icon {
  display: none;
}
.platform-header.shell-dense .account-toggle .user-meta,
.platform-header.shell-dense .account-chevron {
  display: none;
}
.platform-header.shell-compact {
  min-height: 72px;
  padding: 10px 18px;
  gap: 12px;
}
.platform-header.shell-compact .platform-home {
  margin-right: auto;
}
.platform-header.shell-compact .brand-wordmark strong {
  font-size: 16px;
}
.platform-header.shell-compact .topbar {
  flex: 0 0 auto;
  gap: 7px;
  min-height: 44px;
  align-items: center;
}
.platform-header.shell-compact .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 330px);
  max-width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 18px;
  background: #fff;
  z-index: 61;
  transform: translateX(-110%);
  transition: transform .18s;
  box-shadow: 12px 0 44px rgba(33,66,39,.12);
}
.platform-header.shell-compact .sidebar.open {
  transform: translateX(0);
}
.platform-header.shell-compact .mobile-brand {
  display: block;
  flex: 0 0 auto;
  padding: 4px 8px 26px;
}
.platform-header.shell-compact .mobile-brand .brand-mark {
  padding: 0;
}
.platform-header.shell-compact .mobile-brand .brand-logo {
  width: 44px;
  height: 44px;
}
.platform-header.shell-compact .mobile-brand .brand-wordmark small {
  display: block;
  font-size: 10px;
}
.platform-header.shell-compact .nav {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
  align-items: stretch;
  justify-content: stretch;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.platform-header.shell-compact .nav-item {
  display: flex;
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  font-size: 15px;
}
.platform-header.shell-compact .nav-item .nav-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.platform-header.shell-compact .sidebar-footer {
  display: block;
  flex: 0 0 auto;
  margin-top: 14px;
  border-top: 1px solid var(--ds-border);
  color: var(--ds-text-muted);
  padding: 18px 8px 0;
}
.platform-header.shell-compact .sidebar-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 60;
  border: 0;
  padding: 0;
  background: rgba(29,53,41,.35);
  opacity: 0;
  pointer-events: none;
}
.platform-header.shell-compact .sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.platform-header.shell-compact .mobile-menu {
  display: inline-flex;
  place-items: center;
}
.platform-header.shell-compact .account-toggle .user-meta,
.platform-header.shell-compact .account-chevron {
  display: none;
}
.header-menu-item.active {
  background: var(--ds-accent-soft);
  color: var(--ds-accent-hover);
  font-weight: 650;
}
@media (hover: none), (pointer: coarse) {
.platform-header.shell-compact .sidebar {
  height: 100dvh;
  padding-top: max(18px,env(safe-area-inset-top));
  padding-bottom: max(18px,env(safe-area-inset-bottom));
}
}
@media (hover: none), (pointer: coarse) {
.header-popover {
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
}

/* Component: forms. Delivery: app/static/design-system.css. */
.field {
  display: grid;
  gap: 9px;
  margin-bottom: 21px;
}
.field label {
  font-size: 14px;
  font-weight: 650;
  color: var(--ds-text);
}
.password-control {
  position: relative;
}
.password-control .input {
  padding-right: 52px;
}
.toolbar .input {
  background: #fff;
}
.import-meta-grid strong,
.import-status,
.import-warning-list,
.import-warning,
.confirm-check {
  font-size: 14px;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  color: var(--ds-text);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  outline: none;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.textarea {
  min-height: 130px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ds-text-muted);
  opacity: 1;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ds-border-strong);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--ds-focus);
  box-shadow: 0 0 0 3px var(--ds-accent-soft);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  color: var(--ds-text-muted);
  background: var(--ds-surface-muted);
  border-color: var(--ds-border);
  cursor: not-allowed;
}
.field-error {
  display: block;
  margin-top: 7px;
  color: var(--ds-danger);
  font-size: 13px;
  line-height: 1.45;
}
.input[aria-invalid="true"] {
  border-color: var(--ds-danger);
  box-shadow: 0 0 0 3px var(--ds-danger-soft);
}
.search-shell {
  position: relative;
  width: min(480px, 100%);
}
.search-shell > .ui-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--ds-text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.search-shell .input {
  width: 100%;
  padding-left: 42px;
}
@media (max-width: 640px) {
.search-shell {
  width: 100%;
}
}
.input-compact {
  min-height: 40px;
}
.field-label {
  color: var(--ds-text);
  font-size: 14px;
  font-weight: 700;
}
.field-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
  cursor: pointer;
}
.confirm-check input {
  margin-top: 2px;
}
.input::placeholder,
.textarea::placeholder,
del {
  color: var(--ds-text-muted);
}

/* Component: badges. Delivery: app/static/design-system.css. */
.progress-track {
  border-radius: 99px;
  overflow: hidden;
  height: 8px;
  background: var(--ds-border);
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width var(--ds-motion-progress) var(--ds-motion-ease);
  background: var(--ds-accent);
}
.badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--ds-accent-soft);
  color: var(--ds-accent);
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 10px;
  gap: 5px;
  border: 1px solid transparent;
}
.badge.gray {
  color: var(--ds-text-muted);
  background: var(--ds-surface-muted);
  border-color: var(--ds-border);
}
.badge.success {
  color: var(--ds-success);
  background: var(--ds-success-soft);
  border-color: #c9e5d4;
}
.badge.warning {
  color: var(--ds-warning);
  background: var(--ds-warning-soft);
  border-color: #ead89f;
}
.badge.danger {
  color: var(--ds-danger);
  background: var(--ds-danger-soft);
  border-color: #ecc9c9;
}

/* Component: tables. Delivery: app/static/design-system.css. */
th,
td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--ds-border);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 760px) {
.table-wrap > table {
  min-width: 640px;
}
}
.action-menu {
  position: relative;
}
.action-menu > summary {
  list-style: none;
}
.action-menu > summary::-webkit-details-marker {
  display: none;
}
th {
  text-transform: uppercase;
  letter-spacing: .045em;
  background: var(--ds-surface-subtle);
  color: var(--ds-text-muted);
  font-size: 12px;
  font-weight: 650;
  padding: 15px 18px;
}
td {
  padding: 18px;
  font-size: 15px;
  line-height: 1.5;
}
.action-menu-popover button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 11px;
  background: transparent;
  color: var(--ds-text);
  text-align: left;
  font: inherit;
  font-weight: 650;
  font-size: 14px;
  min-height: 42px;
}
.action-menu-popover button:hover {
  background: var(--ds-accent-soft);
}
table {
  border-collapse: collapse;
  font-size: 15px;
  width: 100%;
}
tbody tr:hover {
  background: #fbfdfc;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.action-menu-trigger {
  padding-inline: 12px;
  font-size: 18px;
  line-height: 1;
  min-width: 40px;
  padding: 7px 9px;
}
.action-menu-popover {
  position: fixed;
  z-index: 120;
  left: var(--action-menu-left, 12px);
  top: var(--action-menu-top, 12px);
  min-width: 210px;
  width: min(280px, calc(100vw - 24px));
  max-height: var(--action-menu-max-height, calc(100vh - 24px));
  overflow-y: auto;
  border-color: var(--ds-border);
  padding: 6px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-md);
  background: var(--ds-surface);
}
.action-menu-popover button:hover,
.action-menu-popover .action-menu-link:hover {
  background: var(--ds-surface-subtle);
}
.action-menu-popover button.danger {
  color: var(--ds-danger);
}
@media (max-width: 640px) {
.row-actions {
  justify-content: flex-start;
}
}
.action-menu-popover button,
.action-menu-popover .action-menu-link {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ds-text);
  background: transparent;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-wrap {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  overflow: auto;
  background: var(--ds-surface);
  overflow-x: auto;
}
@media (max-width: 760px) {
.table-wrap {
  -webkit-overflow-scrolling: touch;
}
}

/* Component: security. Delivery: app/static/design-system.css. */
.load-error-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ds-danger-soft);
  color: var(--ds-danger);
  font-size: 24px;
  font-weight: 900;
}
.load-error h2 {
  margin: 0 0 6px;
}
.load-error p {
  margin: 0;
  color: var(--ds-text-muted);
}
@media (max-width: 760px) {
.load-error {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 22px 18px;
}
}
.load-error {
  min-height: 320px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  border-color: var(--ds-border);
}
.empty {
  font-size: 15px;
  line-height: 1.7;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 46px 24px;
  color: var(--ds-text-secondary);
  text-align: center;
  background: var(--ds-surface);
  border: 1px dashed var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
}
.empty strong {
  display: block;
  font-size: 21px;
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--ds-text);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ds-accent);
  background: var(--ds-accent-soft);
  border-radius: 14px;
}
.empty-compact {
  min-height: 124px;
  padding: 28px 20px;
  align-content: center;
}
.empty-compact strong {
  font-size: 17px;
  margin-bottom: 4px;
}
@media (max-width: 640px) {
.empty-compact {
  min-height: 104px;
  padding: 22px 16px;
}
}

/* Component: collections. Delivery: app/static/design-system.css. */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar-meta {
  color: var(--ds-text-secondary);
  font-size: 14px;
  white-space: nowrap;
}
@media (max-width: 640px) {
.toolbar-meta {
  white-space: normal;
}
}

/* Component: dialogs. Delivery: app/static/design-system.css. */
.modal.modal-wide {
  width: min(820px, 100%);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ds-border);
}
.modal.modal-analytics {
  width: min(1180px, 100%);
}
.modal-head h2,
.modal-head h3 {
  font-size: 22px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 24px;
  background: rgba(26, 33, 30, .42);
  backdrop-filter: blur(4px);
}
.modal-footer,
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  margin: 0;
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface-subtle);
}
.modal.modal-confirm {
  width: min(500px, 100%);
}
.modal-confirm-copy {
  margin: 0;
  color: var(--ds-text-secondary);
  line-height: 1.65;
}
.modal {
  width: min(620px, 100%);
  overflow-y: auto;
  overflow: hidden;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 920px);
  max-height: min(88dvh, 920px);
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--ds-border);
  flex: 0 0 auto;
}
.modal-body {
  padding: 24px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.modal-body > .modal-actions:last-child {
  margin: 24px -24px -24px;
  position: sticky;
  bottom: -24px;
  z-index: 2;
  box-shadow: 0 -10px 24px rgba(26, 33, 30, .06);
}
body:has(.modal-backdrop) {
  overflow: hidden;
}
.modal-backdrop[data-visual-viewport] {
  inset: var(--dialog-viewport-top,0px) 0 auto;
  height: var(--dialog-viewport-height,100dvh);
}
.modal-backdrop[data-visual-viewport] > .modal {
  max-height: min(920px,88dvh,calc(var(--dialog-viewport-height,100dvh) - 28px));
}
.modal-backdrop[data-short-viewport="true"] :is(.modal-head,.modal-body) {
  padding: 12px;
}
.modal-backdrop[data-short-viewport="true"] :is(.modal-footer,.modal-actions) {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.modal-backdrop[data-short-viewport="true"] :is(.modal-footer,.modal-actions) > .btn {
  flex: 1 1 110px;
  width: auto;
  min-width: 0;
  white-space: normal;
}
.modal-backdrop[data-short-viewport="true"] .modal-body > .modal-actions:last-child {
  margin: 12px -12px -12px;
  bottom: -12px;
}
@media (max-width: 760px) {
.modal-actions {
  flex-direction: column-reverse;
}
}
@media (max-width: 760px) {
.modal-actions .btn {
  width: 100%;
}
}
@media (max-width: 760px) {
.modal-backdrop {
  padding: 14px;
}
}
@media (max-width: 640px) {
.modal-footer,
.modal-actions {
  flex-direction: column-reverse;
}
}
@media (max-width: 640px) {
.modal-footer .btn,
.modal-actions .btn {
  width: 100%;
}
}
@media (max-width: 760px) {
.modal {
  max-height: 94dvh;
}
}
@media (max-width: 760px) {
.modal-head,
.modal-body {
  padding: 16px;
}
}
@media (max-width: 760px) {
.modal-footer,
.modal-actions {
  padding: 16px;
}
}
@media (max-width: 760px) {
.modal-body > .modal-actions:last-child {
  margin: 16px -16px -16px;
}
}
@media (prefers-reduced-motion: no-preference) {
.modal-backdrop > .modal {
  animation: sm-dialog-in var(--ds-motion-normal) var(--ds-motion-ease);
}
}
@media (hover: none), (pointer: coarse) {
.modal-backdrop {
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}
}
@media (max-width:760px) {
.modal-backdrop[data-visual-viewport] > .modal {
  max-height: min(94dvh,calc(var(--dialog-viewport-height,100dvh) - 28px));
}
}

/* Component: catalog. Delivery: app/static/design-system.css. */
@media (max-width: 640px) {
.metrics,
.course-grid {
  grid-template-columns: 1fr;
}
}
.toolbar,
.course-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
.toolbar,
.course-search {
  align-items: stretch;
  flex-direction: column;
}
}

/* Component: buttons. Delivery: app/static/design-system.css. */
@media (max-width: 760px) {
.load-error .btn {
  width: 100%;
}
}
.check-marker .ui-icon {
  width: 12px;
  height: 12px;
}
.ui-icon {
  width: 21px;
  height: 21px;
  display: block;
  flex: 0 0 auto;
  vertical-align: middle;
  fill: currentColor;
  overflow: visible;
  pointer-events: none;
}
.hero > .btn {
  flex-shrink: 0;
}
@media (max-width: 760px) {
.hero > .btn {
  width: 100%;
}
}
.btn > .ui-icon,
.btn-icon > .ui-icon,
.nav-item > .ui-icon {
  align-self: center;
}
.action-menu-popover .ui-icon {
  width: 17px;
  height: 17px;
}
.btn {
  min-height: var(--ds-control);
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-primary {
  color: #fff;
  background: var(--ds-accent);
  border-color: var(--ds-accent);
}
.btn-primary:hover {
  background: var(--ds-accent-hover);
  border-color: var(--ds-accent-hover);
}
.btn-secondary {
  color: var(--ds-text);
  background: var(--ds-surface-subtle);
  border-color: var(--ds-border);
}
.btn-secondary:hover {
  background: var(--ds-surface-muted);
  border-color: var(--ds-border-strong);
}
.btn-ghost {
  color: var(--ds-accent);
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--ds-accent-soft);
}
.btn-danger {
  color: #fff;
  background: var(--ds-danger);
  border-color: var(--ds-danger);
}
.btn-danger:hover {
  color: #fff;
  background: var(--ds-danger-hover);
  border-color: var(--ds-danger-hover);
}
.btn-success {
  color: var(--ds-success);
  background: var(--ds-success-soft);
  border-color: color-mix(in srgb, var(--ds-success) 25%, var(--ds-border) 75%);
}
.btn-small {
  min-height: var(--ds-control-sm);
  padding: 7px 12px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  gap: 20px;
}
.btn-icon:hover {
  color: var(--ds-accent);
  background: var(--ds-accent-soft);
}
.btn-icon .ui-icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 760px) {
.btn-icon {
  min-width: 44px;
  width: 44px;
  height: 44px;
}
}
.action-menu-trigger .ui-icon {
  width: 18px;
  height: 18px;
}
.empty-icon .ui-icon {
  width: 24px;
  height: 24px;
}
@media (max-width: 1000px) {
.page-header-actions .btn {
  width: 100%;
}
}
.btn-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ds-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.password-rule .ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.btn-icon.danger {
  color: var(--ds-danger);
  border-color: #efcccc;
  background: var(--ds-danger-soft);
}
.btn-icon.danger:hover {
  color: #fff;
  background: var(--ds-danger);
  border-color: var(--ds-danger);
}
.badge .ui-icon {
  width: 14px;
  height: 14px;
}
button,
.btn,
.nav-item {
  touch-action: manipulation;
}
.account-chevron .ui-icon {
  width: 15px;
  height: 15px;
}
.header-menu-item .ui-icon {
  width: 18px;
  height: 18px;
}
.btn, .btn-icon, .nav-item, .header-menu-item {
  transition-property: background-color, border-color, color, box-shadow, opacity, transform;
  transition-duration: var(--ds-motion-fast);
  transition-timing-function: var(--ds-motion-ease);
}
@media (prefers-reduced-motion: no-preference) {
.btn:active:not(:disabled), .btn-icon:active:not(:disabled) {
  transform: translateY(1px);
}
}

/* Component: students. Delivery: app/static/design-system.css. */
.password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
@media (max-width: 760px) {
.password-input-row {
  grid-template-columns: 1fr;
}
}

/* Component: teachers. Delivery: app/static/design-system.css. */
@media (max-width: 760px) {
.assessment-submit-actions .btn,
.teacher-enrollment-row .btn,
.teacher-enrollment-picker .btn,
.teacher-profile-actions .btn,
.teacher-assignment-card .btn {
  width: 100%;
}
}

/* Component: motion. Delivery: app/static/design-system.css. */
@keyframes sm-dialog-in {
from {
  opacity: .72;
  transform: translateY(4px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}
