/* Database Schema Designer: editor chrome is scoped to this workspace. */
.sd-page {
  --sd-accent: #c59af7;
  --sd-line: #4c385f;
  --sd-muted: #b6a2c8;
  width: min(100% - 32px, 1640px);
  margin: 24px auto 40px;
  color: #f4edfc;
  font: 14px/1.5 system-ui, sans-serif;
}
.sd-page *, .sd-page *::before, .sd-page *::after { box-sizing: border-box; }
.sd-page [hidden] { display: none !important; }
.sd-page button, .sd-page input, .sd-page select, .sd-page textarea { font: inherit; }
.sd-page button, .sd-file {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #624879;
  border-radius: 8px;
  background: #30223f;
  color: #f4eafa;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
}
.sd-page button:hover:not(:disabled), .sd-file:hover { border-color: #b88be9; background: #473051; }
.sd-page button:disabled { cursor: default; opacity: .4; }
.sd-page .sd-primary { background: #8c55ca; border-color: #c598f4; color: white; font-weight: 700; }
.sd-page .sd-primary:hover:not(:disabled) { background: #a06bdb; }
.sd-page .sd-quiet { background: transparent; }
.sd-page .sd-danger { color: #f6b4bf; border-color: #7d4255; background: #3b2231; }
.sd-page :focus-visible { outline: 3px solid #b2cbff; outline-offset: 2px; }
.sd-page h1, .sd-page h2, .sd-page h3, .sd-page p { margin-top: 0; }
.sd-page input:not([type=checkbox]):not([type=color]):not([type=file]), .sd-page select, .sd-page textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #634a77;
  border-radius: 7px;
  color: #f6ecff;
  background: #171021;
  color-scheme: dark;
  font-size: 12px;
}
.sd-page textarea { resize: vertical; line-height: 1.6; }
.sd-page input[type=checkbox] { margin: 0; width: 15px; height: 15px; accent-color: #ac77e5; color-scheme: dark; flex: 0 0 auto; }
.sd-page input[type=color] { min-height: 36px; width: 100%; padding: 3px; background: #191222; border: 1px solid #634a77; border-radius: 7px; }
.sd-page label { display: flex; flex-direction: column; gap: 6px; color: #d6c4e4; font-size: 11px; font-weight: 550; min-width: 0; }
.sd-page label.sd-check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.sd-page .sd-file { position: relative; overflow: hidden; flex-direction: row; margin: 0; }
.sd-file input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sd-file:focus-within { outline: 3px solid #b2cbff; outline-offset: 2px; }
.sd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sd-hero { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 28px; align-items: center; padding: 28px 32px; margin-bottom: 20px; border: 1px solid #76518c; border-radius: 22px; background: radial-gradient(ellipse at right top,#673c7a55,transparent 65%),linear-gradient(130deg,#32213f,#1e182c); }
.sd-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .15em; color: #d1adef; }
.sd-hero h1 { margin: 12px 0; font-size: clamp(26px,2.7vw,38px); letter-spacing: -.035em; line-height: 1.15; }
.sd-hero p { max-width: 820px; color: #d7c9e4; font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.sd-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-hero-tags span { font-size: 11px; padding: 5px 9px; background: #25182f; border: 1px solid #654375; border-radius: 7px; color: #dac3ed; }
.sd-hero-art svg { display: block; width: 100%; }
.sd-hero-art span { display: block; color: #c4a7d9; font-size: 10px; text-align: center; letter-spacing: .08em; margin-top: 10px; }
.sd-workspace { display: grid; grid-template-rows: auto auto minmax(0,1fr) 31px; height: 810px; min-height: 600px; border: 1px solid #725085; border-radius: 17px; overflow: hidden; background: #181120; box-shadow: 0 20px 55px #0a061333; scroll-margin-top: 96px; }
.sd-projectbar { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 13px 16px; background: linear-gradient(100deg,#32213f,#23192e); border-bottom: 1px solid #594067; }
.sd-project-title { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 170px; max-width: 330px; }
.sd-db-icon { display: grid; place-items: center; background: #7c4caa; border: 1px solid #b688dc; border-radius: 10px; color: #edd8ff; font-size: 24px; width: 42px; height: 42px; flex: 0 0 auto; }
.sd-project-title label { width: 100%; gap: 2px; }
.sd-project-title small { font-size: 9px; letter-spacing: .11em; color: #c3a6d8; }
.sd-page .sd-project-title input { background: transparent; border: 1px solid transparent; padding: 3px 5px 3px 0; min-height: 27px; color: #faf1ff; font-size: 16px; font-weight: 650; }
.sd-page .sd-project-title input:hover, .sd-page .sd-project-title input:focus { border-color: #705281; padding-left: 5px; }
.sd-dirty { color: #e7c58f; letter-spacing: normal; }
.sd-project-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.sd-project-actions button { white-space: nowrap; }
.sd-viewbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #4d365c; background: #21182d; }
.sd-view-tabs { display: flex; gap: 4px; overflow: auto; min-width: 0; scrollbar-width: thin; }
.sd-view-tabs button { flex: 0 0 auto; border: 1px solid transparent; color: #bba5ce; background: transparent; font-size: 11px; }
.sd-view-tabs button[aria-selected=true] { background: #5a3876; border-color: #9162b5; color: #fff; }
.sd-view-tabs button span { font-size: 9px; border-radius: 4px; padding: 1px 5px; background: #15101d66; color: #cbb2dc; }
.sd-page label.sd-dialect-label { flex-direction: row; align-items: center; gap: 7px; white-space: nowrap; }
.sd-page .sd-dialect-label select { min-height: 32px; padding: 5px 8px; width: 125px; }
.sd-body { display: grid; grid-template-columns: 200px minmax(0,1fr) 300px; min-height: 0; position: relative; }
.sd-navigator, .sd-inspector { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #21172c; }
.sd-navigator { border-right: 1px solid #4b345a; }
.sd-inspector { border-left: 1px solid #4b345a; }
.sd-section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 14px; min-height: 52px; border-bottom: 1px solid #473153; }
.sd-section-head h2 { margin: 0; font-size: 12px; font-weight: 650; }
.sd-section-head h2 span { color: #9b82b0; font-size: 10px; margin-left: 5px; }
.sd-page .sd-icon-button { padding: 4px; min-width: 29px; min-height: 29px; background: transparent; font-size: 17px; border-color: #5d406e; }
.sd-search-label { padding: 12px; }
.sd-page .sd-search-label input { min-height: 33px; font-size: 11px; }
.sd-table-list { min-height: 0; flex: 1; overflow: auto; padding: 0 9px 10px; scrollbar-color: #79549c #1c1326; scrollbar-width: thin; }
.sd-page .sd-nav-table { display: flex; justify-content: flex-start; width: 100%; text-align: left; gap: 9px; padding: 10px 9px; min-height: 49px; margin-bottom: 6px; background: #241a30; border: 1px solid #493253; border-radius: 8px; }
.sd-nav-table[aria-current=true] { border-color: #bc86ed; box-shadow: inset 3px 0 #b57cec; background: #3e2850; }
.sd-nav-dot { width: 8px; height: 24px; border-radius: 4px; flex: 0 0 auto; }
.sd-nav-table strong { display: block; color: #f0e2fa; font-size: 11px; overflow-wrap: anywhere; }
.sd-nav-table small { display: block; color: #ac93bf; font-size: 10px; font-weight: 400; margin-top: 3px; }
.sd-nav-footer { padding: 13px; border-top: 1px solid #493253; display: grid; gap: 12px; background: #251a31; }
.sd-nav-footer p { font-size: 10px; color: #a992bb; line-height: 1.5; margin: 0; }
.sd-nav-footer button { font-size: 10px; background: transparent; min-height: 30px; }
.sd-center { position: relative; min-width: 0; min-height: 0; background: #17101f; }
.sd-panel { height: 100%; min-height: 0; min-width: 0; }
.sd-diagram-panel { display: grid; grid-template-rows: auto minmax(0,1fr); }
.sd-canvasbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; min-height: 48px; background: #251a31; border-bottom: 1px solid #473053; }
.sd-canvasbar>div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sd-canvasbar button { min-height: 31px; padding: 6px 8px; font-size: 10px; }
.sd-viewport { position: relative; overflow: hidden; min-height: 0; touch-action: none; outline: none; background-color: #16101e; background-image: radial-gradient(#7a568b40 1px,transparent 1px); background-size: 20px 20px; cursor: grab; }
.sd-viewport:active { cursor: grabbing; }
.sd-world { position: absolute; inset: 0 auto auto 0; width: 14000px; height: 14000px; transform-origin: 0 0; will-change: transform; }
.sd-edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.sd-edge { fill: none; stroke: #9a77bb; stroke-width: 2; pointer-events: stroke; cursor: pointer; }
.sd-edge:hover, .sd-edge[aria-selected=true] { stroke: #e4ba79; stroke-width: 3; }
.sd-edge-label { fill: #bd9bd5; font: 10px system-ui; pointer-events: none; paint-order: stroke; stroke: #17101f; stroke-width: 4px; stroke-linejoin: round; }
.sd-table-card { position: absolute; width: 270px; border: 1px solid #6b4d7d; border-radius: 10px; overflow: hidden; background: #261b32; box-shadow: 0 8px 24px #08050f55; cursor: default; user-select: none; }
.sd-table-card[data-selected=true] { border-color: #c99bfa; box-shadow: 0 0 0 2px #b379ec55,0 9px 24px #08050f55; }
.sd-table-head { height: 43px; display: flex; gap: 9px; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid #715181; cursor: grab; }
.sd-table-head strong { color: #fff6ff; font-size: 16px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-table-head small { font-size: 10px; font-weight: 650; padding: 2px 5px; border-radius: 5px; background: #120c1f66; color: #e4d1f5; }
.sd-column { height: 29px; display: flex; align-items: center; padding: 0 5px; border-top: 1px solid #55336033; }
.sd-column[data-selected=true] { background: #56336b; }
.sd-page .sd-column-main { display: flex; justify-content: flex-start; align-items: center; width: 100%; gap: 7px; min-height: 28px; padding: 3px 5px; border: 0; border-radius: 0; background: transparent; text-align: left; font-size: 13.5px; font-weight: 400; }
.sd-column-main .sd-col-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sd-column-main .sd-col-type { margin-left: auto; color: #c0a8d3; font-size: 11.5px; white-space: nowrap; }
.sd-key-badge { display: inline-flex; justify-content: center; align-items: center; min-width: 18px; font: 800 8px/1 system-ui; color: #f0c981; }
.sd-key-badge[data-key=fk] { color: #93c7ef; }
.sd-page .sd-port { display: block; width: 18px; min-width: 18px; height: 23px; min-height: 23px; padding: 0; border: 0; color: #b594d0; background: transparent; font-size: 15px; line-height: 1; cursor: crosshair; }
.sd-page .sd-port:hover { color: #f1c97c; background: #7d527d66; }
.sd-table-foot { height: 12px; background: #21152b; }
.sd-canvas-hint { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 180px); font-size: 9px; color: #aa8fbe; border: 1px solid #4b335d; border-radius: 7px; padding: 7px 9px; background: #20152bdd; pointer-events: none; }
.sd-zoom { position: absolute; right: 13px; bottom: 12px; display: flex; gap: 4px; align-items: center; padding: 4px; border: 1px solid #78518f; border-radius: 9px; background: #2c1e38ee; color: #ddc7eb; }
.sd-zoom button { min-height: 27px; min-width: 27px; padding: 3px 6px; font-size: 12px; border-color: transparent; background: transparent; }
.sd-zoom span { width: 43px; text-align: center; font-size: 10px; }
.sd-minimap { position: absolute; right: 13px; bottom: 55px; width: 126px; height: 82px; background: #20152bee; border: 1px solid #6f4d83; border-radius: 8px; overflow: hidden; cursor: crosshair; box-shadow: 0 5px 20px #0003; }
.sd-control.sd-check { display: grid; grid-template-columns: 15px minmax(0,1fr); }
.sd-control.sd-check p { grid-column: 2; }
.sd-minimap svg { width: 100%; height: 100%; display: block; }
.sd-canvas-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; pointer-events: none; }
.sd-canvas-empty>span { display: grid; place-items: center; width: 68px; height: 68px; font-size: 38px; color: #caa5e8; border: 1px solid #775087; border-radius: 18px; background: #3e2651; margin-bottom: 20px; }
.sd-canvas-empty h2 { font-size: 20px; margin-bottom: 8px; }
.sd-canvas-empty p { font-size: 12px; color: #bda4ce; max-width: 330px; }
.sd-canvas-empty button { pointer-events: auto; }
.sd-inspector-content { overflow: auto; min-height: 0; padding: 14px; scrollbar-color: #79549c #21172c; scrollbar-width: thin; }
.sd-inspector-content h3 { font-size: 13px; margin: 0 0 16px; overflow-wrap: anywhere; }
.sd-property-head { font-size: 10px; color: #ab8ac0; margin: 0 0 10px; }
.sd-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.sd-form-grid>.sd-wide { grid-column: 1 / -1; }
.sd-control { margin-bottom: 13px; }
.sd-control p { margin: 0; font-size: 10px; color: #a88dbb; font-weight: 400; }
.sd-inspector-content details { border-top: 1px solid #50365e; margin-top: 16px; padding-top: 12px; }
.sd-inspector-content summary { cursor: pointer; font-size: 11px; color: #e0c2f4; font-weight: 650; margin-bottom: 12px; }
.sd-object-actions { display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0; }
.sd-object-actions button { font-size: 10px; padding: 7px 9px; }
.sd-definition { padding: 10px; margin-bottom: 8px; border: 1px solid #543a63; border-radius: 8px; background: #2b1d37; }
.sd-definition strong { display: block; font-size: 11px; color: #e3ccec; overflow-wrap: anywhere; }
.sd-definition p { margin: 5px 0 8px; color: #ac92c0; font-size: 10px; overflow-wrap: anywhere; }
.sd-definition button { min-height: 27px; padding: 4px 8px; font-size: 9px; margin-right: 5px; }
.sd-page .sd-column-picker { display: block; width: 100%; padding: 9px; margin: 6px 0; background: #2b1d36; text-align: left; }
.sd-column-picker strong { font-size: 11px; }
.sd-column-picker small { font-size: 9px; float: right; color: #b19ac5; }
.sd-note { color: #bca4ce; font-size: 11px; line-height: 1.65; margin: 0 0 16px; }
.sd-note strong { color: #e5d2f3; }
.sd-error { margin: 13px 16px; padding: 12px; border: 1px solid #b46f80; border-radius: 9px; background: #452634; color: #ffd3dc; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.sd-content-panel { overflow: auto; padding: 22px; scrollbar-color: #79549c #1c1326; }
.sd-content-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.sd-content-head h2 { font-size: 20px; margin: 5px 0 0; letter-spacing: -.025em; }
.sd-kicker { font-size: 9px; font-weight: 800; letter-spacing: .13em; color: #bd98d9; }
.sd-inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sd-code { font: 12px/1.8 ui-monospace,Consolas,monospace; tab-size: 2; white-space: pre; background: #100b17; border: 1px solid #53375f; border-radius: 12px; padding: 20px; margin: 0; color: #d9c4ef; overflow: auto; min-height: 370px; }
.sd-data-controls { display: grid; grid-template-columns: minmax(150px,2fr) minmax(80px,1fr) minmax(100px,1fr) auto; align-items: end; gap: 12px; margin-bottom: 18px; }
.sd-data-grid { max-height: 430px; overflow: auto; border: 1px solid #5f3e6e; border-radius: 10px; }
.sd-page table { width: 100%; border-collapse: collapse; font-size: 11px; margin: 0; color: #edddf7; }
.sd-page th { padding: 11px 12px; background: #3b254b; color: #e3c8f5; text-align: left; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.sd-page td { padding: 10px 12px; border-bottom: 1px solid #473052; max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sd-page tbody tr:nth-child(even) { background: #25192f; }
.sd-review-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.sd-review-stat { padding: 15px; border: 1px solid #654374; background: #2c1d39; border-radius: 12px; }
.sd-review-stat small { display: block; color: #b99acd; font-size: 10px; margin-bottom: 8px; }
.sd-review-stat strong { color: #d7b2f5; font-size: 26px; }
.sd-review-list, .sd-change-list { display: grid; gap: 10px; }
.sd-page .sd-issue { display: flex; justify-content: flex-start; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 10px; background: #2a1b35; text-align: left; line-height: 1.6; font-size: 12px; }
.sd-issue .sd-severity { flex: 0 0 auto; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; color: #cbb7de; background: #483354; }
.sd-issue[data-severity=error] { border-color: #855167; background: #38202f; }
.sd-issue[data-severity=error] .sd-severity { background: #793c54; color: #ffd0dc; }
.sd-issue[data-severity=warning] .sd-severity { background: #685033; color: #f6d59f; }
.sd-issue[data-severity=success] { border-color: #4b8674; background: #1f332f; }
.sd-change { border: 1px solid #594067; border-radius: 10px; padding: 15px; background: #2b1d37; }
.sd-change>span { display: inline-block; font-size: 9px; color: #e5bf85; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .05em; }
.sd-change h3 { margin: 0 0 5px; font-size: 13px; color: #e8d1f8; overflow-wrap: anywhere; }
.sd-change p { margin: 0; font-size: 11px; color: #bca1ce; }
.sd-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 12px; background: #2b1c38; border-top: 1px solid #5c3d6e; font-size: 10px; color: #bca0ce; min-width: 0; }
.sd-bottom #sdStatus { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-bottom #sdStatus[data-tone=error] { color: #ffc5d3; }
.sd-bottom #sdStatus[data-tone=success] { color: #afe4cc; }
.sd-bottom #sdCounts { white-space: nowrap; color: #b99acb; }
.sd-bottom button { min-height: 22px; padding: 2px 7px; font-size: 9px; }
.sd-body.sd-hide-nav { grid-template-columns: minmax(0,1fr) 300px; }
.sd-body.sd-hide-nav .sd-navigator { display: none; }
.sd-body.sd-hide-inspector { grid-template-columns: 200px minmax(0,1fr); }
.sd-body.sd-hide-inspector .sd-inspector { display: none; }
.sd-body.sd-hide-nav.sd-hide-inspector { grid-template-columns: minmax(0,1fr); }
.sd-body[data-view]:not([data-view=diagram]) { grid-template-columns: 200px minmax(0,1fr); }
.sd-body[data-view]:not([data-view=diagram]) .sd-inspector { display: none; }
.sd-body.sd-hide-nav[data-view]:not([data-view=diagram]) { grid-template-columns: minmax(0,1fr); }
.sd-dialog { width: min(700px,calc(100vw - 32px)); max-height: min(850px,calc(100dvh - 40px)); border: 1px solid #a271bc; border-radius: 16px; padding: 0; color: #f5e9ff; background: #25182f; box-shadow: 0 30px 120px #0009; overflow: auto; }
.sd-dialog-wide { width: min(900px,calc(100vw - 32px)); }
.sd-dialog::backdrop { background: #0b0619bb; backdrop-filter: blur(5px); }
.sd-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 23px; background: #362141; border-bottom: 1px solid #654072; }
.sd-dialog-head h2 { margin: 4px 0 0; font-size: 20px; }
.sd-dialog-head button { background: transparent; font-size: 20px; min-width: 34px; padding: 4px; }
.sd-dialog-body { padding: 23px; display: grid; gap: 18px; }
.sd-dialog-body label { font-size: 12px; }
.sd-dialog-body .sd-note { margin: 10px 0 0; }
.sd-dialog-body textarea { font: 12px/1.7 ui-monospace,Consolas,monospace; }
.sd-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 23px; border-top: 1px solid #5a3968; background: #2f1c3a; }
.sd-relationship-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.sd-column-selection { border: 1px solid #5e3c6e; border-radius: 9px; padding: 12px; background: #1b1124; min-width: 0; }
.sd-column-selection legend { color: #c7a2e1; padding: 0 5px; font-size: 11px; }
.sd-selected-columns { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.sd-column-chip { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 6px; background: #4a2e5d; color: #ead5fa; font-size: 11px; }
.sd-column-chip strong { flex: 1; overflow-wrap: anywhere; }
.sd-column-chip span { color: #bc95d8; font-size: 9px; }
.sd-column-chip button { min-height: 23px; padding: 2px 5px; font-size: 10px; border: 0; background: #2b1938; }
.sd-add-column-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.sd-export-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sd-export-grid button { display: block; text-align: left; padding: 17px; min-height: 83px; border-radius: 11px; background: #3a254b; }
.sd-export-grid b { display: block; font-size: 14px; margin-bottom: 8px; color: #f1ddff; }
.sd-export-grid span { display: block; font-size: 10px; font-weight: 400; color: #bc9dce; line-height: 1.5; }
.sd-shortcuts { display: grid; grid-template-columns: 140px 1fr; gap: 14px; margin: 0; font-size: 12px; }
.sd-shortcuts dt { color: #deb9f5; font-weight: 650; }
.sd-shortcuts dd { margin: 0; color: #c1a6d2; }
.sd-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.sd-guide-grid article { padding: 25px; border: 1px solid #51375f; border-radius: 16px; background: #22172d; }
.sd-guide-grid h2 { font-size: 18px; margin-bottom: 17px; }
.sd-guide-grid p, .sd-guide-grid li { color: #c3aecf; font-size: 13px; line-height: 1.8; }
.sd-guide-grid ol { padding-left: 20px; margin-bottom: 0; }
.sd-guide-grid li { padding: 4px 0; }
.sd-workspace:fullscreen, .sd-workspace.sd-expanded { width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; max-width: none; }
.sd-workspace.sd-expanded { position: fixed; inset: 0; z-index: 100000; }
@media (min-width: 1700px) { .sd-body { grid-template-columns: 220px minmax(0,1fr) 320px; } }
@media (max-width: 1200px) {
  .sd-projectbar { flex-wrap: wrap; gap: 12px; }
  .sd-project-title { max-width: none; }
  .sd-project-actions { gap: 6px; }
  .sd-body, .sd-body.sd-hide-nav { grid-template-columns: 180px minmax(0,1fr); }
  .sd-body.sd-hide-nav { grid-template-columns: minmax(0,1fr); }
  .sd-inspector { position: absolute; right: 0; top: 0; bottom: 0; width: 300px; z-index: 20; box-shadow: -20px 0 55px #09051177; }
  .sd-body.sd-hide-inspector .sd-inspector { display: none; }
  .sd-hero { grid-template-columns: 1fr 210px; }
}
@media (max-width: 800px) {
  .sd-page { width: calc(100% - 20px); margin-top: 14px; }
  .sd-hero { grid-template-columns: 1fr; padding: 23px; }
  .sd-hero-art { display: none; }
  .sd-workspace { height: min(870px,calc(100dvh - 30px)); min-height: 640px; }
  .sd-projectbar { gap: 10px; padding: 11px; }
  .sd-project-title { flex: 0 0 100%; width: 100%; max-width: none; min-width: 0; }
  .sd-project-actions { flex: 1 1 100%; }
  .sd-project-actions button, .sd-project-actions .sd-file { font-size: 10px; min-height: 33px; padding: 7px 9px; }
  .sd-viewbar { padding: 8px; flex-wrap: wrap; gap: 8px; }
  .sd-view-tabs { width: 100%; }
  .sd-view-tabs button { font-size: 10px; padding: 7px; }
  .sd-page .sd-dialect-label { margin-left: auto; }
  .sd-body, .sd-body.sd-hide-inspector, .sd-body[data-view]:not([data-view=diagram]) { grid-template-columns: minmax(0,1fr); }
  .sd-navigator { position: absolute; left: 0; top: 0; bottom: 0; width: 210px; z-index: 25; box-shadow: 20px 0 55px #09051177; }
  .sd-inspector { width: min(310px,calc(100% - 20px)); }
  .sd-canvasbar { padding: 7px; gap: 4px; flex-wrap: wrap; }
  .sd-canvasbar>div { gap: 4px; }
  .sd-canvasbar button { font-size: 9px; padding: 6px; }
  .sd-canvas-hint { display: none; }
  .sd-minimap { width: 90px; height: 61px; }
  .sd-content-panel { padding: 16px; }
  .sd-content-head { flex-direction: column; align-items: flex-start; }
  .sd-data-controls { grid-template-columns: 1fr 1fr; }
  .sd-review-stats { gap: 7px; }
  .sd-review-stat { padding: 11px; }
  .sd-code { font-size: 11px; min-height: 270px; padding: 14px; }
  .sd-bottom #sdCounts { display: none; }
  .sd-guide-grid { grid-template-columns: 1fr; }
  .sd-dialog-body { padding: 18px; }
  .sd-dialog-head { padding: 17px; }
  .sd-relationship-grid { grid-template-columns: 1fr; }
  .sd-shortcuts { grid-template-columns: 1fr; gap: 7px; }
  .sd-shortcuts dd { margin-bottom: 10px; }
  .sd-export-grid { gap: 9px; }
  .sd-export-grid button { padding: 13px; }
}
@media (prefers-reduced-motion: no-preference) { .sd-page button { transition: background .12s,border-color .12s; } }
