:root {
    /* Light Industrial Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-elevated: #f1f3f5;
    --bg-input: #f8f9fa;

    --accent-primary: #e67e22;
    --accent-secondary: #f39c12;
    --accent-light: #fef3e2;
    --accent-glow: rgba(230, 126, 34, 0.12);

    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #9ca3af;

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --purple: #8b5cf6;
    --purple-light: #ede9fe;

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.15);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 4px 16px rgba(230, 126, 34, 0.2);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Safe Areas for iPhone */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding-top: var(--safe-top);
    padding-bottom: calc(80px + var(--safe-bottom));
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding: var(--space-md) var(--space-lg);
    padding-top: calc(var(--space-md) + var(--safe-top));
    border-bottom: 1px solid var(--border-subtle);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: var(--space-sm);
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== MAIN CONTENT ===== */
.main {
    padding: var(--space-lg);
    max-width: 680px;
    margin: 0 auto;
}

/* Scanner Hero */
.scanner-hero {
    margin-bottom: var(--space-lg);
}

.scanner-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.scanner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.scanner-btn:active {
    transform: scale(0.98);
}

.scanner-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.scanner-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.scanner-text {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.scanner-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.scanner-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.scanner-arrow {
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.quick-action {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.quick-action:active {
    transform: translateY(0);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.quick-action-icon svg {
    width: 22px;
    height: 22px;
}

.quick-action-icon.search {
    background: var(--info-light);
    color: var(--info);
}

.quick-action-icon.add {
    background: var(--success-light);
    color: var(--success);
}

.quick-action-icon.boxes {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.quick-action-icon.history {
    background: var(--purple-light);
    color: var(--purple);
}

.quick-action-icon.loans {
    background: var(--warning-light);
    color: var(--warning);
}

.quick-action-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.quick-action-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Section */
.section {
    margin-bottom: var(--space-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-link {
    font-size: 0.875rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Storage Boxes */
.storage-boxes {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.storage-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.storage-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.storage-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.storage-box-info {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.storage-box-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.storage-box-icon svg {
    width: 24px;
    height: 24px;
}

.storage-box-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.storage-box-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.storage-box-location svg {
    width: 14px;
    height: 14px;
}

.storage-box-badge {
    background: var(--success-light);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.storage-box-stats {
    display: flex;
    gap: var(--space-lg);
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-muted);
}

/* Recent Items */
.recent-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.recent-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.recent-item:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.recent-item-thumb {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.recent-item-thumb svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.recent-item-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.recent-item-info {
    flex: 1;
    min-width: 0;
}

.recent-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-item-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search */
.search-container {
    padding: var(--space-lg);
    padding-top: var(--space-md);
}

.search-input-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-sm);
}

.search-input-wrap svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    border: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    background: transparent;
    color: var(--text-primary);
}

.search-results {
    padding: 0 var(--space-lg) var(--space-lg);
}

/* Back header */
.back-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding: var(--space-md) var(--space-lg);
    padding-top: calc(var(--space-md) + var(--safe-top));
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.back-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
}

.back-btn:active {
    background: var(--bg-elevated);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.back-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    flex: 1;
}

/* Article */
.article-image {
    width: 100%;
    height: 240px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.article-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: var(--space-lg);
    max-width: 680px;
    margin: 0 auto;
}

.article-header {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.article-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.article-location svg {
    width: 16px;
    height: 16px;
}

.article-visibility {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    height: fit-content;
}

.article-visibility.private {
    background: var(--warning-light);
    color: var(--warning);
}

.article-visibility.public {
    background: var(--success-light);
    color: var(--success);
}

.article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.article-visibility.sellable {
    background: var(--info-light);
    color: var(--info);
}

.article-visibility.lendable {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.article-visibility.loaned {
    background: var(--warning-light);
    color: var(--warning);
}

.article-section {
    margin-bottom: var(--space-lg);
}

.article-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.article-barcode {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.article-barcode-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.article-barcode-icon svg {
    width: 20px;
    height: 20px;
}

.article-barcode-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-icon svg {
    width: 20px;
    height: 20px;
}

.history-icon.add {
    background: var(--success-light);
    color: var(--success);
}

.history-icon.move {
    background: var(--info-light);
    color: var(--info);
}

.history-icon.remove {
    background: var(--danger-light);
    color: var(--danger);
}

.history-content {
    flex: 1;
}

.history-action {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.history-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.article-actions {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.article-action-btn {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
}

.article-action-btn svg {
    width: 20px;
    height: 20px;
}

.article-action-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-accent);
}

.article-action-btn.danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.article-action-btn:active {
    transform: scale(0.98);
}

/* Scanner Modal */
.scanner-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999;
    display: none;
    flex-direction: column;
}

.scanner-modal.active {
    display: flex;
}

.scanner-modal-header {
    padding: calc(var(--space-md) + var(--safe-top)) var(--space-lg) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.scanner-modal-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.scanner-close {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: none;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.scanner-viewfinder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-lg);
}

.scanner-reader {
    width: min(520px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.scanner-reader video,
.scanner-reader canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.scanner-frame {
    position: absolute;
    width: min(520px, 100%);
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.scanner-frame-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
}

.scanner-line {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 45%;
    height: 2px;
    background: rgba(230, 126, 34, 0.9);
    box-shadow: 0 0 12px rgba(230,126,34,0.6);
    animation: scan 2.4s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { transform: translateY(-30px); opacity: 0.5; }
    50% { transform: translateY(30px); opacity: 1; }
}

.scanner-hint {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 0 var(--space-lg) var(--space-md);
    font-size: 0.9rem;
}

.scanner-status {
    min-height: 20px;
    padding: 0 var(--space-lg) var(--space-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.scanner-status.error {
    color: rgba(255, 140, 140, 0.95);
}

.scanner-manual {
    padding: 0 var(--space-lg) calc(var(--space-lg) + var(--safe-bottom));
}

.scanner-manual-form {
    display: flex;
    gap: var(--space-sm);
}

.scanner-manual-input {
    flex: 1;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    color: white;
    outline: none;
}

.scanner-manual-btn {
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + var(--safe-bottom));
    display: flex;
    justify-content: space-around;
    z-index: 200;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-item.active {
    color: var(--accent-primary);
    background: var(--accent-light);
}

.nav-item:active {
    transform: scale(0.96);
}

/* MVP additions */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.card-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-subtle);
}

.card-row:first-of-type {
    border-top: none;
}

.link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.qr-target {
    display: flex;
    justify-content: center;
}

.qr-target img,
.qr-target canvas {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.form-row .form-input {
    flex: 1;
}

.scan-inline-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
}

.scan-inline-btn svg {
    width: 20px;
    height: 20px;
}

.scan-inline-btn:active {
    transform: scale(0.98);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

.form-input,
.form-textarea,
select.form-input {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-input);
    padding: 12px 14px;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.primary-btn {
    margin-top: var(--space-md);
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
}

.primary-btn:active {
    transform: scale(0.98);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.checkbox-item {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.flash-wrap {
    position: fixed;
    top: calc(var(--space-md) + var(--safe-top));
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    padding: 0 var(--space-lg);
    pointer-events: none;
}

.flash {
    width: min(680px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    pointer-events: auto;
}

.flash-success {
    border-color: rgba(16, 185, 129, 0.25);
    background: var(--success-light);
    color: var(--success);
}

.flash-warning {
    border-color: rgba(245, 158, 11, 0.25);
    background: var(--warning-light);
    color: var(--warning);
}

.flash-danger {
    border-color: rgba(239, 68, 68, 0.25);
    background: var(--danger-light);
    color: var(--danger);
}

.empty-state {
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
}

.spacer {
    height: var(--space-md);
}
