.db-app [hidden] { display: none !important; }
.work-mode-tabs { max-width: 1700px; margin: 0 auto 12px; display: flex; gap: 5px; border-bottom: 1px solid #cadbe3; }
.work-mode-tabs button { border: 0; border-bottom: 3px solid transparent; padding: 11px 18px; background: transparent; color: #52677a; cursor: pointer; font-weight: 750; }
.work-mode-tabs button.active { border-bottom-color: #0d8c85; color: #0b625f; background: #fff; border-radius: 8px 8px 0 0; }
.studio-workspace { max-width: 1700px; margin: 0 auto; background: #fff; border: 1px solid #d9e4e8; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 34px #17304d12; }
.studio-ribbon { min-height: 78px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px; padding: 14px 18px; background: #f7fbfa; border-bottom: 1px solid #dbe8e7; }
.studio-ribbon-title { display: grid; min-width: 185px; }
.studio-ribbon-title strong { color: #153347; font-size: 16px; }
.studio-ribbon-title small { color: #6f8290; font-size: 11px; }
.studio-ribbon-actions { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.studio-ribbon-actions .db-button { white-space: nowrap; }
.studio-import-button { position: relative; cursor: pointer; }
.studio-dialect { display: flex; align-items: center; gap: 3px; margin-left: auto; padding: 3px; border-radius: 9px; background: #e7f1f1; }
.studio-dialect span { padding: 0 6px; color: #517078; font-size: 11px; font-weight: 800; }
.studio-dialect button { border: 0; border-radius: 7px; padding: 8px 12px; background: transparent; color: #45616a; cursor: pointer; font-size: 12px; font-weight: 800; }
.studio-dialect button.active { background: #fff; color: #0a766e; box-shadow: 0 2px 6px #112e2f1c; }
.studio-dialect-note { padding: 9px 18px; background: #e8f7f4; border-bottom: 1px solid #cce8e3; color: #0c6661; font-size: 12px; font-weight: 700; }
.studio-learning { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.55fr); border-bottom: 1px solid #dce8e9; }
.studio-learning:not(:has(.studio-solution-details)) { grid-template-columns: 1fr; }
.studio-task-details { min-width: 0; padding: 0 17px; border-right: 1px solid #e0e9eb; background: #fff; }
.studio-task-details:last-child { border-right: 0; }
.studio-task-details summary { padding: 13px 0; cursor: pointer; color: #163b4c; font-size: 13px; font-weight: 850; }
.studio-task-details summary::marker { color: #0d8c85; }
.studio-task-content { max-height: 285px; overflow: auto; padding: 0 0 15px; color: #2c4654; font-size: 12px; line-height: 1.55; }
.studio-task-content h2 { margin: 2px 0 5px; font-size: 16px; }
.studio-task-content h3 { font-size: 13px; margin: 14px 0 5px; }
.studio-task-content p { margin: 5px 0 9px; }
.studio-subtasks { padding-left: 19px; margin: 11px 0; }
.studio-subtasks li { margin-bottom: 5px; }
.studio-source-files { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.studio-source-files a { display: flex; align-items: center; gap: 7px; min-width: 190px; max-width: 340px; padding: 7px 9px; border: 1px solid #d4e5e4; border-radius: 7px; background: #f7fbfa; color: #153c4e; text-decoration: none; }
.studio-source-files a:hover { border-color: #0d8c85; }
.studio-source-files a > span { color: #0d8c85; font-weight: 900; }
.studio-source-files strong,.studio-source-files small { display: block; overflow-wrap: anywhere; }
.studio-source-files strong { font-size: 11px; }
.studio-source-files small { font-size: 10px; color: #71858f; }
.studio-solution-details { background: #f8fcfb; }
.studio-solution-query { border-top: 1px solid #dce8e8; padding-top: 7px; }
.studio-solution-query pre { overflow: auto; padding: 9px; border-radius: 7px; background: #122d3b; color: #dff9f4; font-size: 11px; line-height: 1.5; }
.studio-solution-details .db-prose { font-size: 12px; }
.studio-shell { display: grid; grid-template-columns: 215px minmax(0, 1fr); min-height: 575px; }
.studio-nav { border-right: 1px solid #dfe8eb; background: #f9fbfb; padding: 14px 9px; }
.studio-nav-title { color: #516675; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 850; margin: 0 8px 14px; }
.studio-object-group { display: grid; gap: 2px; margin: 0 0 17px; }
.studio-object-group strong { display: flex; justify-content: space-between; padding: 6px 8px; color: #203b4b; font-size: 12px; }
.studio-object-group small { color: #8399a0; }
.studio-object-group button { width: 100%; border: 0; border-radius: 6px; background: transparent; color: #385362; text-align: left; padding: 7px 9px 7px 17px; cursor: pointer; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.studio-object-group button:hover, .studio-object-group button.active { background: #e1f3f0; color: #086c66; }
.studio-no-object { color: #8a999f; font-size: 10px; padding: 3px 8px; }
.studio-content { min-width: 0; }
.studio-view-tabs { display: flex; gap: 4px; padding: 9px 16px 0; border-bottom: 1px solid #dfe8eb; overflow: auto; }
.studio-view-tabs button { border: 0; border-bottom: 3px solid transparent; background: none; padding: 10px 13px; color: #5e7480; cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap; }
.studio-view-tabs button.active { color: #08766f; border-bottom-color: #0d8c85; }
.studio-message { min-height: 0; margin: 0; font-size: 12px; }
.studio-message:not(:empty) { padding: 9px 17px; background: #eaf5f3; color: #155e58; border-bottom: 1px solid #c8e4df; }
.studio-message.error { background: #fff0ee; color: #9e3d35; border-color: #f3cbc5; }
.studio-message.warn { background: #fff8df; color: #80651b; border-color: #eee1b3; }
.studio-body { padding: 20px; min-height: 470px; min-width: 0; }
.studio-pane-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.studio-pane-head h2 { margin: 2px 0; color: #17374a; font-size: 21px; }
.studio-pane-head small { color: #728794; }
.studio-pane-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.studio-pane-actions .db-input { width: auto; min-width: 175px; }
.studio-grid-tools { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 12px; color: #6a8190; font-size: 11px; }
.studio-grid-tools label { display: grid; gap: 4px; width: min(300px,100%); font-weight: 700; }
.studio-datasheet-scroll, .studio-design-scroll { width: 100%; max-height: 490px; overflow: auto; border: 1px solid #d8e3e6; border-radius: 8px; }
.studio-datasheet, .studio-design-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 450px; font-size: 12px; }
.studio-datasheet th, .studio-datasheet td, .studio-design-table th, .studio-design-table td { border-right: 1px solid #e2e9eb; border-bottom: 1px solid #e2e9eb; text-align: left; padding: 5px 8px; }
.studio-datasheet thead th, .studio-design-table thead th { position: sticky; top: 0; z-index: 1; background: #eaf4f2; color: #234e50; white-space: nowrap; }
.studio-datasheet thead small { display: block; color: #769095; font-weight: 400; font-size: 10px; }
.studio-datasheet tbody tr:nth-child(even) { background: #f8fbfb; }
.studio-datasheet td input { min-width: 90px; width: 100%; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #1e394a; padding: 5px; }
.studio-datasheet td input:focus { border-color: #0d8c85; outline: none; background: #fff; }
.studio-row-delete { border: 0; border-radius: 5px; color: #b34740; background: transparent; cursor: pointer; font-size: 18px; }
.studio-row-delete:hover { background: #fcecea; }
.studio-pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 11px 0; color: #6e808a; font-size: 11px; }
.studio-design-name { display: grid; gap: 5px; width: min(340px,100%); margin-bottom: 15px; color: #395563; font-size: 12px; font-weight: 800; }
.studio-design-table input:not([type=checkbox]):not([type=radio]), .studio-design-table select { width: 100%; min-width: 95px; border: 1px solid #d6e2e5; border-radius: 5px; padding: 7px; background: #fff; }
.studio-note { color: #758793; font-size: 11px; line-height: 1.5; }
.studio-card { border: 1px solid #dce8e9; border-radius: 10px; padding: 17px; margin: 15px 0; background: #fbfdfd; }
.studio-card h3 { margin: 0 0 13px; font-size: 15px; }
.studio-query-tables { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }
.studio-query-table-card { display: grid; gap: 3px; min-width: 165px; max-height: 165px; overflow: auto; border: 1px solid #b8d7d3; border-radius: 8px; background: #fff; padding: 9px 12px; color: #405c65; font-size: 11px; }
.studio-query-table-card strong { position: sticky; top: -9px; margin: -9px -12px 5px; padding: 9px 12px; background: #e3f4f1; color: #0b6c66; font-size: 12px; }
.studio-query-join { align-self: center; color: #0d8c85; font-size: 17px; font-weight: 800; text-align: center; }
.studio-query-join small { display: block; color: #67818a; font-size: 10px; font-weight: 500; }
.studio-query-grid-scroll { width: 100%; overflow-x: auto; border: 1px solid #d8e3e6; border-radius: 8px; }
.studio-query-grid { width: 100%; min-width: 790px; border-collapse: collapse; font-size: 11px; }
.studio-query-grid th,.studio-query-grid td { border-bottom: 1px solid #e2e9eb; padding: 6px; text-align: left; }
.studio-query-grid thead th { background: #eaf4f2; color: #234e50; }
.studio-query-grid tbody th { color: #81929b; }
.studio-query-grid input:not([type=checkbox]),.studio-query-grid select { width: 100%; min-width: 75px; border: 1px solid #d1e0e1; border-radius: 5px; padding: 6px; background: #fff; color: #213e4d; }
.studio-query-grid td:nth-child(4) { text-align: center; }
.studio-query-grid-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 12px 0; color: #3b5661; font-size: 12px; }
.studio-query-grid-actions label { display: flex; align-items: center; gap: 6px; }
.studio-query-grid-actions input[type=number] { width: 95px; min-height: 34px; border: 1px solid #cfdddf; border-radius: 6px; padding: 5px 8px; }
.studio-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-bottom: 15px; }
.studio-field-grid label, .studio-report-controls label { display: grid; gap: 5px; color: #3b5661; font-size: 12px; font-weight: 750; }
.studio-field-grid input, .studio-field-grid select, .studio-report-controls select, .studio-pane-head select { width: 100%; min-height: 37px; border: 1px solid #cfdddf; border-radius: 7px; padding: 7px 9px; background: #fff; color: #213e4d; }
.studio-sql-label { display: grid; gap: 5px; color: #395563; font-size: 12px; font-weight: 800; margin-bottom: 13px; }
.studio-sql-label textarea { width: 100%; border: 1px solid #c8dadb; border-radius: 7px; background: #132b3b; color: #e5f7f1; font: 12px/1.5 Consolas,monospace; padding: 12px; resize: vertical; }
.studio-relationship-list { display: grid; gap: 8px; }
.studio-relationship { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border: 1px solid #dbe7e9; border-radius: 8px; padding: 10px 13px; color: #2e4a57; font-size: 12px; }
.studio-link { color: #0e8d81; font-weight: 800; }
.studio-relationship .studio-row-delete { margin-left: auto; }
.studio-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; max-width: 900px; }
.studio-form label { display: grid; gap: 5px; color: #3b5661; font-size: 12px; font-weight: 750; }
.studio-form label small { color: #8295a0; font-weight: 400; }
.studio-form input { min-height: 39px; border: 1px solid #cbdcde; border-radius: 7px; padding: 8px 10px; }
.studio-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 19px; }
.studio-report-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.studio-report-controls label { min-width: 170px; }
.studio-report-stats { display: flex; gap: 12px; margin: 14px 0; }
.studio-report-stats div { min-width: 115px; padding: 13px; border: 1px solid #dbe7e9; border-radius: 8px; }
.studio-report-stats span { display: block; color: #718893; font-size: 11px; }
.studio-report-stats strong { font-size: 21px; color: #173a4b; }
.studio-report-row { display: flex; justify-content: space-between; border-bottom: 1px solid #e3ebeb; padding: 7px 0; font-size: 12px; }
@media(max-width:1050px) { .studio-ribbon { align-items: flex-start; } .studio-dialect { margin-left: 0; } }
@media(max-width:720px) { .studio-learning { grid-template-columns: 1fr; } .studio-task-details { border-right: 0; border-bottom: 1px solid #e0e9eb; } .studio-shell { grid-template-columns: 1fr; } .studio-nav { border-right: 0; border-bottom: 1px solid #dfe8eb; max-height: 160px; overflow: auto; } .studio-body { padding: 13px; } .studio-field-grid, .studio-form { grid-template-columns: 1fr; } .studio-ribbon { padding: 12px; } .work-mode-tabs button { flex: 1; padding: 9px; font-size: 12px; } }
@media print { .db-topbar,.db-sidebar,.db-hero,.work-mode-tabs,.studio-ribbon,.studio-dialect-note,.studio-learning,.studio-nav,.studio-view-tabs,.studio-message,.studio-pane-actions,.studio-report-controls { display: none !important; } .db-shell,.studio-shell { display: block; } .db-main,.studio-body { padding: 0; } .studio-workspace { border: 0; box-shadow: none; } }
