:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color: #18212f; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 1440px; margin: 0 auto; padding: 34px; }
.topbar, .editor-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar { margin-bottom: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; letter-spacing: .01em; }
h2 { font-size: 19px; }
h3 { font-size: 15px; margin-bottom: 12px; }
.eyebrow { color: #68809c; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; min-height: calc(100vh - 150px); }
.panel { background: #fff; border: 1px solid #dbe3ee; border-radius: 12px; box-shadow: 0 7px 24px rgba(24, 56, 92, .06); }
.projects-panel { padding: 18px; }
.editor-panel { padding: 28px; }
button { border: 1px solid #c7d5e6; border-radius: 7px; background: #fff; color: #1e4f83; padding: 8px 13px; cursor: pointer; font: inherit; }
button:hover, button.active { background: #eaf3ff; border-color: #6ba3dc; }
.actions { display: flex; gap: 8px; }
.actions button { background: #1e63a6; border-color: #1e63a6; color: #fff; }
.project-list { display: grid; gap: 8px; margin-top: 18px; }
.project { width: 100%; text-align: left; display: grid; gap: 5px; }
.project span { color: #8090a3; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { min-height: 560px; display: grid; place-items: center; color: #8998aa; }
.concept { color: #65768a; margin: 22px 0; line-height: 1.6; max-width: 900px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-grid article { border: 1px solid #e1e8f0; background: #fbfdff; border-radius: 9px; padding: 16px; min-height: 480px; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; color: #42546b; font-size: 12px; line-height: 1.6; max-height: 680px; overflow: auto; }
.status { color: #64748b; font-size: 13px; }.status.ok { color: #19734a; }.status.warn { color: #9a6700; }.status.error { color: #b42318; }
.message { margin: 12px 0; background: #eef6ff; color: #275d91; padding: 10px 12px; border-radius: 7px; font-size: 13px; }
.message.success { background: #ecfdf3; color: #16704a; }
.message.error { background: #fff1f0; color: #b42318; }
.muted { color: #98a6b6; font-size: 13px; margin-top: 20px; }
dialog { border: 0; border-radius: 12px; box-shadow: 0 20px 70px rgba(20, 42, 70, .25); padding: 24px; width: min(520px, calc(100vw - 36px)); }
dialog::backdrop { background: rgba(15, 31, 51, .35); }
dialog h2 { margin-bottom: 18px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-heading h2 { margin-bottom: 0; }
.dialog-note { color: #718096; font-size: 12px; line-height: 1.6; margin: -4px 0 18px; }
.icon-button { border: 0; background: transparent; color: #718096; font-size: 24px; line-height: 1; padding: 2px 6px; }
.icon-button:hover { background: #eef3f8; }
.primary { background: #1e63a6; border-color: #1e63a6; color: #fff; }
label { display: grid; gap: 7px; color: #53657a; font-size: 13px; margin: 14px 0; }
input, select, textarea { border: 1px solid #ccd8e6; border-radius: 7px; padding: 10px; font: inherit; color: #172b43; background: #fff; }
textarea { min-height: 130px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@media (max-width: 820px) { .shell { padding: 18px; } .layout { grid-template-columns: 1fr; } .result-grid { grid-template-columns: 1fr; } .editor-heading { align-items: flex-start; flex-direction: column; } }
