/* One hosted office row. Original utility controls live in the disclosure;
   native and narrow shells retain their existing presentation and ownership. */
@media (min-width: 900px) {
  html:not([data-desktop-models-host="true"]) body.office-tools-active header.topbar {
    min-height: 56px;
    padding: 5px 16px;
    gap: 6px 12px;
  }
  html:not([data-desktop-models-host="true"]) body.office-tools-active header.topbar .wordmark {
    flex: none;
    font-size: 13px;
    letter-spacing: 1px;
  }
  html:not([data-desktop-models-host="true"]) body.office-tools-active header.topbar .omni {
    flex: 1 1 160px;
    min-width: 160px;
    max-width: none;
    margin-inline: 0;
  }
  html:not([data-desktop-models-host="true"]) body.office-tools-active header.topbar :is(button, input) {
    min-height: 44px;
  }
  .office-tools {
    position: relative;
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
  }
  .office-tools > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
  }
  .office-tools > summary::-webkit-details-marker { display: none; }
  .office-tools > summary::after { content: '⌄'; }
  .office-tools > summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }
  #office-tools-surface { font-weight: 600; }
  .office-tools-status {
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.4;
    background: var(--surface-soft);
    color: var(--muted);
  }
  .office-tools-status[data-warning="yes"] {
    background: var(--notice-bg);
    color: var(--notice-ink);
    border: 1px solid var(--amber);
  }
  .office-tools-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    width: min(500px, calc(100vw - 32px));
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 8px 28px var(--shadow);
    white-space: normal;
  }
  .office-tools-panel #portal-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 10px;
    margin: 0 0 10px;
    overflow: visible;
    border-bottom: 1px solid var(--line);
  }
  .office-tools-panel #who {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
  }
  .office-tools-panel #who .actor { overflow-wrap: anywhere; }
  .office-tools-panel #who .tag { max-width: none; overflow: visible; white-space: normal; }
  .office-tools-panel #banner {
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    margin: 0;
  }
  .office-tools-panel #banner-extra { display: block; flex: 1 1 100%; }
  .office-tools-panel #how-toggle { margin-left: 0; min-height: 44px; }
  .office-tools-panel #how { margin: 12px 0 0; padding: 0; }
}
