:root {
  --ops-bg: #f3efe6;
  --ops-panel: rgba(255, 252, 246, 0.95);
  --ops-border: #ddd3c3;
  --ops-shadow: 0 20px 45px -24px rgba(87, 72, 44, 0.28);
  --ops-sans: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ops-mono: "SFMono-Regular", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
  background:
    radial-gradient(circle at top left, rgba(210, 232, 229, 0.7), transparent 28rem),
    radial-gradient(circle at top right, rgba(239, 228, 204, 0.6), transparent 26rem),
    var(--ops-bg);
  font-family: var(--ops-sans);
}

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

.ops-shell {
  position: relative;
  min-height: 100vh;
}

.ops-shell-sidebar {
  display: none;
}

.ops-shell-main {
  min-width: 0;
}

.ops-shell-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.ops-shell-content {
  min-height: 0;
  overflow-x: hidden;
}

.ops-shell-drawer-toggle {
  display: inline-flex;
}

.ops-shell-drawer {
  overscroll-behavior: contain;
}

.ops-shell-drawer-panel {
  width: min(20rem, calc(100vw - 1rem));
  overflow-y: auto;
}

.ops-user-avatar {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #99f6e4, #5eead4);
  color: #0c0a09;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ops-notification-button {
  position: relative;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #44403c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: 160ms ease;
}

.ops-notification-button:hover {
  border-color: #99f6e4;
  color: #0f766e;
}

.ops-notification-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  display: inline-flex;
  min-width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border: 2px solid #f3efe6;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.ops-notification-menu {
  width: min(24rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 1.5rem;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 24px 55px -26px rgba(87, 72, 44, 0.42);
}

.ops-notification-list {
  max-height: min(28rem, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ops-notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid #f1efeb;
  background: rgba(255, 255, 255, 0.62);
  transition: 160ms ease;
}

.ops-notification-item:hover {
  background: #f8fafc;
}

.ops-notification-item.is-unread {
  background: #ecfdf5;
}

.ops-notification-item:last-child {
  border-bottom: 0;
}

.ops-notification-dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.35rem;
  flex: 0 0 0.65rem;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(120, 113, 108, 0.08);
}

.ops-notification-dot--red {
  background: #dc2626;
}

.ops-notification-dot--amber {
  background: #d97706;
}

.ops-notification-dot--blue {
  background: #0284c7;
}

.ops-notification-message {
  display: -webkit-box;
  margin-top: 0.25rem;
  overflow: hidden;
  color: #57534e;
  font-size: 0.75rem;
  line-height: 1.25rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 1024px) {
  .ops-shell {
    height: 100vh;
    overflow: hidden;
    padding-left: 18rem;
  }

  .ops-shell-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: 18rem;
    height: 100vh;
    overflow-y: auto;
  }

  .ops-shell-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
  }

  .ops-shell-header {
    flex: 0 0 auto;
  }

  .ops-shell-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .ops-shell-drawer-toggle {
    display: none;
  }

  .ops-shell-drawer {
    display: none !important;
  }
}

.ops-panel {
  border: 1px solid var(--ops-border);
  border-radius: 1.75rem;
  background: var(--ops-panel);
  box-shadow: var(--ops-shadow);
}

.ops-table th {
  padding: 0.9rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #78716c;
  text-align: left;
  border-bottom: 1px solid #e7e5e4;
}

.ops-table td {
  padding: 1rem;
  vertical-align: top;
  border-bottom: 1px solid #f1efeb;
}

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

.ops-contained-panel {
  max-height: 42rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ops-contained-panel--compact {
  max-height: 24rem;
}

.ops-contained-panel--cards {
  max-height: 34rem;
}

.ops-contained-panel--timeline {
  max-height: 36rem;
}

.ops-contained-panel--json {
  max-height: 36rem;
}

body.ops-modal-open {
  overflow: hidden;
}

.ops-report-modal {
  overflow-y: auto;
  padding: clamp(0.75rem, 2vw, 2rem);
}

.ops-report-modal-shell {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ops-report-modal-panel {
  width: min(100%, 84rem);
  max-height: min(92vh, 64rem);
  display: flex;
  flex-direction: column;
}

.ops-report-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ops-report-modal-body::-webkit-scrollbar {
  width: 0.8rem;
}

.ops-report-modal-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(120, 113, 108, 0.35);
}

.ops-report-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 640px) {
  .ops-report-modal {
    padding: 0;
  }

  .ops-report-modal-shell {
    align-items: stretch;
  }

  .ops-report-modal-panel {
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

.ops-contained-panel--table {
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
}

.ops-contained-panel--table .ops-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 252, 246, 0.98);
  backdrop-filter: blur(10px);
}

.ops-contained-panel::-webkit-scrollbar {
  width: 0.8rem;
  height: 0.8rem;
}

.ops-contained-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 252, 246, 0.9);
  border-radius: 999px;
  background: rgba(120, 113, 108, 0.35);
}

.ops-contained-panel::-webkit-scrollbar-track {
  background: transparent;
}

.ops-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #57534e;
}

.ops-form input,
.ops-form select,
.ops-form textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #d6d3d1;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.85rem 1rem;
  color: #1c1917;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.ops-form textarea {
  min-height: 8.2rem;
  resize: vertical;
  font-family: var(--ops-mono);
  font-size: 0.88rem;
  line-height: 1.65;
}

.ops-form input:focus,
.ops-form select:focus,
.ops-form textarea:focus {
  border-color: #0f766e;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.ops-field-error {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: #b91c1c;
}

.ops-primary-button,
.ops-secondary-button,
.ops-link-button,
.ops-dropdown-link,
.ops-tab-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  transition: 160ms ease;
}

.ops-primary-button {
  background: #0f766e;
  color: white;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 18px 35px -22px rgba(15, 118, 110, 0.65);
}

.ops-primary-button:hover {
  background: #115e59;
}

.ops-secondary-button,
.ops-link-button,
.ops-tab-button {
  border: 1px solid #d6d3d1;
  background: rgba(255, 255, 255, 0.94);
  color: #44403c;
  padding: 0.75rem 1.1rem;
}

.ops-secondary-button:hover,
.ops-link-button:hover,
.ops-tab-button:hover {
  border-color: #cbd5d1;
  background: rgba(240, 253, 250, 0.9);
  color: #134e4a;
}

.ops-primary-button:disabled,
.ops-secondary-button:disabled,
.ops-link-button:disabled,
.ops-tab-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.ops-tab-button.is-active {
  border-color: #99f6e4;
  background: #ccfbf1;
  color: #134e4a;
}

.ops-dropdown-link {
  width: 100%;
  justify-content: flex-start;
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
}

.ops-tone-teal {
  background: #ccfbf1;
  color: #115e59;
}

.ops-tone-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.ops-tone-amber {
  background: #fef3c7;
  color: #b45309;
}

.ops-tone-red {
  background: #fee2e2;
  color: #b91c1c;
}

.ops-tone-emerald {
  background: #dcfce7;
  color: #15803d;
}

.ops-tone-slate {
  background: #e7e5e4;
  color: #44403c;
}
