:root{font-family:"Segoe UI","Malgun Gothic",Arial,sans-serif;color:#263b31;background:#f5f6f2;font-size:14px;font-synthesis:none;--green:#254e3e;--line:#e1e7dd;--muted:#6d7f70}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #98bb69;outline-offset:3px}button:disabled{opacity:.4;cursor:default}h1,h2,h3,p{margin:0}button{border:0}code{font-family:Consolas,"SFMono-Regular",monospace;font-size:.94em}.skip{position:fixed;left:16px;top:-80px;background:white;padding:12px;z-index:100}.skip:focus{top:10px}.topbar{min-height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:16px 40px;gap:20px}.brand{display:flex;align-items:center;gap:10px}.brand strong{font-size:24px;letter-spacing:-1px}.brand strong>span{color:#8baa43}.brand-divider{height:20px;border-left:1px solid var(--line);margin:0 9px}.section-name{font-size:12px;color:var(--muted)}nav{display:flex;align-items:center;gap:28px;font-size:12px;color:#6c7c6e}nav a:hover{color:var(--green)}.back-link{border:1px solid var(--line);padding:9px 13px;border-radius:7px}main{max-width:1600px;margin:auto;padding:37px 40px 0}.intro{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:28px}.eyebrow{font-size:9px;font-weight:700;color:#81926e;letter-spacing:2px;margin-bottom:10px}h1{font-size:29px;letter-spacing:-1px;line-height:1.4}.intro p,.field-heading p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:8px}.summary{display:flex;align-items:center;gap:22px;color:#7c8d76;font-size:10px;white-space:nowrap}.summary>span:not(.database-tag){display:flex;flex-direction:column;gap:5px}.summary strong{font-size:23px;font-weight:600;color:#34503b}.database-tag{background:#eaf0df;padding:8px 12px;border-radius:6px;color:#58723e;font-size:10px}.panel{border:1px solid var(--line);border-radius:15px;background:white;overflow:hidden;box-shadow:0 4px 18px #30452c03;scroll-margin-top:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 23px;border-bottom:1px solid var(--line)}.panel-heading>div{display:flex;gap:11px;align-items:center}.step{font-family:Consolas,monospace;color:#80956a;background:#f0f5e7;padding:5px;border-radius:5px;font-size:11px}h2{font-size:17px;font-weight:650}.panel-heading p{font-size:11px;color:var(--muted);line-height:1.7}.diagram-toolbar{padding:11px 20px;display:flex;justify-content:space-between;gap:15px;background:#fafbf8;border-bottom:1px solid var(--line)}.legend{display:flex;align-items:center;gap:24px;color:#6e8071;font-size:10px}.legend>span,.legend label{display:flex;align-items:center;gap:7px}.legend input{accent-color:var(--green);width:13px;height:13px;margin:0}.legend-dot{width:6px;height:6px;border-radius:50%;background:#8b9e7e}.dashed-line{width:18px;border-top:2px dashed #8a89ae}.zoom-controls{display:flex;align-items:center;gap:5px}.zoom-controls button{background:white;border:1px solid var(--line);height:29px;min-width:29px;color:#3d5b44;border-radius:5px}.zoom-controls button:hover{background:#eef3e8}#fit-diagram{padding:0 10px;margin-left:5px;font-size:10px}.zoom-controls output{font:11px Consolas,monospace;min-width:40px;text-align:center;color:#6b7c6a}.diagram-viewport{height:580px;overflow:hidden;position:relative;background-color:#f8faf5;background-image:radial-gradient(#d5ddcd .8px,transparent .8px);background-size:18px 18px;touch-action:none;cursor:grab;user-select:none}.diagram-viewport.dragging{cursor:grabbing}.diagram-world{width:1450px;height:640px;position:absolute;left:0;top:0;transform-origin:0 0}.diagram-world>svg{position:absolute;inset:0;overflow:visible}.entity{position:absolute;width:350px;height:195px;background:white;border:1px solid #d4dfcb;border-radius:10px;box-shadow:0 7px 18px #3a4b2c0b;overflow:hidden;cursor:default;transition:box-shadow .15s,border-color .15s}.entity.selected{border:2px solid #4d7753;box-shadow:0 0 0 5px #dceacf,0 10px 25px #253f2520}.entity.dimmed{opacity:.5}.entity-head{padding:13px 15px;width:100%;text-align:left;background:#eef4e7;color:#355632;display:flex;justify-content:space-between;align-items:center;gap:10px}.entity[data-group="history"] .entity-head{background:#edf0f8;color:#53618b}.entity[data-group="result"] .entity-head{background:#f6f0e5;color:#8d724c}.entity-head strong{display:block;font-family:Consolas,monospace;font-size:15px;letter-spacing:-.4px}.entity-head small{display:block;font-size:10px;margin-top:3px}.entity-count{font-size:10px;color:#738466;white-space:nowrap}.entity-fields{padding:8px 14px;min-height:97px}.entity-field{display:flex;align-items:center;gap:5px;height:20px;color:#62735e;font-size:11px}.entity-field code{font-size:11px}.key-tag{font:8px Consolas,monospace;background:#f5edce;color:#9b7c33;border-radius:3px;padding:1px 4px}.key-tag.fk{background:#e9edf6;color:#7486a7}.entity-jump{display:flex;justify-content:space-between;align-items:center;width:100%;padding:8px 14px;font-size:10px;color:#6e8560;background:white;border-top:1px solid #eef1e9}.entity-jump:hover{background:#f4f8ed}.relation-path{stroke:#94a58c;stroke-width:1.6;fill:none}.relation-label{font:10px Consolas,monospace;fill:#788b6e;paint-order:stroke;stroke:#f8faf5;stroke-width:5px;stroke-linejoin:round}.relation-group.current .relation-path{stroke:#9693b1;stroke-dasharray:6 5}.relation-group.muted{opacity:.12}.relation-group.highlight .relation-path{stroke:#416f45;stroke-width:3}.diagram-footer{display:flex;justify-content:space-between;gap:15px;padding:10px 20px;border-top:1px solid var(--line);font-size:10px;line-height:1.8;color:#7c8b73}.diagram-footer b{font:9px Consolas,monospace;margin-left:10px;color:#5e754f}.relationship-panel{border-top:1px solid var(--line);padding:16px 23px;background:#fcfdfb;font-size:11px;line-height:1.9;min-height:70px}.relationship-panel>strong{display:block;font-size:12px}.relationship-panel>span{color:var(--muted)}.relationship-items{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:5px}.relationship-items span{font-size:10px;color:#718069;overflow-wrap:anywhere}.relationship-items code{color:#38573c}.loading{position:absolute;inset:0;display:grid;place-items:center;color:#6e8164;background:#f8faf5}.loading.error{color:#a35d55}.loading[hidden]{display:none}.notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 40px}.notes article{border-left:2px solid #cbdcbb;padding:3px 15px}.notes article>span{display:block;font-size:10px;color:#7b8e6b;margin-bottom:6px}.notes strong{font-size:12px;line-height:1.7}.notes p{font-size:11px;line-height:1.9;color:#73806b;margin-top:5px}.field-section{scroll-margin-top:20px}.field-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:21px}.field-heading h2{font-size:24px;letter-spacing:-.7px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--green);color:white;min-height:38px;padding:0 15px;border-radius:7px;font-size:11px;white-space:nowrap}.button:hover{background:#3b654b}.field-toolbar{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 15px;margin-bottom:20px}.search{display:flex;align-items:center;gap:8px;max-width:360px;flex:1;color:#87967f}.search>span{font-size:22px}.search input{border:0;width:100%;min-width:0;outline:none;background:none;font-size:12px;color:#3a523c}.search input::placeholder{color:#93a087}.table-select{display:flex;align-items:center;gap:8px;font-size:10px;color:#7c8a73}.table-select select{border:1px solid var(--line);border-radius:5px;padding:7px 9px;color:#48613f;background:#fbfcf9;font-size:11px;max-width:270px}.reset-button{background:none;font-size:10px;color:#7a8d6d;padding:7px}#visible-count{margin-left:auto;white-space:nowrap;font-size:11px;color:#7f8d72}.field-sheet{background:white;border:1px solid #dce4d6;border-radius:10px;overflow:hidden;margin-bottom:24px;scroll-margin-top:20px}.sheet-title{padding:18px 20px;display:flex;align-items:start;justify-content:space-between;gap:16px;background:#fcfdfb;border-bottom:1px solid var(--line)}.sheet-title h3{font-family:Consolas,monospace;font-size:16px;color:#315436;line-height:1.5}.sheet-title h3 span{font-family:"Segoe UI","Malgun Gothic",sans-serif;margin-left:12px;font-size:12px;font-weight:500;color:#768c68}.sheet-title p{font-size:11px;line-height:1.8;color:#7a8871;margin-top:5px}.sheet-number{font:10px Consolas,monospace;color:#7f916f;background:#edf4e5;padding:5px 8px;border-radius:4px;white-space:nowrap}.sheet-scroll{overflow:auto;max-height:690px}.sheet-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:11px;color:#54654c}.sheet-table col.rownum{width:40px}.sheet-table col.field{width:250px}.sheet-table col.type{width:185px}.sheet-table col.key{width:65px}.sheet-table col.example{width:225px}.sheet-table col.why{width:330px}.sheet-table thead{position:sticky;top:0;z-index:2}.sheet-table th,.sheet-table td{border-right:1px solid #e3e9df;border-bottom:1px solid #e3e9df;vertical-align:top;padding:11px 13px;text-align:left;overflow-wrap:anywhere;line-height:1.8}.sheet-table th:last-child,.sheet-table td:last-child{border-right:0}.sheet-table .letters th{padding:4px 10px;background:#eff3ea;font:10px Consolas,monospace;text-align:center;color:#8d9a7f}.sheet-table .column-names th{background:#f7f9f3;font-weight:600;font-size:11px;color:#617955;padding:9px 13px}.sheet-table tbody tr:nth-child(even) td:not(.row-index){background:#fbfcfa}.sheet-table tbody tr:hover td:not(.row-index){background:#f0f6e8}.row-index{background:#f5f7f0;text-align:center!important;font:10px Consolas,monospace!important;color:#99a58b;padding:13px 4px!important;user-select:none}.field-name{font:11px Consolas,monospace;color:#294f35}.field-label{display:block;font-size:10px;color:#829474;margin-top:3px}.field-type{font:10px Consolas,monospace;color:#72816b}.field-detail{display:block;font-size:9px;line-height:1.8;color:#94a087;margin-top:4px}.sheet-table .why-cell{font-size:12px;line-height:1.9;color:#4f6248}.key-cell{white-space:nowrap}.key-cell .key-tag{display:inline-block;margin:1px 2px 1px 0}.no-results{text-align:center;padding:60px 20px;color:#5e7753;border:1px dashed #cddbbc;border-radius:10px}.no-results p{margin-top:10px;font-size:12px;color:var(--muted)}[hidden]{display:none!important}.bottom-note{padding:20px 23px;background:#edf2e7;border-radius:10px;font-size:11px;line-height:1.9;color:#6a7e5f;margin:35px 0 25px}.bottom-note strong{display:block;color:#4c6741;margin-bottom:6px}.bottom-note p+p{margin-top:8px}footer{display:flex;justify-content:space-between;gap:20px;padding:22px 0 30px;border-top:1px solid var(--line);font-size:10px;color:#8b987f}.notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90vw;background:var(--green);color:white;box-shadow:0 8px 30px #1f3d2326;border-radius:7px;padding:12px 18px;font-size:12px;z-index:100}
@media(max-width:1150px){main{padding:28px 24px 0}.topbar{padding:15px 24px}.intro{align-items:start}.summary{gap:15px}.database-tag{display:none}.panel-heading p{max-width:330px}.sheet-table{width:1095px}.sheet-table col.type{width:155px}.sheet-table col.example{width:205px}.sheet-table col.why{width:330px}.notes{gap:10px}.notes article{padding:2px 10px}.table-select select{max-width:230px}}
@media(max-width:760px){.topbar{padding:14px 18px;gap:12px;flex-wrap:wrap}.brand strong{font-size:22px}.section-name{font-size:11px}nav{gap:18px;font-size:10px}.back-link{padding:6px 9px}.intro{display:block;margin-bottom:22px}h1{font-size:23px}.intro p{font-size:11px}.summary{margin-top:20px;gap:24px}.summary>span:not(.database-tag){flex-direction:row;align-items:baseline}.summary strong{font-size:20px}.database-tag{display:inline-block;margin-left:auto}.eyebrow{font-size:8px}main{padding:25px 16px 0}.panel-heading{display:block;padding:16px}.panel-heading p{max-width:none;margin-top:9px;font-size:10px}.panel-heading h2{font-size:15px}.diagram-toolbar{padding:10px 12px;flex-wrap:wrap}.legend{gap:15px;font-size:9px}.zoom-controls{margin-left:auto}.diagram-viewport{height:420px}.diagram-footer{display:block;padding:10px 13px;font-size:9px}.diagram-footer>span{display:block}.relationship-panel{padding:14px;font-size:10px}.notes{grid-template-columns:1fr;gap:16px;margin:22px 0 30px}.notes article{padding:1px 14px}.notes p{font-size:10px}.field-heading{align-items:start;gap:10px}.field-heading h2{font-size:22px}.field-heading p{font-size:10px}.field-heading .button{font-size:10px;min-height:34px;padding:0 10px;margin-top:19px}.field-toolbar{flex-wrap:wrap;padding:12px;gap:12px}.search{flex-basis:100%;max-width:none}.search input{font-size:11px}.table-select select{max-width:230px;font-size:10px}.table-select>span{display:none}.reset-button{margin-left:auto}.sheet-title{padding:15px}.sheet-title h3{font-size:14px}.sheet-title h3 span{display:block;margin:2px 0 0;font-size:11px}.sheet-title p{font-size:10px}.sheet-scroll{max-height:none}.sheet-table{width:1070px}.sheet-table .why-cell{font-size:11px}.sheet-table col.why{width:310px}.sheet-table col.field{width:230px}.bottom-note{padding:17px;font-size:10px}footer{font-size:9px}}
.entity-head strong{font-size:18px}.entity-head small{font-size:13px}.entity-count{font-size:11px}.entity-field code{font-size:13px}.entity-field .key-tag{font-size:10px}.entity-jump{font-size:11px}@media(min-width:761px){.diagram-viewport{height:680px}}
@media print{.topbar nav,.diagram-toolbar,.field-toolbar,.field-heading .button,.notice,footer a{display:none}.topbar,main{padding:12px}.intro{margin-bottom:12px}.diagram-viewport{height:510px;background:white}.notes{margin-bottom:20px}.field-sheet{break-inside:avoid}.sheet-scroll{overflow:visible;max-height:none}.sheet-table{width:100%!important;table-layout:auto;font-size:8px}.sheet-table th,.sheet-table td{padding:5px}.sheet-table .why-cell{font-size:9px}.sheet-table col{width:auto!important}.panel,.field-sheet{box-shadow:none}.bottom-note{background:white;border:1px solid #ddd}}
.sql-downloads{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;margin-bottom:25px;scroll-margin-top:20px}.sql-file{display:flex;align-items:center;gap:13px;background:white;border:1px solid var(--line);border-radius:10px;padding:16px 19px;min-width:0;transition:background .15s,border-color .15s}.sql-file:hover{background:#f0f5e9;border-color:#b5cba1}.sql-icon{display:grid;place-items:center;width:39px;height:43px;flex:none;border:1px solid #d5e2c9;border-radius:6px;background:#f1f6e8;font:11px Consolas,monospace;color:#6d8956}.sql-file strong{display:block;font-size:13px}.sql-file small{display:block;font-size:10px;line-height:1.8;margin-top:4px;color:var(--muted);overflow-wrap:anywhere}.download-arrow{margin-left:auto;color:#6d8956;font-size:21px;padding-left:8px}.sql-downloads>p{grid-column:1/-1;font-size:10px;line-height:1.8;color:#7b8a70}@media(max-width:760px){.sql-downloads{grid-template-columns:1fr;gap:10px}.sql-file{padding:14px 16px}.sql-file strong{font-size:12px}.topbar nav{gap:13px;flex-wrap:wrap}.sql-downloads>p{font-size:9px}}
.uz-lesson-link{display:inline-flex;margin-top:12px;padding:7px 11px;border:1px solid #dce8ce;border-radius:6px;font-size:11px;color:#66834e;background:#f0f6e6}
.key-tag.uk{color:#83682d;background:#f7efd9}.unique-rule{margin:0;padding:10px 20px;border-top:1px solid var(--line);font-size:11px;line-height:1.7;color:#736133}
.diagram-world{height:940px}@media screen and (min-width:761px){.diagram-viewport{height:890px}}
.er-page-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:13px}.er-page-links .uz-lesson-link{margin-top:0}.er-languages{display:flex;align-items:center;gap:3px;background:#eaf0e2;padding:3px;border-radius:7px}.er-languages a{font-size:11px;color:#778c67;border-radius:5px;padding:6px 11px}.er-languages a[aria-current="page"]{background:white;color:#355b31;box-shadow:0 1px 5px #3d582b12}.topbar{flex-wrap:wrap}nav{flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
