/* Component documentation uses the workshop's blue/white palette, with one reading column. */
#component-info-modal.skill-dialog{box-sizing:border-box;width:min(1080px,95vw);max-height:90vh;padding:0;border:1px solid #d8e2ee;border-radius:18px;background:#fff;color:#18324d;box-shadow:0 24px 90px #122d4b33;font:14px/1.65 system-ui,sans-serif;overflow:hidden}
#component-info-modal.skill-dialog::backdrop{background:#15283f73;backdrop-filter:blur(3px)}
.skill-dialog *{box-sizing:border-box;min-width:0}.skill-dialog .skill-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;border-bottom:1px solid #e2e8f0;background:#f8fafd}.skill-heading small{font-size:12px;color:#617690}.skill-heading h2{margin:3px 0 0;font-size:22px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}.skill-dialog button{font:inherit;cursor:pointer}.skill-close{border:1px solid #cbd8e8;border-radius:9px;background:white;color:#36516e;padding:8px 14px;flex-shrink:0}.skill-layout{display:grid;grid-template-columns:170px minmax(0,1fr)}.skill-navigation{padding:20px 12px;border-right:1px solid #e2e8f0;background:#f8fafd}.skill-navigation button{display:block;width:100%;padding:11px 14px;margin-bottom:6px;border:0;border-radius:9px;text-align:left;color:#526984;background:transparent}.skill-navigation [aria-selected=true]{color:#2156c8;background:#e9f0ff;font-weight:700}.skill-content{padding:26px 30px;max-height:calc(90vh - 100px);overflow:auto;overscroll-behavior:contain}.skill-content h3{margin:0 0 16px;font-size:18px;font-weight:700}.skill-content p{margin:0 0 18px;color:#526984}.skill-overview{display:grid;grid-template-columns:1fr 1fr;gap:16px}.skill-overview article{padding:18px;border:1px solid #dde6f1;border-radius:12px;overflow-wrap:anywhere}.skill-overview h4{margin:0 0 8px;color:#6a7e98;font-size:12px;font-weight:600}.skill-overview .wide{grid-column:1/-1}.skill-content details{margin:0 0 12px;border:1px solid #dce5f0;border-radius:10px;overflow:hidden}.skill-content summary{padding:13px 16px;background:#f7f9fd;color:#284767;font-weight:600;cursor:pointer;overflow-wrap:anywhere}.skill-content details>div{padding:8px}.skill-content table{font-size:13px;table-layout:fixed}.skill-content td,.skill-content th{overflow-wrap:anywhere;word-break:break-word}.skill-content details pre{margin:0!important;max-height:440px!important}.skill-content .project-skill{font-size:14px!important}.skill-content .project-skill>h3{display:none}.skill-content .project-skill>p{font-size:12px;color:#6a7d94}.skill-content .code-panel{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;font:13px/1.7 Consolas,monospace;background:#f5f7fb;border:1px solid #dce5f0;border-radius:10px;padding:18px;margin:0}.skill-dialog button:focus-visible,.skill-content summary:focus-visible{outline:3px solid #8ab5ff;outline-offset:2px}.skill-card{border:1px solid #d9e4f3;border-radius:12px;padding:16px;background:#f7faff;font:13px/1.7 system-ui;color:#25405e}.skill-card h3{font-size:14px;font-weight:700;margin:0 0 8px}.skill-card p{color:#647992;margin:0 0 12px}.skill-card .skill-card-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.skill-card-counts span{background:white;border:1px solid #e1e8f2;border-radius:8px;padding:8px}.skill-card button{font:inherit;width:100%;margin-top:12px;padding:9px;border:1px solid #b9cee9;border-radius:8px;color:#2155b5;background:white;cursor:pointer}
@media(max-width:640px){#component-info-modal.skill-dialog{width:96vw}.skill-dialog .skill-heading{padding:16px;gap:12px}.skill-heading h2{font-size:18px}.skill-layout{grid-template-columns:1fr}.skill-navigation{display:flex;gap:4px;overflow:auto;padding:8px;border-right:0;border-bottom:1px solid #e2e8f0}.skill-navigation button{width:auto;margin:0;white-space:nowrap;padding:9px 12px}.skill-content{padding:18px;max-height:calc(90vh - 155px)}.skill-overview{grid-template-columns:1fr}.skill-overview article{padding:14px}}

/* A shared reading frame keeps project/page/backend dialogs stable between tabs. */
:is(#component-info-modal,#workshop-project-spec,#workshop-backend-skills).skill-dialog{box-sizing:border-box;width:min(1120px,94vw);height:min(760px,88dvh);max-height:88dvh;padding:0;border:1px solid #d8e2ee;border-radius:16px;background:#fff;color:#18324d;overflow:hidden;font:14px/1.7 system-ui,sans-serif;box-shadow:0 24px 90px #122d4b33}
:is(#component-info-modal,#workshop-project-spec,#workshop-backend-skills).skill-dialog[open]{display:flex;flex-direction:column}
.skill-dialog::backdrop{background:#15283f73;backdrop-filter:blur(3px)}
.skill-dialog .skill-heading{flex-shrink:0;min-height:92px;padding:20px 26px}
.skill-dialog .skill-layout{flex:1;min-height:0;overflow:hidden}
.skill-dialog .skill-navigation{overflow:auto;overscroll-behavior:contain}
.skill-dialog .skill-content{min-height:0;max-height:none;overflow:auto;padding:24px 28px;scrollbar-gutter:stable}
.skill-dialog .skill-content>h3:not(:first-child){margin-top:26px}
.skill-dialog .skill-content>.skill-overview{margin-bottom:20px}
.skill-notice,.skill-empty{padding:14px 16px;margin:16px 0 20px;background:#f5f8fc;border-left:3px solid #8da9d0;color:#526984;line-height:1.8;font-size:13px;overflow-wrap:anywhere}
.skill-notice [data-uc-sync]{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;margin:4px 6px 8px 0;border:1px solid #b9cee9;border-radius:8px;background:white;color:#2155b5;font:inherit;cursor:pointer}.skill-notice [data-uc-sync="apply"]{background:#2155b5;color:white;border-color:#2155b5}.skill-notice [data-uc-sync]:hover:not(:disabled){filter:brightness(.95)}.skill-notice [data-uc-sync]:disabled{opacity:.55;cursor:wait}
.skill-sequence{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;margin:16px 0 24px;padding:16px;border:1px solid #dce5f0;border-radius:10px;background:#f8fafd}
.skill-sequence span{flex:1;min-width:130px;overflow-wrap:anywhere;padding:12px;background:white;border:1px solid #dce5f0;border-radius:7px;font-size:12px;color:#617690}
.skill-sequence strong{display:block;margin-top:6px;font-weight:600;color:#18324d}
.skill-sequence i{font-style:normal;align-self:center;color:#587db0;font-size:20px}
@media(max-width:640px){:is(#component-info-modal,#workshop-project-spec,#workshop-backend-skills).skill-dialog{width:96vw;height:92dvh;max-height:92dvh}.skill-dialog .skill-heading{padding:16px;min-height:82px}.skill-dialog .skill-layout{display:flex;flex-direction:column}.skill-dialog .skill-navigation{flex-shrink:0}.skill-dialog .skill-content{padding:18px;flex:1}.skill-sequence{display:block}.skill-sequence span{display:block;min-width:0}.skill-sequence i{display:block;text-align:center;transform:rotate(90deg);margin:4px}.skill-dialog .skill-overview .wide{grid-column:auto}}
