body.fluent-auth-page {
  --fluent-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --fluent-font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --fluent-bg: #f9f9f9;
  --fluent-surface: #ffffff;
  --fluent-surface-soft: #f3f3f3;
  --fluent-border: #c0c7d4;
  --fluent-border-soft: rgba(192, 199, 212, 0.35);
  --fluent-text: #1a1c1c;
  --fluent-muted: #414752;
  --fluent-primary: #005fac;
  --fluent-primary-strong: #0078d7;
  --fluent-primary-soft: #d4e3ff;
  --fluent-success: #15803d;
  --fluent-warning: #b45309;
  --fluent-danger: #ba1a1a;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 120, 215, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 95, 172, 0.1), transparent 30%),
    var(--fluent-bg);
  color: var(--fluent-text);
  font-family: var(--fluent-font-body);
}

body.fluent-auth-page *,
body.fluent-auth-page *::before,
body.fluent-auth-page *::after {
  box-sizing: border-box;
}

body.fluent-auth-page a {
  color: inherit;
  text-decoration: none;
}

body.fluent-auth-page input,
body.fluent-auth-page button {
  font: inherit;
}

body.fluent-auth-page .fluent-brand-mark,
body.fluent-auth-page h1,
body.fluent-auth-page strong {
  font-family: var(--fluent-font-heading);
}

body.fluent-auth-page .fluent-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

body.fluent-auth-page .fluent-auth-card {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--fluent-border-soft);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(18px);
}

body.fluent-auth-page .fluent-auth-intro,
body.fluent-auth-page .fluent-auth-panel {
  padding: 36px;
}

body.fluent-auth-page .fluent-auth-intro {
  display: grid;
  align-content: start;
  gap: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(240, 246, 255, 0.86)),
    var(--fluent-surface-soft);
  border-right: 1px solid var(--fluent-border-soft);
}

body.fluent-auth-page .fluent-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--fluent-primary);
}

body.fluent-auth-page .fluent-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--fluent-primary), var(--fluent-primary-strong));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

body.fluent-auth-page .fluent-auth-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.fluent-auth-page .fluent-auth-brand-copy strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.fluent-auth-page .fluent-auth-brand-copy span,
body.fluent-auth-page .fluent-auth-copy,
body.fluent-auth-page .fluent-auth-note {
  color: var(--fluent-muted);
}

body.fluent-auth-page .fluent-auth-kicker {
  margin: 16px 0 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--fluent-muted);
}

body.fluent-auth-page h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.fluent-auth-page .fluent-auth-copy {
  margin: 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.65;
}

body.fluent-auth-page .fluent-auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

body.fluent-auth-page .fluent-auth-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(0, 95, 172, 0.08);
  font-size: 13px;
}

body.fluent-auth-page .fluent-auth-panel {
  display: grid;
  gap: 16px;
  align-content: center;
}

body.fluent-auth-page .fluent-auth-status {
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid var(--fluent-border-soft);
  background: var(--fluent-surface-soft);
  font-size: 14px;
  line-height: 1.5;
}

body.fluent-auth-page .fluent-auth-status[data-tone="info"] {
  color: var(--fluent-primary);
  background: rgba(0, 95, 172, 0.08);
  border-color: rgba(0, 95, 172, 0.14);
}

body.fluent-auth-page .fluent-auth-status[data-tone="warn"] {
  color: var(--fluent-warning);
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.15);
}

body.fluent-auth-page .fluent-auth-status[data-tone="error"] {
  color: var(--fluent-danger);
  background: rgba(186, 26, 26, 0.08);
  border-color: rgba(186, 26, 26, 0.15);
}

body.fluent-auth-page .fluent-auth-form {
  display: grid;
  gap: 14px;
}

body.fluent-auth-page .fluent-auth-field {
  display: grid;
  gap: 8px;
}

body.fluent-auth-page .fluent-auth-field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--fluent-muted);
}

body.fluent-auth-page .fluent-auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--fluent-border);
  border-radius: 16px;
  background: var(--fluent-surface);
  color: var(--fluent-text);
  font-size: 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.fluent-auth-page .fluent-auth-field input:focus {
  outline: none;
  border-color: rgba(0, 95, 172, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 95, 172, 0.12);
}

body.fluent-auth-page .fluent-primary-btn {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--fluent-primary);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--fluent-primary), var(--fluent-primary-strong));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

body.fluent-auth-page .fluent-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 95, 172, 0.18);
  filter: saturate(1.05);
}

body.fluent-auth-page .fluent-primary-btn-wide {
  width: 100%;
}

body.fluent-auth-page .fluent-auth-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

body.fluent-auth-page .fluent-auth-links form {
  margin: 0;
}

body.fluent-auth-page .fluent-auth-links a {
  color: var(--fluent-primary);
  font-size: 14px;
  font-weight: 700;
}

body.fluent-auth-page .fluent-auth-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fluent-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.fluent-auth-page .fluent-auth-links a:hover {
  text-decoration: underline;
}

body.fluent-auth-page .fluent-auth-link-btn:hover {
  text-decoration: underline;
}

body.fluent-auth-page .fluent-auth-helper {
  margin: -2px 0 0;
  color: var(--fluent-muted);
  font-size: 13px;
  line-height: 1.6;
}

body.fluent-auth-page .fluent-auth-code-input {
  text-align: center;
  letter-spacing: 0.34em;
  font-size: 22px;
  font-weight: 800;
}

body.fluent-auth-page .fluent-auth-note {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 243, 243, 0.92)),
    var(--fluent-surface-soft);
  border: 1px solid rgba(0, 95, 172, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.65;
}

body.fluent-auth-page .fluent-auth-note strong {
  color: var(--fluent-primary);
}

@media (max-width: 860px) {
  body.fluent-auth-page .fluent-auth-card {
    grid-template-columns: 1fr;
  }

  body.fluent-auth-page .fluent-auth-intro {
    border-right: none;
    border-bottom: 1px solid var(--fluent-border-soft);
  }
}

@media (max-width: 520px) {
  body.fluent-auth-page .fluent-auth-shell {
    padding: 16px;
  }

  body.fluent-auth-page .fluent-auth-intro,
  body.fluent-auth-page .fluent-auth-panel {
    padding: 24px 20px;
  }

  body.fluent-auth-page .fluent-auth-note,
  body.fluent-auth-page .fluent-auth-meta span {
    border-radius: 16px;
  }
}

.fluent-shell {
  --fluent-topbar-h: 54px;
  --fluent-sidebar-w: 256px;
  --fluent-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --fluent-font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --fluent-bg: #f9f9f9;
  --fluent-surface: #ffffff;
  --fluent-surface-soft: #f3f3f3;
  --fluent-surface-muted: #eeeeee;
  --fluent-border: #c0c7d4;
  --fluent-border-soft: rgba(192, 199, 212, 0.35);
  --fluent-text: #1a1c1c;
  --fluent-muted: #414752;
  --fluent-primary: #005fac;
  --fluent-primary-strong: #0078d7;
  --fluent-primary-soft: #d4e3ff;
  --fluent-tertiary: #994700;
  --fluent-tertiary-soft: #ffdbc8;
  --fluent-success: #15803d;
  --fluent-danger: #ba1a1a;
  min-height: 100vh;
  background: var(--fluent-bg);
  color: var(--fluent-text);
  font-family: var(--fluent-font-body);
  -webkit-text-size-adjust: 100%;
}

body.fluent-mobile-nav-open {
  overflow: hidden;
}

.fluent-shell *,
.fluent-shell *::before,
.fluent-shell *::after {
  box-sizing: border-box;
}

.fluent-shell [hidden] {
  display: none !important;
}

.fluent-shell h1,
.fluent-shell h2,
.fluent-shell h3,
.fluent-shell strong {
  font-family: var(--fluent-font-heading);
  letter-spacing: -0.025em;
}

.fluent-shell a {
  color: inherit;
  text-decoration: none;
}

.fluent-shell button,
.fluent-shell input,
.fluent-shell select,
.fluent-shell textarea {
  font: inherit;
}

.fluent-shell .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  line-height: 1;
}

.fluent-shell .fluent-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--fluent-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(243, 243, 243, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--fluent-border-soft);
}

.fluent-shell .fluent-topbar-left,
.fluent-shell .fluent-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fluent-shell .fluent-topbar-right {
  justify-content: flex-end;
}

.fluent-shell .fluent-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
  color: var(--fluent-primary);
}

.fluent-shell .fluent-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--fluent-primary), var(--fluent-primary-strong));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 8px;
}

.fluent-shell .fluent-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fluent-shell .fluent-topbar-divider {
  width: 1px;
  height: 22px;
  background: var(--fluent-border);
  opacity: 0.45;
}

.fluent-shell .fluent-section-name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--fluent-muted);
}

.fluent-shell .fluent-mobile-menu-btn,
.fluent-shell .fluent-sidebar-close,
.fluent-shell .fluent-sidebar-backdrop {
  display: none;
}

.fluent-shell .fluent-mobile-menu-btn,
.fluent-shell .fluent-sidebar-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--fluent-border);
  background: var(--fluent-surface);
  color: var(--fluent-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.fluent-shell .fluent-mobile-menu-btn:hover,
.fluent-shell .fluent-sidebar-close:hover {
  background: #eef3f8;
}

.fluent-shell .fluent-wallet-chip,
.fluent-shell .fluent-topbar-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--fluent-border);
  background: var(--fluent-surface);
  color: var(--fluent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.fluent-shell .fluent-wallet-chip {
  color: var(--fluent-primary);
  border-color: rgba(0, 95, 172, 0.18);
  background: rgba(0, 95, 172, 0.06);
}

.fluent-shell .fluent-wallet-chip:hover,
.fluent-shell .fluent-topbar-btn:hover {
  background: #eef3f8;
}

.fluent-shell .fluent-topbar-apps-link {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 0;
  white-space: nowrap;
  border: 1px solid var(--fluent-border);
  border-radius: 8px;
  background: var(--fluent-surface);
  color: #5f6368;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.fluent-shell .fluent-topbar-apps-link:hover {
  background: #eef3f8;
  color: #3f444a;
  border-color: var(--fluent-border);
  transform: translateY(-1px);
}

.fluent-shell .fluent-apps-icon {
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  justify-content: center;
  align-content: center;
  gap: 3px;
}

.fluent-shell .fluent-apps-icon span {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.98;
}

.fluent-shell .fluent-user-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 10px;
}

.fluent-shell .fluent-user-chip strong {
  font-size: 13px;
  line-height: 1.1;
}

.fluent-shell .fluent-user-chip span {
  font-size: 11px;
  color: var(--fluent-muted);
}

.fluent-shell .fluent-sidebar {
  position: fixed;
  left: 0;
  top: var(--fluent-topbar-h);
  bottom: 0;
  width: var(--fluent-sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 18px 0 16px;
  background: #f3f3f3;
  border-right: 1px solid var(--fluent-border-soft);
  z-index: 50;
}

.fluent-shell .fluent-sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 20px;
  border-bottom: 1px solid var(--fluent-border-soft);
  margin-bottom: 16px;
}

.fluent-shell .fluent-sidebar-logo {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 95, 172, 0.18);
  background: #eaf3ff;
  color: var(--fluent-primary);
}

.fluent-shell .fluent-sidebar-copy {
  display: grid;
  gap: 2px;
}

.fluent-shell .fluent-sidebar-copy strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.fluent-shell .fluent-sidebar-copy span {
  font-size: 11px;
  color: var(--fluent-tertiary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fluent-shell .fluent-sidebar-nav {
  display: grid;
  gap: 2px;
  padding: 0 10px;
}

.fluent-shell .fluent-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--fluent-muted);
  border-left: 4px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.fluent-shell .fluent-nav-link:hover {
  background: #e7e7e7;
}

.fluent-shell .fluent-nav-link.is-active {
  background: #eeeeee;
  color: var(--fluent-primary);
  border-left-color: var(--fluent-primary);
  font-weight: 700;
}

.fluent-shell .fluent-nav-link .material-symbols-outlined {
  font-size: 20px;
}

.fluent-shell .sidebar-link::before,
.fluent-shell .fluent-nav-link::before {
  content: none !important;
  display: none !important;
}

.fluent-shell .fluent-sidebar-account {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 18px 22px 0;
  border-top: 1px solid var(--fluent-border-soft);
}

.fluent-shell .fluent-sidebar-account .fluent-wallet-chip,
.fluent-shell .fluent-sidebar-account .logout-form,
.fluent-shell .fluent-sidebar-account .fluent-sidebar-btn {
  width: 100%;
}

.fluent-shell .fluent-sidebar-account .fluent-wallet-chip,
.fluent-shell .fluent-sidebar-account .fluent-sidebar-btn {
  justify-content: flex-start;
}

.fluent-shell .fluent-sidebar-footer {
  margin-top: 12px;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fluent-muted);
  letter-spacing: 0.18em;
}

.fluent-shell .fluent-main {
  margin-left: var(--fluent-sidebar-w);
  margin-top: var(--fluent-topbar-h);
  min-height: calc(100vh - var(--fluent-topbar-h));
  padding: 24px;
  overflow: auto;
}

.fluent-shell .fluent-screen {
  display: grid;
  gap: 24px;
}

.fluent-shell .fluent-screen.is-active {
  display: grid;
}

.fluent-shell .fluent-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.fluent-shell .fluent-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--fluent-muted);
}

.fluent-shell .fluent-page-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.fluent-shell .fluent-page-copy {
  margin: 8px 0 0;
  color: var(--fluent-muted);
  font-size: 15px;
}

.fluent-shell .fluent-page-actions,
.fluent-shell .fluent-inline-actions,
.fluent-shell .table-inline-actions,
.fluent-shell .sheet-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fluent-shell .fluent-inline-actions-spread {
  align-items: flex-end;
}

.fluent-shell .fluent-field-grow {
  flex: 1 1 260px;
}

.fluent-shell .fluent-card,
.fluent-shell .fluent-summary-card,
.fluent-shell .sheet-card,
.fluent-shell .sheet-print-block {
  background: var(--fluent-surface);
  border: 1px solid var(--fluent-border-soft);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.04);
}

.fluent-shell .fluent-card,
.fluent-shell .fluent-summary-card {
  padding: 18px;
}

.fluent-shell .fluent-card-head,
.fluent-shell .fluent-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.fluent-shell .fluent-card-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fluent-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.fluent-shell .fluent-card-head h3,
.fluent-shell .fluent-section-head h3,
.fluent-shell .sheet-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fluent-shell .fluent-card-head p:last-child,
.fluent-shell .fluent-section-head p:last-child {
  margin: 6px 0 0;
  color: var(--fluent-muted);
  font-size: 14px;
}

.fluent-shell .fluent-field-stack,
.fluent-shell .fluent-form-stack {
  display: grid;
  gap: 16px;
}

.fluent-shell .fluent-grid-2,
.fluent-shell .fluent-overview-grid,
.fluent-shell .fluent-library-grid {
  display: grid;
  gap: 18px;
}

.fluent-shell .fluent-grid-2,
.fluent-shell .fluent-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fluent-shell .fluent-library-grid {
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.2fr);
}

.fluent-shell .fluent-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.fluent-shell .fluent-config-form,
.fluent-shell .fluent-config-side {
  display: grid;
  gap: 18px;
}

.fluent-shell .fluent-config-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fluent-shell .fluent-config-meta div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fluent-border-soft);
}

.fluent-shell .fluent-config-meta div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fluent-shell .fluent-config-pages {
  display: grid;
  gap: 14px;
}

.fluent-shell .fluent-config-page-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fluent-border-soft);
  background: var(--fluent-surface-soft);
}

.fluent-shell .fluent-config-page-head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fluent-muted);
}

.fluent-shell .fluent-config-meta dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fluent-muted);
}

.fluent-shell .fluent-config-meta dd {
  margin: 0;
  color: var(--fluent-text);
  word-break: break-word;
}

.fluent-shell .fluent-config-note {
  display: grid;
  gap: 10px;
  color: var(--fluent-muted);
}

.fluent-shell .fluent-config-note p {
  margin: 0;
}

.fluent-shell .fluent-field {
  display: grid;
  gap: 8px;
}

.fluent-shell .fluent-field span {
  font-size: 11px;
  font-weight: 700;
  color: var(--fluent-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fluent-shell .fluent-field input,
.fluent-shell .fluent-field select,
.fluent-shell .fluent-field textarea,
.fluent-shell #toolbarProjectNameInput,
.fluent-shell #toolbarProjectSelect,
.fluent-shell #sheetLibraryName,
.fluent-shell #sheetLibraryWidth,
.fluent-shell #sheetLibraryHeight,
.fluent-shell #sheetLibraryQty,
.fluent-shell #sheetLibraryCost,
.fluent-shell #overviewQuickProjectName,
.fluent-shell #quickSheetsInput,
.fluent-shell #quickPartsInput {
  width: 100%;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid var(--fluent-border);
  background: var(--fluent-surface-soft);
  color: var(--fluent-text);
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.fluent-shell .fluent-field textarea,
.fluent-shell #quickSheetsInput,
.fluent-shell #quickPartsInput {
  min-height: 92px;
  resize: vertical;
}

.fluent-shell .fluent-field input:focus,
.fluent-shell .fluent-field select:focus,
.fluent-shell .fluent-field textarea:focus,
.fluent-shell #toolbarProjectNameInput:focus,
.fluent-shell #toolbarProjectSelect:focus,
.fluent-shell #sheetLibraryName:focus,
.fluent-shell #sheetLibraryWidth:focus,
.fluent-shell #sheetLibraryHeight:focus,
.fluent-shell #sheetLibraryQty:focus,
.fluent-shell #sheetLibraryCost:focus,
.fluent-shell #overviewQuickProjectName:focus,
.fluent-shell #quickSheetsInput:focus,
.fluent-shell #quickPartsInput:focus {
  border-color: var(--fluent-primary);
  background: #fff;
}

.fluent-shell .fluent-primary-btn,
.fluent-shell .fluent-secondary-btn,
.fluent-shell .fluent-link-btn,
.fluent-shell .mini-btn,
.fluent-shell .erp-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--fluent-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.fluent-shell .fluent-primary-btn {
  border-color: var(--fluent-primary);
  background: linear-gradient(135deg, var(--fluent-primary), var(--fluent-primary-strong));
  color: #fff;
}

.fluent-shell .fluent-primary-btn:hover {
  filter: brightness(1.05);
}

.fluent-shell .fluent-primary-btn-wide {
  width: 100%;
}

.fluent-shell .workspace-floating-actions {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fluent-shell .workspace-action-fab,
.fluent-shell .workspace-print-fab {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fluent-font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.fluent-shell .workspace-action-fab {
  border: 1px solid var(--fluent-primary);
  background: linear-gradient(135deg, var(--fluent-primary), var(--fluent-primary-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 95, 172, 0.24);
}

.fluent-shell .workspace-print-fab {
  border: 1px solid rgba(0, 95, 172, 0.24);
  background: var(--fluent-surface);
  color: var(--fluent-primary);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.fluent-shell .workspace-action-fab:hover,
.fluent-shell .workspace-print-fab:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.fluent-shell .workspace-action-fab.is-results-mode {
  border-color: rgba(0, 95, 172, 0.28);
  background: var(--fluent-surface);
  color: var(--fluent-primary);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.fluent-shell .workspace-action-fab[hidden],
.fluent-shell .workspace-print-fab[hidden] {
  display: none !important;
}

.fluent-shell .fluent-secondary-btn,
.fluent-shell .mini-btn,
.fluent-shell .fluent-link-btn,
.fluent-shell .erp-btn,
.fluent-shell .erp-btn.erp-btn-ghost {
  background: var(--fluent-surface);
  color: var(--fluent-text);
}

.fluent-shell .fluent-secondary-btn:disabled,
.fluent-shell .fluent-primary-btn:disabled,
.fluent-shell .mini-btn:disabled,
.fluent-shell .erp-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.fluent-shell .fluent-secondary-btn:hover,
.fluent-shell .mini-btn:hover,
.fluent-shell .fluent-link-btn:hover,
.fluent-shell .erp-btn:hover,
.fluent-shell .erp-btn.erp-btn-ghost:hover {
  background: #eef3f8;
}

.fluent-shell .fluent-secondary-btn.is-active {
  border-color: rgba(0, 95, 172, 0.32);
  background: #eef5ff;
  color: var(--fluent-primary);
}

.fluent-shell .fluent-link-btn {
  min-height: 34px;
  padding-inline: 0;
  border: none;
  color: var(--fluent-primary);
  justify-content: flex-start;
  background: transparent;
}

.fluent-shell .mini-btn.danger,
.fluent-shell .erp-btn.erp-btn-danger {
  color: var(--fluent-danger);
  border-color: rgba(186, 26, 26, 0.22);
  background: rgba(186, 26, 26, 0.05);
}

.fluent-shell .mini-btn.danger:hover,
.fluent-shell .erp-btn.erp-btn-danger:hover {
  background: rgba(186, 26, 26, 0.1);
}

.fluent-shell .icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--fluent-border);
  background: var(--fluent-surface);
  color: var(--fluent-muted);
  cursor: pointer;
}

.fluent-shell .icon-btn:hover {
  background: #eef3f8;
  color: var(--fluent-text);
}

.fluent-shell .fluent-status-stack,
.fluent-shell .hint {
  display: grid;
  gap: 4px;
  min-height: 16px;
  font-size: 12px;
}

.fluent-shell .hint[data-tone="muted"] {
  color: var(--fluent-muted);
}

.fluent-shell .hint[data-tone="success"] {
  color: var(--fluent-success);
}

.fluent-shell .hint[data-tone="warn"] {
  color: var(--fluent-tertiary);
}

.fluent-shell .hint[data-tone="error"] {
  color: var(--fluent-danger);
}

.toast-stack {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  right: auto;
  bottom: clamp(12px, 2vw, 24px);
  z-index: 2400;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.confirm-toast-layer {
  position: fixed;
  inset: 0;
  z-index: 2450;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(14px);
}

.confirm-toast-layer[hidden] {
  display: none !important;
}

.confirm-toast-stack {
  width: min(460px, calc(100vw - 32px));
  display: grid;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: toast-enter 180ms ease;
}

.toast.is-confirm-modal {
  width: 100%;
  grid-template-columns: 12px minmax(0, 1fr);
  padding: 18px 18px 16px;
  border-radius: 22px;
  border-color: rgba(12, 35, 64, 0.16);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.toast-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.toast-message {
  font-size: 14px;
  line-height: 1.45;
}

.toast.is-confirm-modal .toast-message {
  font-size: 15px;
  line-height: 1.55;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.toast-action {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(12, 35, 64, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.toast-action:hover {
  background: #f2f6fb;
}

.toast-action--primary {
  border-color: rgba(0, 95, 172, 0.18);
  background: rgba(0, 95, 172, 0.08);
  color: var(--fluent-primary);
}

.toast-action--primary:hover {
  background: rgba(0, 95, 172, 0.14);
}

.toast-action--danger {
  border-color: rgba(186, 26, 26, 0.2);
  background: rgba(186, 26, 26, 0.08);
  color: var(--fluent-danger);
}

.toast-action--danger:hover {
  background: rgba(186, 26, 26, 0.14);
}

.toast.is-confirm-modal .toast-actions {
  margin-top: 4px;
}

.toast::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  background: #0f6cbd;
  box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.12);
}

.toast[data-tone="success"]::before {
  background: #107c10;
  box-shadow: 0 0 0 4px rgba(16, 124, 16, 0.14);
}

.toast[data-tone="warn"]::before {
  background: #d83b01;
  box-shadow: 0 0 0 4px rgba(216, 59, 1, 0.14);
}

.toast[data-tone="error"]::before {
  background: #d13438;
  box-shadow: 0 0 0 4px rgba(209, 52, 56, 0.14);
}

.toast[data-tone="loading"]::before {
  background: #3157d5;
  box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.14);
}

.toast.is-leaving {
  animation: toast-leave 180ms ease forwards;
}

@media (max-width: 640px) {
  .confirm-toast-layer {
    padding: 14px;
  }

  .confirm-toast-stack {
    width: min(100%, calc(100vw - 28px));
  }

  .toast.is-confirm-modal {
    padding: 16px 16px 14px;
    border-radius: 20px;
  }

  .toast.is-confirm-modal .toast-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast.is-confirm-modal .toast-action {
    width: 100%;
    justify-content: center;
  }
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.fluent-shell .fluent-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fluent-shell .fluent-mini-metric,
.fluent-shell .fluent-summary-metric {
  padding: 14px 16px;
  border: 1px solid var(--fluent-border-soft);
  background: #fff;
}

.fluent-shell .fluent-mini-metric span,
.fluent-shell .fluent-summary-metric span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fluent-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fluent-shell .fluent-mini-metric strong,
.fluent-shell .fluent-summary-metric strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .fluent-summary-metric strong {
  font-size: 30px;
}

.fluent-shell .fluent-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.fluent-shell .erp-project-card {
  border: 1px solid var(--fluent-border-soft);
  background: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fluent-shell .erp-project-card-main {
  display: grid;
  gap: 4px;
}

.fluent-shell .erp-project-card-main strong {
  font-size: 16px;
  font-weight: 800;
}

.fluent-shell .erp-project-card-main span {
  font-size: 13px;
  color: var(--fluent-muted);
}

.fluent-shell .erp-project-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 88px;
}

.fluent-shell .erp-project-card-actions .mini-btn,
.fluent-shell .erp-project-card-actions .erp-btn {
  width: 100%;
}

.fluent-shell .erp-empty-state,
.fluent-shell .table-empty,
.fluent-shell .usage-empty,
.fluent-shell .layouts-empty,
.fluent-shell .sheet-part-empty {
  padding: 18px;
  background: var(--fluent-surface-soft);
  border: 1px dashed rgba(113, 119, 132, 0.4);
  color: var(--fluent-muted);
  font-size: 13px;
}

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

.fluent-shell .fluent-workspace-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.fluent-shell .fluent-workspace-column--results {
  display: none;
  align-content: start;
}

.fluent-shell .fluent-workspace-grid.is-results-focus {
  grid-template-columns: minmax(0, 1fr);
}

.fluent-shell .fluent-workspace-grid.is-results-focus .fluent-workspace-column--input {
  display: none;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .fluent-workspace-column--results {
  display: grid;
  width: 100%;
}

.fluent-shell .fluent-summary-card {
  display: grid;
  gap: 14px;
}

.fluent-shell .fluent-print-report-head {
  display: none;
  gap: 4px;
}

.fluent-shell .fluent-print-report-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.fluent-shell .fluent-print-report-head p {
  margin: 0;
  font-size: 13px;
  color: var(--fluent-muted);
}

.fluent-shell .fluent-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--fluent-border-soft);
}

.fluent-shell .fluent-summary-grid .fluent-summary-metric {
  border: 0;
  border-right: 1px solid var(--fluent-border-soft);
}

.fluent-shell .fluent-summary-grid .fluent-summary-metric:last-child {
  border-right: 0;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .fluent-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fluent-shell .workspace-panel {
  overflow: hidden;
  background: var(--fluent-surface);
  border-color: var(--fluent-border-soft);
}

.fluent-shell .panel-collapse-body {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: var(--fluent-surface);
}

.fluent-shell .fluent-section-card {
  border: 1px solid var(--fluent-border-soft);
  background: var(--fluent-surface);
}

.fluent-shell .fluent-section-head {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--fluent-border-soft);
  background: var(--fluent-surface-soft);
}

.fluent-shell .section-body,
.fluent-shell .section-collapse-body {
  padding: 16px 18px 18px;
  background: var(--fluent-surface);
}

.fluent-shell .fluent-table-shell {
  width: 100%;
  overflow: visible;
  border: 1px solid var(--fluent-border-soft);
  background: #fff;
}

.fluent-shell .fluent-table-shell-wide {
  overflow-x: auto;
}

.fluent-shell .fluent-table-mobile-controls {
  display: none;
}

.fluent-shell .fluent-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.fluent-shell #sheetsTable,
.fluent-shell #partsTable,
.fluent-shell #projectsManagementTable,
.fluent-shell #sheetLibraryTable {
  width: 100%;
  table-layout: fixed;
}

.fluent-shell .fluent-data-table th,
.fluent-shell .fluent-data-table td {
  padding: 8px 7px;
  border-bottom: 1px solid rgba(192, 199, 212, 0.2);
  vertical-align: middle;
  text-align: left;
  font-size: 13px;
  word-break: break-word;
}

.fluent-shell .fluent-data-table thead th {
  background: #e8e8e8;
  color: var(--fluent-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fluent-shell .fluent-data-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.fluent-shell .fluent-data-table td.center,
.fluent-shell .fluent-data-table th.center {
  text-align: center;
}

.fluent-shell .fluent-data-table input:not([type="checkbox"]):not([type="radio"]),
.fluent-shell .fluent-data-table select,
.fluent-shell .parts-table input:not([type="checkbox"]):not([type="radio"]),
.fluent-shell .parts-table select {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--fluent-border);
  background: var(--fluent-surface-soft);
}

.fluent-shell .fluent-data-table input:not([type="checkbox"]):not([type="radio"]):focus,
.fluent-shell .fluent-data-table select:focus {
  border-color: var(--fluent-primary);
  background: #fff;
  outline: none;
}

.fluent-shell #partsTable input[name="part_qty[]"],
.fluent-shell .fluent-part-table input[name="part_qty[]"] {
  display: block;
  width: 100% !important;
  min-width: 0;
  text-align: center;
}

.fluent-shell .fluent-sheet-table th:nth-child(1),
.fluent-shell .fluent-sheet-table td:nth-child(1) {
  width: 26%;
}

.fluent-shell .fluent-sheet-table th:nth-child(2),
.fluent-shell .fluent-sheet-table td:nth-child(2),
.fluent-shell .fluent-sheet-table th:nth-child(3),
.fluent-shell .fluent-sheet-table td:nth-child(3) {
  width: 16%;
}

.fluent-shell .fluent-sheet-table th:nth-child(4),
.fluent-shell .fluent-sheet-table td:nth-child(4),
.fluent-shell .fluent-sheet-table th:nth-child(5),
.fluent-shell .fluent-sheet-table td:nth-child(5) {
  width: 15%;
}

.fluent-shell .fluent-sheet-table th:nth-child(6),
.fluent-shell .fluent-sheet-table td:nth-child(6) {
  width: 12%;
}

.fluent-shell .fluent-part-table th:nth-child(1),
.fluent-shell .fluent-part-table td:nth-child(1) {
  width: 24%;
}

.fluent-shell .fluent-part-table th:nth-child(2),
.fluent-shell .fluent-part-table td:nth-child(2),
.fluent-shell .fluent-part-table th:nth-child(3),
.fluent-shell .fluent-part-table td:nth-child(3) {
  width: 15%;
}

.fluent-shell .fluent-part-table th:nth-child(4),
.fluent-shell .fluent-part-table td:nth-child(4) {
  width: 15%;
}

.fluent-shell .fluent-part-table th:nth-child(5),
.fluent-shell .fluent-part-table td:nth-child(5) {
  width: 16%;
}

.fluent-shell .fluent-part-table th:nth-child(6),
.fluent-shell .fluent-part-table td:nth-child(6) {
  width: 10%;
}

.fluent-shell #sheetsTable th:nth-child(1),
.fluent-shell #sheetsTable td:nth-child(1) {
  width: 26%;
}

.fluent-shell #sheetsTable th:nth-child(2),
.fluent-shell #sheetsTable td:nth-child(2),
.fluent-shell #sheetsTable th:nth-child(3),
.fluent-shell #sheetsTable td:nth-child(3) {
  width: 16%;
}

.fluent-shell #sheetsTable th:nth-child(4),
.fluent-shell #sheetsTable td:nth-child(4),
.fluent-shell #sheetsTable th:nth-child(5),
.fluent-shell #sheetsTable td:nth-child(5) {
  width: 15%;
}

.fluent-shell #sheetsTable th:nth-child(6),
.fluent-shell #sheetsTable td:nth-child(6) {
  width: 12%;
}

.fluent-shell #partsTable th:nth-child(1),
.fluent-shell #partsTable td:nth-child(1) {
  width: 24%;
}

.fluent-shell #partsTable th:nth-child(2),
.fluent-shell #partsTable td:nth-child(2),
.fluent-shell #partsTable th:nth-child(3),
.fluent-shell #partsTable td:nth-child(3) {
  width: 15%;
}

.fluent-shell #partsTable th:nth-child(4),
.fluent-shell #partsTable td:nth-child(4) {
  width: 15%;
}

.fluent-shell #partsTable th:nth-child(5),
.fluent-shell #partsTable td:nth-child(5) {
  width: 16%;
}

.fluent-shell #partsTable th:nth-child(6),
.fluent-shell #partsTable td:nth-child(6) {
  width: 10%;
}

.fluent-shell .sort-header {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.fluent-shell .sort-indicator {
  color: #6b7280;
  font-weight: 600;
}

.fluent-shell .table-toggle {
  width: 18px;
  height: 18px;
}

.fluent-shell .table-mobile-toggle-cell {
  display: none;
}

.fluent-shell .fluent-rotate-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fluent-shell .rotate-sort-header {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.fluent-shell .rotate-sort-header span:first-child,
.fluent-shell #partsTable th:nth-child(5),
.fluent-shell #partsTable td:nth-child(5) {
  white-space: nowrap;
  word-break: normal;
}

.fluent-shell #partsTable th:nth-child(5),
.fluent-shell #partsTable td:nth-child(5),
.fluent-shell .fluent-part-table th:nth-child(5),
.fluent-shell .fluent-part-table td:nth-child(5) {
  width: 88px !important;
}

.fluent-shell .rotate-checkbox,
.fluent-shell #partsTable tbody input[name="part_rotate[]"].part-rotate-checkbox {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: var(--fluent-primary);
  cursor: pointer;
  display: block;
  transform: scale(0.9);
  transform-origin: center;
}

.fluent-shell .rotate-checkbox::before,
.fluent-shell #partsTable tbody input[name="part_rotate[]"].part-rotate-checkbox::before {
  content: none !important;
}

.fluent-shell .rotate-checkbox--header {
  vertical-align: middle;
}

.fluent-shell .part-rotate-checkbox {
  vertical-align: middle;
}

.fluent-shell .fluent-table-addbar {
  display: flex;
  justify-content: flex-start;
  padding-top: 10px;
}

.fluent-shell .fluent-mobile-toggle-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--fluent-border);
  border-radius: 10px;
  background: var(--fluent-surface);
  color: var(--fluent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.fluent-shell .fluent-mobile-toggle-chip:hover {
  background: #eef3f8;
}

.fluent-shell .fluent-mobile-toggle-chip input {
  margin: 0;
}

.fluent-shell .fluent-quick-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--fluent-surface-soft);
  border: 1px solid var(--fluent-border-soft);
}

.fluent-shell .fluent-quick-box > label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fluent-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fluent-shell .fluent-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(249, 249, 249, 0) 0%, rgba(249, 249, 249, 0.94) 36%, rgba(249, 249, 249, 1) 100%);
}

.fluent-shell .messages {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.fluent-shell .messages .info,
.fluent-shell .messages .warn,
.fluent-shell .messages .error {
  padding: 12px 14px;
  border: 1px solid var(--fluent-border-soft);
  background: #fff;
}

.fluent-shell .messages .info {
  color: var(--fluent-primary);
  border-color: rgba(0, 95, 172, 0.18);
  background: rgba(0, 95, 172, 0.05);
}

.fluent-shell .messages .warn {
  color: var(--fluent-tertiary);
  border-color: rgba(153, 71, 0, 0.18);
  background: rgba(153, 71, 0, 0.05);
}

.fluent-shell .messages .error {
  color: var(--fluent-danger);
  border-color: rgba(186, 26, 26, 0.18);
  background: rgba(186, 26, 26, 0.05);
}

.fluent-shell .results-workspace {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .results-workspace {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .usage-list {
  order: -1;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.fluent-shell .usage-list,
.fluent-shell .layouts {
  min-width: 0;
}

.fluent-shell.sheetopt-shell .usage-list,
.fluent-shell.sheetopt-shell .layouts {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fluent-shell.sheetopt-shell .results-pane {
  padding: 14px;
  background: transparent;
}

.fluent-shell .usage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.fluent-shell .usage-head strong {
  font-size: 15px;
  font-weight: 800;
}

.fluent-shell .usage-head span {
  font-size: 12px;
  color: var(--fluent-muted);
}

.fluent-shell .usage-grid {
  display: grid;
  gap: 10px;
}

.fluent-shell .usage-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(192, 199, 212, 0.24);
  background: var(--fluent-surface-soft);
  text-align: left;
  cursor: pointer;
}

.fluent-shell .usage-item strong {
  font-size: 14px;
  font-weight: 800;
}

.fluent-shell .usage-item span {
  font-size: 12px;
  color: var(--fluent-muted);
}

.fluent-shell .usage-item.active {
  border-color: rgba(0, 95, 172, 0.24);
  background: #f4f8ff;
  box-shadow: inset 0 0 0 1px rgba(0, 95, 172, 0.1);
}

.fluent-shell .layouts {
  min-height: 520px;
}

.fluent-shell.sheetopt-shell .layouts {
  min-height: 520px;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .layouts {
  min-height: 760px;
}

.fluent-shell .layout-panel {
  display: none;
}

.fluent-shell .layout-panel.active {
  display: block;
}

.fluent-shell .sheet-card,
.fluent-shell .sheet-print-block {
  padding: 18px;
}

.fluent-shell .sheet-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fluent-shell .sheet-print-block {
  padding: 20px;
  border-color: rgba(192, 199, 212, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.fluent-shell .sheet-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.fluent-shell .sheet-meta {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--fluent-muted);
}

.fluent-shell .sheet-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .sheet-layout-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.fluent-shell .sheet-canvas-wrap {
  position: relative;
  min-height: 620px;
  padding: 16px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.fluent-shell .sheet-canvas-wrap canvas {
  max-width: 100%;
  height: auto;
}

.fluent-shell .sheet-hover-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  max-width: min(240px, calc(100% - 20px));
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(192, 199, 212, 0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.fluent-shell .sheet-hover-tooltip[hidden] {
  display: none !important;
}

.fluent-shell .sheet-hover-tooltip-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fluent-primary);
}

.fluent-shell .sheet-hover-tooltip strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fluent-shell .sheet-hover-tooltip span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--fluent-muted);
}

.fluent-shell .sheet-hover-tooltip-meta {
  color: var(--fluent-text) !important;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .sheet-canvas-wrap {
  min-height: 880px;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .sheet-canvas-wrap canvas {
  max-width: 100%;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .sheet-part-column {
  order: 2;
}

.fluent-shell .fluent-workspace-grid.is-results-focus .sheet-part-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.fluent-shell .sheet-head-actions {
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--fluent-border-soft);
  border-radius: 14px;
  background: var(--fluent-surface-soft);
}

.fluent-shell .sheet-viewer-btn {
  min-height: 38px;
  padding: 0 14px;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(164, 175, 194, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--fluent-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.fluent-shell .sheet-viewer-btn .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.fluent-shell .sheet-viewer-label {
  line-height: 1;
}

.fluent-shell .sheet-viewer-btn--icon {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  justify-content: center;
}

.fluent-shell .sheet-zoom-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.fluent-shell .sheet-viewer-btn:hover:not(:disabled) {
  border-color: rgba(0, 95, 172, 0.24);
  background: #fff;
  color: var(--fluent-primary);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.fluent-shell .sheet-viewer-btn:disabled,
.fluent-shell .sheet-nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.fluent-shell .sheet-side-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fluent-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fluent-shell .sheet-part-list {
  display: grid;
  gap: 10px;
}

.fluent-shell .sheet-part-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 0;
  background: var(--fluent-surface-soft);
}

.fluent-shell .sheet-part-swatch {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.fluent-shell .sheet-part-copy {
  display: grid;
  gap: 4px;
}

.fluent-shell .sheet-part-copy strong {
  font-size: 14px;
  font-weight: 800;
}

.fluent-shell .sheet-part-copy span {
  font-size: 12px;
  color: var(--fluent-muted);
}

.fluent-shell .sheet-zoom-modal[hidden] {
  display: none !important;
}

.fluent-shell .sheet-zoom-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(14px);
  z-index: 100;
}

.fluent-shell .sheet-zoom-dialog {
  width: min(92vw, 1180px);
  max-height: min(92vh, 960px);
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(192, 199, 212, 0.42);
  border-radius: 24px;
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.fluent-shell .sheet-zoom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--fluent-border-soft);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.fluent-shell .sheet-zoom-copy {
  display: grid;
  gap: 4px;
}

.fluent-shell .sheet-zoom-copy strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fluent-shell .sheet-zoom-meta {
  font-size: 13px;
  color: var(--fluent-muted);
}

.fluent-shell .sheet-zoom-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--fluent-border-soft);
  border-radius: 14px;
  background: var(--fluent-surface-soft);
}

.fluent-shell .sheet-zoom-close {
  flex: 0 0 auto;
}

.fluent-shell .sheet-zoom-body {
  padding: 18px;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(0, 95, 172, 0.08), transparent 34%),
    linear-gradient(180deg, #f5f8fc 0%, #edf3f9 100%);
}

.fluent-shell .sheet-zoom-stage {
  position: relative;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--fluent-border-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 253, 0.96) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.fluent-shell .sheet-zoom-canvas {
  display: block;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 640px) {
  .fluent-shell .sheet-zoom-modal {
    padding: 10px;
  }

  .fluent-shell .sheet-zoom-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .fluent-shell .sheet-zoom-head {
    align-items: flex-start;
    padding: 14px 14px 12px;
    gap: 12px;
  }

  .fluent-shell .sheet-zoom-copy strong {
    font-size: 18px;
  }

  .fluent-shell .sheet-zoom-meta {
    font-size: 12px;
  }

  .fluent-shell .sheet-zoom-body {
    padding: 10px;
  }

  .fluent-shell .sheet-zoom-head-actions {
    margin-left: auto;
  }

  .fluent-shell .sheet-viewer-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 11px;
  }

  .fluent-shell .sheet-viewer-btn--icon {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .fluent-shell .sheet-zoom-stage {
    padding: 10px;
    border-radius: 14px;
  }

  .fluent-shell .sheet-zoom-btn {
    top: 12px;
    right: 12px;
  }
}

.fluent-shell .logout-form {
  margin: 0;
}

.fluent-shell.fluent-license-shell .fluent-license-hero,
.fluent-shell.fluent-license-shell .fluent-license-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.fluent-shell.fluent-license-shell .fluent-license-hero > .fluent-card,
.fluent-shell.fluent-license-shell .fluent-license-history > .fluent-card {
  align-self: start;
}

.fluent-shell.fluent-license-shell .fluent-license-stats,
.fluent-shell.fluent-license-shell .fluent-admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.fluent-shell.fluent-license-shell .fluent-license-payment {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.fluent-shell.fluent-license-shell .fluent-license-payment-copy {
  display: grid;
  gap: 14px;
}

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

.fluent-shell.fluent-license-shell .fluent-license-qr,
.fluent-shell.fluent-license-shell .payment-qr {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--fluent-border-soft);
  background: var(--fluent-surface-soft);
}

.fluent-shell.fluent-license-shell .fluent-license-qr img,
.fluent-shell.fluent-license-shell .payment-qr img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.fluent-shell.fluent-license-shell .fluent-license-qr-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  text-align: center;
}

.fluent-shell.fluent-license-shell .fluent-license-qr-meta strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fluent-shell.fluent-license-shell .fluent-license-qr-meta span {
  color: var(--fluent-muted);
  font-size: 12px;
  line-height: 1.5;
}

.fluent-shell.fluent-license-shell .fluent-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.fluent-shell.fluent-license-shell .fluent-plan-card {
  display: grid;
  gap: 14px;
}

.fluent-shell.fluent-license-shell .fluent-plan-card.is-recommended {
  border-color: rgba(0, 95, 172, 0.28);
  background: linear-gradient(180deg, rgba(0, 95, 172, 0.03) 0%, #ffffff 100%);
}

.fluent-shell.fluent-license-shell .fluent-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.fluent-shell.fluent-license-shell .fluent-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(0, 95, 172, 0.1);
  color: var(--fluent-primary);
  border: 1px solid rgba(0, 95, 172, 0.18);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fluent-shell.fluent-license-shell .fluent-plan-price {
  display: grid;
  gap: 4px;
}

.fluent-shell.fluent-license-shell .fluent-plan-price strong {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.fluent-shell.fluent-license-shell .fluent-plan-price span,
.fluent-shell.fluent-license-shell .fluent-plan-copy {
  color: var(--fluent-muted);
  font-size: 13px;
}

.fluent-shell.fluent-license-shell .license-form {
  display: grid;
  gap: 12px;
}

.fluent-shell.fluent-license-shell .license-form > label,
.fluent-shell.fluent-license-shell .license-admin-form > label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fluent-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fluent-shell.fluent-license-shell .license-form > label input,
.fluent-shell.fluent-license-shell .license-form > label textarea,
.fluent-shell.fluent-license-shell .license-admin-form > label input {
  width: 100%;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid var(--fluent-border);
  background: var(--fluent-surface-soft);
  color: var(--fluent-text);
  outline: none;
}

.fluent-shell.fluent-license-shell .license-form > label textarea {
  min-height: 110px;
  resize: vertical;
}

.fluent-shell.fluent-license-shell .license-form > label input:focus,
.fluent-shell.fluent-license-shell .license-form > label textarea:focus,
.fluent-shell.fluent-license-shell .license-admin-form > label input:focus,
.fluent-shell.fluent-license-shell .admin-inline-form input:focus {
  background: #fff;
  border-color: var(--fluent-primary);
}

.fluent-shell.fluent-license-shell .admin-inline-form input[type="number"],
.fluent-shell.fluent-license-shell .admin-inline-form input[type="text"] {
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--fluent-border);
  background: var(--fluent-surface-soft);
}

.fluent-shell.fluent-license-shell .license-info-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--fluent-border-soft);
  background: var(--fluent-surface);
}

.fluent-shell.fluent-license-shell .license-info-item span {
  color: var(--fluent-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fluent-shell.fluent-license-shell .license-info-item strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fluent-shell.fluent-license-shell .fluent-admin-credit-form {
  display: grid;
  gap: 14px;
}

.fluent-shell.fluent-license-shell .fluent-admin-credit-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(160px, 220px) minmax(240px, 1fr);
  gap: 14px;
  align-items: end;
}

.fluent-shell.fluent-license-shell .admin-topup-form-wrap,
.fluent-shell.fluent-license-shell .admin-key-actions {
  display: grid;
  gap: 8px;
}

.fluent-shell.fluent-license-shell .admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.fluent-shell.fluent-license-shell .parts-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--fluent-border-soft);
  background: var(--fluent-surface);
}

.fluent-shell.fluent-license-shell .parts-table {
  width: 100%;
  border-collapse: collapse;
}

.fluent-shell.fluent-license-shell .parts-table thead th {
  background: var(--fluent-surface-muted);
  color: var(--fluent-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fluent-shell.fluent-license-shell .parts-table th,
.fluent-shell.fluent-license-shell .parts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(192, 199, 212, 0.22);
  font-size: 13px;
  vertical-align: middle;
}

.fluent-shell.fluent-license-shell .parts-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

@media (max-width: 1560px) {
  .fluent-shell .fluent-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1380px) {
  .fluent-shell.fluent-license-shell .fluent-license-hero,
  .fluent-shell.fluent-license-shell .fluent-license-history,
  .fluent-shell.fluent-license-shell .fluent-plan-grid,
  .fluent-shell.fluent-license-shell .fluent-license-payment,
  .fluent-shell.fluent-license-shell .fluent-admin-credit-grid,
  .fluent-shell .fluent-config-grid {
    grid-template-columns: 1fr;
  }

  .fluent-shell .fluent-workspace-grid,
  .fluent-shell .fluent-library-grid,
  .fluent-shell .results-workspace,
  .fluent-shell .sheet-layout-grid {
    grid-template-columns: 1fr;
  }

  .fluent-shell .fluent-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fluent-shell .sheet-canvas-wrap {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .fluent-shell.fluent-license-shell .fluent-license-transfer-grid {
    grid-template-columns: 1fr;
  }

  .fluent-shell .workspace-floating-actions {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 1120px) {
  .fluent-shell {
    --fluent-sidebar-w: 220px;
  }

  .fluent-shell .fluent-main {
    padding: 18px;
  }

  .fluent-shell .fluent-overview-grid,
  .fluent-shell .fluent-grid-2,
  .fluent-shell .fluent-mini-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .fluent-shell .fluent-main {
    margin-left: 0;
    padding: 16px 12px 24px;
  }

  .fluent-shell .fluent-topbar {
    height: var(--fluent-topbar-h);
    padding: 8px 12px;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .fluent-shell .fluent-topbar-left {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .fluent-shell .fluent-topbar-right {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: auto;
  }

  .fluent-shell .fluent-topbar-divider {
    display: none;
  }

  .fluent-shell .fluent-section-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fluent-shell .fluent-mobile-menu-btn,
  .fluent-shell .fluent-sidebar-close {
    display: inline-flex;
  }

  .fluent-shell .fluent-sidebar-backdrop {
    display: block;
  }

  .fluent-shell .fluent-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(15, 23, 42, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .fluent-shell .fluent-sidebar {
    top: 0;
    bottom: 0;
    width: min(84vw, 320px);
    max-width: 320px;
    height: 100vh;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 0 calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
    z-index: 80;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  }

  .fluent-shell .fluent-sidebar-head {
    align-items: flex-start;
    gap: 10px;
    padding-right: 14px;
  }

  .fluent-shell .fluent-sidebar-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .fluent-shell .fluent-sidebar-close {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .fluent-shell.is-mobile-nav-open .fluent-sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .fluent-shell.is-mobile-nav-open .fluent-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .fluent-shell .fluent-main {
    padding: 14px 10px 96px;
  }

  .fluent-shell .fluent-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .fluent-shell .fluent-topbar-left,
  .fluent-shell .fluent-topbar-right {
    width: auto;
  }

  .fluent-shell .fluent-topbar-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .fluent-shell .fluent-topbar-right {
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .fluent-shell .fluent-section-name {
    display: none;
  }

  .fluent-shell .fluent-user-chip {
    display: none;
  }

  .fluent-shell .fluent-wallet-chip,
  .fluent-shell .fluent-topbar-btn {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .fluent-shell .fluent-wallet-chip {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .fluent-shell .fluent-topbar-btn {
    margin-left: 0;
    flex: 0 0 auto;
  }

  .fluent-shell .fluent-page-head {
    align-items: flex-start;
    gap: 10px;
  }

  .fluent-shell .fluent-page-head h1 {
    font-size: 24px;
  }

  .fluent-shell .fluent-page-copy {
    font-size: 14px;
  }

  .fluent-shell .fluent-card,
  .fluent-shell .fluent-summary-card {
    padding: 14px;
  }

  .fluent-shell .panel-collapse-body {
    gap: 14px;
    padding: 14px;
  }

  .fluent-shell .fluent-section-head {
    padding: 14px;
  }

  .fluent-shell .fluent-card-head h3,
  .fluent-shell .fluent-section-head h3 {
    font-size: 16px;
  }

  .fluent-shell .fluent-summary-grid,
  .fluent-shell .fluent-workspace-grid.is-results-focus .fluent-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--fluent-border-soft);
    border: 1px solid var(--fluent-border-soft);
    overflow: hidden;
  }

  .fluent-shell .fluent-summary-grid .fluent-summary-metric {
    min-width: 0;
    padding: 12px 10px;
    border: 0;
  }

  .fluent-shell .fluent-summary-grid .fluent-summary-metric:last-child {
    grid-column: 1 / -1;
  }

  .fluent-shell .fluent-summary-grid .fluent-summary-metric span {
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
  }

  .fluent-shell .fluent-summary-grid .fluent-summary-metric strong,
  .fluent-shell .fluent-workspace-grid.is-results-focus .fluent-summary-grid .fluent-summary-metric strong {
    font-size: clamp(18px, 7vw, 26px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .fluent-shell .section-body,
  .fluent-shell .section-collapse-body,
  .fluent-shell.sheetopt-shell .results-pane,
  .fluent-shell.sheetopt-shell .usage-list,
  .fluent-shell.sheetopt-shell .layouts {
    padding: 12px;
  }

  .fluent-shell.sheetopt-shell .usage-list,
  .fluent-shell.sheetopt-shell .layouts {
    padding: 0;
  }

  .fluent-shell .fluent-quick-box {
    padding: 12px;
  }

  .fluent-shell .fluent-inline-actions {
    gap: 8px;
  }

  .fluent-shell .fluent-inline-actions > .fluent-secondary-btn,
  .fluent-shell .fluent-inline-actions > .fluent-primary-btn,
  .fluent-shell .fluent-inline-actions > .mini-btn {
    flex: 1 1 calc(50% - 4px);
  }

  .fluent-shell .fluent-inline-actions > .fluent-link-btn {
    flex: 0 0 auto;
  }

  .fluent-shell .fluent-table-shell,
  .fluent-shell .fluent-table-shell-wide {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .fluent-shell .fluent-data-table {
    min-width: 100%;
  }

  .fluent-shell #sheetsTable,
  .fluent-shell .fluent-sheet-table {
    min-width: 620px;
  }

  .fluent-shell #partsTable,
  .fluent-shell .fluent-part-table {
    min-width: 720px;
  }

  .fluent-shell .fluent-data-table th,
  .fluent-shell .fluent-data-table td {
    word-break: normal;
  }

  .fluent-shell .fluent-data-table thead th,
  .fluent-shell .sort-header,
  .fluent-shell .rotate-sort-header,
  .fluent-shell .rotate-sort-header span:first-child {
    white-space: nowrap;
  }

  .fluent-shell .workspace-action-fab,
  .fluent-shell .workspace-print-fab {
    min-height: 46px;
    padding: 0 18px;
    font-size: 14px;
  }

  .fluent-shell .workspace-floating-actions {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }

  .fluent-shell .fluent-brand-name {
    font-size: 17px;
  }

  .fluent-shell .fluent-brand-mark {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .fluent-shell .fluent-main {
    padding: 12px 8px 92px;
  }

  .fluent-shell .fluent-table-mobile-controls {
    grid-template-columns: 1fr;
  }

  .fluent-shell .fluent-summary-grid .fluent-summary-metric {
    padding: 11px 9px;
  }

  .fluent-shell .fluent-inline-actions > .fluent-secondary-btn,
  .fluent-shell .fluent-inline-actions > .fluent-primary-btn,
  .fluent-shell .fluent-inline-actions > .mini-btn {
    flex-basis: 100%;
  }

  .fluent-shell .workspace-action-fab,
  .fluent-shell .workspace-print-fab {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .fluent-shell .fluent-summary-grid,
  .fluent-shell .fluent-workspace-grid.is-results-focus .fluent-summary-grid {
    grid-template-columns: 1fr;
  }

  .fluent-shell .fluent-summary-grid .fluent-summary-metric:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .fluent-shell a,
  .fluent-shell button,
  .fluent-shell input,
  .fluent-shell select,
  .fluent-shell textarea,
  .fluent-shell label {
    touch-action: manipulation;
  }

  .fluent-shell input:not([type="checkbox"]):not([type="radio"]),
  .fluent-shell select,
  .fluent-shell textarea {
    font-size: 16px;
  }

  body.fluent-auth-page a,
  body.fluent-auth-page button,
  body.fluent-auth-page input,
  body.fluent-auth-page select,
  body.fluent-auth-page textarea,
  body.fluent-auth-page label {
    touch-action: manipulation;
  }

  body.fluent-auth-page input:not([type="checkbox"]):not([type="radio"]),
  body.fluent-auth-page select,
  body.fluent-auth-page textarea {
    font-size: 16px !important;
  }

  .fluent-shell .fluent-table-shell,
  .fluent-shell .fluent-table-shell-wide,
  .fluent-shell.fluent-license-shell .parts-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .fluent-shell .fluent-table-mobile-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .fluent-shell .fluent-table-mobile-controls--single {
    grid-template-columns: 1fr;
  }

  .fluent-shell .fluent-table-mobile-controls .fluent-secondary-btn,
  .fluent-shell .fluent-table-mobile-controls .fluent-mobile-toggle-chip {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .fluent-shell .fluent-table-mobile-controls .fluent-mobile-toggle-chip {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .fluent-shell .fluent-table-mobile-controls .rotate-checkbox {
    width: 14px;
    min-width: 14px;
    height: 14px;
    min-height: 14px;
    transform: scale(0.9);
  }

  .fluent-shell .fluent-responsive-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }

  .fluent-shell .fluent-responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .fluent-shell .fluent-responsive-table tbody {
    display: block;
  }

  .fluent-shell .fluent-responsive-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--fluent-border-soft);
    border-radius: 16px;
    background: var(--fluent-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
  }

  .fluent-shell .fluent-responsive-table tbody tr.table-row-empty {
    display: block;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .fluent-shell .fluent-responsive-table tbody td {
    display: none;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    padding: 11px 14px;
    border: 0;
    border-top: 1px solid rgba(192, 199, 212, 0.28);
    background: transparent !important;
    text-align: left !important;
    white-space: normal;
    word-break: break-word;
  }

  .fluent-shell .fluent-responsive-table tbody td.table-mobile-toggle-cell {
    display: table-cell;
    padding: 0;
    border-top: 0;
  }

  .fluent-shell .fluent-responsive-table tbody tr.is-row-expanded td:not(.table-mobile-toggle-cell) {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
  }

  .fluent-shell .fluent-responsive-table tbody td::before {
    content: attr(data-cell-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--fluent-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .fluent-shell .fluent-responsive-table .table-mobile-summary-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    touch-action: manipulation;
    cursor: pointer;
  }

  .fluent-shell .fluent-responsive-table tbody tr.is-row-expanded .table-mobile-summary-toggle {
    background: var(--fluent-surface-soft);
    box-shadow: inset 0 -1px 0 rgba(192, 199, 212, 0.28);
  }

  .fluent-shell .fluent-responsive-table .table-mobile-summary-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .fluent-shell .fluent-responsive-table .table-mobile-summary-title {
    min-width: 0;
    color: var(--fluent-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }

  .fluent-shell .fluent-responsive-table .table-mobile-summary-subtitle {
    min-width: 0;
    color: var(--fluent-muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .fluent-shell .fluent-responsive-table .table-mobile-summary-side {
    max-width: 120px;
    padding: 5px 9px;
    border: 1px solid rgba(0, 99, 177, 0.12);
    border-radius: 999px;
    background: rgba(0, 99, 177, 0.08);
    color: var(--fluent-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fluent-shell .fluent-responsive-table .table-mobile-summary-icon {
    color: var(--fluent-muted);
    font-size: 20px;
    transition: transform 160ms ease;
  }

  .fluent-shell .fluent-responsive-table tbody tr.is-row-expanded .table-mobile-summary-icon {
    transform: rotate(180deg);
  }

  .fluent-shell .fluent-responsive-table tbody tr.is-row-expanded td:not(.table-mobile-toggle-cell) > * {
    grid-column: 2;
    min-width: 0;
  }

  .fluent-shell .fluent-responsive-table tbody td[data-cell-kind="actions"] {
    gap: 12px 16px;
  }

  .fluent-shell .fluent-responsive-table tbody td[data-cell-kind="actions"]::before,
  .fluent-shell .fluent-responsive-table tbody td.table-cell-empty::before {
    margin-bottom: 0;
  }

  .fluent-shell .fluent-responsive-table tbody td.table-cell-empty {
    display: block;
    padding: 0;
    border-top: 0;
  }

  .fluent-shell .fluent-responsive-table tbody td.table-cell-empty::before {
    content: none;
  }

  .fluent-shell .fluent-responsive-table input:not([type="checkbox"]):not([type="radio"]),
  .fluent-shell .fluent-responsive-table select,
  .fluent-shell .fluent-responsive-table textarea {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px;
    padding: 11px 12px;
    background: #fff;
    justify-self: stretch;
  }

  .fluent-shell .fluent-responsive-table input[name="part_qty[]"] {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 124px;
    justify-self: stretch;
    text-align: left;
  }

  .fluent-shell .fluent-responsive-table tbody tr.is-row-expanded td[data-cell-label="SL"],
  .fluent-shell .fluent-responsive-table tbody tr.is-row-expanded td[data-cell-label="Số lượng"] {
    grid-template-columns: 112px minmax(124px, 1fr);
  }

  .fluent-shell #partsTable.fluent-responsive-table tbody tr.is-row-expanded td:nth-child(5),
  .fluent-shell #sheetsTable.fluent-responsive-table tbody tr.is-row-expanded td:nth-child(5) {
    grid-template-columns: 112px minmax(124px, 1fr);
  }

  .fluent-shell .fluent-responsive-table tbody td > input[type="checkbox"],
  .fluent-shell .fluent-responsive-table tbody td > input[type="radio"],
  .fluent-shell .fluent-responsive-table tbody td > .icon-btn,
  .fluent-shell .fluent-responsive-table tbody td > .table-inline-actions,
  .fluent-shell.fluent-license-shell .fluent-responsive-table tbody td > .admin-topup-form-wrap,
  .fluent-shell.fluent-license-shell .fluent-responsive-table tbody td > .admin-key-actions,
  .fluent-shell.fluent-license-shell .fluent-responsive-table tbody td > .admin-inline-form {
    justify-self: start;
  }

  .fluent-shell .fluent-responsive-table .icon-btn {
    width: 38px;
    height: 38px;
  }

  .fluent-shell .fluent-responsive-table tbody td[data-cell-kind="actions"] .icon-btn {
    width: 42px;
    height: 42px;
  }

  .fluent-shell .fluent-responsive-table .rotate-checkbox,
  .fluent-shell .fluent-responsive-table .part-rotate-checkbox {
    margin: 2px 0 0;
  }

  .fluent-shell .fluent-responsive-table .table-inline-actions,
  .fluent-shell.fluent-license-shell .fluent-responsive-table .admin-topup-form-wrap,
  .fluent-shell.fluent-license-shell .fluent-responsive-table .admin-key-actions,
  .fluent-shell.fluent-license-shell .fluent-responsive-table .admin-inline-form {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .fluent-shell .fluent-responsive-table .table-inline-actions > *,
  .fluent-shell.fluent-license-shell .fluent-responsive-table .admin-key-actions > *,
  .fluent-shell.fluent-license-shell .fluent-responsive-table .admin-inline-form > * {
    width: 100%;
  }

  .fluent-shell.fluent-license-shell .fluent-responsive-table .admin-inline-form {
    align-items: stretch;
  }

  .fluent-shell .fluent-responsive-table .field-note {
    font-size: 12px;
    line-height: 1.5;
  }

  .fluent-shell .fluent-responsive-table tbody tr:last-child {
    margin-bottom: 0;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  html,
  body {
    background: #fff !important;
  }

  .fluent-shell .fluent-topbar,
  .fluent-shell .fluent-sidebar,
  .fluent-shell .fluent-sidebar-backdrop,
  .fluent-shell .fluent-page-head,
  .fluent-shell .workspace-floating-actions,
  .fluent-shell .workspace-action-fab,
  .fluent-shell .workspace-print-fab,
  .fluent-shell .fluent-sticky-actions,
  .fluent-shell .fluent-page-actions,
  .fluent-shell .fluent-summary-card > .fluent-card-head,
  .fluent-shell .sheet-zoom-btn,
  .fluent-shell .sheet-nav-btn,
  .fluent-shell .sheet-hover-tooltip,
  .fluent-shell .messages,
  .fluent-shell .results-pane > .fluent-card-head,
  .fluent-shell .workspace-panel > .fluent-card-head {
    display: none !important;
  }

  .fluent-shell {
    background: #fff !important;
    color: #111 !important;
  }

  .fluent-shell .fluent-main {
    margin: 0;
    padding: 0 !important;
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
  }

  .fluent-shell .sheetopt-screen {
    display: none !important;
  }

  .fluent-shell #nhap-lieu {
    display: block !important;
  }

  .fluent-shell .fluent-workspace-grid,
  .fluent-shell .results-workspace,
  .fluent-shell .layouts,
  .fluent-shell .layout-tabs {
    display: block !important;
  }

  .fluent-shell .fluent-workspace-column--input {
    display: none !important;
  }

  .fluent-shell .fluent-workspace-column--results {
    display: grid !important;
    gap: 8mm;
  }

  .fluent-shell .workspace-panel,
  .fluent-shell .results-pane {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .fluent-shell .fluent-print-report-head {
    display: grid !important;
    margin-bottom: 2mm;
  }

  .fluent-shell .fluent-print-report-head[hidden] {
    display: none !important;
  }

  .fluent-shell .fluent-summary-card,
  .fluent-shell .usage-list {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .fluent-shell .fluent-summary-grid {
    border: 1px solid #d7dce4 !important;
  }

  .fluent-shell .usage-list {
    margin-bottom: 6mm;
  }

  .fluent-shell .usage-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
  }

  .fluent-shell .usage-item {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #d7dce4 !important;
    background: #fff !important;
  }

  .fluent-shell .layout-panel {
    display: block !important;
    break-before: page;
    page-break-before: always;
    margin: 0 !important;
    position: relative;
    padding-bottom: 8mm;
  }

  .fluent-shell .layout-panel::after {
    content: "dc-stech.com";
    position: absolute;
    right: 0;
    bottom: 0;
    color: rgba(15, 23, 42, 0.22);
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    white-space: nowrap;
    pointer-events: none;
  }

  .fluent-shell .sheet-card,
  .fluent-shell .sheet-print-block {
    box-shadow: none !important;
    border: 0 !important;
    background: #fff !important;
    padding: 0 !important;
  }

  .fluent-shell .sheet-card-head {
    margin-bottom: 2mm;
  }

  .fluent-shell .sheet-meta {
    margin-bottom: 4mm;
  }

  .fluent-shell .sheet-layout-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 66mm !important;
    gap: 5mm !important;
    align-items: start;
  }

  .fluent-shell .sheet-canvas-wrap {
    min-height: auto !important;
    padding: 0 !important;
    border: 1px solid #d7dce4 !important;
    background: #fff !important;
    overflow: visible !important;
  }

  .fluent-shell .sheet-canvas-wrap canvas {
    display: block;
    max-width: 100% !important;
    max-height: 155mm !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
  }

  .fluent-shell .sheet-part-column {
    order: initial !important;
  }

  .fluent-shell .sheet-part-list {
    display: grid !important;
    gap: 3mm;
  }

  .fluent-shell .sheet-part-item {
    padding: 3mm;
    border: 1px solid #d7dce4 !important;
    background: #fff !important;
  }
}
