.desk-header ~ .standalone-shell .standalone-spread { display: block; max-width: 1190px; }
.desk-header ~ .standalone-shell .standalone-spread .workspace { padding-inline: 0; }
.standalone-shell .top-actions { min-width: 0; }
.standalone-shell [data-action="tool-organize"] { max-width: 30ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standalone-shell .workspace-project-title { max-width: min(35vw, 46ch); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
@media screen and (max-width: 950px) {
  .desk-header ~ .standalone-shell .standalone-spread { padding-inline: var(--desk-pad); }
}
@media screen and (max-width: 640px) {
  .standalone-shell .workspace-save { display: none; }
  .standalone-shell .topbar { flex-flow: row wrap; align-items: center; gap: 6px; }
  .standalone-shell [data-action="tool-organize"] { max-width: 14ch; }
  .standalone-shell .workspace-project-title { max-width: 27vw; }
}
@media print {
  .desk-header ~ .standalone-shell .standalone-spread { max-width: none; padding: 0; }
}

.tool-continuation { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }

.tool-topbar .tool-switch select {
  max-width: 100%; min-height: 34px; padding: 4px 8px;
  border: 1px solid var(--desk-rule); border-radius: 3px;
  background: var(--desk-paper); color: var(--ink); font: inherit; cursor: pointer;
}
.tool-topbar .tool-switch select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media screen and (max-width: 640px) {
  .desk-header ~ .standalone-shell .tool-topbar { display: flex; align-items: center; flex-wrap: wrap; }
  .tool-topbar .breadcrumbs { flex: 1 1 98px; }
  .tool-topbar .top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .standalone-shell .tool-topbar .workspace-project-title { max-width: min(24vw, 22ch); }
  .tool-topbar .tool-switch { max-width: 124px; }
}

@media screen {
  .desk-header ~ .standalone-shell .standalone-spread {
    max-width: 1320px;
    padding-inline: clamp(22px, 5.2vw, 76px);
  }
  .desk-header ~ .standalone-shell .standalone-spread .workspace {
    padding: clamp(20px, 2.3vw, 34px) 0 42px;
  }
  .standalone-shell .page-heading {
    align-items: center;
    border: 0;
    padding: 0;
    margin: 0 0 18px;
  }
  .standalone-shell .page-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.2;
    letter-spacing: -.045em;
    color: #29342c;
  }
  .standalone-shell .workspace .page-description { color: #555e53; }
  .standalone-shell .panel { border-radius: 4px; }
  .standalone-shell .metrics {
    gap: 0;
    border-block: 1px solid #b6bdad;
    background: #f2f2e9;
  }
  .standalone-shell .metric {
    min-height: 106px;
    padding: 14px clamp(14px, 1.8vw, 25px);
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .standalone-shell .metric + .metric { border-left: 1px solid #d5d8ca; }
  .standalone-shell .metric-label { color: #455449; font-size: 13px; }
  .standalone-shell .metric-value { font-size: clamp(24px, 2.5vw, 36px); }
  .standalone-shell .metric[data-tone="warning"] { background: #f6f0e4; }
  .standalone-shell .estimate-ledger { border-top: 2px solid #52604e; }
  .standalone-shell .estimate-ledger .panel-header { min-height: 56px; }
  .standalone-shell .estimate-ledger th[scope="col"] { background: #f5f4ef; color: #535b50; }
  .standalone-shell .fde-cost-table tbody tr:focus-within { background: #f6f7ef; }
  .standalone-shell .proposal { border-top-color: #9c4a35; border-radius: 2px; }
  .standalone-shell .proposal-header .eyebrow { color: #89412c; }
  .standalone-shell .proposal-header h2 { color: #33392f; overflow-wrap: anywhere; }
  .standalone-shell .proposal-budget { background: #f2f1e7; border-color: #d6d8c9; }
  .standalone-shell .value-reference input:invalid { border-color: #a34c32; }
  .standalone-shell :is(button,a,summary,select):focus-visible {
    outline: 2px solid #855138;
    outline-offset: 2px;
  }
}
@media screen and (max-width: 640px) {
  .desk-header ~ .standalone-shell .standalone-spread { padding-inline: var(--desk-pad); }
  .standalone-shell .page-heading { align-items: flex-start; gap: 5px; margin-bottom: 13px; }
  .standalone-shell .page-heading h1 { margin-bottom: 5px; }
  .standalone-shell .metric { min-height: 0; padding: 12px; }
  .standalone-shell .metric-note { margin-top: 2px; }
}
@media screen and (max-width: 475px) {
  .standalone-shell .metric:last-child:nth-child(odd) {
    display: flex;
    flex-flow: row wrap;
    gap: 4px 9px;
    align-items: baseline;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid #d5d8ca;
  }
  .standalone-shell .metric:last-child .metric-value { font-size: 17px; margin: 0; }
  .standalone-shell .metric:last-child .fde-pending-link { margin: 0 0 0 auto; }
}
