/* DeltaGlint - Minimalist Premium Design System */
/* 
 * Philosophy: Less is more. Space breathes. Typography speaks.
 * For independent investors who value clarity and focus.
 */

/* Typography - Inter (rsms.me - variable font, premium quality) */
:root {
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font sizes - Editorial hierarchy */
    --font-size-xl: 28px;
    --font-size-lg: 20px;
    --font-size-body: 15px;
    --font-size-md: 15px;
    --font-size-sm: 13px;
    --font-size-xs: 11px;
    --font-size-label: 12px;
    --font-size-section: 20px;
    --font-size-brand: 17px;
    --font-size-small: 13px;
    --font-size-tiny: 11px;
    
    /* Dark Control Room Palette - matches homepage */
    --color-bg: #0a0a0a;
    --color-bg-alt: #0d0d0d;
    --color-surface: #111111;
    --color-surface-alt: #161616;
    --color-surface-input: #0d0d0d;
    
    /* Borders - Subtle dark */
    --color-border: #222222;
    --color-border-light: #2a2a2a;
    
    /* Text - Light on dark */
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #999999;
    --color-text-muted: #666666;
    
    /* Buttons - Light on dark */
    --color-button: #f0f0f0;
    --color-button-hover: #ffffff;
    
    /* Accent - Light */
    --color-accent: #f0f0f0;
    --color-accent-hover: #ffffff;
    
    /* Status - Dark mode */
    --color-error: #ff6b6b;
    --color-error-bg: #2a1515;
    --color-success: #69db7c;
    --color-success-bg: #152a15;
    
    /* Navbar - Dark */
    --color-navbar: #0a0a0a;
    --color-navbar-text: #f0f0f0;
    --color-navbar-muted: #666666;
    
    --spacing-unit: 8px;
    
    /* Premium spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    
    /* Max content width */
    --content-width: 720px;
    --content-width-wide: 960px;
}

/* Inter font features for better rendering */
html {
    font-feature-settings: 'liga' 1, 'calt' 1; /* Enable ligatures */
}
@supports (font-variation-settings: normal) {
    html { font-family: 'Inter var', var(--font-ui); }
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: #111111;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Login Page - Two Column Layout */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hero Section - Left Column (Premium Finance) */
.auth-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    background: linear-gradient(165deg, #0a0a0a 0%, #111111 50%, #0d0d0d 100%);
    position: relative;
}

/* Subtle grid pattern overlay */
.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.auth-hero-content {
    text-align: center;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

/* Brand - minimal, confident */
.hero-brand {
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-brand-logo {
    height: 24px;
    width: auto;
    filter: invert(1);
    opacity: 0.7;
}

.hero-brand-name {
    font-family: 'Inter', var(--font-ui);
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.01em;
}

/* Main headline - commanding */
.hero-headline {
    font-family: 'Inter', var(--font-ui);
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 24px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

/* Subheadline - supporting, not competing */
.hero-subheadline {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 40px;
    line-height: 1.7;
}

/* CTA Button - premium feel */
.hero-cta {
    margin-bottom: 48px;
}

.btn-cta-primary {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    background: #ffffff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.01em;
}

.btn-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

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

/* Hero footnote - single line, minimal */
.hero-footnote {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    letter-spacing: 0.01em;
}

/* Form Column - Right Side (Neutral, quiet) */
.auth-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: #ffffff;
}

.auth-card .auth-form-title,
.auth-card .auth-label {
    color: #111111;
}

.auth-card .auth-input {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #111111;
}

.auth-card .auth-input::placeholder {
    color: #999999;
}

.auth-card .auth-input:focus {
    background: #ffffff;
    border-color: #999999;
}

.auth-card .auth-button {
    background: #111111;
    color: #ffffff;
}

.auth-card .auth-button:hover {
    background: #000000;
}

@media (max-width: 899px) {
    .auth-hero {
        min-height: auto;
        padding: 56px 24px;
    }
    
    .hero-brand {
        margin-bottom: 36px;
    }
    
    .hero-headline {
        font-size: 28px;
    }
    
    .hero-subheadline {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .hero-cta {
        margin-bottom: 36px;
    }
    
    .hero-footnote {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .auth-card {
        padding: 48px 24px;
    }
}

.auth-card-body {
    width: 100%;
    max-width: 400px;
}

.auth-form-title {
    font-size: var(--font-size-section);
    font-weight: 500;
    color: #111111;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}


/* Form Elements - Dominant, clear */
.auth-form-group {
    margin-bottom: 32px; /* Increased vertical spacing */
}

.auth-label {
    display: block;
    font-size: var(--font-size-label);
    font-weight: 500;
    color: #666666;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-ui);
    font-size: var(--font-size-body);
    font-weight: 400;
    color: #111111;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 2px;
    transition: none;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input:focus {
    outline: none;
    border-color: #e5e5e5;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.1);
}

.auth-input::placeholder {
    color: #888888;
}

/* Button - Quiet, matches left panel */
.auth-button {
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-ui);
    font-size: var(--font-size-body);
    font-weight: 500;
    color: #111111;
    background: #0a0a0a;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: none;
    text-transform: none;
    letter-spacing: 0.01em;
    margin-top: 8px;
}

.auth-button:hover {
    background: #000000;
}

.auth-button:active {
    background: #0a0f15;
}

[data-theme="dark"] .auth-button {
    background: #E5E7EB;
    color: #0E1620;
}

[data-theme="dark"] .auth-button:hover {
    background: #ffffff;
}

/* Access link - minimal, allows but doesn't invite */
.auth-access-link {
    text-align: center;
    margin-top: 16px;
}

.auth-access-link a {
    font-size: 12px;
    color: #666666;
    text-decoration: none;
    opacity: 0.4;
}

.auth-access-link a:hover {
    opacity: 0.7;
}

.auth-button:focus {
    outline: 2px solid #374151;
    outline-offset: 2px;
}

/* Alerts - Minimal, factual */
.auth-alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    border: 1px solid;
    border-radius: 2px;
    background: transparent;
}

.auth-alert-error {
    color: #dc2626;
    border-color: #dc2626;
    background: rgba(139, 38, 53, 0.05);
}

.auth-alert-success {
    color: #16a34a;
    border-color: #16a34a;
    background: rgba(45, 80, 22, 0.05);
}

/* Application Pages - Quiet System */
.app-container {
    min-height: 100vh;
    background: #ffffff;
}

.app-navbar {
    background: #0a0a0a;
    border-bottom: none;
    padding: 20px 0;
    margin-bottom: 0;
}

.app-navbar-brand {
    font-family: 'Inter', var(--font-ui);
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-navbar-brand-logo {
    height: 24px;
    width: auto;
    filter: invert(1);
    opacity: 0.7;
}

.app-navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.app-navbar-brand:hover .app-navbar-brand-logo {
    opacity: 0.9;
}

.app-navbar-link {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 8px 0;
}

.app-navbar-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* Theme toggle - hidden in minimalist mode */
.theme-toggle {
    display: none;
}

.app-content {
    padding: 80px 0 var(--space-xl);
    margin-top: 0;
    background: #f9f9f9;
    min-height: calc(100vh - 65px);
}

.app-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.app-card-header {
    padding: var(--space-md);
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
}

.app-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

.app-card-body {
    padding: 24px;
}

/* Form controls in app - Quiet System */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: var(--font-size-label);
    font-weight: 500;
    color: #666666;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.form-control {
    display: block;
    width: 100%;
    font-family: var(--font-ui);
    font-size: var(--font-size-body);
    color: #111111;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 14px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: #999999;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
    outline: none;
}

.form-control::placeholder {
    color: #999999;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-weight: 500;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: #111111;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: #666666;
    border: 1px solid #e0e0e0;
    font-weight: 400;
}

.btn-secondary:hover {
    color: #666666;
    border-color: #eeeeee;
}

.btn-info {
    background: #374151;
    color: #E5E7EB;
}

.btn-info:hover {
    background: #1F2937;
    color: #ffffff;
}

.btn-warning {
    background: #57534E;
    color: #E5E7EB;
}

.btn-warning:hover {
    background: #44403C;
    color: #ffffff;
}

.btn-danger {
    background: #7F1D1D;
    color: #FCA5A5;
}

.btn-danger:hover {
    background: #991B1B;
    color: #ffffff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-small);
}

/* Outline buttons (used across app pages) */
.btn-outline-primary,
.btn-outline-secondary {
    background: transparent;
    border: 1px solid #eeeeee;
    color: #111111;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: #fafafa;
    border-color: #e5e5e5;
    color: #111111;
}

[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-outline-secondary {
    border-color: #e5e5e5;
}

/* List groups - Quiet System */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-flush .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.list-group-flush .list-group-item:first-child {
    border-top: none;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: none;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;
    padding: var(--space-md) 0;
    display: block;
    text-decoration: none;
    color: #111111;
    background: transparent;
    transition: opacity 0.15s ease;
}

.list-group-item-action {
    cursor: pointer;
}

.list-group-item-action:hover {
    opacity: 0.7;
    text-decoration: none;
}

.list-group-item.active {
    background: transparent;
    border-color: #e5e5e5;
    color: #111111;
}

.list-group-item.active:hover {
    background: transparent;
    opacity: 0.7;
}

.list-group-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.list-group-item:last-child {
    border-bottom: 1px solid #e5e5e5;
}

/* Brief list item content spacing */
.list-group-item strong {
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
}

.list-group-item small.text-muted {
    display: block;
    margin-top: 2px;
}

/* Badges - Minimalist Premium */
.badge {
    font-size: var(--font-size-xs);
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
}

.bg-success {
    background: #111111;
    color: white;
}

.bg-secondary {
    background: #e5e5e5;
    color: #666666;
}

.bg-danger {
    background: #666666;
    color: white;
}

.bg-info {
    background: #666666;
    color: white;
}

.bg-warning {
    background: #888888;
    color: white;
}

/* Nav tabs - Quiet System */
.nav-tabs {
    border-bottom: 1px solid #E5E7EB;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6B7280;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #1F2937;
    background: transparent;
    border-bottom: 2px solid #0E1620;
}

/* Minimal Grid System - Centered single column */
.container {
    width: 100%;
    max-width: var(--content-width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col-md-4,
.col-md-8 {
    padding: 0 12px;
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* Spacing between columns on mobile */
@media (max-width: 767px) {
    .col-md-8 {
        margin-top: var(--space-md);
    }
}

/* Utility Classes */
.text-muted {
    color: #888888 !important;
}

.text-end {
    text-align: right;
}

.small {
    font-size: var(--font-size-small);
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mx-2 {
    margin-left: 8px;
    margin-right: 8px;
}

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

.d-flex {
    display: flex;
}

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

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

.mb-3 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.w-100 {
    width: 100%;
}

.gap-2 {
    gap: 12px;
}

/* Alerts for app pages - Quiet System */
.alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    border: 1px solid;
    border-radius: 2px;
    background: transparent;
}

.alert-danger {
    color: #dc2626;
    border-color: #dc2626;
    background: #fef2f2;
}

.alert-success {
    color: #16a34a;
    border-color: #16a34a;
    background: #f0fdf4;
}

.alert-info {
    color: #1E40AF;
    border-color: #93C5FD;
    background: #EFF6FF;
}

.alert-warning {
    color: #92400E;
    border-color: #FCD34D;
    background: #FFFBEB;
}

/* Empty State - Quiet */
.empty-state {
    text-align: center;
    padding: 32px 24px !important;
    color: #666666;
}

.empty-state-title {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 4px;
}

.empty-state-hint {
    display: block;
    font-size: 13px;
    color: #888888;
}

/* Dashboard - Last runs */
.runs-list .run-item {
    padding: var(--space-md);
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
}

.runs-list .run-item:last-child {
    border-bottom: none;
}

.run-item-top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    align-items: flex-start;
}

.run-item-left {
    min-width: 0;
    flex: 1;
}

.run-title {
    font-size: var(--font-size-body);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 4px;
    color: #111111;
}

.run-time {
    font-size: var(--font-size-sm);
    color: #888888;
}

.run-item-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.run-cost {
    font-size: var(--font-size-sm);
    color: #888888;
}

.run-snippet {
    margin-top: var(--space-sm);
    line-height: 1.65;
    font-size: var(--font-size-sm);
    color: #666666;
}

.run-actions {
    margin-top: var(--space-sm);
}

.runs-list .run-item:hover {
    background: #ffffff;
}

/* Prompt Field */
.prompt-field {
    margin-bottom: 32px;
}

.prompt-field .form-label {
    font-size: 12px;
    letter-spacing: 0;
}

.prompt-textarea {
    min-height: 140px;
    line-height: 1.7;
    padding: 16px 14px;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.prompt-textarea:focus {
    background: #ffffff;
    border-color: #999999;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
}

.prompt-textarea::placeholder {
    color: #999999;
    font-style: normal;
}

/* Form Hints - Whisper, don't speak */
.form-hint {
    display: block;
    margin-top: 8px;
    font-size: var(--font-size-small);
    color: #888888;
    letter-spacing: 0;
    line-height: 1.4;
}

.checkbox-hint {
    margin-left: 28px;
    margin-top: 2px;
    font-size: var(--font-size-label);
}

/* Output type philosophy hint - hidden by default */
.output-philosophy {
    display: none;
}

/* Schedule Row - Human-friendly time display */
.schedule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.schedule-hour {
    width: auto;
    min-width: 90px;
    flex-shrink: 0;
    cursor: pointer;
}

.schedule-day {
    width: auto;
    min-width: 120px;
    flex-shrink: 0;
}

.schedule-day-num {
    width: auto;
    min-width: 70px;
    flex-shrink: 0;
}

.schedule-separator {
    color: #9CA3AF;
    font-weight: 400;
    flex-shrink: 0;
    font-size: 14px;
}

.schedule-tz {
    width: auto;
    min-width: 130px;
}

/* Frequency select */
#frequency {
    max-width: 200px;
}

/* Select styling */
select.form-control {
    cursor: pointer;
    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 fill='%23666666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #0E1620;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: #111111;
    line-height: 1.4;
    cursor: pointer;
}

/* Form actions */
.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    flex-wrap: wrap;
}

.form-actions .btn {
    margin-bottom: 8px;
}

/* Page Header */
.page-header{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: var(--space-lg, 48px);
    margin-bottom: 32px;
}

.page-title {
    font-size: var(--font-size-xl, 28px);
    font-weight: 600;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

.page-back-link {
    font-size: var(--font-size-sm, 13px);
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.page-back-link:hover {
    color: #111111;
    text-decoration: none;
}

/* Run Details */
.run-meta {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
}

.run-meta strong {
    color: #374151;
    font-weight: 500;
}

.run-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #EAECEF;
}

.run-section-title:first-of-type {
    margin-top: 0;
}

/* Results list styling */
.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    padding: 12px 0;
    border-bottom: 1px solid #EAECEF;
}

.results-list li:last-child {
    border-bottom: none;
}

.results-list a {
    color: #2D3748;
    text-decoration: none;
    font-weight: 500;
}

.results-list a:hover {
    color: #0E1620;
}

.results-list small {
    display: block;
    margin-top: 4px;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.5;
}

/* Request Access Button - Minimal, inviting */
/* Hero actions container */
.auth-hero-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Examples link on hero */
.examples-hero-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #888888;
    text-decoration: none;
    padding: 8px 0;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.examples-hero-link:hover {
    color: #111111;
}

.request-access-btn {
    margin-top: 0;
    padding: 12px 28px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: #F6F6F6;
    background: transparent;
    border: 1px solid rgba(246, 246, 246, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    letter-spacing: 0.02em;
}

.request-access-btn:hover {
    background: rgba(246, 246, 246, 0.1);
    border-color: rgba(246, 246, 246, 0.5);
}

.request-access-btn:active {
    background: rgba(246, 246, 246, 0.15);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-overlay.modal-open {
    display: flex;
}

.modal-container {
    background: #FAFAFA;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #888888;
    cursor: pointer;
    line-height: 1;
    border-radius: 2px;
}

.modal-close:hover {
    color: #666666;
    background: rgba(0, 0, 0, 0.05);
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #111111;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.modal-desc {
    font-size: 14px;
    color: #666666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-message {
    display: none;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    border-radius: 2px;
    border: 1px solid;
}

.modal-message.modal-message-visible {
    display: block;
}

.modal-message-success {
    color: #16a34a;
    border-color: #16a34a;
    background: #f0fdf4;
}

.modal-message-error {
    color: #dc2626;
    border-color: #dc2626;
    background: #fef2f2;
}

/* ============================================
   PUBLIC EXAMPLES PAGES
   Calm, finite, library-like presentation
   ============================================ */

/* Examples Page Layout */
.examples-page {
    min-height: 100vh;
    background: #ffffff;
}

.examples-header {
    background: #0a0a0a;
    padding: 48px 0;
    text-align: center;
}

.examples-title {
    font-family: 'Inter', var(--font-ui);
    font-size: 28px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.examples-subtitle {
    font-size: 15px;
    color: #888888;
    margin: 0;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.examples-content {
    padding: 48px 24px 64px;
    max-width: 1000px;
}

/* Examples Grid - Fixed, finite layout */
.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* Example Card */
.example-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.example-card:hover {
    border-color: #eeeeee;
}

[data-theme="dark"] .example-card:hover {
    border-color: #888888;
}

.example-card-header {
    margin-bottom: 16px;
}

.example-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.example-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Domain badge colors - Minimalist, all neutral */
.badge-finance,
.badge-family,
.badge-sports,
.badge-career,
.badge-tech,
.badge-health,
.badge-default {
    background: #f0f0f0;
    color: #666666;
}

.badge-frequency {
    background: transparent;
    color: #888888;
    border: 1px solid #e0e0e0;
}

.example-card-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.example-card-title a {
    color: #111111;
    text-decoration: none;
}

.example-card-title a:hover {
    color: #666666;
}

.example-card-preview {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.example-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
}

.example-date {
    font-size: 12px;
    color: #888888;
}

.example-link {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    text-decoration: none;
}

.example-link:hover {
    color: #111111;
}

/* Examples Page CTA */
.examples-cta {
    margin-top: 56px;
    text-align: center;
    padding: 40px 24px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.examples-cta-text {
    font-size: 16px;
    color: #666666;
    margin: 0 0 20px;
}

/* Examples Footer */
.examples-footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.examples-footer p {
    font-size: 13px;
    color: #888888;
    margin: 0;
}

/* Empty state */
.examples-empty {
    text-align: center;
    padding: 64px 24px;
    color: #666666;
}

/* ============================================
   EXAMPLE DETAIL PAGE
   ============================================ */

.example-detail-page {
    min-height: 100vh;
    background: #ffffff;
}

.example-detail-content {
    padding: 32px 24px 64px;
    max-width: 800px;
}

.example-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.example-back-link {
    font-size: 14px;
    color: #666666;
    text-decoration: none;
}

.example-back-link:hover {
    color: #111111;
}

/* Read-only label - subtle but clear */
.example-readonly-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #888888;
    padding: 6px 12px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.readonly-indicator {
    width: 6px;
    height: 6px;
    background: #888888;
    border-radius: 50%;
    opacity: 0.6;
}

/* Example Detail Card */
.example-detail-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
}

.example-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 12px;
}

.example-execution-date {
    font-size: 13px;
    color: #888888;
}

.example-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    padding: 28px 28px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.example-detail-body {
    padding: 24px 28px 32px;
    font-size: 15px;
    line-height: 1.7;
    color: #111111;
}

/* Markdown content styling */
.example-detail-body h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    letter-spacing: -0.01em;
}

.example-detail-body h1:first-child {
    margin-top: 0;
}

.example-detail-body h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: #111111;
}

.example-detail-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 24px 0 10px;
    color: #111111;
}

.example-detail-body h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 8px;
    color: #666666;
}

.example-detail-body p {
    margin: 0 0 16px;
}

.example-detail-body li {
    margin-bottom: 6px;
}

.example-detail-body hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 28px 0;
}

.example-detail-body a {
    color: #111111;
    text-decoration: underline;
    text-decoration-color: #e5e5e5;
    text-underline-offset: 2px;
}

.example-detail-body a:hover {
    text-decoration-color: #666666;
}

.example-detail-body strong {
    font-weight: 600;
    color: #111111;
}

.example-detail-body em {
    font-style: italic;
}

/* Simple table styling */
.example-detail-body tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
}

.example-detail-body td {
    display: inline;
}

/* Example Detail CTA */
.example-detail-cta {
    margin-top: 40px;
}

.example-cta-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 32px;
    text-align: center;
}

.example-cta-title {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 12px;
}

.example-cta-text {
    font-size: 14px;
    color: #666666;
    margin: 0 0 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.example-detail-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
}

/* ============================================
   NEW RUN NOTIFICATIONS - Ritual UI
   See → click → consume → disappearance
   ============================================ */

/* Navbar "X new run(s)" indicator - burnt orange = something changed */
.nav-newrun {
    font-size: 12px;
    font-weight: 500;
    color: #C45A1A;
    letter-spacing: 0.01em;
}

/* Watch NEW dot - small indicator for changes */
.brief-new-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #C45A1A;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* NEW badge for watches and runs - burnt orange = change signal */
.badge-new {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 5px;
    border-radius: 2px;
    background: #C45A1A;
    color: #FFFFFF;
    margin-left: 6px;
    vertical-align: middle;
}

/* Run item NEW highlight - subtle accent border */
.run-item-new {
    background: #ffffff !important;
    border-left: 2px solid #111111 !important;
}

.run-item-new .run-title {
    font-weight: 600;
}

/* ================================
   Phase 4: Polish & Animations
   ================================ */

/* Subtle fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fade-in to main content */
.app-content {
    animation: fadeIn 0.3s ease-out;
}

/* Card hover effect */
.app-card {
    transition: box-shadow 0.2s ease;
}

.app-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Link underline animation */
.app-navbar-link {
    position: relative;
}

.app-navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.2s ease;
}

.app-navbar-link:hover::after {
    width: 100%;
}

/* Button press effect */
.btn:active {
    transform: translateY(1px);
}

/* Smooth list item transitions */
.list-group-item {
    transition: opacity 0.15s ease, background 0.15s ease;
}

/* Focus states for accessibility */
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #888888;
    outline-offset: 2px;
}

/* Improved scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

/* ================================
   Single-Column Briefs Layout
   ================================ */

.briefs-container {
    max-width: 720px;
    margin: 0 auto;
}

.briefs-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: var(--space-lg, 48px);
    margin-bottom: var(--space-lg, 48px);
}

.briefs-page-title {
    font-size: var(--font-size-xl, 28px);
    font-weight: 600;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

.briefs-new-link {
    font-size: var(--font-size-sm, 13px);
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.briefs-new-link:hover {
    color: #111111;
    text-decoration: none;
}

.brief-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.brief-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cccccc;
    text-decoration: none;
}

.brief-card-title {
    font-size: var(--font-size-lg, 20px);
    font-weight: 600;
    color: #111111;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.brief-card-meta {
    font-size: var(--font-size-sm, 13px);
    color: #666666;
}

.brief-card-snippet {
    font-size: var(--font-size-body, 15px);
    color: #666666;
    margin: 16px 0;
    line-height: 1.6;
    font-style: italic;
}

.brief-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm, 13px);
    color: #888888;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    margin-top: 16px;
}

.brief-card-cta {
    font-size: var(--font-size-sm, 13px);
    font-weight: 500;
    color: #666666;
    transition: color 0.2s ease;
}

.brief-card:hover .brief-card-cta {
    color: #111111;
}

/* Empty state for no runs */
.brief-card-no-runs {
    font-size: var(--font-size-sm, 13px);
    color: #888888;
    margin-top: 12px;
    font-style: italic;
}

/* Create new brief button */
.briefs-create {
    text-align: center;
    margin-top: var(--space-lg, 48px);
}

.briefs-create a {
    display: inline-block;
    font-size: var(--font-size-body, 15px);
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px dashed #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.briefs-create a:hover {
    color: #111111;
    border-color: #888888;
    background: #ffffff;
}

/* Empty state when no briefs */
.briefs-empty {
    text-align: center;
    padding: var(--space-xl, 80px) var(--space-md, 24px);
    color: #888888;
}

.briefs-empty-title {
    font-size: var(--font-size-lg, 20px);
    font-weight: 500;
    color: #666666;
    margin-bottom: 8px;
}

.briefs-empty-hint {
    font-size: var(--font-size-body, 15px);
    margin-bottom: var(--space-md, 24px);
}

/* ================================
   Brief Form - New Design
   ================================ */

/* Numbered form labels */
.form-label-numbered {
    font-size: var(--font-size-body, 15px);
    font-weight: 500;
    color: #333333;
    margin-bottom: 12px;
}

/* Frequency radio button group */
.frequency-radio-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.frequency-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.frequency-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.frequency-radio-label {
    display: inline-block;
    padding: 8px 16px;
    font-size: var(--font-size-sm, 13px);
    font-weight: 500;
    color: #666666;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.15s ease;
}

.frequency-radio input[type="radio"]:checked + .frequency-radio-label {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.frequency-radio:hover .frequency-radio-label {
    border-color: #999999;
}

/* Schedule selectors */
.schedule-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.schedule-weekly-options,
.schedule-monthly-options {
    margin-top: 0;
}

/* Advanced settings - collapsible */
.advanced-settings {
    margin-top: 32px;
    margin-bottom: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.advanced-settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    cursor: pointer;
    background: #fafafa;
    list-style: none;
    user-select: none;
}

.advanced-settings-toggle::-webkit-details-marker {
    display: none;
}

.advanced-settings-toggle::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999999;
    border-bottom: 2px solid #999999;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    margin-right: 4px;
}

.advanced-settings[open] .advanced-settings-toggle::before {
    transform: rotate(45deg);
}

.advanced-settings-label {
    font-size: var(--font-size-sm, 13px);
    font-weight: 500;
    color: #333333;
}

.advanced-settings-optional {
    font-size: var(--font-size-sm, 13px);
    color: #999999;
    font-weight: 400;
}

.advanced-settings-content {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
}

/* Form intro - framing sentence */
.form-intro {
    margin-bottom: 40px;
    padding-bottom: 0;
    border-bottom: none;
}

.form-intro-title {
    font-size: 15px;
    font-weight: 500;
    color: #666666;
    margin: 0 0 4px 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-intro-subtitle {
    font-size: var(--font-size-sm, 13px);
    color: #888888;
    margin: 0;
}

/* Decision field - the heart of DeltaGlint */
.decision-field {
    padding: 28px 24px;
    margin: 24px -24px 32px -24px;
    background: #f8f8f8;
    border-radius: 8px;
}

.decision-field .form-label-numbered {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 16px;
}

.decision-field .form-control,
.decision-field .decision-textarea {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    color: #111111;
    padding: 14px 16px;
    line-height: 1.4;
}

.decision-field .decision-textarea {
    resize: none;
    overflow: hidden;
    min-height: 60px;
    field-sizing: content;
}

.decision-field .form-control:focus,
.decision-field .decision-textarea:focus {
    border-color: #111111;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.decision-field .form-control::placeholder,
.decision-field .decision-textarea::placeholder {
    color: #999999;
}

.decision-field .form-hint {
    color: #666666;
    margin-top: 12px;
    font-size: 13px;
    margin-top: 12px;
}

/* Scheduling settings - collapsible, de-emphasized */
.scheduling-settings {
    margin-top: 32px;
    margin-bottom: 24px;
}

.scheduling-settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
}

.scheduling-settings-toggle::-webkit-details-marker {
    display: none;
}

.scheduling-settings-toggle::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #888888;
    border-bottom: 1.5px solid #888888;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    margin-right: 4px;
}

.scheduling-settings[open] .scheduling-settings-toggle::before {
    transform: rotate(45deg);
}

.scheduling-settings-label {
    font-size: var(--font-size-sm, 13px);
    font-weight: 400;
    color: #888888;
}

.scheduling-settings-content {
    padding: 16px 0;
}

.scheduling-settings-content .frequency-radio-group {
    margin-bottom: 16px;
}

/* Sensitivity slider */
.sensitivity-field {
    margin-bottom: 0;
}

.sensitivity-field .form-label {
    font-size: var(--font-size-sm, 13px);
    font-weight: 500;
    color: #333333;
    margin-bottom: 16px;
}

.sensitivity-slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sensitivity-label-low,
.sensitivity-label-high {
    font-size: var(--font-size-sm, 13px);
    font-weight: 500;
    color: #666666;
    min-width: 36px;
}

.sensitivity-label-low {
    text-align: right;
}

.sensitivity-label-high {
    text-align: left;
}

.sensitivity-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.sensitivity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #111111;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.sensitivity-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #111111;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.sensitivity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.sensitivity-descriptions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.sensitivity-desc-low,
.sensitivity-desc-high {
    font-size: var(--font-size-xs, 11px);
    color: #888888;
    max-width: 45%;
}

.sensitivity-desc-low {
    text-align: left;
}

.sensitivity-desc-high {
    text-align: right;
}

/* Form actions - dual button layout */
.form-actions-dual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.form-actions-left {
    flex: 0 0 auto;
}

.form-actions-right {
    display: flex;
    gap: 12px;
}

.btn-link-danger {
    font-size: var(--font-size-sm, 13px);
    color: #888888;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-link-danger:hover {
    color: #991B1B;
    text-decoration: underline;
}

/* Dark mode adjustments for new form elements */
[data-theme="dark"] .frequency-radio input[type="radio"]:checked + .frequency-radio-label {
    background: #ffffff;
    color: #111111;
    border-color: #888888;
}

[data-theme="dark"] .sensitivity-slider {
    background: #e5e5e5;
}

[data-theme="dark"] .sensitivity-slider::-webkit-slider-thumb {
    background: #ffffff;
    border: 2px solid #888888;
}

[data-theme="dark"] .sensitivity-slider::-moz-range-thumb {
    background: #ffffff;
    border: 2px solid #888888;
}

[data-theme="dark"] .advanced-settings-content {
    background: #ffffff;
}
}

/* Footer */
.app-footer {
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
    background: #ffffff;
}

.app-footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-brand {
    font-size: 13px;
    font-weight: 500;
    color: #999999;
}

.footer-sep {
    color: #cccccc;
}

.footer-copy {
    font-size: 13px;
    color: #999999;
}

/* Scheduling section (visible, not collapsed) */
.scheduling-section {
    margin-top: 32px;
}

.scheduling-section .form-label-numbered {
    margin-bottom: 16px;
}

.scheduling-content {
    padding: 0;
}

.scheduling-content .frequency-radio-group {
    margin-bottom: 16px;
}