/* ─── LiveContacts Design System ─────────────────────────────────────────── */
/* Light and dark product UI inspired by the LiveContacts identity mark. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Custom Properties ──────────────────────────────────────────────── */
:root {
    color-scheme: dark;

    /* Core palette */
    --bg-primary: hsl(224, 46%, 7%);
    --bg-secondary: hsl(222, 42%, 10%);
    --bg-tertiary: hsl(220, 38%, 13%);
    --bg-elevated: hsl(218, 34%, 17%);
    --bg-hover: hsl(216, 32%, 20%);
    --bg-page-glow-a: hsla(187, 92%, 48%, 0.18);
    --bg-page-glow-b: hsla(216, 92%, 50%, 0.14);

    /* Glass */
    --glass-bg: hsla(220, 38%, 13%, 0.74);
    --glass-border: hsla(190, 80%, 72%, 0.16);
    --glass-blur: 18px;

    /* Accent */
    --accent-primary: hsl(214, 88%, 51%);
    --accent-primary-dim: hsla(214, 88%, 51%, 0.15);
    --accent-secondary: hsl(176, 76%, 49%);
    --accent-secondary-dim: hsla(176, 76%, 49%, 0.15);
    --accent-deep: hsl(222, 78%, 28%);
    --accent-gradient: linear-gradient(135deg, hsl(214, 90%, 48%), hsl(183, 82%, 49%));
    --accent-gradient-hover: linear-gradient(135deg, hsl(211, 92%, 56%), hsl(176, 80%, 55%));
    --hero-gradient: radial-gradient(circle at 20% 10%, hsla(178, 86%, 54%, 0.22), transparent 34%),
        linear-gradient(135deg, hsla(215, 84%, 38%, 0.48), hsla(222, 50%, 14%, 0.82));

    /* Text */
    --text-primary: hsl(210, 36%, 96%);
    --text-secondary: hsl(214, 22%, 72%);
    --text-tertiary: hsl(216, 15%, 52%);
    --text-accent: hsl(184, 84%, 63%);

    /* Status */
    --success: hsl(154, 68%, 49%);
    --success-dim: hsla(154, 68%, 49%, 0.15);
    --warning: hsl(38, 95%, 58%);
    --warning-dim: hsla(38, 95%, 58%, 0.15);
    --error: hsl(356, 78%, 62%);
    --error-dim: hsla(356, 78%, 62%, 0.15);
    --info: hsl(204, 92%, 57%);
    --info-dim: hsla(204, 92%, 57%, 0.15);

    /* Borders & Shadows */
    --border: hsla(204, 42%, 76%, 0.14);
    --border-focus: hsl(185, 78%, 50%);
    --shadow-sm: 0 8px 20px hsla(222, 64%, 4%, 0.22);
    --shadow-md: 0 18px 36px hsla(222, 64%, 4%, 0.28);
    --shadow-lg: 0 24px 60px hsla(222, 64%, 4%, 0.4);
    --shadow-glow: 0 0 28px hsla(185, 86%, 54%, 0.26);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 0px;
    --radius-sm: 8px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Timing */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;
    --duration-slow: 400ms;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-primary: hsl(204, 38%, 97%);
    --bg-secondary: hsla(0, 0%, 100%, 0.88);
    --bg-tertiary: hsl(203, 54%, 95%);
    --bg-elevated: hsl(0, 0%, 100%);
    --bg-hover: hsl(201, 64%, 92%);
    --bg-page-glow-a: hsla(181, 78%, 50%, 0.2);
    --bg-page-glow-b: hsla(215, 86%, 52%, 0.16);
    --glass-bg: hsla(0, 0%, 100%, 0.72);
    --glass-border: hsla(209, 72%, 43%, 0.16);
    --accent-primary: hsl(214, 86%, 44%);
    --accent-primary-dim: hsla(214, 86%, 44%, 0.11);
    --accent-secondary: hsl(177, 72%, 42%);
    --accent-secondary-dim: hsla(177, 72%, 42%, 0.12);
    --accent-deep: hsl(221, 72%, 28%);
    --hero-gradient: radial-gradient(circle at 20% 10%, hsla(178, 82%, 50%, 0.25), transparent 36%),
        linear-gradient(135deg, hsla(204, 100%, 99%, 0.92), hsla(209, 75%, 92%, 0.86));
    --text-primary: hsl(219, 45%, 15%);
    --text-secondary: hsl(217, 18%, 43%);
    --text-tertiary: hsl(214, 12%, 58%);
    --text-accent: hsl(214, 86%, 44%);
    --border: hsla(213, 36%, 46%, 0.18);
    --shadow-sm: 0 8px 18px hsla(216, 48%, 42%, 0.1);
    --shadow-md: 0 16px 36px hsla(216, 48%, 42%, 0.14);
    --shadow-lg: 0 24px 60px hsla(216, 48%, 42%, 0.18);
    --shadow-glow: 0 0 28px hsla(185, 86%, 45%, 0.22);
}

/* ─── Global Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at 24% -10%, var(--bg-page-glow-a), transparent 28%),
        radial-gradient(circle at 96% 8%, var(--bg-page-glow-b), transparent 30%),
        linear-gradient(135deg, var(--bg-primary), var(--bg-primary));
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(115deg, transparent 0 46%, hsla(190, 36%, 78%, 0.06) 46.2% 46.5%, transparent 46.7%),
        linear-gradient(25deg, transparent 0 58%, hsla(190, 36%, 78%, 0.05) 58.2% 58.5%, transparent 58.7%);
    background-size: 340px 260px, 420px 320px;
    opacity: 0.75;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: hsla(228, 20%, 35%, 0.5);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsla(228, 20%, 45%, 0.7);
}

/* ─── App Layout ─────────────────────────────────────────────────────────── */
#app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: transform var(--duration-slow) var(--ease);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 40%, var(--bg-elevated) 0 16%, transparent 17%),
        radial-gradient(circle at 50% 39%, var(--accent-primary) 0 24%, transparent 25%),
        conic-gradient(from 206deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary), transparent 78%);
    position: relative;
    box-shadow: var(--shadow-glow);
}

.sidebar-logo .logo-icon::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 15px;
    border: 6px solid var(--accent-secondary);
    border-top: 0;
    border-radius: 0 0 18px 18px;
}

.sidebar-logo .logo-icon::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 9px;
    right: -8px;
    bottom: 10px;
    background: var(--accent-gradient);
    border-radius: 999px;
    transform: rotate(-38deg);
    box-shadow: 15px -12px 0 -2px var(--accent-primary);
}

.sidebar-logo h1 {
    font-size: 1.34rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
}

.sidebar-logo .version {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 400;
    display: block;
    -webkit-text-fill-color: var(--text-tertiary);
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    padding: 8px 12px 4px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--duration) var(--ease);
    position: relative;
    user-select: none;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent-primary-dim), var(--accent-secondary-dim));
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--glass-border);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 0 2px 2px 0;
}

.nav-item .icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-item .badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}

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

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

.badge-info {
    background: var(--info-dim);
    color: var(--info);
}

/* Sidebar footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--error);
    transition: background var(--duration) var(--ease);
}

.status-dot.connected {
    background: var(--success);
    box-shadow: 0 0 8px hsla(152, 70%, 50%, 0.5);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 8px hsla(152, 70%, 50%, 0.5); }
    50% { box-shadow: 0 0 16px hsla(152, 70%, 50%, 0.8); }
}

/* ─── Main Content ───────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.page-header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--bg-primary) 76%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.page-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
}

.page-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
}

.theme-toggle:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.theme-toggle-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.78rem;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.card:hover {
    border-color: hsla(185, 80%, 50%, 0.3);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title .icon {
    font-size: 1.1rem;
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--bg-tertiary) 88%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    transition: all var(--duration) var(--ease);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-secondary-dim);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%237a7f9a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-sm), 0 10px 24px hsla(190, 78%, 43%, 0.18);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: hsla(185, 80%, 50%, 0.35);
}

.btn-success {
    background: var(--success);
    color: hsl(152, 70%, 10%);
}

.btn-success:hover {
    background: hsl(152, 70%, 55%);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error-dim);
    color: var(--error);
    border: 1px solid hsla(0, 80%, 62%, 0.3);
}

.btn-danger:hover {
    background: hsla(0, 80%, 62%, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── Toggle / Checkbox ──────────────────────────────────────────────────── */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle {
    position: relative;
    width: 42px;
    height: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all var(--duration) var(--ease);
}

.toggle.active {
    background: var(--accent-primary-dim);
    border-color: var(--accent-primary);
}

.toggle.active::after {
    left: 21px;
    background: var(--accent-primary);
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ─── Radio Group ────────────────────────────────────────────────────────── */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}

.radio-option:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.radio-option.active {
    background: var(--accent-primary-dim);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration) var(--ease);
}

.radio-option.active .radio-dot {
    border-color: var(--accent-primary);
}

.radio-option.active .radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ─── Chips / Tags ───────────────────────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.chip-provider {
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    border-color: hsla(258, 90%, 66%, 0.3);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.chip-provider:hover {
    background: hsla(258, 90%, 66%, 0.25);
}

.chip-provider.active {
    background: var(--accent-primary);
    color: white;
}

.chip-remove {
    cursor: pointer;
    opacity: 0.6;
    font-size: 0.9rem;
}

.chip-remove:hover {
    opacity: 1;
}

/* ─── Column Builder ─────────────────────────────────────────────────────── */
.column-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    cursor: grab;
    opacity: 1;
}

.column-item:hover {
    border-color: var(--accent-primary);
}

.column-item:active {
    cursor: grabbing;
}

.column-item.dragging {
    opacity: 0.4;
    cursor: grabbing;
    border-color: var(--accent-primary);
    transform: scale(0.98);
}

.column-item.drag-over {
    border-color: var(--accent-secondary);
    background: var(--accent-secondary-dim);
    transform: scale(1.02);
    box-shadow: 0 0 0 2px var(--accent-secondary-dim);
}

.column-item .drag-handle {
    color: var(--text-tertiary);
    cursor: grab;
    font-size: 1rem;
    transition: color var(--duration) var(--ease);
}

.column-item:hover .drag-handle {
    color: var(--accent-primary);
}

.column-item.dragging .drag-handle {
    cursor: grabbing;
}

.column-item .col-number {
    width: 28px;
    height: 28px;
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.column-item .col-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.column-item .col-type {
    padding: 4px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    appearance: none;
    font-family: 'Inter', sans-serif;
}

.column-item .col-remove {
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--duration) var(--ease);
}

.column-item .col-remove:hover {
    color: var(--error);
    background: var(--error-dim);
}

.ai-notes-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--accent-secondary-dim);
    border: 1px dashed hsla(176, 80%, 50%, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ─── Progress Bar ───────────────────────────────────────────────────────── */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.5s var(--ease);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.3));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* ─── Stats Grid ─────────────────────────────────────────────────────────── */
.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    min-height: 300px;
    padding: 34px;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--hero-gradient);
    box-shadow: var(--shadow-lg);
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(122deg, transparent 0 46%, hsla(191, 90%, 72%, 0.13) 46.1% 46.35%, transparent 46.5%),
        linear-gradient(26deg, transparent 0 58%, hsla(211, 84%, 64%, 0.12) 58.1% 58.35%, transparent 58.5%);
    background-size: 220px 180px;
    opacity: 0.7;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
    color: var(--text-accent);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
}

.dashboard-hero h3 {
    margin-top: 18px;
    max-width: 680px;
    font-size: 3.4rem;
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 800;
}

.dashboard-hero p {
    max-width: 620px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-visual {
    min-height: 250px;
    display: grid;
    place-items: center;
}

.contact-orbit {
    width: min(310px, 100%);
    aspect-ratio: 1;
    position: relative;
    border-radius: 50%;
}

.orbit {
    position: absolute;
    inset: var(--inset, 18px);
    border: 8px solid transparent;
    border-top-color: var(--accent-secondary);
    border-left-color: var(--accent-primary);
    border-radius: 50%;
    filter: drop-shadow(0 10px 18px hsla(196, 78%, 42%, 0.22));
}

.orbit-a { --inset: 10px; transform: rotate(-28deg); }
.orbit-b { --inset: 48px; transform: rotate(20deg); border-width: 7px; opacity: 0.9; }
.orbit-c { --inset: 88px; transform: rotate(62deg); border-width: 6px; opacity: 0.82; }

.node {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 20px hsla(185, 88%, 52%, 0.36);
}

.node-a { top: 54px; right: 56px; }
.node-b { top: 116px; right: 26px; }
.node-c { top: 124px; left: 42px; }

.person-mark {
    position: absolute;
    left: 50%;
    top: 49%;
    width: 108px;
    height: 108px;
    transform: translate(-50%, -50%);
}

.person-mark::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    width: 38px;
    height: 38px;
    transform: translateX(-50%);
    border: 10px solid var(--accent-secondary);
    border-radius: 50%;
    background: var(--bg-primary);
}

.person-mark::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 2px;
    height: 52px;
    border: 12px solid var(--accent-primary);
    border-top: 0;
    border-radius: 0 0 62px 62px;
}

.growth-arrow {
    position: absolute;
    width: 178px;
    height: 22px;
    right: 7px;
    bottom: 80px;
    border-radius: 999px;
    background: var(--accent-gradient);
    transform: rotate(-42deg);
    box-shadow: var(--shadow-glow);
}

.growth-arrow::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    width: 54px;
    height: 54px;
    border-top: 22px solid var(--accent-primary);
    border-right: 22px solid var(--accent-primary);
    transform: translateY(-50%) rotate(45deg);
}

.hero-metric {
    position: absolute;
    z-index: 2;
    min-width: 120px;
    padding: 12px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--bg-elevated) 76%, transparent);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-metric span {
    display: block;
    color: var(--text-primary);
    font-size: 1.55rem;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: 0;
}

.hero-metric-a { right: 18px; top: 22px; }
.hero-metric-b { left: 12px; bottom: 18px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: color-mix(in srgb, var(--bg-tertiary) 86%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all var(--duration) var(--ease);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    font-weight: 600;
}

/* ─── Log Viewer ─────────────────────────────────────────────────────────── */
.log-viewer {
    background: color-mix(in srgb, var(--bg-primary) 86%, black 14%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.log-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--bg-secondary) 84%, transparent);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.log-toolbar .title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-toolbar .actions {
    display: flex;
    gap: 8px;
}

.log-entries {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    max-height: 400px;
    min-height: 200px;
}

.log-entry {
    display: flex;
    gap: 10px;
    padding: 2px 0;
    animation: fadeIn 0.2s var(--ease);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.log-time {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.log-level {
    width: 60px;
    flex-shrink: 0;
    font-weight: 600;
}

.log-level.INFO { color: var(--info); }
.log-level.SUCCESS { color: var(--success); }
.log-level.WARNING { color: var(--warning); }
.log-level.ERROR { color: var(--error); }
.log-level.DEBUG { color: var(--text-tertiary); }

.log-message {
    color: var(--text-secondary);
    word-break: break-word;
}

/* ─── Data Table ─────────────────────────────────────────────────────────── */
.data-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table th {
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background var(--duration) var(--ease);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table .status-approved {
    color: var(--success);
}

.data-table .status-flagged {
    color: var(--warning);
}

.data-table .status-corrected {
    color: var(--info);
}

/* ─── Sheets Config Panel ────────────────────────────────────────────────── */
.share-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--info-dim);
    border: 1px solid hsla(210, 90%, 60%, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.share-notice .notice-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.share-notice .notice-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.share-notice .email-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-secondary);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    margin-top: 8px;
}

.share-notice .email-copy:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-secondary);
}

/* ─── Provider Selector ──────────────────────────────────────────────────── */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.provider-card {
    padding: 16px;
    background: color-mix(in srgb, var(--bg-tertiary) 86%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-align: center;
}

.provider-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.provider-card.active {
    background: var(--accent-primary-dim);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.provider-card .provider-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.provider-card .provider-model {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
}

.provider-card .provider-status {
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 600;
}

.provider-card .provider-status.available {
    color: var(--success);
}

.provider-card .provider-status.unavailable {
    color: var(--text-tertiary);
}

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    min-width: 300px;
    max-width: 450px;
    animation: slideInRight 0.3s var(--ease);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-tertiary);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ─── Loading Spinner ────────────────────────────────────────────────────── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 100;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .page-body {
        padding: 16px;
    }

    .page-header {
        padding: 16px;
        align-items: flex-start;
        gap: 14px;
    }

    .page-actions {
        flex-shrink: 0;
    }

    .theme-toggle {
        min-width: 42px;
        width: 42px;
        padding: 0;
    }

    .theme-toggle span:last-child {
        display: none;
    }

    .form-row,
    .form-row-3,
    .provider-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Collapsible Sections ───────────────────────────────────────────────── */
.section-collapsible {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: all var(--duration) var(--ease);
}

.section-header:hover {
    border-color: hsla(228, 30%, 50%, 0.3);
}

.section-header.open {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom-color: transparent;
}

.section-header .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.section-chevron {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    transition: transform var(--duration) var(--ease);
}

.section-header.open .section-chevron {
    transform: rotate(180deg);
}

.section-body {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 24px;
    display: none;
    animation: fadeSlideDown 0.25s var(--ease);
}

.section-body.open {
    display: block;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Smart Search Builder ───────────────────────────────────────────────── */
.search-builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.location-chip {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-tertiary) 88%, transparent);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.location-chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.location-chip.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.template-card {
    padding: 14px 16px;
    background: color-mix(in srgb, var(--bg-tertiary) 88%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.template-card:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary-dim);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.template-card .template-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 6px;
}

.search-helper-note {
    margin-top: 12px;
    color: var(--text-tertiary);
    font-size: 0.78rem;
    line-height: 1.5;
}

.mode-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--border);
}

.mode-tab {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    color: var(--text-secondary);
}

.mode-tab:hover {
    color: var(--text-primary);
}

.mode-tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* ─── Sticky Action Bar ──────────────────────────────────────────────────── */
.sticky-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -32px -24px;
    padding: 16px 32px;
}

/* ─── Job Cards ──────────────────────────────────────────────────────────── */
.job-card {
    padding: 16px 20px;
    background: color-mix(in srgb, var(--bg-tertiary) 86%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all var(--duration) var(--ease);
}

.job-card:hover {
    border-color: hsla(228, 30%, 50%, 0.4);
    box-shadow: var(--shadow-sm);
}

.job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.job-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.job-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.job-state-badge.running { background: var(--success-dim); color: var(--success); }
.job-state-badge.paused { background: var(--warning-dim); color: var(--warning); }
.job-state-badge.completed { background: var(--info-dim); color: var(--info); }
.job-state-badge.failed { background: var(--error-dim); color: var(--error); }
.job-state-badge.cancelled { background: var(--bg-elevated); color: var(--text-tertiary); }
.job-state-badge.pending { background: var(--bg-elevated); color: var(--text-tertiary); }

.job-card-stats {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.job-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.job-card-queries {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-card .progress-bar {
    margin-top: 10px;
}

/* ─── Confirm Dialog ─────────────────────────────────────────────────────── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: hsla(220, 40%, 5%, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.confirm-overlay.visible {
    opacity: 1;
}

.confirm-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    min-width: 340px;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.2s var(--ease);
}

.confirm-overlay.visible .confirm-dialog {
    transform: scale(1);
}

.confirm-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.confirm-message {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ─── Quick Start Cards ──────────────────────────────────────────────────── */
.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quick-start-card {
    padding: 24px 20px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-elevated) 72%, transparent), color-mix(in srgb, var(--bg-tertiary) 92%, transparent));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all var(--duration) var(--ease);
}

.quick-start-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.quick-start-card .qs-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.quick-start-card .qs-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.quick-start-card .qs-desc {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* ─── Skeleton Loading ───────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .dashboard-hero h3 {
        font-size: 2.15rem;
        line-height: 1.05;
    }

    .hero-visual {
        min-height: 230px;
    }

    .contact-orbit {
        width: min(250px, 88vw);
    }

    .hero-metric-a { right: 6px; top: 4px; }
    .hero-metric-b { left: 0; bottom: 2px; }

    .search-builder-grid { grid-template-columns: 1fr; }
    .quick-start-grid { grid-template-columns: 1fr; }
    .sticky-action-bar { margin: 0 -16px -16px; padding: 12px 16px; }
    .job-card-header { flex-direction: column; align-items: flex-start; }
    .job-card-actions { width: 100%; justify-content: flex-end; }
}
