:root {
  --clay-bg: #eef2ff;
  --clay-bg-2: #fdf2f8;
  --clay-surface: rgba(255, 255, 255, .68);
  --clay-primary: #4f46e5;
  --clay-primary-soft: #c7d2fe;
  --clay-secondary: #818cf8;
  --clay-accent: #f97316;
  --clay-mint: #99f6e4;
  --clay-pink: #fbcfe8;
  --clay-yellow: #fde68a;
  --clay-danger: #ef4444;
  --clay-success: #16a34a;
  --clay-warning: #d97706;
  --clay-text: #1e1b4b;
  --clay-muted: #5b5b87;
  --clay-shadow: 16px 18px 38px rgba(79, 70, 229, .18), -10px -10px 26px rgba(255, 255, 255, .86);
  --clay-shadow-low: 9px 10px 22px rgba(79, 70, 229, .14), -7px -7px 18px rgba(255, 255, 255, .78);
  --clay-shadow-high: 24px 28px 58px rgba(79, 70, 229, .22), -12px -12px 34px rgba(255, 255, 255, .9);
  --clay-inset: inset 7px 7px 16px rgba(79, 70, 229, .13), inset -8px -8px 18px rgba(255, 255, 255, .86);
  --clay-inset-strong: inset 10px 10px 22px rgba(79, 70, 229, .18), inset -10px -10px 24px rgba(255, 255, 255, .9);
  --clay-motion: cubic-bezier(.34, 1.56, .64, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--clay-text);
  font-family: "Nunito Sans", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 7% 8%, rgba(251, 207, 232, .68) 0 13rem, transparent 26rem),
    radial-gradient(circle at 90% 6%, rgba(153, 246, 228, .62) 0 14rem, transparent 28rem),
    radial-gradient(circle at 74% 90%, rgba(254, 215, 170, .58) 0 14rem, transparent 28rem),
    linear-gradient(135deg, var(--clay-bg) 0%, #f7f3ff 48%, var(--clay-bg-2) 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
}

body::before {
  right: 9vw;
  top: 15vh;
  width: 92px;
  height: 92px;
  background: var(--clay-yellow);
  box-shadow: var(--clay-shadow-low);
  opacity: .55;
}

body::after {
  left: 43vw;
  bottom: 8vh;
  width: 54px;
  height: 54px;
  background: var(--clay-primary-soft);
  box-shadow: var(--clay-shadow-low);
  opacity: .62;
}

code {
  user-select: all;
  padding: 2px 7px;
  color: var(--clay-primary);
  background: #e0e7ff;
  border-radius: 12px;
  box-shadow: var(--clay-inset);
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 24;
  line-height: 1;
  vertical-align: -.2em;
}

.app-frame {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 26px;
  min-height: 100vh;
  padding: 24px;
}

.sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px);
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(238, 242, 255, .78));
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 38px;
  box-shadow: var(--clay-shadow);
}

.sidebar::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  background: rgba(199, 210, 254, .62);
  border-radius: 50%;
  box-shadow: var(--clay-inset);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 0 8px;
  color: var(--clay-text);
  text-decoration: none;
  font-family: "Varela Round", "Nunito Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.brand:hover {
  color: var(--clay-primary);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(145deg, #818cf8, #4f46e5);
  border: 3px solid rgba(255, 255, 255, .62);
  border-radius: 20px;
  box-shadow: 10px 12px 24px rgba(79, 70, 229, .28), inset 5px 5px 11px rgba(255, 255, 255, .24), inset -7px -8px 14px rgba(30, 27, 75, .22);
}

.side-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  overflow: hidden;
  padding: 0 18px;
  color: var(--clay-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, .48);
  border: 2px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  box-shadow: var(--clay-shadow-low);
  font-weight: 800;
  transition: transform 180ms var(--clay-motion), box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.side-nav a:hover {
  color: var(--clay-primary);
  background: rgba(255, 255, 255, .74);
  transform: translateY(-2px);
  box-shadow: var(--clay-shadow);
}

.side-nav a:active,
.side-nav a.active {
  color: var(--clay-primary);
  background: #e0e7ff;
  box-shadow: var(--clay-inset);
  transform: translateY(1px) scale(.99);
}

.side-note {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 20px;
  color: var(--clay-text);
  background: linear-gradient(145deg, #fef3c7, #fed7aa);
  border: 3px solid rgba(255, 255, 255, .66);
  border-radius: 30px;
  box-shadow: var(--clay-shadow-low), inset 6px 6px 13px rgba(255, 255, 255, .34), inset -8px -9px 15px rgba(217, 119, 6, .13);
}

.side-note .small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(30, 27, 75, .72) !important;
  font-weight: 900;
}

.side-note strong {
  display: block;
  margin-top: 8px;
}

.side-note p {
  margin: 8px 0 0;
  color: rgba(30, 27, 75, .68);
  font-size: 13px;
  line-height: 1.6;
}

.im-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.im-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(30, 27, 75, .28);
  backdrop-filter: blur(8px);
}

.im-chat-shell {
  width: min(1180px, 100%);
  height: min(780px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  color: var(--clay-text);
  background: rgba(255, 255, 255, .9);
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 34px;
  box-shadow: var(--clay-shadow-high);
}

.im-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 6px 16px;
}

.im-chat-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 16px;
}

.im-chat-sidebar,
.im-chat-main {
  min-height: 0;
  background: rgba(255, 255, 255, .58);
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  box-shadow: var(--clay-shadow-low);
}

.im-chat-sidebar {
  overflow: auto;
  padding: 12px;
}

.im-chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.im-chat-main-head {
  padding: 16px 18px;
  border-bottom: 2px solid rgba(255, 255, 255, .68);
}

.im-chat-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.im-chat-reply {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 2px solid rgba(255, 255, 255, .68);
}

.im-thread-card {
  height: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, .56);
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  box-shadow: var(--clay-shadow-low);
}

.im-thread-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 1000;
}

.im-thread-toggle {
  width: 100%;
  padding: 0;
  color: var(--clay-text);
  background: transparent;
  border: 0;
}

.im-thread-toggle:hover {
  color: var(--clay-primary);
}

.im-thread-list {
  display: grid;
  gap: 7px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.im-thread-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .66);
  border: 2px solid rgba(255, 255, 255, .68);
  border-radius: 16px;
  box-shadow: var(--clay-inset);
  cursor: pointer;
}

.im-thread-item.active,
.im-thread-item:hover {
  background: #e0e7ff;
  box-shadow: var(--clay-shadow-low);
}

.im-thread-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .78);
  box-shadow: var(--clay-shadow-low);
}

.im-thread-avatar.fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 1000;
  background: linear-gradient(145deg, #818cf8, #4f46e5);
}

.im-thread-body {
  min-width: 0;
}

.im-thread-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.im-thread-line strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 1000;
}

.im-thread-line small {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: rgba(91, 91, 135, .78);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.im-thread-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.im-thread-side .badge {
  padding: .32em .58em;
  font-size: 11px;
}

.btn-xs {
  min-height: 28px;
  padding: 3px 9px;
  border-width: 2px;
  font-size: 12px;
}

.im-thread-unread {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--clay-danger);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--clay-shadow-low);
  font-size: 10px;
  font-weight: 1000;
}

.im-message-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

.im-unread-badge {
  position: static;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--clay-danger);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--clay-shadow-low);
  font-size: 11px;
  font-weight: 1000;
}

.im-thread-preview {
  margin-top: 2px;
  color: var(--clay-muted);
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.im-bubble-row {
  display: flex;
  margin: 8px 0;
}

.im-bubble-row.out {
  justify-content: flex-end;
}

.im-bubble {
  max-width: min(520px, 78%);
  padding: 10px 13px;
  line-height: 1.55;
  word-break: break-word;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .76);
  border-radius: 18px 18px 18px 6px;
  box-shadow: var(--clay-shadow-low);
}

.im-bubble-row.out .im-bubble {
  color: #fff;
  background: linear-gradient(145deg, #818cf8, #4f46e5);
  border-radius: 18px 18px 6px 18px;
}

.im-bubble-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  max-width: min(560px, 86%);
}

.im-bubble-wrap .im-bubble {
  max-width: 100%;
}

.im-read-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: var(--clay-shadow-low);
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
}

.im-read-icon.read {
  background: var(--clay-success);
}

.im-read-icon.unread {
  background: var(--clay-warning);
}

.admin-shell {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 8% 8%, rgba(251, 207, 232, .68) 0 13rem, transparent 26rem),
    radial-gradient(circle at 90% 8%, rgba(153, 246, 228, .62) 0 14rem, transparent 28rem),
    linear-gradient(135deg, var(--clay-bg) 0%, #f7f3ff 48%, var(--clay-bg-2) 100%);
}

.admin-login-card,
.admin-card,
.admin-head {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 24px;
  color: var(--clay-text);
  background: rgba(255, 255, 255, .76);
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 30px;
  box-shadow: var(--clay-shadow);
}

.admin-login-card {
  max-width: 520px;
  margin-top: 12vh;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.admin-stat-grid,
.admin-grid-2 {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: grid;
  gap: 18px;
}

.admin-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-feature-console {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, auto) auto;
  gap: 12px;
  align-items: end;
}

.admin-feature-status,
.admin-session-detail,
.admin-list,
.admin-feature-pills {
  padding: 14px;
  background: rgba(255, 255, 255, .58);
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  box-shadow: var(--clay-inset);
}

.main-panel {
  width: 100%;
  max-width: 1530px;
  padding: 4px 12px 54px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 13px;
  color: var(--clay-primary);
  background: #e0e7ff;
  border: 2px solid rgba(255, 255, 255, .74);
  border-radius: 999px;
  box-shadow: var(--clay-inset);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-head,
.job-header,
.panel-card,
.stat-card,
.action-card,
.status-card,
.empty-state,
.modal-dark {
  color: var(--clay-text);
  background: var(--clay-surface);
  border: 3px solid rgba(255, 255, 255, .72);
  box-shadow: var(--clay-shadow);
}

.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  min-height: 210px;
  padding: 34px;
  margin-bottom: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 18%, rgba(255, 255, 255, .74) 0 6rem, transparent 10rem),
    linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 44%, #fbcfe8 100%);
  border-radius: 42px;
}

.page-head::before,
.page-head::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  box-shadow: var(--clay-inset);
}

.page-head::before {
  right: 30%;
  top: -54px;
  width: 158px;
  height: 158px;
  background: rgba(255, 255, 255, .42);
}

.page-head::after {
  right: -46px;
  bottom: -58px;
  width: 212px;
  height: 212px;
  background: rgba(153, 246, 228, .52);
}

.page-head > * {
  position: relative;
  z-index: 1;
}

.page-head h1,
.job-header h3,
.empty-state h1 {
  margin: 14px 0 8px;
  color: var(--clay-text);
  font-family: "Varela Round", "Nunito Sans", sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.job-header h3 {
  font-size: clamp(26px, 2.7vw, 38px);
}

.page-head p,
.empty-state p {
  max-width: 720px;
  margin: 0;
  color: rgba(30, 27, 75, .68);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 14px;
  padding: 7px 14px;
  color: var(--clay-primary);
  text-decoration: none;
  background: rgba(255, 255, 255, .62);
  border: 2px solid rgba(255, 255, 255, .74);
  border-radius: 999px;
  box-shadow: var(--clay-shadow-low);
  font-weight: 1000;
}

.contact-link:hover {
  color: #fff;
  background: linear-gradient(145deg, #818cf8, var(--clay-primary));
}

.page-actions,
.job-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-items: center;
  justify-content: flex-end;
}

.account-table .actions {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 5px;
  min-width: 0;
  justify-content: stretch;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.account-table .actions .btn {
  min-width: 56px;
  min-height: 30px;
  padding: 3px 8px;
  border-width: 2px;
  font-size: 12px;
  letter-spacing: -.02em;
  white-space: nowrap;
  box-shadow: none;
}

.account-table .actions .btn:hover {
  box-shadow: var(--clay-shadow-low);
}

.account-table .actions .action-danger {
  grid-column: span 1;
}

.page-actions {
  max-width: 590px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  overflow: hidden;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 1000;
  transition: transform 190ms var(--clay-motion), box-shadow 190ms ease, background-color 190ms ease, color 190ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(.985);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .54;
  transform: none;
}

.btn:focus-visible,
.side-nav a:focus-visible,
summary:focus-visible {
  outline: 4px solid rgba(249, 115, 22, .25);
  outline-offset: 3px;
}

.btn-accent,
.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, #fb923c, var(--clay-accent));
  border: 3px solid rgba(255, 255, 255, .62);
  box-shadow: 11px 13px 26px rgba(249, 115, 22, .25), inset 5px 5px 12px rgba(255, 255, 255, .28), inset -7px -8px 14px rgba(154, 52, 18, .24);
}

.btn-accent:hover,
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(145deg, #fdba74, var(--clay-accent));
}

.btn-accent:active,
.btn-primary:active {
  box-shadow: inset 8px 8px 16px rgba(154, 52, 18, .25), inset -7px -7px 14px rgba(255, 255, 255, .28);
}

.btn-soft,
.btn-chip,
.btn-outline-secondary {
  color: var(--clay-primary);
  background: rgba(255, 255, 255, .62);
  border: 3px solid rgba(255, 255, 255, .72);
  box-shadow: var(--clay-shadow-low);
}

.btn-soft:hover,
.btn-chip:hover,
.btn-outline-secondary:hover {
  color: var(--clay-primary);
  background: #eef2ff;
  box-shadow: var(--clay-shadow);
}

.btn-soft:active,
.btn-chip:active,
.btn-outline-secondary:active {
  box-shadow: var(--clay-inset);
}

.btn-soft-danger {
  color: #fff;
  background: linear-gradient(145deg, #fb7185, var(--clay-danger));
  border: 3px solid rgba(255, 255, 255, .6);
  box-shadow: 10px 12px 24px rgba(239, 68, 68, .2), inset 5px 5px 12px rgba(255, 255, 255, .22), inset -7px -8px 14px rgba(127, 29, 29, .22);
}

.btn-chip,
.btn-chip-primary {
  min-height: 36px;
  padding: 6px 15px;
  font-size: 13px;
}

.btn-chip-primary {
  color: #fff;
  background: linear-gradient(145deg, #818cf8, var(--clay-primary));
  border: 3px solid rgba(255, 255, 255, .62);
  box-shadow: 9px 10px 20px rgba(79, 70, 229, .21), inset 4px 4px 10px rgba(255, 255, 255, .24), inset -6px -6px 12px rgba(30, 27, 75, .18);
}

.ripple {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  background: currentColor;
  border-radius: 50%;
  opacity: .12;
  transform: translate(-50%, -50%) scale(0);
  animation: clay-ripple 560ms ease-out;
}

@keyframes clay-ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  padding: 24px;
  border-radius: 36px;
  transition: transform 190ms var(--clay-motion), box-shadow 190ms ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--clay-shadow-high);
}

.stat-card:active {
  transform: translateY(1px) scale(.99);
  box-shadow: var(--clay-inset);
}

.stat-card::before {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -58px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, .34);
  border-radius: 50%;
  box-shadow: var(--clay-inset);
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-primary {
  background: linear-gradient(145deg, #e0e7ff, #c7d2fe);
}

.stat-success {
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
}

.stat-warning {
  background: linear-gradient(145deg, #fef3c7, #fed7aa);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  color: var(--clay-primary);
  background: rgba(255, 255, 255, .58);
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  box-shadow: var(--clay-shadow-low), inset 5px 5px 12px rgba(255, 255, 255, .34), inset -6px -6px 12px rgba(79, 70, 229, .08);
  font-size: 26px;
}

.stat-card span:not(.material-symbols-rounded) {
  display: block;
  color: rgba(30, 27, 75, .72);
  font-size: 13px;
  font-weight: 1000;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--clay-text);
  font-family: "Varela Round", "Nunito Sans", sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.panel-card {
  overflow: hidden;
  background: rgba(255, 255, 255, .66);
  border-radius: 38px;
}

.account-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--clay-text);
  --bs-table-hover-bg: rgba(199, 210, 254, .34);
  color: var(--clay-text);
  margin: 0;
}

.account-table thead th {
  height: 58px;
  padding: 15px 18px;
  color: var(--clay-muted);
  background: rgba(224, 231, 255, .72);
  border-bottom: 2px solid rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-table td {
  padding: 10px 12px;
  border-color: rgba(79, 70, 229, .11);
  vertical-align: middle;
}

.account-table tbody tr:hover {
  background: rgba(199, 210, 254, .28);
}

.account-profile-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.account-avatar,
.account-avatar-fallback {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.account-avatar {
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .75);
  box-shadow: var(--clay-shadow-low);
}

.account-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--clay-primary);
  background: #e0e7ff;
  border: 3px solid rgba(255, 255, 255, .72);
  box-shadow: var(--clay-inset);
  font-weight: 1000;
}

.account-avatar-sm {
  width: 36px !important;
  height: 36px !important;
  border-radius: 14px !important;
  font-size: 13px;
}

.account-main-cell {
  min-width: 180px;
  line-height: 1.35;
}

.account-main-cell .fw-semibold {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-inline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clay-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.im-proxy-cell,
.im-status-cell,
.im-material-cell {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}

.im-proxy-cell small,
.im-status-cell small {
  max-width: 210px;
  overflow: hidden;
  color: var(--clay-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.im-material-cell {
  align-items: center;
  justify-items: start;
}

.im-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.im-actions-cell .btn {
  min-height: 32px;
  padding: 4px 10px;
  border-width: 2px;
  font-size: 12px;
}

.badge {
  border-radius: 999px;
  padding: .5em .8em;
  font-weight: 1000;
  border: 2px solid rgba(255, 255, 255, .5);
}

.text-bg-success {
  color: #fff !important;
  background-color: var(--clay-success) !important;
}

.text-bg-warning {
  color: var(--clay-text) !important;
  background-color: var(--clay-yellow) !important;
}

.text-bg-danger {
  color: #fff !important;
  background-color: var(--clay-danger) !important;
}

.text-bg-info,
.text-bg-secondary,
.text-bg-light {
  color: var(--clay-primary) !important;
  background-color: #e0e7ff !important;
}

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

.form-control,
.form-select {
  min-height: 50px;
  color: var(--clay-text);
  background: rgba(238, 242, 255, .78);
  border: 3px solid rgba(255, 255, 255, .68);
  border-radius: 22px;
  box-shadow: var(--clay-inset);
  font-weight: 800;
  transition: box-shadow 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.form-control:focus,
.form-select:focus {
  color: var(--clay-text);
  background: #eef2ff;
  border-color: rgba(249, 115, 22, .42);
  box-shadow: var(--clay-inset-strong), 0 0 0 4px rgba(249, 115, 22, .16);
}

.form-control::placeholder {
  color: rgba(91, 91, 135, .62);
}

.form-label {
  color: var(--clay-muted);
  font-weight: 1000;
}

.form-text {
  color: var(--clay-muted);
  font-weight: 700;
}

.proxy-buy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--clay-muted);
  font-size: 13px;
  font-weight: 900;
}

.proxy-buy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 11px;
  color: var(--clay-primary);
  text-decoration: none;
  background: rgba(238, 242, 255, .82);
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  box-shadow: var(--clay-shadow-low);
}

.proxy-buy-links a:hover {
  color: #fff;
  background: linear-gradient(145deg, #818cf8, var(--clay-primary));
}

.modal {
  z-index: 1065;
}

.modal-backdrop {
  z-index: 1055;
  background: rgba(199, 210, 254, .42);
  opacity: 1 !important;
  backdrop-filter: blur(5px);
}

.modal-content.modal-dark {
  color: var(--clay-text);
  background:
    radial-gradient(circle at 85% 6%, rgba(255, 255, 255, .7), transparent 10rem),
    linear-gradient(145deg, #ffffff, #eef2ff);
  border: 3px solid rgba(255, 255, 255, .76);
  border-radius: 38px;
  box-shadow: var(--clay-shadow-high);
}

#newAccountModal .modal-dialog {
  max-width: 760px;
}

#newAccountModal .modal-header,
#newAccountModal .modal-footer {
  padding: 18px 22px;
}

#newAccountModal .modal-body {
  padding: 0 22px 14px;
}

#newAccountModal .modal-title {
  font-size: 22px;
}

.account-form-grid {
  display: grid;
  gap: 12px;
}

.form-section {
  padding: 14px;
  background: rgba(255, 255, 255, .46);
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  box-shadow: var(--clay-inset);
}

.form-section-title {
  margin-bottom: 10px;
  color: rgba(30, 27, 75, .68);
  font-size: 13px;
  font-weight: 1000;
}

#newAccountModal .form-label {
  margin-bottom: 5px;
  font-size: 13px;
}

#newAccountModal .form-control,
#newAccountModal .form-select {
  min-height: 44px;
  border-radius: 18px;
}

#newAccountModal .option-card {
  min-height: 46px;
  padding: 10px 12px;
  border-width: 2px;
  border-radius: 18px;
  font-size: 13px;
}

#newAccountModal .btn-chip,
#newAccountModal .btn-chip-primary {
  min-height: 32px;
  padding: 4px 12px;
  border-width: 2px;
  font-size: 12px;
}

#newAccountModal .map-panel {
  padding: 10px;
  border-width: 2px;
  border-radius: 20px;
}

#newAccountModal .map-picker {
  height: 300px;
  min-height: 300px;
}

.modal-header,
.modal-footer {
  padding: 24px 26px;
}

.modal-body {
  padding: 0 26px 18px;
}

.modal-dark .modal-title {
  color: var(--clay-text);
  font-family: "Varela Round", "Nunito Sans", sans-serif;
  font-weight: 700;
}

.modal-dark .btn-close-white {
  filter: none;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 60px;
  padding: 15px;
  color: var(--clay-text);
  background: rgba(238, 242, 255, .74);
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  box-shadow: var(--clay-inset);
  font-weight: 900;
}

.form-check-input:checked {
  background-color: var(--clay-primary);
  border-color: var(--clay-primary);
}

.inline-job {
  padding: 20px 26px 26px;
  background: rgba(224, 231, 255, .54);
  border-top: 2px solid rgba(255, 255, 255, .72);
}

.mini-timeline,
.timeline {
  display: grid;
  gap: 13px;
}

.mini-event,
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--clay-text);
}

.mini-event > span,
.timeline-item .dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 7px;
  background: var(--clay-secondary);
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(129, 140, 248, .18);
}

.mini-event.ok > span,
.timeline-item.ok .dot {
  background: var(--clay-success);
}

.mini-event.running > span,
.mini-event.info > span,
.timeline-item.running .dot,
.timeline-item.info .dot {
  background: var(--clay-primary);
}

.mini-event.warning > span,
.timeline-item.warning .dot {
  background: var(--clay-warning);
}

.mini-event.error > span,
.timeline-item.error .dot {
  background: var(--clay-danger);
}

.mini-event small {
  display: block;
  margin-top: 3px;
  color: var(--clay-muted);
  font-weight: 700;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-form input {
  max-width: 260px;
}

.inline-form.register input,
.inline-form.register select {
  max-width: 180px;
}

.mini-success {
  color: var(--clay-success);
  font-weight: 1000;
}

.mini-error {
  max-height: 180px;
  overflow: auto;
  color: var(--clay-danger);
  font-size: 13px;
  font-weight: 800;
}

.quick-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-panel {
  padding: 14px;
  background: rgba(238, 242, 255, .72);
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  box-shadow: var(--clay-inset);
}

.map-picker {
  width: 100%;
  height: 360px;
  min-height: 360px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  box-shadow: var(--clay-shadow-low);
}

.map-picker .leaflet-container,
.map-picker .leaflet-pane,
.map-picker .leaflet-map-pane {
  width: 100%;
  height: 100%;
}

.map-pin-icon {
  position: relative;
  width: 30px !important;
  height: 42px !important;
  background: transparent;
}

.map-pin-icon span {
  position: absolute;
  left: 4px;
  top: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .28);
  transform: rotate(-45deg);
}

.map-pin-icon span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.job-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  margin-bottom: 20px;
  border-radius: 38px;
}

.action-card,
.status-card {
  padding: 26px;
  margin-bottom: 20px;
  border-radius: 34px;
}

.action-card h5,
.status-card h5 {
  color: var(--clay-text);
  font-weight: 1000;
}

.alert {
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  box-shadow: var(--clay-shadow-low);
}

.alert-success {
  color: #052e16;
  background: #bbf7d0;
}

.alert-danger {
  color: #7f1d1d;
  background: #fecaca;
}

.log-box {
  min-height: 360px;
  max-height: 70vh;
  overflow: auto;
  padding: 16px;
  color: var(--clay-text);
  white-space: pre-wrap;
  background: #eef2ff;
  border: 3px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  box-shadow: var(--clay-inset);
  font-family: "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 13px;
}

summary {
  width: fit-content;
  padding: 11px 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, .58);
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  box-shadow: var(--clay-shadow-low);
  font-weight: 900;
  transition: transform 180ms var(--clay-motion), box-shadow 180ms ease;
}

summary:hover {
  transform: translateY(-2px);
}

summary:active {
  transform: translateY(1px) scale(.99);
  box-shadow: var(--clay-inset);
}

.empty-state {
  max-width: 720px;
  margin: 10vh auto;
  padding: 52px;
  text-align: center;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, .7), transparent 10rem),
    linear-gradient(145deg, #e0e7ff, #fdf2f8);
  border-radius: 42px;
}

.md-fab {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 68px;
  height: 68px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(145deg, #fb923c, var(--clay-accent));
  border: 3px solid rgba(255, 255, 255, .68);
  border-radius: 25px;
  box-shadow: var(--clay-shadow-high), inset 6px 6px 13px rgba(255, 255, 255, .24), inset -8px -8px 16px rgba(154, 52, 18, .24);
  font-weight: 1000;
}

.md-fab:hover {
  color: #fff;
  transform: translateY(-4px);
}

.md-fab:active {
  transform: translateY(1px) scale(.97);
  box-shadow: inset 9px 9px 18px rgba(154, 52, 18, .28), inset -7px -7px 14px rgba(255, 255, 255, .24);
}

.md-fab .material-symbols-rounded {
  font-size: 28px;
}

.avatar-dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 100%;
  min-height: 128px;
  padding: 18px;
  cursor: pointer;
  color: rgba(30, 27, 75, .78);
  text-align: center;
  background: rgba(255, 255, 255, .58);
  border: 2px dashed rgba(99, 102, 241, .38);
  border-radius: 24px;
  box-shadow: var(--clay-shadow-low), var(--clay-inset);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.avatar-dropzone:hover,
.avatar-dropzone.drag-over,
.avatar-dropzone.has-file {
  background: rgba(238, 242, 255, .82);
  border-color: rgba(99, 102, 241, .78);
  transform: translateY(-1px);
}

.avatar-dropzone.has-file {
  background: linear-gradient(145deg, rgba(220, 252, 231, .86), rgba(238, 242, 255, .82));
  border-style: solid;
  border-color: rgba(22, 163, 74, .58);
}

.avatar-dropzone.has-file .material-symbols-rounded {
  display: none;
}

.avatar-dropzone .material-symbols-rounded {
  color: var(--clay-primary);
  font-size: 32px;
}

.avatar-dropzone strong {
  font-size: 15px;
  font-weight: 900;
}

.avatar-dropzone small {
  color: rgba(30, 27, 75, .58);
  font-weight: 800;
}

.avatar-dropzone.has-file small {
  color: rgba(22, 101, 52, .78);
}

.avatar-preview {
  width: 108px;
  height: 108px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, .72);
  border: 3px solid rgba(255, 255, 255, .82);
  border-radius: 30px;
  box-shadow: var(--clay-shadow-low);
}

.import-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .86), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(238, 242, 255, .74));
  border: 2px dashed rgba(99, 102, 241, .34);
  border-radius: 30px;
  box-shadow: var(--clay-shadow-low), var(--clay-inset);
  transition: transform 170ms var(--clay-motion), border-color 170ms ease, background 170ms ease;
}

.import-dropzone:hover,
.import-dropzone.drag-over,
.import-dropzone:focus-visible {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .94), transparent 12rem),
    linear-gradient(145deg, rgba(238, 242, 255, .92), rgba(224, 231, 255, .82));
  border-color: rgba(99, 102, 241, .78);
  outline: none;
  transform: translateY(-2px);
}

.import-drop-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--clay-primary), #3730a3);
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  box-shadow: 10px 14px 24px rgba(79, 70, 229, .18), inset 5px 5px 12px rgba(255, 255, 255, .2);
  font-size: 30px;
}

.import-dropzone strong {
  display: block;
  color: var(--clay-text);
  font-size: 17px;
  font-weight: 1000;
}

.import-dropzone p {
  margin: 4px 0 0;
  color: rgba(30, 27, 75, .62);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.clay-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(199, 210, 254, .42);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.clay-dialog-backdrop.show {
  opacity: 1;
}

.clay-dialog {
  width: min(520px, 100%);
  padding: 26px;
  color: var(--clay-text);
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .82), transparent 10rem),
    linear-gradient(145deg, #ffffff, #eef2ff);
  border: 3px solid rgba(255, 255, 255, .76);
  border-radius: 36px;
  box-shadow: var(--clay-shadow-high), inset 7px 7px 16px rgba(255, 255, 255, .3), inset -9px -9px 18px rgba(79, 70, 229, .08);
  transform: translateY(14px) scale(.96);
  transition: transform 190ms var(--clay-motion);
}

.clay-dialog-backdrop.show .clay-dialog {
  transform: translateY(0) scale(1);
}

.clay-dialog-danger {
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .82), transparent 10rem),
    linear-gradient(145deg, #fff7ed, #ffe4e6);
}

.clay-dialog-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--clay-primary);
  background: #e0e7ff;
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  box-shadow: var(--clay-shadow-low), var(--clay-inset);
  font-size: 28px;
}

.clay-dialog-danger .clay-dialog-icon {
  color: #ffffff;
  background: linear-gradient(145deg, #fb7185, var(--clay-danger));
  box-shadow: 10px 12px 24px rgba(239, 68, 68, .18), inset 5px 5px 12px rgba(255, 255, 255, .22), inset -7px -8px 14px rgba(127, 29, 29, .2);
}

.clay-dialog h3 {
  margin: 0 0 10px;
  color: var(--clay-text);
  font-family: "Varela Round", "Nunito Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.clay-dialog p {
  margin: 0;
  color: rgba(30, 27, 75, .72);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
}

.clay-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 18px;
  }

  .main-panel {
    padding-right: 0;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .im-chat-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-frame {
    display: block;
    padding: 14px;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 32px;
  }

  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
  }

  .side-nav a {
    justify-content: center;
    min-height: 50px;
    padding: 0 12px;
  }

  .side-note {
    display: none;
  }

  .main-panel {
    padding: 0 0 40px;
  }

  .page-head,
  .job-header {
    display: block;
  }

  .page-actions,
  .job-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .import-dropzone,
  .admin-feature-console {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .import-drop-icon {
    margin: 0 auto;
  }

  .md-fab {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 560px) {
  .side-nav {
    grid-template-columns: 1fr;
  }

  .side-nav a {
    justify-content: flex-start;
  }

  .page-head,
  .job-header,
  .action-card,
  .status-card,
  .empty-state {
    padding: 22px;
    border-radius: 30px;
  }

  .page-head h1 {
    font-size: 35px;
  }

  .account-table thead th,
  .account-table td {
    padding: 12px;
  }

  .md-fab {
    width: 60px;
    min-width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 22px;
  }

  .md-fab .fab-label {
    display: none;
  }
}

/* Owner panel overrides: keep this block last so user-panel styles do not
   accidentally flatten the private dashboard layout. */
.admin-shell {
  min-height: 100vh;
  padding: 28px;
  color: var(--clay-text);
  background:
    radial-gradient(circle at 8% 8%, rgba(251, 207, 232, .68) 0 13rem, transparent 26rem),
    radial-gradient(circle at 90% 8%, rgba(153, 246, 228, .62) 0 14rem, transparent 28rem),
    linear-gradient(135deg, var(--clay-bg) 0%, #f7f3ff 48%, var(--clay-bg-2) 100%);
}

.admin-shell .admin-login-card,
.admin-shell .admin-card,
.admin-shell .admin-head,
.admin-shell .admin-stat-card {
  color: var(--clay-text);
  background: rgba(255, 255, 255, .78);
  border: 3px solid rgba(255, 255, 255, .76);
  border-radius: 30px;
  box-shadow: var(--clay-shadow);
  backdrop-filter: blur(10px);
}

.admin-shell .admin-login-card,
.admin-shell .admin-card,
.admin-shell .admin-head {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  padding: 24px;
}

.admin-shell .admin-login-card {
  width: min(520px, 100%);
  margin-top: 12vh;
}

.admin-shell .admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-shell .admin-head h1,
.admin-shell .admin-login-card h1 {
  margin: 12px 0 8px;
  font-family: "Varela Round", "Nunito Sans", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.04em;
}

.admin-shell .admin-card h3 {
  margin: 0 0 8px;
  color: var(--clay-text);
  font-weight: 1000;
}

.admin-shell .admin-stat-grid,
.admin-shell .admin-grid-2 {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: grid;
  gap: 18px;
}

.admin-shell .admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-shell .admin-grid-2 {
  grid-template-columns: minmax(420px, 1.15fr) minmax(360px, .85fr);
}

.admin-shell .admin-stat-card {
  min-height: 118px;
  padding: 20px;
}

.admin-shell .admin-stat-card span {
  display: block;
  color: rgba(30, 27, 75, .58);
  font-size: 13px;
  font-weight: 1000;
}

.admin-shell .admin-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--clay-text);
  font-family: "Varela Round", "Nunito Sans", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.admin-shell .admin-feature-console {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, auto) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  background: linear-gradient(145deg, rgba(238, 242, 255, .86), rgba(255, 255, 255, .78));
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 26px;
  box-shadow: var(--clay-shadow-low), var(--clay-inset);
}

.admin-shell .admin-feature-main label {
  display: block;
  margin-bottom: 6px;
  color: rgba(30, 27, 75, .58);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .05em;
}

.admin-shell .admin-feature-status,
.admin-shell .admin-session-detail,
.admin-shell .admin-list,
.admin-shell .admin-feature-pills {
  padding: 14px;
  background: rgba(255, 255, 255, .62);
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  box-shadow: var(--clay-inset);
}

.admin-shell .admin-feature-status {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  font-weight: 1000;
}

.admin-shell .admin-feature-status span {
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .14);
  font-size: 13px;
}

.admin-shell .admin-feature-status span.text-danger {
  background: rgba(239, 68, 68, .14);
}

.admin-shell .admin-feature-status small {
  color: rgba(30, 27, 75, .52);
}

.admin-shell .admin-feature-details {
  margin-top: 12px;
}

.admin-shell .admin-feature-details summary {
  cursor: pointer;
  color: rgba(30, 27, 75, .64);
  font-size: 13px;
  font-weight: 1000;
}

.admin-shell .admin-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-shell .admin-feature-pill,
.admin-shell .admin-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--clay-text);
  background: rgba(238, 242, 255, .78);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.admin-shell .admin-feature-pill.off {
  background: rgba(254, 226, 226, .82);
}

.admin-shell .admin-feature-pill span,
.admin-shell .admin-mini-job span {
  color: rgba(30, 27, 75, .55);
  font-size: 12px;
}

.admin-shell .admin-session-select {
  width: min(320px, 100%);
}

.admin-shell .admin-session-detail {
  display: grid;
  gap: 14px;
}

.admin-shell .admin-session-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-shell .admin-session-metrics div {
  padding: 13px 14px;
  background: rgba(238, 242, 255, .74);
  border-radius: 18px;
}

.admin-shell .admin-session-metrics span {
  display: block;
  color: rgba(30, 27, 75, .52);
  font-size: 12px;
  font-weight: 900;
}

.admin-shell .admin-session-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--clay-text);
  font-size: 15px;
  font-weight: 1000;
  word-break: break-all;
}

.admin-shell .admin-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-shell .admin-action-chip strong {
  color: var(--clay-text);
}

.admin-shell .admin-session-jobs,
.admin-shell .admin-list-item {
  padding: 14px;
  background: rgba(255, 247, 237, .72);
  border-radius: 20px;
}

.admin-shell .admin-list {
  display: grid;
  gap: 10px;
}

.admin-shell .admin-list-item strong,
.admin-shell .admin-list-item small {
  display: block;
}

.admin-shell .admin-list-item small {
  color: rgba(30, 27, 75, .58);
  font-weight: 800;
  line-height: 1.6;
}

.admin-shell .admin-mini-job {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-weight: 900;
}

@media (max-width: 900px) {
  .admin-shell {
    padding: 14px;
  }

  .admin-shell .admin-head {
    display: block;
  }

  .admin-shell .admin-stat-grid,
  .admin-shell .admin-grid-2,
  .admin-shell .admin-session-metrics,
  .admin-shell .admin-feature-console {
    grid-template-columns: 1fr;
  }
}
