:root {
  --sketch-ink-dark: #0f2a3a;
  --sketch-ink: #1c3b4a;
  --sketch-ink-soft: #3a5a6b;
  --sketch-highlight: #9cf2ec;
  --sketch-primary: #3dd1ab;
  --sketch-primary-deep: #2ca68a;
  --sketch-secondary: #4da3ff;
  --sketch-secondary-deep: #2d7cd6;
  --sketch-surface: rgba(245, 250, 255, 0.92);
  --sketch-surface-alt: rgba(230, 243, 247, 0.88);
  --sketch-shadow: rgba(15, 42, 58, 0.12);
  --sketch-shadow-strong: rgba(15, 42, 58, 0.25);
  --sketch-warning: #ffb86c;
  --sketch-danger: #ff6f6f;
  --sketch-success: #46d792;
}

body.sketch-body {
  min-height: 100vh;
  color: var(--sketch-ink);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(206, 240, 255, 0.85) 0%, rgba(232, 252, 237, 0.45) 35%, rgba(241, 248, 255, 0.95) 100%);
  position: relative;
  overflow-x: hidden;
}

body.sketch-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(125deg, rgba(64, 175, 255, 0.12) 0%, rgba(67, 255, 169, 0.16) 30%, rgba(64, 175, 255, 0.08) 60%, rgba(67, 255, 169, 0.14) 100%),
    radial-gradient(circle at 20% 20%, rgba(61, 209, 171, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(77, 163, 255, 0.18) 0%, transparent 52%),
    radial-gradient(circle at 40% 80%, rgba(92, 255, 208, 0.18) 0%, transparent 50%),
    repeating-linear-gradient(120deg, rgba(20, 54, 76, 0.10) 0px, rgba(20, 54, 76, 0.10) 4px, transparent 4px, transparent 12px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  z-index: -1;
}

body.sketch-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" stroke="%231d3f52" stroke-width="1.5" stroke-opacity="0.25" stroke-linecap="round"%3E%3Cpath d="M20 60 l40 -20 l40 20 l40 -20 l40 20"/%3E%3Cpath d="M20 140 l40 -20 l40 20 l40 -20 l40 20"/%3E%3Cpath d="M20 220 l40 -20 l40 20 l40 -20 l40 20"/%3E%3Cpath d="M20 300 l40 -20 l40 20 l40 -20 l40 20"/%3E%3Ccircle cx="260" cy="80" r="16"/%3E%3Ccircle cx="320" cy="120" r="10"/%3E%3Ccircle cx="360" cy="60" r="6"/%3E%3Cpath d="M260 80 L320 120 L360 60"/%3E%3Cpath d="M260 80 L280 160" stroke-dasharray="6 10"/%3E%3Cpath d="M320 120 L300 200" stroke-dasharray="6 10"/%3E%3Cpath d="M280 160 h-60" stroke-dasharray="6 12"/%3E%3C/g%3E%3C/svg%3E');
  background-size: 380px 380px;
  opacity: 0.18;
  z-index: -1;
}

.sketch-background,
.sketch-surface,
body.sketch-body .min-h-screen {
  background: transparent;
}

.sketch-background {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.sketch-card {
  position: relative;
  background: var(--sketch-surface) !important;
  border: 2px solid rgba(23, 74, 91, 0.55) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 45px var(--sketch-shadow), 0 6px 12px rgba(15, 42, 58, 0.12);
  overflow: hidden;
}

.sketch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(28, 59, 74, 0.07) 0px, rgba(28, 59, 74, 0.07) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(45deg, rgba(61, 209, 171, 0.1) 0px, rgba(61, 209, 171, 0.1) 2px, transparent 2px, transparent 14px);
  opacity: 0.45;
  pointer-events: none;
}

.sketch-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(61, 163, 255, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

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

.sketch-heading {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: 0.015em;
  color: var(--sketch-ink-dark);
}

.sketch-subtext {
  font-size: 0.95rem;
  color: rgba(28, 59, 74, 0.65);
  line-height: 1.6;
  max-width: 28rem;
  margin: 0.75rem auto 0;
}

.sketch-brand-mark {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(15, 42, 58, 0.22));
}

.sketch-brand-mark--sm {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(15, 42, 58, 0.2));
}

.sketch-panel {
  position: relative;
  background: var(--sketch-surface);
  border: 2px solid rgba(23, 74, 91, 0.45);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 42, 58, 0.22);
  overflow: hidden;
}

.sketch-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(61, 163, 255, 0.08) 0px, rgba(61, 163, 255, 0.08) 1px, transparent 1px, transparent 14px);
  opacity: 0.35;
  pointer-events: none;
}

.sketch-panel::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(61, 209, 171, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.sketch-panel > * {
  position: relative;
  z-index: 1;
}

body.sketch-body .bg-gray-950,
body.sketch-body .bg-gray-900,
body.sketch-body .bg-gray-800,
body.sketch-body .bg-gray-700 {
  background: var(--sketch-surface-alt) !important;
  border: 2px solid rgba(23, 74, 91, 0.32) !important;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 42, 58, 0.18);
  color: var(--sketch-ink) !important;
}

body.sketch-body .text-white {
  color: var(--sketch-ink-dark) !important;
}

body.sketch-body .text-gray-400 {
  color: rgba(28, 59, 74, 0.65) !important;
}

body.sketch-body .text-gray-300 {
  color: rgba(28, 59, 74, 0.55) !important;
}

.sketch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(30, 90, 110, 0.25);
  background: rgba(240, 248, 252, 0.8);
  color: rgba(28, 59, 74, 0.75);
}

.sketch-badge--success {
  border-color: rgba(61, 209, 171, 0.55);
  background: rgba(61, 209, 171, 0.18);
  color: #045c44;
}

.sketch-badge--neutral {
  border-color: rgba(61, 163, 255, 0.55);
  background: rgba(77, 163, 255, 0.18);
  color: #154063;
}

.sketch-badge--warning {
  border-color: rgba(255, 184, 108, 0.65);
  background: rgba(255, 184, 108, 0.24);
  color: #7a3f0b;
}

.sketch-badge--danger {
  border-color: rgba(255, 111, 111, 0.65);
  background: rgba(255, 111, 111, 0.25);
  color: #6d1f1f;
}

@media (max-width: 640px) {
  .sketch-brand-mark {
    width: 56px;
    height: 56px;
  }

  .sketch-brand-mark--sm {
    width: 36px;
    height: 36px;
  }

  .sketch-panel {
    border-radius: 20px;
    padding: 1.25rem;
  }
}

.sketch-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(145deg, rgba(240, 248, 252, 0.95), rgba(221, 244, 244, 0.9));
  border: 2px solid rgba(30, 90, 110, 0.35);
  border-radius: 14px;
  color: var(--sketch-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 3px 12px rgba(15, 42, 58, 0.08);
}

.sketch-input:focus {
  outline: none;
  border-color: var(--sketch-secondary);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.25);
}

.sketch-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 59, 74, 0.7);
  margin-bottom: 0.55rem;
}

.sketch-textarea {
  resize: vertical;
  min-height: 120px;
}

.sketch-alert {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 2px dashed rgba(124, 39, 39, 0.35);
  background: rgba(255, 215, 215, 0.75);
  color: #7c2727;
  font-weight: 600;
  box-shadow: inset 0 3px 8px rgba(124, 39, 39, 0.12);
}

.sketch-alert--danger {
  border-color: rgba(255, 111, 111, 0.55);
  background: linear-gradient(135deg, rgba(255, 185, 185, 0.85), rgba(255, 230, 230, 0.78));
}

.sketch-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid rgba(6, 39, 64, 0.4);
  color: var(--sketch-ink-dark);
  background: linear-gradient(135deg, rgba(245, 250, 255, 0.9), rgba(221, 244, 244, 0.9));
  box-shadow: 0 10px 22px rgba(18, 47, 65, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sketch-button::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(64, 175, 255, 0.28);
  border-radius: 12px;
  pointer-events: none;
}

.sketch-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 26px rgba(18, 47, 65, 0.24);
}

.sketch-button:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 6px 16px rgba(18, 47, 65, 0.25) inset;
}

.sketch-button--primary {
  background: linear-gradient(140deg, rgba(61, 209, 171, 0.95), rgba(77, 163, 255, 0.92));
  color: #042433;
  border-color: rgba(4, 36, 51, 0.35);
}

.sketch-button--primary::after {
  border-color: rgba(255, 255, 255, 0.35);
}

.sketch-button--secondary {
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.95), rgba(155, 236, 255, 0.85));
}

.sketch-button--success {
  background: linear-gradient(135deg, rgba(70, 215, 146, 0.95), rgba(188, 245, 210, 0.88));
}

.sketch-button--danger {
  background: linear-gradient(135deg, rgba(255, 111, 111, 0.92), rgba(255, 177, 152, 0.85));
  color: #3c0c0c;
  border-color: rgba(124, 39, 39, 0.35);
}

.sketch-button--ghost {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.sketch-link {
  color: var(--sketch-secondary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.sketch-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(61, 209, 171, 0.8), rgba(77, 163, 255, 0.8));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.sketch-link:hover::after {
  transform: scaleX(1);
}

.sketch-nav {
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, rgba(237, 251, 255, 0.92), rgba(204, 239, 248, 0.95));
  border-bottom: 3px solid rgba(23, 74, 91, 0.45);
  box-shadow: 0 18px 38px rgba(15, 42, 58, 0.18);
}

.sketch-toolbar {
  background: linear-gradient(180deg, rgba(237, 251, 255, 0.96), rgba(210, 241, 237, 0.92));
  border-top: 2px solid rgba(23, 74, 91, 0.35);
  border-bottom: 2px solid rgba(23, 74, 91, 0.28);
  box-shadow: 0 12px 28px rgba(15, 42, 58, 0.18);
  backdrop-filter: blur(6px);
}

.sketch-toolbar--footer {
  border-radius: 28px 28px 0 0;
}

.sketch-toolbar--header {
  border-radius: 0 0 28px 28px;
}

.sketch-admin {
  align-items: flex-start;
}

.sketch-admin-shell {
  position: relative;
  background: var(--sketch-surface) !important;
  border: 2px solid rgba(18, 71, 99, 0.45) !important;
  border-radius: 32px;
  box-shadow: 0 28px 64px rgba(7, 30, 44, 0.28);
  overflow: hidden;
}

.sketch-admin-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(61, 163, 255, 0.28);
  border-radius: 26px;
  pointer-events: none;
}

.sketch-admin-shell > * {
  position: relative;
  z-index: 1;
}

.sketch-nav .text-gray-300,
.sketch-nav .text-white {
  color: var(--sketch-ink-soft) !important;
}

.sketch-icon-button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 18px;
  border: 2px solid rgba(23, 74, 91, 0.35);
  background: linear-gradient(140deg, rgba(245, 250, 255, 0.95), rgba(210, 241, 243, 0.88));
  color: var(--sketch-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(15, 42, 58, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sketch-icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 42, 58, 0.28);
}

.sketch-icon-button i {
  font-size: 1.1rem;
}

.sketch-control {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 2px solid rgba(23, 74, 91, 0.35);
  background: linear-gradient(140deg, rgba(245, 250, 255, 0.92), rgba(211, 241, 236, 0.88));
  box-shadow: 0 10px 22px rgba(18, 47, 65, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.sketch-control::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(61, 163, 255, 0.3);
  pointer-events: none;
}

.sketch-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 47, 65, 0.24);
}

.sketch-control--danger {
  background: linear-gradient(140deg, rgba(255, 190, 190, 0.95), rgba(255, 230, 230, 0.88));
  border-color: rgba(124, 39, 39, 0.45);
  color: #7c2727;
}

.sketch-control--primary {
  background: linear-gradient(140deg, rgba(61, 209, 171, 0.95), rgba(77, 163, 255, 0.92));
  color: #042433;
}

.sketch-control--neutral {
  background: linear-gradient(140deg, rgba(236, 244, 247, 0.94), rgba(213, 237, 242, 0.9));
  color: var(--sketch-ink);
}

.sketch-control--muted {
  background: linear-gradient(140deg, rgba(230, 240, 245, 0.92), rgba(204, 229, 236, 0.88));
  color: var(--sketch-ink);
}

.sketch-control--active {
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.28);
}

.sketch-video-tile {
  position: relative;
  border-radius: 22px;
  border: 2px solid rgba(23, 74, 91, 0.35);
  background: linear-gradient(160deg, rgba(7, 30, 44, 0.88), rgba(26, 82, 92, 0.75));
  box-shadow: 0 18px 38px rgba(7, 30, 44, 0.45);
  overflow: hidden;
}

.sketch-video-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(125deg, rgba(61, 163, 255, 0.14) 0px, rgba(61, 163, 255, 0.14) 1px, transparent 1px, transparent 12px);
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

.sketch-video-off {
  background: linear-gradient(160deg, rgba(20, 54, 76, 0.85), rgba(15, 42, 58, 0.9));
  backdrop-filter: blur(2px);
}

.sketch-admin .bg-gray-950,
.sketch-admin .bg-gray-900,
.sketch-admin .bg-gray-800,
.sketch-admin .bg-gray-700 {
  background: var(--sketch-surface-alt) !important;
  border: 2px solid rgba(18, 71, 99, 0.28) !important;
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(7, 30, 44, 0.18);
  position: relative;
  overflow: hidden;
}

.sketch-admin .bg-gray-950::before,
.sketch-admin .bg-gray-900::before,
.sketch-admin .bg-gray-800::before,
.sketch-admin .bg-gray-700::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(61, 163, 255, 0.22);
  border-radius: 18px;
  pointer-events: none;
}

.sketch-admin .text-gray-400 {
  color: rgba(28, 59, 74, 0.65) !important;
}

.sketch-admin .text-gray-500 {
  color: rgba(28, 59, 74, 0.55) !important;
}

.sketch-admin .text-white {
  color: var(--sketch-ink-dark) !important;
}

.sketch-admin .border-gray-800,
.sketch-admin .border-gray-700 {
  border-color: rgba(18, 71, 99, 0.35) !important;
}

.sketch-admin .divide-gray-700 > :not([hidden]) ~ :not([hidden]),
.sketch-admin .divide-gray-800 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(18, 71, 99, 0.18) !important;
}

.sketch-admin input:not([type='checkbox']):not([type='radio']),
.sketch-admin select,
.sketch-admin textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(145deg, rgba(240, 248, 252, 0.95), rgba(222, 244, 244, 0.9));
  border: 2px solid rgba(30, 90, 110, 0.35);
  border-radius: 14px;
  color: var(--sketch-ink);
  box-shadow: inset 0 3px 12px rgba(15, 42, 58, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sketch-admin input:not([type='checkbox']):not([type='radio']):focus,
.sketch-admin select:focus,
.sketch-admin textarea:focus {
  outline: none;
  border-color: var(--sketch-secondary);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.25);
}

.sketch-admin button:not(.sketch-icon-button) {
  position: relative;
  border-radius: 16px;
  border: 2px solid rgba(18, 71, 99, 0.28);
  background: linear-gradient(135deg, rgba(245, 250, 255, 0.95), rgba(220, 243, 245, 0.9));
  color: var(--sketch-ink-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.1rem;
  box-shadow: 0 12px 26px rgba(15, 42, 58, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.sketch-admin button:not(.sketch-icon-button)::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(61, 163, 255, 0.25);
  border-radius: 12px;
  pointer-events: none;
}

.sketch-admin button:not(.sketch-icon-button):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 42, 58, 0.24);
}

.sketch-admin .bg-blue-600 {
  background: linear-gradient(140deg, rgba(77, 163, 255, 0.95), rgba(155, 236, 255, 0.85)) !important;
  color: #042433 !important;
}

.sketch-admin .bg-purple-600 {
  background: linear-gradient(140deg, rgba(122, 153, 255, 0.95), rgba(195, 210, 255, 0.9)) !important;
  color: #18234a !important;
}

.sketch-admin .bg-green-600 {
  background: linear-gradient(140deg, rgba(70, 215, 146, 0.95), rgba(188, 245, 210, 0.9)) !important;
  color: #0f3c29 !important;
}

.sketch-admin .bg-red-600 {
  background: linear-gradient(140deg, rgba(255, 111, 111, 0.92), rgba(255, 177, 152, 0.88)) !important;
  color: #4a1414 !important;
}

.sketch-admin .bg-yellow-800 {
  background: linear-gradient(140deg, rgba(255, 203, 134, 0.95), rgba(255, 228, 193, 0.9)) !important;
  color: #5c3b12 !important;
}

.sketch-admin table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
}

.sketch-admin thead {
  background: linear-gradient(135deg, rgba(204, 239, 248, 0.95), rgba(245, 250, 255, 0.88));
  color: var(--sketch-ink-dark);
}

.sketch-admin tbody tr {
  background: var(--sketch-surface) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sketch-admin tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 42, 58, 0.16);
}

.sketch-admin tbody tr + tr {
  border-top: 1px dashed rgba(18, 71, 99, 0.18);
}

.sketch-admin .bg-red-900 {
  background: linear-gradient(135deg, rgba(255, 185, 185, 0.85), rgba(255, 224, 224, 0.8)) !important;
  border: 2px dashed rgba(124, 39, 39, 0.4) !important;
  color: #7c2727 !important;
}

.sketch-status,
.sketch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(77, 163, 255, 0.18);
  color: var(--sketch-ink-dark);
  border: 1.5px solid rgba(18, 71, 99, 0.35);
  box-shadow: inset 0 -2px 6px rgba(18, 71, 99, 0.18);
}

.sketch-badge--success {
  background: rgba(61, 209, 171, 0.2);
  border-color: rgba(56, 173, 135, 0.45);
  color: #0f3c29;
}

.sketch-badge--neutral {
  background: rgba(77, 163, 255, 0.16);
  border-color: rgba(45, 124, 214, 0.35);
}

.sketch-overlay {
  background: linear-gradient(135deg, rgba(15, 42, 58, 0.55), rgba(12, 60, 84, 0.45));
  backdrop-filter: blur(8px);
}

.sketch-modal {
  position: relative;
  background: var(--sketch-surface-alt) !important;
  border: 2px solid rgba(23, 74, 91, 0.45) !important;
  border-radius: 22px;
  box-shadow: 0 24px 52px rgba(15, 42, 58, 0.25);
  overflow: hidden;
}

.sketch-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(125deg, rgba(61, 163, 255, 0.08) 0px, rgba(61, 163, 255, 0.08) 1px, transparent 1px, transparent 12px);
  opacity: 0.4;
  pointer-events: none;
}

.sketch-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 71, 99, 0.3), transparent);
  margin: 1rem 0;
}

.sketch-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
}

.sketch-table thead tr {
  background: linear-gradient(135deg, rgba(204, 239, 248, 0.95), rgba(245, 250, 255, 0.88));
  color: var(--sketch-ink-dark);
}

.sketch-table tbody tr {
  background: var(--sketch-surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sketch-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18, 47, 65, 0.16);
}

.sketch-chart-card {
  position: relative;
  border-radius: 22px;
  background: var(--sketch-surface);
  border: 2px solid rgba(30, 90, 110, 0.35);
  box-shadow: 0 18px 42px rgba(12, 44, 58, 0.16);
  overflow: hidden;
}

.sketch-chart-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(61, 163, 255, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.sketch-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 90, 110, 0.5) rgba(240, 248, 252, 0.4);
}

.sketch-scroll-area::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.sketch-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(160deg, rgba(77, 163, 255, 0.8), rgba(61, 209, 171, 0.75));
  border-radius: 999px;
}

.sketch-scroll-area::-webkit-scrollbar-track {
  background: rgba(217, 239, 246, 0.55);
}

.sketch-shadow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 14px;
  background: rgba(245, 250, 255, 0.65);
  border: 1px solid rgba(18, 71, 99, 0.25);
  box-shadow: inset 0 1px 4px rgba(18, 47, 65, 0.12);
}

.sketch-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 42, 58, 0.65);
}

.sketch-divider-dense {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(61, 163, 255, 0.35), rgba(61, 163, 255, 0.35) 4px, transparent 4px, transparent 10px);
  margin: 1.5rem 0;
}

.sketch-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(120deg, rgba(61, 163, 255, 0.95), rgba(61, 209, 171, 0.95));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sketch-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sketch-chip {
  padding: 0.4rem 0.9rem;
  background: rgba(61, 209, 171, 0.14);
  border: 1px solid rgba(56, 173, 135, 0.38);
  border-radius: 14px;
  font-size: 0.85rem;
  color: #0f3c29;
  box-shadow: inset 0 3px 6px rgba(56, 173, 135, 0.12);
}

.sketch-metric {
  display: grid;
  gap: 0.35rem;
  color: var(--sketch-ink);
}

.sketch-metric .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(28, 59, 74, 0.65);
}

.sketch-metric .value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--sketch-ink-dark);
}

.sketch-empty-state {
  background: var(--sketch-surface-alt) !important;
  border: 2px dashed rgba(28, 59, 74, 0.28);
  border-radius: 20px;
  padding: 3rem 2rem;
  color: rgba(28, 59, 74, 0.65);
  box-shadow: inset 0 0 18px rgba(28, 59, 74, 0.12);
}

.sketch-toast {
  background: var(--sketch-surface);
  border: 2px solid rgba(61, 163, 255, 0.32);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 36px rgba(15, 42, 58, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sketch-toast--success {
  border-color: rgba(70, 215, 146, 0.45);
  background: linear-gradient(135deg, rgba(222, 247, 236, 0.95), rgba(188, 245, 210, 0.85));
  color: #0f3c29;
}

.sketch-toast--error {
  border-color: rgba(255, 111, 111, 0.55);
  background: linear-gradient(135deg, rgba(255, 215, 215, 0.9), rgba(255, 230, 230, 0.85));
  color: #641b1b;
}

.sketch-toast--warning {
  border-color: rgba(255, 184, 108, 0.6);
  background: linear-gradient(135deg, rgba(255, 236, 205, 0.9), rgba(255, 223, 178, 0.85));
  color: #7a3f0b;
}

.sketch-toast--info {
  border-color: rgba(77, 163, 255, 0.55);
  background: linear-gradient(135deg, rgba(213, 236, 255, 0.9), rgba(190, 226, 255, 0.85));
  color: #154063;
}

.sketch-toast__close {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sketch-warning-banner {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  border: 2px dashed rgba(255, 184, 108, 0.55);
  background: linear-gradient(135deg, rgba(255, 240, 214, 0.95), rgba(255, 224, 184, 0.88));
  color: #7a3f0b;
  box-shadow: inset 0 3px 12px rgba(122, 63, 11, 0.15);
}

@media (max-width: 768px) {
  .sketch-background {
    padding: 2.5rem 1rem;
  }

  .sketch-card {
    border-radius: 18px !important;
  }

  .sketch-button {
    border-radius: 14px;
    padding: 0.6rem 1rem;
  }
}
