/* ============================================
   文档智能重排版工具 - 样式表
   Design: 墨白设计语言
   ============================================ */

/* CSS Variables - Dark (default) */
:root {
    --bg-deep: #0d1117;
    --bg-card: #161b22;
    --bg-hover: #21262d;
    --bg-input: #0d1117;
    --border: #30363d;
    --border-focus: #58a6ff;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-orange: #d29922;
    --accent-red: #f85149;
    --accent-purple: #a371f7;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
}

/* Light Theme */
:root[data-theme="light"] {
    --bg-deep: #f6f8fa;
    --bg-card: #ffffff;
    --bg-hover: #eaeef2;
    --bg-input: #ffffff;
    --border: #d0d7de;
    --border-focus: #0969da;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --text-muted: #8b949e;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-blue: #0969da;
    --accent-green: #1a7f37;
    --accent-orange: #9a6700;
    --accent-red: #cf222e;
    --accent-purple: #8250df;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Theme toggle button */
.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--border);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   Header
   ============================================ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-blue);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.api-key-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.api-key-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.api-key-btn svg {
    width: 18px;
    height: 18px;
}

.api-key-btn .key-set {
    color: var(--accent-green);
}

/* ============================================
   Main Layout
   ============================================ */
.main {
    display: flex;
    flex: 1;
    gap: 24px;
    padding: 24px;
    overflow: hidden;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Left Panel */
.panel-left {
    width: 360px;
    flex-shrink: 0;
}

/* Right Panel */
.panel-right {
    flex: 1;
    min-width: 0;
}

/* ============================================
   Upload Zone
   ============================================ */
.upload-zone {
    padding: 32px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.upload-zone:hover {
    background: rgba(88, 166, 255, 0.03);
}

.upload-zone.dragover {
    background: rgba(88, 166, 255, 0.08);
    border-color: var(--accent-blue);
}

.upload-zone.dragover .upload-icon {
    transform: scale(1.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    width: 56px;
    height: 56px;
    padding: 16px;
    background: var(--bg-hover);
    border: 2px dashed var(--border);
    border-radius: 50%;
    color: var(--accent-blue);
    transition: all var(--transition-normal);
}

.upload-zone:hover .upload-icon {
    border-color: var(--accent-blue);
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.upload-formats {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 12px;
    background: var(--bg-hover);
    border-radius: 20px;
}

/* ============================================
   Clipboard Import Bar
   ============================================ */
.clipboard-import-bar {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.clipboard-import-bar .file-list-action-btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   File List
   ============================================ */
.file-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.file-list-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.file-list-header-actions {
    display: flex;
    gap: 8px;
}

.file-list-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-list-action-btn.import-btn {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.file-list-action-btn.import-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.file-list-action-btn.clear-btn {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.file-list-action-btn.clear-btn:hover {
    background: rgba(248, 81, 73, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.file-list-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.file-list-items::-webkit-scrollbar {
    width: 6px;
}

.file-list-items::-webkit-scrollbar-track {
    background: transparent;
}

.file-list-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    animation: fadeIn 0.3s ease;
}

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

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

.file-item.active {
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid var(--accent-blue);
}

.file-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon.docx {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-blue);
}

.file-icon.xlsx {
    background: rgba(63, 185, 80, 0.15);
    color: var(--accent-green);
}

.file-icon.md {
    background: rgba(163, 113, 247, 0.15);
    color: var(--accent-purple);
}

.file-icon svg {
    width: 100%;
    height: 100%;
}

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

.file-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.file-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
}

.file-item:hover .file-remove {
    opacity: 1;
}

.file-remove:hover {
    background: rgba(248, 81, 73, 0.15);
    color: var(--accent-red);
}

.file-remove svg {
    width: 16px;
    height: 16px;
}

.file-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.file-list-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.file-list-empty p {
    font-size: 0.875rem;
}

/* File List Footer */
.file-list-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.preview-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-hover);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.preview-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.preview-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.preview-tab svg {
    width: 16px;
    height: 16px;
}

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

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

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

/* ============================================
   Preview Content
   ============================================ */
.preview-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.preview-pane {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
}

.preview-pane.active {
    display: flex;
}

.editor-wrapper,
.preview-wrapper {
    flex: 1;
    overflow: auto;
    padding: 24px;
}

.editor-wrapper::-webkit-scrollbar,
.preview-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.editor-wrapper::-webkit-scrollbar-track,
.preview-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.editor-wrapper::-webkit-scrollbar-thumb,
.preview-wrapper::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.editor {
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-primary);
    resize: none;
    transition: border-color var(--transition-fast);
}

.editor:focus {
    outline: none;
    border-color: var(--accent-blue);
}

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

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Markdown Body Styles
   ============================================ */
.markdown-body {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.markdown-body h1 {
    font-size: 1.75rem;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--border);
}

.markdown-body h2 {
    font-size: 1.4rem;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--border);
}

.markdown-body h3 {
    font-size: 1.15rem;
}

.markdown-body h4 {
    font-size: 1rem;
}

.markdown-body p {
    margin-bottom: 1em;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.markdown-body li {
    margin-bottom: 0.4em;
}

.markdown-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 0.2em 0.4em;
    background: var(--bg-hover);
    border-radius: 4px;
    color: var(--accent-orange);
}

.markdown-body pre {
    margin-bottom: 1em;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.markdown-body pre code {
    padding: 0;
    background: none;
    color: var(--text-primary);
}

.markdown-body blockquote {
    margin-bottom: 1em;
    padding: 0.5em 1em;
    border-left: 4px solid var(--accent-blue);
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.markdown-body table {
    width: 100%;
    margin-bottom: 1em;
    border-collapse: collapse;
    font-size: 0.9em;
}

.markdown-body th,
.markdown-body td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.markdown-body th {
    background: var(--bg-hover);
    font-weight: 600;
}

.markdown-body tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.markdown-body hr {
    margin: 2em 0;
    border: none;
    border-top: 1px solid var(--border);
}

.markdown-body a {
    color: var(--accent-blue);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

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

.btn-primary:disabled {
    background: var(--border);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

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

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ============================================
   Stream Progress Bar
   ============================================ */
.stream-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 12px 24px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.stream-bar.active {
    transform: translateY(0);
}

.stream-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
    flex-shrink: 0;
}

.stream-bar-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-bar-stop {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.stream-bar-stop:hover {
    background: rgba(248, 81, 73, 0.15);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.stream-bar-stop svg {
    width: 12px;
    height: 12px;
}

.stream-bar-progress {
    height: 3px;
    background: var(--bg-hover);
    border-radius: 2px;
    overflow: hidden;
}

.stream-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stream-bar-fill.indeterminate {
    width: 30%;
    animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.modal {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 24px;
}

.modal-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

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

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

/* API Guide */
.api-guide {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.api-guide-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.api-guide-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.api-guide-steps a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.api-guide-steps a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.api-guide-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--accent-green);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

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

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

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

.toast.leaving {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--accent-green);
}

.toast.error .toast-icon {
    color: var(--accent-red);
}

.toast.info .toast-icon {
    color: var(--accent-blue);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .main {
        flex-direction: column;
    }

    .panel-left {
        width: 100%;
        max-height: 300px;
    }

    .upload-zone {
        padding: 24px;
    }

    .file-list {
        max-height: 180px;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 12px 16px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .main {
        padding: 16px;
        gap: 16px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .preview-tabs {
        flex: 1;
    }

    .preview-tab {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .preview-tab span {
        display: none;
    }
}
