.project-shell .project-top{min-height:76px;gap:16px;flex-wrap:wrap}.project-heading{display:flex;align-items:center;gap:18px;min-width:0}.project-heading>.brand{display:none}.project-heading>strong{font-size:18px}.project-account{margin-left:auto;display:flex;align-items:center;gap:16px;min-width:0}.project-connection{font-size:12px;color:var(--muted,#a7b9ca)}.project-account-menu{position:relative}.project-account-menu>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;max-width:180px;overflow-wrap:anywhere}.project-account-menu>div{position:absolute;right:0;top:100%;z-index:80;width:220px;padding:12px;display:grid;gap:8px;background:var(--panel,#132332);border:1px solid var(--line,#304759);border-radius:12px;box-shadow:0 12px 30px #0006}.project-account-menu button,.project-account-menu a{min-height:44px}.project-yard-context{display:flex;align-items:center;gap:8px;font-size:12px}.project-yard-context select{max-width:190px;min-height:44px}.project-nav{display:grid;gap:4px}.project-nav button[aria-current=page],.project-phone-nav button[aria-current=page],.project-more button[aria-current=page]{background:#183747;color:#b9e6ff;border-color:#54768a}.project-main{min-width:0}.project-page-context{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin-bottom:20px}.project-page-context label{display:grid;gap:6px;min-width:180px}.project-page-context select{min-height:44px}.project-page-context small{max-width:480px;color:var(--muted,#a7b9ca)}.project-section-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.project-section-tabs button{min-height:44px}.project-section-tabs button[aria-current=page]{background:#183747;color:#b9e6ff}.project-more{width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 32px);background:var(--panel,#132332);color:inherit;border:1px solid #456073;border-radius:16px}.project-more>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.project-more nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}.project-more nav button{display:flex;align-items:center;gap:8px;text-align:left;min-height:52px;padding:10px;min-width:0}.project-more nav span{overflow-wrap:anywhere}.project-more::backdrop{background:#02070bbd}.project-main>.shared-warning{margin-bottom:16px}.project-setup-intro{max-width:760px}.project-setup-intro .actions{display:flex;flex-wrap:wrap;gap:10px}.project-main .shared-consumables>main{padding:0;max-width:none}.project-main .shared-consumables .workspace-tools{margin-top:16px}
@media(max-width:760px){.project-shell .project-top{padding:12px 16px;gap:8px}.project-heading{flex-direction:column;align-items:flex-start;gap:2px}.project-heading>.brand{display:flex}.project-heading>.brand img{max-height:28px}.project-heading>strong{font-size:14px}.project-account{gap:6px}.project-connection{display:none}.project-account-menu>summary{max-width:115px;font-size:13px}.project-yard-context{width:100%;order:3}.project-phone-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}.project-phone-nav button{min-width:0}.project-phone-nav span{white-space:normal;font-size:11px}.project-main{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}.project-page-context label{min-width:0;flex:1 1 150px}.project-page-context select{width:100%}.project-section-tabs button{flex:1 1 auto}.project-more nav{grid-template-columns:1fr 1fr}}

.project-narrow-menu{display:none}
.project-setup-intro{padding:24px;margin-bottom:24px}.project-setup-intro h1{margin-top:0}.project-setup-intro p{line-height:1.55;margin-bottom:18px}
.project-shell .project-top{position:relative;z-index:110;overflow:visible}.project-shell .project-main{position:relative;z-index:0}
#shared-consumable-editor{box-sizing:border-box;width:min(650px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}#shared-consumable-editor form,#shared-consumable-editor label{min-width:0}#shared-consumable-editor input:not([type=checkbox]),#shared-consumable-editor select,#shared-consumable-editor textarea{box-sizing:border-box;min-width:0;width:100%}
#project-holding-setup,#project-transfer-access{padding:24px;display:grid;gap:16px}#project-holding-setup>header,#project-transfer-access>header{display:flex;align-items:center;justify-content:space-between;gap:12px}#project-holding-setup label,#project-transfer-access label{display:grid;gap:8px}#project-holding-setup label:has(input[type=checkbox]),#project-transfer-access label:has(input[type=checkbox]){display:flex;align-items:start;gap:12px}#project-holding-setup input,#project-holding-setup select,#project-holding-setup textarea,#project-transfer-access input,#project-transfer-access select,#project-transfer-access textarea{min-width:0;max-width:100%}#project-holding-setup input[type=checkbox],#project-transfer-access input[type=checkbox]{flex:0 0 auto}
/* An editing module may retain desktop chrome across the phone breakpoint. */
@media(max-width:800px){.project-shell:not(.field-shell) .project-narrow-menu{display:inline-flex;min-height:44px;align-items:center;gap:8px}.project-shell:not(.field-shell) .project-top{height:auto;min-height:76px}}

.project-shell.field-map-shell .project-main{padding:0!important}

/* Retain the unified layout while restoring the familiar operational toolbar. */
.project-shell .project-top{height:auto;padding-top:14px;padding-bottom:14px;background:linear-gradient(110deg,#142e3d,#101e29 68%,#10232d);border-bottom:1px solid #36566b;box-shadow:0 4px 18px #0002}
.project-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;flex:1 1 310px}
.project-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;min-width:44px;border:1px solid #3b596b;background:#193443;color:#e2f2fb;font-weight:600}
.project-toolbar .project-search-launch{justify-content:flex-start;flex:1 1 180px;max-width:340px;text-align:left}
.project-toolbar .project-pending{background:#142a35;color:#b9d6e5}
.project-toolbar .project-pending.has-pending{color:#ffe3a4;border-color:#9b783a;background:#3c3120}
.project-toolbar button:hover{background:#23495c;border-color:#78b9d9}
.project-toolbar button:focus-visible,.project-account summary:focus-visible{outline:2px solid #9bddff;outline-offset:3px}
/* Older desktop skin locks these colours with !important. Override only the
   unified shell so desktop and phone use the same restrained accent palette. */
.project-shell.shell-v2 .project-top{background:linear-gradient(110deg,#142e3d,#101e29 68%,#10232d)!important;border-bottom-color:#36566b!important}
.project-shell.shell-v2 .sidebar{background:linear-gradient(170deg,#132934,#101c25 40%,#0d1820)!important;border-right-color:#294555!important}
.project-shell .project-main .holdings-page .panel{background:linear-gradient(var(--holding-state-fill,transparent),var(--holding-state-fill,transparent)),linear-gradient(135deg,#152b37,#111f29)!important;border-color:#2c495a!important}
.project-refresh span{display:none}
.project-connection{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#bad7dd}
.project-connection i{width:7px;height:7px;border-radius:50%;background:#75c8b5;box-shadow:0 0 0 3px #75c8b516}
.project-connection.is-offline{color:#ffe3a4}.project-connection.is-offline i{background:#e4bb70}
.project-shell .sidebar{background:linear-gradient(170deg,#132934,#101c25 40%,#0d1820);border-right-color:#294555}
.project-nav button[aria-current=page]{background:#1b3e50!important;color:#d6f1ff!important;border-color:#5f9ebd!important;box-shadow:inset 3px 0 #81c7e9}
.project-shell .project-main{background:radial-gradient(ellipse at top left,#17334533,transparent 65%)}
.project-main .holdings-page .panel{border-color:#2c495a;background:linear-gradient(135deg,#152b37,#111f29)}
.project-main .holding-card{border-top:3px solid #5089a5}
.project-main .holding-quantity{color:#bfe8fc}
.holdings-heading h1{margin-bottom:8px}.holdings-heading p{line-height:1.55;color:#b9ccd8}
.holdings-page nav[aria-label="Stock location filters"]{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0}
.holdings-page nav[aria-label="Stock location filters"] label{display:grid;gap:8px;min-width:180px;max-width:100%}
.holdings-page nav[aria-label="Stock location filters"] select{min-height:44px;width:100%;max-width:100%}
.holdings-page [data-holding-empty]{line-height:1.6}.holdings-page [data-holding-empty] h2{margin:0 0 10px;color:#d3ecfa}
.holdings-page [data-holding-empty] p{color:#bfd0dc}.holdings-page [data-holding-empty] button{margin:6px 8px 6px 0}
.project-main #project-holdings>.panel{padding:24px;min-height:120px;border-color:#2c495a;background:#152b37}
.project-main #project-holdings>.panel h2{margin:0 0 10px;color:#d3ecfa}.project-main #project-holdings>.panel p{line-height:1.6;margin-bottom:16px}
@media(max-width:1100px){.project-toolbar{order:3;flex-basis:100%}.project-toolbar .project-search-launch{max-width:none}.project-yard-context{order:4}}
@media(max-width:760px){.project-shell .project-top{padding:12px 16px;gap:10px}.project-account{margin-left:auto;gap:8px}.project-account-menu>summary{max-width:100px}.project-toolbar{gap:8px;flex-wrap:nowrap}.project-toolbar button{min-height:52px}.project-toolbar .project-search-launch{flex:1 1 140px;font-size:12px;line-height:1.3;padding:9px}.project-toolbar .project-pending{font-size:12px;padding:9px}.project-refresh{flex:0 0 52px}.project-connection{display:none}.project-toolbar .project-pending svg{display:none}.holdings-page nav[aria-label="Stock location filters"] label{flex:1;min-width:0}.holdings-page nav[aria-label="Stock location filters"] select{min-height:52px}}
.project-map-shell .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}.project-map-shell .project-top{flex-shrink:0}.project-map-shell .desktop-yard-map-main{height:auto;flex:1;min-height:0;width:100%}

.project-messages-shell .workspace{height:100dvh;display:flex;flex-direction:column;min-width:0}.project-messages-shell .project-top{flex-shrink:0}.project-messages-shell .project-main.msg-main{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.project-messages-shell .project-section-tabs{flex-shrink:0}.project-messages-shell .msg-main .messenger{height:0;flex:1;min-height:0}
@media(max-width:760px){.project-messages-shell .project-main.msg-main{padding:0!important}.project-messages-shell .project-main.msg-main{height:calc(var(--ux-vh,100dvh) - var(--ux-head,76px) - var(--ux-status,0px) - var(--ux-nav,80px) - env(safe-area-inset-bottom))}.ux-keyboard .project-messages-shell .project-main.msg-main{height:calc(var(--ux-vh,100dvh) - var(--ux-head,76px) - var(--ux-status,0px))}}

.project-record-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}.project-record-context button{min-height:44px}.project-record-context button[aria-pressed=true]{background:#183747;border-color:#54768a;color:#b9e6ff}.project-record-context small{flex-basis:100%;color:var(--muted)}.holding-references{margin-top:24px}.holding-references article{padding:12px 0;border-bottom:1px solid var(--line)}.holding-references article[hidden]{display:none}.record-site-name{font-size:12px;overflow-wrap:anywhere}

/* Messenger already reserves the measured header and bottom navigation height.
   Do not also apply the scrolling page's navigation padding. Let attachment
   previews scroll within the remaining space rather than clipping Send. */
@media(max-width:760px){
 .shell-v2.field-shell.project-messages-shell main.field-main.msg-main{padding:0!important}
 .project-messages-shell .project-section-tabs{margin-bottom:8px}
 .project-messages-shell #msg-composer{display:flex;flex-direction:column;min-height:0;flex-shrink:1}
 .project-messages-shell #msg-draft-extras{flex:0 1 auto;min-height:0}
 .project-messages-shell .msg-compose-row{flex-shrink:0}
}

/* Operational location choices must stack above the map, not become a flex
   column beside it and squeeze the interactive surface to a narrow strip. */
.project-map-shell .project-main{display:flex;flex-direction:column;min-height:0}
.project-map-shell .project-record-context{flex:0 0 auto;padding:12px;margin-bottom:0}
.project-map-shell .project-main>.yard-map-app{flex:1;min-height:0!important;height:0!important;min-width:0;width:100%}
@media(max-width:760px){
 .project-map-shell .yard-location-sheet{z-index:14}
 .project-map-shell .yard-location-sheet.expanded{max-height:calc(100% - 24px)!important}
}

/* Group the authorised tools without duplicating routes or expanding access. */
.project-more{width:min(760px,calc(100% - 24px));padding:20px}.project-more>header{position:sticky;top:-20px;z-index:2;padding:12px 0;background:var(--yt-surface)}.project-more>header h2{margin:0}.project-more nav{display:block}.project-tool-group{--tool-accent:var(--yt-primary);margin:8px 0 24px}.project-tool-group[data-tool-tone=operations]{--tool-accent:var(--yt-success)}.project-tool-group[data-tool-tone=team]{--tool-accent:#c1b2ed}.project-tool-group[data-tool-tone=admin]{--tool-accent:var(--yt-warning)}.project-tool-group h3{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.04em;color:var(--tool-accent)}.project-tool-group h3:before{content:'';height:14px;width:3px;border-radius:2px;background:currentColor}.project-tool-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.project-more .project-tool-group button{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;justify-content:start;gap:10px;padding:12px;text-align:left;white-space:normal;overflow-wrap:anywhere;min-height:64px;border:1px solid var(--yt-border-strong);border-radius:12px;background:var(--yt-surface-2);line-height:1.4}.project-tool-group button svg{flex:0 0 20px;color:var(--tool-accent)}.project-more .project-tool-group button>svg{grid-column:1;grid-row:1}.project-more .project-tool-group button>span{grid-column:2;grid-row:1;min-width:0}.project-more .project-tool-group button:not(:has(>svg))>span{grid-column:1/-1}.project-more .project-tool-group button:hover{background:var(--yt-surface-3);border-color:var(--tool-accent)}.project-more button:focus-visible{outline:2px solid var(--yt-focus);outline-offset:2px}
.project-shell .project-setup-grid>.panel:first-child{border-top:3px solid var(--yt-primary)!important}.project-shell .project-setup-grid>.panel:last-child{border-top:3px solid var(--yt-success)!important}.project-shell .setup-store-overview select{min-height:48px;border:1px solid var(--yt-border-strong);border-radius:10px;background:var(--yt-surface-2);color:var(--yt-text);font:inherit;padding:10px 36px 10px 12px;max-width:100%}
@media(max-width:400px){.project-more{padding:16px}.project-more>header{top:-16px}.project-more .project-tool-group button{padding:10px 8px;font-size:12px}}

/* Mobile header: a stable identity/title column and compact account controls. */
.project-account-initials{display:none}
.project-account-identity{margin:0;padding:4px 4px 12px;border-bottom:1px solid var(--line,#304759);overflow-wrap:anywhere}
.project-account-identity strong,.project-account-identity small{display:block}
.project-account-identity small{margin-top:4px;color:var(--muted,#a7b9ca)}
@media(max-width:760px){
 .project-shell.field-shell .project-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left))!important;min-height:88px!important}
 .project-top .project-heading{gap:4px;min-width:0;align-items:flex-start}
 .project-top .project-heading>.brand{gap:7px;margin:0;padding:0;font-size:13px;line-height:20px;color:#b7cbd8}
 .project-top .project-heading>.brand .brandmark{width:18px;height:20px;flex:0 0 18px}
 .project-top .project-heading>.brand small{display:none}
 .project-top .project-heading>strong{font-size:17px;line-height:1.25;overflow-wrap:anywhere}
 .project-top .project-heading>[data-adelaide-clock]{font-size:10px;line-height:1.4;color:#9ab0be;white-space:normal}
 .project-top .project-account{gap:8px;margin:0;align-self:center}
 .project-top .project-account>[data-msg-open]{position:relative;width:44px;height:44px;min-height:44px;padding:10px;display:flex;align-items:center;justify-content:center;border-radius:12px}
 .project-top .project-account-menu>summary{width:44px;height:44px;min-height:44px;max-width:none;justify-content:center;border:1px solid #405c6e;border-radius:12px;background:#1c3443;box-sizing:border-box}
 .project-top .project-account-menu>summary::marker,.project-top .project-account-menu>summary::-webkit-details-marker{display:none;content:''}
 .project-top .project-account-initials{display:block;font-size:13px;font-weight:700;letter-spacing:.03em}
 .project-top .project-account-name{display:none}
 .project-top .project-account-menu>div{top:calc(100% + 8px);width:min(280px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100dvh - 140px - env(safe-area-inset-top));overflow:auto}
 .project-top .project-account-menu button{white-space:normal;overflow-wrap:anywhere;text-align:left}
 .project-top .project-yard-context,.project-top .project-toolbar{grid-column:1/-1}
}
@media(max-width:760px){
 .project-top .project-account{position:relative}
 .project-top .project-connection.is-offline{display:inline-flex;position:absolute;right:0;top:calc(100% + 3px);font-size:10px;line-height:12px;white-space:nowrap;color:var(--yt-warning,#ffd58a)}
}
@media(max-width:760px){
 .project-shell .project-phone-nav button{min-height:56px;justify-content:center}
 .project-shell .project-phone-nav button span{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;max-width:100%}
}
