/* ============================================================
   MAIN.CSS — Shared styles for Starforge Pets
   Tokens, reset, layout, nav, buttons, forms, cards, toasts, themes
   ============================================================ */

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);

    --bg-body: #0b0e1a;
    --bg-surface: #161a2c;
    --bg-subtle: #101321;
    --bg-hover: #1f2440;

    --text-primary: #e6e8f5;
    --text-secondary: #a4a9c9;
    --text-muted: #8489ab;
    --text-inverse: #ffffff;

    --border-color: #2b3053;
    --border-subtle: #1f2340;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.25);
    --shadow-md: 0 2px 10px rgba(0,0,0,0.35);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.45);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --color-success: #22c55e;
    --color-success-bg: #113322;
    --color-success-text: #6ee7b7;
    --color-success-border: #1f7a4d;

    --color-error: #f87171;
    --color-error-bg: #3b1219;
    --color-error-text: #fca5a5;
    --color-error-border: #7f1d1d;

    --color-warning: #eab308;
    --color-warning-bg: #3a2f0d;
    --color-warning-text: #fde68a;
    --color-warning-border: #92660a;

    --color-info: #38bdf8;
    --color-info-bg: #0e2a3a;
    --color-info-text: #93cbe6;
    --color-info-border: #155e75;

    --header-height: 60px;
    --modal-overlay: rgba(0, 0, 0, 0.55);
}

/* ===== RESET ===== */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== THEMES ===== */

/* Nebula (default, dark) */
body.theme-default {
    --color-primary: #6366f1;
    --color-primary-dark: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --bg-body: #0b0e1a;
    --bg-surface: #161a2c;
    --bg-subtle: #101321;
    --bg-hover: #1f2440;
    --text-primary: #e6e8f5;
    --text-secondary: #a4a9c9;
    --text-muted: #8489ab;
    --border-color: #2b3053;
    --border-subtle: #1f2340;
}

/* Daylight Station (light) */
body.theme-daylight {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --bg-body: #f4f7fc;
    --bg-surface: #ffffff;
    --bg-subtle: #eef2fb;
    --bg-hover: #e3ebfc;
    --text-primary: #1a2033;
    --text-secondary: #4b5470;
    --text-muted: #6b7590;
    --border-color: #d7deee;
    --border-subtle: #e6eaf5;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

/* Aurora (dark, teal/violet) */
body.theme-aurora {
    --color-primary: #22d3ee;
    --color-primary-dark: #a78bfa;
    --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    --bg-body: #0a1420;
    --bg-surface: #0f2233;
    --bg-subtle: #0a1a28;
    --bg-hover: #123045;
    --text-primary: #e3f6fb;
    --text-secondary: #9fc4d4;
    --text-muted: #7fa4b6;
    --border-color: #1f4257;
    --border-subtle: #163244;
}

/* Comet Tail (light, warm amber) */
body.theme-comet {
    --color-primary: #ea580c;
    --color-primary-dark: #db2777;
    --gradient-primary: linear-gradient(135deg, #ea580c 0%, #db2777 100%);
    --bg-body: #fdf6ee;
    --bg-surface: #ffffff;
    --bg-subtle: #fbeee0;
    --bg-hover: #fbe2cc;
    --text-primary: #2b1b10;
    --text-secondary: #6b4a34;
    --text-muted: #8a6a52;
    --border-color: #eddac2;
    --border-subtle: #f5e7d5;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

:root { color-scheme: dark; }
body.theme-daylight,
body.theme-comet { color-scheme: light; }

/* ===== LAYOUT ===== */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-height);
    padding: 0 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.site-brand {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--text-primary);
    white-space: nowrap;
}
.site-brand:hover { text-decoration: none; }

.site-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
    white-space: nowrap;
}
.site-nav-right a { color: var(--text-secondary); }
.site-nav-right a:hover { color: var(--text-primary); text-decoration: none; }

.staff-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 16px;
    border-right: 1px solid var(--border-color);
}

.weather-chip {
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.9em;
}

.site-body {
    display: flex;
    align-items: stretch;
}

.site-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 20px 12px;
    position: sticky;
    top: var(--header-height);
    align-self: flex-start;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
}
.sidebar-nav a:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }

.site-body > .page-container {
    flex: 1;
    min-width: 0;
}

@media (max-width: 720px) {
    .site-header { flex-wrap: wrap; height: auto; padding: 12px 16px; }
    .site-body { flex-direction: column; }
    .site-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
}

/* ===== LANDING ===== */
.landing-hero {
    text-align: center;
    padding: 80px 20px 50px;
    background: radial-gradient(ellipse at top, var(--bg-hover) 0%, transparent 65%);
}

.landing-eyebrow {
    color: #c0c4dd;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8em;
    margin: 0 0 12px;
}

.landing-title {
    margin: 0;
    font-size: 3em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-tagline {
    color: var(--text-secondary);
    font-size: 1.2em;
    margin: 10px 0 30px;
}

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.landing-note {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 16px;
}

.landing-section {
    max-width: 640px;
    margin: 0 auto 30px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.landing-section h2 { margin-top: 0; color: var(--text-primary); }
.landing-section p { color: var(--text-secondary); margin-bottom: 0; }

.landing-feature-list {
    color: var(--text-secondary);
    margin: 0;
    padding-left: 20px;
}
.landing-feature-list li { margin-bottom: 8px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    min-height: 40px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-hover); }

.btn-danger {
    background: var(--color-error);
    color: var(--text-inverse);
}
.btn-danger:hover { opacity: 0.9; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 720px) {
    .btn { min-height: 44px; }
}

body.compact-ui .btn { padding: 7px 14px; font-size: 0.9em; min-height: 34px; }

/* ===== FORMS ===== */
form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; color: var(--text-secondary); }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 1em;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

/* ===== MESSAGES / TOASTS ===== */
.messages { list-style: none; margin: 0; padding: 12px 20px 0; }
.messages li {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}
.messages li.success { background: var(--color-success-bg); color: var(--color-success-text); border: 1px solid var(--color-success-border); }
.messages li.error   { background: var(--color-error-bg);   color: var(--color-error-text);   border: 1px solid var(--color-error-border); }
.messages li.info    { background: var(--color-info-bg);    color: var(--color-info-text);    border: 1px solid var(--color-info-border); }
.messages li.warning { background: var(--color-warning-bg); color: var(--color-warning-text); border: 1px solid var(--color-warning-border); }

.message-toast {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse);
    font-weight: 500;
    max-width: 380px;
}
.message-toast.success { background: var(--color-success); }
.message-toast.error   { background: var(--color-error); }
.message-toast.info    { background: var(--color-primary); }
.message-toast.reward  { border-left: 4px solid var(--color-warning-text); background: var(--color-warning-bg); color: var(--color-warning-text); }

/* ===== CARDS =====
   Shared surface treatment for the existing card class hooks already present
   in template markup — .pet-card, .nest-card, .expedition-card,
   .map-node-card, .faction-card, .inventory-item */
.pet-card,
.nest-card,
.expedition-card,
.map-node-card,
.faction-card,
.inventory-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.squad-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-lg);
    background: var(--color-success-bg);
    color: var(--color-success-text);
    font-size: 0.85em;
    font-weight: 600;
}

.hex-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    margin-right: 4px;
    vertical-align: middle;
}

/* ===== SETTINGS: THEME SWATCHES ===== */
.theme-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.theme-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-subtle);
    cursor: pointer;
    color: var(--text-primary);
}
.theme-swatch.active { border-color: var(--color-primary); }
.theme-swatch-preview {
    width: 56px;
    height: 36px;
    border-radius: var(--radius-sm);
}
.theme-swatch-preview.theme-default  { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.theme-swatch-preview.theme-daylight { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.theme-swatch-preview.theme-aurora   { background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%); }
.theme-swatch-preview.theme-comet    { background: linear-gradient(135deg, #ea580c 0%, #db2777 100%); }

/* ===== REDUCED MOTION ===== */
body.reduced-motion * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
}

/* ===== MISC UTILITY ===== */
.btn-sm { padding: 6px 12px; min-height: 30px; font-size: 0.85em; }
.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-tertiary:hover { background: var(--bg-subtle); color: var(--text-primary); }
.text-muted { color: var(--text-muted); }

/* ===== ACCOUNT SETTINGS: INFO GRID ===== */
.info-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.info-row { display: flex; align-items: center; gap: 10px; }
.info-label { font-weight: 600; color: var(--text-secondary); min-width: 140px; }
.info-value { color: var(--text-primary); }
.info-note { color: var(--text-muted); font-size: 12px; font-style: italic; }

/* ===== USER PROFILE ===== */
.profile-container {
    max-width: 960px;
    margin: 30px auto;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.profile-avatar { flex-shrink: 0; }

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.default-avatar {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--text-inverse);
    font-weight: bold;
}

.profile-info h1 { margin: 0 0 15px 0; font-size: 32px; color: var(--text-primary); }

.profile-meta { display: flex; flex-direction: column; gap: 8px; }
.meta-item { display: flex; gap: 10px; }
.meta-label { font-weight: 600; color: var(--text-secondary); min-width: 100px; }
.meta-value { color: var(--text-primary); }

.profile-pronouns { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pronoun-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.profile-header-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.profile-bio { background: var(--bg-subtle); border-radius: var(--radius-md); padding: 20px; margin-top: 10px; }
.bio-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.bio-header h2 { margin: 0; font-size: 20px; color: var(--text-primary); }
.bio-content { line-height: 1.6; color: var(--text-secondary); }
.bio-editor textarea {
    width: 100%;
    max-width: none;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: var(--bg-surface);
    color: var(--text-primary);
}
.bio-editor-actions { margin-top: 10px; display: flex; gap: 10px; }

/* ===== PRONOUN SELECTOR (account settings) ===== */
.pronoun-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pronoun-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.pronoun-tag input[type="checkbox"] { display: none; }
.pronoun-tag:hover { border-color: var(--color-primary); color: var(--text-primary); }
.pronoun-tag:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

/* ===== AVATAR SELECT ===== */
.avatar-select-container { max-width: 1200px; margin: 0 auto; }
.avatar-select-header { margin-bottom: 30px; }
.avatar-select-header h1 { color: var(--text-primary); margin-bottom: 10px; }
.avatar-select-header .subtitle { color: var(--text-secondary); margin: 0; }

.avatar-filter-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.avatar-filter-form { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.avatar-filter-form .filter-group { display: flex; flex-direction: column; gap: 6px; }
.avatar-filter-form label { font-size: 13px; font-weight: 600; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.avatar-filter-form input,
.avatar-filter-form select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-size: 14px;
    min-width: 150px;
}
.filter-actions { display: flex; gap: 8px; }
.results-info { color: var(--text-secondary); font-size: 13px; margin-bottom: 15px; }

.avatar-pet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.avatar-pet-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pet-image-wrapper {
    width: 100%;
    height: 200px;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pet-thumbnail { width: 100%; height: 100%; object-fit: contain; }
.avatar-pet-card .pet-info { padding: 15px; }
.avatar-pet-card .pet-info h3 { margin: 0 0 5px 0; color: var(--text-primary); font-size: 16px; font-weight: 600; }
.avatar-pet-card .species { margin: 0 0 3px 0; color: var(--text-secondary); font-size: 12px; text-transform: capitalize; }
.avatar-pet-card .level-info { margin: 0 0 12px 0; color: var(--text-secondary); font-size: 12px; }
.avatar-pet-card .btn { width: 100%; text-align: center; padding: 8px; }

.pagination-container { display: flex; justify-content: center; margin-top: 30px; }
.pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-link,
.page-number {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
}
.page-link:hover,
.page-number:hover { background: var(--bg-subtle); border-color: var(--color-primary); color: var(--color-primary); }
.page-number.active { background: var(--color-primary); color: var(--text-inverse); border-color: var(--color-primary); }
.page-numbers { display: flex; gap: 4px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

@media (max-width: 1024px) { .avatar-pet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .avatar-pet-grid { grid-template-columns: 1fr; }
    .avatar-filter-form { flex-direction: column; }
    .avatar-filter-form .filter-group { width: 100%; }
    .avatar-filter-form input,
    .avatar-filter-form select { width: 100%; }
    .filter-actions { width: 100%; }
    .filter-actions .btn { flex: 1; }
}

/* ===== AVATAR CROP ===== */
.avatar-crop-container { padding: 20px; max-width: 1400px; margin: 0 auto; }
.avatar-crop-container h1 { color: var(--text-primary); margin-bottom: 10px; }
.avatar-crop-container .subtitle { color: var(--text-secondary); margin-bottom: 30px; }

.crop-layout { display: grid; grid-template-columns: 1fr 350px; gap: 30px; margin-top: 20px; }
.crop-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
}
.image-container {
    width: 100%;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cropper-image { max-width: 100%; max-height: 600px; display: block; }

.preview-panel { display: flex; flex-direction: column; gap: 20px; }
.preview-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.preview-section h3 { color: var(--text-primary); margin: 0 0 15px 0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.avatar-preview {
    width: 200px;
    height: 200px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden;
}
.avatar-preview canvas { width: 200px; height: 200px; display: block; }
.preview-hint { color: var(--text-secondary); font-size: 12px; text-align: center; margin: 0; }

.controls-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.controls-section .btn { width: 100%; text-align: center; padding: 10px 15px; font-size: 14px; }

.status-message { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 13px; text-align: center; display: none; }
.status-message.info { background: var(--color-info-bg); color: var(--color-info-text); display: block; }
.status-message.success { background: var(--color-success-bg); color: var(--color-success-text); display: block; }
.status-message.error { background: var(--color-error-bg); color: var(--color-error-text); display: block; }

.cropper-canvas, .cropper-drag-box { background: var(--bg-subtle); }
.cropper-crop-box { border: 2px dashed var(--border-color); }
.cropper-face { background: rgba(0, 0, 0, 0.1); }
.cropper-line { background: var(--color-info-bg); }
.cropper-point { background: var(--color-info-bg); box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); }

@media (max-width: 768px) {
    .crop-layout { grid-template-columns: 1fr; gap: 20px; }
    .image-container { max-height: 400px; }
    .cropper-image { max-height: 400px; }
    .preview-panel { order: -1; }
    .controls-section .btn { width: 100%; }
}
