/* Marina: Home and permanent Staffmor presence. Presentation companion only.
   Load after the existing communication stylesheet. Do not resize the dock. */
.office-console-shell,.remote-join,.office-loading {font-family:var(--sans);font-optical-sizing:auto;font-kerning:normal;font-synthesis:none}
.office-console-shell :is(h1,h2,h3,button,input,textarea,select),.remote-join :is(h1,h2,h3,button,input,select) {font-family:var(--sans)}
.office-console-shell :is(.remote-page-head h1,.priority-detail h1,.answer-inbox h1) {font:600 1.25rem/1.35 var(--sans);letter-spacing:-.015em}
.office-console-shell .rail .org-name {font-weight:600}
.office-console-shell .rail .brand strong {font:500 1.5rem/1.2 var(--serif);letter-spacing:-.025em}
.office-console-shell .guide-head .who strong {font:450 1.375rem/1.2 var(--serif);letter-spacing:-.025em}
.office-console-shell .rail .comm-connection {color:var(--rail-muted)}
.office-console-shell .rail .comm-connection strong {color:var(--rail-ink)}
.office-console-shell .rail .rail-permanent>:is(a,.rail-team-link):hover {background:var(--rail-hover);color:var(--rail-ink)}
.office-console-shell .rail .rail-permanent>:is(a,.rail-team-link)[aria-current='page'],
.office-console-shell .rail .rail-permanent>:is(a,.rail-team-link)[aria-current='page']:hover {background:var(--rail-selected);color:var(--rail-selected-ink);font-weight:600}
.office-console-shell .home-dashboard .home-dashboard-content {
 display:grid;grid-template-columns:minmax(252px,.95fr) minmax(0,1.4fr);
 grid-template-areas:"heading heading" "inbox priorities" "apps priorities";
 gap:12px 18px;align-items:start;
}
.office-console-shell .home-dashboard-heading {grid-area:heading;min-height:28px}
.office-console-shell .home-dashboard-heading h1 {font:450 1.625rem/1.25 var(--serif);letter-spacing:-.025em;color:var(--ink)}
.office-console-shell .home-dashboard .home-dashboard-grid {display:contents}
.office-console-shell .home-dashboard-inbox {grid-area:inbox;gap:6px;grid-template-rows:auto auto}
.office-console-shell .home-dashboard .home-focus-priorities {grid-area:priorities;align-self:stretch;align-content:start;grid-template-rows:auto auto;gap:6px}
.office-console-shell .home-dashboard :is(.home-dashboard-inbox-head,.home-focus-priorities-head) {min-height:28px}
.office-console-shell .home-dashboard .home-dashboard-inbox-link {
 display:grid;grid-template-columns:92px minmax(0,1fr);align-content:center;align-items:center;
 gap:6px 14px;min-height:152px;padding:14px;text-align:left;border-radius:10px;
 background:color-mix(in srgb,var(--brass-soft) 35%,var(--surface));
}
.office-console-shell .home-dashboard-inbox-link .home-dashboard-pose {
 grid-column:1;grid-row:1 / span 4;width:92px;height:124px;max-width:100%;object-fit:contain;
}
.office-console-shell .home-dashboard-inbox-link :is(.home-dashboard-inbox-title,.home-dashboard-inbox-state,.home-dashboard-inbox-open) {grid-column:2;margin:0}
.office-console-shell .home-dashboard-inbox-title {font:600 1.125rem/1.35 var(--sans)}
.office-console-shell .home-dashboard-inbox-state {font:400 .875rem/1.5 var(--sans)}
.office-console-shell .home-dashboard-inbox-open {min-height:32px;text-decoration:none}
.office-console-shell .home-dashboard-inbox-open::after {content:'\2192';margin-left:8px}
.office-console-shell .home-dashboard-inbox-count {grid-column:2;justify-self:start;min-width:28px;min-height:28px;font-size:.9375rem;border-radius:6px}
.office-console-shell .home-dashboard .home-focus-priority-list {background:var(--surface);border-radius:10px;overflow:hidden}
.office-console-shell .home-dashboard .home-focus-priority-link {min-height:74px;padding:11px 12px}
.office-console-shell .home-dashboard .home-focus-priority-title {color:var(--ink)}
.office-console-shell .home-dashboard .home-focus-next {margin-bottom:8px;min-height:28px;padding:4px 8px}
.office-console-shell .home-dashboard .comm-connected-apps {grid-area:apps;padding:12px;border-radius:10px;background:var(--surface)}
.office-console-shell .home-dashboard .comm-connected-apps-head {gap:8px;margin-bottom:8px}
.office-console-shell .home-dashboard .comm-connected-apps-head h2 {font-size:.9375rem;color:var(--ink)}
.office-console-shell .home-dashboard .comm-connected-apps-actions .btn {padding:4px 8px;min-height:32px}
.office-console-shell .comm-connected-apps-list {grid-template-columns:minmax(0,1fr);gap:0}
.office-console-shell .comm-app-card {background:none;border:0;border-radius:0;padding:9px 0;grid-template-columns:28px minmax(0,1fr) max-content;gap:3px 8px}
.office-console-shell .comm-app-card+.comm-app-card {border-top:1px solid var(--line)}
.office-console-shell .comm-app-icon {grid-row:1;width:28px;height:28px;border-radius:6px}
.office-console-shell .comm-app-name {grid-column:2;font-size:.875rem}
.office-console-shell .comm-app-state {grid-column:3;grid-row:1;font-size:.75rem;text-align:right}
.office-console-shell .comm-app-card:not(:has(>.comm-app-icon)) {grid-template-columns:minmax(0,1fr) max-content}
.office-console-shell .comm-app-card:not(:has(>.comm-app-icon))>.comm-app-name {grid-column:1}
.office-console-shell .comm-app-card:not(:has(>.comm-app-icon))>.comm-app-state {grid-column:2}
.office-console-shell .comm-app-note {margin-top:8px;font-size:.8125rem;line-height:1.45}

/* The context panel belongs to the reading region. Its own scroll and controls
   never cover or resize the common console. Runtime retains the content nodes. */
.office-console-shell.has-staffmor-context .office-reading-pane {
 position:relative;display:grid;grid-template-columns:minmax(0,1fr) 232px;gap:0;padding:0;overflow:hidden;
}
.office-reading-body {display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px var(--office-page-inset) 12px}
.office-reading-body>* {min-width:0;flex:none}
.office-reading-body>.remote-conversation {flex:1;min-height:0}
.office-console-shell .office-reading-pane>.staffmor-context {
 position:static;min-width:0;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;
 width:auto;height:auto;padding:16px 16px 18px;border-left:1px solid var(--line);background:var(--surface);box-shadow:none;
}
.staffmor-context-head {display:flex;align-items:center;gap:10px;padding:0 0 14px;border-bottom:1px solid var(--line)}
.staffmor-context-head>img {width:32px;height:32px;object-fit:contain;flex:none}
.staffmor-context-head>div {flex:1;min-width:0}
.office-console-shell .staffmor-context-head h2 {margin:0;font:450 1.375rem/1.2 var(--serif);letter-spacing:-.025em;color:var(--ink)}
.staffmor-context-head .context-location {margin:2px 0 0;font:400 .8125rem/1.4 var(--sans);color:var(--muted);overflow-wrap:anywhere}
.staffmor-context-head .btn {min-width:32px;min-height:32px;padding:4px;flex:none}
.staffmor-context-intro {display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:center;margin:16px 0}
.staffmor-context-intro>img {width:52px;height:80px;object-fit:contain}
.staffmor-context-intro>p {margin:0;font:400 .875rem/1.5 var(--sans);color:var(--ink)}
.staffmor-context-status {display:grid;gap:6px;margin:0 0 18px}
.staffmor-context-status :is(p,.comm-activity,.comm-connection) {margin:0;font-size:.8125rem;line-height:1.45;color:var(--muted)}
.staffmor-context-section {padding:14px 0;border-top:1px solid var(--line)}
.staffmor-context-section h3 {margin:0 0 8px;font:600 .8125rem/1.4 var(--sans);color:var(--ink)}
.staffmor-context-section p {margin:0;font:400 .875rem/1.5 var(--sans);color:var(--muted)}
.staffmor-context-links {display:grid;gap:4px;list-style:none;margin:0;padding:0}
.staffmor-context-links .btn {display:block;width:100%;text-align:left;padding:8px 0;min-height:36px;color:var(--ink);font:500 .875rem/1.45 var(--sans);overflow-wrap:anywhere}
.staffmor-context-talk {width:100%;min-height:40px;margin-top:12px;font:600 .875rem/1.4 var(--sans)}
.staffmor-context-restore {display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:5px 9px;white-space:nowrap}
.staffmor-context-restore>img {width:24px;height:24px;object-fit:contain}
.office-console-shell.context-minimized .office-reading-pane {grid-template-columns:minmax(0,1fr)}
.office-console-shell.context-minimized .office-reading-pane>.staffmor-context {display:none}
.office-history-recovery {display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;padding:9px 12px;margin:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:400 .875rem/1.45 var(--sans);flex:none}
.office-history-recovery .btn {min-height:32px;padding:5px 10px;flex:none}
.comm-pair-dialog {width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 16px 70px #0004}
.comm-pair-dialog::backdrop {background:#0007}
.comm-pair-head {display:flex;align-items:center;justify-content:space-between;gap:12px}
.comm-pair-head h2 {margin:0;font:600 1.125rem/1.35 var(--sans)}
.comm-pair-head .btn {min-width:36px;min-height:36px;padding:5px}
.comm-pair-dialog p {font:400 .9375rem/1.55 var(--sans);color:var(--muted);margin:14px 0}
.comm-pair-code {display:block;padding:20px 12px;margin:18px 0;border:1px solid var(--line);border-radius:10px;background:var(--ground);text-align:center;font:600 1.875rem/1.3 ui-monospace,monospace;letter-spacing:.12em;color:var(--ink);overflow-wrap:anywhere}
.comm-pair-actions {display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:20px}
@container (max-width:600px) {
 .office-console-shell .home-dashboard .home-dashboard-content {grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "inbox" "apps" "priorities"}
}
@media(max-width:1100px) {
 .office-console-shell.has-staffmor-context .office-reading-pane {grid-template-columns:minmax(0,1fr)}
 .office-console-shell .office-reading-pane>.staffmor-context {display:none}
 .office-console-shell .office-reading-pane>.staffmor-context.as-drawer {display:block;position:absolute;inset:0 0 0 auto;z-index:20;width:min(300px,100%);height:100%;box-shadow:-12px 0 32px #0002}
}
@media(max-width:820px) {
 .office-reading-body {padding:12px}
 .office-console-shell .home-dashboard .home-dashboard-inbox-link {min-height:148px}
 .office-console-shell .home-dashboard .comm-connected-apps-actions .btn {min-height:44px}
 .office-console-shell .office-reading-pane>.staffmor-context.as-drawer {width:100%;border:0}
 .office-history-recovery .btn,.staffmor-context-head .btn,.staffmor-context-restore {min-height:44px}
 .comm-pair-dialog {padding:20px}
 .comm-pair-actions .btn {min-height:44px}
}
