/* Paleta baseada na referência enviada pelo usuário. Cores sólidas, sem efeitos de luz. */
:root {
  --brand: #2857d9;
  --brand-light: #eaf0ff;
  --brand-dark: #193ea8;
  --navy: #090f2d;
  --navy-soft: #151e40;
  --gold: #e7bd69;
  --cyan: #16bcd1;
  --violet: #7952cd;
  --ink: #192443;
  --muted: #6e7b95;
  --border: #e0e5ef;
  --background: #f5f7fb;
}
.sidebar { background: var(--navy); border-right-color: #202b4c; color: #f1f4fc; }
.brand { gap: 10px; }
.brand strong { color: var(--gold); font-size: 24px; font-weight: 800; letter-spacing: .4px; }
.brand small { color: #aab7d4; letter-spacing: 1.7px; }
.brand-dot { color: var(--cyan); }
.brand-symbol { background: var(--navy-soft); border: 1px solid #39466b; color: var(--gold); box-shadow: none; }
.workspace { border-color: #2b3657; background: #101836; }
.workspace-icon { color: var(--gold); background: #26304e; }
.workspace small { color: #a7b3cb; }
.new-map.button.primary { color: var(--navy); background: var(--gold); box-shadow: none; }
.nav-caption { color: #a6b2cc; }
.nav-item { color: #b9c4db; }
.nav-item:hover { background: #16203f; }
.nav-item.active { background: #1d294a; color: #f0ca83; }
.nav-dot { background: var(--gold); }
.count, .new-badge { color: #c9d5ed; background: #253254; }
.sidebar-divider, .profile { border-color: #2a3556; }
.sidebar-divider { background: #263250; }
.recent-maps button { color: #b5c2dc; }
.recent-maps button:hover { background: #16203f; border-radius: 5px; }
.recent-maps button:before { background: var(--cyan); }
.idea-card { background: #131e40; border-color: #2c3b65; box-shadow: none; }
.idea-spark, .idea-card button { color: var(--gold); }
.idea-card p { color: #afbedc; }
.profile small { color: #a5b5d2; }
.profile > .icon { color: #adbad4; }
.avatar { background: #233253; color: #f0cc84; }
.topbar { background: var(--navy); border-bottom-color: #293452; }
.breadcrumbs { color: #a7b5d1; }
.breadcrumbs strong { color: #edf2ff; }
.topbar .icon-button { color: #b2c1df; }
.topbar .icon-button:hover { color: var(--gold); background: #202d4c; }
.local-badge { color: #becae0; }
.local-badge i { background: var(--gold); }
.document-icon { color: var(--brand); background: #eaf0fd; border-color: #dce5f7; }
.title-line input { color: #162241; }
.title-line input:hover { background: #f3f6fc; }
.title-edit { color: #7a89a5; }
.save-line { color: #75839d; }
.saved-dot { background: #258e7e; }
.button.primary { box-shadow: none; }
.button.subtle { border-color: #dce3ef; color: #425270; }
.button.subtle:hover { background: #edf2fb; }
.document-actions .button.primary { background: var(--brand); color: #fff; }
.tool { color: #647390; }
.tool:hover { background: #eff3fb; }
.tool.active { background: var(--brand-light); color: var(--brand); }
.canvas-tip { color: #76849f; }
.canvas-wrap { background-color: #f6f8fc; background-image: radial-gradient(#d4dce9 .8px, transparent .8px); }
.canvas-label { color: #6a7c9c; }
.canvas-label i { background: var(--cyan); }
.canvas-heading > span:last-child { color: #75849e; }
.canvas-watermark { color: #8796b0; font-weight: 800; letter-spacing: .5px; }
.canvas-hint { color: #7886a0; }
.zoom-control { border-color: #dce3ef; box-shadow: 0 2px 6px #14274708; }
.zoom-control button { color: #536688; }
.connection-hint { background: var(--navy-soft); color: #f5d897; border: 1px solid #b48e45; box-shadow: none; }
.edge-click:hover { stroke: #2857d922; }
.inspector { border-color: var(--border); }
.inspector-title strong { color: #243555; }
.icon-button { color: #7183a4; }
.icon-button:hover { background: #edf2fb; color: var(--brand); }
.inspector-tabs button { color: #70819e; }
.inspector-tabs button.active { color: var(--brand); }
.field-label { color: #576b8d; }
.field-group textarea, .field-group input[type=text], .field-group input[type=number], .field-group select { border-color: #dce3ee; color: #304362; }
.shape-choice { border-color: #dce3ef; color: #7386a6; }
.shape-choice.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.swatch { box-shadow: 0 0 0 1px #d4ddeb; }
.inspector-action { color: #59708e; }
.inspector-action.danger { color: #b94860; }
.inspector-note { background: #f3f6fb; border-color: #e0e7f2; color: #6a7d99; }
.inspector-note strong { color: #3d557b; }
.inspector-empty { color: #6b7f9b; }
.statusbar { color: #7686a1; }
.statusbar i { background: #8394b2; }
.status-spark { color: #a2762d; }
.library-heading p, .storage-note { color: #6c7e9c; }
.library-tools label { border-color: #dce4f1; }
.library-tools input { color: #253a5c; }
.library-tools input::placeholder { color: #6d81a2; }
.library-tools .icon { color: #6f85a6; }
.map-card { border-color: #dfe6f1; }
.map-preview { background: #edf2fa; }
.map-card-body small { color: #6f82a0; }
.empty-library { color: #647b9f; border-color: #c8d6ea; }
dialog { border-color: #d9e2f1; box-shadow: 0 15px 70px #07122c33; }
dialog::backdrop { background: #07122c88; backdrop-filter: none; }
.modal-head { background: var(--navy); color: #f4f7ff; border-bottom: 3px solid var(--gold); }
.modal-head .eyebrow { color: var(--gold); }
.modal-head p { color: #b8c6e0; }
.modal-head .icon-button { color: #c5d1e8; }
.modal-head .icon-button:hover { background: #243254; color: #f0ce8c; }
.template-card { border-color: #dce4f1; }
.template-card:hover { border-color: var(--brand); box-shadow: 0 3px 10px #1427470d; }
.template-preview { background: #f0f4fb; border-color: #e2e9f4; }
.template-info p { color: #667c9e; }
.blank-template { border-color: #bacce6; }
.blank-template small { color: #7086a8; }
.creation-section-title { margin: 0 0 12px; color: var(--navy); font-size: 13px; }
.flow-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 20px; background: #f0f4fb; border-bottom: 1px solid #d9e2f1; flex-shrink: 0; }
.flow-toolbar[hidden] { display: none; }
.flow-toolbar-label { color: #526b91; font-size: 11px; font-weight: 600; margin-right: 8px; }
.flow-toolbar .button { min-height: 38px; padding: 8px 12px; font-size: 11px; background: white; border: 1px solid #cdd9ed; }
.flow-toolbar .button:hover { border-color: var(--brand); background: #e7eefb; }
.flow-decision-icon, .flow-organize-icon { font-size: 20px; line-height: 1; color: var(--brand); }
@media(max-width:760px) { .flow-toolbar { gap: 6px; padding: 8px 10px; } .flow-toolbar-label { display: none; } .flow-toolbar .button { min-height: 40px; padding: 8px 10px; font-size: 10px; } }
.blank-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.blank-template-grid .blank-template { min-height: 90px; margin: 0; border-style: solid; background: #f0f4fb; line-height: 1.5; }
.blank-template-grid .blank-template:hover { border-color: var(--brand); background: #e7eefb; }
.blank-template-grid .blank-template strong { color: var(--navy); font-size: 13px; }
.blank-template-grid .blank-template > .icon { width: 26px; height: 26px; flex-shrink: 0; }
@media(max-width:560px) { .blank-template-grid { grid-template-columns: 1fr; } }
.export-option { border-color: #dce4f1; }
.export-option small { color: #6b7f9e; }
.modal-foot { color: #657997; }
.help-list p { color: #647a9d; }
.keyboard-shortcuts { color: #627b9f; }
kbd { color: #4d6490; background: #edf2fb; border-color: #d6e0f0; }
.toast { color: #fff5df; background: #172342; border: 1px solid #d0a653; box-shadow: 0 4px 16px #07122c22; }
.settings-color input { border-color: #cedbee; }
.settings-color p, .delete-confirm p, .small-note { color: #6b7f9e; }
.node-editor { color: #182948; box-shadow: 0 3px 15px #14274714; }
.canvas-heading > span, .canvas-label, .canvas-heading > span:last-child, .canvas-hint, .canvas-watermark { color: var(--canvas-ink, #6a7c9c); }
.document-actions .appearance-button { display: inline-flex; align-items: center; gap: 7px; }
.document-actions .appearance-button span { display: inline; }
.appearance-launch { margin: 14px 12px 0; width: calc(100% - 24px); padding: 12px; border: 1px solid #dce4f1; border-radius: 8px; background: #f0f4fb; }
.creation-appearance { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 13px 15px; margin-bottom: 22px; border: 1px solid #dce4f1; border-radius: 9px; background: #f6f8fc; }
.creation-appearance label { font-size: 12px; font-weight: 700; color: var(--navy); }
.creation-appearance select { border: 1px solid #cbd6e8; background: white; border-radius: 6px; padding: 10px; font: inherit; font-size: 12px; color: #243555; }
.creation-appearance small { font-size: 11px; color: #647593; }
.appearance-intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.appearance-intro > span:last-child { color: #6b7f9e; font-size: 10px; }
.section-kicker { color: #526583; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.theme-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid #e0e6f0; border-radius: 10px; padding: 0; background: white; text-align: left; cursor: pointer; color: #182948; }
.theme-card:hover { border-color: #94ade0; }
.theme-card.active { border-color: var(--brand); }
.theme-card:focus-visible, .style-field select:focus-visible { outline: 3px solid #d6b065; outline-offset: 3px; }
.theme-preview { display: block; width: 100%; height: 125px; border-bottom: 1px solid #e0e6f0; }
.theme-preview svg { display: block; width: 100%; height: 100%; }
.theme-copy { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 12px 13px 8px; }
.theme-copy strong { font-size: 12px; font-weight: 800; }
.theme-copy small { font-size: 10px; color: #647593; line-height: 1.5; }
.theme-colors { display: flex; gap: 5px; padding: 2px 13px 13px; }
.theme-colors i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #11194215; }
.style-note { color: #647593; font-size: 11px; line-height: 1.7; margin: 12px 0; }
.appearance-custom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; border-top: 1px solid #e0e6f0; padding-top: 22px; margin-top: 20px; }
.appearance-controls fieldset { border: 0; padding: 0; margin: 18px 0 24px; min-width: 0; }
.appearance-controls legend { color: #243555; font-weight: 700; font-size: 12px; padding: 0; margin-bottom: 12px; }
.style-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.style-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.style-field > span { color: #647593; font-size: 10px; font-weight: 600; }
.style-field select { width: 100%; min-height: 42px; font: inherit; font-size: 11px; color: #253a5c; background: white; border: 1px solid #cbd6e8; border-radius: 6px; padding: 8px; }
.edge-style-fields { display: grid; gap: 13px; padding: 0 18px 18px; }
.appearance-preview-panel { align-self: start; position: sticky; top: 18px; }
#appearance-preview { display: flex; margin-top: 13px; overflow: hidden; align-items: center; min-height: 220px; border: 1px solid #d8e1ef; border-radius: 9px; background: #f6f8fc; }
#appearance-preview svg { display: block; width: 100%; height: auto; max-height: 360px; }
.appearance-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 18px; border-top: 1px solid #e0e6f0; }
.appearance-footer p { font-size: 11px; line-height: 1.7; color: #647593; margin: 0; }
.appearance-footer .button { min-height: 44px; flex-shrink: 0; }
@media(max-width:760px) {
 .document-actions .appearance-button { padding: 9px; font-size: 10px; }
 .document-actions .appearance-button span:not([data-icon]) { display: inline; }
 .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
 .appearance-custom { grid-template-columns: 1fr; gap: 0; }
 .appearance-preview-panel { position: static; grid-row: 1; margin-bottom: 22px; }
 #appearance-preview { min-height: 140px; }
 #appearance-preview svg { max-height: 220px; }
 .appearance-footer { gap: 12px; }
}
.layout-select button { border-color: #d9e3f1; }
.brand-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 25px; }
.brand-chip { display: flex; flex-direction: column; gap: 7px; color: #5b6f90; font-size: 10px; text-align: center; width: 68px; }
.brand-chip i { height: 30px; border-radius: 5px; border: 1px solid #18264520; }
@media(max-width:1250px) { .brand strong { font-size: 21px; } .brand { padding-left: 5px; padding-right: 5px; gap: 8px; } }
@media(max-width:1050px) { .brand strong { font-size: 19px; } .brand-symbol { width: 33px; height: 38px; font-size: 32px; } .inspector { box-shadow: -5px 0 16px #11234010; } }
@media(max-width:760px) { .brand strong { font-size: 24px; } .brand-symbol { width: 37px; height: 40px; } .sidebar { box-shadow: 8px 0 40px #07122c33; } }
