Files

491 lines
8.7 KiB
CSS

:root {
color-scheme: light;
--bg: #f4f1ea;
--bg-deep: #e4ded3;
--ink: #2a2520;
--muted: #6a5f55;
--accent: #c76b3a;
--accent-deep: #8f3f20;
--panel: #fbfaf7;
--panel-shadow: rgba(41, 31, 23, 0.12);
--border: rgba(42, 37, 32, 0.15);
--success: #2f7a4f;
--warning: #b66a20;
--danger: #9c2f2f;
--radius: 1.1rem;
--space: 1rem;
--mono: 'Menlo', 'Consolas', 'Courier New', monospace;
--serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: var(--serif);
font-size: 1rem;
color: var(--ink);
background: radial-gradient(circle at top left, #f9f6ef 0%, var(--bg) 42%, var(--bg-deep) 100%);
min-height: 100vh;
}
body::before {
content: '';
position: fixed;
inset: 0;
background: repeating-linear-gradient(
135deg,
rgba(42, 37, 32, 0.04) 0px,
rgba(42, 37, 32, 0.04) 1px,
transparent 1px,
transparent 10px
),
radial-gradient(circle at 30% 20%, rgba(199, 107, 58, 0.12), transparent 45%);
pointer-events: none;
z-index: -1;
}
.app {
max-width: 1200px;
margin: 0 auto;
padding: 1.5rem 1.25rem 2.5rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.hero {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1.25rem 1.5rem;
border-radius: var(--radius);
background: linear-gradient(120deg, #fbf9f4 0%, #f5efe6 100%);
box-shadow: 0 18px 40px var(--panel-shadow);
border: 1px solid var(--border);
}
.brand {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.brand-mark {
font-size: clamp(1.8rem, 4vw, 2.5rem);
letter-spacing: 0.06em;
text-transform: uppercase;
}
.brand-meta,
.status-meta {
display: flex;
flex-wrap: wrap;
gap: 0.8rem;
font-size: 0.95rem;
color: var(--muted);
}
.status {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}
.status-controls {
display: flex;
flex-direction: column;
gap: 0.6rem;
align-items: flex-start;
}
.toggle {
display: inline-flex;
align-items: center;
gap: 0.65rem;
font-size: 0.9rem;
color: var(--muted);
cursor: pointer;
}
.toggle input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.toggle-track {
width: 2.6rem;
height: 1.4rem;
border-radius: 999px;
background: rgba(42, 37, 32, 0.12);
border: 1px solid var(--border);
position: relative;
transition: background 200ms ease;
}
.toggle-track::after {
content: '';
position: absolute;
width: 1.1rem;
height: 1.1rem;
border-radius: 50%;
background: #fff7ef;
top: 0.1rem;
left: 0.15rem;
box-shadow: 0 4px 8px rgba(42, 37, 32, 0.2);
transition: transform 200ms ease;
}
.toggle input:checked + .toggle-track {
background: rgba(199, 107, 58, 0.35);
}
.toggle input:checked + .toggle-track::after {
transform: translateX(1.1rem);
}
.toggle-label {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.status-pill {
font-size: 0.95rem;
font-family: var(--mono);
padding: 0.4rem 0.75rem;
border-radius: 999px;
background: rgba(199, 107, 58, 0.12);
color: var(--accent-deep);
border: 1px solid rgba(199, 107, 58, 0.35);
}
.task,
.panel {
background: var(--panel);
border-radius: var(--radius);
padding: 1.25rem 1.5rem;
border: 1px solid var(--border);
box-shadow: 0 12px 32px var(--panel-shadow);
animation: float-in 600ms ease both;
}
.section-title {
display: flex;
flex-direction: column;
gap: 0.3rem;
margin-bottom: 0.8rem;
}
.section-title h2,
.panel-header h2 {
margin: 0;
font-size: 1.25rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.section-sub,
.panel-sub,
.status-sub {
font-size: 0.85rem;
color: var(--muted);
letter-spacing: 0.04em;
text-transform: uppercase;
}
.task-brief {
margin: 0;
font-size: 1.05rem;
line-height: 1.6;
}
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}
.panel-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
flex-wrap: wrap;
}
.panel-body {
display: flex;
flex-direction: column;
gap: 1rem;
}
.select-label {
font-size: 0.85rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--muted);
}
.planner-select {
min-height: 44px;
padding: 0.5rem 0.75rem;
padding-right: 2rem;
border-radius: 0.8rem;
border: 1px solid var(--border);
background: #fffdf8;
font-family: var(--serif);
font-size: 0.95rem;
color: var(--ink);
appearance: none;
background-image: radial-gradient(circle at 65% 55%, rgba(199, 107, 58, 0.35), transparent 55%),
linear-gradient(45deg, transparent 50%, var(--muted) 50%),
linear-gradient(135deg, var(--muted) 50%, transparent 50%);
background-position: right 0.65rem center, right 0.95rem center, right 0.55rem center;
background-size: 16px 16px, 6px 6px, 6px 6px;
background-repeat: no-repeat;
}
.planner-detail {
background: rgba(244, 241, 234, 0.6);
}
.planner-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.planner-card {
border: 1px solid var(--border);
border-radius: 0.9rem;
padding: 0.9rem 1rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
background: rgba(244, 241, 234, 0.6);
}
.planner-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.6rem;
flex-wrap: wrap;
}
.planner-id {
font-weight: 600;
}
.status-chip {
font-size: 0.8rem;
padding: 0.2rem 0.6rem;
border-radius: 999px;
background: rgba(42, 37, 32, 0.08);
text-transform: uppercase;
letter-spacing: 0.06em;
}
.content-block {
margin: 0;
font-family: var(--mono);
background: rgba(42, 37, 32, 0.06);
border-radius: 0.85rem;
padding: 0.9rem;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-word;
}
.error-list {
margin: 0;
padding-left: 1.2rem;
color: var(--danger);
font-size: 0.9rem;
}
.editor-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 1rem;
}
.editor-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
.editor-pane,
.preview-pane {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.editor-pane label,
.preview-pane label,
.action-group label {
font-size: 0.85rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--muted);
}
textarea {
width: 100%;
min-height: 220px;
font-family: var(--mono);
font-size: 0.95rem;
padding: 0.9rem;
border-radius: 0.9rem;
border: 1px solid var(--border);
background: #fffdf8;
resize: vertical;
}
textarea[readonly] {
background: rgba(42, 37, 32, 0.06);
}
.action-row {
margin-top: 1.2rem;
display: flex;
flex-direction: column;
gap: 1.2rem;
}
.action-group {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.rerun-row {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
input[type='text'] {
min-height: 44px;
padding: 0.6rem 0.8rem;
border-radius: 0.8rem;
border: 1px solid var(--border);
font-size: 0.95rem;
}
textarea#rerunContext {
min-height: 88px;
padding: 0.7rem 0.9rem;
border-radius: 0.8rem;
border: 1px solid var(--border);
font-size: 0.95rem;
font-family: var(--mono);
background: #fffdf8;
resize: vertical;
}
.btn {
min-height: 44px;
padding: 0.6rem 1.1rem;
border-radius: 999px;
border: 1px solid var(--border);
background: rgba(42, 37, 32, 0.04);
color: var(--ink);
font-family: var(--serif);
font-size: 0.95rem;
cursor: pointer;
transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(42, 37, 32, 0.18);
}
.btn.primary {
background: var(--accent);
color: #fffaf4;
border-color: var(--accent-deep);
}
.btn.danger {
background: #b14534;
color: #fff4ec;
border-color: #7a2e22;
}
.rerun-row .btn.danger {
min-height: 44px;
align-self: flex-start;
}
.btn.ghost {
background: transparent;
color: var(--accent-deep);
border-color: rgba(199, 107, 58, 0.4);
}
.status-text {
font-size: 0.9rem;
color: var(--muted);
min-height: 1.2rem;
}
.panel-wide {
grid-column: 1 / -1;
}
@media (min-width: 768px) {
.hero {
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.status {
justify-content: flex-end;
}
.editor-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rerun-row {
flex-direction: row;
}
}
@media (min-width: 1024px) {
.grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@keyframes float-in {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}