/* Shared catalog creation, category fields and folder editor. */
.folder-dialog.create-type-grid[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(560px,calc(100vw - 24px));overscroll-behavior:contain}
.folder-dialog.create-type-grid>h2,.folder-dialog.create-type-grid>.dialog-cancel{grid-column:1/-1}
.folder-dialog.create-type-grid>button{margin:0;min-height:48px;padding:10px;overflow-wrap:anywhere}
#catalog-create-card .box-create-symbol{font-size:72px;line-height:1;font-weight:400}
#catalog-create-card .catalog-create-label{font-size:20px}
#qr-list .qr-card.folder-editor-card{display:flex;flex-direction:column;align-items:stretch;padding:18px 18px 52px;gap:16px}
#qr-list .folder-editor-card~.gallery-actions{top:auto;bottom:12px}
#qr-list .folder-card-categories{gap:4px;min-height:44px;overflow-wrap:anywhere}
.catalog-categories{min-width:0}
.catalog-categories .category-heading{display:block;margin:0 0 9px}
.category-row{position:relative;display:flex;align-items:stretch;gap:0;margin:0 0 8px;min-width:0}
.category-row>input{font:inherit;font-size:16px;width:100%;min-width:0;padding:10px 44px 10px 12px;border:1px solid #d5cec6;border-radius:12px;background:#fdfcfb}
.category-row>.category-arrow{position:absolute;right:1px;top:1px;width:40px;height:calc(100% - 2px);min-height:40px;padding:4px;margin:0;border:0;background:transparent;font-size:22px}
.category-suggestions{position:absolute;top:calc(100% + 2px);left:0;right:0;z-index:5;background:#fff;border:1px solid #d5cec6;border-radius:10px;box-shadow:0 5px 18px #0002;max-height:220px;overflow:auto;overscroll-behavior:contain}
.category-suggestions>button{display:block;text-align:start;white-space:normal;overflow-wrap:anywhere;width:100%;margin:0;border:0;border-radius:0;padding:10px 12px;min-height:44px;background:transparent;color:inherit;font:inherit}
.category-suggestions>button:hover,.category-suggestions>button:focus{background:#e6f3ef}
.category-suggestions>p{padding:10px;margin:0;font-size:14px}
.category-suggestions[aria-busy=true]:empty:before{content:'⌛';display:block;padding:10px}
.qr-editor-text{display:flex;flex-direction:column;min-width:0}
.catalog-editor-main{min-width:0}
.entity-additional{margin:0 0 6px;min-width:0}
.entity-additional>summary{cursor:pointer;padding:8px 0;min-height:44px;box-sizing:border-box}
.entity-additional-content{padding-top:12px;min-width:0}
.entity-additional-content>.qr-field{margin-top:0}
@media(min-width:768px){
 .box-editor>form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'heading heading' 'additional additional' 'title title' 'description description';column-gap:24px;align-items:start}
 .box-editor>form>h2{grid-area:heading}
 .box-editor>form>[data-field=title]{grid-area:title}
 .box-editor>form>.entity-additional{grid-area:additional}
 .box-editor>form>[data-field=description]{grid-area:description}
 .box-editor>form>.catalog-categories{grid-area:categories}
 .folder-editor>form{grid-template-areas:'heading heading' 'title categories'}
 .entity-additional-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
 body.qr-owner #qr-step{grid-template-columns:minmax(180px,.75fr) minmax(0,2fr)}
 .qr-editor-code{grid-column:1}
 .qr-editor-text{grid-column:2;grid-row:1 / span 2}
 .qr-editor-media{grid-column:2}
}
@media screen{
 :root[data-theme=dark] .category-suggestions{background:#202020;border-color:#626262;color:#ededed}
 :root[data-theme=dark] .category-suggestions>button:hover,:root[data-theme=dark] .category-suggestions>button:focus{background:#29453b}
}

/* Catalog tree and structured search. */
:is(#qr-search-dialog,.chat-search-dialog).catalog-search{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.catalog-search form{display:flex;flex-direction:column;gap:12px;min-width:0}
.catalog-search #catalog-search-types{margin:0;text-align:start}
.catalog-search .catalog-search-selected{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.catalog-type-tag{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid var(--line,#d5cec6);border-radius:8px;font-size:14px}
.catalog-search label{margin:0}
.catalog-search #qr-search{font:inherit;font-size:16px;padding:12px;border:1px solid #d5cec6;border-radius:12px;background:#fdfcfb;box-sizing:border-box}
.catalog-search .catalog-categories{margin-top:8px}
.catalog-search .dialog-actions{display:flex;gap:12px;margin:0!important}
.catalog-search .dialog-actions>button{flex:1;margin:0;min-width:0}
.catalog-type-picker>button[data-search-type]{position:relative;display:flex;align-items:center;gap:8px;text-align:start;padding-inline-end:32px;border:2px solid transparent}
.catalog-type-picker>button[aria-pressed=true]{border-color:#08783e;background:#e6f3ef}
.catalog-type-picker>button[aria-pressed=true]:after{content:'✓';position:absolute;inset-inline-end:10px;color:#08783e}
body.qr-home #qr-list.catalog-tree-mode{display:block;min-width:0;width:100%;max-width:100%}
[data-catalog-drag-row]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#qr-list{--drag-source-bg:#cee3ff;--drag-target-bg:#bee9d1}
:root[data-theme=dark] #qr-list{--drag-source-bg:#284666;--drag-target-bg:#224d39}
.catalog-drag-selected{--catalog-drag-fill:var(--drag-source-bg);cursor:grabbing}
.catalog-drop-target{--catalog-drag-fill:var(--drag-target-bg)}
/* Paint the visible surface, including the card menu's matching backdrop in either theme. */
#qr-list :is(.catalog-drag-selected,.catalog-drop-target).catalog-tree-row,
#qr-list :is(.catalog-drag-selected,.catalog-drop-target) > .qr-card,
#qr-list :is(.catalog-drag-selected,.catalog-drop-target) > .qr-card:not(.folder-card) ~ .gallery-actions{
 background-color:var(--catalog-drag-fill)!important;
}
.catalog-drag-badge{position:fixed;z-index:10;pointer-events:none;max-width:55vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:6px;padding:4px 9px;background:#184675;color:white;font-size:.9rem}
#catalog-tree-view{--tree-indent:14px;max-width:100%;min-width:0;overflow-x:auto}
.catalog-tree-branch{list-style:none;padding:0;margin:0;min-width:0}
.catalog-tree-branch li{list-style:none;margin:0;padding:0}
.catalog-tree-row{display:flex;gap:4px;align-items:center;box-sizing:border-box;min-width:calc(240px + var(--depth,0)*var(--tree-indent));padding-inline-start:calc(var(--depth,0)*var(--tree-indent));border-bottom:1px solid var(--line,#ded8d1)}
.catalog-tree-row>.catalog-tree-toggle{align-self:flex-start;flex:0 0 32px;width:32px;min-height:42px;margin:0;padding:4px;border:0;background:transparent;color:inherit;font-size:22px}
:is(.catalog-tree-row,.people-projects,.task-project-disclosure)>.catalog-tree-object{display:grid;grid-template-columns:26px minmax(0,1fr);gap:2px 6px;align-items:center;flex:1;min-width:0;width:auto;margin:0;padding:10px 4px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:start}
.catalog-tree-object>strong{overflow-wrap:anywhere;min-width:0}
.catalog-tree-metadata{grid-column:2;font-size:13px;overflow-wrap:anywhere;min-width:0;line-height:1.5}
.catalog-tree-type{font-size:inherit;color:#6f6256}
.catalog-tree-category{font-size:inherit}
.catalog-tree-object>.entity-type-icon{grid-column:1;grid-row:1}
.catalog-tree-object>strong{grid-column:2;grid-row:1}
.catalog-search #catalog-search-types{display:flex;align-items:center;gap:8px}
.catalog-tree-object>.entity-type-icon{font-size:24px}
.catalog-tree-object:hover,.catalog-tree-object:focus-visible{background:#f2efeb}
.catalog-tree-more{margin:6px 0;margin-inline-start:calc(var(--depth,0)*var(--tree-indent) + 36px);padding:8px;min-height:42px}
.catalog-selected-card{outline:2px solid #08783e;outline-offset:3px;border-radius:14px}
.catalog-empty{padding:16px 0}
@media(max-width:600px){
 .catalog-tree-row>.catalog-tree-object{grid-template-columns:26px minmax(0,1fr);gap:2px 6px}
 #catalog-tree-view{--tree-indent:10px}
}
@media screen{
 :root[data-theme=dark] .catalog-type-picker>button[aria-pressed=true]{background:#173b33;border-color:#5bdb93}
 :root[data-theme=dark] .catalog-type-picker>button[aria-pressed=true]:after{color:#5bdb93}
 :root[data-theme=dark] .catalog-tree-type{color:var(--theme-muted)}
 :root[data-theme=dark] .catalog-tree-object:hover,:root[data-theme=dark] .catalog-tree-object:focus-visible{background:#202020}
}

/* Compact entity editor spacing; keep comfortable field and summary hit targets. */
.box-editor:not(.folder-editor)>form>[data-field]{margin-bottom:6px}
.box-editor:not(.folder-editor)>form>[data-field]>label{margin-bottom:0}
.box-editor:not(.folder-editor) .editor-actions{margin:6px 0}
.box-editor:not(.folder-editor) .editor-actions:has([data-action=unlink][hidden]){display:none}
.qr-editor-text .catalog-editor-main>.qr-field,
.qr-editor-text>.qr-field[data-field=description]{margin:0 0 6px;padding-top:0;border-top:0}
.qr-editor-text>.entity-additional{margin:0 0 6px}
.qr-editor-media>.qr-field[data-field=photo]{margin-top:0;padding-top:0;border-top:0}
body.qr-owner #qr-step{row-gap:6px}
@media(min-width:768px){
 body.qr-home .home-tools{display:flex;align-items:center;gap:24px;justify-content:space-between}
 body.qr-home .qr-create-row{display:flex;align-items:center;gap:24px;flex:none}
 body.qr-home .home-people-tools{flex-wrap:nowrap;gap:24px;margin:0;min-width:0}
 body.qr-home .qr-create-row>:is(#qr-home-scan,#create-box),
 :root[data-theme=dark] body.qr-home .qr-create-row>:is(#qr-home-scan,#create-box){
  width:auto;min-height:64px;display:flex;align-items:center;gap:12px;padding:0;margin:0;
  background:transparent;border:0;box-shadow:none;color:inherit;font-size:14px;font-weight:400;transition:none;
 }
 body.qr-home .qr-create-row>:is(#qr-home-scan,#create-box):hover{background:transparent;box-shadow:none;transform:none}
 body.qr-home .qr-create-row>:is(#qr-home-scan,#create-box) img,
 body.qr-home .qr-create-row>:is(#qr-home-scan,#create-box) .box-create-symbol{width:39.2px;height:39.2px;flex:none}
 body.qr-home .qr-create-row>:is(#qr-home-scan,#create-box) .box-create-symbol{font-size:39.2px;line-height:1;text-align:center}
 body.qr-home .home-people-tools button{padding:0}
}
@media(min-width:768px) and (max-width:900px){
 body.qr-home .home-tools,body.qr-home .qr-create-row,body.qr-home .home-people-tools{gap:12px}
 body.qr-home .qr-create-row>:is(#qr-home-scan,#create-box),body.qr-home .home-people-tools button{gap:6px}
}
.task-status-postponed{color:#b65d08!important}
@media screen{
 :root[data-theme=dark] .task-status-postponed{color:#ffad59!important}
}

/* Avatars are always the final, server-compressed image. */
.person-avatar{display:inline-flex;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;align-items:center;justify-content:center;background:#ded8d1;border:1px solid #bcb5ad;vertical-align:middle}
.person-avatar img{width:100%;height:100%;object-fit:cover}
.people-self{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.people-self .secondary{margin:0}
#people-own-avatar,#colleague-avatar-preview{display:inline-flex}
#colleague-avatar-field{display:flex;align-items:center;gap:12px;margin:12px 0}
#colleague-avatar-field button{margin:0}
.avatar-dialog{width:min(480px,calc(100vw - 24px));max-height:90dvh;overflow:auto;overscroll-behavior:contain}
.avatar-source,.avatar-dialog .dialog-actions{display:flex;gap:12px}
.avatar-source button,.avatar-dialog .dialog-actions button{flex:1;min-width:0;margin:0;padding:10px}
.avatar-crop-panel{margin:16px 0}
.avatar-crop{position:relative;width:min(280px,100%);aspect-ratio:1;border-radius:50%;overflow:hidden;margin:0 auto 14px;background:#888;touch-action:none;cursor:move;outline:2px solid #0879ed}
.avatar-crop img{position:absolute;max-width:none;pointer-events:none}
.avatar-crop-panel input[type=range]{width:100%}
.avatar-progress:empty,.catalog-categories>.field-error:empty{display:none}
.category-field-action{width:2rem!important;min-width:2rem;padding:0!important}.category-pair:has(>.category-field-action){grid-template-columns:auto minmax(0,1fr) minmax(0,2fr)}.category-row:has(.category-field-action){grid-template-columns:auto minmax(0,1fr) auto}.category-controls{flex-wrap:wrap;display:flex;gap:16px;margin:0 0 8px}
.category-controls>.text-button{margin:0;min-height:44px;padding:6px 0}
body.qr-home .auth-header{position:relative}
#header-profile{display:flex;align-items:center;gap:10px;min-width:0}
.header-profile-text{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere;font-size:14px}
@media(min-width:768px){
 body.qr-home #header-profile{position:absolute;left:50%;transform:translateX(-50%);max-width:calc(100% - 400px)}
 body.qr-home #home-step>.lede{display:none}
 body.qr-home .home-tools{margin-top:6px}
}
@media(max-width:767px){
 #header-profile .header-profile-text{display:none}
 #header-profile:has(.person-avatar[hidden]),#header-profile:not(:has(.person-avatar)){display:none}
 #header-profile .person-avatar{width:38px;height:38px}
}
/* Half the existing whitespace around the catalog command row. */
body.qr-home #qr-home-error:empty{min-height:10px;margin:3.5px 0 2.5px}
body.qr-home .qr-home-title h2{margin-top:.415em}
@media(min-width:768px){
 body.qr-home #qr-list{margin-top:10px}
 body.qr-home .qr-home-title h2{margin-bottom:.415em}
 body.qr-home .catalog-context{margin-bottom:6px}
}
@media screen{
 :root[data-theme=dark] .person-avatar{background:#2b2b2b;border-color:#626262}
}

#people-my-avatar{width:auto;flex:0 0 auto;margin:0;padding:10px 14px}

/* Category names are shared by entity type; values belong to individual objects. */
.category-pair{min-width:0;margin-bottom:8px}
.category-pair-named{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}
.category-pair>.category-row{margin:0}
.category-pair>.category-name{font:inherit;font-size:16px;min-width:0;width:100%;margin:0;padding:10px 12px;border:1px solid #d5cec6;border-radius:12px;background:#fdfcfb}
.category-name-label{margin:0;padding:10px 0;overflow-wrap:anywhere;align-self:center}
@media screen{
 :root[data-theme=dark] .category-pair>.category-name{background:#202020;border-color:#626262;color:#ededed}
}

/* Keep the colleagues table on single lines and scroll it within the modal. */
#colleagues-dialog .people-table-wrap{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
#colleagues-dialog table{width:max-content;min-width:100%}
#colleagues-dialog th,#colleagues-dialog td{white-space:nowrap;overflow-wrap:normal;word-break:normal}
#colleagues-dialog .people-actions button{display:inline-block;margin:0;vertical-align:middle}
#colleagues-dialog .people-actions button+button{margin-inline-start:12px}
@media(max-width:767px){
 #home-step>.home-identity{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;overflow-wrap:anywhere}
 #user-email{min-width:0}
}

#colleagues-dialog .people-table-wrap{overflow-x:scroll;padding-bottom:4px}
#colleagues-dialog .people-table-wrap::-webkit-scrollbar{height:12px}
#colleagues-dialog .people-table-wrap::-webkit-scrollbar-track{background:#ece8e2;border-radius:8px}
#colleagues-dialog .people-table-wrap::-webkit-scrollbar-thumb{background:#9b948b;border:2px solid #ece8e2;border-radius:8px}
#colleagues-dialog tr>:first-child{width:1%;min-width:60px}
@media screen{
 :root[data-theme=dark] #colleagues-dialog .people-table-wrap::-webkit-scrollbar-track{background:#292929}
 :root[data-theme=dark] #colleagues-dialog .people-table-wrap::-webkit-scrollbar-thumb{background:#777;border-color:#292929}
}

/* Align text/button content consistently in WebKit as well as Chromium. */
#colleagues-dialog td,#colleagues-dialog th{vertical-align:middle}
.catalog-divider{width:100%;border:0;border-top:1px solid #c9c1b8;margin:12px 0}
#catalog-primary-tools{display:flex;gap:12px;align-items:center;flex:none}
#catalog-primary-tools .qr-action-button{display:inline-flex;width:44px;height:44px;min-height:44px;min-width:44px;border-radius:50%;padding:8px;margin:0;gap:0;background:#fff;color:inherit;border:1px solid #d8d0c7;box-shadow:none;flex:none}
#catalog-primary-tools [data-entity-create],#catalog-primary-tools [data-qr]{display:none}
#catalog-primary-tools .box-create-symbol{display:block;width:26px;height:26px;font-size:30px;line-height:24px;text-align:center;overflow:visible}
#catalog-primary-tools img{width:26px;height:26px;object-fit:contain}
@media(min-width:768px){body.qr-home .home-tools{justify-content:flex-end}}
@media screen{
 :root[data-theme=dark] .catalog-divider{border-color:#454545}
 :root[data-theme=dark] #catalog-primary-tools .qr-action-button{background:#2b2b2b;border-color:#454545;color:#ededed}
 :root[data-theme=dark] #catalog-primary-tools #qr-home-scan{background:#000}
}

/* Catalog details share the entity's existing editing/navigation hit targets. */
.catalog-detail-category,.catalog-detail-address,.catalog-current-details>.qr-card-description{display:block;white-space:pre-wrap;overflow-wrap:anywhere}
.catalog-current-details{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}
.catalog-tree-address{grid-column:2;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.folder-editor>form>[data-field=description]{grid-area:description}
@media(min-width:768px){.folder-editor>form{grid-template-areas:'heading heading' 'title categories' 'description categories'}}
.location-address-text{display:block;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.location-address-entry{display:flex;align-items:end;gap:10px;margin:0 0 12px}
.location-address-entry>label{flex:1;min-width:0;margin:0}.location-address-entry input{width:100%;box-sizing:border-box}
.location-address-entry>button{width:auto;margin:0;flex:none}

/* Catalog metadata is one continuous type/category line, matching the tree. */
#qr-list .qr-card :is(.entity-card-type,.catalog-detail-metadata){display:block;justify-self:stretch;border-bottom:1px solid var(--line,#bdb6ac);padding-bottom:6px}
#qr-list .qr-card :is(.entity-card-type,.catalog-detail-metadata):has(+.catalog-child-counts){border:0;padding-bottom:0}
#qr-list .qr-card .catalog-child-counts{grid-column:1/-1;border-bottom:1px solid var(--line,#bdb6ac);padding-bottom:6px}
.catalog-detail-metadata{display:block;white-space:normal;overflow-wrap:anywhere}
button.catalog-current-details{width:100%;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;text-align:start;box-shadow:none;cursor:pointer}
button.catalog-current-details:hover{background:transparent}
.catalog-current-details:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.box-editor h2{padding-right:150px}
@media(min-width:768px){#qr-list:not(.catalog-tree-mode){grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),340px));align-items:start;justify-content:start}}
/* Plain-looking, keyboard-accessible saved address. */
button.location-address-text{display:block;width:100%;min-height:0;padding:0;margin:6px 0;border:0;border-radius:0;background:transparent!important;color:inherit;font:inherit;text-align:start;box-shadow:none;white-space:pre-wrap;cursor:pointer}
button.location-address-text:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.location-address-entry{align-items:center}
.location-address-entry textarea{font:inherit;font-size:16px;line-height:1.5;width:100%;min-height:calc(4.5em + 22px);height:calc(4.5em + 22px);max-height:none;resize:vertical;padding:10px;border:1px solid #d5cec6;border-radius:12px;box-sizing:border-box;margin:0}
.location-address-entry .location-address-search,.location-coordinates .location-coordinate-search{width:44px;min-width:44px;height:44px;min-height:44px;flex:none;padding:9px;margin:0}
.location-address-search svg,.location-coordinate-search svg{width:24px;height:24px;display:block}
.entity-map-picker .location-coordinates,#location-picker-coordinates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;align-items:end;gap:8px}
.entity-map-picker .location-coordinates label,#location-picker-coordinates label{min-width:0;margin:0}
.entity-map-picker .location-coordinates input,#location-picker-coordinates input{width:100%;min-width:0;margin:0;font-size:16px}
#location-save:disabled,.entity-map-picker [data-save]:disabled{opacity:.45;cursor:default}
@media(max-width:767px){
 .box-editor,#task-editor,.entity-map-picker,#location-dialog:not(.map-view-fullscreen){position:fixed;inset:0;margin:0;width:100%;max-width:100%!important;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0;border-radius:0;box-shadow:none;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .box-editor .box-header-actions{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
 .box-editor h2{padding-right:150px}
 body.qr-owner #auth-card{position:fixed;inset:0;z-index:20;width:100%;max-width:none;height:100vh;height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html:has(body.qr-owner),body.qr-owner,html:has(.entity-map-picker[open]),body:has(.entity-map-picker[open]){overflow:hidden;overscroll-behavior:none}
}

#qr-list .entity-card-header{padding-right:0}
#qr-list .entity-card-header .entity-card-icon{grid-row:1}
#qr-list .entity-card-header strong{padding-right:112px}
#qr-list .entity-card-header .entity-card-type{grid-column:1/-1;white-space:normal;overflow-wrap:anywhere}
#qr-list .entity-card-header .catalog-card-tools{top:0;transform:none}

#qr-step:has(.editor-sticker-badge:not([hidden])) .qr-object-tasks{right:94px}

/* Explicit map location and editor actions. */
.map-user-location{position:absolute;right:max(64px,calc(env(safe-area-inset-right) + 60px));top:max(12px,env(safe-area-inset-top));z-index:4;width:40px;height:40px}
.owned-map-dialog>h2,#location-dialog:has(.map-user-location:not([hidden]))>h2{padding-inline-end:100px}
.device-location-consent{max-width:min(480px,calc(100vw - 32px));box-sizing:border-box}
.device-location-consent button{margin:8px}
.editor-location-pin.located{color:#08783e}
html:root[data-theme="dark"] .icon-button.editor-location-pin.located{color:#45d98d}
.editor-bottom-close{display:block;width:100%;margin-top:14px}
.box-editor:not(.folder-editor) h2{padding-right:194px}
#qr-step #qr-editor-location{position:absolute;right:92px;top:0;width:38px;height:38px;margin:0}
#qr-step:has(.editor-sticker-badge:not([hidden])) #qr-editor-location{right:140px}
#qr-editor-close-bottom{grid-column:1 / -1}

#location-dialog.map-view-fullscreen:has(.map-user-location:not([hidden])) #location-title{right:112px;max-width:calc(100% - 136px);padding:8px 12px}
#location-dialog.map-view-fullscreen .map-retry{position:absolute;z-index:4;top:80px;left:20px}

/* Catalog maps use the same over-map controls as the single-object viewer. */
.owned-map-dialog:has(>.owned-map:not([hidden])){padding:0;border:0;overflow:hidden}
.owned-map-dialog>.owned-map:not([hidden]){position:absolute;inset:0;height:100%;width:100%;min-height:0;border:0;border-radius:0}
.owned-map-dialog:has(>.owned-map:not([hidden]))>h2{position:absolute;z-index:2;top:max(12px,env(safe-area-inset-top));right:112px;max-width:calc(100% - 136px);max-height:25dvh;overflow:auto;margin:0;padding:8px 12px;background:#fffffff0;border-radius:12px;font-size:1.2rem;overflow-wrap:anywhere}
.owned-map-dialog:has(>.owned-map:not([hidden]))>.owned-map-dismiss{z-index:3;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));background:#fffffff0}
.owned-map-dialog:has(>.owned-map:not([hidden]))>.text-button{position:absolute;z-index:2;bottom:max(48px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);margin:0;padding:12px 18px;background:#eee8e1;border-radius:14px;color:#5f554c;font-weight:600;box-shadow:0 2px 8px #0003}
.owned-map-dialog:has(>.owned-map:not([hidden]))>.map-status:not(:empty){position:absolute;z-index:3;bottom:110px;left:12px;right:12px;background:white;padding:8px}
:root[data-theme=dark] .owned-map-dialog:has(>.owned-map:not([hidden]))>:is(h2,.owned-map-dismiss,.text-button,.map-status:not(:empty)){background:#202020f5;color:#ededed}

/* Stable creation grid and a page lock prevent mobile scroll chaining. */
.folder-dialog.create-type-grid[open]{position:fixed;box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100svh - 24px);overflow-x:hidden;overflow-y:auto;align-content:start;grid-auto-rows:max-content;font-size:16px;line-height:1.4;-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
.folder-dialog.create-type-grid>h2{min-width:0;font-size:22px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}
.folder-dialog.create-type-grid>button{font-size:16px;line-height:1.4;min-width:0;transition:none;transform:none!important}
.folder-dialog.create-type-grid .entity-type-icon{width:24px;height:24px;font-size:24px;flex-shrink:0}
@media(min-width:768px){
 body.qr-home .home-tools{justify-content:space-between}
 body.qr-home .home-tools>:is(#qr-home-scan,#catalog-global-search),
 :root[data-theme=dark] body.qr-home .home-tools>:is(#qr-home-scan,#catalog-global-search){display:flex;align-items:center;justify-content:flex-start;gap:12px;width:auto;flex:none;min-height:64px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font-size:14px;font-weight:400;transition:none;transform:none}
 body.qr-home .home-tools>#qr-home-scan img{width:39.2px;height:39.2px;flex:none}
}

.admin-level-select,#edit-admin{min-height:44px;padding:8px 10px;border:1px solid var(--line,#d5cec6);border-radius:10px;background:var(--bg,#fdfcfb);color:inherit;font:inherit;min-width:155px}
#edit-admin{margin-bottom:16px;width:100%}

/* Editable category names look like text, while retaining normal keyboard focus. */
:root .category-pair>.category-name,:root[data-theme=dark] .category-pair>.category-name{border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:inherit;padding-inline:0}
.category-pair>.category-name:focus-visible{outline:2px solid #78bfff;outline-offset:2px}
.create-catalog-name{color:#175caa}
:root[data-theme=dark] .create-catalog-name{color:var(--theme-link)}
@media(max-width:767px){
 #colleagues-dialog{position:fixed;inset:0;margin:0;box-sizing:border-box;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0;border-radius:0;box-shadow:none;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
}
@media(min-width:768px){
 .object-title-fit{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;white-space:normal;min-width:0;max-width:100%;overflow-x:auto}
 .box-editor h2>strong.object-title-fit{display:block}
}

#catalog-limit-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
#catalog-limit-dialog h2{font-size:22px;line-height:1.4}
#catalog-limit-dialog p{line-height:1.5}
@media(min-width:768px){
 body.qr-home #qr-list:not(.catalog-tree-mode){display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start}
 #qr-list:not(.catalog-tree-mode)>.qr-card-shell,#qr-list:not(.catalog-tree-mode)>#catalog-create-card{flex:0 0 var(--catalog-card-width,340px);width:var(--catalog-card-width,340px);max-width:100%;box-sizing:border-box}
 #qr-list:not(.catalog-tree-mode)>.qr-card-shell strong.object-title-fit{overflow:visible}
}

/* Creation choices keep their own scroll area, with an explicit close control. */
.folder-dialog.create-type-grid>h2{padding-inline-end:52px;min-height:44px}
.folder-dialog.create-type-grid>.create-type-close{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:44px;height:44px;min-height:44px;padding:0;margin:0;font-size:28px;z-index:1}
@media(max-width:767px){
 .folder-dialog.create-type-grid[open]{inset:0;margin:0;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0;border-radius:0;box-shadow:none;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
}

#catalog-global-search svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:2}
@media(min-width:768px){body.qr-home .home-tools{justify-content:flex-start}body.qr-home .home-people-tools{margin-inline-start:auto}}
#qr-search-dialog form{position:relative}#qr-search-dialog h2{padding-inline-end:50px}#qr-search-dialog .search-dismiss{position:absolute;inset-inline-end:0;top:0}
@media(max-width:767px){:is(#qr-search-dialog,.chat-search-dialog)[open],dialog.folder-tree-dialog[open]{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;padding:20px}
dialog.folder-tree-dialog[open]{display:flex;flex-direction:column;gap:8px}dialog.folder-tree-dialog .folder-tree-body{flex:1;min-height:0;overflow:auto}dialog.folder-tree-dialog .dialog-cancel{flex:none}#catalog-primary-tools{display:inline-flex}}

/* Separate actions and labels even when the title wraps. */
#qr-list .entity-card-header .catalog-card-tools{position:static;grid-column:1/-1;grid-row:1;justify-self:end;transform:none}
#qr-list .entity-card-header .entity-card-icon{grid-column:1;grid-row:2}
#qr-list .entity-card-header strong{grid-column:2;grid-row:2;padding:0;white-space:normal}
#qr-list .entity-card-header .entity-card-type{grid-row:3}
.box-editor .box-header-actions{position:static;justify-content:flex-end;flex-wrap:wrap;margin-bottom:8px}
.box-editor h2,.box-editor:not(.folder-editor) h2{padding-inline:0;white-space:normal}
.folder-tree-dialog .folder-tree-body{touch-action:pan-y;-webkit-overflow-scrolling:touch}

.qr-catalog-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
#qr-list .catalog-page-button{display:inline-grid;place-items:center;flex:none;width:38px;height:38px;padding:0;line-height:1}
#qr-list .catalog-page-button svg{position:static;display:block;width:20px;height:20px;margin:0;transform:none}
.qr-catalog-actions:empty{display:none}
#qr-list .qr-catalog-actions>button{position:static;transform:none;margin:0}

#qr-list .entity-card-header strong.object-title-fit,.box-editor h2 strong.object-title-fit{overflow:visible;overflow-wrap:anywhere!important}
.box-editor h2>strong.object-title-fit{display:inline}

.catalog-tree-row>.gallery-actions{position:static;inset:auto;flex:0 0 auto;margin:0 4px;width:42px;height:42px;align-self:center}

.folder-dialog.object-actions-menu>.dialog-cancel{justify-self:center;width:auto;min-width:9em}

.people-entry-access{display:flex;flex-wrap:wrap;gap:4px 16px;border:0;margin:0 0 16px;padding:0;min-width:0}
#colleague-access-field[hidden]{display:none}
.people-entry-access legend{padding:0}
.people-entry-access label{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:0;cursor:pointer}
#colleagues-dialog .people-entry .people-entry-access input{width:18px;height:18px;min-height:0;margin:0;padding:0;flex:none}


#colleagues-dialog #colleague-editor{width:100%;max-width:none;max-height:none;overflow:visible}
#colleagues-dialog #colleague-editor[hidden]{display:none}

#colleague-invitation-title{overflow-wrap:anywhere}
#colleague-invitation .invite-sender{display:flex;align-items:center;gap:12px;margin-block:12px 20px}
#colleague-invitation .invite-avatar{display:flex;flex:none}
#colleague-invitation .invite-contact{display:grid;min-width:0;font-size:1rem;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
#colleague-invitation .invite-name:empty{display:none}
#colleagues-dialog .people-table-wrap{height:auto;max-height:none;overflow-y:hidden}
#colleagues-dialog .people-more{display:block;margin:12px auto}
#colleagues-dialog .people-more[hidden]{display:none}
#colleague-invitation .dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#colleague-invitation .dialog-actions button{min-width:0;overflow-wrap:anywhere;margin:0}

.task-table .person-avatar,#task-meta .person-avatar,#task-assignee-picker .person-avatar{width:32px;height:32px;vertical-align:middle;margin-inline-end:6px}
#task-assignee-picker[hidden],#task-assignee[hidden]{display:none}
#task-project-picker[hidden],#task-project[hidden]{display:none}
#task-project-picker>summary{position:relative;padding-inline-end:1.75rem;cursor:pointer}
#task-project-picker>summary:not(:has(.entity-type-icon)){display:block}
#task-project-picker>summary::-webkit-details-marker{display:none}
#task-project-picker>summary::after{content:'';position:absolute;inset-inline-end:.65rem;top:50%;width:.45rem;height:.45rem;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-65%) rotate(45deg)}
#task-project-picker[open]>summary::after{transform:translateY(-25%) rotate(225deg)}
#task-project-picker>.people-projects{max-height:40dvh;overflow:auto;margin-block:.25rem}
.task-project-disclosure .person-avatar{width:32px;height:32px}
#task-assignee-picker>summary,.task-assignee-options>button{padding:8px;cursor:pointer;text-align:start}
.task-assignee-options{max-height:40dvh;overflow:auto}
.task-assignee-options>button{display:block;width:100%}

.people-add-actions,.group-member-input{display:flex;align-items:center;gap:8px}
.people-add-actions>button,.group-member-input>input{flex:1;min-width:0}
.group-member-input>button{width:auto}

.project-icon{filter:sepia(1) saturate(2.3)}
.project-icon.shared-project-icon{filter:sepia(1) saturate(2.3) hue-rotate(155deg)}
.project-sharing-dialog{max-height:90dvh;overflow:auto;width:min(880px,96vw)}
.project-sharing-dialog table{border-collapse:collapse}
.project-sharing-dialog td,.project-sharing-dialog th{white-space:nowrap;padding:8px}
.project-sharing-dialog input[type=checkbox]{width:20px;height:20px}
.project-sharing-dialog label{display:block}
@media(max-width:767px){.project-sharing-dialog{box-sizing:border-box;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}}

@media(min-width:768px){#colleagues-dialog,.branch-access-dialog{box-sizing:border-box;width:100%;max-width:100vw;margin-inline:0}}
#colleagues-dialog tr>:nth-child(3),#colleagues-dialog tr>:nth-child(4){min-width:24ch}
#people-own-name{color:inherit;font-weight:400}
.people-projects{display:flex;flex-direction:column;align-items:stretch;margin-block:.8rem}
.people-projects[hidden],.project-access-dialog .people-self[hidden]{display:none}
.people-projects>.people-show-projects{align-self:flex-start;justify-self:start;width:auto;margin-inline:0 auto;text-align:start}
.project-owner-lines{display:grid;min-width:0;text-align:start}
.people-projects>p{margin:0 0 .5rem}
.people-projects>.people-project{flex:none;width:100%;border:0}
.people-project[aria-pressed=true]{background:rgba(64,144,199,.12)}
.catalog-tree-object>.project-owner{grid-column:2}
.project-owner{display:flex;align-items:center;gap:.45rem;font-weight:400;font-size:.92em;overflow-wrap:anywhere}
.project-owner .avatar-circle{flex:none}
.entity-card-header>.project-owner{grid-column:1/-1}
#qr-list .qr-card .entity-card-type:has(+.project-owner){border-bottom:0;padding-bottom:0}
#qr-list .entity-card-header>.project-owner:not(:has(+.catalog-child-counts)){border-bottom:1px solid var(--line,#bdb6ac);padding-bottom:6px}
#qr-list .entity-card-header .catalog-card-tools{justify-self:stretch;justify-content:flex-end}
#qr-list :is(.catalog-card-tools,.qr-catalog-actions)>:is(.project-access-neutral,.project-access-on){margin-inline-end:auto}
#qr-list .project-access-neutral{color:#838383}
#qr-list .project-access-on{color:#379be8}
.people-entry,.people-entry form{min-width:0;width:100%;box-sizing:border-box}
.people-entry>.people-heading{margin-bottom:1rem}
.people-entry .group-avatar-field{display:flex;align-items:center;gap:12px;margin:12px 0}
.people-entry .group-avatar-field button{margin:0}
#colleagues-dialog .people-entry input:not([type=radio]){box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid var(--line,#d5cec6);border-radius:12px;margin-bottom:16px;font:inherit;font-size:max(16px,1rem)}
#colleagues-dialog .group-member-input input{margin-bottom:0}
.group-email-list{--email-row:3.25rem;max-height:calc(20 * var(--email-row));overflow-y:auto;overscroll-behavior:contain}
.group-email-list .group-member-input{box-sizing:border-box;display:flex;align-items:center;gap:.5rem;height:var(--email-row);margin:0}
.group-member-input input{flex:1;min-width:0}.group-member-input button{width:auto;margin:0}
.group-avatar-field img{border-radius:50%}
@media(max-width:767px){.branch-access-dialog{position:fixed;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border:0;box-shadow:none}.group-email-list{max-height:calc(10 * var(--email-row))}}
.catalog-card-files{margin:0;padding:0;list-style:none;text-align:start}
.catalog-card-files[hidden]{display:none}
.catalog-card-files li{display:flex;align-items:baseline;flex-wrap:wrap;gap:.25em .6em;margin-block:.25em}
.catalog-card-files a{min-width:0;overflow-wrap:anywhere;color:var(--theme-link,#165886)}
.catalog-card-files small{white-space:nowrap}
.attachment-files{margin-block:12px;min-width:0}
.attachment-files[hidden],.attachment-files [hidden],.attachment-files ul:empty,.attachment-files p:empty{display:none}
.attachment-files ul{margin:6px 0;padding:0;list-style:none}
.attachment-files li{display:flex;align-items:baseline;justify-content:space-between;gap:.6em;padding:4px 0;overflow-wrap:anywhere}
.attachment-files button{width:auto}.attachment-files strong{display:block}.attachment-files p{margin:4px 0}

body.qr-admin .auth-header{width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-items:center;gap:16px}
body.qr-admin #brand-home{grid-column:1;grid-row:1;justify-self:start}
body.qr-admin #header-profile{grid-column:2;grid-row:1;justify-self:center}
body.qr-admin #header-profile .header-profile-text{display:flex;flex-direction:column;gap:3px;text-align:center}
body.qr-admin .header-controls{grid-column:3;grid-row:1;justify-self:end;flex-wrap:nowrap;margin:0}
body.qr-admin #qr-back{grid-column:1;grid-row:2;justify-self:start}
body.qr-admin #admin-login,body.qr-admin #admin-symbol{display:none}
.admin-email-actions{display:flex;align-items:stretch;gap:12px;margin-bottom:16px}
.admin-email-actions :is(#add-user,#qr-admin-scan){width:auto;margin:0;min-width:0;flex:0 1 auto}
.admin-email-actions #qr-admin-scan{display:flex;align-items:center;gap:10px;padding:12px 18px}
.admin-email-actions #qr-admin-scan img{width:28px;height:28px}
.admin-email-actions #qr-admin-scan span{display:inline;font-size:14px;line-height:1.3}
.admin-menu button[aria-current=page]{box-shadow:inset 0 0 0 2px #76685c;font-weight:700}
:root[data-theme=dark] #admin-step .admin-menu button[aria-current=page]{background:#536e61;color:#fff;border-color:#9bd6c0;box-shadow:inset 0 0 0 1px #9bd6c0}
.admin-menu button:focus-visible{outline:3px solid #b45132;outline-offset:3px}
@media(max-width:700px){
 body.qr-admin .auth-header{grid-template-columns:auto minmax(0,1fr);gap:12px}
 body.qr-admin .header-controls{grid-column:2;gap:6px}
 body.qr-admin #header-profile{grid-column:1/-1;grid-row:2}
 body.qr-admin #qr-back{grid-row:3}
 .admin-email-actions :is(#add-user,#qr-admin-scan){flex:1;padding:10px;font-size:14px;white-space:normal}
}
.sticker-workbench{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,1fr);gap:32px;align-items:start;direction:ltr}
[dir=rtl] .sticker-workbench> *{direction:rtl}
.sticker-layout-settings{display:grid;gap:16px}
.sticker-layout-settings[hidden]{display:none}
.sticker-layout-settings textarea{width:100%;box-sizing:border-box;resize:vertical}
.sticker-preview{position:sticky;top:24px;min-width:0;text-align:center}
.sticker-preview h2{font:600 20px/1.4 Arial,sans-serif;margin:0 0 18px}
.sticker-preview-art{padding:16px;border:1px solid #d5cec6;border-radius:12px;background:repeating-conic-gradient(#e4e4e4 0% 25%,#fff 0% 50%) 0 0/16px 16px}
.sticker-preview-art>svg{display:block;max-width:100%;height:auto;max-height:65vh;margin:auto}
.sticker-preview p{font-size:14px;line-height:1.5}
@media(max-width:1050px){.sticker-workbench{grid-template-columns:1fr}.sticker-preview{position:static}}
:root[data-theme=dark] #sticker-form :is(select,option){background:#202020;color:#ededed;color-scheme:dark}
body.qr-home #qr-list.catalog-table-mode{display:block;min-width:0;max-width:100%}
.catalog-table-scroll{width:100%;overflow-x:auto}
.catalog-table{width:100%;border-collapse:collapse;text-align:start}
.catalog-table th,.catalog-table td{padding:.55em .65em;text-align:start;vertical-align:top;border-bottom:1px solid var(--line,#aaa)}
.catalog-table td:first-child{min-width:12em}
.catalog-table td button.text-button{text-align:start;margin:0}
#qr-list .catalog-table .gallery-actions{position:static;margin:0}
.catalog-child-counts{display:flex;flex-wrap:wrap;gap:3px 1em;text-align:start;font-size:.9rem;line-height:1.4}
.catalog-child-counts>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
#catalog-counts-toggle[aria-pressed=true]{color:var(--theme-surface,#fff);background:var(--theme-text,#292522);border-color:currentColor}
:root[data-theme=dark] #catalog-counts-toggle[aria-pressed=true]{background:#eee;color:#202020}
.catalog-tree-object>.catalog-child-counts{grid-column:2}
.catalog-search-terms{display:flex;flex-wrap:wrap;gap:6px}
.catalog-search-terms button{width:auto;margin:0;padding:4px 10px}
@media(max-width:767px){#catalog-refresh{display:none}}

.object-editor-heading{display:flex;flex-direction:column-reverse;gap:8px}
.object-editor-heading h2{margin:0;min-width:0}
.task-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:0 12px}
.task-field-pair>*{min-width:0}
dialog[autofocus]:focus{outline:none}
:is(#task-editor,.shared-task-editor) :is(.task-heading,.people-heading){justify-content:flex-end;gap:6px}
:is(#task-editor,.shared-task-editor) :is(.task-heading,.people-heading)>button:last-child{display:inline-grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;margin:0;border-radius:50%;font-size:24px;line-height:1}
:root :is(#task-editor,dialog.shared-task-editor) .task-field-pair :is(input,select,summary){background:transparent;border:0;box-shadow:none}
:root :is(#task-editor,dialog.shared-task-editor) .task-field-pair :is(input,select,summary):focus-visible{outline:2px solid currentColor;outline-offset:1px}
.task-assignee-identity{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 8px;max-width:100%;overflow-wrap:anywhere}
.task-assignee-identity .person-avatar{width:32px;height:32px}
.shared-task-editor .task-assignment-pair>div>.task-assignee-identity{display:flex;margin-top:6px}
.task-field-pair :is(input,select,details){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.task-field-pair summary{overflow-wrap:anywhere}
.task-field-pair>div:has(>:is(select,#task-edit-status)[hidden]):not(:has(details)){display:none}
.task-field-pair>div:only-child,.task-field-pair>div:has(+div>#task-edit-status[hidden]){grid-column:1/-1}
@media(max-width:767px){
 .task-assignment-pair{grid-template-columns:minmax(0,1fr)}
 #task-editor #task-due{padding-inline:4px}
}
@media(min-width:768px){
 dialog.box-editor[open],body.qr-owner #auth-card{
  box-sizing:border-box;position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;
  border:0;border-radius:0;box-shadow:none;overflow:auto;overscroll-behavior:contain;
 }
 body.qr-owner #auth-card{z-index:20}
 html:has(body.qr-owner){overflow:hidden}
 .object-editor-heading{flex-direction:row;align-items:flex-start;justify-content:space-between;margin-bottom:16px}
 .object-editor-heading .box-header-actions{flex:none;margin:0}
 .box-editor>form{grid-template-areas:'additional additional' 'title title' 'description description'}
 .folder-editor>form{grid-template-areas:'title categories' 'description categories'}
 body.qr-owner #qr-step{padding-top:0}
 .qr-editor-heading{grid-column:1/-1;margin:0 0 12px;padding-right:282px;min-height:40px;overflow-wrap:anywhere}
 .qr-editor-text{grid-row:2 / span 2}
 #qr-step #qr-shape-open{left:auto;right:232px}
 #qr-step #qr-color-open{left:auto;right:186px}
}

@media(max-width:767px){
 :is(.box-editor,#qr-step,#task-editor,.shared-task-editor) :is(input:not([type=checkbox],[type=radio],[type=file],[type=hidden]),select,textarea){
  font-size:max(16px,1rem);font-weight:400;
 }
}

.catalog-search .catalog-chat-option{display:flex;align-items:center;gap:.55rem;cursor:pointer}
.catalog-chat-option input{width:auto;margin:0}
