.nav-link {
    display: block;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    color: rgb(148 163 184);
    font-size: 0.925rem;
}
.nav-link:hover {
    background: rgb(30 41 59 / 0.65);
    color: rgb(248 250 252);
}
.nav-link.active {
    background: rgb(51 65 85);
    color: white;
    font-weight: 600;
}
.nav-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.card {
    border: 1px solid rgb(30 41 59);
    background: rgb(15 23 42 / 0.45);
    border-radius: 0.75rem;
}
.input-dark {
    width: 100%;
    border: 1px solid rgb(51 65 85);
    background: rgb(15 23 42 / 0.8);
    color: white;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    outline: none;
}
.input-dark:focus {
    border-color: rgb(16 185 129);
}
.btn-primary {
    border-radius: 0.5rem;
    background: rgb(5 150 105);
    color: white;
    padding: 0.625rem 1rem;
    font-weight: 600;
}
.btn-primary:hover {
    background: rgb(4 120 87);
}
.btn-secondary {
    border-radius: 0.5rem;
    background: rgb(30 41 59);
    color: white;
    padding: 0.625rem 1rem;
    font-weight: 600;
}
.badge {
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid rgb(51 65 85);
    color: rgb(203 213 225);
}
.btn-danger {
    border-radius: 0.5rem;
    background: rgb(153 27 27);
    color: white;
    padding: 0.625rem 1rem;
    font-weight: 600;
}
.sql-shell {
    border: 1px solid rgb(30 41 59);
    background: rgb(15 17 21);
    min-height: calc(100vh - 7rem);
}
.sql-tabs-bar {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgb(30 41 59);
    background: rgb(17 19 24);
    overflow-x: auto;
}
.sql-tabs {
    display: flex;
    min-width: 0;
}
.sql-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 190px;
    max-width: 280px;
    padding: 0.9rem 1rem;
    border-right: 1px solid rgb(30 41 59);
    color: rgb(148 163 184);
    background: rgb(17 19 24);
    font-size: 0.9rem;
}
.sql-tab.active {
    color: white;
    background: rgb(30 32 38);
    border-top: 1px solid rgb(148 163 184);
}
.sql-badge {
    border: 1px solid rgb(71 85 105);
    border-radius: 0.2rem;
    padding: 0.05rem 0.25rem;
    color: rgb(203 213 225);
    font-size: 0.65rem;
}
.sql-tab-add {
    width: 3.4rem;
    border-right: 1px solid rgb(30 41 59);
    color: rgb(148 163 184);
    font-size: 1.5rem;
}
.sql-editor-pane {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    min-height: 360px;
    border-bottom: 1px solid rgb(30 41 59);
}
.sql-line-number {
    padding-top: 1rem;
    text-align: center;
    color: rgb(148 163 184);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: rgb(18 20 24);
}
.sql-textarea {
    width: 100%;
    min-height: 360px;
    resize: vertical;
    background: rgb(28 29 33);
    color: rgb(226 232 240);
    border: 0;
    outline: none;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
}
.sql-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgb(30 41 59);
    background: rgb(16 18 22);
}
.sql-toolbar-tab {
    color: rgb(148 163 184);
    font-weight: 600;
    padding: 0.45rem 0;
}
.sql-toolbar-tab.active {
    color: white;
    border-bottom: 2px solid white;
}
.sql-select {
    border: 1px solid rgb(51 65 85);
    background: rgb(15 23 42 / 0.8);
    color: white;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    outline: none;
}
.sql-result-panel {
    min-height: 140px;
    padding: 1.25rem;
    background: rgb(18 20 24);
}
.auth-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    margin: -2rem;
    min-height: calc(100vh - 3.5rem);
}
.auth-subnav {
    border-right: 1px solid rgb(30 41 59);
    background: rgb(15 17 21);
    padding: 1.25rem 1rem;
}
.auth-subnav h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.subnav-section {
    color: rgb(148 163 184);
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin: 1.5rem 0 0.5rem;
}
.subnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.4rem;
    padding: 0.5rem 0.65rem;
    color: rgb(203 213 225);
    font-size: 0.95rem;
}
.subnav-link:hover, .subnav-link.active {
    background: rgb(51 65 85);
    color: white;
}
.tiny-beta {
    color: rgb(245 158 11);
    border: 1px solid rgb(180 83 9);
    border-radius: 999px;
    font-size: 0.65rem;
    padding: 0.05rem 0.35rem;
}
.auth-content {
    padding: 1.5rem 2rem;
    overflow: auto;
}
.auth-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.search-box {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(51 65 85);
    border-radius: 0.5rem;
    color: rgb(203 213 225);
}
.auth-table-wrap {
    border: 1px solid rgb(30 41 59);
    overflow: auto;
    background: rgb(15 17 21);
}
.auth-table {
    width: 100%;
    font-size: 0.9rem;
    min-width: 1150px;
}
.auth-table th {
    text-align: left;
    color: white;
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid rgb(30 41 59);
    background: rgb(28 29 33);
}
.auth-table td {
    color: rgb(203 213 225);
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.auth-table tr:hover td {
    background: rgb(30 41 59 / 0.45);
    cursor: pointer;
}
.provider-pill {
    border: 1px solid rgb(51 65 85);
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    color: white;
}
.user-drawer {
    position: fixed;
    right: 0;
    top: 3.5rem;
    bottom: 0;
    width: 520px;
    overflow: auto;
    background: rgb(17 19 24);
    border-left: 1px solid rgb(30 41 59);
    box-shadow: -20px 0 60px rgb(0 0 0 / 0.4);
    padding: 1.25rem;
    z-index: 30;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.drawer-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}
.drawer-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: white;
    color: black;
    font-weight: 700;
}
.drawer-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    border-bottom: 1px solid rgb(30 41 59);
    padding: 0.85rem 0;
}
.drawer-row span {
    color: rgb(148 163 184);
}
.drawer-row strong {
    color: white;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
}
.drawer-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.4rem;
}
.action-card, .danger-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgb(30 41 59);
    background: rgb(20 22 26);
}
.action-card p, .danger-row p {
    color: rgb(203 213 225);
}
.danger-card {
    border: 1px solid rgb(127 29 29);
    border-radius: 0.5rem;
    overflow: hidden;
}
.danger-row {
    border: 0;
    border-bottom: 1px solid rgb(127 29 29);
}
.danger-row:last-child { border-bottom: 0; }
.tab-line {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.tab-line-item {
    color: rgb(148 163 184);
    padding-bottom: 0.75rem;
    font-weight: 600;
}
.tab-line-item.active {
    color: white;
    border-bottom: 2px solid white;
}
.warning-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgb(120 53 15);
    background: rgb(69 26 3 / 0.7);
    border-radius: 0.5rem;
    padding: 1rem;
    color: rgb(254 243 199);
}
.settings-list {
    border: 1px solid rgb(30 41 59);
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgb(20 22 26);
}
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.settings-row:last-child { border-bottom: 0; }
.settings-row p {
    color: rgb(148 163 184);
    font-size: 0.9rem;
}
.toggle-off {
    width: 0.9rem;
    height: 0.9rem;
    background: rgb(148 163 184);
    border-radius: 999px;
}
.smtp-card {
    border: 1px solid rgb(30 41 59);
    border-radius: 0.5rem;
    background: rgb(20 22 26);
    padding: 1.5rem;
}
.smtp-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    border-top: 1px solid rgb(30 41 59);
    padding-top: 1.5rem;
}
.smtp-grid h4 {
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.smtp-grid p, .smtp-grid label {
    color: rgb(148 163 184);
    font-size: 0.9rem;
}
.smtp-grid label {
    display: block;
    margin-bottom: 0.4rem;
}
.smtp-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid rgb(30 41 59);
    padding-top: 1rem;
    margin-top: 1.5rem;
}
.switch input { display: none; }
.switch span {
    display: block;
    width: 2.3rem;
    height: 1.25rem;
    border-radius: 999px;
    background: rgb(71 85 105);
    position: relative;
}
.switch span::after {
    content: '';
    position: absolute;
    top: 0.18rem;
    left: 0.2rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: white;
}
.switch input:checked + span { background: rgb(52 211 153); }
.switch input:checked + span::after { left: 1.2rem; }
.endpoint-item {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: rgb(203 213 225);
}
.endpoint-item span {
    display: block;
    font-weight: 700;
}
.endpoint-item small {
    display: block;
    color: rgb(148 163 184);
    margin-top: 0.25rem;
}
.endpoint-item:hover, .endpoint-item.active {
    background: rgb(51 65 85);
    color: white;
}
.sql-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-align: left; }
.sql-tab-close { display: none; margin-left: auto; color: rgb(148 163 184); font-size: 1.1rem; line-height: 1; }
.sql-tab:hover .sql-tab-close { display: inline; }
.sql-tab-close:hover { color: white; }
.sql-source-label { border: 1px solid rgb(51 65 85); background: rgb(15 17 21); color: rgb(203 213 225); padding: .55rem .75rem; border-radius: .5rem; font-size: .85rem; }
.export-menu { position: absolute; top: 2.25rem; left: 12rem; z-index: 20; width: 260px; border: 1px solid rgb(51 65 85); background: rgb(31 33 38); border-radius: .5rem; padding: .4rem; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.export-menu button { display: flex; width: 100%; justify-content: space-between; padding: .65rem .75rem; border-radius: .4rem; color: rgb(203 213 225); text-align: left; }
.export-menu button:hover { background: rgb(51 65 85); color: white; }
.result-table-wrap { overflow: auto; max-height: calc(100vh - 455px); min-height: 180px; }
.result-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.result-table th { position: sticky; top: 0; background: rgb(30 32 38); color: white; text-align: left; font-weight: 700; border: 1px solid rgb(42 45 52); padding: .75rem; white-space: nowrap; }
.result-table td { border: 1px solid rgb(42 45 52); padding: .75rem; color: rgb(226 232 240); white-space: nowrap; max-width: 520px; overflow: hidden; text-overflow: ellipsis; }
.result-table tr:hover td { background: rgb(25 28 34); }
.table-editor-page { display: grid; grid-template-columns: 320px 1fr; gap: 0; margin: -2rem; min-height: calc(100vh - 3.5rem); }
.table-sidebar { border-right: 1px solid rgb(30 41 59); background: rgb(15 17 21); padding: 1.25rem; }
.table-sidebar h1 { font-size: 1.55rem; font-weight: 700; margin-bottom: 1.5rem; }
.table-new-button { width: 100%; border: 1px solid rgb(51 65 85); border-radius: .5rem; padding: .6rem .75rem; text-align: left; background: rgb(24 27 32); color: white; }
.table-list { margin-top: 1rem; max-height: calc(100vh - 260px); overflow: auto; }
.table-list-item { display: flex; gap: .65rem; align-items: center; color: rgb(203 213 225); padding: .55rem .75rem; border-radius: .4rem; }
.table-list-item:hover, .table-list-item.active { background: rgb(51 65 85); color: white; }
.table-main { min-width: 0; background: rgb(15 17 21); }
.table-topbar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; border-bottom: 1px solid rgb(30 41 59); }
.table-filter { margin: .75rem 1rem; border: 1px solid rgb(51 65 85); border-radius: .5rem; padding: .7rem 1rem; color: rgb(148 163 184); background: rgb(15 23 42 / .45); }
.database-page { display: grid; grid-template-columns: 320px 1fr; gap: 0; margin: -2rem; min-height: calc(100vh - 3.5rem); }
.database-subnav { border-right: 1px solid rgb(30 41 59); background: rgb(15 17 21); padding: 1.25rem; overflow: auto; }
.database-subnav h1 { font-size: 1.55rem; font-weight: 700; margin-bottom: 1.5rem; }
.database-content { padding: 1.5rem 2rem; min-width: 0; overflow: auto; }
.schema-canvas { min-height: calc(100vh - 190px); border: 1px solid rgb(30 41 59); border-radius: .75rem; background-color: rgb(13 15 19); background-image: radial-gradient(rgb(39 44 52) 1px, transparent 1px); background-size: 18px 18px; position: relative; padding: 3rem; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2rem; }
.schema-card { width: 260px; max-height: 260px; overflow: hidden; border: 1px solid rgb(71 85 105); border-radius: .5rem; background: rgb(18 20 24); box-shadow: 0 10px 20px rgba(0,0,0,.3); }
.schema-card-title { border-bottom: 1px solid rgb(51 65 85); padding: .65rem .8rem; font-weight: 700; }
.schema-card pre { padding: .75rem; font-size: .7rem; color: rgb(148 163 184); white-space: pre-wrap; }
.drawer-panel { position: fixed; right: 0; top: 0; width: 520px; height: 100vh; z-index: 40; background: rgb(15 17 21); border-left: 1px solid rgb(51 65 85); padding: 1.5rem; overflow: auto; box-shadow: -20px 0 80px rgba(0,0,0,.55); }
.drawer-panel h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.drawer-panel label { display: block; color: rgb(203 213 225); margin: 1rem 0 .4rem; font-size: .9rem; font-weight: 600; }
.subnav-link.disabled { opacity: .5; pointer-events: none; }

.ui-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgb(203 213 225) 50%), linear-gradient(135deg, rgb(203 213 225) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.4rem !important;
}
.menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.menu-trigger-arrow {
    color: rgb(148 163 184);
    transform: translateY(-1px);
}
.toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.toast-message {
    min-width: 280px;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid rgb(51 65 85);
    background: rgb(31 33 38);
    color: white;
    border-radius: .55rem;
    padding: .85rem 1rem;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    text-align: left;
}
.toast-icon {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: rgb(31 33 38);
    font-size: .85rem;
    font-weight: 800;
}
.split-button {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgb(51 65 85);
    border-radius: .55rem;
    overflow: visible;
    position: relative;
}
.split-button-main,
.split-button-arrow {
    background: rgb(30 41 59);
    color: white;
    font-weight: 600;
    padding: .6rem .8rem;
}
.split-button-main { border-radius: .55rem 0 0 .55rem; }
.split-button-arrow { border-left: 1px solid rgb(51 65 85); border-radius: 0 .55rem .55rem 0; min-width: 2.3rem; }
.schema-actions-menu {
    position: absolute;
    right: 0;
    top: 2.7rem;
    z-index: 25;
    width: 230px;
    border: 1px solid rgb(51 65 85);
    background: rgb(31 33 38);
    border-radius: .5rem;
    padding: .4rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.schema-actions-menu button {
    display: block;
    width: 100%;
    padding: .65rem .75rem;
    border-radius: .4rem;
    text-align: left;
    color: rgb(203 213 225);
}
.schema-actions-menu button:hover { background: rgb(51 65 85); color: white; }
.schema-card-header {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    align-items: center;
    border-bottom: 1px solid rgb(51 65 85);
    padding: .65rem .8rem;
}
.schema-card-title { border-bottom: 0; padding: 0; }
.schema-card-toggle {
    display: inline-flex;
    gap: .25rem;
    border: 1px solid rgb(51 65 85);
    border-radius: .35rem;
    padding: .15rem;
}
.schema-card-toggle button {
    color: rgb(148 163 184);
    font-size: .68rem;
    padding: .1rem .35rem;
    border-radius: .25rem;
}
.schema-card-toggle button.active {
    background: rgb(51 65 85);
    color: white;
}
.schema-column-grid {
    padding: .7rem;
    max-height: 210px;
    overflow: auto;
}
.schema-column-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .8rem;
    color: rgb(203 213 225);
    font-size: .72rem;
    border-bottom: 1px solid rgb(30 41 59);
    padding: .3rem 0;
}
.schema-column-row span:last-child { color: rgb(148 163 184); }
.schema-script { display: none; padding: .75rem; font-size: .7rem; color: rgb(148 163 184); white-space: pre-wrap; }
.schema-card.show-script .schema-column-grid { display: none; }
.schema-card.show-script .schema-script { display: block; }

.sql-shell {
    margin: -2rem;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    min-height: calc(100vh - 3.5rem);
}
.sql-editor-pane {
    display: block;
    min-height: 360px;
}
.sql-textarea {
    min-height: 360px;
    display: block;
}
.sql-line-number {
    display: none;
}
.ui-select {
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 17px) calc(50% - 3px);
    padding-right: 2.8rem !important;
}
.icon-button {
    border: 1px solid rgb(51 65 85);
    background: rgb(30 41 59);
    color: rgb(226 232 240);
    border-radius: .5rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    padding: .45rem .65rem;
    font-weight: 700;
}
.icon-button:hover {
    background: rgb(51 65 85);
    color: white;
}
.icon-danger {
    border: 1px solid rgb(127 29 29);
    background: rgb(69 10 10 / .45);
    color: rgb(252 165 165);
    border-radius: .45rem;
    padding: .45rem .65rem;
}
.icon-danger:hover {
    background: rgb(127 29 29 / .65);
    color: white;
}
.schema-canvas {
    min-height: 620px;
    padding: 0;
    display: block;
    overflow: auto;
}
.schema-card {
    position: absolute;
    width: 300px;
    min-height: 52px;
    max-height: none;
    resize: vertical;
    overflow: auto;
}
.schema-card.dragging {
    opacity: .9;
    z-index: 10;
    cursor: grabbing;
}
.schema-card-header {
    cursor: grab;
    min-height: 52px;
}
.schema-card-header:active {
    cursor: grabbing;
}
.schema-card-title-wrap {
    min-width: 0;
    flex: 1;
}
.drawer-panel.wide-drawer {
    width: 760px;
}
.new-table-grid-head,
.new-table-column-row {
    display: grid;
    grid-template-columns: 28px 1.1fr 1fr 1fr 90px 40px;
    gap: .6rem;
    align-items: center;
}
.new-table-grid-head {
    color: rgb(148 163 184);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .5rem;
    padding-left: 2rem;
}
.new-table-column-row {
    border: 1px solid rgb(30 41 59);
    background: rgb(24 27 32);
    border-radius: .5rem;
    padding: .55rem;
    margin-bottom: .5rem;
}
.drag-dots {
    color: rgb(148 163 184);
    text-align: center;
    cursor: grab;
}
.check-cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}
.check-cell input {
    width: 1.1rem;
    height: 1.1rem;
}
.new-table-add {
    display: block;
    width: 100%;
    border: 1px dashed rgb(51 65 85);
    border-radius: .5rem;
    padding: .8rem;
    margin-top: .7rem;
    color: white;
    background: rgb(15 17 21);
}
.new-table-add:hover {
    background: rgb(24 27 32);
}
.foreign-key-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 40px;
    gap: .6rem;
    align-items: center;
    border: 1px solid rgb(30 41 59);
    background: rgb(24 27 32);
    border-radius: .5rem;
    padding: .55rem;
    margin-bottom: .5rem;
}
.confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
}
.confirm-modal {
    width: 420px;
    border: 1px solid rgb(51 65 85);
    background: rgb(15 17 21);
    border-radius: .75rem;
    padding: 1.25rem;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.confirm-modal h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .6rem;
}
.confirm-modal p {
    color: rgb(203 213 225);
    margin-bottom: 1rem;
    font-size: .92rem;
}
.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: .7rem;
    margin-top: 1rem;
}
.toast-message.error .toast-icon {
    background: rgb(252 165 165);
    color: rgb(69 10 10);
}


/* Database visualizer refinements */
.schema-canvas {
    overflow: visible;
}
.schema-card {
    overflow: hidden;
    resize: vertical;
}
.schema-column-grid {
    height: calc(100% - 52px);
    max-height: none;
    overflow: hidden;
}
.schema-script {
    height: calc(100% - 52px);
    overflow: hidden;
}
.schema-card.show-script .schema-script {
    display: block;
}

/* Create table drawer refinements */
.new-table-grid-head,
.new-table-column-row {
    grid-template-columns: 32px minmax(160px, 1.2fr) minmax(160px, 1fr) minmax(160px, 1fr) 96px 48px;
    column-gap: .65rem;
}
.new-table-grid-head {
    padding: 0 .55rem;
    margin-left: 0;
}
.new-table-grid-head span:nth-child(5) {
    text-align: center;
}
.new-table-column-row {
    min-height: 3.25rem;
}
.new-table-column-row.dragging {
    opacity: .65;
    border-color: rgb(16 185 129);
}
.new-table-column-row input,
.new-table-column-row select {
    height: 2.55rem;
}
.new-table-column-row .icon-button {
    height: 2.55rem;
}
.foreign-key-row {
    display: none;
}
.foreign-key-group {
    position: relative;
    border: 1px dashed rgb(51 65 85);
    border-radius: .6rem;
    padding: 1rem;
    margin-bottom: .85rem;
    background: rgb(15 17 21 / .7);
}
.foreign-key-caption {
    color: rgb(203 213 225);
    font-size: .9rem;
    margin-bottom: .75rem;
}
.foreign-key-columns-head,
.foreign-key-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 40px;
    gap: .65rem;
    align-items: center;
}
.foreign-key-columns-head {
    color: rgb(226 232 240);
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.foreign-key-pair {
    margin-bottom: .55rem;
}
.foreign-key-arrow {
    color: white;
    font-size: 1.85rem;
    text-align: center;
    line-height: 1;
}
.foreign-key-remove {
    position: absolute;
    top: .75rem;
    right: .75rem;
}

/* Database menu and drawer refinements */
.db-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.db-filter-input {
    max-width: 320px;
}
.info-button {
    width: 2.45rem;
    min-width: 2.45rem;
    border-radius: .55rem;
    font-style: italic;
}
.row-menu-wrap {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}
.row-menu-button {
    border: 1px solid rgb(51 65 85);
    background: rgb(30 41 59 / .7);
    color: rgb(203 213 225);
    border-radius: .5rem;
    width: 2.25rem;
    height: 2.25rem;
    font-weight: 700;
}
.row-menu-button:hover {
    background: rgb(51 65 85);
    color: white;
}
.row-actions-menu {
    position: absolute;
    right: 0;
    top: 2.45rem;
    z-index: 30;
    width: 230px;
    border: 1px solid rgb(51 65 85);
    background: rgb(31 33 38);
    border-radius: .5rem;
    padding: .35rem;
    box-shadow: 0 16px 38px rgba(0,0,0,.45);
    text-align: left;
}
.row-actions-menu a,
.row-actions-menu button {
    display: block;
    width: 100%;
    padding: .65rem .75rem;
    border-radius: .4rem;
    color: rgb(203 213 225);
    text-align: left;
}
.row-actions-menu a:hover,
.row-actions-menu button:hover {
    background: rgb(51 65 85);
    color: white;
}
.row-actions-menu .danger-menu-item {
    color: rgb(248 113 113);
}
.row-actions-menu .danger-menu-item:hover {
    background: rgb(127 29 29 / .55);
    color: white;
}
.trigger-checks {
    display: grid;
    gap: .75rem;
    margin-top: .5rem;
}
.trigger-checks label {
    display: grid !important;
    grid-template-columns: 24px 1fr;
    gap: .75rem;
    align-items: start;
    margin: 0 !important;
    color: rgb(226 232 240) !important;
}
.trigger-checks small {
    display: block;
    color: rgb(148 163 184);
    margin-top: .15rem;
}

/* Create table alignment fixes */
.new-table-grid-head,
.new-table-column-row {
    grid-template-columns: 30px minmax(160px, 1.15fr) minmax(150px, 1fr) minmax(150px, 1fr) 74px 42px;
    column-gap: .6rem;
}
.new-table-grid-head {
    padding: 0 .55rem;
}
.new-table-grid-head span:nth-child(5) {
    text-align: center;
}
.new-table-column-row {
    overflow: hidden;
}
.new-table-column-row .column-remove,
.new-table-column-row > .icon-button:last-child {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    justify-self: center;
}
.new-table-column-row .check-cell {
    width: 100%;
    justify-self: center;
}
.new-table-column-row input,
.new-table-column-row select {
    min-width: 0;
}

/* Schema visualizer: no inner scrollbars */
.schema-canvas {
    overflow: visible !important;
}
.schema-card {
    overflow: hidden !important;
}
.schema-column-grid,
.schema-script {
    overflow: hidden !important;
}

/* Shared drawer and table menu fixes */
.table-card {
    overflow: visible !important;
}
.row-actions-menu {
    z-index: 120;
}
.drawer-panel.standard-drawer,
.drawer-panel.wide-drawer {
    width: min(920px, 100vw);
}
.drawer-footer {
    position: sticky;
    bottom: -1.5rem;
    margin: 1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgb(30 41 59);
    background: rgb(15 17 21);
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}
.code-panel {
    min-height: calc(100vh - 9rem);
    border: 1px solid rgb(51 65 85);
    background: rgb(18 20 24);
    border-radius: .6rem;
    padding: 1rem;
    white-space: pre-wrap;
    color: rgb(226 232 240);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .9rem;
}
@media (max-width: 640px) {
    .drawer-panel,
    .drawer-panel.wide-drawer,
    .drawer-panel.standard-drawer {
        width: 100vw !important;
        left: 0;
    }
}

/* Create table required column */
.new-table-grid-head,
.new-table-column-row {
    grid-template-columns: 30px minmax(150px, 1.15fr) minmax(145px, 1fr) minmax(145px, 1fr) 74px 84px 42px !important;
}
.new-table-grid-head span:nth-child(5),
.new-table-grid-head span:nth-child(6) {
    text-align: center;
}

/* Indexes */
.index-column-picker {
    border: 1px solid rgb(51 65 85);
    background: rgb(31 33 38);
    border-radius: .55rem;
    overflow: hidden;
}
.index-selected-columns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    min-height: 2.4rem;
    padding: .55rem;
    border-bottom: 1px solid rgb(51 65 85);
}
.index-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid rgb(71 85 105);
    background: rgb(15 17 21);
    border-radius: .35rem;
    padding: .2rem .45rem;
    font-size: .78rem;
    text-transform: uppercase;
}
.index-chip button {
    color: rgb(148 163 184);
}
.index-search {
    width: 100%;
    padding: .65rem .8rem;
    background: rgb(31 33 38);
    color: white;
    outline: none;
    border-bottom: 1px solid rgb(51 65 85);
}
.index-column-choices {
    max-height: 320px;
    overflow: auto;
    padding: .4rem;
}
.index-column-choice {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: center;
    padding: .5rem .6rem;
    margin: 0 !important;
    border-radius: .35rem;
    color: rgb(203 213 225) !important;
}
.index-column-choice:hover {
    background: rgb(51 65 85 / .45);
}
.index-column-choice small {
    color: rgb(148 163 184);
    font-size: .78rem;
}

/* Column options and edit table */
.new-table-grid-head,
.new-table-column-row {
    grid-template-columns: 30px minmax(150px, 1.15fr) minmax(145px, 1fr) minmax(145px, 1fr) 74px 42px 42px !important;
}
.new-table-grid-head span:nth-child(5) {
    text-align: center;
}
.column-options-wrap {
    position: relative;
    justify-self: center;
}
.column-options-button {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
}
.column-options-popover {
    position: fixed;
    z-index: 140;
    width: 330px;
    max-width: calc(100vw - 24px);
    border: 1px solid rgb(51 65 85);
    background: rgb(31 33 38);
    border-radius: .65rem;
    box-shadow: 0 22px 60px rgba(0,0,0,.55);
    padding: .75rem;
    transform: translate(-250px, .5rem);
}
.column-options-title {
    font-weight: 700;
    text-align: center;
    padding-bottom: .6rem;
    margin-bottom: .6rem;
    border-bottom: 1px solid rgb(51 65 85);
}
.column-options-popover label {
    display: grid !important;
    grid-template-columns: 22px 1fr;
    gap: .65rem;
    align-items: start;
    padding: .45rem .2rem;
    margin: 0 !important;
    color: rgb(226 232 240) !important;
}
.column-options-popover small {
    display: block;
    margin-top: .18rem;
    color: rgb(148 163 184);
    line-height: 1.35;
}
.column-options-popover .disabled-option {
    opacity: .45;
}
.existing-column-row {
    opacity: .76;
}
.existing-column-row .drag-dots {
    cursor: default;
}
.edit-table-note {
    border: 1px solid rgb(51 65 85);
    background: rgb(15 23 42 / .55);
    color: rgb(203 213 225);
    border-radius: .55rem;
    padding: .85rem 1rem;
    font-size: .9rem;
}
.drawer-panel.wide-drawer,
.drawer-panel.standard-drawer {
    width: min(1040px, 100vw) !important;
}
.new-table-column-row {
    overflow: visible !important;
}
.column-options-popover {
    position: absolute !important;
    right: 0;
    top: calc(100% + .5rem);
    transform: none !important;
}

/* Responsive sidebar and settings */
.app-sidebar { z-index: 50; transition: transform .18s ease; }
.app-main { transition: margin-left .18s ease; }
.app-logo-button { cursor: pointer; border: 0; }
.sidebar-settings { position: fixed; left: .9rem; bottom: .9rem; z-index: 130; }
.sidebar-settings-button { width: 2.35rem; height: 2.35rem; border: 1px solid rgb(51 65 85); background: rgb(17 19 24); color: rgb(203 213 225); border-radius: .6rem; }
.sidebar-settings-button:hover { background: rgb(31 41 55); color: white; }
.menu-group-title { color: rgb(148 163 184); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .45rem .75rem .25rem; }
.function-test-panel { border: 1px solid rgb(51 65 85); background: rgb(17 19 24); border-radius: .75rem; padding: 1rem; }
@media (max-width: 900px) {
    body.sidebar-mode-responsive .app-sidebar { transform: translateX(-100%); }
    body.sidebar-mode-responsive.sidebar-open .app-sidebar { transform: translateX(0); box-shadow: 24px 0 60px rgba(0,0,0,.55); }
    body.sidebar-mode-responsive .app-main { margin-left: 0 !important; }
    body.sidebar-mode-responsive .app-logo-button { position: fixed; left: .75rem; top: .7rem; z-index: 140; }
    body.sidebar-mode-responsive.sidebar-open .app-logo-button { position: static; }
}

/* v18 refinements */
.new-table-grid-head,
.new-table-column-row {
    grid-template-columns: 30px minmax(160px, 1.15fr) minmax(150px, 1fr) minmax(150px, 1fr) 74px 72px 42px !important;
}
.foreign-key-columns-head,
.foreign-key-pair {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 130px 130px 40px !important;
}
.sidebar-menu-check {
    display: inline-flex;
    width: 1.15rem;
    color: rgb(52 211 153);
    font-weight: 800;
}
.row-actions-menu {
    position: fixed;
}
@media (max-width: 900px) {
    .foreign-key-columns-head,
    .foreign-key-pair {
        grid-template-columns: 1fr !important;
    }
    .foreign-key-arrow {
        text-align: left;
        transform: rotate(90deg);
        width: 2rem;
    }
}

/* Schema visualizer relationships and legends */
.schema-canvas { position: relative; overflow: auto; }
.schema-relation-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.schema-relation-line { fill: none; stroke: rgb(148 163 184); stroke-width: 1.4; opacity: .55; }
.schema-card { position: absolute; z-index: 2; }
.schema-column-row { grid-template-columns: 1.35rem 1fr auto; gap: .4rem; align-items: center; }
.schema-symbol { display: inline-flex; align-items: center; justify-content: center; width: 1rem; color: rgb(148 163 184); font-size: .85rem; }
.schema-symbol.primary { color: rgb(110 231 183); }
.schema-symbol.identity { color: rgb(203 213 225); font-weight: 700; }
.schema-symbol.unique { color: rgb(167 139 250); }
.schema-symbol.nullable { color: rgb(148 163 184); }
.schema-symbol.non-nullable { color: rgb(226 232 240); }
.schema-legend-button { position: absolute; right: 1rem; bottom: 1rem; z-index: 5; width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid rgb(51 65 85); background: rgb(17 19 24); color: rgb(203 213 225); font-weight: 700; }
.schema-legend { position: absolute; right: 1rem; bottom: 3.4rem; z-index: 6; width: 230px; border: 1px solid rgb(51 65 85); border-radius: .6rem; background: rgb(17 19 24); box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: .75rem; color: rgb(203 213 225); font-size: .85rem; }
.schema-legend-title { color: white; font-weight: 700; margin-bottom: .55rem; }
.schema-legend div { display: flex; align-items: center; gap: .55rem; padding: .2rem 0; }
.schema-menu-check { display: flex; align-items: center; gap: .55rem; padding: .65rem .75rem; color: rgb(203 213 225); white-space: nowrap; cursor: pointer; }
.schema-menu-check:hover { background: rgb(51 65 85); color: white; }

/* Reusable info popover */
.inline-info-button { display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem; margin-left: .25rem; border: 1px solid rgb(71 85 105); border-radius: 999px; color: rgb(148 163 184); font-size: .65rem; line-height: 1; vertical-align: middle; }
.inline-info-button:hover { color: white; border-color: rgb(148 163 184); background: rgb(30 41 59); }
.app-info-popover { position: fixed; z-index: 250; width: 330px; max-width: calc(100vw - 24px); border: 1px solid rgb(51 65 85); border-radius: .65rem; background: rgb(17 19 24); box-shadow: 0 22px 70px rgba(0,0,0,.55); padding: .9rem 1rem; color: rgb(203 213 225); }
.app-info-popover strong { display: block; color: white; margin-bottom: .45rem; }
.app-info-popover p { color: rgb(148 163 184); font-size: .85rem; line-height: 1.4; padding-right: 1.2rem; }
.app-info-close { position: absolute; right: .55rem; top: .45rem; color: rgb(148 163 184); font-size: 1.1rem; }
.app-info-close:hover { color: white; }

/* v21 layout and admin platform pages */
.nav-subitems { margin: .25rem 0 .45rem 1rem; padding-left: .7rem; border-left: 1px solid rgb(30 41 59); display: none; }
.nav-group.active .nav-subitems { display: block; }
.nav-sub-link { display: block; color: rgb(148 163 184); font-size: .86rem; padding: .38rem .7rem; border-radius: .45rem; }
.nav-sub-link:hover, .nav-sub-link.active { color: white; background: rgb(51 65 85); }
.sidebar-burger { display: none; width: 2.2rem; height: 2.2rem; border: 1px solid rgb(51 65 85); border-radius: .55rem; color: rgb(203 213 225); background: rgb(17 19 24); }
.settings-panel { border: 1px solid rgb(39 39 42); border-radius: .7rem; background: rgb(24 24 27 / .8); overflow: hidden; }
.settings-grid-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgb(39 39 42); }
.settings-grid-row p { color: rgb(148 163 184); font-size: .95rem; margin-top: .25rem; }
.settings-footer { display: flex; justify-content: flex-end; gap: .75rem; padding: 1rem 1.5rem; }
.copy-input-wrap { display: flex; gap: .5rem; }
.copy-input-wrap .input-dark { flex: 1; }
.btn-compact { border: 1px solid rgb(51 65 85); border-radius: .5rem; background: rgb(31 41 55); color: white; padding: .45rem .8rem; font-size: .82rem; font-weight: 700; }
.settings-access-row { display: grid; grid-template-columns: 1fr 1fr; padding: 1.25rem 1.5rem; border-top: 1px solid rgb(39 39 42); color: rgb(203 213 225); }
.danger-settings-box { border: 1px solid rgb(127 29 29); background: rgb(69 10 10 / .25); border-radius: .7rem; padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.danger-settings-box p { color: rgb(226 232 240); margin-top: .25rem; }
.toast-inline { border: 1px solid rgb(22 101 52); background: rgb(20 83 45 / .35); color: rgb(187 247 208); border-radius: .55rem; padding: .75rem 1rem; }
.data-card { border: 1px solid rgb(39 39 42); background: rgb(24 24 27 / .78); border-radius: .7rem; }
.data-table th { color: rgb(148 163 184); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .85rem 1.25rem; text-align: left; border-bottom: 1px solid rgb(39 39 42); }
.data-table td { padding: 1rem 1.25rem; border-bottom: 1px solid rgb(39 39 42); color: rgb(203 213 225); }
.avatar-circle { width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid rgb(51 65 85); display: flex; align-items: center; justify-content: center; color: rgb(148 163 184); }
.badge-small { display: inline-flex; border: 1px solid rgb(51 65 85); border-radius: 999px; padding: .05rem .35rem; font-size: .65rem; color: rgb(203 213 225); margin-left: .35rem; }
.metric-card { border: 1px solid rgb(39 39 42); border-radius: .75rem; background: rgb(24 24 27 / .82); padding: 1.25rem; height: 190px; }
.metric-label { text-transform: uppercase; letter-spacing: .08em; color: rgb(148 163 184); font-size: .75rem; }
.metric-total { font-size: 1.5rem; font-weight: 800; color: white; margin-top: .25rem; }
.metric-chart { height: 88px; display: flex; align-items: flex-end; gap: .35rem; border-bottom: 1px solid rgb(39 39 42); margin-top: .9rem; padding: 0 .5rem; }
.metric-chart span { flex: 1; max-width: 22px; background: rgb(52 211 153); min-height: 2px; }
.metric-axis { display: flex; justify-content: space-between; color: rgb(113 113 122); font-size: .7rem; margin-top: .4rem; }
.email-template-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 1.5rem; }
.email-template-list { border: 1px solid rgb(39 39 42); border-radius: .75rem; background: rgb(17 19 24); padding: 1rem; height: max-content; }
.email-template-list h3 { color: rgb(148 163 184); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin: .3rem .35rem .55rem; }
.email-template-item { width: 100%; text-align: left; display: block; border-radius: .55rem; padding: .75rem; color: rgb(203 213 225); }
.email-template-item strong { display: block; color: white; font-size: .9rem; }
.email-template-item span { display: block; color: rgb(148 163 184); font-size: .8rem; margin-top: .25rem; }
.email-template-item.active, .email-template-item:hover { background: rgb(51 65 85); }
.email-code { min-height: 420px; }
.email-preview { min-height: 420px; background: white; color: black; border-radius: .45rem; padding: 1rem; overflow: auto; }
.segmented { display: inline-flex; border: 1px solid rgb(39 39 42); border-radius: .5rem; overflow: hidden; }
.segmented button { padding: .4rem .7rem; color: rgb(148 163 184); font-size: .82rem; }
.segmented button.active { background: rgb(51 65 85); color: white; }
.database-page-single { display: block; }
.database-content-full { width: 100%; }
.auth-toolbar-simple { grid-template-columns: auto minmax(260px, 1fr) auto !important; }
.btn-square { width: 2.65rem; justify-content: center; padding-left: 0 !important; padding-right: 0 !important; }
.btn-icon-sm { font-size: .84rem !important; padding: .45rem .75rem !important; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.action-card, .danger-row { align-items: center; }
.action-card .btn-secondary, .danger-row .btn-secondary, .danger-row .btn-danger { margin-left: auto; white-space: nowrap; }
@media (max-width: 900px) {
    body.sidebar-mode-responsive .sidebar-burger { display: inline-flex; align-items: center; justify-content: center; }
    .settings-grid-row, .settings-access-row { grid-template-columns: 1fr; }
    .email-template-layout { grid-template-columns: 1fr; }
    .danger-settings-box { align-items: stretch; flex-direction: column; }
}
.sidebar-burger-right { display: none; }
@media (max-width: 900px) {
    body.sidebar-mode-responsive .sidebar-burger-right { display: inline-flex; align-items: center; justify-content: center; }
}

/* v22 responsive/menu/toast refinements */
.sidebar-burger-left { display: none; }
@media (max-width: 900px) {
    body.sidebar-mode-responsive .sidebar-burger-left { display: inline-flex; align-items: center; justify-content: center; order: -10; }
    body.sidebar-mode-responsive .sidebar-burger-right { display: none !important; }
}
.toast-message { align-items: flex-start; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { display: block; }
.toast-close { color: rgb(148 163 184); margin-left: .5rem; }
.toast-close:hover { color: white; }
.toast-details-toggle { display: block; margin-top: .45rem; color: rgb(147 197 253); font-size: .8rem; }
.toast-details { margin-top: .5rem; max-height: 230px; overflow: auto; white-space: pre-wrap; user-select: text; background: rgb(15 17 21); border: 1px solid rgb(51 65 85); border-radius: .45rem; padding: .6rem; color: rgb(203 213 225); font-size: .78rem; }
.toast-message.error { border-color: rgb(127 29 29); }
.toast-inline.error { border-color: rgb(127 29 29); background: rgb(69 10 10 / .35); color: rgb(254 202 202); }
.btn-secondary:disabled, .btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.special-admin-subnav { max-width: 260px; border-right: 1px solid rgb(30 41 59); min-height: calc(100vh - 7rem); }
.email-template-list-only { max-width: 820px; }
.email-template-list-card { border: 1px solid rgb(39 39 42); border-radius: .7rem; background: rgb(24 24 27 / .78); overflow: hidden; }
.email-template-list-row { display: block; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgb(39 39 42); color: rgb(203 213 225); }
.email-template-list-row:last-child { border-bottom: 0; }
.email-template-list-row:hover { background: rgb(31 41 55 / .55); color: white; }
.email-editor-page { max-width: 1200px; }
.email-editor-back { color: rgb(148 163 184); font-size: .9rem; margin-bottom: 1.2rem; display: inline-flex; gap: .5rem; }
.email-editor-back:hover { color: white; }
.code-textarea.email-code { background: rgb(28 29 33) !important; color: rgb(226 232 240); }

/* v23 authentication, email, sidebar refinements */
.nav-sub-section {
    color: rgb(148 163 184);
    letter-spacing: .08em;
    font-size: .68rem;
    margin: .65rem .75rem .25rem;
    text-transform: uppercase;
}
.auth-content-flat {
    margin: 0;
    padding: 0;
    overflow: visible;
}
.code-textarea.email-code {
    width: 100%;
    display: block;
    box-sizing: border-box;
    min-height: 420px;
    border: 1px solid rgb(51 65 85);
    border-radius: .45rem;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .9rem;
    line-height: 1.55;
    resize: vertical;
    white-space: pre;
    overflow: auto;
}
.email-template-editor .settings-panel {
    background: rgb(24 24 27 / .78);
}
.auth-toolbar-simple .search-box,
.auth-toolbar-simple a.search-box {
    background: rgb(15 23 42 / .8);
}


/* v24 auth submenu and email editor fixes */
.nav-sub-section {
    color: rgb(100 116 139);
    font-size: .64rem;
    letter-spacing: .1em;
    margin: .85rem .75rem .28rem;
    padding-top: .45rem;
    border-top: 1px solid rgb(30 41 59 / .75);
    text-transform: uppercase;
}
.nav-sub-section:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: .45rem;
}
.nav-sub-link {
    margin: .08rem .2rem;
    padding-left: .95rem;
}
.email-template-editor,
.email-editor-area,
.email-template-editor .settings-panel,
.email-template-editor .settings-panel .p-5 {
    width: 100%;
    max-width: 100%;
}
.email-editor-area {
    display: block;
}
.email-template-editor textarea.email-code,
.code-textarea.email-code {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box;
    background: rgb(28 29 33) !important;
}
.email-template-empty {
    padding: 1.1rem 1.25rem;
    color: rgb(148 163 184);
    font-size: .9rem;
}


/* v25 auth provider and email refinements */
.email-editor-back { display: inline-flex; align-items: center; gap: .5rem; color: rgb(148 163 184); font-size: .9rem; margin-bottom: 1.2rem; }
.email-editor-back a { color: rgb(148 163 184); text-decoration: none; }
.email-editor-back a:hover { color: white; }
.email-editor-back strong { color: white; }
.email-template-editor textarea.email-code,
.code-textarea.email-code {
    min-height: 420px !important;
    padding: 1.4rem 1.6rem !important;
    line-height: 1.55 !important;
    white-space: pre !important;
}
.settings-section-title { font-size: 1.55rem; font-weight: 700; margin: 1.5rem 0 1.25rem; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid rgb(39 39 42); }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { display: block; font-weight: 700; color: white; }
.setting-row span { display: block; color: rgb(148 163 184); margin-top: .25rem; }
.switch { display: inline-flex; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 42px; height: 22px; background: rgb(63 63 70); border-radius: 999px; position: relative; transition: .15s ease; }
.switch span:before { content: ''; position: absolute; width: 18px; height: 18px; top: 2px; left: 2px; background: rgb(161 161 170); border-radius: 50%; transition: .15s ease; }
.switch input:checked + span { background: rgb(16 185 129); }
.switch input:checked + span:before { transform: translateX(20px); background: white; }
.provider-list { border: 1px solid rgb(39 39 42); border-radius: .7rem; overflow: hidden; background: rgb(24 24 27 / .78); }
.provider-row { width: 100%; display: grid; grid-template-columns: 36px 1fr auto 28px; align-items: center; gap: 1rem; padding: 1.3rem 1.2rem; border-bottom: 1px solid rgb(39 39 42); text-align: left; }
.provider-row:last-child { border-bottom: 0; }
.provider-row:hover { background: rgb(31 41 55 / .45); }
.provider-icon { color: rgb(148 163 184); font-size: 1.2rem; text-align: center; }
.google-icon { color: #4285f4; font-weight: 800; font-family: Arial, sans-serif; }
.provider-status { border: 1px solid rgb(63 63 70); color: rgb(161 161 170); border-radius: .5rem; padding: .28rem .7rem; font-weight: 700; font-size: .8rem; }
.provider-status.enabled { background: rgb(6 78 59 / .8); border-color: rgb(6 95 70); color: rgb(52 211 153); }
.provider-arrow { color: rgb(148 163 184); font-size: 1.35rem; }
.drawer-header-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(39 39 42); margin: -1.5rem -1.5rem 1.5rem; padding: 1.25rem 1.5rem; }
.drawer-header-row h2 { margin: 0; }
.drawer-x { color: rgb(203 213 225); font-size: 1.5rem; }
.provider-drawer-row { margin: 0 -1.5rem 1.2rem; }
.field-help { color: rgb(148 163 184); font-size: .88rem; margin-top: .45rem; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 5.5rem; }
.input-suffix span { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); color: rgb(148 163 184); font-weight: 700; font-size: .85rem; }
.copy-input-row { display: flex; gap: .6rem; align-items: center; }
.copy-input-row input { flex: 1; }
.select-dark { appearance: auto; }

/* v26 team access, sessions, provider additions */
.option-row-checkbox {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid rgb(51 65 85);
    border-radius: .55rem;
    background: rgb(15 23 42 / .55);
    padding: .75rem .85rem;
    color: rgb(203 213 225);
}
.option-row-checkbox:hover { background: rgb(30 41 59 / .75); }
.option-row-checkbox input { width: 1rem; height: 1rem; accent-color: rgb(16 185 129); }
.option-row-checkbox span { display: block; min-width: 0; }
.option-row-checkbox strong { display: block; color: white; font-size: .9rem; }
.option-row-checkbox small { display: block; color: rgb(148 163 184); font-size: .75rem; margin-top: .15rem; }
.apple-icon { color: rgb(226 232 240); font-weight: 700; }
.tab-line a.tab-line-item { display: inline-flex; align-items: center; }
.sql-results-toolbar {
    position: sticky;
    top: 3.5rem;
    z-index: 18;
}
.sql-run-controls {
    flex-shrink: 0;
}


/* v29 SQL editor and drawer fixes */
.sql-results-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    z-index: 70;
}
.sql-results-toolbar > .flex:first-child {
    min-width: 0;
    overflow: visible;
    flex-wrap: wrap;
}
.sql-run-controls {
    position: sticky;
    right: 1rem;
    z-index: 72;
    background: rgb(16 18 22);
    padding-left: .75rem;
    border-radius: .6rem;
}
.sql-result-panel {
    overflow-x: auto;
}
.result-table-wrap {
    max-width: 100%;
    overflow: auto;
}
.drawer-panel,
.drawer-panel.standard-drawer,
.drawer-panel.wide-drawer {
    z-index: 180 !important;
    max-width: calc(100vw - 1rem) !important;
}
.auth-provider-drawer {
    width: min(920px, calc(100vw - 1rem)) !important;
}
@media (min-width: 901px) {
    body.sidebar-mode-responsive .drawer-panel,
    body.sidebar-mode-responsive .drawer-panel.standard-drawer,
    body.sidebar-mode-responsive .drawer-panel.wide-drawer {
        max-width: calc(100vw - .75rem) !important;
    }
}
@media (max-width: 900px) {
    .sql-results-toolbar {
        grid-template-columns: 1fr;
    }
    .sql-run-controls {
        position: static;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-left: 0;
    }
    .drawer-panel,
    .drawer-panel.standard-drawer,
    .drawer-panel.wide-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* v27 auth URL menu placeholders */
.nav-sub-link-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
.nav-sub-link-disabled:hover {
    color: rgb(148 163 184);
    background: transparent;
}

/* v24 roles and storage */
.roles-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.roles-list { overflow: hidden; }
.roles-list-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid rgb(39 39 42); }
.role-item { display: block; padding: .9rem 1rem; border-bottom: 1px solid rgb(39 39 42); color: rgb(203 213 225); }
.role-item strong { display: block; color: white; }
.role-item span { display: block; color: rgb(148 163 184); font-size: .8rem; margin-top: .2rem; }
.role-item.active, .role-item:hover { background: rgb(51 65 85 / .65); }
.role-editor { overflow: hidden; }
.role-editor-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgb(39 39 42); }
.role-section { padding: 1.25rem 1.5rem; border-top: 1px solid rgb(39 39 42); }
.role-section-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.role-section h3 { color: white; font-weight: 700; font-size: 1rem; }
.role-section p { color: rgb(148 163 184); font-size: .9rem; margin-top: .2rem; }
.permission-list { display: flex; flex-direction: column; gap: .65rem; }
.permission-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: .65rem; align-items: center; }
.permission-row-process { grid-template-columns: minmax(0, 1fr) auto; }
.storage-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 1.5rem; }
.storage-upload-card, .storage-info-card { padding: 1.25rem; }
.storage-kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgb(39 39 42); }
.storage-kv span { color: rgb(148 163 184); }
.storage-kv strong { color: white; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .82rem; overflow-wrap: anywhere; }
.form-label { display: block; color: rgb(203 213 225); font-size: .86rem; font-weight: 700; margin-bottom: .45rem; }
.toggle-line { display: flex; align-items: center; gap: .55rem; color: rgb(203 213 225); }
@media (max-width: 1000px) {
    .roles-layout, .storage-grid { grid-template-columns: 1fr; }
    .permission-row, .permission-row-process { grid-template-columns: 1fr; }
    .role-editor-header, .role-section-header { align-items: stretch; flex-direction: column; }
}

/* v31 endpoint accordion and processes */
.endpoint-sidebar {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}
.endpoint-group {
    border-top: 1px solid rgb(39 39 42);
}
.endpoint-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .75rem;
    border-radius: .5rem;
    color: rgb(226 232 240);
    font-weight: 700;
    text-align: left;
}
.endpoint-group-toggle:hover {
    background: rgb(30 41 59 / .65);
}
.endpoint-group-toggle strong {
    color: rgb(148 163 184);
    font-size: .75rem;
}
.endpoint-group-items {
    display: none;
    padding-bottom: .35rem;
}
.endpoint-group.active .endpoint-group-items {
    display: block;
}
.processes-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 1000px) {
    .api-endpoints-layout, .processes-layout {
        grid-template-columns: 1fr;
    }
    .endpoint-sidebar {
        position: static;
        max-height: none;
    }
}

/* v32 endpoints and dynamic processes */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(0, 0, 0, .68);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 1.25rem;
}
.modal-backdrop.hidden { display: none; }
.process-modal-panel {
    width: min(1480px, 100%);
    max-height: calc(100vh - 2.5rem);
    border: 1px solid rgb(51 65 85);
    border-radius: .85rem;
    background: rgb(15 17 21);
    box-shadow: 0 30px 110px rgba(0,0,0,.65);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.process-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.process-modal-body {
    padding: 1.5rem;
    overflow: auto;
    display: block;
}
.process-code-editor {
    min-height: 430px;
    resize: vertical;
    line-height: 1.45;
}
.process-test-box {
    border: 1px solid rgb(39 39 42);
    background: rgb(24 24 27 / .65);
    border-radius: .7rem;
    padding: 1.25rem;
}
.process-test-box.hidden { display: none; }
@media (max-width: 1100px) {
    .process-modal-panel { max-height: calc(100vh - 1rem); }
    .modal-backdrop { padding: .5rem; }
}


/* v33 endpoint overflow and responsive header fixes */
.api-endpoints-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 100%;
    overflow-x: hidden;
}
.api-endpoints-main, .api-endpoint-card {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}
.api-endpoints-main pre, .api-endpoints-main textarea, .api-endpoints-main input, .api-endpoints-main select {
    max-width: 100%;
}
.api-endpoints-main pre {
    white-space: pre-wrap;
    word-break: break-word;
}
.endpoint-item span, .endpoint-item small, .endpoint-group-toggle span {
    overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
    .api-endpoints-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 900px) {
    body.sidebar-mode-responsive .app-main header {
        padding-left: .85rem;
        padding-right: .85rem;
    }
}

/* v34 process cache, SQL editor scroll, and compact controls */
.sql-shell {
    height: calc(100vh - 3.5rem);
    max-height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sql-tabs-bar,
.sql-editor-pane,
.sql-results-toolbar {
    flex: 0 0 auto;
}
.sql-result-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0;
}
.sql-result-panel .result-table-wrap {
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: auto;
}
.sql-source-label { display: none !important; }

.ui-control-row-sm {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.ui-select-sm {
    min-height: 2.15rem !important;
    padding: .42rem 2.15rem .42rem .7rem !important;
    border-radius: .45rem !important;
    font-size: .82rem !important;
    line-height: 1.2 !important;
    background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px) !important;
}
.btn-sm {
    min-height: 2.15rem !important;
    padding: .42rem .75rem !important;
    border-radius: .45rem !important;
    font-size: .82rem !important;
    line-height: 1.2 !important;
}
.icon-button-sm {
    min-width: 2.15rem !important;
    min-height: 2.15rem !important;
    padding: .35rem .55rem !important;
    border-radius: .45rem !important;
    font-size: .82rem !important;
}
.split-button-sm {
    border-radius: .45rem !important;
}
.split-button-sm .split-button-main,
.split-button-sm .split-button-arrow {
    min-height: 2.15rem !important;
    padding: .42rem .7rem !important;
    font-size: .82rem !important;
    line-height: 1.2 !important;
}
.split-button-sm .split-button-main { border-radius: .45rem 0 0 .45rem !important; }
.split-button-sm .split-button-arrow { border-radius: 0 .45rem .45rem 0 !important; min-width: 2rem !important; }

@media (max-width: 900px) {
    body.sidebar-mode-responsive .app-logo-button {
        position: static !important;
    }
    body.sidebar-mode-responsive .app-main header > div:first-child {
        order: 0;
        flex: 1 1 auto;
        justify-content: flex-start;
    }
    body.sidebar-mode-responsive .sidebar-burger-left {
        order: -100 !important;
        margin-right: .15rem;
    }
}

/* v34 API endpoint horizontal lock */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.app-main,
.app-main > section,
.api-endpoints-layout,
.api-endpoints-main,
.api-endpoint-card {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
.api-endpoints-layout * {
    box-sizing: border-box;
}
.api-endpoints-main pre,
.api-endpoint-card pre {
    max-width: 100%;
    overflow-x: auto;
}

/* v35 help, role grid editor and compact auth controls */
.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.help-icon-button {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(51 65 85);
    border-radius: 999px;
    background: rgb(15 23 42 / .8);
    color: rgb(203 213 225);
    font-weight: 700;
    font-size: .9rem;
}
.help-icon-button:hover {
    background: rgb(30 41 59);
    color: white;
}
.help-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, .78);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 1rem;
}
.help-modal-backdrop.hidden { display: none; }
.help-modal-panel {
    width: 100%;
    height: calc(100vh - 2rem);
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    border: 1px solid rgb(51 65 85);
    border-radius: .9rem;
    overflow: hidden;
    background: rgb(15 17 21);
    box-shadow: 0 30px 110px rgba(0,0,0,.7);
}
.help-modal-index {
    border-right: 1px solid rgb(30 41 59);
    background: rgb(17 19 24);
    padding: 1rem;
    overflow: auto;
}
.help-modal-index-title {
    color: rgb(148 163 184);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: .25rem .5rem 1rem;
}
.help-modal-index button {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: .55rem;
    padding: .7rem .85rem;
    color: rgb(203 213 225);
}
.help-modal-index button:hover,
.help-modal-index button.active {
    background: rgb(51 65 85);
    color: white;
}
.help-modal-content {
    overflow: auto;
    padding: 1.5rem 1.75rem;
}
.help-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.help-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}
.help-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.help-section p {
    color: rgb(203 213 225);
    margin-bottom: .8rem;
    max-width: 850px;
}
.input-sm {
    min-height: 2.15rem !important;
    padding: .42rem .7rem !important;
    border-radius: .45rem !important;
    font-size: .82rem !important;
    line-height: 1.2 !important;
}
.role-drawer-wide {
    width: min(760px, calc(100vw - 2rem));
}
.role-drawer-wide .permission-row {
    grid-template-columns: minmax(0, 1fr) 140px auto;
}
@media (max-width: 760px) {
    .help-modal-panel { grid-template-columns: 1fr; }
    .help-modal-index { max-height: 180px; border-right: 0; border-bottom: 1px solid rgb(30 41 59); }
    .role-drawer-wide .permission-row { grid-template-columns: 1fr; }
}

/* v36 role dual lists and lucide icons */
.dual-list-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}
.dual-list-card {
    border: 1px solid rgb(39 39 42);
    border-radius: .8rem;
    background: rgb(17 19 24 / .9);
    min-width: 0;
    overflow: hidden;
}
.dual-list-title {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgb(39 39 42);
    color: rgb(226 232 240);
    font-size: .86rem;
    font-weight: 700;
}
.dual-list-box {
    min-height: 180px;
    max-height: 260px;
    overflow: auto;
    padding: .7rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.dual-list-item {
    border: 1px solid rgb(51 65 85);
    border-radius: .65rem;
    background: rgb(15 23 42 / .75);
    padding: .65rem .75rem;
    cursor: grab;
    color: rgb(203 213 225);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-width: 0;
}
.dual-list-item:active { cursor: grabbing; }
.dual-list-item:hover {
    border-color: rgb(71 85 105);
    background: rgb(30 41 59 / .75);
}
.dual-list-item strong {
    color: white;
    font-size: .88rem;
    overflow-wrap: anywhere;
}
.dual-list-item span {
    display: block;
    color: rgb(148 163 184);
    font-size: .76rem;
    margin-top: .15rem;
}
.dual-list-item-selected {
    align-items: center;
}
.lucide-icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex: 0 0 auto;
}
@media (max-width: 900px) {
    .dual-list-grid { grid-template-columns: 1fr; }
}

/* v38 SQL Monaco editor */
.sql-editor-pane-monaco {
    min-height: 360px;
    height: 360px;
    overflow: hidden;
}
.sql-monaco-editor {
    width: 100%;
    height: 360px;
    min-height: 360px;
    background: #0b1020;
}
.sql-textarea-fallback {
    height: 360px;
    min-height: 360px;
}

/* v42 role edit accordion */
.role-accordion-section {
    padding: 0;
    border-top: 1px solid rgb(39 39 42);
}
.role-accordion-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
}
.role-accordion-toggle:hover {
    background: rgb(15 23 42 / .48);
}
.role-accordion-title {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    min-width: 0;
}
.role-accordion-title strong {
    color: white;
    font-size: 1rem;
}
.role-accordion-title small {
    color: rgb(148 163 184);
    font-size: .82rem;
    line-height: 1.25;
}
.role-accordion-actions {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
}
.role-accordion-count {
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 .45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(30 41 59);
    color: rgb(226 232 240);
    border: 1px solid rgb(51 65 85);
    font-size: .78rem;
    font-weight: 700;
}
.role-accordion-chevron {
    color: rgb(148 163 184);
    transition: transform .16s ease;
}
.role-accordion-body {
    display: none;
    padding: 0 1.5rem 1.25rem;
}
.role-accordion-section.is-open .role-accordion-body {
    display: block;
}
.role-accordion-section.is-open .role-accordion-chevron {
    transform: rotate(180deg);
}
.role-section-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    margin-bottom: .85rem;
}
@media (max-width: 760px) {
    .role-accordion-toggle { align-items: flex-start; }
    .role-section-toolbar { align-items: stretch; flex-direction: column; }
}

/* v44 application structure menus */
.modal-card {
    width: min(860px, 100%);
    max-height: calc(100vh - 2.5rem);
    border: 1px solid rgb(51 65 85);
    border-radius: .85rem;
    background: rgb(15 17 21);
    box-shadow: 0 30px 110px rgba(0,0,0,.65);
    overflow: auto;
    padding: 1.25rem;
}
.modal-card-lg {
    width: min(1040px, 100%);
}
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(30 41 59);
}
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: rgb(203 213 225);
    font-size: .9rem;
}
.app-menu-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-left: calc(var(--menu-level, 0) * 1.25rem);
}
.app-menu-spacer {
    width: 1.9rem;
    height: 1px;
    flex: 0 0 auto;
}
.role-menu-tree {
    border: 1px solid rgb(39 39 42);
    border-radius: .7rem;
    overflow: hidden;
    background: rgb(15 23 42 / .25);
}
.role-menu-node {
    border-bottom: 1px solid rgb(39 39 42);
}
.role-menu-node:last-child {
    border-bottom: 0;
}
.role-menu-node label {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .8rem .65rem calc(.8rem + (var(--menu-level, 0) * 1.25rem));
    cursor: pointer;
}
.role-menu-node label:hover {
    background: rgb(15 23 42 / .55);
}
.role-menu-node span {
    color: rgb(226 232 240);
    font-weight: 600;
}
.role-menu-node small {
    color: rgb(100 116 139);
    margin-left: auto;
}
@media (max-width: 900px) {
    .form-grid-2 { grid-template-columns: 1fr; }
    .modal-card { max-height: calc(100vh - 1rem); }
}

/* v45 application structure entities */
.modal-card-xl {
    width: min(1280px, 100%);
}
.entity-modal-card {
    max-height: calc(100vh - 1.5rem);
}
.entity-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.entity-edit-sections {
    display: grid;
    gap: 1rem;
}
.entity-edit-section {
    border: 1px solid rgb(30 41 59);
    border-radius: .85rem;
    background: rgb(15 23 42 / .25);
    overflow: hidden;
}
.entity-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.entity-section-header h3 {
    font-size: .98rem;
    font-weight: 700;
    color: rgb(248 250 252);
}
.entity-section-header p {
    margin-top: .15rem;
    font-size: .78rem;
    color: rgb(148 163 184);
}
.entity-grid-wrap {
    overflow: auto;
    max-height: 310px;
}
.entity-config-table th,
.entity-config-table td {
    white-space: nowrap;
}
.entity-config-table .input-sm {
    min-width: 105px;
}
.entity-config-table input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}
@media (max-width: 900px) {
    .entity-section-header { align-items: flex-start; flex-direction: column; }
    .entity-toolbar { align-items: stretch; flex-direction: column; }
}

.entity-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}

.entity-default-cell {
    min-width: 130px;
    white-space: nowrap;
}

.entity-default-btn {
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .72);
    color: rgb(203, 213, 225);
    border-radius: .45rem;
    padding: .2rem .42rem;
    font-size: .72rem;
    line-height: 1rem;
    margin-right: .25rem;
}

.entity-default-btn:hover {
    border-color: rgba(56, 189, 248, .45);
    color: white;
}

.entity-default-warning {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, .35);
    background: rgba(245, 158, 11, .08);
    color: rgb(251, 191, 36);
    border-radius: .45rem;
    padding: .18rem .4rem;
    font-size: .7rem;
    margin-right: .25rem;
}

/* v46 entity tabs, defaults and JSON viewer */
.entity-tabs {
    display: flex;
    align-items: center;
    gap: .35rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.entity-tab {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: .7rem .7rem 0 0;
    padding: .55rem .9rem;
    color: rgb(148 163 184);
    background: transparent;
    font-size: .86rem;
    font-weight: 600;
}
.entity-tab:hover {
    color: rgb(226 232 240);
    background: rgb(15 23 42 / .45);
}
.entity-tab.active {
    color: white;
    border-color: rgb(30 41 59);
    background: rgb(15 23 42 / .75);
}
.entity-tab-panel {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.entity-auto-defaults {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgb(203 213 225);
    font-size: .84rem;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 23, 42, .45);
    border-radius: .65rem;
    padding: .45rem .65rem;
    cursor: help;
}
.entity-auto-defaults input {
    width: 1rem;
    height: 1rem;
}
.entity-grid-wrap-scroll {
    position: relative;
    overflow: auto;
    max-height: 420px;
}
.entity-config-table-wide {
    min-width: 1180px;
    width: max-content;
}
.entity-sticky-col {
    position: sticky;
    z-index: 8;
    background: rgb(15 23 42);
    box-shadow: -10px 0 16px rgba(2, 6, 23, .18);
}
th.entity-sticky-col {
    z-index: 11;
    background: rgb(17 24 39);
}
.entity-sticky-actions {
    right: 0;
    min-width: 92px;
}
.entity-sticky-defaults {
    right: 92px;
    min-width: 150px;
}
.json-default-modal-card {
    width: min(860px, 100%);
}
.json-tree-view {
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(2, 6, 23, .45);
    border-radius: .85rem;
    padding: 1rem;
    max-height: 62vh;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .82rem;
}
.json-tree-node {
    margin: .12rem 0;
}
.json-tree-children {
    margin-left: 1rem;
    padding-left: .75rem;
    border-left: 1px solid rgba(148, 163, 184, .14);
}
.json-tree-key {
    color: rgb(125 211 252);
}
.json-tree-type {
    color: rgb(148 163 184);
    font-size: .72rem;
    margin-left: .35rem;
}
.json-tree-sep {
    color: rgb(100 116 139);
    margin: 0 .35rem;
}
.json-tree-value {
    color: rgb(226 232 240);
}
.json-tree-leaf {
    padding: .08rem 0;
}
@media (max-width: 900px) {
    .entity-tab { flex: 1; }
    .entity-sticky-col { position: static; box-shadow: none; }
    .entity-config-table-wide { min-width: 980px; }
}
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 1100px) { .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .form-grid-4 { grid-template-columns: 1fr; } }

/* v47 entity defaults drawer and entity modal refinements */
.toast-host { z-index: 4000; }
.inline { display: inline; }
.table-toolbar.entity-defaults-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.btn-icon-square {
    width: 2.05rem;
    height: 2.05rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.btn-icon-square svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.drawer-panel.entity-default-drawer {
    width: min(560px, 100vw);
    z-index: 2100;
}
.drawer-form-stack {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    min-height: calc(100vh - 5rem);
}
.compact-grid { gap: .85rem; }
.entity-default-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.app-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: .65rem;
    min-height: 2.35rem;
    padding: .55rem .7rem;
    border: 1px solid rgb(51 65 85);
    border-radius: .65rem;
    background: rgb(15 23 42 / .55);
    color: rgb(203 213 225);
    margin: 0 !important;
    cursor: pointer;
    user-select: none;
}
.app-checkbox:hover { border-color: rgb(71 85 105); background: rgb(30 41 59 / .55); }
.app-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.app-checkbox span {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    border: 1px solid rgb(71 85 105);
    border-radius: .3rem;
    background: rgb(2 6 23);
    box-shadow: inset 0 0 0 2px rgb(2 6 23);
}
.app-checkbox input:checked + span {
    background: rgb(16 185 129);
    border-color: rgb(16 185 129);
}
.app-checkbox input:checked + span::after {
    content: '';
    display: block;
    width: .45rem;
    height: .72rem;
    margin: .09rem auto 0;
    border-right: 2px solid rgb(2 6 23);
    border-bottom: 2px solid rgb(2 6 23);
    transform: rotate(45deg);
}
.app-checkbox strong {
    font-size: .86rem;
    font-weight: 600;
    color: rgb(226 232 240);
}
.entity-default-advanced {
    border: 1px solid rgb(30 41 59);
    border-radius: .7rem;
    padding: .85rem;
    background: rgb(2 6 23 / .32);
}
.entity-default-advanced summary {
    cursor: pointer;
    color: rgb(226 232 240);
    font-weight: 700;
}
.entity-modal-card {
    display: flex;
    flex-direction: column;
    height: min(92vh, 980px);
    overflow: hidden;
}
.entity-modal-card form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.entity-modal-header-sticky {
    flex: 0 0 auto;
}
.modal-actions-inline {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.entity-tabs-fill {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.entity-tabs-fill .entity-tabs {
    flex: 0 0 auto;
}
.entity-tabs-fill .entity-tab-panel {
    flex: 1 1 auto;
    min-height: 0;
}
.entity-tabs-fill .entity-edit-section:not(.hidden) {
    display: flex;
    flex-direction: column;
}
.entity-tabs-fill .entity-grid-wrap-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}
.entity-config-table input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(16 185 129);
}
.btn-icon-square.is-loading,
.btn-icon-square:disabled {
    opacity: .65;
    cursor: wait;
}
@media (max-width: 780px) {
    .entity-default-checkbox-grid { grid-template-columns: 1fr; }
    .drawer-panel.entity-default-drawer { width: 100vw; }
}

/* v-next validation helpers */
.validation-error-box {
    display: block;
    margin-top: .28rem;
    padding-left: .2rem;
    color: rgb(248 113 113);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}
.input-dark + .validation-error-box,
select + .validation-error-box,
textarea + .validation-error-box {
    margin-bottom: .1rem;
}

/* v-next entity default lookup */
.btn-icon-compact {
    width: 2rem;
    height: 2rem;
}
.btn-icon-compact svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.default-lookup-modal-card {
    width: min(980px, 100%);
}
.lookup-search-row {
    margin-bottom: .9rem;
}
.lookup-grid-wrap {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: .85rem;
    overflow: auto;
    max-height: 58vh;
    background: rgba(2, 6, 23, .28);
}
.lookup-grid-wrap .data-table th,
.lookup-grid-wrap .data-table td {
    white-space: nowrap;
}

/* v-next entity relations, indexes and table generation */
.row-menu-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.entity-relations-table { min-width: 1500px; }
.entity-indexes-table { min-width: 760px; }
.entity-index-fields-input { min-width: 260px !important; }
.default-lookup-modal-card {
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 880px);
    overflow: hidden;
}
.default-lookup-modal-card .modal-header,
.default-lookup-modal-card .lookup-search-row {
    flex: 0 0 auto;
}
.default-lookup-modal-card .lookup-grid-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}
.entity-create-table-modal-card {
    display: flex;
    flex-direction: column;
    height: min(90vh, 960px);
    overflow: hidden;
}
.entity-create-table-grid {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.6fr);
    gap: 1rem;
    min-height: 0;
    flex: 1 1 auto;
}
.entity-create-left,
.entity-create-right {
    min-height: 0;
    overflow: auto;
}
.entity-create-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.entity-create-panel,
.entity-create-right {
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(2, 6, 23, .28);
    border-radius: .85rem;
    padding: 1rem;
}
.entity-create-panel h3 {
    margin: 0 0 .75rem;
    font-size: .92rem;
    color: rgb(248 250 252);
}
.entity-create-summary {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.entity-create-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
    padding-bottom: .45rem;
}
.entity-create-summary dt {
    color: rgb(148 163 184);
    font-size: .78rem;
}
.entity-create-summary dd {
    color: rgb(226 232 240);
    font-weight: 700;
    text-align: right;
}
.entity-create-mini-list {
    display: grid;
    gap: .55rem;
}
.entity-create-mini-list strong {
    display: block;
    color: rgb(148 163 184);
    font-size: .75rem;
}
.entity-create-mini-list span {
    display: block;
    color: rgb(226 232 240);
    font-size: .82rem;
    overflow-wrap: anywhere;
}
.entity-create-existing-row {
    margin-top: .85rem;
}
.entity-table-plan-status {
    margin: 1rem 0 .75rem;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(15, 23, 42, .55);
    border-radius: .65rem;
    padding: .65rem .8rem;
    color: rgb(203 213 225);
    font-size: .84rem;
}
.entity-table-plan-tabs {
    display: flex;
    gap: .35rem;
    border-bottom: 1px solid rgb(30 41 59);
    margin-bottom: .75rem;
    overflow-x: auto;
}
.entity-table-plan-tab {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: .55rem .55rem 0 0;
    padding: .45rem .7rem;
    color: rgb(148 163 184);
    background: transparent;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}
.entity-table-plan-tab.active {
    color: white;
    border-color: rgb(30 41 59);
    background: rgb(15 23 42 / .75);
}
.entity-table-plan-panel {
    min-height: 220px;
    max-height: 48vh;
    overflow: auto;
}
.entity-table-plan-sql {
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(2, 6, 23, .65);
    border-radius: .65rem;
    padding: .85rem;
    color: rgb(226 232 240);
    font-size: .78rem;
    white-space: pre-wrap;
}
.entity-plan-message-group {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: .65rem;
    padding: .75rem .85rem;
    margin-bottom: .75rem;
    background: rgba(15, 23, 42, .42);
}
.entity-plan-message-group.error { border-color: rgba(248, 113, 113, .35); }
.entity-plan-message-group.warning { border-color: rgba(245, 158, 11, .35); }
.entity-plan-message-group strong {
    display: block;
    color: rgb(248 250 252);
    margin-bottom: .35rem;
}
.entity-plan-message-group ul {
    margin: 0;
    padding-left: 1.15rem;
    color: rgb(203 213 225);
}
.entity-plan-table th,
.entity-plan-table td {
    white-space: nowrap;
}
@media (max-width: 980px) {
    .entity-create-table-grid { grid-template-columns: 1fr; }
    .entity-create-table-modal-card { height: 94vh; }
}

/* v44 reusable HTML editor and sidebar scroll */
.app-sidebar {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.app-sidebar > nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 4.5rem;
}
.app-sidebar > nav::-webkit-scrollbar {
    width: .55rem;
}
.app-sidebar > nav::-webkit-scrollbar-track {
    background: transparent;
}
.app-sidebar > nav::-webkit-scrollbar-thumb {
    background: rgb(51 65 85);
    border-radius: 999px;
}
.html-editor-shell {
    position: relative;
    width: 100%;
    min-width: 0;
}
.html-monaco-editor,
.html-editor-preview,
.html-editor-textarea {
    width: 100%;
    min-height: 520px;
    border: 1px solid rgb(51 65 85);
    border-radius: .45rem;
    background: rgb(28 29 33);
    overflow: hidden;
    box-sizing: border-box;
}
.html-editor-preview {
    display: block;
    background: white;
    padding: 0;
}
.html-editor-preview.hidden,
.html-monaco-editor.hidden,
.html-editor-textarea.hidden {
    display: none !important;
}


/* v48 modal/editor/entity refinements */
.html-editor-shell textarea.html-editor-textarea.hidden,
.email-template-editor textarea.email-code.html-editor-textarea.hidden,
.email-template-editor .html-editor-textarea.hidden {
    display: none !important;
}
.structure-modal-card {
    overflow: hidden;
    padding: 0;
}
.structure-modal-card form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2.5rem);
}
.structure-modal-card .modal-header {
    flex: 0 0 auto;
    margin: 0;
    padding: 1.15rem 1.25rem;
}
.structure-modal-body {
    overflow: auto;
    padding: 1.25rem;
}
.structure-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgb(30 41 59);
}
.dropdown-text-wrap,
.checked-dropdown-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.dropdown-text-wrap input,
.checked-dropdown-wrap input {
    min-width: 145px;
}
.checked-dropdown-button {
    width: 2.05rem;
    height: 2.05rem;
    flex: 0 0 auto;
    border: 1px solid rgb(51 65 85);
    border-radius: .45rem;
    background: rgb(15 23 42 / .65);
    color: rgb(203 213 225);
}
.checked-dropdown-button:hover {
    background: rgb(30 41 59);
    color: white;
}
.checked-dropdown-menu {
    width: 230px;
    max-height: 260px;
    overflow: auto;
    padding: .4rem;
}
.checked-dropdown-menu label {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .55rem .65rem;
    border-radius: .4rem;
    color: rgb(203 213 225);
    cursor: pointer;
}
.checked-dropdown-menu label:hover {
    background: rgb(51 65 85);
    color: white;
}
.checked-dropdown-menu input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(16 185 129);
}
.entity-relations-table th.entity-sticky-actions,
.entity-relations-table td.entity-sticky-actions,
.entity-indexes-table th.entity-sticky-actions,
.entity-indexes-table td.entity-sticky-actions {
    right: 0;
    min-width: 92px;
}
.entity-relations-table,
.entity-indexes-table {
    width: max-content;
}

/* v-next reusable app data table */
.app-data-table-card {
    overflow: hidden;
}
.app-data-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.app-data-table-toolbar-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}
.app-data-table-shell {
    overflow: auto;
    min-height: 0;
    background: rgba(2, 6, 23, .18);
}
.app-data-table-height-free {
    max-height: none;
}
.app-data-table-height-fixed,
.app-data-table-height-max,
.app-data-table-height-fill {
    overflow: auto;
}
.app-data-table-height-fixed {
    height: 420px;
}
.app-data-table-height-max {
    max-height: 58vh;
}
.app-data-table-height-fill {
    height: calc(100vh - 260px);
}
.app-data-table {
    border-collapse: separate;
    border-spacing: 0;
}
.app-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgb(24 24 27);
    white-space: nowrap;
}
.app-data-table td {
    white-space: nowrap;
}
.app-data-table-header-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: 100%;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    text-align: left;
}
.app-data-table-header-button:disabled {
    cursor: default;
}
.app-data-table-sort {
    color: rgb(100 116 139);
    font-size: .72rem;
    line-height: 1;
}
.app-data-table-sort.active {
    color: rgb(226 232 240);
}
.app-data-table-refresh-th {
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.25rem;
    text-align: right !important;
    right: 0;
    z-index: 5 !important;
}
.app-data-table-refresh-cell {
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.25rem;
    padding-left: .5rem !important;
    padding-right: .75rem !important;
}
.app-data-table-refresh-btn svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.entity-defaults-table-host .app-data-table-shell {
    min-height: 260px;
}
.entity-defaults-data-table th,
.entity-defaults-data-table td {
    white-space: nowrap;
}

/* v-next app data table refinements */
.app-data-table-shell {
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgb(71 85 105) rgba(15, 23, 42, .35);
}
.app-data-table-shell::-webkit-scrollbar {
    width: .55rem;
    height: .55rem;
}
.app-data-table-shell::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, .35);
    border-radius: 999px;
}
.app-data-table-shell::-webkit-scrollbar-thumb {
    background: rgb(71 85 105);
    border-radius: 999px;
}
.app-data-table-shell::-webkit-scrollbar-thumb:hover {
    background: rgb(100 116 139);
}
.app-data-table-no-horizontal-scroll {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.app-data-table-horizontal-scroll {
    overflow: auto !important;
}
.app-data-table-height-fill {
    height: auto;
}
.app-data-table-no-horizontal-scroll .app-data-table {
    table-layout: fixed;
    width: 100%;
}
.app-data-table-no-horizontal-scroll .app-data-table th,
.app-data-table-no-horizontal-scroll .app-data-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-data-table-no-horizontal-scroll .app-data-table td .btn-secondary,
.app-data-table-no-horizontal-scroll .app-data-table td .btn-danger,
.app-data-table-no-horizontal-scroll .app-data-table td .btn-primary,
.app-data-table-no-horizontal-scroll .app-data-table td form,
.app-data-table-no-horizontal-scroll .app-data-table td .badge {
    overflow: visible;
}
.app-data-table-refresh-th {
    width: 4rem !important;
    min-width: 4rem !important;
    max-width: 4rem !important;
    padding-left: .45rem !important;
    padding-right: 1rem !important;
    text-align: center !important;
    position: sticky !important;
    right: 0;
    background: rgb(24 24 27);
}
.app-data-table-refresh-cell {
    width: 4rem !important;
    min-width: 4rem !important;
    max-width: 4rem !important;
    padding-left: .45rem !important;
    padding-right: 1rem !important;
    position: sticky;
    right: 0;
    background: rgb(15 17 21);
}
.app-data-table-refresh-btn {
    margin-left: auto;
    margin-right: .25rem;
}
.entity-defaults-table-host .app-data-table-card {
    min-height: 0;
}
.entity-defaults-table-host .app-data-table-shell {
    min-height: 240px;
}
.processes-data-table .process-name-cell {
    min-width: 220px;
}
.processes-data-table .process-description {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 520px;
}
.processes-data-table .process-actions-cell {
    overflow: visible !important;
    white-space: nowrap;
}

/* v-next process edit and reusable table actions */
.process-edit-page {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.process-edit-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.process-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid rgb(51 65 85);
    border-radius: .65rem;
    background: rgba(15, 23, 42, .65);
    color: rgb(226 232 240);
    font-size: 1.35rem;
    line-height: 1;
}
.process-back-link:hover {
    border-color: rgb(16 185 129);
    color: rgb(110 231 183);
}
.process-edit-card {
    overflow: hidden;
}
.process-edit-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.process-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}
.process-edit-card-body {
    padding: 1.25rem;
}
.process-enabled-field {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.process-enabled-field .form-label {
    margin: 0;
}
.code-editor-shell {
    width: 100%;
    min-width: 0;
}
.code-monaco-editor,
.code-editor-textarea {
    width: 100%;
    min-height: 620px;
    border: 1px solid rgb(51 65 85);
    border-radius: .45rem;
    background: rgb(28 29 33);
    overflow: hidden;
    box-sizing: border-box;
}
.code-editor-textarea.hidden,
.code-monaco-editor.hidden {
    display: none !important;
}
.row-icon-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    white-space: nowrap;
}
.icon-glossy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .55rem;
    border: 1px solid rgba(148, 163, 184, .35);
    background: linear-gradient(145deg, rgba(51, 65, 85, .95), rgba(15, 23, 42, .95));
    color: rgb(226 232 240);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.2);
}
.icon-glossy-button:hover {
    border-color: rgb(16 185 129);
    color: rgb(110 231 183);
}
.icon-glossy-button svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
.btn-xs {
    padding: .35rem .55rem;
    font-size: .72rem;
    border-radius: .45rem;
}
.queue-error-cell {
    max-width: 320px;
}
.queue-actions-cell,
.database-tables-actions-cell {
    overflow: visible !important;
    white-space: nowrap;
}
.database-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}
.text-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(2, 6, 23, .72);
    backdrop-filter: blur(5px);
}
.text-modal-panel {
    width: min(900px, 96vw);
    max-height: min(760px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(51 65 85);
    border-radius: .8rem;
    background: rgb(15 23 42);
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.text-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgb(30 41 59);
}
.text-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 650;
}
.text-modal-header p {
    margin-top: .15rem;
    color: rgb(148 163 184);
    font-size: .85rem;
}
.text-modal-content {
    flex: 1 1 auto;
    min-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 1rem 1.15rem;
    background: rgba(0,0,0,.25);
    color: rgb(226 232 240);
    font-size: .86rem;
    line-height: 1.55;
    white-space: pre-wrap;
    scrollbar-width: thin;
    scrollbar-color: rgb(71 85 105) rgba(15, 23, 42, .35);
}
.text-modal-content::-webkit-scrollbar {
    width: .55rem;
    height: .55rem;
}
.text-modal-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, .35);
}
.text-modal-content::-webkit-scrollbar-thumb {
    background: rgb(71 85 105);
    border-radius: 999px;
}
.text-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    padding: .9rem 1.15rem;
    border-top: 1px solid rgb(30 41 59);
}

/* Schema visualizer viewport and minimap */
.database-page-schema {
    height: calc(100vh - 3.5rem);
    min-height: 0;
    overflow: hidden;
}
.database-content-schema {
    height: calc(100vh - 3.5rem);
    min-height: 0;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}
.schema-canvas-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}
.schema-canvas-shell .schema-canvas {
    height: 100% !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 0 !important;
    display: block !important;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgb(71 85 105) transparent;
}
.schema-canvas-shell .schema-canvas::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
.schema-canvas-shell .schema-canvas::-webkit-scrollbar-thumb {
    background: rgb(51 65 85);
    border-radius: 999px;
    border: 2px solid rgb(13 15 19);
}
.schema-canvas-shell .schema-canvas::-webkit-scrollbar-track {
    background: transparent;
}
.schema-canvas.schema-panning {
    cursor: grabbing;
}
.schema-canvas-extent {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
}
.schema-canvas-shell .schema-card {
    overflow: hidden !important;
}
.schema-card.schema-colliding {
    border-color: rgb(251 191 36) !important;
    box-shadow: 0 0 0 1px rgb(251 191 36 / .75), 0 18px 36px rgba(0,0,0,.4);
    background: rgb(18 20 24 / .86);
}
.schema-minimap {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 200px;
    height: 150px;
    z-index: 8;
    border: 1px solid rgb(51 65 85);
    border-radius: .65rem;
    background: rgb(15 17 21 / .86);
    box-shadow: 0 18px 50px rgba(0,0,0,.42);
    overflow: hidden;
    cursor: crosshair;
    backdrop-filter: blur(6px);
}
.schema-minimap-content,
.schema-minimap-viewport {
    position: absolute;
    left: 0;
    top: 0;
}
.schema-minimap-card {
    position: absolute;
    border: 1px solid rgb(100 116 139);
    border-radius: 2px;
    background: rgb(71 85 105 / .72);
}
.schema-minimap-card-colliding {
    border-color: rgb(251 191 36);
    background: rgb(251 191 36 / .35);
}
.schema-minimap-viewport {
    border: 1px solid rgb(110 231 183);
    background: rgb(16 185 129 / .08);
    box-shadow: 0 0 0 1px rgb(16 185 129 / .24);
    pointer-events: none;
}
.schema-canvas-shell > .schema-legend-button {
    z-index: 9;
}
.schema-canvas-shell > .schema-legend {
    z-index: 10;
}

/* v41 endpoint tree and function edit */
.api-endpoints-tree-layout {
    height: calc(100vh - 7rem);
    min-height: 560px;
    overflow: hidden;
    align-items: stretch;
}
.endpoint-tree-sidebar {
    position: sticky;
    top: 5rem;
    height: 100%;
    max-height: calc(100vh - 7rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.endpoint-tree-header {
    flex: 0 0 auto;
    padding: .95rem 1rem .7rem;
    border-bottom: 1px solid rgb(39 39 42);
}
.endpoint-tree-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .55rem;
    scrollbar-width: thin;
    scrollbar-color: rgb(71 85 105) transparent;
}
.endpoint-tree-scroll::-webkit-scrollbar,
.endpoint-main-scroll::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
.endpoint-tree-scroll::-webkit-scrollbar-track,
.endpoint-main-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.endpoint-tree-scroll::-webkit-scrollbar-thumb,
.endpoint-main-scroll::-webkit-scrollbar-thumb {
    background: rgb(71 85 105 / .72);
    border-radius: 999px;
}
.endpoint-tree-scroll::-webkit-scrollbar-thumb:hover,
.endpoint-main-scroll::-webkit-scrollbar-thumb:hover {
    background: rgb(100 116 139 / .9);
}
.endpoint-tree-group {
    border-radius: .65rem;
    margin-bottom: .15rem;
}
.endpoint-tree-group.active {
    background: rgb(15 23 42 / .35);
}
.endpoint-tree-group-toggle {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: .35rem;
    width: 100%;
    padding: .65rem .65rem;
    border-radius: .55rem;
    color: rgb(226 232 240);
    text-align: left;
    font-weight: 700;
}
.endpoint-tree-group-toggle:hover {
    background: rgb(30 41 59 / .72);
}
.endpoint-tree-group-toggle strong {
    color: rgb(148 163 184);
    font-size: .72rem;
    font-weight: 700;
}
.endpoint-tree-caret {
    color: rgb(148 163 184);
    transition: transform .15s ease;
}
.endpoint-tree-group.collapsed .endpoint-tree-caret {
    transform: rotate(-90deg);
}
.endpoint-tree-category,
.endpoint-tree-item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.endpoint-tree-items {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    padding: .1rem .15rem .45rem 1rem;
}
.endpoint-tree-group.collapsed .endpoint-tree-items {
    display: none;
}
.endpoint-tree-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: .35rem;
    width: 100%;
    padding: .48rem .55rem;
    border-radius: .5rem;
    color: rgb(203 213 225);
    text-align: left;
    font-size: .88rem;
}
.endpoint-tree-item::before {
    content: '';
    position: absolute;
    left: .75rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgb(51 65 85 / .65);
}
.endpoint-tree-leaf {
    width: 7px;
    height: 7px;
    border: 1px solid rgb(100 116 139);
    border-radius: 999px;
    background: rgb(15 23 42);
    z-index: 1;
}
.endpoint-tree-item:hover,
.endpoint-tree-item.active {
    background: rgb(51 65 85 / .75);
    color: white;
}
.endpoint-tree-item.active .endpoint-tree-leaf {
    border-color: rgb(52 211 153);
    background: rgb(52 211 153);
}
.endpoint-main-scroll {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: .15rem;
}
.endpoint-selected-summary {
    border: 1px solid rgb(39 39 42);
    background: rgb(24 24 27 / .6);
    border-radius: .85rem;
    padding: 1rem 1.15rem;
}
@media (max-width: 1000px) {
    .api-endpoints-tree-layout {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    .endpoint-tree-sidebar,
    .endpoint-main-scroll {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}
.function-edit-card .code-editor-shell {
    width: 100%;
}
.function-definition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .45rem;
}
.function-template-menu {
    min-width: 240px;
}
.shiny-action {
    background: linear-gradient(135deg, rgb(51 65 85), rgb(15 23 42));
    border: 1px solid rgb(100 116 139 / .75);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 8px 20px rgb(0 0 0 / .22);
}
.shiny-action:hover {
    border-color: rgb(52 211 153 / .85);
    color: rgb(167 243 208);
}
.database-functions-data-table .app-data-table-refresh-th,
.database-functions-data-table .app-data-table-refresh-cell {
    width: 46px;
}

/* v42 API endpoint page lock and function editor refinements */
body.page-app-apiendpoints {
    overflow-y: hidden;
}
body.page-app-apiendpoints .app-main {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}
body.page-app-apiendpoints .app-main > section {
    height: calc(100vh - 3.5rem);
    min-height: 0;
    overflow: hidden;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
body.page-app-apiendpoints .api-endpoints-tree-layout {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}
body.page-app-apiendpoints .endpoint-tree-sidebar {
    position: relative;
    top: auto;
    height: 100%;
    max-height: 100%;
}
body.page-app-apiendpoints .endpoint-main-scroll {
    height: 100%;
    max-height: 100%;
    min-height: 0;
}
.input-with-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    align-items: center;
}
.function-argument-modal-card {
    max-width: 560px;
}
.database-function-edit-action {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    border: 1px solid rgb(100 116 139 / .75);
    background: linear-gradient(135deg, rgb(51 65 85), rgb(15 23 42));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 8px 20px rgb(0 0 0 / .22);
    color: rgb(226 232 240);
}
.database-function-edit-action:hover {
    border-color: rgb(52 211 153 / .85);
    color: rgb(167 243 208);
}
.database-function-edit-action svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.database-functions-data-table th[data-column-key="__actions"] .app-data-table-header-button {
    display: none;
}

/* v-next editor tabs and schema scrollbar fixes */
.app-editor-card {
    overflow: hidden;
}
.app-editor-tabs {
    padding: 0 1.25rem;
    background: rgb(15 17 21 / .72);
}
.app-editor-tab-panel.hidden {
    display: none !important;
}
.app-editor-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.function-argument-modal-backdrop {
    align-items: center !important;
}
.function-argument-modal-card {
    width: min(560px, 100%) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 4rem) !important;
    padding: 1.25rem !important;
}
.database-function-action-cell,
.database-function-action-header {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    padding-left: .35rem !important;
    padding-right: .35rem !important;
}
.database-function-action-header .app-data-table-header-button {
    display: none !important;
}
.database-functions-data-table .app-data-table-refresh-cell,
.database-functions-data-table .app-data-table-refresh-th {
    display: none !important;
}
.schema-canvas-shell .schema-canvas {
    overflow: auto !important;
    scrollbar-gutter: stable both-edges;
}
.schema-canvas-shell .schema-canvas:not(:hover)::-webkit-scrollbar-thumb {
    background: rgb(51 65 85 / .58);
}
.schema-canvas-extent {
    min-width: 0 !important;
    min-height: 0 !important;
}

/* v-next database function/index table refinements */
.process-edit-topbar-with-action {
    justify-content: space-between;
    align-items: flex-start;
}
.process-edit-title-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.row-icon-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    white-space: nowrap;
}
.database-function-action-cell,
.database-function-action-header,
.database-index-action-cell,
.database-index-action-header {
    min-width: 92px !important;
    width: 92px !important;
    max-width: 92px !important;
}
.database-functions-data-table .app-data-table-refresh-cell,
.database-functions-data-table .app-data-table-refresh-th {
    display: table-cell !important;
}
.database-function-edit-action,
.database-function-delete-action,
.database-index-view-action,
.database-index-delete-action {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    color: rgb(226 232 240);
}
.database-function-delete-action,
.database-index-delete-action {
    color: rgb(252 165 165);
}
.database-function-delete-action:hover,
.database-index-delete-action:hover {
    border-color: rgb(248 113 113 / .85);
    color: rgb(254 202 202);
}
.database-function-edit-action svg,
.database-function-delete-action svg,
.database-index-view-action svg,
.database-index-delete-action svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.app-data-table-variant-index {
    border-color: rgb(51 65 85 / .9);
    background: linear-gradient(180deg, rgb(15 23 42 / .72), rgb(15 17 21 / .92));
}
.app-data-table-variant-index .app-data-table-toolbar,
.app-data-table-variant-index .app-data-table thead th,
.app-data-table-variant-index .app-data-table-refresh-th {
    background: rgb(15 23 42 / .88);
}
.app-data-table-variant-index .app-data-table-refresh-cell {
    background: rgb(15 17 21 / .95);
}
.app-data-table-variant-index .app-data-table tbody tr:hover td {
    background: rgb(30 41 59 / .35);
}
.database-indexes-data-table th[data-column-key="__actions"] .app-data-table-header-button {
    display: none;
}
@media (max-width: 720px) {
    .process-edit-topbar-with-action {
        align-items: stretch;
        flex-direction: column;
    }
}

/* v-next blue AppDataTable variant and refresh column cleanup */
.app-data-table-clickable-row {
    cursor: pointer;
}
.app-data-table-refresh-cell {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.app-data-table-refresh-th {
    display: table-cell !important;
}
.app-data-table-variant-blue,
.app-data-table-variant-index {
    border-color: rgb(51 65 85 / .9);
    background: linear-gradient(180deg, rgb(15 23 42 / .72), rgb(15 17 21 / .92));
}
.app-data-table-variant-blue .app-data-table-toolbar,
.app-data-table-variant-blue .app-data-table thead th,
.app-data-table-variant-blue .app-data-table-refresh-th,
.app-data-table-variant-index .app-data-table-toolbar,
.app-data-table-variant-index .app-data-table thead th,
.app-data-table-variant-index .app-data-table-refresh-th {
    background: rgb(15 23 42 / .88);
}
.app-data-table-variant-blue .app-data-table tbody tr:hover td,
.app-data-table-variant-index .app-data-table tbody tr:hover td {
    background: rgb(30 41 59 / .35);
}
.database-indexes-data-table .app-data-table-refresh-cell,
.database-functions-data-table .app-data-table-refresh-cell,
.authentication-users-data-table .app-data-table-refresh-cell {
    display: none !important;
}
.database-indexes-data-table .app-data-table-refresh-th,
.database-functions-data-table .app-data-table-refresh-th,
.authentication-users-data-table .app-data-table-refresh-th {
    display: table-cell !important;
}
.authentication-users-data-table th[data-column-key="__select"] .app-data-table-header-button {
    display: none;
}
.authentication-users-data-table td,
.authentication-users-data-table th {
    vertical-align: middle;
}


/* v-next authentication users and blue table action cleanup */
.authentication-users-data-table th[data-column-key="__select"],
.authentication-users-data-table td[data-column-key="__select"] {
    display: none !important;
}
.database-indexes-data-table td.database-index-action-cell,
.database-functions-data-table td.database-function-action-cell {
    overflow: visible !important;
    text-overflow: clip !important;
}
.database-indexes-data-table .row-icon-actions,
.database-functions-data-table .row-icon-actions {
    width: 100%;
    justify-content: flex-end;
}
.database-indexes-data-table .row-icon-actions form,
.database-functions-data-table .row-icon-actions form {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: visible !important;
}
.database-indexes-data-table .app-data-table-refresh-cell,
.database-functions-data-table .app-data-table-refresh-cell,
.authentication-users-data-table .app-data-table-refresh-cell {
    display: none !important;
}
.database-index-view-action.shiny-action,
.database-index-delete-action.shiny-action,
.database-function-edit-action.shiny-action,
.database-function-delete-action.shiny-action {
    flex: 0 0 auto;
}


/* v-next AppDataTable refresh overlay */
.app-data-table-shell {
    position: relative;
}
.app-data-table-refresh-overlay {
    position: sticky;
    top: .45rem;
    right: .65rem;
    z-index: 9;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    height: 0;
    margin-top: calc(-2.55rem - 1px);
    padding-right: .15rem;
}
.app-data-table-refresh-overlay .app-data-table-refresh-btn {
    pointer-events: auto;
}
.app-data-table-refresh-th,
.app-data-table-refresh-cell {
    display: none !important;
}
.app-data-table-shell-has-refresh .app-data-table thead th:last-child {
    padding-right: 4.2rem;
}
.database-index-action-cell,
.database-function-action-cell {
    padding-right: .75rem !important;
}


/* v-next AppDataTable stable inline refresh and auth menu regression fix */
.app-data-table-refresh-overlay,
.app-data-table-refresh-th,
.app-data-table-refresh-cell {
    display: none !important;
}
.app-data-table-refresh-inline-th {
    position: sticky !important;
    top: 0;
    overflow: visible !important;
    padding-right: 4.25rem !important;
}
.app-data-table-refresh-inline-th .app-data-table-header-button {
    min-width: 0;
}
.app-data-table-refresh-inline {
    position: absolute !important;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);
    z-index: 12;
    margin: 0 !important;
}
.app-data-table-refresh-inline svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.database-index-action-cell,
.database-function-action-cell,
.database-tables-actions-cell {
    overflow: visible !important;
    text-overflow: clip !important;
}
.database-indexes-data-table .row-icon-actions,
.database-functions-data-table .row-icon-actions {
    padding-right: 0;
}
.authentication-users-data-table th[data-column-key="__select"],
.authentication-users-data-table td[data-column-key="__select"] {
    display: none !important;
}

/* v-next AppDataTable refresh restore */
.app-data-table-shell {
    position: relative;
}
.app-data-table-refresh-overlay {
    position: absolute !important;
    top: .45rem !important;
    right: .65rem !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}
.app-data-table-refresh-overlay .app-data-table-refresh-btn {
    pointer-events: auto;
    margin: 0 !important;
}
.app-data-table-refresh-overlay .app-data-table-refresh-btn svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.app-data-table-shell-has-refresh .app-data-table thead th:last-child {
    padding-right: 4.25rem !important;
}
.app-data-table-refresh-th,
.app-data-table-refresh-cell,
.app-data-table-refresh-inline,
.app-data-table-refresh-inline-th {
    display: none !important;
}

/* v-next AppDataTable refresh in fixed toolbar */
.app-data-table-toolbar-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.app-data-table-toolbar-refresh .app-data-table-refresh-btn {
    margin: 0 !important;
}
.app-data-table-refresh-overlay,
.app-data-table-refresh-th,
.app-data-table-refresh-cell,
.app-data-table-refresh-inline,
.app-data-table-refresh-inline-th {
    display: none !important;
}
.app-data-table-shell-has-refresh .app-data-table thead th:last-child {
    padding-right: 1.25rem !important;
}

.usage-card {
    border: 1px solid rgba(51, 65, 85, .75);
    background: rgba(15, 23, 42, .46);
    border-radius: 16px;
    padding: 16px;
}

.usage-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: rgb(203 213 225);
}

.usage-card-top strong {
    color: rgb(241 245 249);
    font-weight: 600;
    white-space: nowrap;
}

.usage-bar {
    height: 7px;
    border-radius: 999px;
    margin-top: 12px;
    background: rgba(30, 41, 59, .95);
    overflow: hidden;
}

.usage-bar span {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(16,185,129,.9), rgba(59,130,246,.9));
}

.modal-backdrop.modal-backdrop-center {
    align-items: center;
}

/* v-next public landing, footer, privacy settings and user menu */
.app-logo-image-button {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    background: rgba(30, 41, 59, .65);
    border: 1px solid rgba(51, 65, 85, .8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.app-logo-image-button img {
    width: 1.6rem;
    height: 1.6rem;
    object-fit: contain;
}
.user-menu-button {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(51, 65, 85, .8);
    background: rgba(15, 23, 42, .72);
    color: rgb(203 213 225);
    border-radius: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.user-menu-button:hover {
    color: white;
    background: rgba(30, 41, 59, .9);
}
.user-menu-button svg,
.user-menu-panel svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.user-menu-panel {
    min-width: 230px;
}
.user-menu-panel button,
.user-menu-panel a {
    display: flex !important;
    align-items: center;
    gap: .65rem;
}
.user-menu-panel button:disabled {
    cursor: default;
    opacity: .8;
}
.user-menu-panel .user-menu-identity {
    color: rgb(241 245 249);
    font-weight: 600;
    opacity: 1;
}
.row-actions-separator {
    height: 1px;
    background: rgba(51, 65, 85, .8);
    margin: .35rem 0;
}

.public-body {
    min-height: 100vh;
}
.public-header {
    height: 74px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(30, 41, 59, .42);
}
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: white;
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 1.1rem;
}
.public-brand img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
}
.public-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgb(148 163 184);
    font-size: .95rem;
}
.public-nav a:hover,
.public-link:hover {
    color: white;
}
.public-header-actions {
    display: flex;
    align-items: center;
    gap: .9rem;
}
.public-link {
    color: rgb(203 213 225);
}
.public-cta,
.public-secondary,
.public-newsletter-form button,
.public-newsletter-inline button,
.public-form-card button {
    border-radius: .65rem;
    background: rgb(5 150 105);
    color: white;
    padding: .65rem 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.public-cta:hover,
.public-newsletter-form button:hover,
.public-newsletter-inline button:hover,
.public-form-card button:hover {
    background: rgb(4 120 87);
}
.public-secondary {
    background: rgba(30, 41, 59, .85);
    border: 1px solid rgba(71, 85, 105, .7);
}
.public-cta-large,
.public-secondary {
    padding: .85rem 1.15rem;
}
.public-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6.5rem 2rem 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 4rem;
    align-items: center;
}
.public-kicker,
.public-section-heading span,
.public-crowdfunding span,
.public-page-header span {
    display: inline-flex;
    color: rgb(52 211 153);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.public-hero h1 {
    margin-top: 1rem;
    font-size: clamp(3rem, 6vw, 5.75rem);
    line-height: .96;
    letter-spacing: -.065em;
    font-weight: 800;
    max-width: 900px;
}
.public-hero p {
    margin-top: 1.35rem;
    color: rgb(148 163 184);
    max-width: 680px;
    font-size: 1.16rem;
    line-height: 1.75;
}
.public-hero-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
}
.public-hero-visual {
    position: relative;
    border: 1px solid rgba(51, 65, 85, .6);
    background: radial-gradient(circle at top, rgba(37, 99, 235, .25), rgba(15, 23, 42, .25) 42%, rgba(2, 6, 23, .6));
    border-radius: 2rem;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.public-hero-visual img {
    width: min(68%, 370px);
    filter: drop-shadow(0 32px 56px rgba(37, 99, 235, .35));
}
.public-hero-panel {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}
.public-hero-panel span {
    border: 1px solid rgba(51, 65, 85, .7);
    background: rgba(15, 23, 42, .72);
    color: rgb(203 213 225);
    border-radius: .8rem;
    padding: .75rem;
    text-align: center;
    font-size: .82rem;
}
.public-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
}
.public-section-heading h2,
.public-crowdfunding h2,
.public-page-header h1 {
    margin-top: .75rem;
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 800;
}
.public-feature-grid,
.public-pricing-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.public-feature-grid article,
.public-plan-card,
.public-crowdfunding,
.public-form-card,
.public-html-content {
    border: 1px solid rgba(51, 65, 85, .62);
    background: rgba(15, 23, 42, .42);
    border-radius: 1.25rem;
}
.public-feature-grid article,
.public-plan-card {
    padding: 1.35rem;
}
.public-feature-grid h3,
.public-plan-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}
.public-feature-grid p,
.public-plan-card p,
.public-crowdfunding p,
.public-page-header p {
    margin-top: .6rem;
    color: rgb(148 163 184);
    line-height: 1.7;
}
.public-crowdfunding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
}
.public-crowdfunding > div {
    max-width: 760px;
}
.public-newsletter-inline,
.public-newsletter-form {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.public-newsletter-inline input,
.public-newsletter-form input,
.public-form-card input,
.public-form-card textarea {
    border: 1px solid rgba(51, 65, 85, .85);
    background: rgba(10, 12, 16, .86);
    color: white;
    border-radius: .65rem;
    padding: .72rem .85rem;
    outline: none;
}
.public-newsletter-inline input {
    min-width: 260px;
}
.public-plan-card.highlighted {
    border-color: rgba(16, 185, 129, .65);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, .18), 0 24px 80px rgba(5, 150, 105, .08);
}
.public-plan-card strong {
    display: block;
    margin-top: 1rem;
    font-size: 1.7rem;
}
.public-plan-card ul {
    margin-top: 1rem;
    color: rgb(203 213 225);
    display: grid;
    gap: .55rem;
}
.public-plan-card li::before {
    content: '✓';
    margin-right: .5rem;
    color: rgb(52 211 153);
}
.public-plan-card a {
    margin-top: 1.25rem;
    display: inline-flex;
    color: white;
    font-weight: 700;
}
.public-footer {
    max-width: 1280px;
    margin: 4rem auto 0;
    padding: 4rem 2rem 1.25rem;
    border-top: 1px solid rgba(51, 65, 85, .5);
}
.public-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.public-footer h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}
.public-footer a,
.public-footer button {
    display: block;
    color: rgb(148 163 184);
    margin: .7rem 0;
    text-align: left;
}
.public-footer a:hover,
.public-footer button:hover {
    color: white;
}
.public-footer-brand p {
    margin: 1.4rem 0 .8rem;
    color: rgb(148 163 184);
}
.public-brand-footer img {
    width: 2.6rem;
    height: 2.6rem;
}
.public-footer-bottom {
    margin-top: 4.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(51, 65, 85, .45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgb(148 163 184);
    font-size: .85rem;
}
.public-theme-dot {
    color: rgb(148 163 184);
    font-size: 1.25rem;
}
.public-toast,
.public-form-message {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: .85rem 1rem;
    border-radius: .85rem;
    border: 1px solid rgba(51, 65, 85, .7);
    background: rgba(15, 23, 42, .72);
    color: rgb(203 213 225);
}
.public-toast.error,
.public-form-message.error {
    border-color: rgba(248, 113, 113, .6);
    color: rgb(254 202 202);
}
.public-page-shell {
    max-width: 940px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.public-page-header {
    margin-bottom: 2rem;
}
.public-form-card,
.public-html-content {
    padding: 1.5rem;
}
.public-form-card {
    display: grid;
    gap: 1rem;
}
.public-form-card label {
    display: grid;
    gap: .4rem;
    color: rgb(203 213 225);
}
.public-form-card textarea {
    min-height: 180px;
    resize: vertical;
}
.public-form-card button {
    justify-self: start;
}
.public-html-content {
    color: rgb(203 213 225);
    line-height: 1.8;
}
.public-html-content h1,
.public-html-content h2,
.public-html-content h3 {
    color: white;
    font-weight: 800;
    margin: 1.25rem 0 .65rem;
}
.public-html-content p,
.public-html-content ul,
.public-html-content ol {
    margin: .85rem 0;
}
.public-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 1rem;
}
.public-modal.hidden { display: none; }
.public-modal-card {
    width: min(560px, 100%);
    border: 1px solid rgba(51, 65, 85, .85);
    background: rgb(15 17 21);
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
.public-modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(51, 65, 85, .65);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.public-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
}
.public-modal-header p {
    margin-top: .25rem;
    color: rgb(148 163 184);
    font-size: .9rem;
}
.public-modal-header button {
    color: rgb(148 163 184);
    font-size: 1.5rem;
}
.public-privacy-options {
    padding: 1.25rem;
    display: grid;
    gap: .85rem;
}
.public-privacy-option {
    border: 1px solid rgba(51, 65, 85, .7);
    border-radius: .85rem;
    padding: 1rem;
    display: flex;
    gap: .85rem;
    align-items: flex-start;
}
.public-privacy-option small {
    display: block;
    color: rgb(148 163 184);
    margin-top: .25rem;
}
.public-modal-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(51, 65, 85, .65);
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}
@media (max-width: 900px) {
    .public-nav { display: none; }
    .public-hero { grid-template-columns: 1fr; padding-top: 4rem; }
    .public-feature-grid, .public-pricing-grid, .public-footer-grid { grid-template-columns: 1fr; }
    .public-crowdfunding { display: grid; }
    .public-newsletter-inline, .public-newsletter-form { align-items: stretch; flex-direction: column; }
    .public-newsletter-inline input { min-width: 0; width: 100%; }
}

/* Public site refinements */
.auth-logo-image {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}
.public-header,
.public-hero,
.public-section,
.public-footer,
.public-toast,
.public-form-message {
    max-width: 1500px;
}
.public-header,
.public-hero,
.public-section,
.public-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.public-hero h1 {
    letter-spacing: -.035em;
    line-height: 1.05;
    font-size: clamp(2.85rem, 5.1vw, 5.15rem);
    word-spacing: .035em;
}
.public-hero p {
    max-width: 760px;
}
.public-newsletter-form button,
.public-newsletter-inline button,
.public-form-card button {
    background: rgb(37 99 235);
    color: rgb(255 255 255);
    border: 1px solid rgba(96, 165, 250, .55);
}
.public-newsletter-form button:hover,
.public-newsletter-inline button:hover,
.public-form-card button:hover {
    background: rgb(29 78 216);
}
.public-footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .45fr);
}
.public-footer-links {
    justify-self: end;
    min-width: 220px;
}
.public-page-shell-wide {
    max-width: 1040px;
}
.public-hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.public-success-card {
    border: 1px solid rgba(16, 185, 129, .55);
    background: linear-gradient(135deg, rgba(6, 78, 59, .42), rgba(15, 23, 42, .74));
    border-radius: 1.35rem;
    padding: 2rem;
    box-shadow: 0 24px 80px rgba(5, 150, 105, .08);
}
.public-success-card span {
    display: inline-flex;
    color: rgb(52 211 153);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.public-success-card h1 {
    margin-top: .85rem;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 800;
}
.public-success-card p {
    color: rgb(203 213 225);
    margin-top: .85rem;
    line-height: 1.7;
}
.public-success-card a {
    margin-top: 1.35rem;
    display: inline-flex;
    color: white;
    font-weight: 700;
}
.user-menu-panel .user-menu-identity,
.user-menu-panel .user-menu-identity:hover,
.user-menu-panel .user-menu-identity:disabled:hover {
    background: transparent !important;
    color: rgb(241 245 249) !important;
    cursor: default !important;
    font-weight: 800;
    opacity: 1;
}
@media (max-width: 900px) {
    .public-footer-grid { grid-template-columns: 1fr; }
    .public-footer-links { justify-self: stretch; }
}

/* Public pages and pricing refinements */
.public-hero-subline {
    margin-top: .75rem !important;
    color: rgb(203 213 225) !important;
}
.public-feature-links > a {
    display: block;
    color: inherit;
    text-decoration: none;
}
.public-feature-links article {
    min-height: 100%;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.public-feature-links a:hover article {
    border-color: rgba(96, 165, 250, .72);
    background: rgba(15, 23, 42, .64);
    transform: translateY(-2px);
}
.public-feature-links article > span {
    display: inline-flex;
    margin-top: 1rem;
    color: rgb(96 165 250);
    font-size: .86rem;
    font-weight: 700;
}
.public-plan-limits {
    display: grid !important;
    gap: .55rem !important;
}
.public-plan-limits li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, .42);
    padding-bottom: .45rem;
}
.public-plan-limits li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.public-plan-limits li::before {
    content: none !important;
}
.public-plan-limits span {
    color: rgb(148 163 184);
}
.public-plan-limits b {
    color: rgb(241 245 249);
    font-weight: 700;
    text-align: right;
}
.legal-content ul {
    list-style: disc;
    padding-left: 1.4rem;
}
.legal-content li {
    margin: .45rem 0;
}
.public-html-content .legal-content > p:first-child {
    color: rgb(226 232 240);
    font-size: 1.04rem;
}
.public-page-list-summary {
    color: rgb(148 163 184);
    max-width: 56rem;
}

/* Public layout final refinements */
.public-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(9, 11, 15, .86);
    backdrop-filter: blur(18px);
    max-width: none;
    padding-left: clamp(.75rem, 1.6vw, 1.5rem);
    padding-right: clamp(.75rem, 1.6vw, 1.5rem);
}
.public-hero,
.public-section,
.public-footer,
.public-toast,
.public-form-message {
    max-width: 1560px;
    padding-left: clamp(.75rem, 1.6vw, 1.5rem);
    padding-right: clamp(.75rem, 1.6vw, 1.5rem);
}
.public-page-shell {
    max-width: 1320px;
    padding-left: clamp(.75rem, 1.6vw, 1.5rem);
    padding-right: clamp(.75rem, 1.6vw, 1.5rem);
}
.public-html-content {
    padding: clamp(1.25rem, 2vw, 2.25rem);
}
.public-burger {
    display: none;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid rgba(51, 65, 85, .7);
    border-radius: .75rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .3rem;
    color: rgb(226 232 240);
    background: rgba(15, 23, 42, .72);
}
.public-burger span {
    display: block;
    width: 1.05rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.public-mobile-menu {
    position: sticky;
    top: 74px;
    z-index: 55;
    margin: 0;
    border-bottom: 1px solid rgba(51, 65, 85, .5);
    background: rgba(9, 11, 15, .96);
    backdrop-filter: blur(18px);
    padding: .65rem .85rem .85rem;
}
.public-mobile-menu.hidden { display: none; }
.public-mobile-menu a {
    display: block;
    padding: .8rem .75rem;
    border-radius: .7rem;
    color: rgb(203 213 225);
}
.public-mobile-menu a:hover {
    background: rgba(30, 41, 59, .82);
    color: white;
}
.public-pricing-heading {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.public-pricing-heading p {
    margin-top: .75rem;
    color: rgb(203 213 225);
    line-height: 1.7;
    font-size: 1.05rem;
}
.public-pricing-grid-modern {
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(51, 65, 85, .72);
    border-radius: 1rem;
    overflow: visible;
    background: rgba(11, 13, 18, .72);
}
.public-plan-modern {
    position: relative;
    border: 0;
    border-right: 1px solid rgba(51, 65, 85, .72);
    border-radius: 0;
    background: rgba(18, 20, 25, .76);
    padding: clamp(1.35rem, 2.1vw, 2.2rem);
    min-height: 100%;
}
.public-plan-modern:last-child {
    border-right: 0;
}
.public-plan-modern.highlighted {
    border: 1px solid rgba(100, 116, 139, .9);
    border-radius: 1rem;
    transform: translateY(-2.1rem);
    z-index: 2;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .06);
}
.public-plan-topline {
    min-height: 2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.public-plan-topline h3 {
    font-size: 1.45rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.public-plan-topline em {
    color: rgb(15 23 42);
    background: rgb(203 213 225);
    border-radius: .45rem;
    padding: .15rem .55rem;
    font-style: normal;
    font-size: .78rem;
    font-weight: 800;
}
.public-plan-modern > p {
    min-height: 4.2rem;
    max-width: 28rem;
}
.public-plan-button {
    margin-top: 1.35rem !important;
    width: 100%;
    min-height: 2.85rem;
    border-radius: .55rem;
    color: white !important;
    background: rgb(5 150 105);
    border: 1px solid rgba(16, 185, 129, .55);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.public-plan-button:hover {
    background: rgb(4 120 87);
}
.public-plan-button.secondary {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(148, 163, 184, .28);
}
.public-price-row {
    margin-top: 1.8rem;
    display: flex;
    align-items: baseline;
    gap: .4rem;
    flex-wrap: wrap;
}
.public-price-row small {
    flex-basis: 100%;
    color: rgb(148 163 184);
    font-size: .84rem;
}
.public-price-row strong {
    display: inline-block;
    margin: 0;
    font-size: clamp(2.55rem, 4vw, 3.45rem);
    line-height: 1;
    letter-spacing: -.04em;
}
.public-price-row span {
    color: rgb(148 163 184);
}
.public-plan-modern .public-plan-limits {
    margin-top: 1.65rem;
}
@media (max-width: 900px) {
    .public-header { height: 66px; }
    .public-header-actions .public-link,
    .public-header-actions .public-cta { display: none; }
    .public-burger { display: inline-flex; }
    .public-mobile-menu { top: 66px; }
    .public-pricing-grid-modern {
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 1rem;
        overflow: hidden;
    }
    .public-plan-modern,
    .public-plan-modern:last-child {
        border-right: 0;
        border-bottom: 1px solid rgba(51, 65, 85, .72);
    }
    .public-plan-modern.highlighted {
        transform: none;
        border-radius: 0;
    }
    .public-plan-modern:last-child { border-bottom: 0; }
}

/* Public layout final fixes */
.public-body {
    padding-top: 74px;
}
.public-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 1000 !important;
}
.public-mobile-menu {
    position: fixed !important;
    top: 74px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
}
.public-hero,
.public-section,
.public-footer,
.public-toast,
.public-form-message,
.public-page-shell {
    max-width: 1560px !important;
    padding-left: clamp(.5rem, 1vw, 1rem) !important;
    padding-right: clamp(.5rem, 1vw, 1rem) !important;
}
.public-page-shell {
    width: 100%;
    padding-top: 4.5rem !important;
}
.public-html-content {
    width: 100%;
}
.public-hero h1 {
    font-weight: 500 !important;
    letter-spacing: -.025em !important;
}
.public-cta,
.public-newsletter-form button,
.public-newsletter-inline button,
.public-form-card button,
.public-plan-button {
    background: rgb(37 99 235) !important;
    border: 1px solid rgba(96, 165, 250, .52) !important;
    color: rgb(255 255 255) !important;
}
.public-cta:hover,
.public-newsletter-form button:hover,
.public-newsletter-inline button:hover,
.public-form-card button:hover,
.public-plan-button:hover {
    background: rgb(29 78 216) !important;
}
.public-plan-button.secondary {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(148, 163, 184, .28) !important;
}
.public-pricing-heading h2 {
    letter-spacing: -.035em;
}
.public-pricing-heading p {
    margin-top: 1rem !important;
}
.public-pricing-grid-modern {
    margin-top: 3.75rem !important;
}
.app-data-table th[data-column-key="__actions"] .app-data-table-sort,
.app-data-table th[data-column-key="__actions"] .app-data-table-header-button span:empty {
    display: none !important;
}
@media (max-width: 900px) {
    .public-body {
        padding-top: 66px;
    }
    .public-mobile-menu {
        top: 66px !important;
    }
}

/* v-next landing and row action refinements */
.public-section-heading h2,
.public-crowdfunding h2,
.public-pricing-heading h2,
.public-page-header h1 {
    font-weight: 500 !important;
    letter-spacing: -.022em !important;
}
.public-section-heading h2,
.public-crowdfunding h2,
.public-pricing-heading h2 {
    font-size: clamp(2rem, 2.7vw, 3rem) !important;
}
.public-user-menu-wrap .user-menu-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.entity-edit-action,
.element-edit-action,
.application-delete-action {
    flex: 0 0 auto;
}
.entity-edit-action svg,
.element-edit-action svg,
.application-delete-action svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.element-modal-card {
    width: min(640px, calc(100vw - 2rem)) !important;
    max-height: none !important;
}
.element-modal-card form {
    max-height: none !important;
}
.element-modal-card .structure-modal-body {
    overflow: visible !important;
}

/* v-next layout/table/sql refinements */
.public-user-menu-wrap {
    position: relative;
    z-index: 1300;
}
.public-header .user-menu-panel,
.public-user-menu-wrap .row-actions-menu {
    z-index: 1400 !important;
}
.entity-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
}
.element-modal-backdrop {
    align-items: center !important;
}
.element-modal-card {
    align-self: center !important;
    max-height: calc(100vh - 4rem) !important;
}
.element-modal-card form {
    max-height: calc(100vh - 4rem) !important;
}
.element-modal-card .structure-modal-body {
    overflow: visible !important;
}

.menu-modal-backdrop {
    align-items: center !important;
}
.menu-modal-card {
    align-self: center;
    height: auto;
    max-height: calc(100vh - 4rem);
}
.menu-modal-card form {
    max-height: calc(100vh - 4rem);
}
.menu-modal-card .structure-modal-body {
    overflow: visible;
}
.sql-editor-resize-handle {
    flex: 0 0 18px;
    height: 18px;
    border-top: 1px solid rgb(30 41 59);
    border-bottom: 1px solid rgb(30 41 59);
    background: rgb(12 18 32);
    color: rgb(148 163 184);
    cursor: row-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.sql-editor-resize-handle:hover {
    color: rgb(226 232 240);
    background: rgb(15 23 42);
}
.sql-editor-resize-handle svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sql-editor-resizing,
.sql-editor-resizing * {
    cursor: row-resize !important;
    user-select: none !important;
}
.sql-editor-pane-monaco {
    min-height: 200px !important;
}
.sql-monaco-editor,
.sql-textarea-fallback {
    min-height: 200px !important;
}

/* v-next public user menu, action cells and SQL tab drag refinements */
.public-user-menu-panel {
    z-index: 5000 !important;
}
.public-user-menu-panel:not(.hidden) {
    display: block !important;
}
.application-entities-data-table td.entity-actions-cell,
.application-entities-data-table td[data-column-key="__actions"],
.process-elements-data-table td.element-actions-cell,
.process-elements-data-table td[data-column-key="__actions"] {
    overflow: visible !important;
    text-overflow: clip !important;
}
.application-entities-data-table .entity-row-actions,
.process-elements-data-table .element-edit-action {
    overflow: visible !important;
}
.process-elements-data-table td.element-actions-cell {
    padding-right: 1rem !important;
}
.element-modal-backdrop {
    align-items: center !important;
    justify-content: center !important;
}
.element-modal-card {
    width: min(640px, calc(100vw - 2rem)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 4rem) !important;
    align-self: center !important;
    overflow: hidden !important;
}
.element-modal-card form {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}
.element-modal-card .structure-modal-body {
    flex: 0 0 auto !important;
    overflow: visible !important;
}
.sql-editor-resize-handle {
    flex-basis: 9px !important;
    height: 9px !important;
}
.sql-editor-resize-handle svg {
    width: .75rem !important;
    height: .75rem !important;
}
.sql-tab[draggable="true"] {
    cursor: grab;
}
.sql-tab.sql-tab-dragging {
    opacity: .55;
}
.sql-tab.sql-tab-drag-over {
    outline: 1px solid rgb(59 130 246);
    outline-offset: -2px;
}

/* v-next public database page and hero visual */
.public-hero-architecture {
    min-height: clamp(320px, 34vw, 560px);
    padding: clamp(.8rem, 1.4vw, 1.4rem);
    background: radial-gradient(circle at 35% 15%, rgba(37, 99, 235, .28), rgba(15, 23, 42, .34) 42%, rgba(2, 6, 23, .72));
}
.public-hero-architecture img {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    object-fit: contain;
    border-radius: 1.35rem;
    filter: drop-shadow(0 24px 52px rgba(37, 99, 235, .22));
}
.public-feature-page {
    display: grid;
    gap: clamp(2rem, 3.2vw, 4rem);
}
.public-feature-hero-block,
.public-feature-split,
.public-feature-callout {
    border: 1px solid rgba(51, 65, 85, .62);
    background: rgba(15, 23, 42, .36);
    border-radius: 1.35rem;
}
.public-feature-hero-block {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
    gap: clamp(1.4rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1.35rem, 2.8vw, 3rem);
    overflow: hidden;
}
.public-feature-copy h2 {
    margin-top: .85rem;
    color: white;
    font-size: clamp(2rem, 3.2vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    font-weight: 520;
}
.public-feature-copy p,
.public-feature-card p,
.public-feature-callout p {
    margin-top: 1rem;
    color: rgb(148 163 184);
    line-height: 1.75;
}
.public-feature-eyebrow,
.public-feature-number {
    display: inline-flex;
    color: rgb(96 165 250);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.public-feature-pills {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.public-feature-pills span {
    border: 1px solid rgba(59, 130, 246, .34);
    background: rgba(37, 99, 235, .12);
    color: rgb(191 219 254);
    border-radius: 999px;
    padding: .45rem .7rem;
    font-size: .84rem;
}
.public-feature-media {
    border: 1px solid rgba(59, 130, 246, .34);
    background: rgba(2, 6, 23, .42);
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.public-feature-media img {
    display: block;
    width: 100%;
    height: auto;
}
.public-feature-split {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 0;
    overflow: hidden;
}
.public-feature-split.reverse {
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
}
.public-feature-split.reverse .public-feature-card {
    order: 2;
}
.public-feature-split.reverse .public-feature-mock {
    order: 1;
}
.public-feature-card,
.public-feature-mock {
    padding: clamp(1.25rem, 2.2vw, 2.1rem);
}
.public-feature-card {
    border-right: 1px solid rgba(51, 65, 85, .56);
}
.public-feature-split.reverse .public-feature-card {
    border-right: 0;
    border-left: 1px solid rgba(51, 65, 85, .56);
}
.public-feature-card h3,
.public-feature-callout h3 {
    margin-top: .85rem;
    color: white;
    font-size: clamp(1.45rem, 2.1vw, 2.2rem);
    line-height: 1.1;
    font-weight: 560;
    letter-spacing: -.02em;
}
.public-feature-card ul {
    margin-top: 1.1rem;
    color: rgb(203 213 225);
    display: grid;
    gap: .55rem;
}
.public-feature-card li {
    position: relative;
    padding-left: 1.25rem;
}
.public-feature-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .68rem;
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    background: rgb(59 130 246);
}
.public-feature-mock {
    min-height: 360px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .16), rgba(2, 6, 23, .2) 42%), rgba(9, 14, 25, .52);
}
.public-db-menu-mock {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 1.3rem;
    align-items: start;
}
.mock-sidebar-title {
    color: rgb(125 211 252);
    font-size: .88rem;
    margin-bottom: .85rem;
}
.mock-sidebar-list {
    border-left: 1px solid rgba(59, 130, 246, .22);
    display: grid;
    gap: .15rem;
    padding-left: 1.2rem;
    color: rgb(191 219 254);
}
.mock-sidebar-list span {
    padding: .48rem .65rem;
    border-radius: .55rem;
}
.mock-sidebar-list span:hover,
.mock-sidebar-list span:first-child {
    background: rgba(37, 99, 235, .12);
}
.mock-db-list {
    border: 1px solid rgba(51, 65, 85, .72);
    background: rgba(15, 23, 42, .68);
    border-radius: .9rem;
    overflow: hidden;
}
.mock-db-list > strong,
.mock-db-list > small {
    display: block;
    padding: 1rem 1.15rem 0;
}
.mock-db-list > strong {
    color: white;
    font-size: 1.35rem;
}
.mock-db-list > small {
    color: rgb(148 163 184);
    padding-top: .25rem;
    padding-bottom: .9rem;
}
.mock-db-list div {
    border-top: 1px solid rgba(51, 65, 85, .64);
    padding: .95rem 1.15rem;
}
.mock-db-list b,
.mock-db-list span {
    display: block;
}
.mock-db-list b { color: white; }
.mock-db-list span { color: rgb(96 165 250); font-size: .82rem; margin-top: .2rem; }
.public-schema-mock {
    display: grid;
    grid-template-rows: auto minmax(280px, 1fr);
    gap: 1rem;
}
.mock-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.mock-toolbar span {
    border: 1px solid rgba(51, 65, 85, .82);
    background: rgba(15, 23, 42, .82);
    border-radius: .65rem;
    padding: .55rem .8rem;
    color: rgb(203 213 225);
}
.mock-canvas {
    position: relative;
    min-height: 310px;
    border: 1px solid rgba(51, 65, 85, .72);
    border-radius: .95rem;
    overflow: hidden;
    background-color: rgba(2, 6, 23, .52);
    background-image: radial-gradient(rgba(96, 165, 250, .28) 1px, transparent 1px);
    background-size: 18px 18px;
}
.mock-table-card {
    position: absolute;
    width: 220px;
    border: 1px solid rgba(100, 116, 139, .86);
    background: rgba(14, 18, 26, .95);
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}
.mock-table-card.first { left: 5%; top: 25%; }
.mock-table-card.second { right: 18%; top: 10%; }
.mock-table-card b,
.mock-table-card small {
    display: block;
    padding-left: .9rem;
    padding-right: .9rem;
}
.mock-table-card b { color: white; padding-top: .85rem; }
.mock-table-card small { color: rgb(96 165 250); padding-bottom: .8rem; }
.mock-table-card span {
    border-top: 1px solid rgba(51, 65, 85, .64);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .52rem .9rem;
    color: rgb(226 232 240);
    font-size: .82rem;
}
.mock-table-card em {
    color: rgb(147 197 253);
    font-style: normal;
}
.mock-canvas svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.mock-canvas path {
    fill: none;
    stroke: rgba(148, 163, 184, .62);
    stroke-width: 2;
}
.mock-minimap {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 130px;
    height: 90px;
    border: 1px solid rgba(52, 211, 153, .85);
    background: rgba(15, 23, 42, .82);
    border-radius: .35rem;
}
.mock-minimap i {
    position: absolute;
    display: block;
    width: 34px;
    height: 28px;
    background: rgba(148, 163, 184, .32);
    border: 1px solid rgba(148, 163, 184, .5);
}
.mock-minimap i:nth-child(1) { left: 14px; top: 16px; }
.mock-minimap i:nth-child(2) { left: 58px; top: 11px; }
.mock-minimap i:nth-child(3) { right: 13px; bottom: 16px; }
.public-trigger-mock h4 {
    color: white;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.public-trigger-mock label {
    display: block;
    color: rgb(191 219 254);
    font-weight: 700;
    margin: 1rem 0 .45rem;
}
.mock-input {
    border: 1px solid rgba(59, 130, 246, .45);
    background: rgba(15, 23, 42, .86);
    border-radius: .65rem;
    padding: .8rem .9rem;
    color: white;
}
.mock-check {
    margin-top: .8rem;
    color: white;
    font-weight: 700;
    padding-left: 1.6rem;
    position: relative;
}
.mock-check::before {
    content: '';
    position: absolute;
    left: 0;
    top: .15rem;
    width: .85rem;
    height: .85rem;
    border: 1px solid rgba(203, 213, 225, .8);
    border-radius: .18rem;
    background: white;
}
.mock-check.checked::before {
    background: rgb(59 130 246);
    border-color: rgb(96 165 250);
}
.mock-check small {
    display: block;
    color: rgb(148 163 184);
    margin-top: .25rem;
    font-weight: 500;
}
.public-feature-callout {
    padding: clamp(1.5rem, 2.8vw, 3rem);
    text-align: center;
    max-width: 100%;
}
.public-feature-callout p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 980px) {
    .public-feature-hero-block,
    .public-feature-split,
    .public-feature-split.reverse {
        grid-template-columns: 1fr;
    }
    .public-feature-split.reverse .public-feature-card,
    .public-feature-split.reverse .public-feature-mock {
        order: initial;
    }
    .public-feature-card,
    .public-feature-split.reverse .public-feature-card {
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid rgba(51, 65, 85, .56);
    }
    .public-db-menu-mock {
        grid-template-columns: 1fr;
    }
    .mock-table-card.first { left: 4%; top: 26%; }
    .mock-table-card.second { right: 4%; top: 8%; }
}
@media (max-width: 640px) {
    .public-feature-pills { gap: .45rem; }
    .public-feature-pills span { font-size: .78rem; }
    .mock-table-card { width: 190px; }
    .mock-table-card.second { top: 46%; }
    .mock-minimap { display: none; }
}

/* v54 public page editor and database management content */
.public-page-save-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(34, 197, 94, .45);
    background: rgba(5, 150, 105, .18);
    color: rgb(220 252 231);
    border-radius: .65rem;
    padding: .55rem .85rem;
    font-weight: 700;
    line-height: 1;
}
.public-page-save-button:hover {
    background: rgba(5, 150, 105, .28);
    border-color: rgba(34, 197, 94, .68);
}
.public-page-save-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dbm-architecture-card {
    position: relative;
    min-height: 390px;
    border: 1px solid rgba(59, 130, 246, .36);
    background: radial-gradient(circle at 50% 45%, rgba(37, 99, 235, .18), rgba(2, 6, 23, .26) 48%, rgba(2, 6, 23, .68));
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.dbm-architecture-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(96, 165, 250, .13) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .7;
}
.dbm-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.dbm-lines path {
    fill: none;
    stroke: rgba(96, 165, 250, .68);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 6 8;
}
.dbm-node {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: .25rem;
    justify-items: center;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, .42);
    background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .68));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(148, 163, 184, .08);
    border-radius: 1rem;
    color: white;
}
.dbm-node strong {
    font-size: 1rem;
    letter-spacing: -.01em;
}
.dbm-node small {
    color: rgb(148 163 184);
    font-size: .78rem;
    max-width: 12rem;
}
.dbm-node-main {
    left: 50%;
    top: 50%;
    width: 210px;
    padding: 1.15rem;
    transform: translate(-50%, -50%);
    border-color: rgba(52, 211, 153, .64);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, .1), 0 20px 55px rgba(16, 185, 129, .16);
}
.dbm-node-entities { left: 7%; top: 12%; width: 160px; padding: .95rem; }
.dbm-node-functions { right: 7%; top: 12%; width: 160px; padding: .95rem; }
.dbm-node-api { left: 7%; bottom: 12%; width: 160px; padding: .95rem; }
.dbm-node-processes { right: 7%; bottom: 12%; width: 160px; padding: .95rem; }
.dbm-node-icon,
.dbm-mini-icon,
.dbm-server-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    border: 1px solid rgba(96, 165, 250, .5);
    background: rgba(37, 99, 235, .18);
    color: rgb(147 197 253);
    font-weight: 800;
}
.dbm-node-icon {
    width: 3.3rem;
    height: 3.3rem;
    font-size: 1.1rem;
    border-color: rgba(52, 211, 153, .55);
    color: rgb(134 239 172);
    background: rgba(16, 185, 129, .14);
}
.dbm-mini-icon {
    width: 2.2rem;
    height: 2.2rem;
    font-size: .82rem;
}
.dbm-server-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-content: center;
}
.dbm-server-card {
    min-height: 220px;
    border: 1px solid rgba(59, 130, 246, .35);
    background: rgba(15, 23, 42, .66);
    border-radius: 1rem;
    padding: 1.25rem;
    display: grid;
    align-content: start;
    gap: .8rem;
}
.dbm-server-card strong {
    color: white;
    font-size: 1.12rem;
}
.dbm-server-card small {
    color: rgb(148 163 184);
    line-height: 1.6;
}
.dbm-server-icon {
    width: 2.7rem;
    height: 2.7rem;
    font-size: .82rem;
}
@media (max-width: 980px) {
    .dbm-architecture-card { min-height: 500px; }
    .dbm-node-entities { left: 50%; top: 5%; transform: translateX(-50%); }
    .dbm-node-functions { right: 5%; top: 38%; }
    .dbm-node-api { left: 5%; bottom: 8%; }
    .dbm-node-processes { right: 5%; bottom: 8%; }
    .dbm-server-options { grid-template-columns: 1fr; }
    .dbm-server-card { min-height: auto; }
}
@media (max-width: 640px) {
    .public-page-save-button span { display: none; }
    .dbm-architecture-card { min-height: 560px; }
    .dbm-node { width: 145px; }
    .dbm-node-main { width: 180px; }
    .dbm-node-entities,
    .dbm-node-functions,
    .dbm-node-api,
    .dbm-node-processes { left: 50%; right: auto; transform: translateX(-50%); }
    .dbm-node-entities { top: 4%; }
    .dbm-node-functions { top: 25%; }
    .dbm-node-api { bottom: 25%; }
    .dbm-node-processes { bottom: 4%; }
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid rgba(51, 65, 85, .9);
    background: rgba(15, 23, 42, .78);
    color: rgb(203 213 225);
    border-radius: .65rem;
}
.icon-btn:hover {
    border-color: rgba(96, 165, 250, .58);
    background: rgba(30, 41, 59, .82);
    color: white;
}
.icon-btn svg,
.icon-btn i {
    width: 1.05rem;
    height: 1.05rem;
}

/* v-next public entities page */
.public-feature-back {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: rgb(147 197 253);
    border: 1px solid rgba(59, 130, 246, .28);
    background: rgba(15, 23, 42, .52);
    border-radius: .75rem;
    padding: .5rem .78rem;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.public-feature-back:hover {
    color: white;
    border-color: rgba(96, 165, 250, .55);
    background: rgba(30, 41, 59, .7);
}
.public-feature-back svg,
.icon-btn svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.entities-hero-block {
    grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
}
.entity-flow-card {
    position: relative;
    min-height: 390px;
    border: 1px solid rgba(59, 130, 246, .36);
    background: radial-gradient(circle at 50% 45%, rgba(37, 99, 235, .18), rgba(2, 6, 23, .28) 48%, rgba(2, 6, 23, .7));
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.entity-flow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(96, 165, 250, .14) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .65;
}
.entity-flow-card svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.entity-flow-card path {
    fill: none;
    stroke: rgba(96, 165, 250, .68);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
}
.entity-flow-node {
    position: absolute;
    z-index: 2;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: .3rem;
    width: 170px;
    padding: .95rem;
    border: 1px solid rgba(96, 165, 250, .42);
    background: linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(15, 23, 42, .68));
    border-radius: 1rem;
    color: white;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(148, 163, 184, .08);
}
.entity-flow-node span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(96, 165, 250, .48);
    background: rgba(37, 99, 235, .16);
    color: rgb(147 197 253);
    border-radius: .7rem;
    padding: 0 .45rem;
    font-weight: 800;
    font-size: .78rem;
}
.entity-flow-node strong {
    font-size: .98rem;
}
.entity-flow-node small {
    color: rgb(148 163 184);
    font-size: .76rem;
    line-height: 1.45;
}
.entity-flow-entity {
    left: 50%;
    top: 50%;
    width: 220px;
    padding: 1.15rem;
    transform: translate(-50%, -50%);
    border-color: rgba(52, 211, 153, .62);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, .1), 0 20px 55px rgba(16, 185, 129, .15);
}
.entity-flow-entity span {
    border-color: rgba(52, 211, 153, .55);
    color: rgb(134 239 172);
    background: rgba(16, 185, 129, .14);
}
.node-db { left: 7%; top: 12%; }
.node-api { right: 7%; top: 12%; }
.node-client { left: 7%; bottom: 12%; }
.node-logic { right: 7%; bottom: 12%; }
.entity-list-mock {
    display: grid;
    align-content: center;
    gap: 1.1rem;
}
.entity-mock-title strong,
.mock-editor-header strong {
    color: white;
    display: block;
    font-size: 1.45rem;
}
.entity-mock-title small,
.mock-editor-header small {
    color: rgb(148 163 184);
    display: block;
    margin-top: .35rem;
}
.entity-mock-table,
.entity-column-grid,
.entity-api-tree,
.entity-api-mock pre {
    border: 1px solid rgba(51, 65, 85, .72);
    background: rgba(15, 23, 42, .66);
    border-radius: .9rem;
    overflow: hidden;
}
.entity-mock-table > div,
.entity-column-grid > div {
    display: grid;
    grid-template-columns: 1.2fr .8fr .9fr;
    gap: 1rem;
    border-top: 1px solid rgba(51, 65, 85, .62);
    padding: .9rem 1rem;
    align-items: center;
}
.entity-mock-table > div:first-child,
.entity-column-grid > div:first-child {
    border-top: 0;
}
.entity-mock-head,
.entity-column-grid b {
    color: rgb(147 197 253);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.entity-mock-table b,
.entity-column-grid span {
    color: white;
}
.entity-mock-table span {
    color: rgb(203 213 225);
}
.entity-editor-mock {
    display: grid;
    gap: 1rem;
}
.mock-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}
.mock-form-grid label {
    color: rgb(203 213 225);
    font-weight: 700;
    font-size: .82rem;
}
.mock-form-grid span {
    display: block;
    margin-top: .35rem;
    border: 1px solid rgba(59, 130, 246, .42);
    background: rgba(15, 23, 42, .8);
    border-radius: .65rem;
    padding: .72rem .8rem;
    color: white;
    font-weight: 600;
}
.entity-tab-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    border-bottom: 1px solid rgba(51, 65, 85, .72);
    padding-top: .2rem;
}
.entity-tab-strip span {
    padding: .65rem .85rem;
    color: rgb(148 163 184);
    border-radius: .65rem .65rem 0 0;
    font-weight: 700;
    font-size: .84rem;
}
.entity-tab-strip span.active {
    color: white;
    background: rgba(30, 41, 59, .72);
    border: 1px solid rgba(51, 65, 85, .72);
    border-bottom: 0;
}
.entity-column-grid > div {
    grid-template-columns: 1fr 1fr .7fr;
}
.entity-relations-mock {
    position: relative;
    min-height: 330px;
    display: grid;
    align-items: center;
}
.entity-relations-mock svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.entity-relations-mock path {
    fill: none;
    stroke: rgba(96, 165, 250, .72);
    stroke-width: 2.2;
    stroke-linecap: round;
}
.relation-card {
    position: absolute;
    width: 180px;
    border: 1px solid rgba(96, 165, 250, .42);
    background: rgba(15, 23, 42, .82);
    border-radius: .9rem;
    padding: 1rem;
    color: white;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.relation-card.primary { left: 8%; top: 35%; }
.relation-card.secondary { right: 8%; top: 35%; border-color: rgba(52, 211, 153, .5); }
.relation-card span {
    display: block;
    margin-top: .45rem;
    color: rgb(147 197 253);
    font-size: .84rem;
}
.relation-note {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 2rem));
    color: rgb(203 213 225);
    border: 1px solid rgba(51, 65, 85, .6);
    background: rgba(2, 6, 23, .42);
    border-radius: .75rem;
    padding: .8rem 1rem;
    text-align: center;
    font-size: .9rem;
}
.entity-api-mock {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.entity-api-tree {
    padding: .85rem;
    display: grid;
    align-content: start;
    gap: .45rem;
}
.entity-api-tree strong {
    color: white;
    padding: .35rem .45rem .75rem;
}
.entity-api-tree span {
    color: rgb(203 213 225);
    border-left: 2px solid rgba(59, 130, 246, .22);
    padding: .62rem .7rem;
    border-radius: .55rem;
    font-size: .86rem;
}
.entity-api-tree span.active {
    color: white;
    background: rgba(37, 99, 235, .22);
    border-left-color: rgb(52 211 153);
}
.entity-api-mock pre {
    margin: 0;
    padding: 1.1rem;
    color: rgb(191 219 254);
    overflow: auto;
    font-size: .86rem;
    line-height: 1.65;
}
@media (max-width: 980px) {
    .entities-hero-block { grid-template-columns: 1fr; }
    .entity-flow-card { min-height: 520px; }
    .entity-flow-entity { top: 48%; }
    .node-db { left: 50%; top: 4%; transform: translateX(-50%); }
    .node-api { right: 5%; top: 34%; }
    .node-client { left: 5%; bottom: 8%; }
    .node-logic { right: 5%; bottom: 8%; }
    .entity-api-mock { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .entity-flow-card { min-height: 620px; }
    .entity-flow-node { width: 150px; }
    .entity-flow-entity { width: 190px; }
    .node-db,
    .node-api,
    .node-client,
    .node-logic { left: 50%; right: auto; transform: translateX(-50%); }
    .node-db { top: 4%; }
    .node-api { top: 25%; }
    .node-client { bottom: 25%; }
    .node-logic { bottom: 4%; }
    .entity-mock-table > div,
    .entity-column-grid > div,
    .mock-form-grid { grid-template-columns: 1fr; }
    .relation-card.primary { left: 50%; top: 10%; transform: translateX(-50%); }
    .relation-card.secondary { right: auto; left: 50%; top: 48%; transform: translateX(-50%); }
}

/* v-next public API endpoints page */
.api-hero-block {
    grid-template-columns: minmax(0, .88fr) minmax(330px, 1.12fr);
}
.api-flow-card {
    position: relative;
    min-height: 430px;
    border: 1px solid rgba(59, 130, 246, .36);
    background: radial-gradient(circle at 50% 44%, rgba(37, 99, 235, .18), rgba(2, 6, 23, .28) 48%, rgba(2, 6, 23, .72));
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.api-flow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(96, 165, 250, .14) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .65;
}
.api-flow-card svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.api-flow-card path {
    fill: none;
    stroke: rgba(96, 165, 250, .7);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
}
.api-flow-node {
    position: absolute;
    z-index: 2;
    width: 154px;
    display: grid;
    justify-items: center;
    gap: .28rem;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, .42);
    background: linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(15, 23, 42, .68));
    border-radius: 1rem;
    padding: .85rem;
    color: white;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(148, 163, 184, .08);
}
.api-flow-node span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.1rem;
    border: 1px solid rgba(96, 165, 250, .48);
    background: rgba(37, 99, 235, .16);
    color: rgb(147 197 253);
    border-radius: .68rem;
    padding: 0 .45rem;
    font-weight: 800;
    font-size: .72rem;
}
.api-flow-node strong {
    font-size: .95rem;
}
.api-flow-node small {
    color: rgb(148 163 184);
    font-size: .74rem;
    line-height: 1.38;
}
.api-gateway {
    left: 50%;
    top: 50%;
    width: 182px;
    padding: 1rem;
    transform: translate(-50%, -50%);
    border-color: rgba(52, 211, 153, .62);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, .1), 0 20px 55px rgba(16, 185, 129, .15);
}
.api-gateway span {
    border-color: rgba(52, 211, 153, .55);
    color: rgb(134 239 172);
    background: rgba(16, 185, 129, .14);
}
.api-client-web { left: 5%; top: 8%; }
.api-client-mobile { left: 5%; top: 39%; }
.api-client-desktop { left: 5%; bottom: 8%; }
.api-sec { right: 5%; top: 10%; }
.api-data { right: 5%; top: 41%; }
.api-logic { right: 5%; bottom: 8%; }
.api-tree-mock {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-content: center;
}
.api-tree-panel {
    border: 1px solid rgba(51, 65, 85, .72);
    background: rgba(15, 23, 42, .66);
    border-radius: .95rem;
    padding: 1rem;
    display: grid;
    gap: .45rem;
}
.api-tree-panel small {
    color: rgb(147 197 253);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
}
.api-tree-panel strong {
    color: white;
    padding: .3rem 0 .45rem;
}
.api-tree-panel span {
    display: block;
    color: rgb(203 213 225);
    border-left: 2px solid rgba(59, 130, 246, .22);
    border-radius: .55rem;
    padding: .58rem .72rem;
    font-size: .86rem;
}
.api-tree-panel span.active {
    color: white;
    background: rgba(37, 99, 235, .22);
    border-left-color: rgb(52 211 153);
}
.api-security-mock {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
}
.security-ring {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, .34);
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, .48);
    box-shadow: inset 0 0 32px rgba(59, 130, 246, .08);
}
.security-ring span {
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: 999px;
    background: rgba(15, 23, 42, .88);
    padding: .42rem .7rem;
    font-size: .8rem;
    font-weight: 800;
}
.security-ring.client { width: 330px; height: 330px; }
.security-ring.gateway { width: 260px; height: 260px; }
.security-ring.auth { width: 190px; height: 190px; }
.security-ring.acl { width: 120px; height: 120px; border-color: rgba(52, 211, 153, .45); }
.security-ring.service { width: 52px; height: 52px; border-color: rgba(52, 211, 153, .7); background: rgba(16, 185, 129, .16); }
.security-ring.service span { display: none; }
.api-payload-mock {
    display: grid;
    align-content: center;
    gap: .85rem;
}
.mock-code-title {
    color: rgb(147 197 253);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}
.api-payload-mock pre {
    margin: 0;
    border: 1px solid rgba(51, 65, 85, .72);
    background: rgba(15, 23, 42, .76);
    border-radius: .9rem;
    color: rgb(191 219 254);
    overflow: auto;
    padding: 1.1rem;
    line-height: 1.65;
    font-size: .9rem;
}
@media (max-width: 980px) {
    .api-hero-block { grid-template-columns: 1fr; }
    .api-flow-card { min-height: 620px; }
    .api-gateway { top: 47%; }
    .api-client-web,
    .api-client-mobile,
    .api-client-desktop,
    .api-sec,
    .api-data,
    .api-logic { width: 145px; }
    .api-client-web { left: 50%; top: 4%; transform: translateX(-50%); }
    .api-client-mobile { left: 5%; top: 29%; }
    .api-client-desktop { left: 5%; bottom: 8%; }
    .api-sec { right: 5%; top: 29%; }
    .api-data { right: 5%; top: auto; bottom: 8%; }
    .api-logic { right: 50%; bottom: 4%; transform: translateX(50%); }
    .api-tree-mock { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .api-flow-card { min-height: 720px; }
    .api-flow-node { width: 144px; }
    .api-gateway { width: 170px; }
    .api-client-web,
    .api-client-mobile,
    .api-client-desktop,
    .api-sec,
    .api-data,
    .api-logic { left: 50%; right: auto; transform: translateX(-50%); }
    .api-client-web { top: 3%; }
    .api-client-mobile { top: 17%; }
    .api-client-desktop { top: 31%; bottom: auto; }
    .api-gateway { top: 50%; }
    .api-sec { top: auto; bottom: 31%; }
    .api-data { bottom: 17%; }
    .api-logic { bottom: 3%; }
    .security-ring.client { width: 280px; height: 280px; }
    .security-ring.gateway { width: 220px; height: 220px; }
    .security-ring.auth { width: 160px; height: 160px; }
}

/* v-next public OAuth authentication page */
.oauth-auth-page .public-feature-hero-block {
    grid-template-columns: minmax(340px, 1.08fr) minmax(0, .92fr);
}
.oauth-auth-console {
    border: 1px solid rgba(59, 130, 246, .36);
    background: radial-gradient(circle at 32% 18%, rgba(37, 99, 235, .2), rgba(2, 6, 23, .32) 46%, rgba(2, 6, 23, .74));
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.oauth-console-header {
    display: grid;
    gap: .25rem;
    border-bottom: 1px solid rgba(51, 65, 85, .68);
    padding: 1.05rem 1.15rem;
}
.oauth-console-header span {
    color: rgb(147 197 253);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.oauth-console-header strong {
    color: white;
    font-size: 1.35rem;
}
.oauth-provider-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    border-bottom: 1px solid rgba(51, 65, 85, .58);
    padding: .95rem 1.15rem;
}
.oauth-provider-row strong,
.oauth-detail-title strong {
    color: white;
}
.oauth-provider-row small {
    display: block;
    margin-top: .2rem;
    color: rgb(148 163 184);
}
.oauth-provider-row em {
    border: 1px solid rgba(51, 65, 85, .78);
    color: rgb(203 213 225);
    background: rgba(15, 23, 42, .66);
    border-radius: .65rem;
    padding: .35rem .6rem;
    font-style: normal;
    font-size: .78rem;
    font-weight: 800;
}
.oauth-provider-row.enabled em {
    color: rgb(167 243 208);
    background: rgba(5, 150, 105, .18);
    border-color: rgba(16, 185, 129, .42);
}
.oauth-provider-icon {
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(96, 165, 250, .42);
    background: rgba(37, 99, 235, .14);
    color: rgb(147 197 253);
    border-radius: .65rem;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}
.oauth-provider-icon.email {
    color: rgb(216 180 254);
    border-color: rgba(168, 85, 247, .38);
    background: rgba(88, 28, 135, .22);
}
.oauth-provider-icon.google {
    color: rgb(96 165 250);
}
.oauth-provider-icon.apple {
    color: rgb(226 232 240);
}
.oauth-provider-detail {
    display: grid;
    gap: .6rem;
    padding: 1.1rem 1.15rem 1.25rem;
}
.oauth-detail-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .3rem;
}
.oauth-detail-title span {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: .55rem;
    display: inline-grid;
    place-items: center;
    color: rgb(96 165 250);
    border: 1px solid rgba(96, 165, 250, .42);
    background: rgba(37, 99, 235, .14);
    font-weight: 900;
}
.oauth-provider-detail label {
    color: rgb(203 213 225);
    font-size: .8rem;
    font-weight: 800;
}
.oauth-input {
    border: 1px solid rgba(59, 130, 246, .42);
    background: rgba(15, 23, 42, .76);
    border-radius: .65rem;
    color: rgb(191 219 254);
    padding: .72rem .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oauth-flow-section {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    border: 1px solid rgba(51, 65, 85, .62);
    background: rgba(15, 23, 42, .36);
    border-radius: 1.35rem;
    overflow: hidden;
}
.oauth-flow-copy {
    border-right: 1px solid rgba(51, 65, 85, .56);
}
.oauth-flow-diagram {
    position: relative;
    min-height: 390px;
    background: radial-gradient(circle at 50% 45%, rgba(37, 99, 235, .16), rgba(2, 6, 23, .22) 48%, rgba(2, 6, 23, .62));
    overflow: hidden;
}
.oauth-flow-diagram::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(96, 165, 250, .12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .66;
}
.oauth-flow-diagram svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.oauth-flow-diagram path {
    fill: none;
    stroke: rgba(96, 165, 250, .7);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
}
.oauth-flow-node {
    position: absolute;
    z-index: 2;
    width: 150px;
    display: grid;
    justify-items: center;
    gap: .25rem;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, .42);
    background: linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(15, 23, 42, .7));
    border-radius: 1rem;
    padding: .85rem;
    color: white;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(148, 163, 184, .08);
}
.oauth-flow-node span {
    min-width: 2.25rem;
    height: 2.1rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, .48);
    background: rgba(37, 99, 235, .16);
    color: rgb(147 197 253);
    border-radius: .68rem;
    padding: 0 .45rem;
    font-size: .72rem;
    font-weight: 900;
}
.oauth-flow-node strong { font-size: .95rem; }
.oauth-flow-node small {
    color: rgb(148 163 184);
    line-height: 1.38;
    font-size: .74rem;
}
.oauth-flow-node.client { left: 3.5%; top: 50%; transform: translateY(-50%); }
.oauth-flow-node.provider { left: 27%; top: 50%; transform: translateY(-50%); }
.oauth-flow-node.wbert {
    left: 50%;
    top: 50%;
    width: 170px;
    transform: translate(-50%, -50%);
    border-color: rgba(52, 211, 153, .62);
}
.oauth-flow-node.wbert span {
    color: rgb(134 239 172);
    background: rgba(16, 185, 129, .14);
    border-color: rgba(52, 211, 153, .55);
}
.oauth-flow-node.gateway { right: 3.5%; top: 50%; transform: translateY(-50%); }
.oauth-flow-node.org { right: 15%; top: 8%; }
.oauth-flow-node.session { right: 15%; bottom: 8%; }
.oauth-settings-mock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-content: center;
}
.oauth-settings-card {
    min-height: 220px;
    border: 1px solid rgba(59, 130, 246, .35);
    background: rgba(15, 23, 42, .66);
    border-radius: 1rem;
    padding: 1.2rem;
    display: grid;
    align-content: start;
    gap: .75rem;
}
.oauth-settings-card.active {
    border-color: rgba(52, 211, 153, .46);
    background: rgba(6, 78, 59, .18);
}
.oauth-settings-card span {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .65rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, .44);
    color: rgb(147 197 253);
    background: rgba(37, 99, 235, .16);
    font-weight: 900;
}
.oauth-settings-card strong { color: white; }
.oauth-settings-card small {
    color: rgb(148 163 184);
    line-height: 1.6;
}
.oauth-permission-stack {
    display: grid;
    align-content: center;
    gap: .75rem;
}
.permission-layer {
    border: 1px solid rgba(51, 65, 85, .68);
    background: rgba(15, 23, 42, .68);
    border-radius: .9rem;
    padding: .9rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.permission-layer strong { color: white; }
.permission-layer span { color: rgb(148 163 184); }
.permission-layer.user { border-color: rgba(96, 165, 250, .44); }
.permission-layer.org { border-color: rgba(129, 140, 248, .42); }
.permission-layer.role { border-color: rgba(168, 85, 247, .38); }
.permission-layer.endpoint { border-color: rgba(52, 211, 153, .42); }
.permission-layer.backend { border-color: rgba(14, 165, 233, .42); }
.oauth-provider-roadmap {
    border: 1px solid rgba(51, 65, 85, .62);
    background: linear-gradient(135deg, rgba(15, 23, 42, .52), rgba(2, 6, 23, .26));
    border-radius: 1.35rem;
    padding: clamp(1.4rem, 2.8vw, 2.5rem);
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
}
.oauth-provider-roadmap h3 {
    color: white;
    margin-top: .85rem;
    font-size: clamp(1.55rem, 2.2vw, 2.35rem);
    line-height: 1.1;
    font-weight: 560;
}
.oauth-provider-roadmap p {
    margin-top: 1rem;
    color: rgb(148 163 184);
    line-height: 1.7;
}
.oauth-provider-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}
.oauth-provider-cloud span {
    border: 1px solid rgba(59, 130, 246, .3);
    background: rgba(37, 99, 235, .12);
    color: rgb(191 219 254);
    border-radius: 999px;
    padding: .7rem .9rem;
    font-weight: 800;
}
@media (max-width: 980px) {
    .oauth-auth-page .public-feature-hero-block,
    .oauth-flow-section,
    .oauth-provider-roadmap {
        grid-template-columns: 1fr;
    }
    .oauth-flow-copy { border-right: 0; border-bottom: 1px solid rgba(51, 65, 85, .56); }
    .oauth-flow-diagram { min-height: 620px; }
    .oauth-flow-node.client,
    .oauth-flow-node.provider,
    .oauth-flow-node.wbert,
    .oauth-flow-node.gateway,
    .oauth-flow-node.org,
    .oauth-flow-node.session {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .oauth-flow-node.client { top: 4%; }
    .oauth-flow-node.provider { top: 20%; }
    .oauth-flow-node.wbert { top: 42%; transform: translate(-50%, -50%); }
    .oauth-flow-node.org { top: auto; bottom: 31%; }
    .oauth-flow-node.session { top: auto; bottom: 17%; }
    .oauth-flow-node.gateway { top: auto; bottom: 3%; }
    .oauth-settings-mock { grid-template-columns: 1fr; }
    .oauth-settings-card { min-height: auto; }
    .oauth-provider-cloud { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .oauth-provider-row { grid-template-columns: auto minmax(0, 1fr); }
    .oauth-provider-row em { grid-column: 2; width: max-content; }
    .oauth-flow-diagram { min-height: 700px; }
    .permission-layer { align-items: flex-start; flex-direction: column; }
}

/* v-next public Business Logic page */
.business-logic-page .bl-hero {
    display: grid;
    grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    border: 1px solid rgba(51, 65, 85, .62);
    background: radial-gradient(circle at 88% 18%, rgba(37, 99, 235, .18), rgba(15, 23, 42, .34) 42%, rgba(2, 6, 23, .64));
    border-radius: 1.35rem;
    padding: clamp(1.35rem, 2.8vw, 3rem);
    overflow: hidden;
}
.bl-hero-copy h2 {
    margin-top: .85rem;
    color: white;
    font-size: clamp(2rem, 3.2vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    font-weight: 520;
}
.bl-hero-copy p {
    margin-top: 1rem;
    color: rgb(148 163 184);
    line-height: 1.75;
}
.bl-flow-board {
    position: relative;
    min-height: 430px;
    border: 1px solid rgba(59, 130, 246, .34);
    background: rgba(2, 6, 23, .42);
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(148, 163, 184, .08);
}
.bl-flow-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(96, 165, 250, .12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .55;
}
.bl-flow-board svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.bl-flow-board path {
    fill: none;
    stroke: rgba(96, 165, 250, .68);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
}
.bl-node {
    position: absolute;
    z-index: 2;
    width: 138px;
    display: grid;
    gap: .25rem;
    justify-items: center;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, .42);
    background: linear-gradient(180deg, rgba(15, 23, 42, .95), rgba(15, 23, 42, .74));
    border-radius: 1rem;
    padding: .82rem .75rem;
    color: white;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(148, 163, 184, .08);
}
.bl-node span {
    min-width: 2.25rem;
    height: 2.1rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, .46);
    background: rgba(37, 99, 235, .16);
    color: rgb(147 197 253);
    border-radius: .68rem;
    padding: 0 .42rem;
    font-size: .7rem;
    font-weight: 900;
}
.bl-node strong { font-size: .94rem; }
.bl-node small {
    color: rgb(148 163 184);
    line-height: 1.38;
    font-size: .72rem;
}
.bl-client { left: 3%; top: 50%; transform: translateY(-50%); }
.bl-gateway { left: 21%; top: 50%; transform: translateY(-50%); }
.bl-security { left: 39%; top: 50%; transform: translateY(-50%); border-color: rgba(52, 211, 153, .58); }
.bl-security span { color: rgb(134 239 172); border-color: rgba(52, 211, 153, .55); background: rgba(16, 185, 129, .14); }
.bl-logic { left: 57%; top: 50%; transform: translateY(-50%); }
.bl-process { left: 39%; top: 8%; }
.bl-function { left: 39%; bottom: 8%; }
.bl-direct { right: 3%; top: 13%; }
.bl-queue { right: 3%; top: 50%; transform: translateY(-50%); }
.bl-db { right: 3%; bottom: 13%; }
.bl-dual-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 1rem;
}
.bl-code-panel {
    border: 1px solid rgba(51, 65, 85, .62);
    background: rgba(15, 23, 42, .36);
    border-radius: 1.2rem;
    overflow: hidden;
}
.bl-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(51, 65, 85, .62);
    padding: 1rem 1.15rem;
}
.bl-panel-header span {
    color: rgb(147 197 253);
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 800;
}
.bl-panel-header strong { color: white; }
.bl-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    padding: 1rem 1.15rem 0;
}
.bl-form-grid div {
    border: 1px solid rgba(51, 65, 85, .62);
    background: rgba(15, 23, 42, .68);
    border-radius: .75rem;
    padding: .78rem;
}
.bl-form-grid small,
.bl-code-panel p {
    color: rgb(148 163 184);
}
.bl-form-grid b,
.bl-code-panel strong { color: white; }
.bl-enabled { color: rgb(52 211 153) !important; }
.bl-code-panel p {
    padding: 1rem 1.15rem 0;
    line-height: 1.7;
}
.bl-code-panel pre {
    margin: 1rem 1.15rem 1.15rem;
    border: 1px solid rgba(59, 130, 246, .26);
    background: rgba(2, 6, 23, .68);
    color: rgb(219 234 254);
    border-radius: .9rem;
    padding: 1rem;
    overflow: auto;
    font-size: .82rem;
    line-height: 1.62;
}
.bl-execution-section .public-feature-mock,
.bl-security-section .public-feature-mock {
    min-height: 320px;
}
.bl-queue-mock {
    display: grid;
    align-content: center;
    padding: 1.2rem;
}
.bl-table-head,
.bl-table-row {
    display: grid;
    grid-template-columns: .45fr 1.2fr .8fr .85fr;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
}
.bl-table-head {
    color: rgb(147 197 253);
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(51, 65, 85, .62);
}
.bl-table-row {
    border-bottom: 1px solid rgba(51, 65, 85, .5);
    color: rgb(203 213 225);
}
.bl-table-row strong { color: white; }
.bl-table-row em {
    width: max-content;
    border: 1px solid rgba(96, 165, 250, .42);
    border-radius: 999px;
    color: rgb(219 234 254);
    padding: .28rem .55rem;
    font-style: normal;
    font-size: .75rem;
}
.bl-table-row em.queued {
    color: rgb(253 224 71);
    border-color: rgba(253, 224, 71, .36);
    background: rgba(113, 63, 18, .18);
}
.bl-permission-mock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
}
.bl-permission-card {
    border: 1px solid rgba(51, 65, 85, .72);
    background: rgba(15, 23, 42, .68);
    border-radius: 1rem;
    padding: 1rem;
    display: grid;
    gap: .7rem;
}
.bl-permission-card strong { color: white; margin-bottom: .2rem; }
.bl-permission-card span {
    border: 1px solid rgba(59, 130, 246, .3);
    background: rgba(37, 99, 235, .1);
    border-radius: .7rem;
    color: rgb(219 234 254);
    padding: .72rem .8rem;
}
.bl-permission-card.selected span {
    border-color: rgba(52, 211, 153, .42);
    background: rgba(16, 185, 129, .12);
}
.bl-permission-actions {
    display: grid;
    gap: .55rem;
}
.bl-permission-actions button {
    border: 1px solid rgba(59, 130, 246, .34);
    background: rgba(30, 41, 59, .84);
    color: white;
    border-radius: .75rem;
    padding: .65rem .8rem;
    font-weight: 800;
}
.bl-layers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.bl-layers-grid article {
    border: 1px solid rgba(51, 65, 85, .62);
    background: rgba(15, 23, 42, .36);
    border-radius: 1.1rem;
    padding: 1.25rem;
}
.bl-layers-grid span {
    display: inline-grid;
    place-items: center;
    min-width: 2.3rem;
    height: 2.1rem;
    border-radius: .7rem;
    border: 1px solid rgba(96, 165, 250, .4);
    color: rgb(147 197 253);
    background: rgba(37, 99, 235, .12);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .05em;
}
.bl-layers-grid h3 {
    margin-top: 1rem;
    color: white;
    font-size: 1.18rem;
    font-weight: 650;
}
.bl-layers-grid p {
    margin-top: .55rem;
    color: rgb(148 163 184);
    line-height: 1.7;
}
@media (max-width: 980px) {
    .business-logic-page .bl-hero,
    .bl-dual-panels,
    .bl-layers-grid,
    .bl-permission-mock {
        grid-template-columns: 1fr;
    }
    .bl-flow-board { min-height: 680px; }
    .bl-node { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
    .bl-client { top: 4%; }
    .bl-gateway { top: 15%; }
    .bl-security { top: 26%; }
    .bl-logic { top: 38%; }
    .bl-process { top: 50%; }
    .bl-function { top: 61%; bottom: auto; }
    .bl-direct { top: 72%; }
    .bl-queue { top: 83%; }
    .bl-db { top: 94%; bottom: auto; }
    .bl-flow-board svg { display: none; }
    .bl-form-grid { grid-template-columns: 1fr; }
    .bl-permission-actions { grid-template-columns: repeat(2, max-content); justify-content: center; }
}

/* v-next modal focus and floating menu fixes */
.export-menu {
    z-index: 6000 !important;
}

.app-info-popover {
    z-index: 6100 !important;
}

.table-shell {
    width: 100%;
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.admin-table th {
    text-align: left;
    font-weight: 700;
    color: rgb(148 163 184);
    background: rgba(15, 23, 42, .75);
    border-bottom: 1px solid rgb(30 41 59);
    padding: .85rem 1rem;
    white-space: nowrap;
}

.admin-table td {
    border-bottom: 1px solid rgb(30 41 59 / .75);
    padding: .85rem 1rem;
    vertical-align: top;
    color: rgb(226 232 240);
}

.admin-table tr:hover td {
    background: rgba(30, 41, 59, .28);
}

.log-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .2rem .55rem;
    border: 1px solid rgb(51 65 85);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.log-pill-info {
    color: rgb(167 243 208);
    border-color: rgb(6 78 59);
    background: rgba(6, 78, 59, .28);
}

.log-pill-warning {
    color: rgb(253 230 138);
    border-color: rgb(113 63 18);
    background: rgba(113, 63, 18, .28);
}

.log-pill-error {
    color: rgb(254 202 202);
    border-color: rgb(127 29 29);
    background: rgba(127, 29, 29, .28);
}

.log-pill-audit {
    color: rgb(191 219 254);
    border-color: rgb(30 64 175);
    background: rgba(30, 64, 175, .24);
}

/* Plan feature toggles */
.feature-toggle-box {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    padding: .7rem .85rem;
    border: 1px solid rgb(51 65 85 / .8);
    border-radius: .75rem;
    background: rgba(15, 23, 42, .45);
    color: rgb(226 232 240);
    font-size: .875rem;
    cursor: pointer;
}

.feature-toggle-box input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(59 130 246);
}

.backup-title-with-info {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.row-icon-actions form {
    display: inline-flex;
}

/* v-next logs table responsive sizing */
.logs-table-shell {
    overflow-x: auto !important;
    overflow-y: auto;
}

.logs-data-table {
    width: max-content !important;
    min-width: 1080px;
}

.logs-data-table th,
.logs-data-table td {
    white-space: nowrap;
}

.logs-data-table td[data-column-key="Message"],
.logs-data-table td[data-column-key="Details"] {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .logs-data-table th[data-column-key="Details"],
    .logs-data-table td[data-column-key="Details"],
    .logs-data-table th[data-column-key="UserId"],
    .logs-data-table td[data-column-key="UserId"] {
        display: none;
    }

    .logs-data-table {
        min-width: 760px;
    }
}

@media (max-width: 700px) {
    .logs-data-table th[data-column-key="Id"],
    .logs-data-table td[data-column-key="Id"],
    .logs-data-table th[data-column-key="EntityId"],
    .logs-data-table td[data-column-key="EntityId"] {
        display: none;
    }

    .logs-data-table {
        min-width: 620px;
    }
}

/* v-next entity modal small screen scroll */
@media (max-width: 900px) {
    .entity-modal-card {
        height: auto !important;
        max-height: calc(100vh - 1rem) !important;
        overflow: auto !important;
    }

    .entity-modal-card form {
        display: block !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .entity-tabs-fill {
        display: block !important;
        min-height: auto !important;
    }

    .entity-tabs-fill .entity-edit-section:not(.hidden) {
        display: block !important;
    }

    .entity-tabs-fill .entity-grid-wrap-scroll {
        max-height: 48vh !important;
        overflow: auto !important;
    }
}

/* v-next backups info and actions menu */
.backup-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgb(51 65 85);
    border-radius: .55rem;
    background: rgb(15 23 42);
    color: rgb(203 213 225);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.backup-info-button:hover {
    color: white;
    border-color: rgb(148 163 184);
    background: rgb(30 41 59);
}

.backup-info-button svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.app-info-popover-copyable {
    width: 380px;
}

.app-info-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgb(51 65 85 / .65);
}

.backup-row-menu-button svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.backup-actions-menu {
    width: 190px;
    z-index: 6100 !important;
}

.backup-actions-menu form {
    display: block;
    margin: 0;
}

.backup-actions-menu a,
.backup-actions-menu button {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.backup-actions-menu svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    flex: 0 0 auto;
}

.backup-actions-menu button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.backup-actions-menu button:disabled:hover {
    background: transparent;
    color: rgb(203 213 225);
}

/* v-next backups tabs and table actions */
.backup-tabs {
    display: inline-flex;
    gap: .25rem;
    padding: .25rem;
    border: 1px solid rgb(51 65 85);
    border-radius: .85rem;
    background: rgb(15 23 42 / .65);
}

.backup-tab-button {
    min-width: 7rem;
    padding: .55rem .9rem;
    border-radius: .65rem;
    color: rgb(148 163 184);
    font-weight: 700;
    font-size: .9rem;
}

.backup-tab-button:hover,
.backup-tab-button.active {
    color: white;
    background: rgb(30 41 59);
}

.backups-data-table {
    width: 100% !important;
    min-width: 1230px;
    table-layout: auto;
}

.backups-data-table th,
.backups-data-table td {
    white-space: nowrap;
}

.backups-data-table td[data-column-key="FileName"] {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Backups and workers table sizing */
.row-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}


#backupsTable .app-data-table-card {
    width: 100%;
}

#backupsTable .app-data-table-shell,
#workersTable .app-data-table-shell {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

.backups-data-table {
    min-width: 1230px;
    width: 100% !important;
    table-layout: auto;
}

.backups-data-table th[data-column-key="__actions"],
.backups-data-table td[data-column-key="__actions"],
.workers-data-table th[data-column-key="__actions"],
.workers-data-table td[data-column-key="__actions"] {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    text-align: right !important;
}

.workers-data-table {
    min-width: 1580px;
    width: max-content !important;
}

.backup-actions-menu,
.worker-actions-menu {
    width: 190px;
    z-index: 6100 !important;
}

.backup-actions-menu form,
.worker-actions-menu form {
    display: block;
    margin: 0;
}

.worker-settings-modal-card {
    width: min(640px, 100%);
}

.worker-settings-modal-card form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}


/* v-next AppDataTable responsive width audit */
.app-data-table-horizontal-scroll .app-data-table {
    width: 100% !important;
    table-layout: auto;
}

.app-data-table-horizontal-scroll .app-data-table th,
.app-data-table-horizontal-scroll .app-data-table td {
    white-space: nowrap;
}

.processes-data-table { min-width: 1020px; }
.process-queue-data-table { min-width: 1515px; }
.process-elements-data-table { min-width: 880px; }
.application-entities-data-table { min-width: 1714px; }
.authentication-users-data-table { min-width: 1450px; }
.database-tables-data-table { min-width: 860px; }
.database-functions-data-table { min-width: 930px; }
.database-triggers-data-table { min-width: 1332px; }
.database-indexes-data-table { min-width: 856px; }
.logs-data-table { width: 100% !important; }
.backups-data-table { width: 100% !important; min-width: 1230px; }
.workers-data-table { width: 100% !important; min-width: 1580px; }
.organizations-data-table { min-width: 1310px; }
.platform-users-data-table { min-width: 1180px; }
.public-pages-data-table { min-width: 1162px; }
.entity-defaults-data-table { min-width: 1180px; }

.database-trigger-body,
.queue-error-cell,
.logs-data-table td[data-column-key="Message"],
.logs-data-table td[data-column-key="Details"] {
    display: inline-block;
    max-width: 34rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.entity-defaults-data-table th,
.entity-defaults-data-table td {
    min-width: 120px;
}

.entity-defaults-data-table th[data-column-key="FieldName"],
.entity-defaults-data-table td[data-column-key="FieldName"],
.entity-defaults-data-table th[data-column-key="EntityName"],
.entity-defaults-data-table td[data-column-key="EntityName"] {
    min-width: 180px;
}

.entity-defaults-data-table th[data-column-key="__actions"],
.entity-defaults-data-table td[data-column-key="__actions"] {
    width: 130px !important;
    min-width: 130px !important;
    text-align: right;
}

@media (max-width: 900px) {
    .logs-data-table th[data-column-key="Details"],
    .logs-data-table td[data-column-key="Details"],
    .logs-data-table th[data-column-key="UserId"],
    .logs-data-table td[data-column-key="UserId"] {
        display: none;
    }

    .logs-data-table {
        min-width: 760px;
    }
}

@media (max-width: 700px) {
    .logs-data-table th[data-column-key="Id"],
    .logs-data-table td[data-column-key="Id"],
    .logs-data-table th[data-column-key="EntityId"],
    .logs-data-table td[data-column-key="EntityId"] {
        display: none;
    }

    .logs-data-table {
        min-width: 620px;
    }
}

/* Landing page commercial refinements */
.public-brand {
    font-size: 1.24rem !important;
}
.public-brand img {
    width: 2.75rem !important;
    height: 2.75rem !important;
}
.public-brand-footer img {
    width: 2.85rem !important;
    height: 2.85rem !important;
}
.public-hero p,
.public-section-heading p,
.public-feature-grid p,
.public-plan-card p,
.public-crowdfunding p,
.public-page-header p,
.public-value-grid p,
.public-final-cta p {
    color: rgb(190 202 218) !important;
    line-height: 1.78 !important;
}
.public-feature-grid p,
.public-plan-card p,
.public-value-grid p,
.public-crowdfunding p,
.public-final-cta p {
    font-size: .98rem;
}
.public-hero-points {
    margin-top: 1.45rem;
    display: grid;
    gap: .7rem;
    color: rgb(226 232 240);
    font-size: 1.05rem;
    line-height: 1.55;
}
.public-hero-points li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}
.public-hero-points li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .12rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, .18);
    border: 1px solid rgba(96, 165, 250, .42);
    color: rgb(96 165 250);
    font-size: .78rem;
    font-weight: 800;
    flex: 0 0 auto;
}
.public-reason-section .public-section-heading,
.public-use-cases-section .public-section-heading {
    max-width: 920px;
}
.public-reason-section .public-section-heading p {
    margin-top: 1rem;
    max-width: 850px;
    font-size: 1.05rem;
}
.public-value-grid,
.public-use-case-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.public-value-grid article,
.public-use-case-grid article,
.public-final-cta {
    border: 1px solid rgba(51, 65, 85, .62);
    background: rgba(15, 23, 42, .42);
    border-radius: 1.25rem;
}
.public-value-grid article {
    padding: 1.35rem;
}
.public-value-grid h3 {
    color: white;
    font-size: 1.08rem;
    font-weight: 750;
}
.public-use-case-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.public-use-case-grid article {
    min-height: 6.2rem;
    padding: 1.1rem;
    display: flex;
    align-items: flex-end;
    color: rgb(226 232 240);
    font-weight: 700;
    line-height: 1.35;
}
.public-crowdfunding-compact {
    margin-top: 1rem;
    padding: 1.6rem 1.75rem !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, .62), rgba(30, 41, 59, .36));
}
.public-crowdfunding-compact h2 {
    font-size: clamp(1.55rem, 2.1vw, 2.25rem) !important;
}
.public-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    margin-top: 2.5rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, .22), rgba(15, 23, 42, .45) 42%, rgba(9, 11, 15, .7));
}
.public-final-cta > div:first-child {
    max-width: 760px;
}
.public-final-cta span {
    display: inline-flex;
    color: rgb(52 211 153);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.public-final-cta h2 {
    margin-top: .75rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.022em;
    font-weight: 500;
}
.public-final-cta p {
    margin-top: .8rem;
}
.public-final-cta-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
@media (max-width: 1100px) {
    .public-use-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .public-brand img {
        width: 2.45rem !important;
        height: 2.45rem !important;
    }
    .public-brand {
        font-size: 1.16rem !important;
    }
    .public-value-grid,
    .public-use-case-grid {
        grid-template-columns: 1fr;
    }
    .public-final-cta {
        display: grid;
    }
    .public-final-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Landing use cases refinement */
.public-use-cases-section {
    position: relative;
}
.public-use-cases-section .public-section-heading {
    max-width: 980px;
}
.public-use-cases-section .public-section-heading p {
    margin-top: 1rem;
    max-width: 760px;
    font-size: 1.06rem;
}
.public-use-case-grid {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    align-items: stretch;
}
.public-use-case-grid article {
    position: relative;
    min-height: 15rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .85rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 42%),
        rgba(15, 23, 42, .54);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.public-use-case-grid article::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(52, 211, 153, .85), rgba(59, 130, 246, .65), transparent);
    opacity: .72;
}
.public-use-case-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, .62);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .25), transparent 46%),
        rgba(15, 23, 42, .66);
}
.public-use-case-grid article span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: .7rem;
    background: rgba(37, 99, 235, .18);
    border: 1px solid rgba(96, 165, 250, .38);
    color: rgb(125 211 252);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .08em;
}
.public-use-case-grid article h3 {
    color: white;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
}
.public-use-case-grid article p {
    color: rgb(190 202 218);
    font-size: .96rem;
    line-height: 1.62;
    margin: 0;
}
@media (max-width: 1250px) {
    .public-use-case-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .public-use-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .public-use-case-grid {
        grid-template-columns: 1fr;
    }
    .public-use-case-grid article {
        min-height: auto;
    }
}
