/* immo.vity.care — Floor Plan Digitizer — R+Z Branding */

@font-face {
    font-family: 'Optima';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Optima-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Optima';
    font-style: italic;
    font-weight: 400;
    src: url('/fonts/Optima-Italic.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Optima';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Optima-Bold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 100 900;
    src: url('/fonts/PlayfairDisplay-Variable.woff2') format('woff2');
    font-display: swap;
}

:root {
    --bg: #1a1a1a;
    --surface: #242424;
    --surface-2: #2e2e2e;
    --border: #3a3a3a;
    --border-hover: #4a4a4a;
    --text: #F1EEE6;
    --text-muted: #9a9589;
    --accent: #CBB492;
    --accent-hover: #d4c2a0;
    --accent-dim: rgba(203, 180, 146, 0.12);
    --accent-dark: #877145;
    --accent-mid: #a8956e;
    --success: #7dba6a;
    --error: #d4564e;
    --warning: #dec187;
    --radius: 12px;
    --radius-sm: 8px;
    --font-body: 'Optima', Optima, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    font-synthesis: weight style;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

/* Header */
.header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 28px;
    width: auto;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.header h1 span {
    color: var(--accent);
}

.content-panel h2, .modal h3 {
    font-family: var(--font-heading);
}

.header-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Layout */
.app {
    display: grid;
    grid-template-columns: 400px 1fr;
    height: calc(100vh - 65px);
}

/* Sidebar */
.sidebar {
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--success);
    padding: 12px;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.upload-text {
    font-size: 14px;
    color: var(--text-muted);
}

.upload-text strong {
    color: var(--accent);
}

.paste-btn {
    margin-top: 10px;
}

.upload-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.upload-zone input[type="file"] {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-mid), var(--accent-dark));
    color: #1a1a1a;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent), var(--accent-mid));
}

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

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--border);
}

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

/* Sections */
.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.section-header {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.section-body {
    padding: 16px 18px;
}

/* Notes textarea */
.notes-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px 14px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.notes-input::placeholder {
    color: var(--text-muted);
}

.notes-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Room list */
.room-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.room-item:hover {
    background: var(--border);
}

.room-item.active {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.room-item .room-name {
    font-weight: 500;
}

.room-item .room-area {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Canvas area */
.canvas-area {
    position: relative;
    overflow: hidden;
    background: #0d0d14;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-area svg {
    max-width: 90%;
    max-height: 90%;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}

.empty-state .icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

/* Loading */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Export bar */
.export-bar {
    display: flex;
    gap: 8px;
}

.export-bar .btn {
    flex: 1;
}

/* Status message */
.status {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: none;
}

.status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

/* Room type colors */
.room-bedroom { fill: #dbeafe; stroke: #3b82f6; }
.room-living { fill: #fef3c7; stroke: #f59e0b; }
.room-kitchen { fill: #dcfce7; stroke: #22c55e; }
.room-bathroom, .room-wc { fill: #e0e7ff; stroke: #6366f1; }
.room-hallway { fill: #f3f4f6; stroke: #9ca3af; }
.room-terrace, .room-balcony { fill: #ecfdf5; stroke: #10b981; }
.room-storage { fill: #f5f5f4; stroke: #a8a29e; }
.room-dining { fill: #fff7ed; stroke: #f97316; }

/* SVG text styles */
.room-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: #1f2937;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

.area-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 11px;
    fill: #6b7280;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
}

.dimension-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 9px;
    fill: #9ca3af;
    text-anchor: middle;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: none;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 4px;
}

.login-card h1 span {
    color: var(--accent);
}

.login-sub {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-card input {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
}

.login-card input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Ensure password dots are visible on dark backgrounds */
input[type="password"] {
    color: var(--text);
    -webkit-text-security: disc;
}

/* Header with nav */
.header {
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Step navigation */
.nav-steps {
    display: flex;
    align-items: center;
    gap: 4px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}

.step-item.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.step-item:hover:not(.disabled) { color: var(--text); background: var(--surface-2); }
.step-item.active { color: var(--accent); background: var(--accent-dim); }
.step-item.active .step-num { background: var(--accent); color: var(--bg); }
.step-item.completed { color: var(--success); }
.step-item.completed .step-num { background: var(--success); color: #fff; }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: var(--border);
    color: var(--text-muted);
}

.step-arrow {
    color: var(--border);
    font-size: 16px;
    margin: 0 2px;
}

.step-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 8px;
}

/* Regular nav items (Verlauf) */
.nav-item {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
}

.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.active { color: var(--accent); background: var(--accent-dim); }

/* Icon nav (settings, users) */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
}

.nav-icon:hover { color: var(--text); background: var(--surface-2); }
.nav-icon.active { color: var(--accent); background: var(--accent-dim); }

.user-badge {
    font-size: 13px;
    color: var(--text-muted);
}

.user-badge small {
    opacity: 0.6;
}

/* Main layout */
.main-content {
    height: calc(100vh - 56px);
    overflow: hidden;
}

.app-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    height: 100%;
}

/* Upload phase — centered */
.upload-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
}

.upload-centered {
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-centered h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    text-align: center;
}

.upload-centered .hint-text {
    text-align: center;
    margin-bottom: 8px;
}

/* Correction phase — 3 columns */
.correction-phase {
    height: 100%;
}

.correction-layout {
    display: grid;
    grid-template-columns: 1fr 380px 1fr;
    height: 100%;
    gap: 0;
}

.panel-label {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.scan-panel {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scan-container {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--bg);
}

.scan-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.correction-panel {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
}

.correction-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.correction-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.result-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.result-panel .canvas-area {
    flex: 1;
}

/* Content panel (for history, admin) */
.content-panel {
    padding: 40px 32px;
    overflow-y: auto;
    height: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.content-panel.wide {
    max-width: 1100px;
}

.content-panel h2 {
    font-size: 22px;
    margin-bottom: 24px;
}

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

.panel-header h2 { margin-bottom: 0; }

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
    background: var(--surface);
}

.data-table .actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Badges */
.badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin { background: var(--accent-dim); color: var(--accent); }
.badge-user { background: rgba(34,197,94,0.1); color: var(--success); }
.badge-uploaded { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-analyzing { background: var(--accent-dim); color: var(--accent); }
.badge-correcting { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-completed { background: rgba(34,197,94,0.1); color: var(--success); }
.badge-failed { background: rgba(239,68,68,0.1); color: var(--error); }

/* Settings */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 700px;
}

.setting-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.setting-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.setting-info label {
    font-size: 13px;
    font-weight: 600;
    font-family: monospace;
}

.setting-info small {
    color: var(--text-muted);
    font-size: 12px;
}

.setting-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.setting-field {
    flex: 1;
    min-height: 0;
    padding: 10px 14px;
    font-size: 14px;
    font-family: monospace;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 440px;
}

.modal h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal input, .modal select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
}

.modal input:focus, .modal select:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* Uncertainty list */
.uncertainty-list {
    list-style: none;
    font-size: 12px;
    color: var(--warning);
}

.uncertainty-item {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.uncertainty-item::before {
    content: '⚠ ';
}

/* Danger button */
.btn-danger {
    border-color: rgba(239,68,68,0.3);
    color: var(--error);
}

.btn-danger:hover {
    background: rgba(239,68,68,0.1);
    border-color: var(--error);
}

/* Room editor */
.room-edit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-edit-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.room-edit-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.room-edit-item.no-label {
    border-color: var(--warning);
    border-style: dashed;
}

.room-edit-header select {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    padding: 6px 8px;
    font-size: 13px;
    font-family: inherit;
}

.room-edit-header select:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
}

.btn-icon:hover {
    background: rgba(239,68,68,0.15);
    color: var(--error);
}

.room-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.field-group label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field-group input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    padding: 6px 8px;
    font-size: 13px;
    font-family: inherit;
}

.field-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Confidence badges */
.conf-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
}

.conf-high { background: rgba(34,197,94,0.15); color: var(--success); }
.conf-med  { background: rgba(245,158,11,0.15); color: var(--warning); }
.conf-low  { background: rgba(239,68,68,0.15); color: var(--error); }

.hint-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-text {
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

/* Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 24px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 50;
}

/* Export layout */
.export-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    height: 100%;
}

.export-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
}

.export-sidebar {
    padding: 32px 24px;
    border-left: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.export-sidebar h2 {
    font-family: var(--font-heading);
    font-size: 20px;
}

.export-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.info-row span:first-child {
    color: var(--text-muted);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: var(--success);
    color: #fff;
}

.toast-error {
    background: var(--error);
    color: #fff;
}

/* Responsive — Tablet */
@media (max-width: 1100px) {
    .correction-layout {
        grid-template-columns: 1fr 1fr;
    }
    .scan-panel { display: none; }
    .export-layout { grid-template-columns: 1fr 280px; }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .header-left {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }
    .header h1 { font-size: 16px; }
    .header-logo { height: 22px; }
    .nav-steps { overflow-x: auto; flex-wrap: nowrap; }
    .step-item { font-size: 12px; padding: 4px 8px; white-space: nowrap; }
    .step-arrow { font-size: 12px; }
    .header-right { width: 100%; justify-content: flex-end; }

    .main-content { height: calc(100vh - 90px); }

    .correction-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .scan-panel { display: none; }
    .correction-panel { max-height: 50vh; }
    .result-panel { min-height: 300px; }

    .export-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    .export-sidebar {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 20px 16px;
    }

    .upload-centered { max-width: 100%; padding: 0 16px; }
    .upload-zone { padding: 24px 16px; }
    .content-panel { padding: 20px 16px; }
    .data-table { font-size: 12px; }
    .data-table .actions { flex-direction: column; }
    .setting-info { flex-direction: column; }
    .setting-input { flex-direction: column; }
    .setting-field { width: 100%; }

    .app-footer { padding: 6px 16px; font-size: 10px; }
}
