:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#243831;background:#f4f6f3;font-synthesis:none;--green:#216653;--muted:#718179;--line:#e1e7e1}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}body>aside{position:fixed;width:232px;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:700}.brand-icon{background:#e7f0e9;color:var(--green);padding:7px 12px;border-radius:12px;font-size:27px}.brand small{font-size:9px;font-weight:500;letter-spacing:1.7px;display:block;margin-top:6px;color:var(--muted)}.nav-caption{font-size:11px;letter-spacing:1.5px;color:var(--muted);margin:45px 12px 12px}nav a{display:flex;gap:12px;padding:14px 16px;border-radius:9px;margin-bottom:8px;font-size:14px}nav a.active{background:#e9f1eb;color:#195a47;font-weight:600}.side-note{margin-top:auto;font-size:12px;color:var(--green);line-height:2}.side-note small{color:var(--muted)}.dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:#3d9b6f;margin-right:6px}main{margin-left:232px;padding:38px 42px;max-width:1850px}header{display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{font-size:11px;letter-spacing:1px;color:var(--muted)}h1{font-size:29px;letter-spacing:-.7px;margin:13px 0 9px}header p{color:var(--muted);font-size:13px;margin:0}button{background:var(--green);color:white;border:1px solid var(--green);border-radius:7px;padding:10px 15px;cursor:pointer;font:inherit;font-size:12px}button:hover{filter:brightness(.96)}button:disabled{background:#e8ece8;color:#929c95;border-color:var(--line);cursor:not-allowed}.secondary{color:#426353;background:white;border-color:var(--line)}.notice{display:flex;gap:18px;align-items:center;font-size:12px;margin:27px 0 24px;padding:15px 18px;background:#fff7e7;border:1px solid #ecdfbe;border-radius:8px;color:#80673a}.notice strong{white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat,.panel,.work-card{background:#fff;border:1px solid var(--line);border-radius:12px}.stat{padding:21px 23px}.stat label{font-size:12px;color:var(--muted)}.stat b{display:block;font-weight:550;font-size:32px;line-height:1.5;margin:5px 0}.stat small{color:var(--muted);font-size:11px}.stat .warning{color:#a77736}.panel{padding:23px;margin-bottom:20px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}h2{font-size:17px;font-weight:600;margin:0}.section-title p,.muted{font-size:12px;color:var(--muted);line-height:1.7}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{background:#f7f9f6;border-color:var(--line);color:#5d7064;border-radius:6px;padding:8px 13px}.chip.selected{background:#e7f1eb;color:#23644e;border-color:#a6cbb8}.toolbar{display:flex;justify-content:space-between;gap:14px;margin:17px 0}input,select{font:inherit;font-size:12px;padding:10px 12px;border:1px solid #dce4dc;border-radius:7px;background:white;color:#354d40}input{min-width:220px}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:#7b8980;font-size:11px;font-weight:500;background:#f7f9f6;padding:13px 10px;border-bottom:1px solid var(--line)}td{padding:16px 10px;border-bottom:1px solid #eef1ed;vertical-align:middle}td:first-child{max-width:350px;font-weight:550}td small{display:block;color:var(--muted);font-weight:400;margin-top:6px}.badge{display:inline-block;border-radius:5px;background:#edf2ef;color:#607768;padding:5px 7px;font-size:11px;white-space:nowrap}.badge.warn{background:#fff0d9;color:#a4712c}.badge.good{background:#e9f3ed;color:#286b4c}.link{background:none;border:none;color:var(--green);padding:5px;text-decoration:underline;text-underline-offset:3px}.table-wrap{overflow:auto}.empty{padding:35px;text-align:center;color:var(--muted)}.work-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.work-card{padding:23px}.work-card h3{font-size:17px;margin:12px 0}.work-card p{font-size:12px;line-height:1.8;color:var(--muted)}.work-meta{margin:17px 0;padding-top:13px;border-top:1px solid var(--line);font-size:12px;line-height:2}.work-meta strong{font-weight:500;color:#486552}.work-meta span{color:var(--muted)}code{font:11px ui-monospace,monospace;word-break:break-all;color:#54665b}details{margin:14px 0;font-size:12px}summary{cursor:pointer;color:#3d6d54;padding:6px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;padding:12px;background:#f5f7f3;max-height:350px;overflow:auto}.error{padding:15px;border:1px solid #e5b8b4;background:#fff1ef;color:#9e3932;border-radius:8px;margin-bottom:16px}#login{background:white;border:1px solid var(--line);padding:30px;border-radius:12px;margin-bottom:25px}#login p{font-size:13px;color:var(--muted)}#login-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#login-error{color:#a13e37;font-size:12px}footer{font-size:11px;color:#8b978f;margin-top:32px;line-height:2}footer span{float:right}dialog{border:1px solid var(--line);border-radius:14px;max-width:700px;width:calc(100% - 36px);padding:27px;color:#294432}dialog::backdrop{background:#183e2c50}.dialog-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}dl{display:grid;grid-template-columns:130px 1fr;font-size:13px;gap:12px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere;line-height:1.6}.boundary{background:#f6f8f4;padding:15px;border-radius:8px;font-size:12px;line-height:1.8;color:#617262}[hidden]{display:none!important}@media(min-width:1500px){main{padding-left:50px;padding-right:50px}}@media(max-width:1000px){body>aside{width:190px;padding:25px 15px}main{margin-left:190px;padding:28px 22px}.stats{gap:10px}.stat{padding:18px}.notice{display:block}.notice span{display:block;margin-top:6px}.work-grid{grid-template-columns:1fr}}@media(max-width:650px){body>aside{position:static;width:100%;padding:17px 18px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:19px}.brand small{font-size:8px}.brand-icon{font-size:21px}.nav-caption,.side-note{display:none}nav{display:flex;gap:12px;margin-top:18px}nav a{padding:9px 16px;margin:0}.brand small{letter-spacing:1px}main{margin-left:0;padding:24px 16px}header{align-items:flex-start}h1{font-size:24px}header p{font-size:12px;line-height:1.7}#refresh{padding:8px;white-space:nowrap;font-size:10px;margin-top:5px}.stats{grid-template-columns:1fr 1fr}.stat{padding:16px}.stat b{font-size:28px}.panel{padding:17px}.toolbar{flex-direction:column}input{width:100%;min-width:0}.notice{line-height:1.7}.section-title{align-items:flex-start}th,td{padding:12px 8px}table{min-width:760px}.work-card{padding:19px}footer span{float:none;display:block}dl{grid-template-columns:100px 1fr}.dialog-heading h2{font-size:16px}}

/* Workbench layouts */
.review-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:18px;align-items:start}
.review-heading{margin:8px 0 14px}.review-heading p{margin:6px 0}.evidence-path code{overflow-wrap:anywhere}
.review-panel .section-title{margin-bottom:5px}.review-list{padding:0;margin:0;list-style:none}
.review-list li{padding:15px 0;border-bottom:1px solid var(--line)}.review-list li:last-child{border-bottom:0;padding-bottom:0}
.review-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.review-list p{color:#586a60;font-size:13px;line-height:1.65;margin:7px 0}
.review-link{display:inline-block;color:var(--green);font-size:12px;padding:3px 0}.review-link:hover,.primary-link:hover{text-decoration:underline}
.badge.info{background:#edf1fa;color:#3d567c}.badge.warn{color:#775018}.stat .warning{color:#8a571c}
.dictionary-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.dictionary-stats .stat:last-child b{font-size:23px;line-height:2.1}
.dictionary-toolbar{justify-content:start;flex-wrap:wrap}.dictionary-toolbar label{display:flex;align-items:center;gap:8px;font-size:13px}.dictionary-toolbar input{width:300px}
#dictionary-rows td:first-child{overflow-wrap:anywhere}dialog{max-height:calc(100dvh - 36px)}.dialog-heading h2{overflow-wrap:anywhere;min-width:0}.dialog-heading button{flex-shrink:0}
.primary-link{display:inline-block;border-radius:7px;padding:10px 15px;background:var(--green);color:#fff;font-size:13px;margin-top:8px}.mcp-entry{max-width:780px}
nav a:hover{background:#f2f6f2}nav a.active:hover{background:#e9f1eb}
:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:1000px){.review-grid{grid-template-columns:1fr}.review-panel:last-child{order:-1}.dictionary-stats .stat:last-child b{font-size:19px}}
@media(max-width:650px){nav{flex-wrap:wrap;gap:5px}nav a{padding:9px 10px;gap:6px;font-size:12px}.review-grid{gap:12px}.review-panel{margin-bottom:0}.dictionary-stats{grid-template-columns:1fr 1fr}.dictionary-stats .stat:last-child{grid-column:1/-1}.dictionary-toolbar label{width:100%}.dictionary-toolbar input{flex:1;min-width:0;width:auto}.review-row{font-size:13px}}

body[data-page="mysql-data-dictionary"] {
  --text: #253147;
  --muted: #5d6b83;
  --ui-card-shadow: 0 9px 24px rgb(34 55 74 / .08);
  background: #f3f6f9;
}
.mysql-data-dictionary-dashboard .panel { margin-bottom: 0; }
.mysql-data-dictionary-dashboard .mysql-dictionary-domain {
  grid-template-columns: minmax(100px, 155px) minmax(0, 1fr);
}
.mysql-data-dictionary-dashboard .mysql-dictionary-database-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 195px), 1fr));
}
.mysql-data-dictionary-dashboard .mysql-dictionary-detail-toolbar a,
.mysql-data-dictionary-dashboard footer,
.mysql-relations-dialog footer { margin: 0; }
@media (max-width: 650px) {
  .mysql-data-dictionary-dashboard .mysql-dictionary-domain { grid-template-columns: minmax(0, 1fr); }
}

/* Development: component release evidence and local Git relationships. */
body[data-page="development"]{background:#f3f6f9;color:#1d3248;--muted:#536a82;--line:#d5e0ea;--green:#007b82}
body[data-page="development"] main{max-width:none;padding:34px 30px}
body[data-page="development"] h1{font-size:30px;letter-spacing:-.5px}
body[data-page="development"] .notice{margin:22px 0;font-size:12px;padding:11px 16px}
.dev-dashboard{font-size:14px;line-height:1.65}.dev-dashboard p{margin:10px 0 14px}.dev-dashboard h2{font-size:22px;margin-bottom:16px}.dev-dashboard h3{font-size:16px;margin:0 0 8px}.dev-dashboard code{color:#28435c;font-size:12px}.dev-dashboard small{font-size:12px}.dev-dashboard .muted{font-size:13px}
.dev-flow{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr);gap:12px;margin:0 0 22px}.dev-flow article{background:#e3f2f1;border-radius:8px;padding:17px 18px;min-width:0;display:flex;flex-direction:column;justify-content:center}.dev-flow>span{align-self:center;text-align:center;font-size:26px;color:#007b82}.dev-flow small{color:#536a82}.dev-flow strong{font-size:14px;margin:3px 0}.dev-flow p{font-size:13px;margin:2px 0}.dev-source{overflow-wrap:anywhere}
.dev-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.dev-tabs button,.dev-dashboard button.secondary{background:white;color:#243e56;border:1px solid var(--line);font-size:13px;padding:9px 12px;border-radius:6px}.dev-tabs button[aria-selected="true"],.dev-dashboard button.selected{background:#e4f3f2;border-color:#007b82;color:#007b82}.dev-tabs>span{font-size:12px;color:#536a82;margin-left:auto;padding-left:18px;border-left:1px solid var(--line)}
.dev-view{padding:24px;border-radius:10px}.dev-evidence-grid,.dev-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 24px}.dev-evidence,.dev-module{border:1px solid var(--line);border-radius:8px;padding:20px;min-width:0}.dev-evidence{background:white}.dev-module{background:#f3f7fa}.dev-module ul{padding:0;list-style:none;margin:12px 0}.dev-module li{background:white;border:1px solid var(--line);border-radius:6px;margin:8px 0;padding:7px 9px}.dev-module .link{text-align:left;text-decoration:none;font-size:13px;line-height:1.6}.dev-dashboard .section-title{margin-bottom:10px}.dev-dashboard .section-title h3{margin:0}.dev-dashboard .badge{white-space:normal}.dev-dashboard details{font-size:13px;margin:14px 0 0}.dev-dashboard summary{font-weight:600;color:#28435c}.dev-dashboard .badge.info,.dev-dashboard .badge:not(.warn){background:#e3f2f1;color:#2d5866}.dev-dashboard .work-card{border-radius:8px;padding:20px}.dev-dashboard .work-card h3{line-height:1.65}.dev-dashboard .work-card p{font-size:13px;color:#536a82}.dev-dashboard .work-meta p{margin:4px 0 10px}.dev-dashboard .work-meta{margin-bottom:8px}.dev-dashboard .link{color:#007b82}.dev-items-heading{margin-top:30px}.dev-item-filters{display:flex;gap:14px}.dev-item-filters label{flex:1;max-width:430px}
.dev-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.dev-metric{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:7px;padding:14px;min-width:0}.dev-metric b{color:#007b82;font-size:27px}.dev-metric strong{display:block;font-size:13px}.dev-metric small{display:block;color:#536a82;font-size:11px}
.dev-controls{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,2.3fr);gap:28px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:18px 0}.dev-scope{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.dev-scope strong{font-size:13px;margin-bottom:2px}.dev-scope button:nth-of-type(n+2){margin-left:14px}.dev-scope button:nth-of-type(3),.dev-scope button:nth-of-type(4){margin-left:28px}.dev-filters{display:flex;align-items:flex-end;align-content:center;flex-wrap:wrap;gap:12px}.dev-dashboard label{display:flex;flex-direction:column;gap:6px;font-size:13px}.dev-dashboard select,.dev-dashboard input{border-color:var(--line);color:#243e56;max-width:100%;font-size:13px}.dev-filters label:first-child{flex:1 1 240px;min-width:0}.dev-filters label:nth-child(2){flex:0 1 140px}.dev-filters label:nth-child(3){flex:1 1 180px}.dev-filters input{min-width:0;width:100%}.dev-filters p{flex-basis:100%;margin:0}
.dev-branch-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}.dev-branch-layout>.table-wrap{border:1px solid var(--line);border-radius:8px}.dev-dashboard th{color:#28435c;background:#f7f9fb;font-size:12px;font-weight:600}.dev-dashboard td{font-size:12px;border-color:var(--line);overflow-wrap:anywhere}.dev-dashboard td:first-child{font-weight:400}.dev-branch-table{min-width:570px}.dev-branch-table td:first-child{width:38%}.dev-branch-table td:first-child button{max-width:100%;overflow-wrap:anywhere;text-align:left;font-size:12px;padding:7px 8px}.dev-dashboard tr.selected{background:#e4f3f2}.dev-branch-detail{min-width:0}.dev-branch-detail h3{overflow-wrap:anywhere;font-size:18px}.dev-branch-detail p{overflow-wrap:anywhere}.dev-branch-detail table{min-width:0;table-layout:fixed}.dev-branch-detail th:first-child{width:20%}.dev-detail-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 12px;border-bottom:1px solid var(--line);padding-bottom:12px}.dev-dashboard .dev-detail-tabs button{font-size:12px;padding:7px 9px}.dev-file-list{max-height:560px;overflow:auto;border:1px solid var(--line);border-radius:6px}.dev-file-list>div{display:grid;grid-template-columns:35px minmax(0,1fr);gap:8px;border-bottom:1px solid var(--line);padding:8px 12px}.dev-file-list code{white-space:pre-wrap}.dev-history{padding:0 0 0 22px;max-height:600px;overflow:auto}.dev-history li{padding:10px 0;border-bottom:1px solid var(--line)}.dev-history small{display:block;color:#536a82}.dev-checklist{padding-left:24px;line-height:2}.dev-warning{padding:15px;background:#fff1d8;color:#885307;border-radius:7px;margin:18px 0 12px}.dev-dashboard .boundary{background:#f2f6f9;color:#536a82}.dev-dashboard .empty{font-size:13px}
@media(min-width:1900px){.dev-controls{grid-template-columns:1fr 2fr}.dev-view{padding:26px}.dev-branch-layout{gap:28px}}
@media(max-width:1250px){.dev-branch-layout{grid-template-columns:minmax(0,1fr)}.dev-controls{grid-template-columns:210px minmax(0,1fr)}.dev-tabs>span{margin-left:0;border:0;padding-left:0}.dev-flow{gap:6px}.dev-flow article{padding:14px}}
@media(max-width:850px){.dev-flow{grid-template-columns:1fr}.dev-flow>span{display:none}.dev-flow article{padding:14px 16px}.dev-evidence-grid,.dev-module-grid{grid-template-columns:1fr}.dev-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-controls{grid-template-columns:1fr}.dev-scope{flex-direction:row;flex-wrap:wrap;align-items:center}.dev-scope strong{width:100%}.dev-scope button:nth-of-type(n){margin:0}}
@media(max-width:650px){body[data-page="development"] main{padding:24px 16px}body[data-page="development"] h1{font-size:25px;line-height:1.4}.dev-dashboard{font-size:13px}.dev-view{padding:16px}.dev-dashboard h2{font-size:20px}.dev-metric{padding:11px 8px;gap:7px}.dev-metric b{font-size:23px}.dev-metric strong{font-size:12px}.dev-tabs{gap:6px}.dev-tabs button{font-size:12px;padding:8px}.dev-tabs>span{width:100%;font-size:11px}.dev-item-filters{flex-direction:column}.dev-evidence,.dev-module,.dev-dashboard .work-card{padding:16px}.dev-branch-detail table{min-width:490px}.dev-flow strong{font-size:14px}.dev-item-filters label{width:100%}.dev-filters{align-items:stretch}.dev-filters label:nth-child(n){flex:1 1 100%}.dev-filters button{align-self:flex-start}.dev-dashboard .section-title{flex-wrap:wrap}}
.dev-controls>*{min-width:0}.dev-filters label{min-width:0}.dev-filters select{width:100%;min-width:0}
@media(max-width:850px){.dev-controls{grid-template-columns:minmax(0,1fr)}}
.header-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.login-field{display:flex;gap:8px;align-items:center}.remember-field{display:flex;gap:6px;align-items:center;font-size:12px}.remember-field input{min-width:0;width:auto;margin:0;accent-color:var(--green)}
@media(max-width:650px){.header-actions{flex-direction:column;align-items:flex-end;gap:5px}.header-actions button{white-space:nowrap}.login-field{width:100%;flex-wrap:wrap}.login-field input{flex:1;min-width:160px}#login-form>input{width:100%}}
.password-form{display:grid;gap:16px}.password-form label{display:grid;gap:7px;font-size:13px}.password-form input{width:100%;min-width:0}.password-form>button{justify-self:start}.password-form [role="alert"]{color:#9e3932;font-size:13px;margin:0}.auth-message{padding:12px 16px;border:1px solid #b6d7c2;background:#edf7f0;border-radius:7px;font-size:13px}#password-dialog{max-width:480px}#password-dialog .muted{margin:0 0 20px;line-height:1.7}
