/* shadcn/ui Zinc design tokens */
:root {
    color-scheme: light;
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
}

.dark {
    color-scheme: dark;
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
}

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

body {
    margin: 0;
    min-height: 100vh;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    font-feature-settings: "rlig" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

input,
button,
select {
    font-family: inherit;
}

code,
pre,
.mono {
    font-family: var(--font-mono);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}

.page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.page-description {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 2.25rem;
    padding: 0 0.875rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 0.95rem;
    height: 0.95rem;
}

.btn-sm {
    height: 1.95rem;
    padding: 0 0.65rem;
    font-size: 0.8rem;
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--muted-foreground));
    height: 2rem;
    padding: 0 0.625rem;
    font-size: 0.8125rem;
}

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

.btn:focus-visible,
.input:focus-visible,
.tab-trigger:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn-outline {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    border-color: hsl(var(--input));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

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

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.5rem 0 1.75rem;
}

.search-wrap {
    position: relative;
    flex: 1 1 250px;
    max-width: 380px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.input {
    width: 100%;
    height: 2.25rem;
    padding: 0.375rem 0.75rem 0.375rem 2.25rem;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

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

.toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

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

.tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.85rem;
    padding: 0 0.75rem;
    border: none;
    border-radius: calc(var(--radius) - 3px);
    background: transparent;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.tab-trigger[aria-selected="true"] {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.06);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    width: 1.05rem;
    height: 1.05rem;
    color: hsl(var(--muted-foreground));
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid transparent;
    padding: 0.125rem 0.625rem;
    font-size: 0.725rem;
    font-weight: 600;
    line-height: 1.3;
}

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

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

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.125rem;
    gap: 0.875rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.card:hover {
    border-color: hsl(var(--muted-foreground) / 0.45);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.625rem 0 0.3rem;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    flex-shrink: 0;
}

.card-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.card-title {
    margin: 0;
    font-size: 0.975rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-description {
    margin: 0;
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.cmd-pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.725rem;
    padding: 0.2rem 0.5rem;
    border-radius: calc(var(--radius) - 3px);
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    border: 1px dashed hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    text-align: center;
}

.empty-state svg {
    width: 1.5rem;
    height: 1.5rem;
}

.hidden {
    display: none;
}

.page-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 150ms ease;
}

.footer-link svg {
    width: 0.875rem;
    height: 0.875rem;
}

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

.footer-link:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
    border-radius: 4px;
}
