| :root { |
| color-scheme: light dark; |
| --side-pad: max(16px, env(safe-area-inset-left)); |
| --side-pad-r: max(16px, env(safe-area-inset-right)); |
| --safe-bottom: max(16px, env(safe-area-inset-bottom)); |
| --safe-top: max(16px, env(safe-area-inset-top)); |
|
|
| |
| --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif; |
| --font-chinese: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif; |
| --size-title: clamp(22px, 3.2vw, 28px); |
| --size-sub: clamp(17px, 2vw, 20px); |
| --size-body: 16px; |
| --size-caption: 13px; |
|
|
| |
| --bg: #ffffff; |
| --surface: #ffffff; |
| --surface-secondary: #f6f8fa; |
| --surface-tertiary: #f1f3f4; |
|
|
| |
| --text-primary: #24292f; |
| --text-secondary: #57606a; |
| --text-tertiary: #656d76; |
| --text-muted: #8c959f; |
|
|
| |
| --border-light: #d0d7de; |
| --border-medium: #afb8c1; |
| --border-strong: #8c959f; |
|
|
| |
| --brand-primary: #007AFF; |
| --brand-secondary: #5AC8FA; |
| --brand-tertiary: #64D2FF; |
| --brand-bg: color-mix(in oklab, #007AFF 12%, Canvas 88%); |
| --brand-hover: #005FCC; |
|
|
| |
| --success: #34C759; |
| --success-bg: color-mix(in oklab, #34C759 12%, Canvas 88%); |
| --danger: #FF3B30; |
| --danger-bg: color-mix(in oklab, #FF3B30 12%, Canvas 88%); |
| --warning: #FF9500; |
| --warning-bg: color-mix(in oklab, #FF9500 12%, Canvas 88%); |
| --info: #007AFF; |
| --info-bg: color-mix(in oklab, #007AFF 12%, Canvas 88%); |
|
|
| |
| --shadow-xs: 0 1px 2px 0 color-mix(in oklab, CanvasText 8%, transparent); |
| --shadow-sm: 0 1px 3px 0 color-mix(in oklab, CanvasText 12%, transparent), 0 1px 2px -1px color-mix(in oklab, CanvasText 8%, transparent); |
| --shadow-md: 0 4px 6px -1px color-mix(in oklab, CanvasText 15%, transparent), 0 2px 4px -2px color-mix(in oklab, CanvasText 12%, transparent); |
| --shadow-lg: 0 10px 15px -3px color-mix(in oklab, CanvasText 18%, transparent), 0 4px 6px -4px color-mix(in oklab, CanvasText 15%, transparent); |
| --shadow-strong: 0 12px 30px color-mix(in oklab, CanvasText 25%, transparent); |
|
|
| |
| --spacing-1: 4px; |
| --spacing-2: 8px; |
| --spacing-3: 12px; |
| --spacing-4: 16px; |
| --spacing-5: 20px; |
| --spacing-6: 24px; |
| --spacing-8: 32px; |
| --spacing-10: 40px; |
| --spacing-12: 48px; |
|
|
| |
| --radius-xs: 4px; |
| --radius-sm: 6px; |
| --radius-md: 8px; |
| --radius-lg: 10px; |
| --radius-xl: 12px; |
| --radius-xxl: 16px; |
|
|
| |
| --ease-standard: cubic-bezier(0.42, 0, 0.58, 1); |
| --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1); |
| --ease-in: cubic-bezier(0.42, 0, 1, 1); |
| --ease-interactive: cubic-bezier(0.4, 0, 0.2, 1); |
| } |
|
|
| @media (prefers-color-scheme: dark) { |
| :root { |
| |
| --bg: #0d1117; |
| --surface: #21262d; |
| --surface-secondary: #30363d; |
| --surface-tertiary: #484f58; |
|
|
| |
| --text-primary: #f6f8fa; |
| --text-secondary: #c9d1d9; |
| --text-tertiary: #8b949e; |
| --text-muted: #6e7681; |
|
|
| |
| --border-light: #30363d; |
| --border-medium: #21262d; |
| --border-strong: #484f58; |
|
|
| |
| --brand-primary: #0A84FF; |
| --brand-secondary: #64D2FF; |
| --brand-tertiary: #40A7FF; |
| --brand-bg: color-mix(in oklab, #0A84FF 15%, Canvas 85%); |
| --brand-hover: #409CFF; |
|
|
| |
| --success: #3fb950; |
| --success-bg: #033a16; |
| --danger: #f85149; |
| --danger-bg: #490202; |
| --warning: #d29922; |
| --warning-bg: #341a00; |
| --info: #58a6ff; |
| --info-bg: #0c2d6b; |
| } |
| } |
|
|
| |
| :root[data-theme="dark"] { |
| |
| --bg: #0d1117; |
| --surface: #21262d; |
| --surface-secondary: #30363d; |
| --surface-tertiary: #484f58; |
|
|
| |
| --text-primary: #f6f8fa; |
| --text-secondary: #c9d1d9; |
| --text-tertiary: #8b949e; |
| --text-muted: #6e7681; |
|
|
| |
| --border-light: #30363d; |
| --border-medium: #21262d; |
| --border-strong: #484f58; |
|
|
| |
| --brand-primary: #0A84FF; |
| --brand-secondary: #64D2FF; |
| --brand-tertiary: #40A7FF; |
| --brand-bg: color-mix(in oklab, #0A84FF 15%, Canvas 85%); |
| --brand-hover: #409CFF; |
|
|
| |
| --success: #3fb950; |
| --success-bg: #033a16; |
| --danger: #f85149; |
| --danger-bg: #490202; |
| --warning: #d29922; |
| --warning-bg: #341a00; |
| --info: #58a6ff; |
| --info-bg: #0c2d6b; |
| } |
|
|
| * { |
| margin: 0; |
| padding: 0; |
| box-sizing: border-box; |
| } |
|
|
| body { |
| font-family: var(--font-sans); |
| background: var(--bg); |
| color: var(--text-primary); |
| min-height: 100vh; |
| min-height: 100svh; |
| min-height: 100dvh; |
| overflow: auto; |
| line-height: 1.6; |
| -webkit-font-smoothing: antialiased; |
| -moz-osx-font-smoothing: grayscale; |
| font-size: var(--size-body); |
| letter-spacing: -0.01em; |
| } |
|
|
| |
| h1, h2, h3, h4, h5, h6 { |
| font-family: var(--font-chinese); |
| font-weight: 600; |
| letter-spacing: 0.02em; |
| line-height: 1.7; |
| margin: 0; |
| } |
|
|
| h1 { font-size: var(--size-title); font-weight: 700; } |
| h2 { font-size: var(--size-sub); font-weight: 600; } |
| h3 { font-size: var(--size-body); font-weight: 600; } |
|
|
| label, .meta { |
| font-size: var(--size-caption); |
| color: var(--text-tertiary); |
| font-weight: 500; |
| } |
|
|
| |
| .app-container { |
| display: grid; |
| grid-template-columns: minmax(320px, 420px) 1fr; |
| min-height: 100vh; |
| min-height: 100svh; |
| min-height: 100dvh; |
| background: var(--bg); |
| gap: clamp(12px, 2vw, 32px); |
| padding: clamp(12px, 3vw, 24px); |
| padding-left: max(clamp(12px, 3vw, 24px), env(safe-area-inset-left)); |
| padding-right: max(clamp(12px, 3vw, 24px), env(safe-area-inset-right)); |
| padding-top: max(clamp(12px, 3vw, 24px), env(safe-area-inset-top)); |
| padding-bottom: max(clamp(12px, 3vw, 24px), env(safe-area-inset-bottom)); |
| } |
|
|
| |
| .left-panel { |
| background: var(--surface); |
| border: 1px solid var(--border-light); |
| border-radius: var(--radius-xl); |
| overflow: hidden; |
| box-shadow: var(--shadow-sm); |
| display: flex; |
| flex-direction: column; |
| min-width: 0; |
| } |
|
|
| .left-panel header { |
| background: var(--surface); |
| border-bottom: 1px solid var(--border-light); |
| color: var(--text-primary); |
| padding: var(--spacing-6); |
| text-align: center; |
| position: sticky; |
| top: 0; |
| z-index: 10; |
| } |
|
|
| .left-panel header h1 { |
| font-size: 20px; |
| font-weight: 600; |
| margin-bottom: var(--spacing-1); |
| color: var(--text-primary); |
| } |
|
|
| .subtitle { |
| font-size: 13px; |
| color: var(--text-secondary); |
| font-weight: 400; |
| } |
|
|
| .controls-section { |
| padding: var(--spacing-6); |
| flex: 1; |
| overflow-y: auto; |
| -webkit-overflow-scrolling: touch; |
| scrollbar-gutter: stable; |
| overscroll-behavior: contain; |
| } |
|
|
| |
| .right-panel { |
| background: var(--surface); |
| border: 1px solid var(--border-light); |
| border-radius: var(--radius-xl); |
| color: var(--text-primary); |
| display: flex; |
| flex-direction: column; |
| overflow: hidden; |
| box-shadow: var(--shadow-sm); |
| min-width: 0; |
| } |
|
|
| .history-header { |
| background: var(--surface); |
| border-bottom: 1px solid var(--border-light); |
| padding: var(--spacing-4) var(--spacing-6); |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| position: sticky; |
| top: 0; |
| z-index: 10; |
| backdrop-filter: blur(16px) saturate(1.2); |
| -webkit-backdrop-filter: blur(16px) saturate(1.2); |
| background: color-mix(in oklab, var(--surface) 85%, transparent); |
| border-bottom: 1px solid color-mix(in oklab, var(--border-light) 60%, transparent); |
| } |
|
|
| .history-header h2 { |
| font-size: 16px; |
| font-weight: 600; |
| color: var(--text-primary); |
| margin: 0; |
| } |
|
|
| .history-controls { |
| display: flex; |
| gap: var(--spacing-2); |
| } |
|
|
| .history-btn { |
| background: var(--surface-secondary); |
| color: var(--text-secondary); |
| border: 1px solid var(--border-light); |
| padding: var(--spacing-2) var(--spacing-3); |
| border-radius: var(--radius-md); |
| cursor: pointer; |
| font-size: 13px; |
| font-weight: 500; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| } |
|
|
| .history-btn:hover { |
| background: var(--surface-tertiary); |
| color: var(--text-primary); |
| border-color: var(--border-medium); |
| } |
|
|
| |
| .history-tabs { |
| display: flex; |
| background: var(--surface-secondary); |
| border-bottom: 1px solid var(--border-light); |
| padding: var(--spacing-1); |
| gap: var(--spacing-1); |
| } |
|
|
| .tab-btn { |
| flex: 1; |
| min-height: 44px; |
| padding: var(--spacing-3) var(--spacing-4); |
| background: transparent; |
| color: var(--text-secondary); |
| border: none; |
| border-radius: var(--radius-md); |
| cursor: pointer; |
| font-size: 14px; |
| font-weight: 500; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| } |
|
|
| .tab-btn:hover { |
| background: var(--surface-tertiary); |
| color: var(--text-primary); |
| } |
|
|
| .tab-btn.active { |
| color: var(--brand-primary); |
| background: var(--brand-bg); |
| border: 1px solid var(--brand-primary); |
| } |
|
|
| .tab-content { |
| display: none; |
| flex: 1; |
| overflow-y: auto; |
| -webkit-overflow-scrolling: touch; |
| scrollbar-gutter: stable; |
| overscroll-behavior: contain; |
| padding: var(--spacing-6); |
| } |
|
|
| .tab-content.active { |
| display: block; |
| } |
|
|
| |
| .results-grid { |
| display: flex; |
| flex-direction: column; |
| gap: 25px; |
| align-items: center; |
| } |
|
|
| .results-grid .generation-item { |
| width: 100%; |
| max-width: 800px; |
| min-height: 400px; |
| } |
|
|
| .results-grid .generation-item img { |
| width: 100%; |
| height: auto; |
| max-height: 600px; |
| object-fit: contain; |
| } |
|
|
| |
| .history-grid { |
| display: grid; |
| grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); |
| gap: clamp(12px, 1vw, 16px); |
| padding: var(--spacing-1); |
| } |
|
|
| .history-grid .generation-item { |
| max-height: 250px; |
| } |
|
|
| .history-grid .generation-item img { |
| max-height: 200px; |
| object-fit: cover; |
| } |
|
|
| .generation-item { |
| position: relative; |
| border-radius: var(--radius-lg); |
| overflow: hidden; |
| background: var(--surface); |
| border: 1px solid var(--border-light); |
| cursor: pointer; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| box-shadow: var(--shadow-xs); |
| } |
|
|
| .generation-item:hover { |
| border-color: var(--brand-primary); |
| box-shadow: var(--shadow-md); |
| } |
|
|
| .generation-item img { |
| width: 100%; |
| height: auto; |
| display: block; |
| } |
|
|
| .generation-meta { |
| padding: var(--spacing-3); |
| background: var(--surface-secondary); |
| border-top: 1px solid var(--border-light); |
| font-size: 12px; |
| color: var(--text-secondary); |
| } |
|
|
| .generation-meta .timestamp { |
| display: block; |
| margin-bottom: var(--spacing-1); |
| font-weight: 500; |
| color: var(--text-tertiary); |
| } |
|
|
| .generation-meta .prompt-preview { |
| display: block; |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| color: var(--text-secondary); |
| line-height: 1.3; |
| } |
|
|
| |
| .generation-footer { |
| position: absolute; |
| bottom: 0; |
| left: 0; |
| right: 0; |
| background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%); |
| padding: var(--spacing-3) var(--spacing-2); |
| backdrop-filter: blur(8px); |
| -webkit-backdrop-filter: blur(8px); |
| display: flex; |
| flex-direction: column; |
| gap: var(--spacing-2); |
| opacity: 0; |
| transition: opacity 0.2s ease; |
| } |
|
|
| .generation-item:hover .generation-footer { |
| opacity: 1; |
| } |
|
|
| |
| @media (hover: none) and (pointer: coarse) { |
| .generation-footer { |
| opacity: 1; |
| background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%); |
| } |
| } |
|
|
| .generation-timestamp { |
| font-size: 11px; |
| color: rgba(255, 255, 255, 0.9); |
| font-weight: 500; |
| text-align: center; |
| } |
|
|
| .generation-actions-bar { |
| display: flex; |
| justify-content: center; |
| gap: var(--spacing-2); |
| } |
|
|
| .action-icon { |
| width: 40px; |
| height: 40px; |
| min-width: 40px; |
| min-height: 40px; |
| border: none; |
| background: rgba(255, 255, 255, 0.2); |
| backdrop-filter: blur(8px); |
| -webkit-backdrop-filter: blur(8px); |
| border-radius: var(--radius-md); |
| cursor: pointer; |
| font-size: 18px; |
| color: white; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .action-icon:hover { |
| background: rgba(255, 255, 255, 0.35); |
| transform: scale(1.1); |
| } |
|
|
| .action-icon:active { |
| transform: scale(0.95); |
| } |
|
|
| |
| .textarea-size-controls { |
| display: flex; |
| gap: 4px; |
| } |
|
|
| .size-control-btn { |
| width: 28px; |
| height: 28px; |
| border: 1px solid var(--border-medium); |
| background: var(--surface); |
| border-radius: var(--radius-sm); |
| color: var(--text-secondary); |
| font-size: 14px; |
| font-weight: 500; |
| cursor: pointer; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| user-select: none; |
| } |
|
|
| .size-control-btn:hover { |
| background: var(--brand-primary); |
| color: white; |
| border-color: var(--brand-primary); |
| transform: scale(1.05); |
| } |
|
|
| .size-control-btn:active { |
| transform: scale(0.95); |
| } |
|
|
| |
| @media (max-width: 768px) { |
| .size-control-btn { |
| width: 32px; |
| height: 32px; |
| font-size: 16px; |
| } |
|
|
| .textarea-size-controls { |
| gap: 6px; |
| } |
|
|
| .form-group textarea { |
| font-size: 16px; |
| } |
| } |
|
|
| |
| @media (max-width: 380px) { |
| .prompt-with-action { |
| flex-direction: column; |
| } |
|
|
| .generate-btn-inline { |
| min-height: 50px; |
| width: 100%; |
| flex-direction: row; |
| } |
|
|
| .prompt-with-action textarea { |
| min-height: 100px; |
| } |
| } |
|
|
| |
| |
| |
|
|
| |
| .prompt-mode { |
| transition: opacity 0.3s var(--ease-out), |
| transform 0.3s var(--ease-out); |
| } |
|
|
| |
| .prompt-with-action { |
| display: flex; |
| gap: var(--spacing-3); |
| align-items: flex-start; |
| } |
|
|
| .prompt-with-action textarea { |
| flex: 1; |
| min-height: 120px; |
| font-size: 16px; |
| } |
|
|
| .generate-btn-inline { |
| min-height: 120px; |
| min-width: 80px; |
| padding: var(--spacing-3) var(--spacing-4); |
| background: var(--brand-primary); |
| color: white; |
| border: none; |
| border-radius: var(--radius-lg); |
| font-size: 16px; |
| font-weight: 600; |
| cursor: pointer; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| display: flex; |
| flex-direction: column; |
| align-items: center; |
| justify-content: center; |
| gap: var(--spacing-2); |
| box-shadow: var(--shadow-md); |
| white-space: nowrap; |
| } |
|
|
| .generate-btn-inline:hover { |
| background: var(--brand-hover); |
| transform: translateY(-2px); |
| box-shadow: var(--shadow-lg); |
| } |
|
|
| .generate-btn-inline:active { |
| transform: translateY(0); |
| } |
|
|
| .generate-btn-inline:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| background: var(--text-muted); |
| } |
|
|
| .generate-btn-inline .spinner { |
| width: 18px; |
| height: 18px; |
| border: 2px solid rgba(255, 255, 255, 0.3); |
| border-top-color: white; |
| border-radius: 50%; |
| animation: spin 1s linear infinite; |
| } |
|
|
| |
| .sde-module { |
| padding: var(--spacing-4); |
| background: var(--surface-secondary); |
| border-radius: var(--radius-md); |
| border: 1px solid var(--border-light); |
| margin-bottom: var(--spacing-4); |
| } |
|
|
| .sde-module:last-child { |
| margin-bottom: 0; |
| } |
|
|
| .sde-module label { |
| font-weight: 600; |
| color: var(--text-primary); |
| font-size: var(--size-sub); |
| margin-bottom: var(--spacing-2); |
| } |
|
|
| |
| .sde-module select { |
| width: 100%; |
| padding: var(--spacing-3); |
| border: 1px solid var(--border-medium); |
| border-radius: var(--radius-sm); |
| background: var(--surface); |
| color: var(--text-primary); |
| font-size: var(--size-body); |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| } |
|
|
| .sde-module select:focus { |
| outline: none; |
| border-color: var(--brand-primary); |
| box-shadow: 0 0 0 3px var(--brand-bg); |
| } |
|
|
| |
| .sde-module textarea { |
| width: 100%; |
| padding: var(--spacing-3); |
| border: 1px solid var(--border-medium); |
| border-radius: var(--radius-sm); |
| background: var(--surface); |
| color: var(--text-primary); |
| font-size: var(--size-body); |
| font-family: var(--font-chinese); |
| line-height: 1.6; |
| resize: vertical; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| } |
|
|
| .sde-module textarea:focus { |
| outline: none; |
| border-color: var(--brand-primary); |
| box-shadow: 0 0 0 3px var(--brand-bg); |
| } |
|
|
| .sde-module textarea::placeholder { |
| color: var(--text-muted); |
| } |
|
|
| |
| .checkbox-group { |
| display: flex; |
| align-items: center; |
| gap: var(--spacing-2); |
| } |
|
|
| .checkbox-group input[type="checkbox"] { |
| width: 18px; |
| height: 18px; |
| border-radius: 4px; |
| border: 2px solid var(--border-medium); |
| background: var(--surface); |
| cursor: pointer; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| position: relative; |
| } |
|
|
| .checkbox-group input[type="checkbox"]:checked { |
| background: var(--brand-primary); |
| border-color: var(--brand-primary); |
| } |
|
|
| .checkbox-group input[type="checkbox"]:checked::after { |
| content: '✓'; |
| position: absolute; |
| top: 50%; |
| left: 50%; |
| transform: translate(-50%, -50%); |
| color: white; |
| font-size: 12px; |
| font-weight: bold; |
| } |
|
|
| .checkbox-group label { |
| cursor: pointer; |
| user-select: none; |
| font-weight: 500; |
| margin: 0; |
| } |
|
|
| |
| .sde-preview { |
| background: var(--surface-tertiary); |
| border: 2px dashed var(--border-medium); |
| border-radius: var(--radius-lg); |
| padding: var(--spacing-4); |
| } |
|
|
| .prompt-preview-textarea { |
| background: var(--surface); |
| border: 1px solid var(--border-light); |
| color: var(--text-secondary); |
| font-style: italic; |
| cursor: not-allowed; |
| } |
|
|
| .sde-preview label { |
| color: var(--brand-primary); |
| font-weight: 600; |
| } |
|
|
| |
| @media (max-width: 768px) { |
| .sde-module { |
| padding: var(--spacing-3); |
| margin-bottom: var(--spacing-3); |
| } |
|
|
| .sde-module label { |
| font-size: 14px; |
| } |
|
|
| .checkbox-group input[type="checkbox"] { |
| width: 20px; |
| height: 20px; |
| } |
|
|
| .checkbox-group label { |
| font-size: 14px; |
| } |
| } |
|
|
| |
| @media (prefers-color-scheme: dark) { |
| .sde-module { |
| background: rgba(255, 255, 255, 0.03); |
| border-color: rgba(255, 255, 255, 0.1); |
| } |
|
|
| .checkbox-group input[type="checkbox"] { |
| border-color: rgba(255, 255, 255, 0.3); |
| background: rgba(255, 255, 255, 0.05); |
| } |
|
|
| .prompt-preview-textarea { |
| background: rgba(0, 0, 0, 0.2); |
| border-color: rgba(255, 255, 255, 0.1); |
| } |
| } |
|
|
| |
| .empty-state { |
| text-align: center; |
| padding: var(--spacing-12) var(--spacing-6); |
| color: var(--text-tertiary); |
| } |
|
|
| .empty-state p { |
| font-size: 16px; |
| font-weight: 500; |
| margin-bottom: var(--spacing-2); |
| color: var(--text-secondary); |
| } |
|
|
| .empty-state small { |
| font-size: 13px; |
| color: var(--text-tertiary); |
| line-height: 1.4; |
| } |
|
|
| |
| .empty-state-enhanced { |
| text-align: center; |
| padding: var(--spacing-12) var(--spacing-8); |
| background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%); |
| border: 2px dashed var(--border-light); |
| border-radius: var(--radius-xl); |
| max-width: 700px; |
| margin: 0 auto; |
| } |
|
|
| .empty-icon { |
| font-size: 80px; |
| margin-bottom: var(--spacing-6); |
| animation: float 3s ease-in-out infinite; |
| display: inline-block; |
| } |
|
|
| @keyframes float { |
| 0%, 100% { transform: translateY(0); } |
| 50% { transform: translateY(-10px); } |
| } |
|
|
| .empty-state-enhanced h3 { |
| font-size: 24px; |
| font-weight: 600; |
| color: var(--text-primary); |
| margin-bottom: var(--spacing-3); |
| } |
|
|
| .empty-state-enhanced > p { |
| font-size: 16px; |
| color: var(--text-secondary); |
| margin-bottom: var(--spacing-8); |
| line-height: 1.6; |
| } |
|
|
| .quick-examples { |
| margin-bottom: var(--spacing-8); |
| } |
|
|
| .quick-examples h4 { |
| font-size: 16px; |
| font-weight: 600; |
| color: var(--text-primary); |
| margin-bottom: var(--spacing-4); |
| } |
|
|
| .example-prompt { |
| display: inline-block; |
| margin: var(--spacing-2); |
| padding: var(--spacing-3) var(--spacing-5); |
| background: white; |
| border: 2px solid var(--brand-primary); |
| border-radius: var(--radius-lg); |
| cursor: pointer; |
| font-size: 15px; |
| font-weight: 500; |
| color: var(--brand-primary); |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| min-height: 44px; |
| min-width: 44px; |
| } |
|
|
| .example-prompt:hover { |
| background: var(--brand-primary); |
| color: white; |
| transform: translateY(-2px); |
| box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); |
| } |
|
|
| .example-prompt:active { |
| transform: translateY(0); |
| } |
|
|
| .feature-hints { |
| display: flex; |
| gap: var(--spacing-4); |
| justify-content: center; |
| flex-wrap: wrap; |
| } |
|
|
| .feature-hints span { |
| font-size: 14px; |
| color: var(--text-secondary); |
| padding: var(--spacing-2) var(--spacing-4); |
| background: rgba(124, 58, 237, 0.08); |
| border-radius: var(--radius-md); |
| border: 1px solid rgba(124, 58, 237, 0.15); |
| } |
|
|
| @media (max-width: 768px) { |
| .empty-state-enhanced { |
| padding: var(--spacing-8) var(--spacing-4); |
| } |
|
|
| .empty-icon { |
| font-size: 60px; |
| } |
|
|
| .empty-state-enhanced h3 { |
| font-size: 20px; |
| } |
|
|
| .example-prompt { |
| display: block; |
| width: 100%; |
| margin: var(--spacing-2) 0; |
| } |
|
|
| .feature-hints { |
| flex-direction: column; |
| gap: var(--spacing-2); |
| } |
|
|
| .feature-hints span { |
| width: 100%; |
| } |
| } |
|
|
| |
| .generation-info { |
| background: var(--brand-bg); |
| padding: 15px; |
| border-radius: 8px; |
| margin-top: 15px; |
| font-size: 0.85rem; |
| color: #ccc; |
| } |
|
|
| |
| .card { |
| background: var(--surface); |
| border: 1px solid var(--border-light); |
| border-radius: var(--radius-lg); |
| padding: var(--spacing-5); |
| margin-bottom: var(--spacing-4); |
| box-shadow: var(--shadow-xs); |
| transition: border-color 0.2s ease; |
| } |
|
|
| .card-header { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| margin-bottom: var(--spacing-4); |
| } |
|
|
| .card-header h2 { |
| color: var(--text-primary); |
| margin: 0; |
| font-size: 16px; |
| font-weight: 600; |
| } |
|
|
| .settings-toggle-btn { |
| min-height: 44px; |
| min-width: 44px; |
| background: none; |
| border: none; |
| cursor: pointer; |
| color: var(--brand-primary); |
| padding: var(--spacing-1) var(--spacing-2); |
| border-radius: var(--radius-sm); |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .settings-toggle-btn:hover { |
| background: var(--brand-bg); |
| color: var(--brand-hover); |
| } |
|
|
| .settings-toggle-btn:focus-visible { |
| outline: 2px solid var(--brand-primary); |
| outline-offset: 2px; |
| } |
|
|
| .card.collapsed .settings-content { |
| display: none; |
| } |
|
|
| .card.collapsed .toggle-icon { |
| transform: rotate(-90deg); |
| } |
|
|
| .toggle-icon { |
| color: var(--brand-primary); |
| transition: transform 0.3s; |
| font-size: 0.8rem; |
| } |
|
|
| |
| .form-group { |
| margin-bottom: var(--spacing-4); |
| } |
|
|
| .form-group label { |
| display: block; |
| margin-bottom: var(--spacing-2); |
| font-weight: 500; |
| color: var(--text-primary); |
| font-size: 14px; |
| } |
|
|
| .form-group input[type="text"], |
| .form-group input[type="password"], |
| .form-group input[type="number"], |
| .form-group textarea, |
| .form-group select { |
| width: 100%; |
| padding: var(--spacing-3) var(--spacing-3); |
| border: 1px solid var(--border-light); |
| border-radius: var(--radius-md); |
| font-size: 14px; |
| background: var(--surface); |
| color: var(--text-primary); |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| } |
|
|
| .form-group input:focus, |
| .form-group textarea:focus, |
| .form-group select:focus { |
| outline: none; |
| border-color: var(--brand-primary); |
| box-shadow: 0 0 0 3px var(--brand-bg); |
| } |
|
|
| .form-group textarea { |
| resize: vertical; |
| font-family: inherit; |
| font-size: 15px; |
| line-height: 1.6; |
| } |
|
|
| .form-group input[type="file"] { |
| padding: 8px; |
| background: var(--surface-secondary); |
| border: 2px dashed var(--border-light); |
| border-radius: 6px; |
| cursor: pointer; |
| width: 100%; |
| } |
|
|
| .help-text { |
| display: block; |
| margin-top: var(--spacing-1); |
| font-size: 12px; |
| color: var(--text-tertiary); |
| line-height: 1.4; |
| } |
|
|
| .help-text a { |
| color: var(--brand-primary); |
| text-decoration: none; |
| } |
|
|
| .help-text a:hover { |
| text-decoration: underline; |
| } |
|
|
| |
| .settings-grid { |
| display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); |
| gap: var(--spacing-4); |
| } |
|
|
| |
| .image-preview { |
| display: grid; |
| grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); |
| gap: var(--spacing-3); |
| margin-top: var(--spacing-3); |
| } |
|
|
| @media (max-width: 768px) { |
| .image-preview { |
| grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); |
| gap: var(--spacing-2); |
| } |
| } |
|
|
| .image-preview-item { |
| position: relative; |
| border-radius: 6px; |
| overflow: hidden; |
| background: var(--surface-secondary); |
| aspect-ratio: 1; |
| border: 2px solid var(--border-light); |
| transition: opacity 0.3s var(--ease-out), |
| transform 0.3s var(--ease-out); |
| } |
|
|
| .image-preview-item.uploading { |
| border-color: var(--brand-primary); |
| box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1); |
| } |
|
|
| .image-preview-item.uploaded { |
| border-color: var(--success); |
| box-shadow: 0 0 0 2px color-mix(in oklab, var(--success) 10%, transparent); |
| } |
|
|
| .image-preview-item.upload-failed { |
| border-color: var(--danger); |
| box-shadow: 0 0 0 2px color-mix(in oklab, var(--danger) 10%, transparent); |
| } |
|
|
| .image-preview-item:hover { |
| border-color: var(--brand-primary); |
| transform: scale(1.05); |
| box-shadow: 0 4px 8px color-mix(in oklab, var(--brand-primary) 20%, transparent); |
| } |
|
|
| .image-preview-item img { |
| width: 100%; |
| height: 100%; |
| object-fit: cover; |
| cursor: pointer; |
| transition: opacity 0.3s ease; |
| } |
|
|
| .image-preview-item:hover img { |
| opacity: 0.95; |
| } |
|
|
| .image-preview-item .remove-btn { |
| position: absolute; |
| top: 2px; |
| right: 2px; |
| background: rgba(255, 59, 48, 0.9); |
| color: white; |
| border: none; |
| border-radius: 12px; |
| min-width: 44px; |
| min-height: 44px; |
| width: 44px; |
| height: 44px; |
| cursor: pointer; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| font-size: 16px; |
| font-weight: 600; |
| transition: background-color 0.18s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| backdrop-filter: blur(8px); |
| -webkit-backdrop-filter: blur(8px); |
| box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25); |
| } |
|
|
| .image-preview-item .remove-btn:hover { |
| background: rgba(255, 59, 48, 1); |
| transform: scale(1.1); |
| } |
|
|
| |
| .image-upload-status { |
| position: absolute; |
| bottom: 0; |
| left: 0; |
| right: 0; |
| background: rgba(255, 255, 255, 0.95); |
| padding: 4px; |
| font-size: 10px; |
| text-align: center; |
| transition: opacity 0.3s ease; |
| z-index: 3; |
| } |
|
|
| .upload-progress-mini { |
| height: 3px; |
| background: var(--surface-tertiary); |
| border-radius: 2px; |
| overflow: hidden; |
| margin-bottom: 2px; |
| } |
|
|
| .upload-progress-mini-bar { |
| height: 100%; |
| background: linear-gradient(90deg, var(--brand-primary), var(--brand-hover)); |
| border-radius: 2px; |
| transition: width 0.3s ease; |
| width: 0; |
| } |
|
|
| .uploaded .upload-progress-mini-bar { |
| background: linear-gradient(90deg, var(--success), var(--success)); |
| } |
|
|
| .upload-failed .upload-progress-mini-bar { |
| background: linear-gradient(90deg, var(--danger), var(--danger)); |
| } |
|
|
| .upload-status-text { |
| display: block; |
| color: var(--text-secondary); |
| font-weight: 500; |
| } |
|
|
| .uploaded .upload-status-text { |
| color: var(--success); |
| } |
|
|
| .upload-failed .upload-status-text { |
| color: var(--danger); |
| } |
|
|
| |
| .loading-preview { |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| background: var(--surface-secondary); |
| border: 2px dashed var(--border-light); |
| } |
|
|
| .loading-placeholder { |
| text-align: center; |
| padding: 10px; |
| } |
|
|
| .loading-placeholder .spinner { |
| width: 24px; |
| height: 24px; |
| margin: 0 auto 6px; |
| border: 2px solid rgba(118, 75, 162, 0.2); |
| border-top-color: var(--brand-primary); |
| border-radius: 50%; |
| animation: spin 0.8s linear infinite; |
| } |
|
|
| .loading-placeholder p { |
| font-size: 0.7rem; |
| color: #666; |
| margin: 0; |
| word-break: break-all; |
| max-width: 90px; |
| } |
|
|
| |
| .generate-btn { |
| width: 100%; |
| padding: var(--spacing-4) var(--spacing-5); |
| background: var(--brand-primary); |
| color: white; |
| border: none; |
| border-radius: var(--radius-lg); |
| font-size: 14px; |
| font-weight: 600; |
| cursor: pointer; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| gap: var(--spacing-2); |
| box-shadow: var(--shadow-sm); |
| } |
|
|
| .generate-btn:hover { |
| background: var(--brand-hover); |
| box-shadow: var(--shadow-md); |
| } |
|
|
| .generate-btn:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| background: var(--text-muted); |
| } |
|
|
| .clear-all-btn { |
| min-height: 44px; |
| padding: 5px 10px; |
| background: var(--danger); |
| color: white; |
| border: none; |
| border-radius: 4px; |
| font-size: 0.75rem; |
| font-weight: 600; |
| cursor: pointer; |
| transition: opacity 0.3s var(--ease-out), |
| transform 0.3s var(--ease-out); |
| } |
|
|
| .clear-all-btn:hover { |
| background: var(--danger); |
| transform: translateY(-1px); |
| } |
|
|
| |
| .status-message { |
| margin-top: var(--spacing-4); |
| padding: var(--spacing-3) var(--spacing-4); |
| border-radius: var(--radius-md); |
| display: none; |
| font-size: 13px; |
| font-weight: 500; |
| border: 1px solid transparent; |
| } |
|
|
| .status-message.info { |
| background: var(--info-bg); |
| color: var(--info); |
| border-color: var(--info); |
| display: block; |
| } |
|
|
| .status-message.success { |
| background: var(--success-bg); |
| color: var(--success); |
| border-color: var(--success); |
| display: block; |
| } |
|
|
| .status-message.error { |
| background: var(--danger-bg); |
| color: var(--danger); |
| border-color: var(--danger); |
| display: block; |
| } |
|
|
| .status-message.warning { |
| background: var(--warning-bg); |
| color: var(--warning); |
| border-left: 4px solid var(--warning); |
| display: block; |
| } |
|
|
| |
| .progress-logs { |
| margin-top: 10px; |
| padding: 10px; |
| background: var(--surface-secondary); |
| border-radius: 6px; |
| max-height: 150px; |
| overflow-y: auto; |
| -webkit-overflow-scrolling: touch; |
| scrollbar-gutter: stable; |
| display: none; |
| font-size: 0.75rem; |
| } |
|
|
| .progress-logs.active { |
| display: block; |
| } |
|
|
| .progress-logs .log-entry { |
| padding: 3px 0; |
| color: #666; |
| border-bottom: 1px solid var(--border-light); |
| } |
|
|
| .progress-logs .log-entry:last-child { |
| border-bottom: none; |
| } |
|
|
| |
| .spinner { |
| width: 18px; |
| height: 18px; |
| border: 2px solid rgba(255, 255, 255, 0.3); |
| border-top-color: white; |
| border-radius: 50%; |
| animation: spin 1s linear infinite; |
| } |
|
|
| @keyframes spin { |
| to { transform: rotate(360deg); } |
| } |
|
|
| |
| @keyframes flash { |
| 0% { |
| background-color: rgba(118, 75, 162, 0.1); |
| } |
| 50% { |
| background-color: rgba(118, 75, 162, 0.2); |
| border-color: var(--brand-primary); |
| } |
| 100% { |
| background-color: rgba(118, 75, 162, 0.1); |
| } |
| } |
|
|
| |
| .sidebar-toggle { |
| display: none; |
| position: fixed; |
| top: max(var(--spacing-4), env(safe-area-inset-top)); |
| left: max(var(--spacing-4), env(safe-area-inset-left)); |
| z-index: 1000; |
| background: var(--brand-primary); |
| color: white; |
| border: none; |
| border-radius: var(--radius-lg); |
| width: 48px; |
| height: 48px; |
| min-width: 44px; |
| min-height: 44px; |
| cursor: pointer; |
| box-shadow: var(--shadow-lg); |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| backdrop-filter: blur(20px); |
| -webkit-backdrop-filter: blur(20px); |
| font-size: 18px; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .sidebar-toggle:hover { |
| background: var(--brand-hover); |
| transform: translateY(-2px); |
| box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4); |
| } |
|
|
| |
| .drawer-overlay { |
| position: fixed; |
| inset: 0; |
| background: rgba(0, 0, 0, 0.5); |
| z-index: 999; |
| opacity: 0; |
| visibility: hidden; |
| transition: opacity 0.3s var(--ease-out), |
| transform 0.3s var(--ease-out); |
| backdrop-filter: blur(8px); |
| -webkit-backdrop-filter: blur(8px); |
| } |
|
|
| .drawer-overlay.show { |
| opacity: 1; |
| visibility: visible; |
| } |
|
|
| |
| .drawer { |
| position: fixed; |
| top: 0; |
| left: 0; |
| bottom: 0; |
| width: min(88vw, 480px); |
| transform: translateX(-100%); |
| transition: transform 0.35s ease; |
| z-index: 1000; |
| backdrop-filter: blur(22px) saturate(180%); |
| -webkit-backdrop-filter: blur(22px) saturate(180%); |
| background: color-mix(in oklab, Canvas 72%, CanvasText 8%); |
| border-right: 1px solid color-mix(in oklab, CanvasText 18%, transparent); |
| box-shadow: var(--shadow-strong); |
| overflow: hidden; |
| overscroll-behavior: contain; |
| display: flex; |
| flex-direction: column; |
| } |
|
|
| .drawer.open { |
| transform: translateX(0); |
| } |
|
|
| |
| body.drawer-open { |
| overflow: hidden; |
| overscroll-behavior: none; |
| } |
|
|
| |
|
|
| |
| |
| @media (min-width: 768px) { |
| .app-container { |
| grid-template-columns: minmax(280px, 380px) 1fr; |
| gap: clamp(12px, 1.5vw, 24px); |
| } |
|
|
| |
| .sidebar-toggle { |
| display: none; |
| } |
|
|
| |
| .quick-dock { |
| display: none !important; |
| } |
| } |
|
|
| |
| @media (max-width: 767px) { |
| .app-container { |
| grid-template-columns: 1fr; |
| gap: 0; |
| padding: var(--spacing-3); |
| } |
|
|
| |
| .app-container > .left-panel { |
| display: none; |
| } |
|
|
| |
| .drawer .left-panel { |
| display: flex; |
| } |
|
|
| .sidebar-toggle { |
| display: flex; |
| } |
|
|
| .right-panel { |
| min-height: calc(100vh - 2 * var(--spacing-3)); |
| } |
| } |
|
|
| |
| @media (min-width: 768px) and (max-width: 1024px) { |
| .app-container { |
| grid-template-columns: minmax(300px, 350px) 1fr; |
| gap: clamp(16px, 2vw, 20px); |
| padding: var(--spacing-4); |
| } |
|
|
| |
| .history-grid { |
| grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); |
| gap: var(--spacing-3); |
| } |
| } |
|
|
| @media (min-width: 1025px) and (max-width: 1366px) { |
| .app-container { |
| gap: clamp(16px, 1.5vw, 24px); |
| grid-template-columns: minmax(300px, 380px) 1fr; |
| } |
| } |
|
|
| @media (min-width: 1367px) { |
| .app-container { |
| gap: clamp(20px, 2vw, 32px); |
| grid-template-columns: minmax(320px, 420px) 1fr; |
| } |
|
|
| |
| .history-grid { |
| grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); |
| gap: clamp(16px, 1.2vw, 20px); |
| } |
|
|
| .history-grid .generation-item { |
| max-height: 280px; |
| } |
|
|
| .history-grid .generation-item img { |
| max-height: 220px; |
| } |
| } |
|
|
| @media (min-width: 1600px) { |
| |
| .history-grid { |
| grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); |
| gap: clamp(18px, 1.3vw, 24px); |
| } |
|
|
| .history-grid .generation-item { |
| max-height: 320px; |
| } |
|
|
| .history-grid .generation-item img { |
| max-height: 260px; |
| } |
| } |
|
|
| @media (max-width: 768px) { |
| .controls-section, |
| .tab-content { |
| padding: var(--spacing-4); |
| } |
|
|
| .history-grid { |
| grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); |
| gap: var(--spacing-3); |
| } |
|
|
| .drawer { |
| width: min(92vw, 400px); |
| } |
| } |
|
|
| @media (max-width: 600px) { |
| .settings-grid { |
| grid-template-columns: 1fr; |
| } |
|
|
| .results-grid, .history-grid { |
| grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); |
| gap: var(--spacing-2); |
| } |
|
|
| .history-controls { |
| flex-direction: column; |
| gap: var(--spacing-2); |
| } |
|
|
| .history-btn { |
| width: 100%; |
| text-align: center; |
| } |
|
|
| .drawer { |
| width: min(95vw, 350px); |
| } |
| } |
|
|
| |
| @media (hover: none) and (pointer: coarse) { |
| |
| button, .btn, .action-btn { |
| min-height: 44px; |
| min-width: 44px; |
| padding: 12px 16px; |
| } |
|
|
| |
| .item-actions { |
| opacity: 1; |
| } |
|
|
| |
| .use-as-input-btn { |
| opacity: 1; |
| } |
|
|
| |
| .sidebar-toggle { |
| width: 52px; |
| height: 52px; |
| } |
| } |
|
|
| |
| ::-webkit-scrollbar { |
| width: 8px; |
| height: 8px; |
| } |
|
|
| ::-webkit-scrollbar-track { |
| background: rgba(0, 0, 0, 0.1); |
| } |
|
|
| ::-webkit-scrollbar-thumb { |
| background: rgba(118, 75, 162, 0.5); |
| border-radius: 4px; |
| } |
|
|
| ::-webkit-scrollbar-thumb:hover { |
| background: rgba(118, 75, 162, 0.7); |
| } |
|
|
| |
| .custom-size { |
| transition: opacity 0.3s var(--ease-out), |
| transform 0.3s var(--ease-out); |
| } |
|
|
| |
| .image-modal { |
| display: none; |
| position: fixed; |
| z-index: 1000; |
| left: 0; |
| top: 0; |
| width: 100%; |
| height: 100%; |
| overflow: auto; |
| background-color: rgba(0, 0, 0, 0.95); |
| animation: fadeIn 0.3s; |
| } |
|
|
| .image-modal.show { |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| flex-direction: column; |
| } |
|
|
| @keyframes fadeIn { |
| from { opacity: 0; } |
| to { opacity: 1; } |
| } |
|
|
| .modal-content { |
| max-width: 90%; |
| max-height: 80vh; |
| object-fit: contain; |
| animation: zoomIn 0.3s; |
| transition: transform 0.3s ease; |
| cursor: grab; |
| transform-origin: center; |
| user-select: none; |
| } |
|
|
| @keyframes zoomIn { |
| from { transform: scale(0.8); } |
| to { transform: scale(1); } |
| } |
|
|
| .modal-close { |
| position: absolute; |
| top: 20px; |
| right: 35px; |
| color: var(--text-secondary); |
| font-size: 40px; |
| font-weight: bold; |
| cursor: pointer; |
| transition: color 0.3s; |
| z-index: 1001; |
| min-height: 44px; |
| min-width: 44px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .modal-close:hover, |
| .modal-close:focus { |
| color: var(--brand-primary); |
| } |
|
|
| .modal-caption { |
| position: absolute; |
| bottom: 20px; |
| left: 50%; |
| transform: translateX(-50%); |
| text-align: center; |
| color: white; |
| background: rgba(0, 0, 0, 0.7); |
| padding: 15px 25px; |
| border-radius: 8px; |
| max-width: 80%; |
| } |
|
|
| .modal-caption #modalCaption { |
| margin-bottom: 10px; |
| font-size: 0.9rem; |
| } |
|
|
| .modal-use-btn { |
| background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%); |
| color: white; |
| border: none; |
| padding: 8px 16px; |
| border-radius: 6px; |
| font-size: 0.9rem; |
| font-weight: 600; |
| cursor: pointer; |
| transition: opacity 0.3s var(--ease-out), |
| transform 0.3s var(--ease-out); |
| } |
|
|
| .modal-use-btn:hover { |
| transform: translateY(-2px); |
| box-shadow: 0 4px 12px rgba(118, 75, 162, 0.5); |
| } |
|
|
| |
| .history-grid .generation-item { |
| cursor: pointer; |
| } |
|
|
| .history-grid .generation-item:hover { |
| transform: scale(1.05); |
| } |
| |
| |
| |
|
|
| |
| :root { |
| --brand-primary: #007AFF; |
| --brand-secondary: #5AC8FA; |
| --brand-accent: #64D2FF; |
| --brand-dark: #1a1a2e; |
| --brand-muted: #2d2d2d; |
| --success: #22c55e; |
| --danger: #ef4444; |
| --info: #0ea5e9; |
| --warning: #f59e0b; |
| --surface: #ffffff; |
| --shadow-soft: 0 8px 20px rgba(0,0,0,0.08); |
| --shadow-strong: 0 12px 30px rgba(0,0,0,0.15); |
| } |
|
|
| |
| .right-panel .history-header { |
| position: sticky; |
| top: 0; |
| z-index: 15; |
| backdrop-filter: blur(16px) saturate(1.2); |
| -webkit-backdrop-filter: blur(16px) saturate(1.2); |
| background: rgba(24,24,28,0.6); |
| border-bottom: 1px solid rgba(255,255,255,0.08); |
| } |
|
|
| |
| .card { |
| border: 1px solid rgba(124, 58, 237, 0.10); |
| box-shadow: var(--shadow-soft); |
| } |
|
|
| |
| .form-group input[type="text"], |
| .form-group input[type="password"], |
| .form-group input[type="number"], |
| .form-group textarea, |
| .form-group select { |
| transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease; |
| } |
|
|
| .form-group input:hover, |
| .form-group textarea:hover, |
| .form-group select:hover { |
| border-color: var(--brand-accent); |
| } |
|
|
| .form-group input:focus, |
| .form-group textarea:focus, |
| .form-group select:focus { |
| border-color: var(--brand-primary); |
| box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12); |
| } |
|
|
| |
| .history-tabs { |
| padding: 4px 6px 0; |
| } |
|
|
| .tab-btn { |
| border-radius: 10px 10px 0 0; |
| margin: 0 6px; |
| border: 1px solid transparent; |
| } |
|
|
| .tab-btn.active { |
| border-color: rgba(255,255,255,0.12); |
| border-bottom-color: transparent; |
| box-shadow: inset 0 -2px 0 0 var(--brand-accent); |
| } |
|
|
| |
| .generate-btn { |
| background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%); |
| box-shadow: 0 10px 24px rgba(124,58,237,0.25); |
| } |
|
|
| .generate-btn:hover { |
| transform: translateY(-2px) scale(1.01); |
| box-shadow: 0 14px 30px rgba(124,58,237,0.35); |
| } |
|
|
| .generate-btn:active { |
| transform: translateY(0) scale(0.995); |
| } |
|
|
| |
| .results-grid .generation-item { |
| border: 1px solid rgba(255,255,255,0.08); |
| box-shadow: var(--shadow-soft); |
| } |
|
|
| .results-grid .generation-item:hover { |
| box-shadow: var(--shadow-strong); |
| } |
|
|
| |
| .history-grid .generation-item { |
| border: 1px solid rgba(255,255,255,0.08); |
| } |
|
|
| .history-grid .generation-item img { |
| transition: transform 0.2s ease, opacity 0.2s ease; |
| } |
|
|
| .history-grid .generation-item:hover img { |
| transform: scale(1.03); |
| opacity: 0.95; |
| } |
|
|
| |
| .use-as-input-btn { |
| background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary)); |
| box-shadow: 0 8px 18px rgba(124,58,237,0.28); |
| } |
|
|
| |
| .status-message.info { |
| border-left-color: var(--info); |
| } |
|
|
| .status-message.success { |
| border-left-color: var(--success); |
| } |
|
|
| .status-message.error { |
| border-left-color: var(--danger); |
| } |
|
|
| .status-message.warning { |
| border-left-color: var(--warning); |
| } |
|
|
| |
| .upload-progress-container { |
| margin-top: 12px; |
| background: rgba(55, 48, 163, 0.8); |
| border: 1px solid rgba(124,58,237,0.6); |
| border-radius: 10px; |
| padding: 10px 12px; |
| box-shadow: var(--shadow-soft); |
| color: white; |
| } |
|
|
| .upload-progress-bar { |
| width: 100%; |
| height: 8px; |
| background: rgba(255,255,255,0.2); |
| border-radius: 6px; |
| overflow: hidden; |
| position: relative; |
| } |
|
|
| .upload-progress-fill { |
| width: 0%; |
| height: 100%; |
| background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary)); |
| border-radius: 6px; |
| transition: width 0.25s ease; |
| } |
|
|
| .upload-progress-fill.complete { |
| background: linear-gradient(90deg, var(--success), var(--success)); |
| } |
|
|
| .upload-progress-text { |
| margin-top: 8px; |
| font-size: 0.85rem; |
| color: white; |
| font-weight: 600; |
| } |
|
|
| |
| .image-upload-status { |
| position: absolute; |
| bottom: 0; |
| left: 0; right: 0; |
| background: rgba(255,255,255,0.95); |
| padding: 4px 6px; |
| font-size: 10px; |
| text-align: center; |
| transition: opacity 0.3s ease; |
| z-index: 3; |
| } |
|
|
| .upload-progress-mini { |
| height: 3px; |
| background: var(--surface-tertiary); |
| border-radius: 2px; |
| overflow: hidden; |
| margin-bottom: 3px; |
| } |
|
|
| .upload-progress-mini-bar { |
| height: 100%; |
| background: linear-gradient(90deg, var(--brand-primary), var(--brand-hover)); |
| border-radius: 2px; |
| transition: width 0.25s ease; |
| width: 0; |
| } |
|
|
| .image-preview-item.uploaded .upload-progress-mini-bar { |
| background: linear-gradient(90deg, var(--success), var(--success)); |
| } |
|
|
| .image-preview-item.upload-failed .upload-progress-mini-bar { |
| background: linear-gradient(90deg, var(--danger), var(--danger)); |
| } |
|
|
| .upload-status-text { |
| display: inline-block; |
| color: var(--text-secondary); |
| font-weight: 600; |
| } |
|
|
| .image-preview-item.uploaded .upload-status-text { |
| color: var(--success); |
| } |
|
|
| .image-preview-item.upload-failed .upload-status-text { |
| color: var(--danger); |
| } |
|
|
| |
| .image-preview-item .remove-btn { |
| z-index: 4; |
| } |
|
|
| |
| .modal-content { |
| border-radius: 12px; |
| box-shadow: var(--shadow-strong); |
| } |
|
|
| |
| .keyboard-nav *:focus { |
| outline: 2px solid var(--brand-primary); |
| outline-offset: 2px; |
| border-radius: var(--radius-sm); |
| } |
|
|
| .keyboard-nav *:focus:not(:focus-visible) { |
| outline: none; |
| } |
|
|
| |
| .skip-link { |
| position: absolute; |
| top: -40px; |
| left: 6px; |
| background: var(--brand-primary); |
| color: white; |
| padding: 8px; |
| text-decoration: none; |
| border-radius: var(--radius-sm); |
| z-index: 9999; |
| } |
|
|
| .skip-link:focus { |
| top: 6px; |
| } |
|
|
| |
| .right-panel { |
| scrollbar-gutter: stable; |
| } |
|
|
| |
| .help-text a { |
| color: var(--brand-accent); |
| } |
|
|
| |
| h1, h2, h3, h4, h5, h6 { |
| font-weight: 500; |
| letter-spacing: 0.02em; |
| } |
|
|
| |
| label, .form-group label { |
| font-weight: 500; |
| letter-spacing: 0.01em; |
| } |
|
|
| |
| |
| button, .btn { |
| min-height: 44px; |
| min-width: 44px; |
| padding: 10px 14px; |
| border-radius: 12px; |
| border: none; |
| font-weight: 500; |
| font-size: max(16px, 1rem); |
| letter-spacing: 0.01em; |
| cursor: pointer; |
| transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease; |
| background: var(--brand); |
| color: white; |
| line-height: 1.2; |
| } |
|
|
| |
| @media (hover: hover) and (pointer: fine) { |
| button:hover, .btn:hover { |
| transform: translateY(-1px) scale(1.02); |
| filter: brightness(1.05); |
| box-shadow: 0 8px 24px color-mix(in oklab, CanvasText 14%, transparent); |
| } |
|
|
| .card:hover { |
| transform: translateY(-1px) scale(1.005); |
| box-shadow: 0 8px 24px color-mix(in oklab, CanvasText 14%, transparent); |
| transition: transform 0.18s ease, box-shadow 0.18s ease; |
| } |
|
|
| .tab-btn:hover { |
| transform: translateY(-1px) scale(1.02); |
| box-shadow: 0 6px 18px color-mix(in oklab, CanvasText 12%, transparent); |
| } |
|
|
| .btn-icon:hover, .btn-test:hover { |
| transform: translateY(-1px) scale(1.05); |
| box-shadow: 0 4px 12px color-mix(in oklab, var(--brand-primary) 20%, transparent); |
| } |
|
|
| .settings-toggle-btn:hover { |
| transform: scale(1.1); |
| box-shadow: 0 4px 12px color-mix(in oklab, var(--brand-primary) 15%, transparent); |
| } |
|
|
| .clear-all-btn:hover { |
| transform: translateY(-1px) scale(1.02); |
| box-shadow: 0 4px 12px color-mix(in oklab, var(--danger) 25%, transparent); |
| } |
|
|
| .result-item:hover, .history-item:hover { |
| transform: translateY(-2px) scale(1.02); |
| box-shadow: 0 8px 24px color-mix(in oklab, CanvasText 16%, transparent); |
| transition: transform 0.18s ease, box-shadow 0.18s ease; |
| } |
|
|
| .modal-close:hover { |
| transform: scale(1.1); |
| text-shadow: 0 0 10px currentColor; |
| } |
|
|
| input:hover, textarea:hover, select:hover { |
| transform: translateY(-1px); |
| box-shadow: 0 4px 12px color-mix(in oklab, CanvasText 8%, transparent); |
| transition: transform 0.18s ease, box-shadow 0.18s ease; |
| } |
| } |
|
|
| button:active, .btn:active { |
| transform: translateY(0); |
| filter: brightness(0.95); |
| } |
|
|
| |
| .status-message { |
| font-weight: 400; |
| letter-spacing: 0.01em; |
| } |
|
|
| |
| .help-text, small { |
| font-weight: 400; |
| opacity: 0.8; |
| } |
|
|
| |
| .log-entry { |
| font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'PingFang SC', monospace; |
| font-size: 0.85rem; |
| line-height: 1.4; |
| } |
|
|
| |
| .tab-btn { |
| font-weight: 500; |
| letter-spacing: 0.01em; |
| } |
|
|
| |
| input, textarea, select { |
| font-family: inherit; |
| line-height: 1.5; |
| } |
|
|
| |
| .modal-caption { |
| font-weight: 400; |
| line-height: 1.6; |
| letter-spacing: 0.01em; |
| } |
|
|
| |
| .api-key-input-group { |
| display: flex; |
| gap: var(--spacing-2); |
| align-items: stretch; |
| } |
|
|
| .api-key-input-group input { |
| flex: 1; |
| margin: 0; |
| } |
|
|
| .btn-icon, .btn-test { |
| min-height: 44px; |
| min-width: 44px; |
| padding: var(--spacing-3) var(--spacing-3); |
| border: 1px solid var(--border-light); |
| border-radius: var(--radius-md); |
| background: var(--surface-secondary); |
| color: var(--text-secondary); |
| cursor: pointer; |
| font-size: 14px; |
| font-weight: 500; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| white-space: nowrap; |
| } |
|
|
| .btn-icon { |
| min-width: 44px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .btn-test { |
| font-weight: 600; |
| } |
|
|
| .btn-icon:hover, .btn-test:hover { |
| background: var(--surface-tertiary); |
| border-color: var(--brand-primary); |
| color: var(--brand-primary); |
| } |
|
|
| .btn-icon:active, .btn-test:active { |
| transform: translateY(0); |
| } |
|
|
| .btn-test:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| transform: none; |
| } |
|
|
| .api-key-status { |
| margin-top: var(--spacing-2); |
| padding: var(--spacing-3) var(--spacing-4); |
| border-radius: var(--radius-md); |
| border: 1px solid transparent; |
| font-size: 13px; |
| font-weight: 500; |
| display: none; |
| } |
|
|
| .api-key-status.success { |
| background: var(--success-bg); |
| color: var(--success); |
| border-color: var(--success); |
| display: block; |
| } |
|
|
| .api-key-status.error { |
| background: var(--danger-bg); |
| color: var(--danger); |
| border-color: var(--danger); |
| display: block; |
| } |
|
|
| .api-key-status.testing { |
| background: var(--info-bg); |
| color: var(--info); |
| border-color: var(--info); |
| display: block; |
| } |
|
|
| |
| .upload-limits { |
| color: var(--text-tertiary); |
| font-size: 12px; |
| margin-top: var(--spacing-1); |
| margin-bottom: var(--spacing-2); |
| font-weight: 400; |
| } |
|
|
| |
| .item-actions { |
| position: absolute; |
| top: var(--spacing-2); |
| right: var(--spacing-2); |
| display: flex; |
| gap: var(--spacing-1); |
| opacity: 0; |
| transition: opacity 0.2s ease; |
| background: rgba(0, 0, 0, 0.7); |
| border-radius: var(--radius-md); |
| padding: var(--spacing-1); |
| backdrop-filter: blur(8px); |
| } |
|
|
| .generation-item:hover .item-actions { |
| opacity: 1; |
| } |
|
|
| .action-btn { |
| background: rgba(255, 255, 255, 0.15); |
| color: white; |
| border: 1px solid rgba(255, 255, 255, 0.2); |
| padding: var(--spacing-3); |
| border-radius: var(--radius-lg); |
| font-size: 14px; |
| font-weight: 500; |
| cursor: pointer; |
| transition: background-color 0.18s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| min-width: 44px; |
| min-height: 44px; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| backdrop-filter: blur(8px); |
| -webkit-backdrop-filter: blur(8px); |
| } |
|
|
| .action-btn:hover { |
| background: rgba(255, 255, 255, 0.3); |
| border-color: rgba(255, 255, 255, 0.4); |
| } |
|
|
| .favorite-btn.favorited { |
| background: var(--warning); |
| color: white; |
| border-color: var(--warning); |
| } |
|
|
| .use-input-btn { |
| background: var(--brand-primary); |
| border-color: var(--brand-primary); |
| } |
|
|
| .copy-url-btn:hover { |
| background: var(--info); |
| border-color: var(--info); |
| } |
|
|
| .copy-prompt-btn:hover { |
| background: var(--success); |
| border-color: var(--success); |
| } |
|
|
| |
| @media (prefers-contrast: more) { |
| :root { |
| |
| --border-light: var(--border-strong); |
| --border-medium: color-mix(in oklab, CanvasText 40%, transparent); |
| } |
|
|
| .card { |
| border-color: var(--border-strong); |
| box-shadow: var(--shadow-md); |
| } |
|
|
| .btn, button { |
| outline: 2px solid color-mix(in oklab, CanvasText 30%, transparent); |
| outline-offset: 1px; |
| } |
|
|
| .status-message { |
| border-width: 2px; |
| box-shadow: var(--shadow-sm); |
| } |
|
|
| .tab-btn.active { |
| box-shadow: var(--shadow-md); |
| } |
|
|
| .generate-btn { |
| box-shadow: var(--shadow-lg); |
| } |
| } |
|
|
| |
| @media (prefers-reduced-motion: reduce) { |
| *, |
| *::before, |
| *::after { |
| animation-duration: 0.01ms !important; |
| animation-iteration-count: 1 !important; |
| transition-duration: 0.01ms !important; |
| scroll-behavior: auto !important; |
| } |
|
|
| |
| .spinner { |
| animation: none !important; |
| } |
|
|
| .drawer { |
| transition: none !important; |
| } |
|
|
| .drawer-overlay { |
| transition: none !important; |
| } |
|
|
| .toast { |
| animation: none !important; |
| transition: none !important; |
| } |
|
|
| .modal-content { |
| animation: none !important; |
| } |
|
|
| .banner { |
| transition: none !important; |
| } |
|
|
| |
| .image-preview-item:hover { |
| transform: none !important; |
| } |
|
|
| .btn:hover { |
| transform: none !important; |
| } |
| } |
|
|
| |
| @media (hover: hover) and (pointer: fine) { |
| .card:hover { |
| transform: translateY(-1px); |
| box-shadow: var(--shadow-md); |
| transition: transform 0.2s ease, box-shadow 0.2s ease; |
| } |
|
|
| .generate-btn:hover { |
| transform: translateY(-1px); |
| box-shadow: var(--shadow-lg); |
| } |
|
|
| .btn:hover, |
| .history-btn:hover { |
| transform: translateY(-1px); |
| box-shadow: var(--shadow-sm); |
| } |
|
|
| .result-item:hover, |
| .history-item:hover { |
| transform: translateY(-2px); |
| box-shadow: var(--shadow-md); |
| } |
|
|
| |
| .tab-btn:hover { |
| transform: translateY(-1px); |
| box-shadow: var(--shadow-sm); |
| } |
| } |
|
|
| |
| button:focus-visible, |
| input:focus-visible, |
| textarea:focus-visible, |
| select:focus-visible, |
| .action-btn:focus-visible, |
| .remove-btn:focus-visible { |
| outline: 3px solid var(--brand-primary); |
| outline-offset: 2px; |
| border-radius: 6px; |
| box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8); |
| } |
|
|
| |
| .tab-btn:focus-visible { |
| outline: 2px solid var(--brand-primary); |
| outline-offset: -2px; |
| } |
|
|
| |
| .quick-dock { |
| display: none; |
| position: sticky; |
| bottom: 0; |
| background: color-mix(in oklab, var(--surface) 92%, transparent); |
| backdrop-filter: blur(16px) saturate(1.2); |
| -webkit-backdrop-filter: blur(16px) saturate(1.2); |
| border-top: 1px solid var(--border-light); |
| padding: var(--spacing-3) var(--spacing-4); |
| gap: var(--spacing-3); |
| align-items: stretch; |
| z-index: 20; |
| } |
|
|
| .quick-dock input { |
| flex: 1; |
| min-height: 50px; |
| padding: var(--spacing-3) var(--spacing-4); |
| border: 2px solid var(--border-medium); |
| border-radius: var(--radius-lg); |
| background: var(--surface); |
| color: var(--text-primary); |
| font-size: 16px; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| } |
|
|
| .quick-dock input:focus { |
| outline: none; |
| border-color: var(--brand-primary); |
| box-shadow: 0 0 0 3px var(--brand-bg); |
| } |
|
|
| .dock-generate-btn { |
| min-height: 44px; |
| min-width: 80px; |
| padding: var(--spacing-3) var(--spacing-4); |
| background: var(--brand-primary); |
| color: white; |
| border: none; |
| border-radius: var(--radius-lg); |
| font-size: 16px; |
| font-weight: 600; |
| cursor: pointer; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| white-space: nowrap; |
| } |
|
|
| .dock-generate-btn:hover { |
| background: var(--brand-hover); |
| transform: translateY(-1px); |
| } |
|
|
| |
| @media (max-width: 767px) { |
| .quick-dock { |
| display: flex; |
| } |
|
|
| |
| .drawer.open ~ .app-container .quick-dock { |
| display: none; |
| } |
| } |
|
|
| |
| |
| |
|
|
| |
| .generate-btn { |
| position: relative; |
| overflow: hidden; |
| } |
|
|
| .generate-btn[aria-busy="true"] { |
| pointer-events: none; |
| opacity: 0.8; |
| } |
|
|
| .generate-btn .progress-ring { |
| position: absolute; |
| inset: -4px; |
| border-radius: 999px; |
| border: 2px solid color-mix(in oklab, var(--brand-primary) 60%, transparent); |
| border-top-color: transparent; |
| animation: spin 0.8s linear infinite; |
| } |
|
|
| @keyframes spin { |
| to { transform: rotate(360deg); } |
| } |
|
|
| |
| .skeleton { |
| background: linear-gradient(90deg, transparent, color-mix(in oklab, CanvasText 8%, transparent), transparent); |
| background-size: 200% 100%; |
| animation: shimmer 1.4s infinite; |
| } |
|
|
| @keyframes shimmer { |
| 0% { background-position: -100% 0; } |
| 100% { background-position: 200% 0; } |
| } |
|
|
| .preview-skeleton { |
| width: 100%; |
| height: 200px; |
| border-radius: var(--radius-lg); |
| background: var(--surface-secondary); |
| } |
|
|
| |
| .banner { |
| position: fixed; |
| top: max(var(--spacing-4), env(safe-area-inset-top)); |
| left: 50%; |
| transform: translateX(-50%); |
| z-index: 1100; |
| backdrop-filter: blur(22px) saturate(180%); |
| -webkit-backdrop-filter: blur(22px) saturate(180%); |
| background: color-mix(in oklab, Canvas 72%, CanvasText 8%); |
| border: 1px solid color-mix(in oklab, CanvasText 18%, transparent); |
| border-radius: var(--radius-xl); |
| padding: var(--spacing-3) var(--spacing-5); |
| box-shadow: var(--shadow-lg); |
| max-width: 90vw; |
| transition: opacity 0.3s var(--ease-out), |
| transform 0.3s var(--ease-out); |
| opacity: 0; |
| visibility: hidden; |
| transform: translateX(-50%) translateY(-20px); |
| } |
|
|
| .banner.show { |
| opacity: 1; |
| visibility: visible; |
| transform: translateX(-50%) translateY(0); |
| } |
|
|
| .banner.success { |
| border-color: var(--success); |
| background: color-mix(in oklab, var(--success) 15%, Canvas 85%); |
| } |
|
|
| .banner.error { |
| border-color: var(--danger); |
| background: color-mix(in oklab, var(--danger) 15%, Canvas 85%); |
| } |
|
|
| .banner.warning { |
| border-color: var(--warning); |
| background: color-mix(in oklab, var(--warning) 15%, Canvas 85%); |
| } |
|
|
| |
| .toasts { |
| position: fixed; |
| bottom: max(var(--spacing-6), env(safe-area-inset-bottom)); |
| right: max(var(--spacing-6), env(safe-area-inset-right)); |
| z-index: 1100; |
| display: flex; |
| flex-direction: column; |
| gap: var(--spacing-3); |
| pointer-events: none; |
| } |
|
|
| .toast { |
| backdrop-filter: blur(22px) saturate(180%); |
| -webkit-backdrop-filter: blur(22px) saturate(180%); |
| background: color-mix(in oklab, Canvas 82%, CanvasText 18%); |
| border: 1px solid color-mix(in oklab, CanvasText 18%, transparent); |
| border-radius: var(--radius-xl); |
| padding: var(--spacing-4) var(--spacing-5); |
| box-shadow: var(--shadow-lg); |
| max-width: 350px; |
| pointer-events: auto; |
| transition: opacity 0.3s var(--ease-out), |
| transform 0.3s var(--ease-out); |
| opacity: 0; |
| transform: translateX(100%); |
| color: var(--text-primary); |
| font-size: var(--size-caption); |
| font-weight: 500; |
| } |
|
|
| .toast.show { |
| opacity: 1; |
| transform: translateX(0); |
| } |
|
|
| .toast.success { |
| border-color: var(--success); |
| background: color-mix(in oklab, var(--success) 12%, Canvas 88%); |
| } |
|
|
| .toast.error { |
| border-color: var(--danger); |
| background: color-mix(in oklab, var(--danger) 12%, Canvas 88%); |
| } |
|
|
| .toast.warning { |
| border-color: var(--warning); |
| background: color-mix(in oklab, var(--warning) 12%, Canvas 88%); |
| } |
|
|
| .toast.info { |
| border-color: var(--info); |
| background: color-mix(in oklab, var(--info) 12%, Canvas 88%); |
| } |
|
|
| .toast-header { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| margin-bottom: var(--spacing-2); |
| font-weight: 600; |
| } |
|
|
| .toast-close { |
| background: none; |
| border: none; |
| color: var(--text-secondary); |
| cursor: pointer; |
| padding: var(--spacing-1); |
| border-radius: var(--radius-sm); |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| font-size: 16px; |
| line-height: 1; |
| } |
|
|
| .toast-close:hover { |
| background: color-mix(in oklab, CanvasText 10%, transparent); |
| color: var(--text-primary); |
| } |
|
|
| |
| .progress-logs { |
| margin-top: var(--spacing-4); |
| background: var(--surface-secondary); |
| border: 1px solid var(--border-light); |
| border-radius: var(--radius-lg); |
| max-height: 120px; |
| overflow-y: auto; |
| -webkit-overflow-scrolling: touch; |
| scrollbar-gutter: stable; |
| display: none; |
| font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace; |
| font-size: 12px; |
| } |
|
|
| .progress-logs.active { |
| display: block; |
| } |
|
|
| .progress-logs .log-entry { |
| padding: var(--spacing-2) var(--spacing-3); |
| color: var(--text-secondary); |
| border-bottom: 1px solid var(--border-light); |
| line-height: 1.4; |
| } |
|
|
| .progress-logs .log-entry:last-child { |
| border-bottom: none; |
| } |
|
|
| .progress-logs .log-entry.success { |
| color: var(--success); |
| } |
|
|
| .progress-logs .log-entry.error { |
| color: var(--danger); |
| } |
|
|
| .progress-logs .log-entry.warning { |
| color: var(--warning); |
| } |
|
|
| |
| .progress-details-toggle { |
| background: none; |
| border: none; |
| color: var(--brand-primary); |
| cursor: pointer; |
| font-size: var(--size-caption); |
| padding: var(--spacing-2) 0; |
| text-decoration: underline; |
| transition: color 0.2s ease; |
| } |
|
|
| .progress-details-toggle:hover { |
| color: var(--brand-hover); |
| } |
|
|
| |
| .generation-meta::before { |
| content: ""; |
| width: 6px; |
| height: 6px; |
| border-radius: 50%; |
| background: var(--success); |
| display: inline-block; |
| margin-right: var(--spacing-2); |
| } |
|
|
| .generation-meta.processing::before { |
| background: var(--warning); |
| animation: pulse 1.5s ease-in-out infinite; |
| } |
|
|
| .generation-meta.failed::before { |
| background: var(--danger); |
| } |
|
|
| @keyframes pulse { |
| 0%, 100% { opacity: 0.6; } |
| 50% { opacity: 1; } |
| } |
|
|
| |
| .toast-actions { |
| margin-top: var(--spacing-3); |
| display: flex; |
| gap: var(--spacing-2); |
| } |
|
|
| .toast-action { |
| background: var(--brand-primary); |
| color: white; |
| border: none; |
| padding: var(--spacing-2) var(--spacing-3); |
| border-radius: var(--radius-md); |
| font-size: var(--size-caption); |
| font-weight: 500; |
| cursor: pointer; |
| transition: background-color 0.2s var(--ease-interactive), |
| border-color 0.2s var(--ease-interactive), |
| color 0.2s var(--ease-interactive), |
| transform 0.18s var(--ease-out); |
| } |
|
|
| .toast-action:hover { |
| background: var(--brand-hover); |
| transform: translateY(-1px); |
| } |
|
|
| |
| .generate-btn:not([aria-busy="true"]):hover { |
| transform: translateY(-2px) scale(1.02); |
| box-shadow: 0 8px 25px color-mix(in oklab, var(--brand-primary) 35%, transparent); |
| } |
|
|
| .generate-btn:not([aria-busy="true"]):active { |
| transform: translateY(0) scale(0.98); |
| } |
|
|
| |
| .form-group input:hover:not(:focus), |
| .form-group textarea:hover:not(:focus), |
| .form-group select:hover:not(:focus) { |
| border-color: var(--border-medium); |
| background: var(--surface-secondary); |
| } |
|
|
| |
| .card:hover { |
| border-color: color-mix(in oklab, var(--brand-primary) 25%, transparent); |
| box-shadow: var(--shadow-md); |
| } |
|
|
| |
| .generation-item:hover { |
| transform: translateY(-2px); |
| box-shadow: var(--shadow-lg); |
| } |
|
|
| |
| .api-key-status.testing::before { |
| content: "⏳ "; |
| } |
|
|
| .api-key-status.success::before { |
| content: "✓ "; |
| } |
|
|
| .api-key-status.error::before { |
| content: "⚠ "; |
| } |
|
|
| |
| @media (prefers-reduced-motion: reduce) { |
| .progress-ring, |
| .skeleton, |
| .generation-meta.processing::before { |
| animation: none; |
| } |
|
|
| .banner, |
| .toast { |
| transition: opacity 0.1s ease; |
| } |
|
|
| .banner.show, |
| .toast.show { |
| transform: translateX(-50%) translateY(0); |
| } |
|
|
| .generate-btn:hover, |
| .generation-item:hover, |
| .card:hover { |
| transform: none; |
| } |
| } |
|
|
| |
| @keyframes pulse-highlight { |
| 0%, 100% { |
| box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); |
| border-color: var(--border-light); |
| } |
| 50% { |
| box-shadow: 0 0 0 8px rgba(0, 122, 255, 0.15), |
| 0 0 20px rgba(0, 122, 255, 0.1); |
| border-color: var(--brand-primary); |
| } |
| } |
|
|
| |
| .settings-floating-btn { |
| position: fixed; |
| top: 20px; |
| right: 20px; |
| width: 48px; |
| height: 48px; |
| border-radius: 50%; |
| background: var(--surface-primary); |
| border: 1px solid var(--border-light); |
| font-size: 24px; |
| cursor: pointer; |
| z-index: 999; |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| transition: all 0.2s ease; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .settings-floating-btn:hover { |
| transform: scale(1.1); |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); |
| } |
|
|
| |
| .settings-modal { |
| display: none; |
| position: fixed; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| background: rgba(0, 0, 0, 0.5); |
| z-index: 1000; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .settings-modal.show { |
| display: flex; |
| } |
|
|
| .settings-modal-content { |
| background: var(--surface-primary); |
| border-radius: var(--radius-lg); |
| max-width: 500px; |
| width: 90%; |
| max-height: 80vh; |
| overflow-y: auto; |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); |
| } |
|
|
| .settings-modal-header { |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| padding: var(--spacing-4); |
| border-bottom: 1px solid var(--border-light); |
| } |
|
|
| .settings-modal-header h2 { |
| margin: 0; |
| font-size: var(--font-lg); |
| } |
|
|
| .modal-close-btn { |
| width: 32px; |
| height: 32px; |
| border-radius: 50%; |
| border: none; |
| background: transparent; |
| font-size: 24px; |
| cursor: pointer; |
| color: var(--text-secondary); |
| transition: all 0.2s ease; |
| } |
|
|
| .modal-close-btn:hover { |
| background: var(--surface-secondary); |
| color: var(--text-primary); |
| } |
|
|
| .settings-modal-body { |
| padding: var(--spacing-4); |
| } |
|
|
| .settings-modal-body .form-group { |
| margin-bottom: var(--spacing-4); |
| } |
|
|
| @media (max-width: 768px) { |
| .settings-floating-btn { |
| display: none; |
| } |
| } |