:is(#screenDatabaseInfoButton,[data-screen-database-command]){width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;flex:0 0 38px;padding:6px!important;border:1px solid var(--border,#dce2e6);border-radius:11px;background:var(--surface,#fff);color:var(--ink,#1c315b);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
:is(#screenDatabaseInfoButton,[data-screen-database-command])[hidden]{display:none!important}
:is(#screenDatabaseInfoButton,[data-screen-database-command]) svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;display:block}
:is(#screenDatabaseInfoButton,[data-screen-database-command]) text{font:700 9px Arial,sans-serif;fill:currentColor;stroke:none}
:is(#screenDatabaseInfoButton,[data-screen-database-command]):focus-visible{outline:2px solid #6750df;outline-offset:2px}
.screen-database-dialog{width:min(1160px,96vw)!important;max-width:96vw!important;height:min(820px,92dvh);max-height:92dvh!important;margin:auto;padding:0!important;border:1px solid var(--border,#dce2e6);border-radius:18px;color:var(--ink,#1c315b);background:var(--surface,#fff);overflow:hidden!important}
.screen-database-dialog::backdrop{background:rgba(23,35,60,.48)}
.screen-database-card{height:100%;display:flex;flex-direction:column;min-height:0}
.screen-database-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;border-bottom:1px solid var(--border,#dce2e6);flex-shrink:0}
.screen-database-header h2{margin:3px 0;font-size:23px!important;line-height:1.25}
.screen-database-header .eyebrow{margin:0;color:#4c999a;font-size:11px;font-weight:800;letter-spacing:.12em}
.screen-database-subtitle{margin:5px 0 0;font-size:13px}
.screen-database-body{padding:16px 22px;overflow:auto;min-height:0;flex:1;font-size:13px}
.screen-database-facts{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0 0 12px}
.screen-database-facts dt{color:var(--muted,#687780);font-size:11px}.screen-database-facts dd{margin:3px 0 0;overflow-wrap:anywhere;font-weight:600}
.screen-database-note{font-size:12px;line-height:1.5;color:var(--muted,#687780);margin:8px 0 12px}
.screen-database-layout{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:18px}
.screen-database-tables label,.screen-database-detail>label{display:block;font-size:12px;font-weight:700;margin:0 0 6px}
.screen-database-tables select{width:100%;border:1px solid var(--border,#dce2e6);border-radius:9px;padding:5px;background:var(--surface,#fff);color:inherit;font-size:12px;overflow:auto}
.screen-database-tables option{padding:9px 5px}.screen-database-detail{min-width:0}.screen-database-detail h3{font-size:14px!important;line-height:1.4;margin:0;overflow-wrap:anywhere}
.screen-database-detail input{width:100%;height:34px;min-height:34px;border:1px solid var(--border,#dce2e6);border-radius:8px;padding:5px 9px;font-size:12px;background:var(--surface,#fff);color:inherit}
.screen-database-fields{max-height:260px;overflow:auto;margin:10px 0 16px;border:1px solid var(--border,#dce2e6);border-radius:9px}
.screen-database-fields table{width:100%;border-collapse:collapse;table-layout:auto;font-size:12px}
.screen-database-fields th{background:#342e7d!important;color:#fff!important;font-size:7pt!important;height:30px;padding:6px 9px!important;position:sticky;top:0;white-space:nowrap;text-transform:none!important}
.screen-database-fields td{padding:7px 9px;border-bottom:1px solid var(--border,#e6e9ed);font-size:12px;overflow-wrap:anywhere;max-width:280px}
.screen-database-relation summary{cursor:pointer;color:var(--ink,#1c315b);font-size:12px;line-height:1.5}
.screen-database-relation p{margin:7px 0 0;max-height:140px;overflow:auto;font:11px/1.5 Consolas,monospace;white-space:normal}
.screen-database-sql-head{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:8px}
.screen-database-sql{display:block;width:100%;resize:vertical;min-height:180px;max-height:450px;border:1px solid var(--border,#dce2e6);border-radius:9px;padding:12px;background:var(--surface-soft,#f5f7fa);color:var(--ink,#1c315b);font:12px/1.55 Consolas,monospace;white-space:pre;overflow:auto;box-sizing:border-box}
.screen-database-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;border-top:1px solid var(--border,#dce2e6);flex-shrink:0}
@media(max-width:700px){.screen-database-layout{grid-template-columns:minmax(0,1fr)}.screen-database-tables select{max-height:110px}.screen-database-header,.screen-database-body,.screen-database-footer{padding:12px}.screen-database-header h2{font-size:19px!important}}
