/* Shared frames use the same live controls; design switching never renders forms. */
@media screen {
.environment-label { display:inline-block; background:#ffe07a; color:#382600; font-weight:800; padding:4px 10px; margin-bottom:4px; border:1px solid #a78216; }
[hidden] { display:none !important; }
.design-switch { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.design-switch button { padding:8px 12px; border:1px solid #7993a4; background:transparent; color:inherit; }
.design-switch [aria-pressed="true"] { background:#fff; color:#123c50; outline:2px solid #138178; outline-offset:1px; }
#frameScreenTitle { font-weight:800; }
#screenActionDock { position:sticky; bottom:0; z-index:18; padding:10px 16px; background:#fff; border:1px solid #b6c4cf; border-top:3px solid #276b70; }
#screenActionButtons { display:flex; gap:8px; flex-wrap:wrap; }
#screenActionButtons button { flex:1 0 120px; padding:10px; }
#screenActionStatus { color:#5e4610; min-height:1.3em; margin:0 0 6px; }
#screenActionButtons button:disabled { opacity:1; background:#e7ebee; color:#68747e; cursor:not-allowed; border:1px solid #b8c2c9; }
html[data-design] #app .design-switch button { background:transparent; color:inherit; }
html[data-design] #app .design-switch button[aria-pressed="true"] { background:#fff; color:#123c50; }
html[data-design] #app #screenActionButtons button:disabled { background:#e7ebee; color:#68747e; }
html[data-design="web"] { background:#f1f5f7; color:#183342; }
html[data-design="web"] #app > header { border-top:0; border-radius:12px; background:#132f43; color:white; padding:16px 24px; gap:16px; }
html[data-design="web"] #app > header h1 { font-size:1.3rem; margin:5px 0 0; }
html[data-design="web"] #app > header .eyebrow { color:#9bd6cb; letter-spacing:.06em; }
html[data-design="web"] #app .layout { grid-template-columns:300px minmax(0,1fr); align-items:start; gap:20px; border:0; background:transparent; box-shadow:none; }
html[data-design="web"] #app nav { background:#fff; border:1px solid #ccd9df; border-radius:12px; max-height:max(220px,calc(100dvh - 250px)); overflow-y:auto; scrollbar-gutter:stable; }
html[data-design="web"] #app .workspace { background:#fff; border:1px solid #ccd9df; border-radius:12px; padding:22px; }
html[data-design="web"] #app nav .menu-button { border-radius:7px; background:#fff; color:#183342; padding:8px 10px; }
/* Both designs align menu names on the left and shortcut keys on the right. */
html[data-design] #app nav .menu-button { grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; }
html[data-design] #app nav .menu-button .key { grid-column:2; grid-row:1; justify-self:end; white-space:nowrap; font-size:.8rem; }
html[data-design] #app nav .menu-button > span:nth-child(2) { grid-column:1; grid-row:1; min-width:0; overflow-wrap:normal; word-break:normal; line-height:1.4; }
html[data-design] #app nav .menu-button .status { grid-column:1; grid-row:2; justify-self:start; padding:2px 7px; }
html[data-design] #app nav .menu-button:has(.key:empty) > span:nth-child(2),html[data-design] #app nav .menu-button:has(.key:empty) .status { grid-column:1 / -1; }
html[data-design="web"] #app .result { background:#fff; border:0; padding:0; margin-top:16px; }
html[data-design="web"] #app .search-form { background:#eef5f6; border:1px solid #c8dbdd; border-radius:8px; padding:16px; }
html[data-design="web"] #app button { background:#176e70; }
html[data-design="web"] #app .subtle { background:#536b7b; }
html[data-design="web"] #app .danger { background:#aa3340; }
html[data-design="web"] #app .confirm-button { background:#26744a; }
html[data-design="web"] #app th { background:#183f54; }
html[data-design="web"] #app .warning,html[data-design="web"] #app .draft-warning { background:#fff6d8; border:1px solid #c6a338; border-left:5px solid #b78f17; }
html[data-design="web"] #app #screenActionDock { border-radius:8px; margin-top:12px; box-shadow:0 -4px 12px #18334212; }
html[data-design="classic"] { font-family:"Meiryo","Yu Gothic UI",sans-serif; background:#e4e5e8; color:#111b43; }
html[data-design="classic"] main { padding:4px; }
html[data-design="classic"] #app > header { background:linear-gradient(#07598d,#003769); color:white; border:2px ridge #c8d5e4; border-radius:0; padding:8px 12px; gap:12px; }
html[data-design="classic"] #app > header h1 { font-size:1.2rem; margin:0; }
html[data-design="classic"] #app > header .eyebrow { color:#fff; letter-spacing:0; margin:0; }
html[data-design="classic"] #app .user { flex-wrap:wrap; justify-content:flex-end; }
html[data-design="classic"] #app .layout { display:block; margin-top:4px; min-height:calc(100vh - 230px); border:1px solid #878c99; box-shadow:none; background:#ededf1; }
html[data-design="classic"] #app nav { padding:12px; border:0; background:#ededf1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
html[data-design="classic"]:not([data-screen="menu"]) #app nav { display:none; }
html[data-design="classic"][data-screen="menu"] #app .workspace { min-height:100px; }
html[data-design="classic"] #app .workspace { padding:8px; }
html[data-design="classic"] #app .workspace h2 { font-size:1.15rem; border-bottom:1px solid #8b909d; margin:0 0 8px; padding-bottom:6px; }
html[data-design="classic"] #app .workspace > h2 { display:none; }
html[data-design="classic"] #app .result { padding:0; margin-top:6px; border:0; background:transparent; }
html[data-design="classic"] #app button { border-radius:0; border:2px outset #d7d8df; background:#e9e9ec; color:#111b43; }
html[data-design="classic"] #app button:active { border-style:inset; }
html[data-design="classic"] #app input,html[data-design="classic"] #app select { border-radius:0; border:2px inset #c9cbd0; padding:5px 7px; }
html[data-design="classic"] #app th { background:#d8d9dd; color:#111b43; border:1px solid #989da7; }
html[data-design="classic"] #app td { border:1px solid #a6a8b1; }
html[data-design="classic"] #app tr.selected td { background:#0665e8; color:white; }
html[data-design="classic"] #app #constructionForm { display:grid; grid-template-columns:minmax(260px,560px) 1fr; gap:5px 24px; padding:4px; background:#ededf1; }
html[data-design="classic"] #app #constructionForm > label { display:grid; grid-template-columns:135px minmax(100px,1fr); grid-column:1; align-items:center; gap:8px; margin:0; font-size:1.05rem; }
html[data-design="classic"] #app #constructionForm > label:first-child { grid-row:1; }
html[data-design="classic"] #app #constructionForm input { margin:0; }
html[data-design="classic"] #app #constructionSearchButton { grid-column:2; grid-row:1 / 5; align-self:end; justify-self:end; margin:0 6px 0 0; width:150px; background:#002653; color:white; }
html[data-design="classic"] #app #constructionForm .date-entry { min-width:0; }
html[data-design="classic"][data-screen="construction"] #app .construction-table { width:100%; min-width:900px; }
html[data-design="classic"][data-screen="construction"] #app #result > .table-wrap { min-height:180px; max-height:clamp(180px,calc(100dvh - 450px),560px); background:linear-gradient(#eeedff,#f7f7ff); }
html[data-design="classic"] #app #screenActionDock { background:#ededf1; border:2px ridge #bbbcc6; margin-top:4px; padding:5px; }
html[data-design="classic"] #app #screenActionButtons { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:4px; }
html[data-design="classic"] #app #screenActionButtons button { padding:9px 2px; font-size:1rem; font-weight:800; }
html[data-design="classic"] #app #screenActionButtons button:disabled { color:#777d8d; background:#e0e1e5; }
html[data-design="classic"] #app footer { padding:6px 10px; box-shadow:none; }
@media(max-width:900px){html[data-design="web"] #app .layout { grid-template-columns:1fr; }html[data-design="web"] #app nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }html[data-design="classic"] #app nav { grid-template-columns:repeat(2,minmax(0,1fr)); }html[data-design="classic"] #app #screenActionButtons { grid-template-columns:repeat(4,minmax(0,1fr)); }}
@media(max-width:600px){#app > header { flex-wrap:wrap; }html[data-design="classic"] #app #constructionForm { grid-template-columns:1fr; }html[data-design="classic"] #app #constructionSearchButton { grid-column:1; grid-row:5; }html[data-design="classic"] #app #constructionForm > label { grid-template-columns:110px minmax(0,1fr); }#screenActionButtons button { flex-basis:100px; }}
}
@media print { #screenActionDock,.design-switch { display:none !important; } }
