:root {

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;

    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;

    --radius-sm:   4px;
    --radius:      8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,.10), 0 10px 10px rgba(0,0,0,.04);

    --transition-fast: 100ms ease;
    --transition:      200ms ease;
    --transition-slow: 300ms ease;

    --header-height:            60px;
    --sidebar-width:            220px;
    --sidebar-collapsed-width:  64px;

    --green-50:  #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --color-success:       #16a34a;
    --color-success-light: #dcfce7;
    --color-warning:       #d97706;
    --color-warning-light: #fef3c7;
    --color-danger:        #dc2626;
    --color-danger-light:  #fee2e2;
    --color-info:          #2563eb;
    --color-info-light:    #dbeafe;

    --color-http-get:    #16a34a;
    --color-http-post:   #2563eb;
    --color-http-put:    #d97706;
    --color-http-patch:  #7c3aed;
    --color-http-delete: #dc2626;

}

*, *::before, *::after {

    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

html {

    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;

}

body {

    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;

}

img, svg {

    display: block;
    max-width: 100%;

}

input, button, select, textarea {

    font-family: inherit;
    font-size: inherit;

}

button {

    cursor: pointer;
    border: none;
    background: none;

}

a {

    color: inherit;
    text-decoration: none;

}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {

    font-weight: 600;
    line-height: 1.25;

}

h1 {
    font-size: var(--text-3xl);
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
}

.sr-only {

    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;

}

.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-muted {
    color: var(--gray-500);
}

.text-danger {
    color: var(--color-danger);
}

.text-success {
    color: var(--color-success);
}

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

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.truncate {

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}

.flex {
    display: flex;
}

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

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: var(--sp-1);
}

.gap-2 {
    gap: var(--sp-2);
}

.gap-3 {
    gap: var(--sp-3);
}

.gap-4 {
    gap: var(--sp-4);
}

.w-full {
    width: 100%;
}

.clickable {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.data-disclaimer {

    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-sm);
    color: #991b1b;
    margin-bottom: var(--sp-4);

}

.data-disclaimer-icon {

    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: #dc2626;

}

.create-workspace-modal {

    --role-accent:       #6b7280;
    --role-accent-hover: #4b5563;
    --role-accent-light: #f3f4f6;

}

.create-workspace-modal .icon-upload-area {

    display: flex;
    align-items: center;
    gap: var(--sp-4);

}

.create-workspace-modal .icon-preview {

    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    object-fit: cover;

}
