:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 224 76% 48%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 40%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 74% 42%;
  --destructive-foreground: 0 0% 100%;
  --success: 142 72% 29%;
  --success-foreground: 0 0% 100%;
  --warning: 26 90% 37%;
  --warning-foreground: 0 0% 100%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 85%;
  --ring: var(--primary);
  --radius: 0.5rem;
  --radius-md: calc(var(--radius) - 2px);
  --radius-sm: calc(var(--radius) - 4px);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --focus-ring: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
  --sidebar-width: 16rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.25rem;
  -webkit-font-smoothing: antialiased;
}

body.app {
  background-color: hsl(var(--muted) / 0.4);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dd,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: none;
  cursor: pointer;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

[hidden] {
  display: none !important;
}

[data-lucide],
.lucide {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.sr-only {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.shell-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: none;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right-width: 1px;
  background-color: hsl(var(--background));
}

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

.sidebar-brand {
  display: flex;
  height: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  border-bottom-width: 1px;
  padding: 0 1rem;
}

.brand-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.brand-text {
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.brand-name {
  display: block;
  font-weight: 600;
}

.brand-subtitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.sidebar-section {
  border-bottom-width: 1px;
  padding: 0.75rem;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 0.75rem;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-group-label {
  padding: 0 0.75rem 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.nav-link {
  display: flex;
  height: 2.25rem;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  padding: 0 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition:
    background-color 0.15s,
    color 0.15s;
}

.nav-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.nav-link[aria-current="page"] {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.nav-link[aria-current="page"]:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.nav-link span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-context {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  border-width: 1px;
  padding: 0.625rem 0.75rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 3.5rem;
  align-items: center;
  gap: 0.75rem;
  border-bottom-width: 1px;
  background-color: hsl(var(--background) / 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0 1rem;
}

.topbar-start {
  min-width: 0;
  flex: 1;
}

.topbar-end {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.content {
  margin: 0 auto;
  width: 100%;
  max-width: 72rem;
  padding: 1.5rem 1rem 2.5rem;
}

.breadcrumb {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  color: hsl(var(--muted-foreground));
}

.breadcrumb a {
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: hsl(var(--foreground));
}

.breadcrumb [aria-current="page"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.breadcrumb .lucide,
.breadcrumb [data-lucide],
.badge .lucide,
.badge [data-lucide],
.tip .lucide,
.tip [data-lucide] {
  width: 0.875rem;
  height: 0.875rem;
}

.menu {
  position: relative;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 2.75rem;
  z-index: 40;
  width: 18rem;
  max-width: calc(100vw - 2rem);
  border-width: 1px;
  border-radius: var(--radius);
  background-color: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  padding: 0.25rem;
  box-shadow: var(--shadow-md);
}

.menu-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
}

.menu-separator {
  height: 1px;
  margin: 0.25rem 0;
  background-color: hsl(var(--border));
}

.menu-item {
  display: flex;
  height: 2.25rem;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  padding: 0 0.5rem;
  text-align: left;
  font-weight: 500;
  transition: background-color 0.15s;
}

.menu-item:hover,
.menu-item:focus-visible {
  background-color: hsl(var(--accent));
  box-shadow: none;
}

.menu-item-destructive {
  color: hsl(var(--destructive));
}

.menu-item-destructive:hover,
.menu-item-destructive:focus-visible {
  background-color: hsl(var(--destructive) / 0.1);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 0.5);
}

.drawer-panel {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: 18rem;
  max-width: 85vw;
  flex-direction: column;
  background-color: hsl(var(--background));
  box-shadow: var(--shadow-lg);
}

.mobile-only {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .shell-sidebar {
    display: flex;
  }

  .shell-main {
    padding-left: var(--sidebar-width);
  }

  .topbar {
    padding: 0 1.5rem;
  }

  .content {
    padding: 1.5rem 2rem 2.5rem;
  }

  .mobile-only {
    display: none !important;
  }
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
}

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-description {
  color: hsl(var(--muted-foreground));
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .page-header-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
}

.section-description {
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.tabs {
  display: flex;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.tabs-list {
  display: inline-flex;
  height: 2.5rem;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius);
  background-color: hsl(var(--muted));
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
}

.tab {
  display: inline-flex;
  height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  padding: 0 0.75rem;
  font-weight: 500;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.tab:hover {
  color: hsl(var(--foreground));
}

.tab[aria-current="page"],
.tab[aria-selected="true"] {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-sm);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list:empty {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-width: 1px;
  border-radius: var(--radius-md);
  background-color: hsl(var(--secondary));
  padding: 0.125rem 0.25rem 0.125rem 0.5rem;
  font-weight: 500;
  color: hsl(var(--secondary-foreground));
}

.tag-remove {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: hsl(var(--muted-foreground));
}

.tag-remove:hover {
  background-color: hsl(var(--background));
  color: hsl(var(--destructive));
}

.tag-remove .lucide,
.tag-remove [data-lucide] {
  width: 0.875rem;
  height: 0.875rem;
}

.card {
  border-width: 1px;
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1rem;
}

.card-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.375rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.card-description {
  color: hsl(var(--muted-foreground));
}

.card-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.card > .card-content:first-child {
  padding-top: 1.5rem;
}

.card-flush {
  border-top-width: 1px;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  border-top-width: 1px;
  padding: 1rem 1.5rem;
}

.card-footer-end {
  justify-content: flex-end;
}

.card-danger {
  border-color: hsl(var(--destructive) / 0.4);
}

.card-warning {
  border-color: hsl(var(--warning) / 0.4);
}

@media (min-width: 640px) {
  .card-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.btn {
  display: inline-flex;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-outline {
  border-width: 1px;
  border-color: hsl(var(--input));
  background-color: hsl(var(--background));
}

.btn-outline:hover,
.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.btn-destructive-outline {
  border-width: 1px;
  border-color: hsl(var(--destructive) / 0.4);
  background-color: hsl(var(--background));
  color: hsl(var(--destructive));
}

.btn-destructive-outline:hover {
  background-color: hsl(var(--destructive) / 0.1);
}

.btn-success {
  background-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
}

.btn-icon {
  width: 2.25rem;
  padding: 0;
}

.btn-sm.btn-icon {
  width: 2rem;
}

.btn-block {
  width: 100%;
}

.btn .spinner {
  display: none;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn.is-loading .btn-icon-idle {
  display: none;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration-line: underline;
  text-underline-offset: 4px;
  text-decoration-color: hsl(var(--foreground) / 0.35);
  transition:
    color 0.15s,
    text-decoration-color 0.15s;
}

.link:hover {
  color: hsl(var(--primary));
  text-decoration-color: hsl(var(--primary));
}

.link-muted {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.u {
  text-decoration-line: underline;
  text-underline-offset: 4px;
  text-decoration-color: hsl(var(--primary) / 0.5);
  text-decoration-thickness: 2px;
}

.spinner {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}

.lucide-loader,
.lucide-loader-circle {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  line-height: 1;
}

.label .optional {
  font-weight: 400;
  color: hsl(var(--muted-foreground));
}

.label.required::after {
  content: "*";
  color: hsl(var(--destructive));
}

.input,
.select,
.textarea {
  display: flex;
  width: 100%;
  border-width: 1px;
  border-color: hsl(var(--input));
  border-radius: var(--radius-md);
  background-color: hsl(var(--background));
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.input,
.select {
  height: 2.25rem;
}

.textarea {
  min-height: 4rem;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  background-size: 1rem;
}

.input::placeholder,
.textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  box-shadow: var(--focus-ring);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.input.is-invalid,
.select.is-invalid,
.textarea.is-invalid {
  border-color: hsl(var(--destructive));
}

.input-sm,
.select-sm {
  height: 2rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .input,
  .select,
  .textarea {
    font-size: 0.875rem;
  }
}

.input-icon {
  position: relative;
  width: 100%;
}

.input-icon > .lucide,
.input-icon > [data-lucide] {
  pointer-events: none;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
}

.input-icon > .input {
  padding-left: 2.25rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field .input {
  padding-right: 2.5rem;
}

.password-field .input::-ms-reveal,
.password-field .input::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: hsl(var(--muted-foreground));
  transform: translateY(-50%);
  transition:
    color 0.15s,
    background-color 0.15s;
}

.password-toggle:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.password-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.password-toggle .lucide {
  width: 1rem;
  height: 1rem;
}

.hint {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.field-error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: hsl(var(--destructive));
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .span-12 {
    grid-column: span 12 / span 12;
  }
  .span-8 {
    grid-column: span 8 / span 8;
  }
  .span-6 {
    grid-column: span 6 / span 6;
  }
  .span-4 {
    grid-column: span 4 / span 4;
  }
  .span-3 {
    grid-column: span 3 / span 3;
  }
}

.form-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

@media (min-width: 640px) {
  .form-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.choices {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .choices-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.choices-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  display: flex;
  cursor: pointer;
  align-items: flex-start;
  gap: 0.75rem;
  border-width: 1px;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.choices-inline .choice {
  align-items: center;
  padding: 0.5rem 0.75rem;
}

.choice:hover {
  background-color: hsl(var(--accent) / 0.5);
}

.choice:has(input:checked) {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.choice:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}

.choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.6;
}

.choice input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  accent-color: hsl(var(--primary));
}

.choices-inline .choice input {
  margin-top: 0;
}

.choice input:focus-visible {
  box-shadow: none;
}

.choice-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
}

.choice-title {
  font-weight: 500;
  line-height: 1.25;
}

.choice-description {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.check {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.check input {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: hsl(var(--primary));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  border-width: 1px;
  border-color: transparent;
  border-radius: var(--radius-md);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

.badge-neutral {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-success {
  background-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.badge-warning {
  background-color: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
}

.badge-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.badge-outline {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-width: 1px;
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  padding: 1rem;
}

.alert > .lucide,
.alert > [data-lucide] {
  margin-top: 0.125rem;
}

.alert-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
}

.alert-title {
  font-weight: 500;
  line-height: 1.375;
}

.alert-description {
  color: hsl(var(--muted-foreground));
}

.alert-success {
  border-color: hsl(var(--success) / 0.4);
  background-color: hsl(var(--success) / 0.05);
}

.alert-success > .lucide,
.alert-success .alert-title {
  color: hsl(var(--success));
}

.alert-warning {
  border-color: hsl(var(--warning) / 0.4);
  background-color: hsl(var(--warning) / 0.05);
}

.alert-warning > .lucide,
.alert-warning .alert-title {
  color: hsl(var(--warning));
}

.alert-destructive {
  border-color: hsl(var(--destructive) / 0.4);
  background-color: hsl(var(--destructive) / 0.05);
}

.alert-destructive > .lucide,
.alert-destructive .alert-title {
  color: hsl(var(--destructive));
}

.table-card {
  overflow: hidden;
}

.table-scroll {
  position: relative;
  overflow-x: auto;
}

.table-scroll thead .tip::after {
  top: calc(100% + 0.5rem);
  bottom: auto;
}

.form-lock {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.table {
  font-size: 0.875rem;
}

.table thead {
  border-bottom-width: 1px;
  background-color: hsl(var(--muted) / 0.5);
}

.table th {
  height: 2.5rem;
  white-space: nowrap;
  padding: 0 1rem;
  text-align: left;
  vertical-align: middle;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.table tbody tr + tr {
  border-top-width: 1px;
}

.table tbody tr {
  transition: background-color 0.15s;
}

.table tbody tr:hover {
  background-color: hsl(var(--muted) / 0.4);
}

.table tr[data-href] {
  cursor: pointer;
}

.table tbody + tbody {
  border-top-width: 1px;
}

.table th[scope="colgroup"] {
  background-color: hsl(var(--muted) / 0.3);
  color: hsl(var(--foreground));
}

.table .cell-shrink {
  width: 1%;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .table .cell-optional {
    display: none;
  }
}

.table .cell-end {
  text-align: right;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.empty-icon .lucide,
.empty-icon [data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
}

.empty-title {
  font-weight: 600;
}

.empty-description {
  max-width: 24rem;
  margin: 0.25rem auto 0;
  color: hsl(var(--muted-foreground));
}

.details {
  display: grid;
  gap: 1rem 1.5rem;
}

@media (min-width: 640px) {
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.details > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.25rem;
}

.details dt {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.details dd {
  overflow-wrap: anywhere;
  font-weight: 500;
}

.details .span-all {
  grid-column: 1 / -1;
}

.list {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 1rem;
}

.list > .list-item + .list-item {
  border-top-width: 1px;
}

a.list-item {
  transition: background-color 0.15s;
}

a.list-item:hover {
  background-color: hsl(var(--accent) / 0.5);
}

.list-item-body {
  display: flex;
  min-width: 0;
  flex: 1 1 12rem;
  flex-direction: column;
  gap: 0.25rem;
}

.list-item-title {
  font-weight: 500;
  line-height: 1.375;
}

.list-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.list-item-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.avatar {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--secondary-foreground));
}

.avatar-lg {
  width: 2.5rem;
  height: 2.5rem;
}

.person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.person-text {
  min-width: 0;
}

.person-name,
.person-detail {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-name {
  font-weight: 500;
}

.person-detail {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.icon-tile {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.icon-tile-primary {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.stat-value {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.more {
  border-width: 1px;
  border-radius: var(--radius);
}

.more > summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more > summary .chevron {
  transition: transform 0.2s;
}

.more[open] > summary .chevron {
  transform: rotate(180deg);
}

.more > .more-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top-width: 1px;
  padding: 1rem;
}

.dropzone {
  position: relative;
  display: flex;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px dashed hsl(var(--input));
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.05);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.dropzone:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}

.thumb {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-width: 1px;
  border-radius: var(--radius-md);
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.step-number {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.step[aria-current="step"] {
  color: hsl(var(--foreground));
}

.step[aria-current="step"] .step-number {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.step-done .step-number {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.9375rem;
  top: 2rem;
  bottom: 0;
  width: 1px;
  background-color: hsl(var(--border));
}

.timeline-dot {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.timeline-item-error .timeline-dot {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

.timeline-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: 0.375rem;
}

.shots {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shot {
  display: block;
  overflow: hidden;
  border-width: 1px;
  border-radius: var(--radius);
  transition: box-shadow 0.15s;
}

.shot:hover {
  box-shadow: var(--shadow-md);
}

.tip {
  position: relative;
  display: inline-flex;
  cursor: help;
  color: hsl(var(--muted-foreground));
}

.tip::after {
  content: attr(data-tip);
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  z-index: 40;
  width: max-content;
  max-width: 16rem;
  transform: translateX(-50%);
  border-radius: var(--radius-md);
  background-color: hsl(var(--foreground));
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  color: hsl(var(--background));
  pointer-events: none;
  animation: toast-in 0.15s ease-out;
}

.tip:hover::after,
.tip:focus-visible::after {
  display: block;
}

.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  width: min(92vw, 28rem);
  transform: translateX(-50%);
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-width: 1px;
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}

.toast > .lucide {
  margin-top: 0.125rem;
}

.toast-success > .lucide {
  color: hsl(var(--success));
}

.toast-info > .lucide {
  color: hsl(var(--primary));
}

.toast-error > .lucide {
  color: hsl(var(--destructive));
}

.toast-body {
  min-width: 0;
  flex: 1;
  font-weight: 500;
  line-height: 1.375;
}

.toast-close {
  margin: -0.25rem;
  border-radius: var(--radius-md);
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
}

.toast-close:hover {
  color: hsl(var(--foreground));
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

.auth {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr);
}

.auth-panel {
  position: relative;
  display: none;
  overflow: hidden;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 2.5rem;
}

.auth-panel::before,
.auth-panel::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.auth-panel::before {
  right: -6rem;
  top: -6rem;
  width: 24rem;
  height: 24rem;
  background-color: rgb(255 255 255 / 0.1);
}

.auth-panel::after {
  bottom: -8rem;
  left: -5rem;
  width: 20rem;
  height: 20rem;
  background-color: rgb(0 0 0 / 0.1);
}

.auth-panel > * {
  position: relative;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-brand-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: rgb(255 255 255 / 0.15);
}

.auth-brand-mark .lucide {
  width: 1.25rem;
  height: 1.25rem;
}

.auth-caption {
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

.auth-pitch {
  display: flex;
  max-width: 28rem;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.auth-title .u {
  text-decoration-color: rgb(255 255 255 / 0.6);
}

.auth-lead {
  opacity: 0.85;
}

.auth-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.auth-highlight-icon {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: rgb(255 255 255 / 0.15);
}

.auth-highlight-icon .lucide {
  width: 0.875rem;
  height: 0.875rem;
}

.auth-highlights span:last-child {
  opacity: 0.9;
}

.auth-footnote {
  font-size: 0.75rem;
  line-height: 1rem;
  opacity: 0.7;
}

.auth-main {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--background));
  padding: 2.5rem 1rem;
}

.auth-box {
  width: 100%;
  max-width: 24rem;
}

.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth-mobile-brand .brand-mark {
  width: 2.5rem;
  height: 2.5rem;
}

.auth-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .auth-main {
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .auth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .auth-mobile-brand {
    display: none;
  }
}

.stack,
.stack-sm,
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stack-sm {
  gap: 0.5rem;
}
.stack-lg {
  gap: 1.5rem;
}
.row,
.row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.row-between {
  justify-content: space-between;
  gap: 0.75rem;
}
.grow {
  min-width: 0;
  flex: 1;
}
.grid {
  display: grid;
  gap: 1rem;
}
.layout-side {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .layout-side {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

@media (min-width: 1280px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.muted {
  color: hsl(var(--muted-foreground));
}
.caption,
.small {
  font-size: 0.75rem;
  line-height: 1rem;
}
.caption {
  color: hsl(var(--muted-foreground));
}
.strong {
  font-weight: 500;
}
.nums {
  font-variant-numeric: tabular-nums;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.break {
  overflow-wrap: anywhere;
}
.text-success {
  color: hsl(var(--success));
}
.text-warning {
  color: hsl(var(--warning));
}
.text-destructive {
  color: hsl(var(--destructive));
}
.text-primary {
  color: hsl(var(--primary));
}
.divider {
  height: 1px;
  background-color: hsl(var(--border));
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.ml-auto {
  margin-left: auto;
}
.inline-form {
  display: inline;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
