/* Shared geometry: one body size and one pair of aligned registry controls. */
:root{--registry-number-width:96px}
#nav .nav-collaboration-toggle.active-parent{color:var(--ink)!important;font-weight:500!important;background:transparent!important}
#nav .nav-collaboration-toggle.active-parent .nav-icon{opacity:1}
.collaboration-flyout{min-width:244px;padding:10px!important;border-radius:14px!important;box-shadow:0 12px 36px #18201826!important}
.collaboration-flyout .collaboration-flyout-item{min-height:46px;padding:12px 14px;font-size:var(--work-body);gap:12px}
.page-primary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-primary-actions .button{font-size:var(--work-body);gap:8px}
.button.primary>img{filter:invert(1)}
.page-primary-actions img,.record-workspace .button img,.record-header-actions img{width:16px!important;height:16px!important;flex:0 0 16px;object-fit:contain}
.page-head .page-view-actions{margin-left:auto;flex-shrink:0}
.page-view-actions .layout-toggle{margin:0}
.page-view-actions .layout-toggle button{min-height:40px;font:inherit;padding:0 14px}
.page-view-actions .calendar-scope{margin:0}
.project-filter-line{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 16px}
.project-filter-line .project-type-filter,.project-filter-line .pw-portfolio-scope{margin:0!important;padding:0!important;border:0!important}
[data-registry-schema] .registry-number{box-sizing:border-box!important;width:96px!important;min-width:96px!important;max-width:96px!important;padding:0 16px!important;text-align:left!important}
.task-table[data-registry-schema="tasks"]>header>.registry-number,.task-table[data-registry-schema="tasks"]>.task-table-row>.registry-number{width:96px!important;min-width:96px!important;max-width:96px!important;padding:0 16px!important}
.table-card[data-registry-schema] table th.registry-number,.table-card[data-registry-schema] table td.registry-number{padding:0 16px!important}
[data-registry-schema] .registry-number .registry-cell-controls{display:flex!important;align-items:center;justify-content:flex-start;width:64px;min-height:40px;gap:12px}
[data-registry-schema] th .registry-cell-controls{min-height:56px!important}
.registry-cell-controls .registry-select{width:20px!important;height:20px!important;flex:0 0 20px}
.registry-cell-controls .registry-inline-settings,.task-table[data-registry-schema="tasks"] .registry-cell-controls .registry-inline-settings{margin:0!important;flex:0 0 32px;max-width:32px}
.registry-cell-controls .registry-column-settings-button,.registry-cell-controls .registry-quick-action,.task-table[data-registry-schema="tasks"] .registry-cell-controls .registry-quick-action{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:6px!important;flex:0 0 32px;border-radius:7px;border:0}
.registry-cell-controls button img{width:20px!important;height:20px!important;margin:0!important;opacity:.72}
.registry-cell-controls button:hover{background:var(--accent-soft)!important}
[data-registry-schema] thead th,[data-registry-schema="tasks"]>header,[data-registry-schema] .registry-header-sort,[data-registry-schema] .registry-header-sort>span{font:400 var(--work-body)/1.4 Geometria,Arial,sans-serif!important}
[data-registry-schema="tasks"]>header,[data-registry-schema="tasks"]>.task-table-row{gap:0!important;justify-content:start!important;padding:14px 0!important}
[data-registry-schema="tasks"]>header>[data-column-key]:not(.registry-number),[data-registry-schema="tasks"]>.task-table-row>[data-column-key]:not(.registry-number){padding-inline:16px!important}
.record-workspace .record-identity-header{display:flex!important;align-items:center;justify-content:space-between;gap:24px;padding:24px!important;margin:0 0 16px!important;min-height:124px}
.record-identity{min-width:0;flex:1}
.record-identity h1{font-size:28px!important;line-height:1.25!important;margin:0!important;overflow-wrap:anywhere}
.record-identity p{font-size:var(--work-body);color:var(--muted);margin:6px 0}
.record-identity-meta{color:var(--muted);font-size:var(--work-body);line-height:1.5;margin-top:10px;overflow-wrap:anywhere}
.record-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:390px}
.record-header-actions .button{gap:8px;font-size:var(--work-body);min-height:40px;padding:0 13px}
.record-workspace .record-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);margin:0 0 20px;background:transparent;min-width:0}
.record-workspace .record-tabs{display:flex;align-items:stretch;gap:22px;padding:0;margin:0!important;border:0;border-radius:0;background:transparent;overflow-x:auto;min-height:54px;min-width:0}
.record-workspace .record-tabs button{border:0!important;border-bottom:3px solid transparent!important;border-radius:0;min-height:54px;padding:0 4px;font-size:var(--work-body);white-space:nowrap;background:transparent}
.record-workspace .record-tabs button[aria-selected="true"]{background:transparent;border-bottom-color:var(--accent,#8cbb00)!important;color:var(--ink);font-weight:700}
.record-workspace .record-toolbar .record-header-actions{flex:0 0 auto;max-width:none;gap:8px;justify-content:flex-end}
.record-workspace .record-toolbar .button{background:transparent;border-color:transparent;padding:8px 4px;gap:4px;min-height:40px}
.record-workspace .record-toolbar .button:hover{background:var(--accent-soft)}
.record-workspace .record-media{flex:0 0 76px!important;min-width:76px!important}
.record-photo{width:76px;height:76px;border:1px solid var(--line);border-radius:50%;overflow:hidden;padding:0;background:var(--accent-soft);display:grid;place-items:center}
.record-photo>img{width:100%;height:100%;object-fit:cover}.record-photo>img:not([data-profile-media]){width:32px;height:32px;opacity:.5}
.record-workspace .record-interest{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.record-interest>button:first-child{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:4px 0;color:var(--ink)}
.record-interest b,.record-interest small{display:block}.record-interest>span{font-size:var(--work-meta);color:var(--muted)}
.record-workspace .record-next-tasks{border-left:3px solid var(--accent,#8cbb00)}
@media(max-width:1000px){.record-workspace .record-toolbar{flex-wrap:wrap;gap:0}.record-workspace .record-toolbar .record-header-actions{margin-left:auto}}
.record-workspace .record-pane-general{grid-template-columns:minmax(280px,.8fr) minmax(0,1.4fr);gap:20px}
.record-workspace .record-overview-facts,.record-workspace .record-overview-history{display:flex;flex-direction:column;gap:16px;min-width:0}
.record-workspace .record-panel{padding:20px;margin:0}
.record-workspace .record-panel>header{gap:12px;flex-wrap:wrap;margin-bottom:16px}
.record-workspace .record-panel>header h2{font-size:18px;margin:0}
.record-workspace .record-panel>header .button{font-size:var(--work-body);gap:8px;padding:0 12px;min-height:36px;border:1px solid var(--line)}
.record-history-filters{gap:8px;flex-wrap:wrap;margin-bottom:16px}
.record-history-filters button{font-size:var(--work-body);padding:6px 0;min-height:32px}
.record-timeline-entry{padding:14px 0}
.record-timeline-entry p,.record-insight p{white-space:pre-wrap;overflow-wrap:anywhere}
.record-timeline-entry header{gap:10px;flex-wrap:wrap}
.record-timeline-entry time,.record-insight time{white-space:nowrap;color:var(--muted);font-size:var(--type-meta)}
.record-history-more{margin-top:14px}
.record-pane-insights>.record-panel{max-width:100%}
.record-insight{padding:18px 0;border-bottom:1px solid var(--line);font-size:var(--work-body)}
.record-insight:first-child{padding-top:0}.record-insight:last-child{border:0}
.record-insight header,.record-insight footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.record-insight footer,.record-insight>small{color:var(--muted);font-size:var(--type-meta)}
.record-insight a{display:inline-flex;align-items:center;gap:6px}.record-insight a img{width:14px;height:14px}
.record-composer{display:flex;flex-direction:column;gap:18px;padding:24px;max-width:720px;margin:auto}
.record-composer label{display:flex;flex-direction:column;gap:8px;font-size:var(--work-body)}
.record-composer input,.record-composer textarea,.record-composer select{width:100%;font:inherit}
.record-composer textarea{min-height:130px;resize:vertical}
.record-composer footer{display:flex;align-items:center;gap:10px}
.record-context{border-top:1px solid var(--line);padding-top:16px}.record-context summary{cursor:pointer;font-size:var(--work-body);margin-bottom:12px}.record-context label{margin-bottom:14px}
.insight-type-field{display:flex;gap:8px;align-items:center}.insight-type-field .record-pencil{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;padding:8px;border:1px solid var(--line);border-radius:8px;background:white}.insight-type-field .record-pencil img{width:18px;height:18px}.insight-type-field .record-pencil:hover{background:var(--accent-soft)}
.rw-scope .registry-tabs{margin-bottom:14px}
.relationship-workspace{display:grid;grid-template-columns:var(--rw-stages-width,180px) 8px var(--rw-records-width,320px) 8px minmax(300px,1fr);min-height:600px;height:calc(100dvh - 230px);border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden}
.relationship-workspace>aside,.relationship-workspace>section{min-width:0;overflow:auto;overscroll-behavior:contain}
.rw-stages{background:#f7f8f5;padding:16px 10px}
.rw-stages>header,.rw-records>header{display:flex;align-items:center;justify-content:space-between;padding:0 8px;margin:0 0 14px}
.relationship-workspace h2{font-size:18px;line-height:1.35;margin:0}

.rw-stages nav{display:flex;flex-direction:column;gap:4px}
.rw-stages nav button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;min-height:42px;padding:10px;border:0;border-radius:8px;background:transparent;font-size:var(--work-body);color:var(--muted)}
.rw-stages nav button span{min-width:0;overflow-wrap:anywhere}.rw-stages nav button b{flex-shrink:0;font-size:12px;font-weight:500}
.rw-stages nav button[aria-pressed="true"]{background:var(--accent-soft);color:var(--ink);font-weight:700}
.rw-stages nav button:hover{background:#eaf0e1}
.rw-records{padding:16px 0}
.rw-records>header{padding:0 16px}.rw-records>header span{color:var(--muted);font-size:var(--type-meta)}
.rw-search{display:flex;align-items:center;gap:8px;margin:0 12px 14px;border:1px solid var(--line);border-radius:9px;padding:0 10px}
.rw-search img{width:16px;height:16px;opacity:.6}.rw-search input{width:100%;min-width:0;border:0;background:transparent;padding:10px 0;font:inherit;font-size:var(--work-body);outline-offset:1px}
.rw-record{display:flex;flex-direction:column;gap:7px;width:100%;padding:16px;text-align:left;border:0;border-bottom:1px solid var(--line);background:white;font-size:var(--work-body);line-height:1.4}
.rw-record b{font-weight:700}.rw-record small{color:var(--muted);font-size:12px}.rw-record footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}.rw-record time{font-size:12px;color:var(--muted)}
.rw-record[aria-pressed="true"]{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent)}
.rw-record:hover{background:#f6f8f0}.rw-cards{padding:0 10px}.rw-cards .rw-record{border:1px solid var(--line);border-radius:10px;margin-bottom:10px}
.rw-detail{padding:20px;background:#fafbf8}.rw-detail-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.rw-detail-heading p{margin:0 0 10px}.rw-detail-heading h2{font-size:21px;overflow-wrap:anywhere}
.rw-detail-tabs{display:flex;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:16px 0}
.rw-detail-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 0;font-size:var(--work-body);color:var(--muted)}
.rw-detail-tabs button[aria-pressed="true"]{border-bottom-color:var(--accent);color:var(--ink);font-weight:700}
.rw-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.rw-actions .button{gap:7px;min-height:38px;padding:0 10px;font-size:var(--work-body)}
.rw-facts{margin:0 0 22px;font-size:var(--work-body)}.rw-facts>div{display:grid;grid-template-columns:115px minmax(0,1fr);gap:12px;padding:8px 0}.rw-facts dt{color:var(--muted)}.rw-facts dd{margin:0;overflow-wrap:anywhere}
.rw-detail .record-panel{padding:16px}.rw-detail .record-timeline-entry{grid-template-columns:24px minmax(0,1fr);gap:10px}.rw-detail .record-timeline-symbol{width:24px;height:24px}.rw-back{display:none}
@media(max-width:1150px){.rw-detail{padding:14px}.rw-facts>div{grid-template-columns:1fr;gap:4px}.record-header-actions{max-width:230px}}
@media(min-width:701px) and (max-width:1150px){.rw-stages{padding:12px 6px}}
@media(max-width:900px){.record-workspace .record-pane-general{grid-template-columns:1fr}.record-workspace .record-identity-header{align-items:center;flex-direction:row;gap:16px}.record-header-actions{max-width:none}}
@media(max-width:1150px){.relationship-workspace{grid-template-columns:var(--rw-stages-width,180px) 8px minmax(0,1fr);height:calc(100dvh - 250px);min-height:500px}.rw-detail{display:none}.rw-show-detail{display:block}.rw-show-detail>.rw-stages,.rw-show-detail>.rw-records,.rw-show-detail>.rw-splitter{display:none}.rw-show-detail>.rw-detail{display:block;height:100%}.rw-back{display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:6px 0 16px;font-size:var(--work-body)}.rw-back img{width:16px;height:16px}}
@media(max-width:700px){#nav .nav-collaboration-items{display:none!important}.sidebar .sidebar-brand{flex:0 0 74px!important;width:74px!important;min-width:74px!important;display:grid!important;grid-template-columns:32px 28px!important;gap:8px!important}.sidebar .sidebar-logo{width:32px!important;min-width:32px!important;padding:0!important}.sidebar .sidebar-logo-full{display:none!important}.sidebar .sidebar-logo-mark{display:block!important;width:30px!important;height:30px!important}.sidebar .sidebar-panel-toggle{display:none!important}.page-head{flex-wrap:wrap;gap:12px}.page-head .page-title-line{flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}.page-head .page-view-actions{margin-left:0;width:100%;justify-content:flex-start}.page-primary-actions .button{min-height:38px;padding:0 12px}.record-workspace .record-tabs{gap:4px;padding:5px}.record-workspace .record-tabs button{padding:0 12px}.record-workspace .record-identity-header{padding:18px!important}.record-identity h1{font-size:24px!important}.record-composer{padding:18px}.relationship-workspace{grid-template-columns:150px minmax(0,1fr)}.rw-stages{padding:12px 6px}.rw-record{padding:12px}.rw-record footer{align-items:flex-start;flex-direction:column}.rw-records>header{padding:0 12px}}

/* Calm navigation, compact utilities and a single adjustable card workspace. */
#nav .nav-collaboration,#nav .nav-collaboration.open{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;border-radius:0}
#nav .nav-collaboration-toggle{font-weight:400!important;min-height:44px!important}
#nav .nav-collaboration-toggle.active-parent{font-weight:500!important}
#nav .nav-collaboration-toggle:hover{background:#f7f8f5!important}
#nav .nav-subitem{box-shadow:none!important;font-weight:400!important}
#nav .nav-subitem.active{background:#f3f6ed!important;box-shadow:inset 2px 0 var(--accent)!important;color:#486900!important;font-weight:500!important}
.sidebar-utilities-toggle{display:flex;align-items:center;justify-content:center;width:100%;height:32px;padding:4px;border:0;border-radius:8px;background:transparent;cursor:pointer}
.sidebar-utilities-toggle>img{width:18px;height:18px;opacity:.7;transform:rotate(180deg);transition:transform .15s ease}
.sidebar-utilities-toggle[aria-expanded=true]>img{transform:rotate(0deg)}
.sidebar-utilities-toggle:hover{background:#f4f6f1}.sidebar-utilities-toggle:focus-visible,.rw-splitter:focus-visible{outline:2px solid var(--accent-dark);outline-offset:-2px}
.sidebar .sidebar-bottom .resource-nav{position:fixed;z-index:95;width:248px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 100px);overflow:auto;display:grid!important;gap:2px;padding:8px;margin:0;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #18201826}
.sidebar .sidebar-bottom .resource-nav[hidden],.sidebar-utilities-toggle[hidden]{display:none!important}
.sidebar .sidebar-bottom .resource-nav .nav-item{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;min-height:44px!important;padding:10px 12px!important;font:400 var(--work-body)/1.4 Geometria,Arial,sans-serif!important}
.sidebar .sidebar-bottom .resource-nav .nav-item[hidden]{display:none!important}
.sidebar .sidebar-bottom .resource-nav .nav-item>span:not(.nav-icon){display:inline!important}
.page-primary-actions .button,.record-header-actions .button,.rw-actions .button,.record-panel>header .button,button[data-create],[data-pw-add],[data-add-insight],[data-record-compose]{font-weight:400!important}
.rw-splitter{background:#f7f8f5;border-inline:1px solid var(--line);cursor:col-resize;touch-action:none;position:relative}
.rw-splitter:hover,.rw-splitter:focus-visible{background:var(--accent-soft);border-color:#b5c58d}
.rw-cards .rw-record{border-radius:10px;margin-bottom:10px}
@media(min-width:701px){body:not(.sidebar-collapsed) #nav .nav-collaboration-toggle{padding:9px 0 9px 14px!important}body:not(.sidebar-collapsed) #nav .nav-collaboration-items{padding:0 0 6px 14px!important}body:not(.sidebar-collapsed) #nav .nav-subitem{min-height:40px!important;padding:8px 12px!important}body:not(.sidebar-collapsed) #nav .nav-subitem .nav-icon img{width:20px!important;height:20px!important}.sidebar-bottom{padding-top:6px!important;margin-top:6px!important}}
@media(min-width:701px) and (max-width:1150px){[data-rw-resize=records]{display:none}}
@media(max-width:700px){.rw-splitter{display:none}.sidebar .sidebar-bottom{display:flex!important;align-items:center!important;flex:0 0 36px!important;border:0!important;padding:0!important;margin:0!important}.sidebar .sidebar-bottom>.profile-button{display:none!important}.sidebar-utilities-toggle{width:32px;height:44px}.relationship-workspace{grid-template-columns:150px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.sidebar-utilities-toggle>img{transition:none}}

/* Keep both expanded groups usable on laptop-height screens, without shrinking text. */
@media(min-width:701px) and (max-height:850px){body:not(.sidebar-collapsed) #nav .nav-subitem{min-height:34px!important;padding:5px 12px!important}body:not(.sidebar-collapsed) #nav .nav-collaboration-toggle{min-height:38px!important;padding-block:6px!important}body:not(.sidebar-collapsed) #nav .nav-collaboration-items{gap:0!important;padding-bottom:3px!important}}

/* All five primary destinations stay reachable in the mobile navigation rail. */
@media(max-width:700px){
  .sidebar{inset:auto 0 0!important;width:100%!important;height:64px!important;padding:8px!important;gap:4px!important;align-items:center!important;overflow:visible!important}
  .sidebar .sidebar-brand{flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:40px!important;grid-template-columns:32px!important;gap:0!important;margin:0!important;padding:0!important}
  .sidebar .sidebar-brand .sidebar-logo{display:none!important}
  .sidebar .sidebar-brand .sidebar-search-button{width:32px!important;height:40px!important;margin:0!important}
  .sidebar>#nav{display:flex!important;flex:1 1 0!important;min-width:0!important;width:auto!important;height:48px!important;gap:2px!important;overflow:visible!important;padding:0!important;align-items:stretch!important}
  .sidebar>#nav>button,.sidebar>#nav>.nav-collaboration{flex:1 1 0!important;min-width:44px!important;width:auto!important;margin:0!important}
  .sidebar>#nav .nav-item{display:grid!important;grid-template-columns:1fr!important;place-items:center!important;min-width:44px!important;min-height:48px!important;height:48px!important;padding:4px!important;gap:0!important}
  .sidebar>#nav .nav-item>span:not(.nav-icon),.sidebar>#nav .nav-group-chevron{display:none!important}
  .sidebar .sidebar-bottom{height:48px!important;align-self:center!important;margin:0!important;padding:0!important}
  .app>main{padding-bottom:80px!important}
}

/* One label size across primary destinations, nested sections and flyouts. */
.sidebar #nav .nav-item,.sidebar .resource-nav .nav-item,.collaboration-flyout .collaboration-flyout-item{font-size:var(--work-body,14px)!important;font-weight:400!important;line-height:1.4!important}
@media(max-width:360px){.sidebar>#nav{overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scrollbar-width:none}.sidebar>#nav>button,.sidebar>#nav>.nav-collaboration{flex:0 0 44px!important}}

/* Keep all expanded sections visible on laptop-height screens without shrinking text. */
@media(min-width:701px) and (max-height:850px){body:not(.sidebar-collapsed) #nav>.nav-item{height:40px!important;min-height:40px!important;padding-block:5px!important}}
