/* Original nav-menu base, shared verbatim from ui-fixes.css. */
.nav-menu{position:relative}
.nav-menu>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:0 10px;border:1px solid var(--ui-border,#dce3eb);border-radius:8px;background:#fff;font-size:13px}
.nav-menu>summary::-webkit-details-marker{display:none}
.nav-menu[open]>summary{border-color:var(--ui-primary-border,#a9d3d5);background:var(--ui-primary-soft,#e3f2f2)}
.nav-menu-list{position:absolute;right:0;top:calc(100% + 6px);z-index:80;min-width:168px;max-width:min(240px,calc(100vw - 16px));display:flex;flex-direction:column;padding:6px;background:var(--ui-surface,#fff);color:var(--ui-text,#1d1d1f);border:1px solid var(--ui-border,#dce3eb);border-radius:10px;box-shadow:0 10px 28px rgba(32,40,51,.14);box-sizing:border-box}
.nav-menu:not(.nav-user-menu) .nav-menu-list{left:0;right:auto}
.nav-menu-list>button,.nav-menu-list>a,.nav-menu-list>a:link,.nav-menu-list>a:visited{
  box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;text-align:left;width:100%;border:0;min-height:36px;padding:0 10px;border-radius:6px;font:inherit;font-size:14px;line-height:1.4;letter-spacing:normal;color:var(--ui-text,#1d1d1f)!important;background:transparent;text-decoration:none!important;cursor:pointer;white-space:normal;overflow-wrap:anywhere;appearance:none;-webkit-appearance:none
}
.nav-menu-list>button:hover,.nav-menu-list>a:hover,.nav-menu-list>a:focus-visible,.nav-menu-list>button:focus-visible{background:var(--ui-surface-muted,#eef2f6);color:var(--ui-text,#1d1d1f)!important;text-decoration:none!important}
.nav-menu-list .danger-text{color:var(--ui-danger,#b3423c)}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu>summary{background:var(--ui-surface,#162238);border-color:rgba(255,255,255,.14);color:var(--ui-text,#f2f4f8)}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu[open]>summary{border-color:rgba(227,200,143,.45);background:var(--ui-primary-soft,#28334a)}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list{background:var(--ui-surface,#162238);border-color:rgba(255,255,255,.14);box-shadow:0 10px 28px rgba(0,0,0,.45);color:var(--ui-text,#f2f4f8)}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list>button,html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list>a,html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list>a:link,html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list>a:visited{color:var(--ui-text,#f2f4f8)!important;background:transparent;text-decoration:none!important}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list>button:hover,html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list>a:hover,html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list>a:focus-visible,html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .nav-menu-list>button:focus-visible{background:rgba(255,255,255,.08);color:var(--ui-text,#f2f4f8)!important;text-decoration:none!important}
/* Shared original invite/menu/dialog component rules; no page-wide stylesheet import. */
:is([data-topbar-entries],.feedback-editor,.cd-dialog){  --ui-primary: #0a7d84;
  --ui-primary-rgb: 10, 125, 132;
  --ui-primary-hover: #08666c;
  --ui-primary-hover-rgb: 8, 102, 108;
  --ui-primary-soft: #e3f2f2;
  --ui-primary-soft-rgb: 227, 242, 242;
  --ui-primary-soft-hover: #d3eaea;
  --ui-primary-soft-hover-rgb: 211, 234, 234;
  --ui-primary-border: #a9d3d5;
  --ui-primary-border-rgb: 169, 211, 213;
  --ui-bg: #f5f5f7;
  --ui-bg-rgb: 245, 245, 247;
  --ui-surface: #ffffff;
  --ui-surface-rgb: 255, 255, 255;
  --ui-surface-soft: #f8f8fa;
  --ui-surface-soft-rgb: 248, 248, 250;
  --ui-surface-muted: #ececef;
  --ui-surface-muted-rgb: 236, 236, 239;
  --ui-text: #1d1d1f;
  --ui-text-rgb: 29, 29, 31;
  --ui-text-secondary: #6e6e73;
  --ui-text-secondary-rgb: 110, 110, 115;
  --ui-muted: #6e6e73;
  --ui-muted-rgb: 110, 110, 115;
  --ui-border: #e5e5ea;
  --ui-border-rgb: 229, 229, 234;
  --ui-border-strong: #d2d2d7;
  --ui-border-strong-rgb: 210, 210, 215;
  --ui-disabled-text: #8e8e93;
  --ui-disabled-text-rgb: 142, 142, 147;
  --ui-blue: #318bff;
  --ui-blue-rgb: 49, 139, 255;
  --ui-focus: #0a7d84;
  --ui-focus-rgb: 10, 125, 132;
  --ui-info-text: #1e6694;
  --ui-info-text-rgb: 30, 102, 148;
  --ui-info-soft: #eff7ff;
  --ui-info-soft-rgb: 239, 247, 255;
  --ui-info-border: #bfd7ed;
  --ui-info-border-rgb: 191, 215, 237;
  --ui-danger: #d70015;
  --ui-danger-rgb: 215, 0, 21;
  --ui-danger-soft: #fdecee;
  --ui-danger-soft-rgb: 253, 236, 238;
  --ui-danger-border: #f4b9c0;
  --ui-danger-border-rgb: 244, 185, 192;
  --ui-warning: #b25000;
  --ui-warning-rgb: 178, 80, 0;
  --ui-warning-soft: #fff4e5;
  --ui-warning-soft-rgb: 255, 244, 229;
  --ui-warning-border: #f2cf9e;
  --ui-warning-border-rgb: 242, 207, 158;
  --ui-success: #248a3d;
  --ui-success-rgb: 36, 138, 61;
  --ui-success-soft: #e8f5ec;
  --ui-success-soft-rgb: 232, 245, 236;
  --ui-success-border: #b5dcc0;
  --ui-success-border-rgb: 181, 220, 192;
  --color-primary: var(--ui-primary);
  --color-primary-hover: var(--ui-primary-hover);
  --color-secondary: var(--ui-primary);
  --color-accent: var(--ui-info-text);
  --color-bg: var(--ui-bg);
  --color-surface: var(--ui-surface);
  --color-text: var(--ui-text);
  --color-muted: var(--ui-muted);
  --color-text-muted: var(--ui-muted);
  --color-border: var(--ui-border);
  --color-danger: var(--ui-danger);
  --color-warning: var(--ui-warning);
  --color-success: var(--ui-success);
  --color-focus: rgba(var(--ui-focus-rgb), 0.22);
  --color-table-head: var(--ui-surface-soft);
  --bg: var(--ui-bg);
  --panel: var(--ui-surface);
  --panel-strong: var(--ui-surface);
  --line: var(--ui-border);
  --line-strong: var(--ui-border-strong);
  --text: var(--ui-text);
  --ink: var(--ui-text);
  --muted: var(--ui-muted);
  --brand: var(--ui-primary);
  --brand-dark: var(--ui-primary-hover);
  --brand-soft: var(--ui-primary-soft);
  --accent: var(--ui-info-text);
  --accent-soft: var(--ui-info-soft);
  --danger: var(--ui-danger);;--tq-ease:cubic-bezier(.22,1,.36,1)}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) :is([data-topbar-entries],.feedback-editor,.cd-dialog),html:not(.yq-light):has(#yqTheme) :is([data-topbar-entries],.feedback-editor,.cd-dialog){--ui-primary:#e3c88f;--ui-primary-rgb:227,200,143;--ui-primary-soft:#28334a;--ui-surface:#162238;--ui-text:#f2f4f8;--ui-text-secondary:#b0bbce;--ui-border:#35435d}

dialog.cd-dialog{
  border:0;padding:0;margin:auto;background:transparent;color:var(--ui-text);
  max-width:min(440px,calc(100vw - 32px));width:max-content;min-width:min(320px,calc(100vw - 32px));
  overflow:visible;
}
dialog.cd-dialog::backdrop{background:rgba(8,14,26,.42);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
dialog.cd-dialog.cd-scrim-soft::backdrop{background:rgba(8,14,26,.10);-webkit-backdrop-filter:none;backdrop-filter:none}
.cd-card{
  display:grid;gap:12px;padding:22px 22px 18px;border:0;border-radius:20px;color:var(--ui-text);
  background:var(--ui-surface);
  background:color-mix(in srgb,var(--ui-surface) 80%,transparent);
  -webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%);
  box-shadow:0 18px 50px rgba(0,0,0,.28),0 2px 8px rgba(0,0,0,.12);
}
.cd-title{margin:0;font-size:18px;line-height:1.4;font-weight:700;color:var(--ui-text)}
.cd-tone-danger .cd-title{color:var(--ui-danger)}
.cd-body{display:grid;gap:8px;font-size:15px;line-height:1.7;color:var(--ui-text)}
.cd-body p{margin:0}
.cd-body .error{color:var(--ui-danger)}
.cd-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:4px}
.cd-actions button{
  min-height:42px;min-width:96px;padding:8px 18px;border:0!important;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;
  box-shadow:none;
}
.cd-actions button.primary{background:var(--ui-primary);color:#fff}
.cd-actions button.secondary,.cd-actions button.ghost{background:var(--ui-surface-soft)!important;color:var(--ui-text)!important}
.cd-actions button.danger{
  background:color-mix(in srgb,var(--ui-danger) 22%,var(--ui-surface))!important;color:var(--ui-danger)!important;
}
.cd-actions button:focus-visible{outline:2px solid var(--ui-primary);outline-offset:2px}
.cd-actions button:disabled{opacity:.5;cursor:not-allowed}
@media (max-width:520px){.cd-actions button{flex:1 1 0}}
.cd-card{background:#f7f4ee!important}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .cd-card{background:#152033!important}
dialog.cd-dialog .cd-card,
dialog.ui-dialog,
dialog.feedback-editor,
dialog.plan-review-dialog,
dialog.adjustment-work-dialog,
dialog.adjustment-customer-preview,
dialog.feedback-image-preview{
  background:linear-gradient(180deg,rgba(27,40,64,.80),rgba(15,24,40,.74))!important;
  -webkit-backdrop-filter:blur(26px) saturate(155%)!important;
  backdrop-filter:blur(26px) saturate(155%)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.55),0 2px 10px rgba(0,0,0,.30)!important;
  color:#eef2f8!important;
  border-radius:20px!important;
}
dialog.cd-dialog .cd-card :is(.cd-title,.cd-body,.cd-body p,label,strong,h2,h3,h4){color:#eef2f8!important}
dialog.cd-dialog .cd-card :is(input,select,textarea),
dialog.ui-dialog :is(input,select,textarea){
  background:rgba(255,255,255,.10)!important;color:#eef2f8!important;
  border:1px solid rgba(255,255,255,.18)!important;
}
dialog.cd-dialog .cd-card :is(.small,.muted,small){color:#b9c4d3!important}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog .cd-card,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ui-dialog,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.feedback-editor,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.plan-review-dialog,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.adjustment-work-dialog,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.adjustment-customer-preview,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.feedback-image-preview{
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(246,250,255,.80))!important;
  border:1px solid rgba(20,40,80,.16)!important;
  box-shadow:0 24px 80px rgba(20,40,80,.22),0 2px 10px rgba(20,40,80,.10)!important;
  color:#1f2733!important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog .cd-card :is(.cd-title,.cd-body,.cd-body p,label,strong,h2,h3,h4){color:#1f2733!important}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog .cd-card :is(.small,.muted,small){color:#5b6675!important}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog .cd-card :is(input,select,textarea),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ui-dialog :is(input,select,textarea){
  background:rgba(255,255,255,.85)!important;color:#1f2733!important;
  border:1px solid rgba(20,40,80,.16)!important;
}
dialog.cd-dialog .cd-card,dialog.ui-dialog,dialog.feedback-editor,dialog.adjustment-work-dialog,
.site-confirm-backdrop>section,.layout-choice-backdrop>section,.home-dialog{
  background:var(--dlg-bg)!important;border:1px solid var(--dlg-border)!important;color:var(--dlg-text)!important;
  box-shadow:var(--dlg-shadow)!important;border-radius:20px!important}
dialog.ui-dialog::backdrop,dialog.feedback-editor::backdrop,dialog.adjustment-work-dialog::backdrop,dialog.cd-dialog::backdrop{background:var(--dlg-scrim)!important}
dialog.cd-dialog .cd-card :is(.cd-title,.cd-body,.cd-body p,label,strong,h2,h3,h4){color:var(--dlg-text)!important}
dialog.cd-dialog .cd-card :is(.small,.muted,small){color:var(--dlg-muted)!important}
.cd-actions button.primary,.cd-actions button:not(.secondary):not(.ghost):not(.danger){background:var(--dlg-primary-bg)!important;color:var(--dlg-primary-text)!important}
.cd-actions button.secondary,.cd-actions button.ghost{background:var(--dlg-soft)!important;color:var(--dlg-text)!important}
.invite-entry>summary.invite-chip{gap:6px;border-color:var(--ui-primary);color:var(--ui-primary);background:transparent;font-size:13px;white-space:nowrap}
.invite-entry>summary.invite-chip .invite-code-text{letter-spacing:1px}
.invite-entry>summary.invite-chip .invite-chip-hint{color:var(--ui-text-secondary)}
.invite-entry .nav-menu-list.invite-card{left:50%;right:auto;transform:translateX(-50%);width:320px;max-width:calc(100vw - 32px);padding:14px;gap:10px;background:var(--ui-surface);color:var(--ui-text)}

.invite-card-title{font-size:15px}
.invite-card-rule,.invite-pending-card p{margin:0;font-size:12.5px;line-height:1.6;color:var(--ui-text-secondary)}
.invite-code-big{padding:10px;border-radius:8px;background:var(--ui-primary-soft);color:var(--ui-primary);text-align:center;font-size:22px;font-weight:600;letter-spacing:4px}
.invite-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}
.invite-stats b{display:block;font-size:16px}
.invite-stats span{font-size:12px;color:var(--ui-text-secondary)}
.invite-actions{display:flex;gap:8px}
.invite-actions>button{flex:1;min-height:34px;font-size:13px}
.invite-copied{margin:0;font-size:12px;color:var(--ui-success)}
.invite-pending-card{display:flex;flex-direction:column;gap:8px;margin:10px 0;padding:12px;border:2px solid var(--ui-primary);border-radius:10px;text-align:left}
.invite-pending-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.invite-pending-head small{display:block;font-size:12px;color:var(--ui-text-secondary)}
.invite-pending-head .invite-code-text{font-size:20px;letter-spacing:3px}
.invite-pending-card .invite-pending-used{color:var(--ui-text)}
.invite-code-input{letter-spacing:2px;text-transform:uppercase}
@media (max-width:767px){.invite-entry>summary.invite-chip :is(.invite-chip-label,.invite-chip-hint){display:none}}
@media (max-width:1440px){.invite-entry>summary.invite-chip .invite-chip-hint{display:none}}
@media (max-width:1200px){.invite-entry>summary.invite-chip .invite-chip-label{display:none}}
@keyframes tq-pop-in{from{opacity:0;transform:translateY(-4px) scale(.96)}to{opacity:1;transform:none}}
:is(.nav-menu[open]>.nav-menu-list,.result-info-tip:is(:hover,:focus-within) .result-info-pop,.invite-entry[open] .invite-card){animation:tq-pop-in .32s var(--tq-ease) both}
.invite-entry[open] .invite-card{animation-name:tq-pop-in-centered}
@keyframes tq-pop-in-centered{from{opacity:0;transform:translateX(-50%) translateY(-4px) scale(.96)}to{opacity:1;transform:translateX(-50%)}}
@keyframes tq-dialog-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){:is(.nav-menu:not(.invite-entry)[open]>.nav-menu-list,.result-info-pop,dialog[open],dialog[open]::backdrop){animation:none!important}}
@keyframes tq-notice-in{from{opacity:0;transform:translate(-50%,-50%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%)}}
html body .image2-workflow-shell>.ui-navbar :is(select,.history-case-select,input),html body .invite-entry>summary{border-radius:999px!important}
@keyframes tq-dialog-up{from{opacity:0;transform:translate(-50%,-96%)}to{opacity:1;transform:translate(-50%,-100%)}}
@keyframes tq-dialog-down{from{opacity:0;transform:translate(-50%,-4%)}to{opacity:1;transform:translate(-50%,0)}}
html body dialog.cd-dialog .cd-title{cursor:move;user-select:none;touch-action:none}
html body dialog.cd-dialog .cd-title::after{content:'';display:block;width:36px;height:4px;border-radius:2px;margin:6px auto 0;background:currentColor;opacity:.18}
html body dialog.cd-dialog.cd-dragged .cd-card{box-shadow:0 18px 48px rgba(0,0,0,.28)}
dialog.cd-dialog .extra-object-picker>.row:first-child{display:none}
dialog.cd-dialog .extra-object-picker{border:0;padding:0;background:none;box-shadow:none;min-width:min(480px,82vw)}
/* Bed review: one question, one action row, secondary edits kept compact. */
.model-annotation-review .bed-position-card{display:grid;gap:16px;text-align:left}
.model-annotation-review .bed-position-card .bed-residents{border:0;padding:0;margin:0;background:transparent;min-width:0}
.bed-position-card .bed-residents legend{font-size:16px;font-weight:700;padding:0;margin-bottom:10px;color:var(--ui-text)}
.bed-use-state,.bed-person-choices,.bed-add-person{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.bed-use-state{margin-bottom:10px}
.bed-position-card button,.bed-person-choices label{min-height:38px;font-size:14px!important;line-height:1.4}
.bed-use-state button[aria-pressed=true]{background:var(--ui-primary);color:#fff;border-color:var(--ui-primary)}
.bed-person-choices label{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--ui-border);border-radius:8px;background:#fff;cursor:pointer;box-sizing:border-box}
.bed-person-choices label.selected{background:#e8f4f3;border-color:var(--ui-primary);color:var(--ui-primary)}
.bed-person-choices input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--ui-primary)}
.bed-person-choices label:has(input:disabled){opacity:.55;cursor:default}
.bed-add-person{margin-top:10px}.bed-add-person input{min-width:100px;flex:1;width:auto}
.bed-position-card .bed-pillow-check{border-top:1px solid var(--ui-border);padding-top:14px}
.bed-position-card .bed-pillow-check h4{font-size:17px!important;margin:0 0 5px;color:var(--ui-primary);line-height:1.55}
.bed-position-card .bed-pillow-check p{font-size:14px;margin:0;color:var(--ui-text-secondary)}
.bed-position-card .bed-step-alert{font-size:13px!important;line-height:1.55;color:#b42e26!important;margin:8px 0 0!important}
.bed-name-edit{font-size:13px}.bed-name-edit summary{color:var(--ui-text-secondary);cursor:pointer;padding:2px 0}
.bed-name-edit label{display:grid;gap:6px;margin-top:8px}.bed-name-edit input{width:100%;box-sizing:border-box}
.bed-name-edit small{display:block;margin-top:5px;color:var(--ui-text-secondary)}
.bed-shared-positions{display:grid;gap:8px;margin-top:10px}
.bed-shared-positions>div{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid var(--ui-border);border-radius:8px;padding:8px 10px}
.bed-shared-positions span{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bed-shared-positions small{color:var(--ui-text-secondary)}
.resident-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#2584d3}.resident-dot.resident-1{background:#b84e9b}
.model-review-footer .bed-position-actions{grid-column:1/-1;display:flex;width:100%;gap:12px;justify-content:space-between;align-items:stretch;order:1}
.model-review-footer .bed-position-actions button{min-height:46px;padding:10px 16px;font-size:15px!important;white-space:normal}
.model-review-footer .bed-position-confirm{flex:1;max-width:70%;margin-left:auto}
.model-review-footer:has(.bed-position-actions) .review-drawing-reminder{grid-column:1/-1;order:2}
.model-review-footer .bed-more-actions{grid-column:1/-1;order:8;margin:0;font-size:13px;padding-top:4px}
.bed-more-actions .danger{margin-left:auto}
.bed-more-actions>div{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0 4px}.bed-more-actions button{font-size:13px!important;min-height:36px}
.workflow-feedback-button{white-space:nowrap;font-size:13px;padding:6px 10px}

/* Native dialogs keep focus inside and leave the original workbench unchanged. */
.feedback-editor{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--ui-border);border-radius:14px;color:var(--ui-text);background:#fff;box-sizing:border-box;box-shadow:0 18px 70px #17383f40;overflow:hidden}
.feedback-editor[open]{display:flex;flex-direction:column}
.feedback-editor::backdrop,.feedback-image-preview::backdrop{background:#18313b80}
.feedback-editor>header{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 22px 14px;border-bottom:1px solid var(--ui-border);gap:12px;flex-shrink:0}
.feedback-editor h3{margin:0;font-size:21px}.feedback-editor>header p{margin:5px 0 0;font-size:14px;color:var(--ui-text-secondary)}
.feedback-editor-body{overflow:auto;padding:16px 22px;display:grid;gap:16px;min-height:0;overscroll-behavior:contain}
.feedback-context{display:flex;gap:4px 12px;flex-wrap:wrap;background:#f2f7f8;border-radius:8px;padding:10px 12px;font-size:14px}
.feedback-context small{flex-basis:100%;color:var(--ui-text-secondary);font-size:12px}
.feedback-selects{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.feedback-selects label,.feedback-description{display:block;font-size:14px;font-weight:600}
.feedback-selects select{display:block;margin-top:6px;width:100%;min-width:0;min-height:40px;box-sizing:border-box;font-size:14px}
.feedback-description textarea{display:block;margin-top:6px;width:100%;min-height:105px;max-height:250px;resize:vertical;font:inherit;font-weight:400;line-height:1.6;padding:10px 12px;box-sizing:border-box;border:1px solid var(--ui-border);border-radius:8px}
.feedback-description>small{display:block;text-align:right;margin-top:4px;font-weight:400;color:var(--ui-text-secondary)}
.feedback-attachment-head{display:flex;align-items:center;gap:10px;font-size:14px}.feedback-attachment-head>span{color:var(--ui-text-secondary)}
.feedback-attachment-head>button{margin-left:auto}.feedback-attachments>p{margin:7px 0 0;color:var(--ui-text-secondary);font-size:12px}
.feedback-editor button{font-size:14px;min-height:38px}
.feedback-editor>footer{display:flex;justify-content:space-between;gap:12px;padding:12px 22px;border-top:1px solid var(--ui-border);background:#fff;flex-shrink:0}
.feedback-editor>footer>button:last-child{min-width:140px}
.feedback-error{color:#b42e26;margin:0;font-size:14px}
.feedback-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin-top:12px}
.feedback-image-grid figure{margin:0;min-width:0;padding:6px;border:1px solid var(--ui-border);border-radius:8px;background:#f7fafb}
.feedback-image-grid .feedback-thumb{display:block;width:100%;padding:0;min-height:0;border:0;background:#edf2f4;overflow:hidden;border-radius:5px}
.feedback-thumb img{display:block;width:100%;height:92px;object-fit:contain}.feedback-image-grid figcaption{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:5px 0;font-size:12px;color:var(--ui-text-secondary)}
.feedback-image-grid figure>.ghost{padding:3px 8px;min-height:28px;font-size:12px}
.feedback-image-preview{width:min(1100px,calc(100vw - 28px));max-height:calc(100dvh - 28px);border:1px solid var(--ui-border);border-radius:12px;background:#fff;color:var(--ui-text);padding:14px;box-sizing:border-box}
.feedback-image-preview header{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-bottom:10px}.feedback-image-preview header>span{overflow-wrap:anywhere;min-width:0;font-size:14px}.feedback-image-preview header>button{flex-shrink:0}
.feedback-image-preview>img{display:block;width:100%;max-height:calc(100dvh - 130px);object-fit:contain}
.feedback-saved-images{border-top:1px solid var(--ui-border);padding:14px 0;margin-top:16px}.feedback-saved-images h4{margin:0}
.feedback-saved-images .feedback-image-grid{grid-template-columns:repeat(auto-fill,minmax(130px,180px))}.feedback-saved-images .feedback-thumb img{height:120px}
.my-feedback-entry{display:inline-flex}
.feedback-history{width:min(780px,calc(100vw - 32px))}
.feedback-history-item{border:1px solid var(--ui-border);border-radius:10px;min-width:0}
.feedback-history-item>summary{display:flex;flex-wrap:wrap;gap:6px 14px;cursor:pointer;padding:14px;background:#f4f8f8;border-radius:10px;overflow-wrap:anywhere}
.feedback-history-item>summary strong{flex-basis:100%}
.feedback-history-item>summary span{font-size:13px;color:var(--ui-text-secondary)}
.feedback-history-detail{padding:14px;min-width:0}
.feedback-history-detail h4,.feedback-replies h4{margin:0 0 8px}
.feedback-plain-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:8px 0}
.feedback-history-detail blockquote{padding:12px;background:#f7f8fa;border-left:3px solid var(--ui-border)}
.feedback-replies{border-top:1px solid var(--ui-border);margin-top:16px;padding-top:14px}
.feedback-replies article{padding:10px 12px;margin:10px 0;background:#eff7f6;border-radius:8px}
.feedback-replies article>header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
.feedback-replies time{color:var(--ui-text-secondary)}
.feedback-reply-editor{border-top:1px solid var(--ui-border);margin-top:16px;padding:16px 0;min-width:0}
.feedback-state-note{font-size:13px;line-height:1.6;color:var(--ui-text-secondary);margin:8px 0 12px}
@media(max-width:600px){
 .feedback-editor{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 .feedback-editor>header,.feedback-editor>footer,.feedback-editor-body{padding-left:14px;padding-right:14px}
 .feedback-selects{gap:8px}.feedback-image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .model-review-footer .bed-position-actions{gap:8px}.model-review-footer .bed-position-actions button{padding:10px;font-size:14px!important}
 .bed-position-card .bed-pillow-check h4{font-size:16px!important}
}

/* Feedback threads: date and summary outside, chronological conversation inside. */
.feedback-history-item>summary time{flex-basis:100%;font-size:12px;color:var(--ui-text-secondary)}
.feedback-conversation{display:flex;flex-direction:column;gap:14px;list-style:none;margin:0;padding:0;min-width:0}
.feedback-message{max-width:92%;min-width:0;box-sizing:border-box;border:1px solid var(--ui-border);border-radius:12px;background:#f5f7f8;padding:12px 14px;align-self:flex-start}
.feedback-message-admin{align-self:flex-end;background:#edf7f5;border-color:#cfe3df}
.feedback-message>header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px}
.feedback-message time{font-size:12px;color:var(--ui-text-secondary)}
.feedback-message .feedback-saved-images{border:0;padding:0;margin:10px 0 0}
.feedback-message .feedback-image-grid{grid-template-columns:repeat(auto-fill,minmax(95px,130px));min-width:min(260px,100%)}
.feedback-message .feedback-saved-images h4{font-size:12px;color:var(--ui-text-secondary);font-weight:400}
.feedback-compose-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.feedback-compose-actions>button:last-child{margin-left:auto;min-width:88px}
.feedback-compose-actions small{font-size:12px;color:var(--ui-text-secondary)}
.feedback-reply-editor .feedback-description textarea{min-height:78px}
@media(max-width:600px){.feedback-message{max-width:97%;padding:10px}.feedback-message>header{gap:6px}.feedback-conversation{gap:10px}}


[data-topbar-entries]{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;max-width:100%;vertical-align:middle}
[data-topbar-entries] .my-feedback-entry{display:inline-flex}
[data-topbar-entries] .invite-chip{display:inline-flex;align-items:center;cursor:pointer;list-style:none;min-height:34px;padding:0 10px;border:1px solid var(--ui-primary);border-radius:999px}
[data-topbar-entries] .invite-chip::-webkit-details-marker{display:none}
[data-topbar-entries] .invite-card{position:fixed!important;top:64px;left:50%!important;right:auto!important;box-sizing:border-box;z-index:1000!important;white-space:normal;text-align:left;height:auto}
[data-topbar-entries] .invite-card button{white-space:normal;height:auto}
[data-topbar-entries] .invite-chip-label,[data-topbar-entries] .invite-chip-hint{overflow-wrap:anywhere}
[data-topbar-entries] .invite-card p{white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){
 .bar>nav:has([data-topbar-entries]),.ui-navbar-actions:has([data-topbar-entries]),.manual-actions:has([data-topbar-entries]){min-width:0;max-width:100%;flex-wrap:wrap}
 .bar:has([data-topbar-entries]),.ui-navbar:has([data-topbar-entries]){max-width:100%;box-sizing:border-box;flex-wrap:wrap}
 .navbar:has([data-topbar-entries]){grid-template-columns:auto minmax(0,1fr);height:auto;min-height:52px}
 .navbar:has([data-topbar-entries]) .nav-actions{max-width:100%;min-width:0;flex-wrap:wrap;overflow:visible}
 .navbar:has([data-topbar-entries]) [data-system-switcher] .ss-row{flex-wrap:wrap}
 [data-topbar-entries] .invite-chip-label,[data-topbar-entries] .invite-chip-hint{display:none}
}

.mh-acct .invite-entry .invite-code-text{display:inline}

/* Let the existing manual hero popover overlay its sticky table of contents. */
.manual-hero:has(.invite-entry[open]){position:relative;z-index:1001;overflow:visible}

@media(max-width:600px){html body .invite-entry .invite-card{position:fixed!important;left:50%!important;right:auto!important;top:64px;box-sizing:border-box;z-index:1000!important}}


/* ===== 全站「兑换查看码 / 通用码」弹窗（2026-11-13） ===== */
.invite-actions{flex-wrap:wrap}
.invite-actions>button.tqr-entry{flex:1 1 100%;min-height:36px}
.tqr-code-input{
  width:100%;max-width:100%;box-sizing:border-box;min-height:50px;padding:10px 14px;
  border:1px solid var(--ui-border,rgba(127,127,127,.35));border-radius:14px;
  font-size:22px;font-weight:700;letter-spacing:.14em;text-align:center;text-transform:uppercase;
  background:var(--ui-primary-soft,rgba(127,127,127,.08));color:var(--ui-text,inherit)
}
.tqr-code-input:focus-visible{outline:2px solid var(--ui-primary,#0a7d84);outline-offset:1px}
.tqr-code-input[aria-invalid="true"]{outline:2px solid #b42e26;outline-offset:1px}
.tqr-help,.tqr-ok,.tqr-error{margin:8px 0 0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.tqr-help{color:var(--ui-text-secondary,inherit)}
.tqr-ok{color:var(--ui-success,#2e7d4f)}
.tqr-jumps{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tqr-jumps a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border-radius:999px;text-decoration:none;border:1px solid var(--ui-border,rgba(127,127,127,.4));color:inherit;background:transparent}
.denied-redeem-slot{display:flex;justify-content:center;margin:12px 0 4px;max-width:100%}
@media (max-width:600px){
  .tqr-code-input{font-size:18px;letter-spacing:.1em}
  .tqr-jumps a{flex:1 1 calc(50% - 8px);box-sizing:border-box}
}


/* ===== 全站弹窗手机端固定框 + 内容区可上下滚动 + 可点击关闭（2026-11-13） ===== */
dialog.cd-dialog[open]{
  display:flex!important;flex-direction:column;
  width:max-content;min-width:min(320px,calc(100vw - 24px));max-width:min(520px,calc(100vw - 24px))!important;
  max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important;
  padding:0!important;margin:auto!important;overflow:hidden!important;box-sizing:border-box!important;
}
dialog.cd-dialog .cd-card{
  display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;
  width:100%;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);min-height:0;
  padding:0!important;gap:0!important;overflow:hidden!important;box-sizing:border-box;
}
.cd-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:16px 18px 12px;flex-shrink:0;border-bottom:1px solid rgba(127,127,127,.14);
}
.cd-head .cd-title{flex:1 1 auto;min-width:0;margin:0}
html body dialog.cd-dialog .cd-head .cd-title::after{display:none}
.cd-close{
  width:34px;height:34px;min-width:34px;min-height:34px;padding:0!important;border:0!important;
  border-radius:999px!important;display:inline-flex;align-items:center;justify-content:center;
  font-size:20px;line-height:1;font-weight:500;cursor:pointer;flex-shrink:0;
  background:rgba(127,127,127,.14)!important;color:inherit!important;
}
.cd-close:hover{background:rgba(127,127,127,.24)!important}
dialog.cd-dialog .cd-body{
  min-height:0;overflow-y:auto!important;overflow-x:hidden;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:14px 18px;box-sizing:border-box;
}
dialog.cd-dialog .cd-actions{
  flex-shrink:0;padding:12px 18px 16px;margin-top:0!important;
  border-top:1px solid rgba(127,127,127,.14);
}
.invite-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.invite-card-close{
  width:28px;height:28px;min-width:28px;min-height:28px;padding:0!important;border:0!important;
  border-radius:999px!important;display:inline-flex;align-items:center;justify-content:center;
  font-size:18px;line-height:1;cursor:pointer;flex-shrink:0;
  background:rgba(127,127,127,.14)!important;color:inherit!important;
}
[data-topbar-entries] .invite-card{
  max-height:calc(100vh - 80px)!important;max-height:calc(100dvh - 80px)!important;
  overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
}
.tqr-code-input{letter-spacing:.08em;font-size:18px;text-align:left;padding:10px 14px;border-radius:12px}
.tqr-code-input::placeholder{font-size:15px;font-weight:400;letter-spacing:0;opacity:.68}
@media (max-width:760px){
  dialog.ui-dialog[open],dialog.feedback-editor[open],dialog.adjustment-work-dialog[open],dialog.plan-review-dialog[open]{
    display:flex!important;flex-direction:column;
    width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;
    max-height:calc(100vh - 20px)!important;max-height:calc(100dvh - 20px)!important;
    overflow:hidden!important;box-sizing:border-box!important;margin:auto!important;
  }
  dialog.ui-dialog .ui-dialog-body,dialog.feedback-editor .feedback-editor-body,dialog.adjustment-work-dialog .ui-dialog-body,dialog.plan-review-dialog .ui-dialog-body{
    min-height:0!important;flex:1 1 auto;overflow-y:auto!important;overflow-x:hidden;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  }
  dialog.ui-dialog>header,dialog.ui-dialog>footer,dialog.feedback-editor>header,dialog.feedback-editor>footer{flex-shrink:0}
  dialog.cd-dialog[open]{
    width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;min-width:0!important;
  }
  dialog.cd-dialog .cd-head{padding:14px 14px 10px}
  dialog.cd-dialog .cd-body{padding:12px 14px}
  dialog.cd-dialog .cd-actions{padding:10px 14px 14px}
}

/* Ensure viewport-centered modal dialogs never shift off-screen via canvas coordinates */
html body dialog.cd-dialog.cd-scrim-normal[open]:not(.cd-dragged),
html.tq-has-canvas dialog.cd-dialog.cd-scrim-normal[open]:not(.cd-dragged){
  position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
  transform:none!important;margin:auto!important;
}
@media (max-width:760px){
  html body dialog.cd-dialog[open]:not(.cd-dragged),
  html.tq-has-canvas dialog.cd-dialog[open]:not(.cd-dragged),
  html.tq-has-canvas[data-tq-focus] dialog.cd-dialog[open]:not(.cd-dragged){
    position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
    transform:none!important;margin:auto!important;
  }
}
/* 20261113-fbui1: 途析/探象 pageOnly 极简反馈弹窗，不影响屯启原反馈窗 */
dialog.feedback-editor.feedback-editor-simple{
  width:min(420px,calc(100vw - 32px));
  max-height:calc(100dvh - 40px);
  padding:0;
  border-radius:22px!important;
  overflow:hidden;
  color:#1d1d1f!important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,251,251,.92))!important;
  border:1px solid rgba(10,125,132,.12)!important;
  box-shadow:0 24px 70px rgba(16,50,55,.18),0 2px 10px rgba(16,50,55,.08)!important;
  -webkit-backdrop-filter:blur(22px) saturate(160%)!important;
  backdrop-filter:blur(22px) saturate(160%)!important;
}
dialog.feedback-editor.feedback-editor-simple[open]{
  display:flex!important;
  flex-direction:column;
  position:fixed!important;
  inset:0!important;
  margin:auto!important;
}
dialog.feedback-editor.feedback-editor-simple::backdrop{
  background:rgba(20,36,40,.42)!important;
  -webkit-backdrop-filter:blur(4px)!important;
  backdrop-filter:blur(4px)!important;
}
dialog.feedback-editor.feedback-editor-simple>header,
dialog.feedback-editor.feedback-editor-simple>footer,
dialog.feedback-editor.feedback-editor-simple .feedback-context{
  background:transparent!important;
  border-color:rgba(10,125,132,.10)!important;
  color:inherit!important;
}
dialog.feedback-editor.feedback-editor-simple>header,
dialog.feedback-editor.feedback-editor-simple>header.feedback-simple-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:16px 16px 10px;
}
dialog.feedback-editor.feedback-editor-simple>header h3{
  margin:0;
  margin-right:auto;
  font-size:20px;
  font-weight:700;
  color:inherit!important;
}
dialog.feedback-editor.feedback-editor-simple>header p{display:none}
dialog.feedback-editor.feedback-editor-simple .feedback-history-chip{
  flex:0 0 auto;
  min-height:32px!important;
  height:32px;
  padding:0 12px!important;
  border-radius:999px!important;
  border:1px solid rgba(10,125,132,.28)!important;
  background:rgba(10,125,132,.08)!important;
  color:#0a7d84!important;
  font-size:13px!important;
  font-weight:600;
}
dialog.feedback-editor.feedback-editor-simple .feedback-close{
  flex:0 0 auto;
  width:32px;
  height:32px;
  min-height:32px!important;
  min-width:32px;
  padding:0!important;
  border-radius:50%!important;
  border:1px solid rgba(20,40,50,.12)!important;
  background:rgba(20,40,50,.04)!important;
  color:inherit!important;
  font-size:20px!important;
  line-height:1;
  font-weight:400;
}
dialog.feedback-editor.feedback-editor-simple .feedback-editor-body{
  gap:14px;
  padding:8px 16px 12px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  min-height:0;
}
dialog.feedback-editor.feedback-editor-simple .feedback-field-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  font-size:14px;
  font-weight:700;
}
dialog.feedback-editor.feedback-editor-simple .feedback-field-head .muted{
  font-weight:400;
  font-size:12px;
  color:#6e6e73;
}
dialog.feedback-editor.feedback-editor-simple .feedback-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
dialog.feedback-editor.feedback-editor-simple .feedback-pill{
  min-height:34px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  border:1px solid rgba(20,40,50,.10)!important;
  background:#f3f5f7!important;
  color:#3a4450!important;
  font-size:13px!important;
  font-weight:600;
}
dialog.feedback-editor.feedback-editor-simple .feedback-pill.is-on{
  background:#0a7d84!important;
  border-color:#0a7d84!important;
  color:#fff!important;
}
dialog.feedback-editor.feedback-editor-simple .feedback-description textarea{
  min-height:110px;
  border-radius:14px!important;
  border:1px solid rgba(10,125,132,.16)!important;
  background:#f7fafb!important;
  color:inherit!important;
}
dialog.feedback-editor.feedback-editor-simple .feedback-shot-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:48px;
  padding:8px 10px 8px 14px;
  border:1.5px dashed rgba(10,125,132,.28);
  border-radius:14px;
  background:transparent;
  color:#5b6670;
  font-size:13px;
}
dialog.feedback-editor.feedback-editor-simple .feedback-shot-box button{
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  border:0!important;
  background:rgba(10,125,132,.10)!important;
  color:#0a7d84!important;
  font-weight:700!important;
}
dialog.feedback-editor.feedback-editor-simple>footer{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px 16px;
}
dialog.feedback-editor.feedback-editor-simple>footer>button.ghost{
  flex:0 0 auto;
  min-width:72px;
  min-height:44px!important;
  border-radius:12px!important;
  border:0!important;
  background:#eef1f3!important;
  color:#3a4450!important;
  font-weight:700!important;
}
dialog.feedback-editor.feedback-editor-simple>footer>button.feedback-submit{
  flex:1 1 auto;
  min-width:0;
  min-height:44px!important;
  border:0!important;
  border-radius:12px!important;
  background:#0a7d84!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:700!important;
}
dialog.feedback-editor.feedback-editor-simple>footer>button.feedback-submit:disabled{opacity:.45}
dialog.feedback-editor-simple .feedback-state-note,
dialog.feedback-editor-simple .admin-detail-list{display:none}

html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple{
  background:linear-gradient(180deg,rgba(27,40,64,.88),rgba(15,24,40,.82))!important;
  border:1px solid rgba(227,200,143,.22)!important;
  color:#eef2f8!important;
  box-shadow:0 24px 80px rgba(0,0,0,.55),0 2px 10px rgba(0,0,0,.30)!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple::backdrop{
  background:rgba(4,8,18,.55)!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple>header,
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple>footer,
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-context{
  background:transparent!important;
  color:#eef2f8!important;
  border-color:rgba(255,255,255,.08)!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-history-chip{
  background:transparent!important;
  border-color:rgba(227,200,143,.45)!important;
  color:#e3c88f!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-close{
  background:rgba(255,255,255,.06)!important;
  border-color:rgba(255,255,255,.12)!important;
  color:#eef2f8!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-field-head .muted{color:#b0bbce}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-pill{
  background:rgba(255,255,255,.08)!important;
  border-color:transparent!important;
  color:#d5dbe6!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-pill.is-on{
  background:linear-gradient(180deg,#f0dca8,#e3c88f 55%,#c8a96a)!important;
  border-color:transparent!important;
  color:#1a1408!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-description textarea,
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple :is(input,select,textarea){
  background:rgba(255,255,255,.06)!important;
  color:#eef2f8!important;
  border:1px solid rgba(255,255,255,.14)!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-shot-box{
  border-color:rgba(227,200,143,.28);
  color:#b0bbce;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple .feedback-shot-box button{
  background:rgba(227,200,143,.16)!important;
  color:#e3c88f!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple>footer>button.ghost{
  background:rgba(255,255,255,.08)!important;
  color:#eef2f8!important;
  border:0!important;
}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) dialog.feedback-editor.feedback-editor-simple>footer>button.feedback-submit{
  background:linear-gradient(180deg,#f0dca8,#e3c88f 55%,#c8a96a)!important;
  color:#1a1408!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 0 18px rgba(255,210,120,.28);
}


dialog.feedback-editor.feedback-editor-simple button{
  width:auto!important;
  max-width:100%;
  box-sizing:border-box;
}
dialog.feedback-editor.feedback-editor-simple>header,
dialog.feedback-editor.feedback-editor-simple>footer,
dialog.feedback-editor.feedback-editor-simple .feedback-editor-body,
dialog.feedback-editor.feedback-editor-simple .feedback-editor-body>*{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
dialog.feedback-editor.feedback-editor-simple>header h3{
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0;
  white-space:nowrap;
}
dialog.feedback-editor.feedback-editor-simple .feedback-history-chip,
dialog.feedback-editor.feedback-editor-simple .feedback-close,
dialog.feedback-editor.feedback-editor-simple>footer>button.ghost{
  flex:0 0 auto!important;
  width:auto!important;
}
dialog.feedback-editor.feedback-editor-simple>footer>button.feedback-submit{
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
}

@media (max-width:760px){
  dialog.feedback-editor.feedback-editor-simple[open]{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 24px)!important;
  }
}

/* 产品页顶栏账户菜单（2026-11-14）：显示名/头像进入账户，避免与旧 sessionTag 重复 */
[data-topbar-entries] .acct-user-menu{position:relative;flex:0 0 auto;max-width:100%;min-width:0}
[data-topbar-entries] .acct-user-summary{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:8px;border-radius:999px;padding:4px 10px 4px 4px;letter-spacing:normal;white-space:nowrap;max-width:100%;min-width:0;overflow:hidden;list-style:none}
[data-topbar-entries] .acct-user-summary::-webkit-details-marker,[data-topbar-entries] .acct-user-summary::marker{display:none;content:none}
[data-topbar-entries] .acct-user-avatar{flex:0 0 auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--ui-primary,#0a7d84);color:#fff;font-size:13px;font-weight:600;letter-spacing:0;line-height:1;overflow:hidden;border:0}
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) [data-topbar-entries] .acct-user-avatar{color:#1a1408}
[data-topbar-entries] .acct-user-name{min-width:0;max-width:9em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:normal;word-break:keep-all}
body:has([data-account-menu]) #sessionTag{display:none}
@media(max-width:600px){
  [data-topbar-entries] .acct-user-name{max-width:5.5em}
}

/* Invitation-only completion: native palette/material, capsule actions and safe mobile layout. */
.invite-entry[open] .nav-menu-list.invite-card{position:fixed;left:50%;right:auto;top:72px;transform:translateX(-50%);width:min(400px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 88px - env(safe-area-inset-bottom,0px));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:16px;border-radius:22px;background:color-mix(in srgb,var(--ui-surface) 80%,transparent);backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);z-index:2147483000}
.invite-entry .invite-card .invite-card-head{position:relative;align-items:center;min-height:44px;gap:12px;flex-shrink:0}
.invite-entry .invite-card .invite-card-title{min-width:0;white-space:normal;line-height:1.45}
.invite-entry .invite-card .invite-card-close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px}
.invite-entry .invite-card .invite-stats{gap:8px;align-items:start}
.invite-entry .invite-card .invite-stats>div{min-width:0}
.invite-entry .invite-card .invite-stats span{display:block;visibility:visible;opacity:1;position:static;width:auto;height:auto;max-height:none;white-space:normal;overflow:visible;font-size:12px;line-height:1.5;margin-top:4px;color:var(--ui-text-secondary)}
.invite-entry .invite-card .invite-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex-shrink:0}
.invite-entry .invite-card .invite-actions:has(>button:only-child){grid-template-columns:minmax(0,1fr)}
.invite-entry .nav-menu-list.invite-card .invite-actions>button,html body dialog:has(.points-guide) .cd-body button,html body dialog:has(.points-guide) .cd-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:0;max-width:100%;min-height:44px!important;height:auto!important;padding:9px 14px;border-radius:999px;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.5!important;box-sizing:border-box;cursor:pointer}
.invite-entry .nav-menu-list.invite-card .invite-actions>button{border:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-surface) 80%,transparent);color:var(--ui-text);transition:transform .16s var(--tq-ease,ease),box-shadow .18s var(--tq-ease,ease),background .18s ease}
.invite-entry .nav-menu-list.invite-card .invite-actions>button:not(:disabled):active{transform:scale(.97)}
.invite-entry .nav-menu-list.invite-card .invite-actions>button:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
.invite-entry .invite-card .invite-code-big{border-radius:16px;overflow-wrap:anywhere}
dialog.cd-dialog:has(.points-guide){backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);width:min(600px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px))}
dialog:has(.points-guide) .cd-card{backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);display:flex;flex-direction:column;min-width:0;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));overflow:hidden}
dialog:has(.points-guide) .cd-head,dialog:has(.points-guide) .cd-actions{flex-shrink:0;min-width:0}
dialog:has(.points-guide) .cd-head{min-height:52px}
dialog:has(.points-guide) .cd-close{min-width:44px;min-height:44px;flex:0 0 44px;border-radius:50%}
dialog:has(.points-guide) .cd-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
dialog:has(.points-guide) .cd-actions{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
@media(max-width:680px){.invite-entry[open] .nav-menu-list.invite-card{top:max(12px,env(safe-area-inset-top,0px));max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}.invite-entry .nav-menu-list.invite-card .invite-actions>button{padding:9px 10px}.invite-entry .invite-card .invite-actions:has(.tqr-entry){grid-template-columns:minmax(0,1fr)}dialog:has(.points-guide) .cd-actions>button{flex:1 1 auto}dialog:has(.points-guide) .points-guide>div{max-width:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.invite-entry[open] .invite-card,.invite-entry .nav-menu-list.invite-card .invite-actions>button{animation:none;transition:none}.invite-entry .nav-menu-list.invite-card .invite-actions>button:active{transform:none}}

/* Restore existing hidden semantics on legacy product-code controls; keep the live entry unchanged. */
.cu-row[hidden],.cu-row [hidden]{display:none!important}
.cu-row #cuOpen{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:0;max-width:100%;padding:9px 14px;box-sizing:border-box;border-radius:999px;border:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-surface) 80%,transparent);color:var(--ui-text);text-decoration:none;white-space:normal;line-height:1.5;backdrop-filter:blur(20px) saturate(160%)}

/* Frontend invite, points-guide subdialogs, redeem dialog, and account entry:
   light high-transparency liquid glass from wechat-account-design prototype (2026-11-15).
   Dark theme keeps the existing frontend scheme. Layout, copy, and bindings unchanged. */
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) :is(.invite-entry, .acct-user-menu, dialog:has(.points-guide), dialog.ce-dialog){
  --tq-inv-glass: rgba(255,255,255, .16);
  --tq-inv-strong: rgba(255,255,255, .36);
  --tq-inv-blur: blur(10px) saturate(1.8);
  --tq-inv-border: 1px solid rgba(255,255,255, .55);
  --tq-inv-edge: inset 0 1px 0 rgba(255,255,255, .78), inset 0 -1px 0 rgba(60,60,66, .14), inset 1px 0 0 rgba(255,255,255, .18), inset -1px 0 0 rgba(255,255,255, .1);
  --tq-inv-shadow: 0 8px 24px rgba(60,60,66, .08), 0 1px 2px rgba(60,60,66, .04);
  --tq-inv-accent: #45454b;
  --tq-inv-ink: #17171b;
  --tq-inv-ink-3: #5a5a64;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry[open] .nav-menu-list.invite-card,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) [data-topbar-entries] .invite-card,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide) .cd-card,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog.ui-dialog{
  background: rgba(255,255,255, .16) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) !important;
  backdrop-filter: blur(10px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  box-shadow: 0 8px 24px rgba(60,60,66, .08), 0 1px 2px rgba(60,60,66, .04), inset 0 1px 0 rgba(255,255,255, .78), inset 0 -1px 0 rgba(60,60,66, .14), inset 1px 0 0 rgba(255,255,255, .18), inset -1px 0 0 rgba(255,255,255, .1) !important;
  color: #17171b !important;
  border-radius: 22px !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry > summary.invite-chip,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) [data-topbar-entries] .invite-chip,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) [data-topbar-entries] .acct-user-summary{
  background: rgba(255,255,255, .16) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) !important;
  backdrop-filter: blur(10px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255, .78), inset 0 -1px 0 rgba(60,60,66, .14) !important;
  border-radius: 999px !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry > summary.invite-chip,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) [data-topbar-entries] .invite-chip{
  color: #45454b !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) [data-topbar-entries] .acct-user-summary{
  color: #17171b !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) [data-topbar-entries] .acct-user-avatar{
  background: #45454b !important;
  color: #fff !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry .nav-menu-list.invite-card .invite-actions > button,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog:has(.points-guide) .cd-body button,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog:has(.points-guide) .cd-actions button,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog .ce-button,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .cu-row #cuOpen{
  background: rgba(255,255,255, .16) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) !important;
  backdrop-filter: blur(10px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255, .78), inset 0 -1px 0 rgba(60,60,66, .14) !important;
  color: #17171b !important;
  border-radius: 999px !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog:has(.points-guide) .cd-actions button.primary,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog:has(.points-guide) .cd-actions button:not(.secondary):not(.ghost):not(.danger),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog .ce-primary{
  background: linear-gradient(180deg, rgba(235,235,239, .96), rgba(85,85,91, .96)) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255, .38), 0 8px 18px rgba(85,85,91, .22) !important;
  color: #fff !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog:has(.points-guide) .cd-actions button.danger{
  background: rgba(253,236,234, .82) !important;
  color: #b3261e !important;
  border: 1px solid rgba(255,255,255, .6) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255, .78) !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry .invite-card .invite-card-close,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog:has(.points-guide) .cd-close,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog .ce-close{
  background: rgba(255,255,255, .36) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  color: #17171b !important;
  border-radius: 999px !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry .invite-card .invite-code-big,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry .invite-pending-card{
  background: rgba(85,85,91, .16) !important;
  color: #45454b !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255, .78) !important;
  border-radius: 16px !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry .invite-pending-card .invite-pending-used,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry .invite-card-title,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry .invite-stats b{
  color: #17171b !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide) .cd-card :is(.cd-title, .cd-body, .cd-body p, label, strong, h2, h3, h4),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog :is(h2, h3, p, label, strong){
  color: #17171b !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide) .cd-card :is(.small, .muted, small),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog :is(.ce-muted, .ce-eyebrow, .muted, small){
  color: #5a5a64 !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide) .cd-card :is(input, select),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog :is(input, select),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-code-input{
  background: rgba(255,255,255, .36) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) !important;
  backdrop-filter: blur(10px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255, .78) !important;
  color: #17171b !important;
  border-radius: 999px !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide) .cd-card textarea,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog textarea{
  background: rgba(255,255,255, .36) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) !important;
  backdrop-filter: blur(10px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  color: #17171b !important;
  border-radius: 16px !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog .ce-side{
  background: rgba(255,255,255, .36) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) !important;
  backdrop-filter: blur(10px) saturate(1.8) !important;
  color: #5a5a64 !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .acct-user-menu .nav-menu-list > :is(button, a){
  border-radius: 999px !important;
  background: transparent !important;
  color: #17171b !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .acct-user-menu .nav-menu-list > :is(button, a):hover,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .acct-user-menu .nav-menu-list > :is(button, a):focus-visible{
  background: rgba(255,255,255, .4) !important;
  color: #17171b !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide)::backdrop,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog::backdrop{
  background: rgba(20,24,40, .28) !important;
}

/* Homepage account entry (.mh-acct name chip and .mh-out): light prototype glass only. Dark unchanged. Do not unhide the mobile-hidden name span. */
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) body .mh.light button.mh-out{
  background: rgba(255,255,255, .16) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) !important;
  backdrop-filter: blur(10px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255, .78), inset 0 -1px 0 rgba(60,60,66, .14) !important;
  color: #17171b !important;
  border-radius: 999px !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) body .mh.light button.mh-out:hover{
  background: rgba(255,255,255, .36) !important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) body .mh.light .mh-acct > span{
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255, .16);
  -webkit-backdrop-filter: blur(10px) saturate(1.8);
  backdrop-filter: blur(10px) saturate(1.8);
  border: 1px solid rgba(255,255,255, .55);
  box-shadow: inset 0 1px 0 rgba(255,255,255, .78);
  color: #17171b;
}

@media (max-width: 760px){
  html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) body .mh.light .mh-acct > span{display:none}
}

/* Account dropdown uses official glass-strong so toolbar chips do not show through the menu. */
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .acct-user-menu[open] > .nav-menu-list{
  background: rgba(255,255,255, .36) !important;
  background-image: none;
  -webkit-backdrop-filter: blur(10px) saturate(1.8) !important;
  backdrop-filter: blur(10px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255, .55) !important;
  box-shadow: 0 8px 24px rgba(60,60,66, .08), 0 1px 2px rgba(60,60,66, .04), inset 0 1px 0 rgba(255,255,255, .78), inset 0 -1px 0 rgba(60,60,66, .14) !important;
  color: #17171b !important;
  border-radius: 22px !important;
  z-index: 2147483000;
}
/* Gift/guide body: keep the action button and its hint on separate wrapping rows, both themes. */
dialog:has(.points-guide) .cd-body div:has(> button):has(> :is(small, .muted)){
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
dialog:has(.points-guide) .cd-body div:has(> button):has(> :is(small, .muted)) > button{
  flex: 0 1 auto;
  max-width: 100%;
}
dialog:has(.points-guide) .cd-body div:has(> button):has(> :is(small, .muted)) > :is(small, .muted){
  flex: 1 0 100%;
  min-width: 0;
}

/* Readable glass surfaces, 2026-11-15: toolbar chips keep their existing material.
   Dense result canvases must not bleed text/compass lines into reading surfaces. */
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-entry[open] .nav-menu-list.invite-card,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) [data-topbar-entries] .invite-card,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.cd-dialog:has(.points-guide) .cd-card,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) dialog.ce-dialog.ui-dialog,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .acct-user-menu[open] > .nav-menu-list,
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .invite-pending-card:not(.tq-home *),
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) .acct-card#invite{
  background: rgba(250,250,250, .96) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.35) !important;
  backdrop-filter: blur(24px) saturate(1.35) !important;
}
/* A backdrop-filter ancestor forms a backdrop root/containing block. While open,
   let the fixed invitation sample the actual page rather than only the navbar. */
.ui-navbar:has(.invite-entry[open]){
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Keep expanded phone workspace actions inside the viewport; desktop is unchanged. */
@media (max-width:760px){
  html body.compact-layout .image2-workflow-shell > .ui-navbar > .ui-navbar-actions.image2-controls{
    flex-wrap:wrap !important;
    justify-content:flex-start !important;
    align-items:center;
    gap:8px;
    width:100%;
    min-width:0;
    height:auto;
  }
  body.compact-layout .ui-navbar .image2-controls > .nav-spacer{display:none !important}
  body.compact-layout .ui-navbar .image2-controls > *{max-width:100%;min-width:0}
  body.compact-layout .ui-navbar .image2-controls > .image2-control{flex:1 1 100%}
  body.compact-layout .ui-navbar .image2-controls .history-case-select{width:100%;min-width:0;box-sizing:border-box}
}
/* Keep open menus above the map and phone bottom action bar, not just above siblings. */
.ui-navbar:has(.nav-menu[open]){z-index:1100}

@media (max-width:760px){
  /* Account chips may wrap to a second row instead of shrinking the invite hit target. */
  html body .mh .mh-top{flex-wrap:wrap;height:auto;min-height:48px;gap:8px;padding-block:8px}
  html body .mh .mh-acct{flex:1 1 100%;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0;height:auto}
  html body .mh .mh-acct > :is(button,details,.my-feedback-entry){flex:0 0 auto;max-width:100%}
  /* The existing horizontally scrollable compass chips must not size the page wider. */
  html body.compact-layout .results-mode .result-compass-strip,
  html body.compact-layout .results-mode .compass-size-controls,
  html body.compact-layout .results-mode .compass-choice-list,
  html body.compact-layout .results-mode .compass-target-tools{min-width:0 !important;max-width:100%;width:100%;box-sizing:border-box}
  html body.compact-layout .results-mode .compass-target-tools{flex-wrap:wrap;gap:8px}
}

@media (max-width:760px){
  /* Preserve every product/admin shortcut without pushing the last pill offscreen. */
  html body .navbar:has([data-topbar-entries]) [data-system-switcher]{display:inline-flex;flex:1 1 100%;min-width:0;max-width:100%}
  html body .navbar:has([data-topbar-entries]) [data-system-switcher] .ss-row{flex-wrap:wrap !important;justify-content:flex-end;min-width:0;max-width:100%;box-sizing:border-box}
}

/* Theme alias only: Yuqian uses yq-light rather than tq-dark. :where keeps the existing selector specificity and dark declarations. */

@media (max-width:760px){
  /* Reserve a fourth phone action-bar slot for the existing AI launcher. */
  body:has(.mobile-workspace-jump):has(#ai-chat-root .ai-chat-launcher) .mobile-workspace-jump{
    padding-right:calc(72px + env(safe-area-inset-right,0px)) !important;
  }
  body:has(.mobile-workspace-jump) #ai-chat-root .ai-chat-launcher{z-index:91 !important}
  body:has(.mobile-workspace-jump) #ai-chat-root .ai-chat-panel{
    bottom:calc(86px + env(safe-area-inset-bottom,0px)) !important;
    max-height:calc(100dvh - 112px - env(safe-area-inset-bottom,0px)) !important;
    z-index:1000 !important;
  }
  /* Existing sticky submit and native assistant share a phone action row, with a real gap. */
  body:has(#askForm):has(.ac-fab) #askBtn{
    width:calc(100% - 132px) !important;
    min-width:100px;
    margin-right:132px;
  }
}

/* Dense white plans and naming form labels must not wash through dark reading cards.
   Keep the existing dark surface color, capsule buttons, blur and animations. */
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) .invite-entry[open] .nav-menu-list.invite-card,
html:is(.tq-dark, :where(:not(.yq-light):has(#yqTheme))) [data-topbar-entries] .invite-card{
  background:color-mix(in srgb,var(--ui-surface,#162238) 96%,transparent) !important;
}

/* t69 / 2026-11-15: frontend ACTION colors only. Deliberately do not change
   --ui-primary globally: icons, analysis auspiciousness, charts, and semantic
   success/warning/danger colors must stay as they are. The fixed gold marketing
   homepage and every native dark product scheme are intentionally excluded. */
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) body :is(button.primary,button.btn-primary,a.btn-primary,button.nav-primary,a.nav-primary,button.plan-review-primary,.mh-main .mh-go,.mobile-workspace-jump > button:not(.ghost):not(.secondary),.strip-tools > button:not(.ghost),.admin-compass-tools > button:not(.ghost),.compass-position-fields > button:not(.ghost),.manual-save-bar > button:not(.ghost),.rule2-step-nav > button:not(.ghost):not(.secondary),.rule2-primary-actions > button:not(.ghost),.login-actions > button[type=submit]:not(.tq-home *),.app-shell:not(.admin-mode) .row.wrap > button:not([class]),button.feedback-submit,.ac-foot button[type=submit],button.zl-btn,a.zl-btn,.ui-result-toolbar > button:first-child,.plan-notice-entry > button,.adjustment-plan-entry > button,.vl-admin > button:not(.ghost),.cu-row #cuOpen,dialog:has(.points-guide) .cd-actions > button:not(.secondary):not(.ghost):not(.danger),.consumer-site:not(.tq-home) .home-primary):not(.app-shell.admin-mode *):not(.danger):not(.warning):not(.success):not([data-tone=danger]):not([data-tone=warning]):not([data-tone=success]){
  background:linear-gradient(180deg,rgba(250,250,252,.64),rgba(222,222,226,.82))!important;
  border-color:transparent!important;
  color:#303034!important;
}
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) body :is(button.primary,button.btn-primary,a.btn-primary,button.nav-primary,a.nav-primary,button.plan-review-primary,.mh-main .mh-go,.mobile-workspace-jump > button:not(.ghost):not(.secondary),.strip-tools > button:not(.ghost),.admin-compass-tools > button:not(.ghost),.compass-position-fields > button:not(.ghost),.manual-save-bar > button:not(.ghost),.rule2-step-nav > button:not(.ghost):not(.secondary),.rule2-primary-actions > button:not(.ghost),.login-actions > button[type=submit]:not(.tq-home *),.app-shell:not(.admin-mode) .row.wrap > button:not([class]),button.feedback-submit,.ac-foot button[type=submit],button.zl-btn,a.zl-btn,.ui-result-toolbar > button:first-child,.plan-notice-entry > button,.adjustment-plan-entry > button,.vl-admin > button:not(.ghost),.cu-row #cuOpen,dialog:has(.points-guide) .cd-actions > button:not(.secondary):not(.ghost):not(.danger),.consumer-site:not(.tq-home) .home-primary):not(.app-shell.admin-mode *):not(.danger):not(.warning):not(.success):not([data-tone=danger]):not([data-tone=warning]):not([data-tone=success]):is(:hover,:active,:focus-visible){
  background:linear-gradient(180deg,rgba(250,250,252,.64),rgba(222,222,226,.82))!important;
  border-color:transparent!important;
  color:#303034!important;
  outline-color:#45454b;
}
/* Recolor only the existing teal glow on these two product primaries. Keep its
   exact inset/offset/blur/spread, and leave buttons with no shadow untouched. */
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) body :is(#form button.primary,#saveForm button.primary,.btn.primary):not(.app-shell.admin-mode *):not(.danger):not(.success):not(.warning){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 0 rgba(0,0,0,.12),0 8px 20px rgba(85,85,91,.32)!important;
}
/* Selected control buttons keep their filled-vs-neutral hierarchy, without
   leaking this accent into calendar status marks or analysis text. */
html:not(.tq-dark):where(.yq-light, :not(:has(#yqTheme))) body :is(button.segment-button.active,button.al-cell.is-picked):not(.app-shell.admin-mode *):not([data-tq-seg-ui] > button){
  background:var(--ng-fill)!important;border-color:rgba(100,100,106,.45)!important;color:#303034!important;
}

/* t78: separate menu items and clear the whole wrapped toolbar, not row one. */
details.acct-user-menu[open]>.nav-menu-list{gap:8px!important;padding:8px!important}
details.acct-user-menu>.nav-menu-list>.acct-menu-item{flex:0 0 auto}
details.acct-user-menu[open]>.nav-menu-list[data-acct-positioned]{position:absolute!important;inset:auto!important;left:var(--acct-x)!important;top:var(--acct-y)!important;width:var(--acct-width)!important;max-width:calc(100vw - 24px)!important;max-height:var(--acct-height)!important;overflow:auto;box-sizing:border-box}
