/* The Sheet look for signed-in GMI pages: a word list on the left, a white sheet for the work.
   Modeled on the Sheet > Offers mock. Colors come from palettes.css, so every rule here works in every site color. */
:root { --ui: 'Albert Sans', system-ui, sans-serif; --focus: var(--link); }

html[data-palette] body { margin: 0; font-family: var(--ui); color: var(--ink); background: var(--wall); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* High detail: .hi only shows when it is on, .lo only when it is off */
html[data-detail="off"] .hi { display: none !important; }
html[data-detail="high"] .lo { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Layout */
.sheet-app { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; z-index: 20; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 22px 16px 18px 22px; overflow-y: auto; }
.side .logo { display: block; flex: none; height: 26px; margin-bottom: 26px; text-decoration: none; }
.side .look { flex: none; }
.side button.logo { padding: 0; background: none; border: 0; border-radius: 4px; cursor: pointer; }
.side .menu.look-menu { position: fixed; top: 58px; left: 14px; right: auto; width: 292px; max-height: calc(100vh - 72px); padding: 6px 14px 14px; }
.look-menu .menu-name { margin: 0 -4px 10px; padding: 8px 4px 10px; }
.look-menu h3 { margin: 12px 0 6px; font-size: 14px; font-weight: 600; }
.look-menu .swatches { margin: 0; gap: 8px; }
.look-menu .swatch { display: flex; width: 44px; height: 30px; padding: 0; border-radius: 8px; }
.look-menu .swatch:hover { background: none; }
.look-menu .chips button { width: auto; height: 30px; padding: 0 12px; font-size: 13.5px; border-radius: 15px; }
.look-menu .chips button[aria-pressed="true"]:hover { background: var(--primary); }
.look-menu .look-reset { width: auto; margin-top: 12px; padding: 0; font-size: 13.5px; color: var(--link); text-decoration: underline; }
.look-menu .look-reset:hover { background: none; }
.words { flex: 0 1 auto; }
.words a { display: block; padding: 8px 10px; margin-left: -10px; font-size: 15.5px; font-weight: 500; line-height: 1.3; text-decoration: none; color: color-mix(in srgb, var(--ink) 82%, var(--wall)); border-radius: 8px; }
.words a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.words a.active { font-weight: 700; color: var(--link); background: #fff; }
.words .group { margin-top: 18px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, var(--wall)); }
.words .group > a, .words summary { font-size: 14.5px; color: var(--muted); }
.words summary { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; margin-left: -10px; font-weight: 500; line-height: 1.3; list-style: none; border-radius: 8px; cursor: pointer; }
.words summary::-webkit-details-marker { display: none; }
.words summary::after { content: ""; width: 7px; height: 7px; margin: -3px 3px 0 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .12s; }
.words details[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.words summary:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.words details a { padding-left: 20px; font-size: 14.5px; }
.side .gm { display: flex; flex: none; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.side .gm img { height: 34px; }

.sheet { min-width: 0; margin: 10px 10px 10px 0; padding: 28px 36px 44px; color: var(--ink); background: #fff; border-radius: 16px; }
.sheet a { color: var(--link); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.top-tools { position: absolute; top: 28px; right: 36px; }
.sheet { position: relative; }
.top-title { min-width: 0; }
.sheet h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.sheet h1:focus { outline: none; }
.subtitle { margin: 3px 0 0; font-size: 14.5px; color: var(--muted); }
.tools { display: flex; flex: none; align-items: center; gap: 16px; }
.persona-note { font-size: 13.5px; font-weight: 600; color: var(--late); white-space: nowrap; }

.detail-switch { display: inline-flex; align-items: center; gap: 8px; padding: 0; font: inherit; font-size: 14px; color: inherit; white-space: nowrap; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.detail-switch .track { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--switch-off, #B4BED2); transition: background .15s; }
.detail-switch .thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.detail-switch[aria-checked="true"] .track { background: var(--switch-on); }
.detail-switch[aria-checked="true"] .thumb { transform: translateX(14px); }

.user { position: relative; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--primary-ink); background: var(--primary); border: 0; border-radius: 50%; cursor: pointer; }
.menu { position: absolute; z-index: 1300; top: calc(100% + 8px); right: 0; min-width: 240px; max-height: min(70vh, 560px); padding: 6px; overflow-y: auto; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 30, 70, .18); }
.menu button, .menu summary, .menu > a { display: block; width: 100%; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 400; text-align: left; color: inherit; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.menu button:hover, .menu summary:hover, .menu > a:hover { background: var(--hover); }
.menu button.on { font-weight: 600; }
.menu form { margin: 0; }
.menu-name { margin: 0 0 6px; padding: 8px 10px 10px; font-size: 14px; font-weight: 600; line-height: 1.35; border-bottom: 1px solid var(--line); }
.menu-name span { font-size: 13px; font-weight: 400; color: var(--muted); }
.menu-more button { padding-left: 20px; font-size: 13.5px; }
.menu-more summary { list-style: none; }
.menu-more summary::-webkit-details-marker { display: none; }
.menu-sub { margin: 8px 0 2px; padding: 6px 10px 2px 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.menu-note { margin-left: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- The standard page */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }
.spacer { flex: 1; }
.page-body { margin-top: 12px; }
.search { position: relative; display: block; flex: 0 1 340px; margin: 0; }
.search svg { position: absolute; top: 10px; left: 12px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 12px 0 40px; font: 400 15px var(--ui); color: var(--ink); background: var(--wall); border: 0; border-radius: 10px; }
.search input:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 34px; padding: 0 14px; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 17px; cursor: pointer; white-space: nowrap; }
.chips button:hover { background: var(--wall); }
.chips button[aria-pressed="true"] { font-weight: 600; color: var(--primary-ink); background: var(--primary); }
.ghost { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; border: 1.5px solid var(--field-line); border-radius: 10px; cursor: pointer; white-space: nowrap; }
.ghost:hover { border-color: var(--ink); }
.ghost[aria-expanded="true"] { border-color: var(--ink); }
.filters { display: none; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; font-size: 14px; }
html[data-detail="high"] .filters, .filters.open { display: flex; }
/* Mud wraps each field in a .mud-select that grows to fill the row, which pushed the fields apart. They keep their own width and sit together. */
.filters .mud-select { flex: 0 0 auto; width: auto; margin: 0; }
.filters .mud-input-control { width: 170px; margin: 0; }
.filters .chips button { height: 30px; padding: 0 12px; font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters .sum { margin-left: auto; color: var(--muted); }

/* A section of a page: a plain heading and whatever is under it */
.sheet h2, .sec-title { margin: 26px 0 4px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.sec-note { margin: 0 0 8px; font-size: 14.5px; color: var(--muted); }
.note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

/* A few plain numbers */
.numbers { display: flex; flex-wrap: wrap; gap: 14px 56px; margin-top: 22px; }
.numbers .n { min-width: 0; }
.numbers b { display: block; font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.numbers span { font-size: 14.5px; color: var(--muted); }
.numbers .wide { flex: 0 1 320px; min-width: 240px; }
.numbers .late b { color: var(--late); }
.numbers .soon b { color: var(--soon); }
.numbers a { text-decoration: none; color: inherit; }
.numbers a:hover span { color: var(--ink); }
.meter { height: 6px; margin-top: 8px; overflow: hidden; background: var(--line); border-radius: 3px; }
.meter i { display: block; height: 100%; background: var(--ray-deep); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px 10px; margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis div, .kpis a { font-size: 12.5px; line-height: 1.25; color: var(--muted); text-decoration: none; }
.kpis b { display: block; margin-bottom: 3px; font-size: 21px; font-weight: 700; color: var(--ink); }
.kpis .late b { color: var(--late); }
.kpis .soon b { color: var(--soon); }

/* Home */
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 44px; margin-top: 8px; }
.needs { margin: 0; padding: 0; list-style: none; }
.needs li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.needs .gmi-logo { margin: 0; }
.needs b { display: block; font-size: 16px; font-weight: 600; }
.needs .sub { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.needs .act { display: flex; align-items: center; gap: 14px; }
.when { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.when.late { color: var(--late); }
.when.soon { color: var(--soon); }
.next { margin: 0; padding: 0; list-style: none; }
.next li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.next .gmi-logo { flex: none; margin: 0; }
.next small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.tables { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.empty { padding: 18px 0; font-size: 15px; color: var(--muted); }

/* Offer cell: logo, then two lines */
.cell { display: flex; align-items: center; gap: 14px; min-width: 240px; white-space: normal; }
.cell .gmi-logo { margin: 0; }
.cell b { font-weight: 600; }
.cell small { display: block; font-size: 13.5px; color: var(--muted); }
.nowrap { white-space: nowrap; }
.dim { color: var(--muted); }
.id { font-weight: 600; color: var(--link); white-space: nowrap; text-decoration: none; }
.sheet a.id:hover { text-decoration: underline; }

/* Status: a dot and a word, or just a colored word when something needs attention */
.stage { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.stage i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.stage.strike { text-decoration: line-through; color: var(--muted); }
.flag { display: inline-flex; align-items: center; margin-left: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.flag.late, .flag.bad { color: var(--late); }
.flag.soon, .flag.warn { color: var(--soon); }
.flag.done { color: var(--muted); font-weight: 500; }
.flag.neutral, .flag.active { color: var(--muted); font-weight: 500; }

/* ---------- MudBlazor components inside the sheet */
.sheet .mud-paper { background: transparent; box-shadow: none !important; border-radius: 0; }
.sheet .mud-paper.mud-paper-outlined { border: 0; }
.sheet .mud-paper[class*="pa-"] { padding: 0 !important; }
.sheet .mud-typography-h4 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.sheet .mud-typography-h5 { font-size: 22px; font-weight: 700; }
.sheet .mud-typography-h6 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.sheet .mud-typography-subtitle1, .sheet .mud-typography-subtitle2 { font-size: 15px; font-weight: 600; }
.sheet .mud-typography-body2 { font-size: 14.5px; }
.sheet .mud-typography-caption { font-size: 13px; color: var(--muted); }
.sheet code { padding: 0 4px; font-size: .92em; color: var(--ink); background: var(--wall); border-radius: 4px; }

/* Plain tables */
.sheet .mud-table { background: transparent; box-shadow: none; border-radius: 0; }
.sheet .mud-table-outlined { border: 0; }
.sheet .mud-simple-table table * tr > th,
.sheet .mud-simple-table table * tr th,
.sheet .mud-table-root .mud-table-head .mud-table-cell { padding: 9px 14px 9px 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--muted); white-space: nowrap; background: #fff; border-bottom: 1.5px solid var(--field-line); }
.sheet .mud-simple-table table * tr > td,
.sheet .mud-table-root .mud-table-body .mud-table-cell { padding: 11px 14px 11px 0; font-size: 14.5px; line-height: 1.35; color: inherit; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sheet .mud-table-dense * .mud-table-row .mud-table-cell { padding: 7px 10px 7px 0; font-size: 13.5px; }
.sheet th.text-right .column-header { justify-content: flex-end; }
.sheet .mud-simple-table.mud-dense table * tr > td, .sheet .mud-simple-table.mud-table-dense table * tr > td { padding: 8px 14px 8px 0; }
.sheet .mud-table-root > .mud-table-body:last-child > .mud-table-row:last-child > .mud-table-cell { border-bottom: 1px solid var(--line); }
.sheet .text-right, .sheet th.text-right, .sheet td.text-right { text-align: right !important; }
.sheet .num { text-align: right; }
.sheet .mud-table-pagination-toolbar { height: 46px; font-size: 13.5px; color: var(--muted); border-top: 0; }
.sheet .mud-data-grid .mud-table-cell .column-header { font-weight: 600; }
.sheet .mud-data-grid .mud-table-toolbar { display: none; }
.sheet .mud-data-grid .mud-table-container { overflow-x: auto; }

/* Tabs: plain words with a line under the current one */
.sheet .mud-tabs { box-shadow: none; }
.sheet .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; }
.sheet .mud-tab { flex: none; width: auto; min-width: 0 !important; min-height: 40px; padding: 6px 14px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); text-transform: none; }
.sheet .mud-tabs-tabbar-wrapper { width: auto; }
.sheet .mud-tab .mud-tab-badge { position: static; display: inline-flex; margin-left: 6px; }
.sheet .mud-tab .mud-badge-wrapper { position: static; display: inline-flex; width: auto; height: auto; }
.sheet .mud-tab .mud-badge { position: static; inset: auto; min-width: 18px; height: 18px; padding: 0 5px; font-size: 12px; line-height: 18px; border-radius: 9px; }
.sheet .mud-tab .mud-badge.mud-theme-primary { color: var(--ink); background: var(--wall); }
.sheet .mud-tab:hover { background: none; color: var(--ink); }
.sheet .mud-tab.mud-tab-active { font-weight: 700; color: var(--ink); }
.sheet .mud-tab-slider { background: var(--ink); }
.sheet .mud-tabs-panels { background: transparent; }
.sheet .mud-tabs-panels .mud-tabs-panel { padding: 14px 0 0 !important; }

/* Buttons */
.sheet .mud-button-root { font-weight: 600; letter-spacing: 0; text-transform: none; }
.sheet .mud-button-filled, .sheet .mud-button-outlined { border-radius: 10px; box-shadow: none; }
.sheet .mud-button-outlined:not([class*="mud-button-outlined-error"]):not([class*="mud-button-outlined-success"]) { color: var(--ink); background: #fff; border: 1.5px solid var(--field-line); }
.sheet .mud-button-outlined:hover { border-color: var(--ink); background: #fff; }
.mud-button-filled-primary:hover { background-color: var(--primary-hover) !important; }

/* Fields, chips, toggles */
.sheet .mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined { font-size: 14px; }
.sheet .mud-toggle-group { border-radius: 10px; }
.sheet .mud-toggle-item { text-transform: none; font-weight: 500; letter-spacing: 0; }
.sheet .mud-chip { font-weight: 500; }
.sheet .mud-expand-panel { border-bottom: 1px solid var(--line); border-radius: 0 !important; background: transparent; box-shadow: none; }
.sheet .mud-expand-panel-header { padding: 12px 0; font-size: 15px; font-weight: 500; }
.sheet .mud-expand-panel-content { padding: 0 0 14px; }
.sheet .mud-alert { font-size: 14px; }
.sheet .mud-divider { border-color: var(--line); }

/* The account pages still use Bootstrap buttons and fields */
.sheet .btn-primary { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); border-radius: 10px; font-weight: 600; }
.sheet .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.sheet .btn-outline-secondary { color: var(--ink); background: #fff; border: 1.5px solid var(--field-line); border-radius: 10px; font-weight: 600; }
.sheet .btn-outline-secondary:hover { color: var(--ink); background: #fff; border-color: var(--ink); }
.sheet .form-control { border-color: var(--field-line); border-radius: 10px; }
.sheet .form-control:focus { border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 20%, transparent); }
.sheet .nav-pills .nav-link, .sheet .nav-link { color: var(--ink); border-radius: 8px; }
.sheet .nav-pills .nav-link.active { color: var(--link); font-weight: 700; background: var(--hover); }

/* Help panel and dialogs */
.gmi-help-panel { font-family: var(--ui); }
.mud-dialog { font-family: var(--ui); }
.mud-dialog .mud-button-root { text-transform: none; letter-spacing: 0; }

/* Offer detail */
.offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14.5px; }
.offer-head .gmi-logo { margin: 0; }
.form-sec { margin: 14px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sheet .mud-typography.form-sec { font-size: 15px; font-weight: 700; color: var(--ink); }
/* Offer form groups: each is a card with its own accent (fixed, so it reads the same in every colorway). */
.form-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 2px; }
.form-cards > .wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .form-cards { grid-template-columns: minmax(0, 1fr); } }
.form-card { --fc: #3F6DB3; position: relative; padding: 12px 16px 14px 20px; background: color-mix(in srgb, var(--fc) 5%, #fff); border: 1px solid color-mix(in srgb, var(--fc) 20%, var(--line)); border-radius: 10px; overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--fc); }
.form-card .fc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--fc) 75%, var(--ink)); }
.form-card .fc-h .mud-icon-root { color: var(--fc); }
.form-card .mud-input-outlined { background: #fff; }
.fc-identity { --fc: #3F6DB3; }
.fc-money { --fc: #2E7D4A; }
.fc-product { --fc: #B4690E; }
.fc-structure { --fc: #6D52C2; }
.fc-refs { --fc: #6B7280; }

/* Row actions in grids (Milestones Start / Done): small but clearly buttons. */
.sheet .mud-button-root.row-btn { min-width: 0; padding: 2px 10px 2px 8px; font-size: 12.5px; line-height: 1.5; border-radius: 6px; background: #fff; }
.sheet .mud-button-root.row-btn .mud-button-icon-start { margin-right: 4px; margin-left: 0; }
.sheet .mud-button-root.row-btn .mud-button-icon-start svg { font-size: 16px; }
.sheet .mud-button-root.row-btn-done { color: #2E7D4A; border-color: color-mix(in srgb, #2E7D4A 45%, #fff); }
.sheet .mud-button-root.row-btn-done:hover { background: color-mix(in srgb, #2E7D4A 8%, #fff); }

/* Planning list */
.plan-item b { display: block; font-weight: 600; }
.plan-item small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.plan-item .flag { margin-left: 0; }
.plan-item .over { color: var(--late); }

/* Charts and boxes */
.chart-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 36px; margin-top: 8px; }
html[data-detail="high"] .chart-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note-box { padding: 16px 18px; font-size: 14.5px; line-height: 1.5; border: 1px dashed var(--field-line); border-radius: 10px; }
.note-box ol { margin: 8px 0 0; padding-left: 1.2em; }

/* Site settings: appearance */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.swatch { display: flex; width: 54px; height: 36px; padding: 0; overflow: hidden; background: none; border: 0; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.swatch i { flex: 1; height: 100%; }
/* Bootstrap drops the outline on a clicked button, so this one has to insist. */
.swatch[aria-pressed="true"] { outline: 2.5px solid var(--ink) !important; outline-offset: 2px; }
.swatch:disabled, .design-tile:disabled { cursor: default; }
.design-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; margin-top: 8px; }
.design-tile { display: block; padding: 0 0 12px; font: inherit; text-align: left; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.design-tile b, .design-tile small { display: block; padding: 0 12px; }
.design-tile b { margin-top: 10px; font-size: 15px; font-weight: 700; }
.design-tile small { margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.design-tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

/* Development Plan */
.plan-top { display: flex; align-items: center; gap: 22px; min-height: 40px; padding-right: 70px; }
.plan-phase { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 26px; }
.plan-phase h2 { margin: 0; }
.plan-phase span { font-size: 14px; color: var(--muted); }

/* An inline edit form in a grid row */
.grid-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0; }
.grid-edit .mud-select { flex: 0 0 auto; width: auto; }
.grid-edit .mud-input-control { flex: 0 0 auto; width: 170px; margin: 0; }
.grid-edit .mud-input-control.wide { width: 250px; }
.grid-edit .mud-input-control-boolean-input { width: auto; }

/* Wide tables scroll on their own */
.table-scroll { overflow-x: auto; }

/* ---------- Smaller screens */
@media (max-width: 1240px) {
  .tables { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
  .sheet-app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 14px 16px 8px; }
  .side .logo { margin-bottom: 10px; }
  .words { display: flex; gap: 10px; overflow-x: auto; }
  .words a { margin: 0; white-space: nowrap; }
  .words .group, .side .gm { display: none; }
  .sheet { margin: 0; padding: 20px 16px 36px; border-radius: 14px 14px 0 0; }
  .detail-label { display: none; }
  .numbers { gap: 16px 26px; }
  .needs li { grid-template-columns: 56px minmax(0, 1fr); }
  .needs .act { grid-column: 2; justify-content: space-between; }
  .m-hide { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-app *, .sheet-app *::before, .sheet-app *::after { animation: none !important; transition: none !important; }
}

/* Milestones: pick rows for bulk actions and the agenda. */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 12px; background: var(--hover); border: 1px solid var(--line); border-radius: 10px; }
.bulk-bar .grow { flex: 1 1 auto; }
.row-pick { width: 16px; height: 16px; margin: 0 10px 0 0; accent-color: var(--primary); cursor: pointer; flex: none; }
