body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

body.bg-slate-50,
body.bg-slate-100 {
    background:
        radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.10), transparent 32rem),
        linear-gradient(180deg, #f6fafb 0%, #f7f8fb 42%, #f8fafc 100%);
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card.overflow-hidden,
.table-shell {
    overflow: auto;
}

.card::-webkit-scrollbar,
.table-shell::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.card::-webkit-scrollbar-track,
.table-shell::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.card::-webkit-scrollbar-thumb,
.table-shell::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border: 2px solid #eef2f7;
    border-radius: 999px;
}

.card.overflow-hidden table,
.table-shell table {
    min-width: 980px;
}

.card table {
    border-collapse: separate;
    border-spacing: 0;
}

.card thead {
    background: #f8fafc;
    color: #475569;
}

.card thead th {
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.card tbody tr {
    background: #fff;
    transition: background 0.15s, box-shadow 0.15s;
}

.card tbody tr:hover {
    background: #f9fbfc;
}

.card tbody td {
    border-bottom: 1px solid #edf0f4;
    color: #111827;
    vertical-align: middle;
}

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

.input, .select {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #dbe2ea;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.625rem 0.875rem;
    outline: none;
    color: #111827;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.input:focus, .select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.5rem;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #14a99a;
    color: #fff;
    box-shadow: 0 8px 16px rgba(20, 169, 154, 0.20);
}

.btn-primary:hover {
    background: #0f9487;
}

.btn-secondary {
    background: #fff;
    border: 1px solid #dbe2ea;
    color: #334155;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
}

main > .mb-6:first-child h2 {
    letter-spacing: 0;
}

main > form.mb-4,
main > section.card.mb-4 {
    border-radius: 0.875rem;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

main > form.mb-4 {
    padding: 1rem;
}

.rounded-full {
    letter-spacing: 0;
}

.table-shell {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.internal-code-table {
    min-width: 1260px;
}

.live-code-table {
    min-width: 1480px;
}

.sticky-check,
.sticky-name,
.sticky-actions {
    position: sticky;
    z-index: 2;
    background: inherit;
}

thead .sticky-check,
thead .sticky-name,
thead .sticky-actions {
    z-index: 4;
    background: #f8fafc;
}

.sticky-check {
    left: 0;
    width: 64px;
}

.sticky-name {
    left: 64px;
    min-width: 160px;
    box-shadow: 8px 0 12px rgba(15, 23, 42, 0.04);
}

.live-code-table .sticky-name {
    left: 0;
    min-width: 190px;
}

.sticky-actions {
    right: 0;
    min-width: 188px;
    box-shadow: -8px 0 12px rgba(15, 23, 42, 0.05);
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
}

.row-action {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.35rem 0.45rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    transition: background .15s, color .15s;
}

.row-action:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.row-action.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.copy-link-btn {
    display: inline-flex;
    min-height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: #eefdfb;
    padding: 0.25rem 0.45rem;
    color: #0f9487;
    font-size: 0.75rem;
    font-weight: 800;
    transition: background .15s, color .15s;
}

.copy-link-btn:hover {
    background: #ccfbf1;
    color: #0f766e;
}
