801 lines
18 KiB
CSS
801 lines
18 KiB
CSS
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Ena Planner — Settings UI (iframe)
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
:root {
|
|
--bg-primary: #0d1117;
|
|
--bg-secondary: #161b22;
|
|
--bg-tertiary: #21262d;
|
|
--bg-input: rgba(0, 0, 0, 0.25);
|
|
--text-primary: #e6edf3;
|
|
--text-secondary: #8b949e;
|
|
--text-muted: #484f58;
|
|
--border: rgba(255, 255, 255, 0.1);
|
|
--border-focus: rgba(212, 165, 116, 0.5);
|
|
--accent: #d4a574;
|
|
--accent-soft: rgba(212, 165, 116, 0.15);
|
|
--success: #3fb950;
|
|
--danger: #f85149;
|
|
--warning: #d29922;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: auto;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Layout
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.app-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 20px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.app-body {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.app-sidebar {
|
|
width: 200px;
|
|
min-width: 200px;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border);
|
|
padding: 16px 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.app-main {
|
|
flex: 1;
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Header & Save Status
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.header-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-logo i {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.header-spacer {
|
|
flex: 1;
|
|
min-width: 10px;
|
|
}
|
|
|
|
.header-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.header-badge.on {
|
|
color: var(--success);
|
|
border-color: rgba(63, 185, 80, 0.3);
|
|
}
|
|
|
|
.header-badge i {
|
|
font-size: 6px;
|
|
}
|
|
|
|
.save-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.save-status.saving {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.save-status.saved {
|
|
color: var(--success);
|
|
}
|
|
|
|
.save-status.error {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.save-status i {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.header-close {
|
|
width: 36px;
|
|
height: 36px;
|
|
min-width: 36px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.header-close:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Sidebar nav
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-item i {
|
|
width: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-divider {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 8px 0;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Views
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.view {
|
|
display: none;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.view.active {
|
|
display: block;
|
|
animation: viewIn 0.2s ease;
|
|
}
|
|
|
|
@keyframes viewIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.view-header {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.view-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.view-desc {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Cards & Forms
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-bottom: 16px;
|
|
color: var(--accent);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-hint {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: var(--border-focus);
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
textarea.input {
|
|
min-height: 80px;
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
}
|
|
|
|
select.input {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.input-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.input-row .input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Model selector */
|
|
.model-selector {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.model-selector.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Buttons
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 10px 16px;
|
|
min-height: 40px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: #000;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #e5b685;
|
|
}
|
|
|
|
.btn-danger {
|
|
color: var(--danger);
|
|
border-color: rgba(248, 81, 73, 0.3);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: rgba(248, 81, 73, 0.1);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 10px;
|
|
min-height: 32px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-group {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Toggle button with text */
|
|
.btn-toggle {
|
|
min-width: 80px;
|
|
}
|
|
|
|
/* Undo button */
|
|
.undo-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 14px;
|
|
margin-top: 10px;
|
|
background: var(--accent-soft);
|
|
border: 1px solid rgba(212, 165, 116, 0.2);
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.undo-bar.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Tip box
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.tip-box {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 12px 14px;
|
|
background: var(--accent-soft);
|
|
border: 1px solid rgba(212, 165, 116, 0.2);
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.tip-box i {
|
|
color: var(--accent);
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Status
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.status-text {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 8px;
|
|
min-height: 18px;
|
|
}
|
|
|
|
.status-text.success {
|
|
color: var(--success);
|
|
}
|
|
|
|
.status-text.error {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.status-text.loading {
|
|
color: var(--warning);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Prompt blocks
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.prompt-block {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 14px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.prompt-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.prompt-head-left {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
flex: 1;
|
|
min-width: 280px;
|
|
}
|
|
|
|
.prompt-head-left input,
|
|
.prompt-head-left select {
|
|
max-width: 200px;
|
|
}
|
|
|
|
.prompt-head-right {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.prompt-block textarea.input {
|
|
min-height: 100px;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.prompt-empty {
|
|
text-align: center;
|
|
padding: 30px 20px;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Logs
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.log-list {
|
|
max-height: 62vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
.log-item {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.log-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
gap: 8px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.log-error {
|
|
color: var(--danger);
|
|
font-size: 12px;
|
|
white-space: pre-wrap;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.log-pre {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 12px;
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
max-height: 260px;
|
|
overflow: auto;
|
|
margin-top: 6px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.log-empty {
|
|
text-align: center;
|
|
padding: 30px 20px;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
details summary {
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
padding: 4px 0;
|
|
user-select: none;
|
|
}
|
|
|
|
details summary:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Debug output
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.debug-output {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 12px;
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
max-height: 400px;
|
|
overflow: auto;
|
|
margin-top: 12px;
|
|
font-family: monospace;
|
|
display: none;
|
|
}
|
|
|
|
.debug-output.visible {
|
|
display: block;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Mobile nav
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.mobile-nav {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 60px;
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border);
|
|
z-index: 100;
|
|
}
|
|
|
|
.mobile-nav-inner {
|
|
display: flex;
|
|
height: 100%;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.mobile-nav-inner::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-nav-item {
|
|
flex: 1;
|
|
min-width: 56px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
color: var(--text-muted);
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
padding: 8px 4px;
|
|
}
|
|
|
|
.mobile-nav-item i {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.mobile-nav-item.active {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Responsive
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
@media (max-width: 768px) {
|
|
.app-sidebar {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-nav {
|
|
display: block;
|
|
}
|
|
|
|
.app-body {
|
|
padding-bottom: 60px;
|
|
}
|
|
|
|
.app-main {
|
|
padding: 16px;
|
|
padding-bottom: 76px;
|
|
}
|
|
|
|
.app-header {
|
|
padding: 10px 12px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.header-logo span {
|
|
display: none;
|
|
}
|
|
|
|
.header-badge span,
|
|
.save-status span {
|
|
display: none;
|
|
}
|
|
|
|
.header-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
min-width: 32px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.view-title {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.prompt-head-left {
|
|
min-width: 0;
|
|
}
|
|
|
|
.prompt-head-left input,
|
|
.prompt-head-left select {
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
.app-header {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.mobile-nav-item {
|
|
min-width: 48px;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.mobile-nav-item i {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
.btn {
|
|
min-height: 44px;
|
|
}
|
|
|
|
.input {
|
|
min-height: 44px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.nav-item {
|
|
min-height: 44px;
|
|
}
|
|
|
|
.header-close {
|
|
width: 44px;
|
|
height: 44px;
|
|
min-width: 44px;
|
|
}
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
Utilities
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
} |