:root {
  --shadow-claw-font-mono: "Fira Code", "Courier New", monospace;
  --shadow-claw-font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-claw-accent-hover: #1e293b;
  --shadow-claw-accent-primary: #334155;
  --shadow-claw-bg-primary-reverse: #0f172a;
  --shadow-claw-bg-primary: #f8fafc;
  --shadow-claw-bg-secondary: #f1f5f9;
  --shadow-claw-bg-tertiary: #e2e8f0;
  --shadow-claw-border-color: #e2e8f0;
  --shadow-claw-error-color: #ba1a1a;
  --shadow-claw-important-color: #ab1515;
  --shadow-claw-link-hover: #1e3a8a;
  --shadow-claw-link: #1e40af;
  --shadow-claw-on-error: #ffffff;
  --shadow-claw-on-primary: #ffffff;
  --shadow-claw-success-color: #059669;
  --shadow-claw-surface-tint: #334155;
  --shadow-claw-text-primary: #0f172a;
  --shadow-claw-text-secondary: #475569;
  --shadow-claw-text-tertiary: #64748b;
  --shadow-claw-warning-color: #d97706;

  --shadow-claw-font-size-lg: 1.5rem;
  --shadow-claw-font-size-md: 1.125rem;
  --shadow-claw-font-size-sm: 0.875rem;

  --shadow-claw-radius-s: 0.5rem;
  --shadow-claw-radius-m: 0.75rem;
  --shadow-claw-radius-l: 1.25rem;
  --shadow-claw-radius-pill: 62.5rem;

  --shadow-claw-shadow-sm:
    0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1),
    0 0.0625rem 0.125rem rgba(0, 0, 0, 0.06);

  --shadow-claw-shadow-md:
    0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1),
    0 0.125rem 0.25rem -0.0625rem rgba(0, 0, 0, 0.06);

  --shadow-claw-shadow-lg:
    0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1),
    0 0.25rem 0.375rem -0.125rem rgba(0, 0, 0, 0.05);

  --shadow-claw-shadow-sm: 0 0.625rem 0.75rem 0 rgba(0, 0, 0, 0.05);
  --shadow-claw-shadow-md: 0 0.625rem 1.875rem 0 rgba(0, 0, 0, 0.08);
  --shadow-claw-shadow-lg: 0 0.625rem 1.875rem 0 rgba(0, 0, 0, 0.1);

  --shadow-claw-ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --shadow-claw-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-claw-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-claw-duration-min: 150ms;
  --shadow-claw-duration-regular: 300ms;

  --shadow-claw-logo-size: 1.5rem;
  --shadow-claw-header-title-font-size: 1.5rem;

  --shadow-claw-icon-accent-dark: #8e1d13;
  --shadow-claw-icon-bg: transparent;
  --shadow-claw-icon-body-segment: #c0392b;
  --shadow-claw-icon-body-shine: #e74c3c;
  --shadow-claw-icon-body: #922b21;
  --shadow-claw-icon-claw-inner: #922b21;
  --shadow-claw-icon-claw-main: #c0392b;
  --shadow-claw-icon-eye-shine: #ffffff;
  --shadow-claw-icon-eye: #171d1e;

  display: contents;
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow-claw-accent-hover: #cbd5e1;
    --shadow-claw-accent-primary: #94a3b8;
    --shadow-claw-on-primary: #0f172a;
    --shadow-claw-surface-tint: #94a3b8;
    --shadow-claw-bg-primary: #0f172a;
    --shadow-claw-bg-primary-reverse: #f8fafc;
    --shadow-claw-bg-secondary: #1e293b;
    --shadow-claw-bg-tertiary: #334155;
    --shadow-claw-border-color: #334155;
    --shadow-claw-error-color: #ffb4ab;
    --shadow-claw-link: #60a5fa;
    --shadow-claw-link-hover: #93c5fd;
    --shadow-claw-on-error: #690005;
    --shadow-claw-success-color: #34d399;
    --shadow-claw-text-primary: #f1f5f9;
    --shadow-claw-text-secondary: #cbd5e1;
    --shadow-claw-text-tertiary: #94a3b8;

    --shadow-claw-shadow-sm: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.3);
    --shadow-claw-shadow-md: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.4);
    --shadow-claw-shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.5);

    --shadow-claw-icon-accent-dark: #ff6b6b;
    --shadow-claw-icon-body-segment: #ff5252;
    --shadow-claw-icon-body-shine: rgba(255, 255, 255, 0.3);
    --shadow-claw-icon-body: #ff1744;
    --shadow-claw-icon-claw-inner: #ff1744;
    --shadow-claw-icon-claw-main: #ff5252;
    --shadow-claw-icon-eye-shine: #171d1e;
    --shadow-claw-icon-eye: #dee3e5;
  }
}

.light-mode {
  --shadow-claw-accent-hover: #1e293b;
  --shadow-claw-accent-primary: #334155;
  --shadow-claw-on-primary: #ffffff;
  --shadow-claw-surface-tint: #334155;
  --shadow-claw-bg-primary: #f8fafc;
  --shadow-claw-bg-primary-reverse: #0f172a;
  --shadow-claw-bg-secondary: #f1f5f9;
  --shadow-claw-bg-tertiary: #e2e8f0;
  --shadow-claw-border-color: #e2e8f0;
  --shadow-claw-error-color: #ba1a1a;
  --shadow-claw-link: #1e40af;
  --shadow-claw-link-hover: #1e3a8a;
  --shadow-claw-on-error: #ffffff;
  --shadow-claw-success-color: #059669;
  --shadow-claw-warning-color: #d97706;
  --shadow-claw-text-primary: #0f172a;
  --shadow-claw-text-secondary: #475569;
  --shadow-claw-text-tertiary: #64748b;
}

.dark-mode {
  --shadow-claw-accent-hover: #cbd5e1;
  --shadow-claw-accent-primary: #94a3b8;
  --shadow-claw-on-primary: #0f172a;
  --shadow-claw-surface-tint: #94a3b8;
  --shadow-claw-bg-primary: #0f172a;
  --shadow-claw-bg-primary-reverse: #f8fafc;
  --shadow-claw-bg-secondary: #1e293b;
  --shadow-claw-bg-tertiary: #334155;
  --shadow-claw-border-color: #334155;
  --shadow-claw-error-color: #ffb4ab;
  --shadow-claw-link: #60a5fa;
  --shadow-claw-link-hover: #93c5fd;
  --shadow-claw-on-error: #690005;
  --shadow-claw-success-color: #34d399;
  --shadow-claw-text-primary: #f1f5f9;
  --shadow-claw-text-secondary: #cbd5e1;
  --shadow-claw-text-tertiary: #94a3b8;

  --shadow-claw-shadow-sm: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.3);
  --shadow-claw-shadow-md: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.4);
  --shadow-claw-shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.5);

  --shadow-claw-icon-accent-dark: #ff6b6b;
  --shadow-claw-icon-bg: transparent;
  --shadow-claw-icon-body-segment: #ff5252;
  --shadow-claw-icon-body-shine: rgba(255, 255, 255, 0.3);
  --shadow-claw-icon-body: #ff1744;
  --shadow-claw-icon-claw-inner: #ff1744;
  --shadow-claw-icon-claw-main: #ff5252;
  --shadow-claw-icon-eye-shine: #171d1e;
  --shadow-claw-icon-eye: #dee3e5;
}

*,
*::before,
*::after {
  font-family: var(--shadow-claw-font-sans);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--shadow-claw-border-color) transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--shadow-claw-border-color) transparent;
}

::-webkit-scrollbar {
  height: 0.5rem;
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--shadow-claw-border-color);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--shadow-claw-text-tertiary);
}

html,
body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;

  background-color: var(--shadow-claw-bg-primary);
  color: var(--shadow-claw-text-primary);
  display: flex;
  flex-direction: column;

  height: 100%;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

shadow-claw {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

shadow-claw:not(:defined) {
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(56, 189, 248, 0.08),
      transparent 40%
    ),
    radial-gradient(circle at 85% 90%, rgba(51, 65, 85, 0.2), transparent 45%),
    var(--shadow-claw-bg-primary);
  color: var(--shadow-claw-text-primary);
  display: grid;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

shadow-claw:not(:defined) .header-title-link,
shadow-claw:not(:defined) .header-actions-logo-link {
  display: none;
}

.boot-shell {
  display: none;
}

shadow-claw:not(:defined) .boot-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

shadow-claw:not(:defined) .boot-shell-header {
  align-items: center;
  backdrop-filter: blur(0.625rem);
  background: color-mix(
    in srgb,
    var(--shadow-claw-bg-secondary) 84%,
    transparent
  );
  border-bottom: 0.0625rem solid var(--shadow-claw-border-color);
  display: flex;
  justify-content: space-between;
  min-height: 4rem;
  padding: 0.875rem 1rem;
}

shadow-claw:not(:defined) .boot-shell-brand {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

shadow-claw:not(:defined) .boot-shell-status {
  color: var(--shadow-claw-text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

shadow-claw:not(:defined) .boot-shell-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

shadow-claw:not(:defined) .boot-shell-sidebar {
  border-right: 0.0625rem solid var(--shadow-claw-border-color);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem 0.75rem;
  width: 15.625rem;
}

shadow-claw:not(:defined) .boot-shell-nav-item {
  border-radius: 0.625rem;
  color: var(--shadow-claw-text-secondary);
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.625rem 0.75rem;
}

shadow-claw:not(:defined) .boot-shell-nav-item-active {
  background-color: var(--shadow-claw-accent-primary);
  color: var(--shadow-claw-on-primary);
}

shadow-claw:not(:defined) .boot-shell-main {
  display: grid;
  flex: 1;
  gap: 0.75rem;
  grid-template-rows: repeat(3, minmax(4.5rem, auto));
  padding: 1rem;
}

shadow-claw:not(:defined) .boot-shell-card {
  animation: boot-shell-pulse 1.2s ease-in-out infinite;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--shadow-claw-bg-secondary) 90%, transparent) 30%,
    color-mix(in srgb, var(--shadow-claw-bg-tertiary) 85%, transparent) 50%,
    color-mix(in srgb, var(--shadow-claw-bg-secondary) 90%, transparent) 70%
  );
  background-size: 200% 100%;
  border: 0.0625rem solid var(--shadow-claw-border-color);
  border-radius: 0.875rem;
  box-shadow: var(--shadow-claw-shadow-sm);
}

@keyframes boot-shell-pulse {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 55.9375rem) {
  shadow-claw:not(:defined) .boot-shell-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
  }

  shadow-claw:not(:defined) .boot-shell-brand {
    font-size: 1.5rem;
  }

  shadow-claw:not(:defined) .boot-shell-body {
    flex-direction: column;
  }

  shadow-claw:not(:defined) .boot-shell-sidebar {
    border-right: none;
    border-bottom: 0.0625rem solid var(--shadow-claw-border-color);
    padding: 0.75rem;
    width: 100%;
  }

  shadow-claw:not(:defined) .boot-shell-main {
    padding: 0.75rem;
  }
}

.header-title-link,
.header-title-link:hover {
  color: var(--shadow-claw-text-primary);
  display: flex;
  text-decoration: none;
}

.header-title-logo {
  display: none;
  height: var(--shadow-claw-logo-size, 1.5rem);
  width: var(--shadow-claw-logo-size, 1.5rem);
}

.header-title {
  align-items: center;
  display: none;
  font-size: var(--shadow-claw-header-title-font-size, 1.5rem);
  margin-left: 0.5rem;
}

@media (min-width: 30rem) {
  .header-title-logo {
    display: flex;
  }

  .header-title {
    display: flex;
  }
}

.header-actions-logo-link {
  align-items: center;
  color: inherit;
  display: flex;
  flex-direction: row;
  height: 2.5rem;
  justify-content: start;
}

.header-actions-logo-link svg {
  height: 1.5rem;
  width: 1.5rem;
}
