html,
body {
  background: #030814 !important;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at 82% 22%, rgba(255, 40, 100, 0.14), transparent 28%),
    radial-gradient(circle at 50% 85%, rgba(0, 190, 255, 0.10), transparent 30%),
    linear-gradient(180deg, #040914 0%, #020611 100%) !important;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .05;
  z-index: 0;
}

.c-app,
.c-body,
.c-wrapper,
.c-main,
.mst-main-shell {
  background: transparent !important;
}

.c-app,
.c-body,
.c-wrapper {
  position: relative;
}

.c-wrapper {
  margin-left: 258px;
  transition: margin-left .22s ease;
}

.c-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 258px !important;
  flex: 0 0 258px !important;
  background:
    radial-gradient(circle at 0% 20%, rgba(0,120,255,0.14), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(255,48,110,0.10), transparent 28%),
    linear-gradient(180deg, #07101c 0%, #040b15 100%) !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,.03),
    12px 0 36px rgba(0,0,0,.22),
    0 0 24px rgba(0,120,255,.05) !important;
  z-index: 1030;
  transition: transform .22s ease;
  overflow: visible !important;
}

.c-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .08;
}

.c-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 40px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,110,255,.10), transparent 70%);
  filter: blur(16px);
  opacity: .8;
}

.c-sidebar .c-sidebar-brand {
  min-height: 82px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  background: rgba(255,255,255,.01) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.mst-sidebar-brand-wrap {
  height: 82px !important;
  padding: 18px 20px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mst-sidebar-logo {
  max-width: 166px !important;
  height: auto;
}

.c-sidebar .c-sidebar-nav {
  padding-top: 12px !important;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 82px);
}

.c-sidebar .c-sidebar-nav-link {
  min-height: 46px !important;
  padding: 10px 15px !important;
  margin: 3px 10px !important;
  border-radius: 13px !important;
  color: #dbe7f5 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: all .18s ease !important;
}

.c-sidebar .c-sidebar-nav-icon {
  color: #7dd3fc !important;
  font-size: 16px !important;
  margin-right: 12px !important;
  width: 18px !important;
  text-align: center;
}

.c-sidebar .c-sidebar-nav-link:hover {
  background: rgba(255,255,255,.04) !important;
  box-shadow: 0 0 12px rgba(0,140,255,.07);
  color: #fff !important;
}

.c-sidebar .c-sidebar-nav-link.c-active {
  background: linear-gradient(90deg, rgba(255,48,110,0.20), rgba(0,120,255,0.08)) !important;
  box-shadow:
    inset 2px 0 0 rgba(255,70,120,0.95),
    0 0 12px rgba(255,60,120,0.09),
    0 0 14px rgba(0,120,255,0.04) !important;
  color: #fff !important;
}

.c-sidebar .c-sidebar-nav-link.c-active .c-sidebar-nav-icon {
  color: #a5ecff !important;
  filter: drop-shadow(0 0 8px rgba(125,211,252,.34));
}

.mst-hamburger {
  background: transparent;
  border: 0;
  color: #e5eefb;
  font-size: 26px !important;
  cursor: pointer;
  padding: 0 4px;
  margin-right: 6px;
}

body.mst-sidebar-collapsed .c-sidebar {
  transform: translateX(-258px) !important;
}

body.mst-sidebar-collapsed .c-wrapper {
  margin-left: 0 !important;
}

.mst-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 86px !important;
  padding: 0 26px !important;
  background: linear-gradient(90deg, rgba(6,14,26,0.92), rgba(5,12,24,0.88)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,.03),
    0 8px 22px rgba(0,0,0,.18) !important;
  overflow: visible !important;
}

.mst-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,180,255,.28), transparent);
  pointer-events: none;
}

.mst-topbar::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -18px;
  height: 38px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 50%, rgba(90,180,255,.22), transparent 18%),
    radial-gradient(circle at 52% 50%, rgba(120,140,255,.16), transparent 20%),
    radial-gradient(circle at 82% 50%, rgba(255,60,120,.16), transparent 18%);
  filter: blur(18px);
  opacity: .95;
}

.mst-topbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mst-topbar-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 992px) {
  body:not(.mst-sidebar-collapsed) .mst-topbar-logo {
    display: none;
  }

  body.mst-sidebar-collapsed .mst-topbar-logo {
    display: flex;
  }
}

.mst-topbar-spacer {
  flex: 1;
}

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

.mst-topbar-session,
.mst-topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px !important;
  padding: 0 18px !important;
  font-size: 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  color: #dbe7f5 !important;
  text-decoration: none !important;
}

.mst-topbar-session {
  min-width: 340px;
  justify-content: flex-start;
}

.mst-topbar-session-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 120, 255, 0.14);
  color: #a5ecff;
  flex-shrink: 0;
}

.mst-topbar-session-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mst-topbar-session-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mst-topbar-session-name {
  color: #f8fbff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mst-topbar-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 179, 82, 0.14);
  border: 1px solid rgba(255, 179, 82, 0.30);
  color: #ffd9a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mst-topbar-session-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #9bb0cc;
  font-size: 12px;
  font-weight: 600;
}

.mst-topbar-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(155, 176, 204, 0.6);
}

.mst-topbar-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,43,71,.55);
  color: #f8fbff;
  font-size: 15px !important;
  font-weight: 700;
}

.mst-topbar-caret {
  font-size: 12px;
  color: #94a3b8;
}

.mst-main-shell {
  padding: 22px 24px 30px !important;
}

.mst-page-shell {
  min-height: calc(100vh - 140px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 0%, rgba(52,104,255,.10), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(255,40,100,.08), transparent 22%),
    rgba(6,12,24,.62) !important;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow:
    0 18px 46px rgba(0,0,0,.22),
    0 0 22px rgba(0,120,255,.035) !important;
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.mst-page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .10;
}

.mst-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 42, 88, 0.16), transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(0, 190, 255, 0.14), transparent 42%),
    radial-gradient(circle at 50% 80%, rgba(90, 180, 255, 0.10), transparent 35%),
    linear-gradient(180deg, #020514 0%, #040a12 100%);
}

.mst-login-shell {
  width: min(460px, 100%);
  padding: 18px;
}

.mst-login-card {
  border-radius: 24px;
  padding: 30px 28px;
  background: rgba(15, 20, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 2px 18px rgba(0, 120, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mst-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.mst-login-logo {
  max-width: 170px;
  height: auto;
}

.mst-login-header {
  text-align: center;
  margin-bottom: 26px;
}

.mst-login-header h1 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  color: #f6f9ff;
  letter-spacing: 0.2px;
}

.mst-login-header p {
  margin: 0;
  color: rgba(235, 245, 255, 0.75);
  font-size: 15px;
}

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

.mst-login-error {
  margin-bottom: 16px;
  border: 1px solid rgba(248, 113, 113, 0.40);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.mst-login-info {
  margin-bottom: 16px;
  border: 1px solid rgba(125, 211, 252, 0.36);
  background: rgba(0, 120, 255, 0.12);
  color: #c9ecff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.mst-form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(235, 245, 255, 0.80);
  font-size: 14px;
  font-weight: 500;
}

.mst-form-label input,
.mst-form-label select,
.mst-form-label textarea {
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 29, 0.70);
  padding: 0 16px;
  color: #f5f9ff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mst-form-label input:focus,
.mst-form-label select:focus,
.mst-form-label textarea:focus {
  border-color: rgba(255, 44, 100, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 44, 100, 0.16);
}

.mst-form-label textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.mst-form-label input[type="file"] {
  height: auto;
  padding: 14px 16px;
}

.mst-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mst-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: linear-gradient(90deg, rgba(255, 49, 112, 0.90), rgba(255, 179, 82, 0.82));
  color: #040a17;
  box-shadow: 0 6px 18px rgba(255, 60, 110, 0.22);
  min-height: 44px;
}

.mst-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 60, 110, 0.34);
}

.mst-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0, 140, 255, 0.50);
  background: rgba(0, 120, 255, 0.12);
  color: #7dd3fc;
  transition: background 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}

.mst-btn-secondary:hover {
  background: rgba(0, 120, 255, 0.22);
  border-color: rgba(0, 140, 255, 0.75);
}

.mst-page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.mst-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #f6f9ff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.mst-section-title-icon {
  color: #7dd3fc;
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(125,211,252,.35));
}

.mst-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.mst-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 20px;
  background: rgba(8, 14, 29, 0.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mst-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(0, 140, 255, 0.65);
  color: #dbe7f5;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mst-card-header i {
  color: #7dd3fc;
  font-size: 15px;
}

.mst-card-body {
  padding: 20px;
}

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

.mst-form-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.mst-col-full {
  grid-column: 1 / -1;
}

.mst-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.mst-placeholder-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mst-placeholder-stat strong {
  color: #f6f9ff;
  font-size: 22px;
  font-weight: 700;
}

.mst-placeholder-stat span {
  color: #9bb0cc;
  font-size: 14px;
}

.mst-placeholder-list {
  margin: 0;
  padding-left: 18px;
  color: #dbe7f5;
}

.mst-placeholder-list li {
  margin-bottom: 8px;
}

.mst-table-wrap {
  overflow-x: auto;
}

.mst-simple-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.mst-simple-table th,
.mst-simple-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #dbe7f5;
  text-align: left;
  font-size: 14px;
}

.mst-simple-table th {
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 11px;
  font-weight: 700;
}

.mst-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0,190,255,.14);
  border: 1px solid rgba(0,190,255,.30);
  color: #a5ecff;
  font-size: 12px;
  font-weight: 700;
}

.mst-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mst-status-badge.is-pending {
  background: rgba(255, 179, 82, 0.12);
  border-color: rgba(255, 179, 82, 0.28);
  color: #ffd9a1;
}

.mst-status-badge.is-ready {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.30);
  color: #b7f7d8;
}

.mst-status-badge.is-billing {
  background: rgba(0, 120, 255, 0.14);
  border-color: rgba(125, 211, 252, 0.28);
  color: #c9ecff;
}

.mst-status-badge.is-completed {
  background: rgba(190, 24, 93, 0.16);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.mst-status-badge.is-neutral {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbe7f5;
}

.mst-mt-20 {
  margin-top: 20px;
}

.mst-shell-copy p,
.mst-delete-copy p,
.mst-empty-state p {
  margin: 0 0 10px;
  color: #dbe7f5;
}

.mst-shell-copy p:last-child,
.mst-delete-copy p:last-child,
.mst-empty-state p:last-child {
  margin-bottom: 0;
}

.mst-form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.mst-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mst-alert-success,
.mst-alert-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.mst-alert-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
  color: #b7f7d8;
}

.mst-alert-error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.mst-field-error {
  color: #fda4af;
  font-size: 13px;
  font-weight: 600;
}

.mst-empty-state {
  padding: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.mst-empty-state h2 {
  margin: 0 0 10px;
  color: #f6f9ff;
  font-size: 20px;
}

.mst-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.40);
  background: rgba(190, 24, 93, 0.14);
  color: #fecdd3;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mst-btn-danger:hover {
  background: rgba(190, 24, 93, 0.22);
  border-color: rgba(248, 113, 113, 0.68);
  transform: translateY(-1px);
}

.mst-delete-copy {
  margin-bottom: 20px;
}

.mst-context-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.mst-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 120, 255, 0.10);
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: #dbe7f5;
  font-size: 13px;
  font-weight: 600;
}

.mst-week-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
}

.mst-week-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 94px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe7f5;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mst-week-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.26);
  box-shadow: 0 12px 26px rgba(2, 12, 24, 0.25);
}

.mst-week-pill.is-current {
  border-color: rgba(255, 179, 82, 0.30);
}

.mst-week-pill.is-selected {
  background: linear-gradient(135deg, rgba(255, 49, 112, 0.18), rgba(0, 120, 255, 0.14));
  border-color: rgba(255, 107, 150, 0.42);
  box-shadow: 0 16px 32px rgba(255, 49, 112, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mst-week-pill.is-selected.is-current {
  border-color: rgba(255, 203, 107, 0.70);
  box-shadow: 0 18px 36px rgba(255, 49, 112, 0.22), 0 0 0 1px rgba(255, 203, 107, 0.18);
}

.mst-week-pill-kicker {
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mst-week-pill.is-selected .mst-week-pill-kicker {
  color: #ffd9a1;
}

.mst-week-pill-label {
  color: #f8fbff;
  font-size: 18px;
  font-weight: 700;
}

.mst-week-pill-meta {
  color: #9bb0cc;
  font-size: 12px;
  font-weight: 600;
}

.mst-filter-form {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.mst-filter-form .mst-form-label {
  min-width: min(100%, 320px);
  flex: 1;
}

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

.mst-order-stat {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mst-order-stat-label {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mst-order-stat-value {
  color: #f8fbff;
  font-size: 22px;
  font-weight: 700;
}

.mst-order-form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mst-accessorial-list,
.mst-file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mst-accessorial-row,
.mst-file-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mst-file-row {
  grid-template-columns: minmax(0, 1fr);
}

.mst-compact-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(235, 245, 255, 0.80);
  font-size: 13px;
  font-weight: 600;
}

.mst-compact-label input,
.mst-compact-label select {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 14, 29, 0.72);
  padding: 0 14px;
  color: #f5f9ff;
}

.mst-compact-label input:focus,
.mst-compact-label select:focus {
  border-color: rgba(255, 44, 100, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 44, 100, 0.16);
  outline: none;
}

.mst-accessorial-actions {
  display: flex;
  justify-content: flex-end;
}

.mst-file-chip-list,
.mst-file-presence-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mst-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 600;
}

.mst-file-chip a {
  color: #7dd3fc;
  text-decoration: none;
}

.mst-file-chip a:hover {
  color: #c9ecff;
}

.mst-file-delete-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fecaca;
  font-size: 12px;
  font-weight: 600;
}

.mst-file-delete-toggle input {
  width: 16px;
  height: 16px;
}

.mst-file-note {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.mst-subtle-copy {
  color: #9bb0cc;
  font-size: 14px;
}

.mst-inline-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffd9a1;
  font-size: 13px;
  font-weight: 600;
}

.mst-confirm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dbe7f5;
  font-size: 13px;
  font-weight: 600;
}

.mst-confirm-toggle input {
  width: 16px;
  height: 16px;
}

.mst-readonly-block {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mst-readonly-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mst-locked-copy {
  color: #fecaca;
  font-size: 13px;
  font-weight: 600;
}

.mst-inline-link {
  color: #7dd3fc;
  text-decoration: none;
}

.mst-inline-link:hover {
  color: #c9ecff;
}

.mst-table-secondary {
  color: #94a3b8;
  font-size: 12px;
}

.mst-presence-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 120, 255, 0.10);
  border: 1px solid rgba(125, 211, 252, 0.20);
  color: #bfe9ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mst-presence-pill.is-empty {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  color: #94a3b8;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237dd3fc' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 34px !important;
  cursor: pointer;
}

@media (max-width: 991px) {
  .mst-topbar-logo {
    display: flex;
    visibility: visible;
  }

  body.mst-mobile-sidebar-open .mst-topbar-logo {
    display: none;
  }

  #sidebar.c-sidebar,
  .c-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 268px !important;
    min-width: 268px !important;
    max-width: 268px !important;
    height: 100vh !important;
    margin-left: 0 !important;
    transform: translateX(-268px) !important;
    transition: transform .30s ease !important;
    z-index: 10050 !important;
    display: block !important;
  }

  body.mst-mobile-sidebar-open #sidebar.c-sidebar,
  body.mst-mobile-sidebar-open .c-sidebar {
    transform: translateX(0) !important;
  }

  .c-wrapper,
  .c-sidebar + .c-wrapper,
  body .c-wrapper {
    margin-left: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  body.mst-mobile-sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 17, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10040;
  }

  .mst-topbar {
    min-height: 70px !important;
    padding: 0 14px !important;
  }

  .mst-topbar-session {
    min-width: 0;
    max-width: calc(100vw - 154px);
    padding: 10px 14px !important;
  }

  .mst-topbar-session-icon {
    width: 32px;
    height: 32px;
  }

  .mst-topbar-session-name {
    font-size: 13px;
  }

  .mst-topbar-session-meta {
    gap: 6px;
    font-size: 11px;
  }

  .mst-main-shell {
    padding: 14px !important;
  }

  .mst-page-shell {
    padding: 18px;
    min-height: calc(100vh - 110px);
  }

  .mst-sidebar-logo {
    max-width: 144px !important;
  }

  .mst-dashboard-grid,
  .mst-form-grid-3,
  .mst-form-grid-2,
  .mst-order-summary-grid,
  .mst-accessorial-row {
    grid-template-columns: 1fr;
  }

  .mst-filter-form .mst-form-label {
    min-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .mst-topbar-logout {
    min-height: 42px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }

  .mst-topbar-avatar {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }

  .mst-topbar-session-meta {
    display: grid;
    gap: 2px;
  }

  .mst-topbar-meta-divider {
    display: none;
  }

  .mst-page-shell {
    border-radius: 22px;
    padding: 16px;
  }

  .mst-card-body {
    padding: 14px;
  }

  .mst-btn-primary,
  .mst-btn-secondary,
  .mst-btn-danger {
    width: 100%;
    justify-content: center;
  }

  .mst-title-actions,
  .mst-form-actions,
  .mst-action-group {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mst-login-card {
    padding: 24px 18px;
  }

  .mst-login-header h1 {
    font-size: 22px;
  }
}