/* GENERATED by tools\forge-app.cs - one quiet style for every generated application */
:root { --bg: #f5f6f8; --panel: #ffffff; --ink: #1d2330; --muted: #5d6675; --line: #e1e4e9; --accent: #2f5d8a; --danger: #a8322d; --nav: #1f2a37;
        /* a template (forge-template.css) sets these; the values here are Plain - Forge's look as it was */
        --nav-hover: #2c3a4b; --accent-strong: #244b70; --accent-tint: rgba(47, 93, 138, .12); --accent-ring: rgba(47, 93, 138, .22); --soft: #f0f4f9; --on: #e3ecf6; --band: transparent; --user-bg: #263445; --chip: #e8eef5; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
.forge-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.forge-nav { background: var(--nav); padding: 14px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.forge-nav a { display: block; padding: 3px 16px; color: #c9d1db; text-decoration: none; }
.forge-nav a:hover, .forge-nav a.active { background: var(--nav-hover); color: #fff; }
.forge-nav .forge-brand { color: #fff; font-weight: 600; font-size: 16px; padding-bottom: 12px; }
main { padding: 20px 28px 40px; min-width: 0; }
h1 { font-size: 22px; font-weight: 600; margin: 0; }
.forge-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.forge-lead { color: var(--muted); }
.forge-tables { columns: 3 260px; padding: 0; list-style: none; }
.forge-tables li { padding: 3px 0; break-inside: avoid; }
.forge-tables span { color: var(--muted); font-size: 12px; }
.forge-search { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; width: 320px; max-width: 100%; margin-bottom: 10px; font: inherit; }
/* step 5d (20 Oct 2026): a list's Filters - closed until opened, open while the list is filtered */
.forge-filters { margin: 0 0 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.forge-filters > summary { cursor: pointer; color: var(--muted); padding: 4px 0; display: flex; align-items: center; gap: 6px; list-style: none; }
.forge-filters > summary::-webkit-details-marker { display: none; }
.forge-filters[open] > summary { color: var(--accent-strong); }
.forge-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 16px; padding: 6px 0; }
.forge-filter { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.forge-filter label { font-size: 12px; color: var(--muted); }
.forge-filter select, .forge-filter input { padding: 4px 6px; font: inherit; border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.forge-filter-range { display: flex; align-items: center; gap: 6px; }
.forge-filter-range input, .forge-filter-range select { flex: 1 1 0; }
.forge-filter-actions { display: flex; align-items: center; gap: 6px; padding: 4px 0 8px; }
.forge-tablecontrol { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; overflow-x: auto; }
.forge-tablecontrol table { border-collapse: collapse; width: 100%; }
.forge-tablecontrol th, .forge-tablecontrol td { padding: 5px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.forge-tablecontrol td, .forge-childgrid td { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.forge-tablecontrol th { font-weight: 600; color: var(--muted); background: var(--band); }
.forge-tablecontrol .forge-open { width: 1%; }
.forge-btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 4px; padding: 6px 14px; text-decoration: none; cursor: pointer; font: inherit; }
.forge-btn-danger { background: var(--danger); }
.forge-btn-quiet { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.forge-crumb { margin: 0 0 10px; }
.forge-crumb a { text-decoration: none; }
.forge-recordcontrol { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; max-width: 980px; overflow-x: auto; }
.forge-recordcontrol h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.forge-recordcontrol h4 { margin: 22px 0 6px; font-size: 14px; font-weight: 600; }
.forge-field { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 10px; margin: 5px 0; }
.forge-field label { color: var(--muted); }
.forge-field input:not([type=checkbox]), .forge-field select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; max-width: 420px; font: inherit; }
.forge-field textarea { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; width: 100%; max-width: 420px; font: inherit; resize: vertical; }
.forge-picture { max-width: 180px; max-height: 220px; border: 1px solid var(--line); border-radius: 4px; }
.forge-pager { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; }
.forge-pager .forge-btn { padding: 2px 10px; }
.forge-lookup { display: inline-flex; gap: 6px; }
.forge-actions { margin-top: 14px; display: flex; gap: 8px; }
.forge-error { color: var(--danger); background: #fbecea; padding: 8px 10px; border-radius: 4px; }
.forge-note { color: var(--muted); font-size: 12px; }
.forge-childgrid { border-collapse: collapse; font-size: 13px; }
.forge-childgrid th, .forge-childgrid td { border-bottom: 1px solid var(--line); padding: 3px 10px; text-align: left; white-space: nowrap; }
.forge-childgrid th { color: var(--muted); font-weight: 600; }
.validation-message { color: var(--danger); }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 8px 16px; background: #fbecea; color: var(--danger); }
/* icon buttons - a picture, its words in the hover text (Dimo, 17 Oct 2026) */
.forge-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.forge-icon-btn:hover { background: var(--accent-tint); }
.forge-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.forge-icon-btn:disabled { color: var(--line); background: transparent; cursor: default; }
.forge-icon-small { width: 28px; height: 28px; }
.forge-icon-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); }
.forge-icon-primary:hover { background: var(--accent-strong); }
.forge-icon-danger { color: var(--danger); }
.forge-icon-danger:hover { background: rgba(168, 50, 45, .12); }
.forge-icon-danger.forge-armed { background: var(--danger); color: #fff; }
.forge-icon { display: block; }
.forge-actions { display: flex; align-items: center; gap: 8px; }
/* rows answer to the mouse: one click shows, a double click edits */
.forge-clickable tbody tr { cursor: pointer; transition: background .1s; }
.forge-clickable tbody tr:hover { background: var(--soft); }
.forge-clickable tbody tr.forge-row-on { background: var(--on); }
/* the panel beside the list - a side sheet: the list moves over and stays live */
.forge-panel { position: fixed; top: 0; right: 0; height: 100vh; width: min(620px, 46vw); overflow-y: auto; background: var(--bg); box-shadow: -10px 0 30px rgba(15, 23, 42, .18); border-radius: 14px 0 0 14px; padding: 6px 16px 24px; z-index: 41; animation: forge-slide .22s ease-out; }
.forge-with-panel { margin-right: min(620px, 46vw); transition: margin-right .2s ease-out; }
@media (max-width: 900px) { .forge-panel { width: 100vw; border-radius: 0; } .forge-with-panel { margin-right: 0; } }
.forge-panel-bar { position: sticky; top: 0; display: flex; justify-content: flex-end; gap: 2px; padding: 4px 0; background: var(--bg); z-index: 1; }
.forge-panel .forge-recordcontrol { max-width: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
/* the sheet travels (a related row, a parent): the trail back, one crumb a record */
.forge-panel-bar { align-items: center; }
.forge-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; min-width: 0; font-size: 12px; color: var(--muted); }
.forge-crumb-btn { border: 0; background: transparent; color: var(--accent); padding: 2px 4px; border-radius: 4px; cursor: pointer; font: inherit; }
.forge-crumb-btn:hover { background: var(--accent-tint); }
.forge-crumb-sep { color: var(--muted); }
.forge-crumb-here { font-weight: 600; color: var(--ink); padding: 2px 4px; }
.forge-grow { flex: 1; }
/* a parent's link beside its picker */
.forge-field-link { grid-template-columns: 200px minmax(0, 420px) auto; justify-content: start; }
.forge-lookup { max-width: 420px; min-width: 0; }
.forge-lookup input, .forge-lookup select { min-width: 0; flex: 1 1 0; }
/* the sheet is narrower than a page: a narrower label column */
.forge-panel .forge-field { grid-template-columns: 150px minmax(0, 1fr); }
.forge-panel .forge-field-link { grid-template-columns: 150px minmax(0, 1fr) auto; }
/* the related rows - a QuickGrid each; a row with a record of its own opens it on a click */
.forge-child { overflow-x: auto; }   /* a wide related grid scrolls on its own; the record stays put */
.forge-child-head { display: flex; align-items: center; gap: 6px; margin: 22px 0 6px; }
.forge-child-head h4, .forge-recordcontrol .forge-child-head h4 { margin: 0; }
.forge-child-head .forge-scope { margin: 0; }
/* step 5b (19 Oct 2026): a record's related tables and parents as tabs */
.forge-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 22px 0 0; border-bottom: 1px solid var(--line); }
.forge-tab { border: none; background: none; font: inherit; color: var(--muted); padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.forge-tab:hover { color: var(--ink); background: var(--soft); }
.forge-tab-on { color: var(--accent-strong); border-bottom-color: var(--accent); font-weight: 500; }
.forge-tabs ~ .forge-child .forge-child-head { margin-top: 10px; }
.forge-child[hidden] { display: none; }
.forge-parent-tab { margin-top: 10px; padding: 4px 0; }
.forge-parent-tab .forge-recordcontrol h3 { font-size: 15px; color: var(--muted); }
/* step 5c (20 Oct 2026): a related table's rows edited inside the parent's form - saved with it */
.forge-rows { overflow-x: auto; }
.forge-rows-grid { border-collapse: collapse; width: 100%; font-size: 13px; }
.forge-rows-grid th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.forge-rows-grid td { padding: 3px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.forge-rows-grid input:not([type=checkbox]), .forge-rows-grid select { width: 100%; min-width: 90px; padding: 3px 6px; font: inherit; }
.forge-rows-grid .forge-lookup { display: flex; gap: 4px; min-width: 220px; }
.forge-rows-grid .forge-open { width: 1%; color: var(--accent); }
.forge-rows-grid .forge-open .forge-key { cursor: pointer; }
.forge-rows-grid .forge-row-actions { width: 1%; white-space: nowrap; }
.forge-row-new { background: var(--accent-tint); }
.forge-row-changed { background: var(--soft); }
.forge-row-deleted td { text-decoration: line-through; color: var(--muted); }
.forge-row-deleted input, .forge-row-deleted select { opacity: .5; }
.forge-row-problem td { border-bottom: 1px solid var(--line); }
.forge-rows-add { margin-top: 6px; }
.forge-childgrid .forge-open { width: 1%; color: var(--accent); }
.forge-childgrid tbody tr:not([aria-rowindex]) { display: none; }   /* QuickGrid's fill-up rows on a last page */
.forge-child-click tbody tr { cursor: pointer; transition: background .1s; }
.forge-child-click tbody tr:hover { background: var(--soft); }
/* the menu in groups (Dimo, 17 Oct 2026) - a heading opens and closes its tables */
.forge-nav .forge-menu-home { display: flex; align-items: center; gap: 8px; padding: 4px 16px 8px; }
.forge-menu-group { margin: 1px 0; }
.forge-menu-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 14px 5px 10px; border: 0; background: transparent; color: #e6ebf1; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.forge-menu-head:hover { background: var(--nav-hover); }
.forge-menu-head:focus-visible { outline: 2px solid #8fb4dc; outline-offset: -2px; }
.forge-menu-head .forge-icon { flex: none; color: #8da0b5; transition: transform .15s; }
.forge-menu-open .forge-menu-head .forge-icon { transform: rotate(90deg); }
.forge-menu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forge-menu-count { font-size: 11px; font-weight: 400; color: #8da0b5; }
.forge-nav .forge-menu-items a { padding-left: 34px; }
/* the landing page: a card a group; the open card's tables right under its row, the cards after it flow on */
.forge-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-flow: row dense; gap: 14px; margin-top: 14px; }
.forge-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 14px 16px; text-align: left; font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s; }
.forge-card:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, .12); transform: translateY(-1px); }
.forge-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.forge-card-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-ring); }
.forge-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 17px; font-weight: 600; background: hsl(var(--hue) 42% 42%); }
.forge-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.forge-card-name { font-size: 15px; font-weight: 600; }
.forge-card-meta, .forge-card-list { font-size: 12px; color: var(--muted); }
.forge-card-list { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forge-card-panel { grid-column: 1 / -1; padding: 6px 12px 10px; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); animation: forge-fade .2s ease-out; }
.forge-groupgrid { border-collapse: collapse; width: 100%; }
.forge-groupgrid th, .forge-groupgrid td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.forge-groupgrid th { font-weight: 600; color: var(--muted); }
.forge-groupgrid .forge-open { width: 1%; }
.forge-groupgrid tbody tr { cursor: pointer; transition: background .1s; }
.forge-groupgrid tbody tr:hover { background: var(--soft); }
/* the access policy (18 Oct 2026): who is using the application, a page not open to them, the rules explained */
.forge-user { margin: 0 10px 10px; padding: 8px 10px; border-radius: 10px; background: var(--user-bg); color: #c9d1db; font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.forge-user-me { display: flex; align-items: center; gap: 6px; color: #fff; }
.forge-user-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.forge-user .forge-icon-btn { color: #c9d1db; }
.forge-user .forge-icon-btn:hover { background: rgba(255, 255, 255, .12); }
.forge-user-signin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.forge-user-signin:hover { background: var(--accent-strong); }
.forge-user-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.forge-role { padding: 1px 8px; border-radius: 10px; background: #34465c; color: #e6ebf1; font-size: 11px; }
.forge-user-as { display: flex; align-items: center; gap: 6px; }
.forge-user-as select { flex: 1; min-width: 0; padding: 3px 6px; border-radius: 6px; border: 1px solid #3d5068; background: #1f2a37; color: #e6ebf1; font: inherit; }
.forge-nav .forge-user a.forge-user-access { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: #c9d1db; }
.forge-nav .forge-user a.forge-user-access:hover, .forge-nav .forge-user a.forge-user-access.active { background: transparent; color: #fff; }
.forge-user-persona { padding: 4px 8px; border-radius: 6px; background: #8a5a12; color: #fff; }
.forge-denied { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 24px 0; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.forge-denied > .forge-icon { flex: none; color: var(--danger); margin-top: 4px; }
/* a text page (7 Nov 2026, forge-pages.json): words to read, pictures of the application itself */
.forge-text { max-width: 780px; font-size: 15px; line-height: 1.6; }
.forge-text h2 { margin: 28px 0 6px; font-size: 19px; font-weight: 600; }
.forge-text h3 { margin: 22px 0 4px; font-size: 16px; font-weight: 600; }
.forge-text p { margin: 0 0 12px; }
.forge-text ul, .forge-text ol { margin: 0 0 12px; padding-left: 24px; }
.forge-text li { margin: 4px 0; }
.forge-text code { font: 13px Consolas, "Cascadia Mono", monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.forge-text a { color: var(--accent); }
.forge-text-picture { margin: 8px 0 22px; }
.forge-text-picture img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.forge-denied h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.forge-denied p { margin: 4px 0; }
.forge-denied code, .forge-locked, .forge-access-grid code { font-family: Consolas, "Cascadia Mono", monospace; }
.forge-locked { display: flex; align-items: center; gap: 6px; margin: -6px 0 10px; color: #8a5a12; }
.forge-scope { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: #8a5a12; }
/* a SQL Command page (19 Oct 2026): its parameters, Run, its rows */
.forge-command-kind { padding: 2px 10px; border-radius: 10px; background: var(--chip); color: var(--accent); font-size: 12px; }
.forge-command-params { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 6px 0 12px; }
.forge-command-param { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.forge-command-param input { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; font: inherit; color: var(--ink); min-width: 160px; }
.forge-access-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 14px 0; }
.forge-access-card h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.forge-access-scroll { overflow-x: auto; }
.forge-access-grid { border-collapse: collapse; font-size: 12px; }
.forge-access-grid th, .forge-access-grid td { padding: 4px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.forge-access-grid th { color: var(--muted); font-weight: 600; }
.forge-access-group td { padding-top: 10px; font-weight: 600; color: var(--accent); }
.forge-yes { color: #1e6b3a; background: #e9f6ee; font-family: Consolas, "Cascadia Mono", monospace; }
.forge-no { color: #8b95a3; font-family: Consolas, "Cascadia Mono", monospace; }
.forge-access-pick { margin: 6px 0 10px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
/* the Admin page: cards, as the Robot project's (backup, the policy, you) */
.forge-admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.forge-admin-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #1e6b3a; border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.forge-admin-card.forge-admin-busy { border-left-color: #b07a1e; }
.forge-admin-card.forge-admin-alert { border-left-color: var(--danger); }
.forge-admin-head { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.forge-admin-code { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.forge-admin-title { font-size: 15px; font-weight: 600; }
.forge-admin-line { font-size: 13px; overflow-wrap: anywhere; }
.forge-admin-history { margin-top: 6px; width: 100%; table-layout: fixed; }
.forge-admin-history td:last-child { overflow: hidden; text-overflow: ellipsis; }
.forge-admin-history th:first-child { width: 42%; } .forge-admin-history th:nth-child(2) { width: 18%; }
@keyframes forge-slide { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes forge-fade { from { opacity: 0; } to { opacity: 1; } }
/* a list wider than its frame (24 Oct 2026, the ISD scorecard's row 12): it scrolls sideways inside the frame, and a soft
   shadow on each edge that has more columns says so - the covers move with the content, the shadows stay with the frame
   (no script); a Cards page has no frame to scroll (forge-template.css) */
.forge-tablecontrol { background:
    linear-gradient(to right, var(--panel) 30%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--panel) 30%, transparent) right / 40px 100% no-repeat local,
    linear-gradient(to right, rgba(15, 23, 42, .3), transparent) left / 18px 100% no-repeat scroll,
    linear-gradient(to left, rgba(15, 23, 42, .3), transparent) right / 18px 100% no-repeat scroll,
    var(--panel); }
/* a picker's "add new" (24 Oct 2026, the ISD scorecard's row 19): the parent's form over the page, above the side sheet */
.forge-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(15, 23, 42, .45); overflow-y: auto; animation: forge-fade .15s ease-out; }
.forge-modal-box { width: min(720px, 100%); background: var(--bg); border-radius: 14px; box-shadow: 0 20px 50px rgba(15, 23, 42, .35); padding: 12px 14px 16px; }
.forge-modal-bar { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.forge-lookup-add { flex: 0 0 auto; }
/* an import (24 Oct 2026, the ISD scorecard's row 23): its problems row by row, or its rows added */
.forge-import input[type=file] { margin: 6px 0 10px; }
.forge-import-problems { border-left: 3px solid var(--danger); padding: 4px 12px; background: color-mix(in srgb, var(--danger) 6%, transparent); border-radius: 4px; }
.forge-import-problems ul { margin: 4px 0; padding-left: 18px; max-height: 40vh; overflow-y: auto; }
.forge-import-done { display: flex; align-items: center; gap: 6px; color: #2e7d32; font-weight: 600; }
.forge-import-ready { display: flex; align-items: center; gap: 10px; }
/* a phone (24 Oct 2026, the ISD scorecard's row 30): one column; the menu folds away behind its button (ForgeNavMenu) and
   comes over the page when asked; a form's labels sit above their fields; every list is cards (forge-template.css) */
.forge-menu-button { display: none; }
@media (max-width: 800px) {
    .forge-shell { grid-template-columns: minmax(0, 1fr); }
    .forge-nav { position: fixed; top: 0; left: -300px; width: 280px; max-width: 86vw; height: 100vh; z-index: 40; padding-top: 60px; transition: left .2s ease-out; }
    .forge-nav:has(.forge-menu-is-open) { left: 0; box-shadow: 8px 0 28px rgba(15, 23, 42, .35); }
    .forge-menu-button { display: flex; align-items: center; justify-content: center; position: fixed; top: 10px; left: 10px; z-index: 41; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--nav); color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 23, 42, .25); }
    main { padding: 62px 12px 32px; }
    .forge-recordcontrol { padding: 12px; }
    .forge-field, .forge-panel .forge-field { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .forge-field-link, .forge-panel .forge-field-link { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
    .forge-field-link > label { grid-column: 1 / -1; }
    .forge-field input:not([type=checkbox]), .forge-field select, .forge-field textarea { max-width: none; width: 100%; }
    .forge-field input[type=checkbox] { justify-self: start; }
}