:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #18222d; background: #f5f7f9; }
* { box-sizing: border-box; }
body { margin: 0; }
header { height: 64px; background: white; border-bottom: 1px solid #dfe5ea; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.brand { font-size: 20px; font-weight: 800; margin-right: 10px; }
.muted, .hint { color: #687582; }
.header-actions { display: flex; gap: 8px; align-items: center; }
button, select { font: inherit; }
button { border: 1px solid #cbd5dd; background: white; border-radius: 8px; padding: 9px 12px; cursor: pointer; }
button:hover { background: #f5f7f9; }
button.primary { background: #1c63b7; color: white; border-color: #1c63b7; }
button:disabled { opacity: .55; cursor: wait; }
.pill { border: 1px solid #d5dce3; border-radius: 999px; padding: 5px 9px; font-size: 12px; }
.pill.success { background: #eef8f0; border-color: #b8dfc0; }
.pill.warning { background: #fff7e8; border-color: #efd49a; }
main { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 64px); }
aside { background: white; border-right: 1px solid #dfe5ea; overflow: auto; padding: 16px; }
aside section { border-bottom: 1px solid #edf0f2; padding: 2px 0 18px; margin-bottom: 16px; }
h2 { font-size: 15px; margin: 8px 0 3px; }
.hint { font-size: 12px; margin: 4px 0 10px; line-height: 1.45; }
select { width: 100%; padding: 9px; border: 1px solid #ced6dd; border-radius: 7px; margin-bottom: 7px; background: white; }
#uploadBtn, #docsUploadBtn { width: 100%; }
.drawing-card { display: flex; flex-direction: column; text-align: left; width: 100%; margin: 7px 0; }
.drawing-card span, .drawing-card small { color: #687582; }
.drawing-card em { color: #a66100; font-size: 11px; margin-top: 4px; }
.drawing-card.active, .version-row.active { border-color: #1c63b7; box-shadow: 0 0 0 1px #1c63b7 inset; }
.browser-list { max-height: 180px; overflow: auto; border: 1px solid #e0e5ea; border-radius: 7px; margin-top: 5px; }
.browser-list:empty { display: none; }
.content-row, .version-row { width: 100%; border: 0; border-bottom: 1px solid #edf0f2; border-radius: 0; text-align: left; padding: 8px; }
.content-row span { margin-right: 7px; }
.version-row small { display: block; color: #74818d; font-size: 10px; }
.actions { display: grid; gap: 7px; border-bottom: 0; }
.workspace { min-width: 0; display: grid; grid-template-rows: 46px minmax(350px, 1fr) 220px; }
.viewer-title { background: white; border-bottom: 1px solid #e1e6ea; padding: 8px 14px; }
.viewer-title span { display: block; color: #73808c; font-size: 11px; }
#viewer { position: relative; min-height: 0; background: #e8edf1; }
.empty { height: 100%; display: grid; place-items: center; padding: 30px; text-align: center; color: #687582; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dfe5ea; min-height: 0; }
.panel { overflow: auto; padding: 10px 14px; background: white; }
.panel + .panel { border-left: 1px solid #e1e6ea; }
h3 { margin: 0 0 7px; font-size: 13px; }
#events > div { border-bottom: 1px solid #edf0f2; padding: 5px 0; }
#events small, #events code { display: block; color: #74818d; font-size: 10px; }
.log-line { font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; border-bottom: 1px solid #eef1f3; padding: 4px 0; }
.log-line.ok { color: #26723a; }.log-line.error { color: #a23535; }
.empty-small { color: #74818d; font-size: 11px; }
@media (max-width: 950px) { main { grid-template-columns: 310px minmax(0, 1fr); } .header-actions .pill { display: none; } }
/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 11px; margin: 4px 0 6px; min-height: 18px; }
.breadcrumb:empty { display: none; }
.crumb { color: #1c63b7; cursor: pointer; white-space: nowrap; }
.crumb:hover { text-decoration: underline; }
.crumb.active { color: #374553; font-weight: 600; cursor: default; }
.crumb.active:hover { text-decoration: none; }
.crumb-sep { color: #9aaab6; user-select: none; }

