/* Preserve the live site's material tokens and controls; change only the layout. */
:root{--surface:#f5f6f8;--app-backdrop:#f5f6f8;--media-height:clamp(76px,10dvh,96px)}
html{background:var(--app-backdrop)}
body{background:transparent}
.app-shell{width:100%;max-width:760px;margin:auto}
.workspace{position:relative;display:block;height:100dvh;min-height:320px}
.media{position:absolute;z-index:4;top:0;left:0;right:0;padding:14px 16px 12px;display:block;overflow:visible;max-height:none;height:calc(var(--media-height) + 26px);background:rgb(174 199 224 / .64);backdrop-filter:blur(24px) saturate(110%);-webkit-backdrop-filter:blur(24px) saturate(110%);border:0;border-radius:0 0 20px 20px}
#media-panel,.media-content{height:100%;padding:0;position:relative}


.upload-copy{display:block;min-width:0}

.preview img,.preview video{width:100%;height:100%;max-height:none;object-fit:contain;margin:0;border-radius:18px;background:rgb(174 199 224 / .64);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 4px 18px #24272c0a}
.preview:has(img:not([hidden])),.preview:has(video:not([hidden])){height:100%}
.preview{position:relative;overflow:hidden;border-radius:18px}
.photo-boxes{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:hidden}
.target-box{fill:transparent;stroke:var(--accent);stroke-width:2;vector-effect:non-scaling-stroke}
.target-box[role="button"]{pointer-events:all;cursor:pointer;touch-action:manipulation}
.target-box[aria-pressed="false"]{stroke-dasharray:5 3;stroke-opacity:.7}
.target-box[role="button"]:hover{fill:rgb(0 108 208 / .05)}
.target-box[role="button"]:focus-visible{outline:0;stroke-width:3;fill:rgb(0 108 208 / .08)}
#photo{cursor:zoom-in}
.photo-window{position:absolute;overflow:hidden;border-radius:8px}
.manual-select{position:absolute;z-index:3;right:8px;top:62.6px;width:44.2px;min-width:44.2px;height:44.2px;min-height:44.2px;border-radius:50%;padding:9.1px;border:1px solid var(--line);background:rgb(255 255 255 / .93);color:#4b5563;box-shadow:0 3px 14px #24272c08}
.manual-select svg{width:23.4px;height:23.4px}
.region-editor{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#f5f6f8;color:var(--ink);overflow:hidden}
.region-editor::backdrop{background:rgb(245 246 248 / .9);backdrop-filter:blur(20px)}
.region-editor h2{position:absolute;left:18px;top:19px;font-size:17px;margin:0}
.region-viewport{position:absolute;inset:64px 12px 152px;overflow:hidden;touch-action:none;user-select:none}
#region-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.region-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.region-toolbar{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:16px;right:16px;text-align:center}
.region-zoom{display:flex;justify-content:center;gap:6px}.region-zoom button{background:white;font-size:22px}
#region-status{margin:7px 0;font-size:12px;min-height:21px;color:var(--muted)}
.region-actions{display:flex;justify-content:center;gap:10px}.region-actions button{min-height:44px;font-size:13px}.region-actions #region-confirm{background:var(--accent);border-color:var(--accent);color:white}.region-actions #region-confirm:disabled{background:#d8e8f8;border-color:#d8e8f8}
#photo-viewer{width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgb(246 247 249 / .96);color:var(--ink);overflow:hidden}
#photo-viewer::backdrop{background:rgb(245 246 248 / .84);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.zoom-viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;user-select:none}
.zoom-stage{position:absolute;inset:0;transform-origin:center;will-change:transform}
#zoom-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center;user-select:none}
.viewer-close,.zoom-controls{position:absolute;z-index:3;background:rgb(255 255 255 / .92);border:1px solid var(--line);box-shadow:0 3px 18px #24272c0a;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.viewer-close{top:max(14px,env(safe-area-inset-top));right:14px;font-size:28px;font-weight:300}
.zoom-controls{display:flex;gap:4px;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);border-radius:28px;padding:4px}
.zoom-controls button{font-size:23px}
.workspace.has-media{--media-height:clamp(128px,20dvh,180px)}

.media.has-preview .upload-copy{display:none}
.targets{position:absolute;left:8px;bottom:6px;display:flex;gap:6px;margin:0}.targets button{background:#ffffffed;padding:4px 9px;min-height:34px;font-size:11px}
.targets button[data-target-view="all"]{flex:0 0 auto;width:auto;min-width:58px;border-radius:999px;padding-inline:14px}
.app-shell .material-surface .targets button[data-target-pending]{border-color:var(--accent);border-style:dashed}
#retry-fallback{position:absolute;left:8px;bottom:7px;font-size:11px;min-height:32px;padding:4px 10px}
.dialogue{position:relative;height:100%;min-height:0;background:transparent}.conversation{min-height:0;flex:1}.dialogue-heading{display:none}
#turns{padding:calc(var(--media-height) + 42px) 20px calc(var(--composer-height,78px) + 20px);scroll-padding-top:calc(var(--media-height) + 36px);scroll-padding-bottom:calc(var(--composer-height,78px) + 20px);scrollbar-width:none}#turns::-webkit-scrollbar{display:none}
.turn{margin-bottom:24px}.turn p{font-size:16px;line-height:1.85}.turn small{font-size:11px;margin-bottom:10px}.turn.user{max-width:88%;padding:10px 14px;border-radius:21px}.turn.user p{font-size:15px}.turn.notice-turn p{font-size:13px}
.outgoing-message-landing { visibility: hidden; }
#observation.outgoing-observation { color: transparent; caret-color: transparent; }
.turn.user.outgoing-message-flight {
  position: fixed;
  z-index: 30;
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}
.outgoing-message-flight > p { position: relative; }
.outgoing-message-glow, .outgoing-message-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
}
.outgoing-message-glow {
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--outgoing-fill) 62%, transparent) 0%,
    color-mix(in srgb, var(--outgoing-fill) 45%, transparent) 42%,
    color-mix(in srgb, var(--outgoing-fill) 25%, transparent) 72%,
    transparent 100%);
  transform-origin: center;
}
.outgoing-message-fill {
  padding: inherit;
  background: var(--outgoing-fill);
  color: var(--outgoing-ink);
}
.turn.assistant:not(.notice-turn){position:relative}
.turn.assistant:not(.notice-turn)::before{content:none}
.turn.assistant:not(.notice-turn)>small{display:flex;align-items:center;gap:8px;width:100%;max-width:100%;padding-bottom:8px;border-bottom:1px solid #d4d8df;margin-bottom:10px}
.turn.assistant:not(.notice-turn) small::before{content:"";display:block;flex:0 0 20px;width:20px;height:20px;border:0;border-radius:50%;margin:0;vertical-align:initial;background:transparent url("data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDcxLjY5IDUyLjc2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzRkNmJmZTt9PC9zdHlsZT48L2RlZnM+PHBhdGggaWQ9InBhdGgiIGNsYXNzPSJjbHMtMSIgZD0iTTUyMy43NywyNzYuMzRjLS43Ni0uMzgtMS4wOC4zMy0xLjUzLjY5YTQsNCwwLDAsMC0uNDEuNDEsNS4wNyw1LjA3LDAsMCwxLTQuMSwxLjg3LDgsOCwwLDAsMC02LjQ2LDIuNTMsNS44Miw1LjgyLDAsMCwwLTMuNzItNC42Miw2LjM5LDYuMzksMCwwLDEtMi44NS0xLjk0LDcuNzYsNy43NiwwLDAsMS0uOTItMi4zMWMtLjE2LS40OC0uMzItMS0uODctMS4wNXMtLjgzLjQxLTEuMDcuODJhMTEsMTEsMCwwLDAtMS4yNiw1LjUsMTEuOSwxMS45LDAsMCwwLDUuNDksMTAuMTQuNzUuNzUsMCwwLDEsLjM5LDFjLS4yNS44NC0uNTQsMS42NS0uNzksMi40OS0uMTcuNTMtLjQxLjY1LTEsLjQyYTE2LjYzLDE2LjYzLDAsMCwxLTUuMTgtMy41MmMtMi41Ni0yLjQ4LTQuODgtNS4yMS03Ljc2LTcuMzUtLjY4LS41LTEuMzYtMS0yLjA2LTEuNDEtMi45NC0yLjg2LjM5LTUuMiwxLjE2LTUuNDhzLjI4LTEuMjktMi4zMy0xLjI4LTUsLjg4LTgsMmE4LjIzLDguMjMsMCwwLDEtMS4zOS40MSwyOC42NywyOC42NywwLDAsMC04LjYxLS4zLDE4LjU3LDE4LjU3LDAsMCwwLTEzLjQ0LDcuODNjLTQsNS40Ny00LjkxLDExLjY3LTMuNzYsMTguMTVhMjcuNjgsMjcuNjgsMCwwLDAsMTAsMTYuODgsMjYuOCwyNi44LDAsMCwwLDE5LjIzLDYuMzljNC40My0uMjUsOS4zNi0uODQsMTQuOTItNS41NWExMy44NCwxMy44NCwwLDAsMCw1LjMyLDEuMTgsMTcuMjQsMTcuMjQsMCwwLDAsNS4wOS0uMzhjMi4yLS40NiwyLjA1LTIuNSwxLjI1LTIuODctNi40My0zLTUtMS43OC02LjMtMi43NywzLjI3LTMuODcsOC4yLTcuODksMTAuMTMtMjAuOTJhMTIuNDQsMTIuNDQsMCwwLDAsMC0yLjUyYzAtLjUxLjEtLjcxLjY4LS43NmExMi41NSwxMi41NSwwLDAsMCw0LjYyLTEuNDJjNC4xNy0yLjI4LDUuODUtNiw2LjI1LTEwLjUxQTEuNTcsMS41NywwLDAsMCw1MjMuNzcsMjc2LjM0Wm0tMzYuMzQsNDAuMzdjLTYuMjQtNC45LTkuMjctNi41Mi0xMC41Mi02LjQ1cy0xLDEuNDEtLjcsMi4yOGE4LjQ5LDguNDksMCwwLDAsMS4xMSwyLjIxLDEuMTQsMS4xNCwwLDAsMS0uMzQsMS44Yy0yLDEuMjQtNS41LS40Mi01LjY2LS41YTI2LjA4LDI2LjA4LDAsMCwxLTkuODctOS44OCwzMC4xNSwzMC4xNSwwLDAsMS0zLjg3LTEzLjM5Yy0uMDYtMS4xNS4yOC0xLjU2LDEuNDItMS43N2ExNC4zMSwxNC4zMSwwLDAsMSw0LjU3LS4xMSwyOC41NiwyOC41NiwwLDAsMSwxNi4zMyw4LjI5LDU0LjA2LDU0LjA2LDAsMCwxLDYuNTgsOC42Myw0MS40Niw0MS40NiwwLDAsMCw3LjQxLDguNzEsMjQuMzYsMjQuMzYsMCwwLDAsMi42NiwyQzQ5NC4xNiwzMTguODIsNDkwLjE2LDMxOC44Nyw0ODcuNDMsMzE2LjcxWm0zLTE5LjIzYS45Mi45MiwwLDAsMSwuOTItLjkyLjgzLjgzLDAsMCwxLC4zMi4wNi44LjgsMCwwLDEsLjM0LjIyLjkuOSwwLDAsMSwuMjUuNjQuOTIuOTIsMCwwLDEtMS44MywwWm05LjI5LDQuNzZhNS4yNyw1LjI3LDAsMCwxLTEuNzcuNDgsMy43NSwzLjc1LDAsMCwxLTIuMzgtLjc2LDMuNTcsMy41NywwLDAsMS0xLjY1LTIuMjYsNS4xNiw1LjE2LDAsMCwxLDAtMS43NiwyLDIsMCwwLDAtLjcxLTIuMTcsMy4xLDMuMSwwLDAsMC0yLjA2LS41OSwxLjYzLDEuNjMsMCwwLDEtLjc2LS4yNC43NS43NSwwLDAsMS0uMzQtMS4wNywzLjQ3LDMuNDcsMCwwLDEsLjU3LS42MiwzLjksMy45LDAsMCwxLDMuNDMsMCwxMCwxMCwwLDAsMSwzLDIuMzQsMTguNjIsMTguNjIsMCwwLDEsMiwyLjczLDEwLjksMTAuOSwwLDAsMSwxLjMzLDIuNTNDNTAwLjY1LDMwMS40Nyw1MDAuNCwzMDIsNDk5LjcxLDMwMi4yNFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00NTIuODMgLTI3MS45MSkiLz48L3N2Zz4K") center/contain no-repeat;pointer-events:none}
.turn.model-reply > :is(p,ul,ol) + :is(p,ul,ol){margin-top:8px}
.turn.model-reply > :is(ul,ol){margin:0;padding-inline-start:1.5em}
.turn.model-reply li{font-size:16px;line-height:1.85;white-space:pre-wrap}
.reply-letter:not([data-typed]) { visibility: hidden; }
.reply-letter[data-typing-caret] { position: relative; }
.reply-letter[data-typing-caret]::after {
  content: "";
  position: absolute;
  inset-inline-start: 100%;
  inset-block: .12em;
  inline-size: 1px;
  background: var(--accent);
}
.waiting small{display:none}.waiting{font-size:12px}
.guided-status{margin:8px 0 12px;color:var(--muted);font-size:13px}.guided-status p{margin:0 0 5px}.guided-status .secondary{font-size:inherit}
.composer{--composer-bottom-gap:7px;position:absolute;left:0;right:0;bottom:0;padding:8px 12px var(--composer-bottom-gap);background:transparent;pointer-events:none;z-index:5}
.composer :is(.input-wrap,.send-button,.reveal-button,.error){pointer-events:auto}
#answer-form{display:flex;align-items:flex-end;gap:10px;width:100%;margin:0}
.input-wrap{flex:1;min-width:0;display:flex;align-items:flex-end;gap:4px;min-height:52px;max-height:130px;border-radius:28px;padding:3px 8px;border-color:rgb(215 224 235 / .8);background:rgb(255 255 255 / .62);backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);box-shadow:inset 0 1px 0 #ffffffb3,0 3px 16px #101b2a0a}
textarea{flex:1;min-width:0;width:100%;min-height:44px;max-height:122px;font-size:16px;padding:9px 4px;line-height:1.6;border-radius:0;background:transparent}
.composer-actions{flex:0 0 36px;align-self:center;display:flex;align-items:center;justify-content:center;height:36px;min-height:36px;padding:0;gap:0}.attach-button{width:36px;min-width:36px;height:36px;min-height:36px}#send-icon{font-size:26px}
.latest{width:34px;min-height:34px;height:34px;padding:0;border-radius:50%;font-size:18px;bottom:calc(var(--composer-height,78px) + 12px)}
.reveal-button{display:block;margin:5px auto 0;color:var(--accent);min-height:34px;padding:4px 8px}
.reveal-panel{padding:24px 20px}.reveal-panel h2{font-size:18px}
.error{margin:8px 2px 0;font-size:12px}.input-wrap:focus-within{border-color:var(--accent);outline:1px solid #93b9e2;outline-offset:1px}
@media(max-width:350px){.media{padding-left:12px;padding-right:12px}#turns{padding-left:16px;padding-right:16px}.turn p,.turn.model-reply li{font-size:15px}}

/* Video selection is isolated from the material card and photo geometry. */
.clip-editor{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:20px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);overflow:auto;box-shadow:0 20px 80px #101b2a33}
.clip-editor::backdrop{background:#101b2a66;backdrop-filter:blur(8px)}
.clip-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.clip-header h2{font-size:18px;margin:0}.clip-header p{margin:2px 0 0;color:var(--muted);font-size:12px}.clip-header .icon-button{font-size:25px;margin-top:-5px}
#clip-preview{display:block;width:100%;height:clamp(140px,30dvh,280px);object-fit:contain;background:#111827;border-radius:14px}
.clip-selection{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;margin:14px 0 8px}.clip-track{height:6px;background:var(--line);border-radius:8px;position:relative;overflow:hidden;margin-bottom:12px}.clip-track span{position:absolute;top:0;height:100%;background:var(--accent)}
.clip-field{display:grid;grid-template-columns:30px minmax(0,1fr) 90px;gap:10px;align-items:center;margin-bottom:8px;font-size:13px}.clip-field input[type=range]{width:100%;min-width:0;min-height:42px;accent-color:var(--accent);margin:0}.clip-number{display:flex;align-items:center;gap:5px;color:var(--muted)}.clip-number input{width:68px;min-width:0;min-height:40px;padding:6px;border:1px solid var(--line);border-radius:10px;font:inherit;color:var(--ink);background:var(--surface)}
.clip-hint{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0}.clip-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.clip-actions button{font-size:13px;min-height:44px}.clip-actions .clip-confirm{background:var(--accent);color:white;border-color:var(--accent);margin-left:auto}.clip-actions .clip-confirm:hover{background:var(--accent-hover)}
.clip-edit{font-size:11px;min-height:32px;padding:4px 10px;margin-top:8px}
@media(max-width:480px){.clip-editor{padding:15px;border-radius:20px}.clip-field{grid-template-columns:26px minmax(0,1fr) 82px;gap:7px}.clip-number input{width:61px;font-size:16px}.clip-actions{gap:6px}.clip-actions button{padding:8px 10px;font-size:12px}}

.learning-invite {
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 60px #101b2a33;
}
.learning-invite::backdrop { background: #101b2a66; backdrop-filter: blur(8px); }
.learning-invite h2 { margin: 0 0 16px; font-size: 20px; }
.learning-invite label { display: block; margin-bottom: 6px; font-size: 14px; }
.learning-invite input {
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--sidebar); color: var(--ink); font: inherit; font-size: 16px;
}
.learning-invite input[aria-invalid="true"] { border-color: currentColor; }
#learning-invite-error { margin: 8px 0 0; color: var(--error); font-size: 13px; }
.learning-invite-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.learning-invite-actions button { min-height: 44px; padding: 6px 14px; }
#learning-invite-submit:not(:disabled) { background: var(--accent); border-color: var(--accent); color: light-dark(white, #142030); }

.workspace.has-video{--media-height:clamp(180px,27dvh,240px)}
.has-video .media-content>.clip-edit{position:absolute;left:8px;top:8px;z-index:2;margin:0;background:#fffffff0}

/* Photo controls share one confirmation state; video and empty layouts keep their height. */
.workspace.has-media.has-photo-controls{--media-height:max(209px,clamp(128px,20dvh,180px))}
.material-reveal{position:absolute;z-index:3;right:8px;top:117.2px;width:44.2px;min-width:44.2px;height:83.2px;min-height:83.2px;padding:4px 0;border:1px solid var(--line);border-radius:22.1px;background:rgb(255 255 255 / .93);color:#4b5563;display:grid;place-items:center;overflow:hidden;isolation:isolate;box-shadow:0 3px 14px #24272c08;transition:color .4s,border-color .4s,background .4s}
.material-reveal .reveal-button-copy{writing-mode:vertical-rl;text-orientation:upright;letter-spacing:1px;font-size:11px;line-height:16px;font-weight:500}
.material-reveal:not(:disabled):hover{background:rgb(255 255 255 / .98)}
.material-reveal:disabled{background:rgb(246 247 249 / .94);border-color:#e4e7ec;color:#9aa2ac;box-shadow:none}
.material-reveal[data-reveal-state="revealed"]{color:#717b88}
.reveal-button{position:relative;overflow:hidden;isolation:isolate;border-radius:17px;transition:color .32s,border-color .32s,background .32s}
.material-reveal::before,.reveal-button::before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse at center,rgba(242,130,146,.62) 0%,rgba(248,167,178,.45) 42%,rgba(255,218,223,.25) 72%,rgba(255,235,238,0) 100%);transform-origin:center;transform:scale(.04);opacity:0;transition:transform .38s cubic-bezier(.16,1,.3,1),opacity .28s ease-out}
.material-reveal.is-armed::before,.reveal-button.is-armed::before{transform:scale(1.6);opacity:1;transition-duration:.65s,.5s}
.material-reveal.is-armed,.reveal-button.is-armed{color:#843f4c;border-color:#e6b5be}
.reveal-button-copy{position:relative;z-index:1}

.candidate .candidate-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:baseline;column-gap:16px}.candidate-name{min-width:0;overflow-wrap:anywhere}.candidate-score{justify-self:end;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600;color:var(--ink)}

.media .video-expand{top:62.6px;width:44.2px;min-width:44.2px;height:44.2px;min-height:44.2px;padding:9.1px}.media .video-expand svg{width:23.4px;height:23.4px}

/* The revealed result covers only the chat below the observation material. */
html,body{height:100%;overflow:hidden}
.app-shell{height:100dvh;overflow:hidden}
.reveal-sheet{--handle-width:21.2823px;position:absolute;z-index:6;top:calc(var(--media-height) + 26px);right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;isolation:isolate}
.reveal-tray{position:absolute;inset:0;transform:translateX(calc(-100% + var(--handle-width)));transition:transform .39s cubic-bezier(.16,1,.3,1);will-change:transform}
.reveal-sheet.is-open .reveal-tray{transform:translateX(0);background:var(--surface)}
.reveal-sheet .reveal-panel{position:absolute;inset:0 var(--handle-width) 0 0;width:auto;max-width:none;margin:0;padding:24px 18px 28px 20px;border:0;background:var(--surface);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;pointer-events:none}
.reveal-sheet.is-open .reveal-panel{pointer-events:auto}
.reveal-sheet[data-presentation="direct"] .reveal-panel{right:0}
.reveal-sheet[data-presentation="direct"] .reveal-toggle{display:none}
.reveal-sheet[data-presentation="direct"] .reveal-tray{transform:none;transition:none;will-change:auto}
.workspace:not(.material-intro) .reveal-sheet[data-presentation="direct"].is-open .reveal-tray {
  animation: recognition-result-rise .42s cubic-bezier(.22,1,.36,1);
}
@keyframes recognition-result-rise {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace:not(.material-intro) .reveal-sheet[data-presentation="direct"].is-open .reveal-tray { animation: none; }
}
.reveal-sheet .reveal-panel h2{margin:0 0 12px;font-size:20px;font-weight:650}
.reveal-sheet #reveal-note{margin:0 0 16px;font-size:13px;line-height:1.8;color:var(--muted)}
.reveal-toggle{position:absolute;z-index:2;right:0;top:50%;transform:translateY(-50%);width:var(--handle-width);min-width:var(--handle-width);height:min(137.816px,100%);min-height:0;padding:2px;border:1px solid #dcdee2;border-right:0;border-radius:12px 0 0 12px;background:#e9eaed;color:#17191c;display:grid;place-items:center;pointer-events:auto;box-shadow:-2px 0 8px #24272c08;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:background .18s,border-radius .3s}
.reveal-toggle:hover{background:#e0e2e6}
button.reveal-toggle:not(:disabled):active{transform:translateY(-50%);box-shadow:-2px 0 8px #24272c08}
.reveal-toggle.is-dragging{background:#d8dce2;cursor:grabbing}
.reveal-toggle{cursor:pointer}
.reveal-toggle svg{pointer-events:none;width:14px;height:14px;transform:rotate(180deg);transition:transform .32s cubic-bezier(.16,1,.3,1)}
.reveal-toggle[aria-expanded="true"] svg{transform:rotate(0deg)}
.reveal-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.reveal-sheet .candidate-primary{font-weight:600;font-size:17px;line-height:1.7}
.reveal-sheet .candidate-alternatives{margin-top:18px;font-size:12px;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.reveal-tray,.reveal-toggle svg{transition:none}}

/* A compact send control with a distinct idle, enabled and waiting state. */
.send-button{flex:0 0 52px;width:52px;min-width:52px;height:52px;min-height:52px;margin-bottom:0;border-radius:50%;padding:0;display:grid;place-items:center;border:1px solid rgb(0 108 208 / .5);background:rgb(0 108 208 / .78);backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);color:white;box-shadow:inset 0 1px 0 #ffffff40,0 3px 12px rgb(0 108 208 / .16);transition:background .18s,color .18s,box-shadow .18s,transform .18s}
.send-button:not(:disabled):hover{background:rgb(0 91 179 / .86);border-color:rgb(0 91 179 / .6);box-shadow:0 4px 12px rgb(0 108 208 / .2)}
.send-button:not(:disabled):active{transform:scale(.94)}
.send-button:disabled{background:rgb(239 241 244 / .62);border-color:rgb(220 226 233 / .65);color:#a1a9b4;opacity:1;box-shadow:inset 0 1px 0 #ffffffb3}
#send-icon{display:grid;place-items:center;width:24px;height:24px;line-height:1;font-size:22px;transform:none}
.send-plane{display:block;width:22px;height:22px}.send-wait{display:none;line-height:1}
.send-button[data-waiting="true"] .send-plane{display:none}.send-button[data-waiting="true"] .send-wait{display:block}
@media(prefers-reduced-motion:reduce){.send-button{transition:none}}

/* Icon controls center their artwork without changing their position or hit area. */
.icon-button{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1}
.icon-button svg,.reveal-toggle svg{display:block;flex-shrink:0}
.attach-button{padding:0}
.latest{display:grid;place-items:center;line-height:1}
.latest svg{display:block;width:18px;height:18px}

.reveal-sheet:not(.is-open) .reveal-toggle{border-left:0;border-right:1px solid #dcdee2;border-radius:0 12px 12px 0;box-shadow:2px 0 8px #24272c08}

/* Compact result hierarchy: one heading, one note, consistent row/section spacing. */
.reveal-sheet .reveal-panel{padding:18px 16px 20px 20px}
.reveal-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 12px}
.reveal-sheet .reveal-heading h2{flex:0 0 auto;font-size:18px;line-height:1.5;margin:0;font-weight:650}
.reveal-sheet .reveal-heading #reveal-note{margin:0;text-align:right;font-size:11px;line-height:1.5;color:var(--muted)}
.reveal-sheet .candidate{padding:0 0 12px;margin:0;border-bottom:1px solid var(--line)}
.reveal-sheet .candidate+.candidate{padding-top:12px}
.reveal-sheet .candidate>b{display:block;margin:0 0 6px;font-size:13px;line-height:1.6;color:var(--muted)}
.reveal-sheet .candidate p{font-size:13px;margin:6px 0;line-height:1.6}
.reveal-sheet .candidate .candidate-row{align-items:start;column-gap:12px;margin:0;padding:6px 0;font-size:15px;line-height:1.5}
.candidate-common{display:block;font-size:15px;font-weight:500;line-height:1.5}
.candidate-latin{display:block;margin-top:1px;font-size:12px;line-height:1.45;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
.reveal-sheet .candidate-primary .candidate-common{font-size:17px;font-weight:650}
.reveal-sheet .candidate-primary .candidate-score{font-size:17px;font-weight:650}
.reveal-sheet .candidate-score{padding-top:1px;font-size:15px;line-height:1.5}
.reveal-sheet .candidate .candidate-alternatives{margin:10px 0 2px;font-size:12px;line-height:1.5;color:var(--muted)}
.reveal-sheet .reveal-panel>h3{font-size:16px;line-height:1.5;margin:16px 0 8px}
.reveal-sheet #resource-status{font-size:12px;line-height:1.6;margin:0 0 8px;color:var(--muted)}
.reveal-sheet .refs{padding:12px 0}
.reveal-sheet .refs:first-child{padding-top:0;border-top:0}
.reveal-sheet .refs h3{font-size:14px;line-height:1.5;margin:0 0 6px}
.reveal-sheet .refs p{font-size:13px;line-height:1.6;margin:3px 0}
.reveal-sheet .images{gap:10px;margin-top:10px}
.reveal-sheet .images img{height:180px;border-radius:12px}
.reveal-sheet .images figcaption{margin-top:4px;font-size:10px;line-height:1.6}

.reveal-sheet .video-mean-status{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 8px}

.workspace.has-video .video-frames{padding-right:0}

.workspace.has-video .material-reveal{top:62.6px}
#expand-video,.workspace.has-video #manual-region{display:none!important}

.reveal-sheet .images img[role="button"]{cursor:zoom-in}.reveal-sheet .images img[role="button"]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}


/* Empty material matches the requested broad card even in a restored session. */
.workspace:not(.has-media){--empty-media-height:clamp(220px,56vw,360px);--media-height:calc(var(--empty-media-height) - 26px)}
.workspace.material-intro .media{height:var(--empty-media-height);min-height:220px;max-height:calc(100% - 56px)}




.workspace.material-intro .conversation,.workspace.material-intro #answer-form{opacity:0;transform:translateY(32px);visibility:hidden;pointer-events:none}
.workspace.material-intro .reveal-sheet{visibility:hidden;pointer-events:none}
.workspace.material-entering .media{will-change:height}
.workspace.material-entering .conversation,.workspace.material-entering #answer-form{will-change:opacity,transform}
/* Upload/decode errors remain readable even while the first chat is hidden. */
.workspace.material-intro .composer #error{pointer-events:auto}
@media(prefers-reduced-motion:reduce){.workspace.material-entering .media,.workspace.material-entering .conversation,.workspace.material-entering #answer-form{will-change:auto}}
.workspace.material-entering.material-intro .conversation,.workspace.material-entering.material-intro #answer-form{visibility:visible}

/* Keep the visible handle slim while providing a forgiving touch margin. */
.reveal-toggle::before{content:"";position:absolute;inset:-6px -10px;pointer-events:auto}

/* Keep the document canvas fixed; only the composer docks above the keyboard. */
html{height:100%;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
.app-shell{height:100%;overflow:hidden}
.workspace.keyboard-dock-active{height:var(--keyboard-base-height)}
.composer{bottom:var(--app-keyboard-lift,var(--keyboard-lift,0px))}
#turns{padding-bottom:calc(var(--composer-height,78px) + var(--chat-keyboard-lift,0px) + 20px);scroll-padding-bottom:calc(var(--composer-height,78px) + var(--chat-keyboard-lift,0px) + 20px)}
/* BEGIN APP_NAVIGATION_STYLES */
.app-profile-heading{display:flex;align-items:center;gap:10px;min-height:44px;margin:0 0 20px}
.app-profile-heading h1{font-size:23px;line-height:1.4;font-weight:700;margin:0}
.app-profile-menu{display:flex;align-items:center;gap:14px;width:100%;min-height:65px;border:0;border-bottom:1px solid #edf0f4;border-radius:0;padding:14px 3px;background:transparent;text-align:left;color:var(--ink,#263342);font-size:16px;font-weight:500}
.app-profile-menu>svg{display:block;flex:0 0 22px;width:22px;height:22px;color:#697583;pointer-events:none}
.app-profile-menu>svg:last-child{margin-left:auto;width:17px;height:17px;flex-basis:17px;color:#a1a8b1}
.app-profile-menu:not(:disabled):hover{background:#f8fafc}
.app-history-detail{display:flow-root;padding:6px 8.5% 18px;min-width:0}
.app-history-detail .app-record-thumbnail{
  width:auto;
  width:min(100%,calc(230px * var(--history-photo-ratio)));
  max-width:100%;height:auto;max-height:230px;margin:0 auto 20px;background:transparent;
}
.app-history-detail :is(.app-record-candidates,.app-record-references){border-color:var(--line)}
.app-history-detail .app-record-candidate small{color:var(--muted)}
.app-history-detail :is(.app-record-candidates,.app-record-references):last-child{margin-bottom:0}

.app-history-note,.app-navigation-status{font-size:12px;line-height:1.8;color:#7c8693;margin:16px 0}
.app-navigation-status{color:#94652c}
.app-navigation-toast{position:absolute;z-index:9;left:16px;right:16px;bottom:calc(10px + env(safe-area-inset-bottom,0px));margin:0;padding:10px 13px;border-radius:13px;background:rgb(255 250 239 / .96);box-shadow:0 3px 16px #1a263412;color:#94652c;font-size:12px;line-height:1.7}
.app-navigation-toast:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px}
.app-navigation-retry{flex:none;color:inherit}
.workspace[data-learning-entry-blocked] :is(.dialogue,.reveal-sheet,#targets,#material-reveal,.photo-boxes){visibility:hidden!important;opacity:0!important}
.app-about{max-width:560px;margin:0 auto;padding:6px 3px;text-align:center}
.app-about-avatar{display:block;width:112px;height:112px;object-fit:contain;border-radius:50%;margin:0 auto 22px;background:#fff}
.app-about h2{font-size:21px;font-weight:650;line-height:1.5;margin:0 0 14px}
.app-about p{font-size:15px;line-height:1.95;color:#647080;margin:0}
.app-about-section{margin-top:26px}
.app-about-section h3{margin:0 0 9px;font-size:16px;font-weight:650;line-height:1.6}
.app-record-summary .app-history-note{margin:0 0 18px}
.app-record-thumbnail{display:block;width:100%;max-height:230px;object-fit:contain;border-radius:14px;background:#f3f5f8;margin:0 0 20px}
.app-record-candidates{border-bottom:1px solid #e7ebf0;padding:0 0 16px;margin:0 0 16px}
.app-record-reference-title{font-size:17px;line-height:1.5;font-weight:650;margin:0 0 12px}
.app-record-candidate{display:flex;align-items:start;justify-content:space-between;gap:14px;padding:7px 0;font-size:15px;line-height:1.6}
.app-record-candidate>span{min-width:0;overflow-wrap:anywhere}
.app-record-candidate strong{display:block;font-weight:650}
.app-record-candidate small{display:block;font-size:12px;font-weight:400;color:#7b8695;line-height:1.5}
.app-record-candidate>b{white-space:nowrap;font-size:15px;font-variant-numeric:tabular-nums}
.app-record-candidates .app-history-note{margin:12px 0 2px}
.app-record-references{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid #edf0f4}
.app-record-references p{font-size:13px;line-height:1.8;margin:5px 0;overflow-wrap:anywhere}
.app-profile-page button:focus-visible{outline:2px solid #6da7e5;outline-offset:2px}
@media(max-width:350px){.app-profile-page{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){.app-profile-page button{transition:none}}

/* Learning and direct recognition share a still workspace; only reveal visibility changes. */
#material-reveal{opacity:1;visibility:visible;transform:none;transition:opacity .28s cubic-bezier(.22,1,.36,1),visibility 0s,color .4s,border-color .4s,background .4s}
body[data-app-page="identify"] #material-reveal,body[data-app-page="identify"] .app-shell .material-surface #material-reveal{opacity:0;visibility:hidden;transform:none;pointer-events:none;transition-delay:0s,.28s,0s,0s,0s}
body[data-app-page="identify"] #reveal{display:none!important}
@media(prefers-reduced-motion:reduce){#material-reveal{transition:none}}
/* END APP_NAVIGATION_STYLES */

/* The learning dock uses one glass layer under the controls and the gap between them. */
body[data-app-page="home"] .app-shell .material-surface .composer {
  --learning-comparison-lift: 40px;
  --learning-dock-frost: rgb(247 250 255 / .49);
  --learning-control-glass: rgb(255 255 255 / .43);
}

body[data-app-page="home"] .app-shell .material-surface .composer::before {
  content: "";
  position: absolute;
  inset: -28px 0 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(transparent, var(--learning-dock-frost) 36px);
  -webkit-backdrop-filter: blur(32px) saturate(1.12);
  backdrop-filter: blur(32px) saturate(1.12);
  -webkit-mask-image: linear-gradient(transparent, black 36px);
  mask-image: linear-gradient(transparent, black 36px);
}

body[data-app-page="home"] .app-shell .material-surface .composer :is(.input-wrap, .send-button) {
  background: var(--learning-control-glass);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-app-page="home"] .app-shell .material-surface .composer .send-button {
  opacity: 1;
}

body[data-app-page="home"] .app-shell .material-surface .composer.has-comparison {
  padding-bottom: calc(var(--composer-bottom-gap) + var(--learning-comparison-lift));
}

/* Set the final layout once; move only the controls so chat padding follows once. */
body[data-app-page="home"] .composer.has-comparison .composer-row {
  animation: learning-composer-lift 230ms cubic-bezier(.24, .06, .18, 1) both;
}

body[data-app-page="home"] .composer.has-comparison #reveal:not([hidden]) {
  position: absolute;
  inset-inline: 0;
  bottom: var(--composer-bottom-gap);
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  animation: learning-comparison-fade 165ms ease-out 265ms both;
}

@keyframes learning-composer-lift {
  from { transform: translateY(var(--learning-comparison-lift)); }
  to { transform: translateY(0); }
}

@keyframes learning-comparison-fade {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}

@media (prefers-color-scheme: dark) {
  body[data-app-page="home"] .app-shell .material-surface .composer {
    --learning-dock-frost: rgb(26 34 42 / .49);
    --learning-control-glass: rgb(48 60 72 / .53);
  }
}

.study-direction-dock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 4px;
  pointer-events: auto;
}

.study-direction-intro[hidden], .study-direction-dock[hidden], .study-direction-picker[hidden] { display: none; }
.workspace.material-intro :is(.study-direction-intro, .study-direction-dock) { visibility: hidden; }

#study-direction-current {
  margin: 0;
  padding-inline: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.study-direction-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.study-direction-picker {
  position: absolute;
  inset-inline-end: 0;
  bottom: 100%;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: min(182px, 100%);
  max-height: 45dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 6px 18px #172b4927;
}

:is(.study-direction-choices, .study-direction-picker) button, #study-direction-toggle {
  min-height: 44px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  touch-action: manipulation;
}

.study-direction-choices button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 550;
}

.study-direction-picker button {
  padding: 4px 9px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  text-align: start;
}

.study-direction-choices button:hover:not(:disabled),
.study-direction-picker button:is(:hover, [aria-pressed="true"]):not(:disabled) {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.study-direction-picker button[aria-pressed="true"]::after { content: "✓"; float: inline-end; }

#study-direction-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--accent);
  white-space: nowrap;
}

:is(.study-direction-intro, .study-direction-dock) button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.reference-photo-gallery {
  --reference-border: light-dark(#e1e6ec, #2d3744);
  --reference-button: light-dark(#fff, #202a36);
  --reference-hover: light-dark(#e8f2fc, #293c52);
  --reference-edge: light-dark(rgb(255 255 255 / .68), rgb(238 246 255 / .2));
  --reference-shadow: light-dark(rgb(25 47 73 / .24), rgb(0 0 0 / .51));
  position: relative;
  box-sizing: border-box;
  margin: 12px 0 0;
  padding: 12px 0 14px;
  color: var(--ink);
}

.reference-photo-gallery [hidden] { display: none !important; }

.reference-photo-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.reference-photo-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.reference-photo-toggle,
.reference-photo-controls button {
  display: inline-grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}

.reference-photo-gallery .reference-photo-toggle {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.reference-photo-gallery .reference-photo-toggle:hover {
  background: transparent;
}
.reference-photo-controls button {
  border: 1px solid var(--reference-border);
  border-radius: 50%;
  background: var(--reference-button);
}
.reference-photo-controls button:hover:not(:disabled) { background: var(--reference-hover); }
.reference-photo-gallery button:disabled { cursor: default; opacity: .4; }
.reference-photo-gallery :is(button, .reference-photo-image):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.reference-photo-toggle svg { display: block; width: 18px; height: 18px; }
.reference-photo-controls svg { display: block; width: 14px; height: 14px; }

.reference-photo-stage { position: relative; isolation: isolate; }
.reference-photo-figure { min-width: 0; margin: 0; }

.reference-photo-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: clamp(9px, 2.5vw, 15px);
  background: var(--reference-button);
  object-fit: cover;
  cursor: zoom-in;
  user-select: none;
}

.reference-photo-gallery[data-layout="stack"] .reference-photo-stage {
  aspect-ratio: 1.58;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.reference-photo-gallery[data-layout="stack"] .reference-photo-stage.is-dragging,
.reference-photo-gallery[data-layout="stack"] .reference-photo-stage.is-dragging .reference-photo-image { cursor: grabbing; }

.reference-photo-gallery[data-layout="stack"] .reference-photo-figure {
  position: absolute;
  top: 48%;
  left: 50%;
  box-sizing: border-box;
  width: 77%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--reference-edge);
  border-radius: clamp(13px, 4vw, 20px);
  background: var(--reference-button);
  box-shadow: 0 8px 18px -5px var(--reference-shadow);
  transform: translate(-50%, -50%) translateX(calc(var(--shift, 0) * 12.2%)) scale(var(--zoom, 1));
  filter: brightness(var(--light, 1)) saturate(var(--color, 1));
  opacity: var(--visibility, 1);
  pointer-events: none;
}

.reference-photo-gallery[data-layout="stack"] .reference-photo-figure[data-visible="false"] { visibility: hidden; }
.reference-photo-gallery[data-layout="stack"] .reference-photo-figure[data-visible="false"] .reference-photo-image { pointer-events: none; }
.reference-photo-gallery[data-layout="stack"] .reference-photo-image {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  pointer-events: auto;
}

.reference-photo-gallery[data-layout="stack"] .reference-photo-figure[data-active="false"] .reference-photo-image { cursor: pointer; }
.reference-photo-gallery[data-layout="stack"] .reference-photo-grid-credit { display: none; }

.reference-photo-gallery[data-layout="stack"] .reference-photo-stage.is-sliding .reference-photo-figure[data-overlap="true"] {
  --reference-overlap-mask: linear-gradient(var(--reference-overlap-side, to right), #000 0 38%, rgb(0 0 0 / var(--reference-overlap-opacity, 1)) 100%);
  -webkit-mask-image: var(--reference-overlap-mask);
  mask-image: var(--reference-overlap-mask);
}

.reference-photo-gallery[data-layout="grid"] .reference-photo-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px clamp(8px, 2.3vw, 14px);
  align-items: start;
}

.reference-photo-grid-credit,
.reference-photo-credit {
  min-width: 0;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.reference-photo-grid-credit { margin-top: 5px; }

.reference-photo-gallery :is(.reference-photo-grid-credit, .reference-photo-credit) a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--accent);
}

.reference-photo-footer {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.reference-photo-controls { display: flex; align-items: center; justify-content: center; gap: 6px; }
.reference-photo-count {
  min-width: 38px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.reference-photo-flight-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.reference-photo-flight {
  position: absolute;
  display: block;
  box-sizing: border-box;
  margin: 0;
  border: 0 solid var(--reference-edge);
  object-fit: cover;
  transform-origin: top left;
  will-change: transform;
}

.reference-photo-gallery.is-changing-layout .reference-photo-image,
.reference-photo-gallery[data-layout="stack"].is-changing-layout .reference-photo-figure { visibility: hidden; }
.reference-photo-gallery.is-changing-layout :is(.reference-photo-footer, .reference-photo-grid-credit) { pointer-events: none; }

@media (pointer: coarse) {
  .reference-photo-toggle,
  .reference-photo-controls button { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .reference-photo-gallery .reference-photo-figure { -webkit-mask-image: none !important; mask-image: none !important; }
}

/* 顶部模式导航和我的抽屉 */
.app-shell.has-app-navigation {
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-safe-inline: max(10px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-mode-time: 420ms;
  --app-drawer-time: 420ms;
  --app-drawer-heading-size: 56px;
  --app-profile-hit-size: 44px;
  --app-mode-ease: cubic-bezier(.22, .76, .28, 1);
  --app-mode-scale: .62;
  --app-compact-pill-scale: var(--app-mode-scale);
  --app-compact-row: calc(36px * var(--app-mode-scale) + 14px);
  --app-expanded-row: 61px;
  --app-top-row: var(--app-compact-row);
  --app-top-height: calc(var(--app-safe-top) + var(--app-top-row));
  --app-top-glass: rgb(248 251 255 / .56);
  --app-mode-track-fill: rgb(227 233 241 / .76);
  --app-mode-selection: rgb(255 255 255 / .92);
  --app-drawer-fill: #f9fbfd;
  --app-drawer-scrim: rgb(23 35 48 / .29);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.app-shell.has-app-navigation:has(> .app-top-bar[data-expanded="true"]) {
  --app-top-row: var(--app-expanded-row);
}

.app-shell.has-app-navigation > .workspace {
  z-index: 0;
  flex: 1 1 0;
  min-block-size: 0;
  block-size: auto;
}

.app-shell.has-app-navigation > .workspace.keyboard-dock-active {
  flex: 0 1 auto;
  block-size: var(--keyboard-base-height);
}

.app-shell.has-app-navigation > .workspace:not(.keyboard-dock-active) .composer {
  --composer-bottom-gap: calc(7px + var(--app-safe-bottom));
}

.app-top-bar {
  position: relative;
  order: -1;
  display: grid;
  grid-template-columns: var(--app-profile-hit-size) minmax(0, 1fr) var(--app-profile-hit-size);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  flex: none;
  box-sizing: border-box;
  block-size: var(--app-top-height);
  padding-block-start: var(--app-safe-top);
  padding-inline: var(--app-safe-inline);
}

/* 磨砂层独立于按钮，抽屉展开后关闭按钮仍在遮罩上方。 */
.app-top-bar::before {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0 0 -26px;
  pointer-events: none;
  background: var(--app-top-glass);
  -webkit-backdrop-filter: blur(34px) saturate(1.55);
  backdrop-filter: blur(34px) saturate(1.55);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
}

.app-profile-toggle {
  position: absolute;
  z-index: 11;
  inset-inline-start: var(--app-safe-inline);
  inset-block-start: calc((100% + var(--app-safe-top) - var(--app-profile-hit-size)) / 2);
  display: grid;
  place-items: center;
  inline-size: var(--app-profile-hit-size);
  min-block-size: 0;
  block-size: var(--app-profile-hit-size);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #263342);
  transition: inset-block-start var(--app-drawer-time) var(--app-mode-ease);
}

/* 抽屉打开时，关闭图标对齐固定标题行。 */
.app-profile-toggle[aria-expanded="true"] {
  inset-block-start: calc(var(--app-safe-top) + (var(--app-drawer-heading-size) - var(--app-profile-hit-size)) / 2);
}

.app-top-bar .app-profile-toggle:focus-visible {
  outline: none;
  color: var(--accent, #006cd0);
}

.app-top-bar .app-profile-toggle:not(:disabled):active { transform: none; }

.app-top-bar :is(.app-profile-toggle, .app-nav-button) {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.app-top-bar :is(.app-profile-toggle, .app-nav-button):not(:disabled):is(:hover, :active) {
  background: transparent;
  box-shadow: none;
}

.app-profile-toggle-icon {
  position: relative;
  display: block;
  inline-size: 18px;
  block-size: 18px;
  pointer-events: none;
}

.app-profile-toggle-icon > span {
  position: absolute;
  inset: calc(50% - 1px) 1px auto;
  block-size: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--app-drawer-time) var(--app-mode-ease);
}

.app-profile-toggle-icon > span:first-child { transform: translateY(-5px); }
.app-profile-toggle-icon > span:last-child { transform: translateY(5px); }
.app-profile-toggle[aria-expanded="true"] .app-profile-toggle-icon > span:first-child { transform: rotate(45deg); }
.app-profile-toggle[aria-expanded="true"] .app-profile-toggle-icon > span:nth-child(2) { transform: scaleX(0); }
.app-profile-toggle[aria-expanded="true"] .app-profile-toggle-icon > span:last-child { transform: rotate(-45deg); }
.app-profile-toggle[data-profile-action="back"] .app-profile-toggle-icon > span:first-child {
  transform: translate(-1px,-3.5px) rotate(-45deg) scaleX(.65);
}
.app-profile-toggle[data-profile-action="back"] .app-profile-toggle-icon > span:last-child {
  transform: translate(-1px,3.5px) rotate(45deg) scaleX(.65);
}


.app-mode-switcher {
  position: relative;
  z-index: 9;
  grid-column: 2;
  justify-self: center;
  inline-size: min(100%, 216px);
  block-size: 40px;
}

.app-mode-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--app-mode-track-fill);
  pointer-events: none;
  transform: scale(1);
  transition:
    transform var(--app-mode-time) var(--app-mode-ease),
    opacity var(--app-mode-time) var(--app-mode-ease);
}

.app-top-bar[data-expanded="false"] .app-mode-track {
  transform: scale(calc(.5 * var(--app-compact-pill-scale)), var(--app-compact-pill-scale));
  opacity: 0;
}

.app-mode-switcher .app-nav-button {
  --app-mode-offset: -50%;
  --app-pill-scale: 1;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: calc(50% - 2px);
  min-block-size: 0;
  block-size: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #596777);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform var(--app-mode-time) var(--app-mode-ease),
    opacity var(--app-mode-time) var(--app-mode-ease);
}

/* 按住按钮时继续使用当前的定位变换。 */
.app-mode-switcher .app-nav-button,
.app-mode-switcher .app-nav-button:not(:disabled):active {
  transform: translate(-50%, -50%) translateX(var(--app-mode-offset));
}

.app-mode-switcher .app-nav-button[data-mode="identify"] { --app-mode-offset: 50%; }
.app-top-bar[data-expanded="false"] .app-nav-button {
  --app-mode-offset: 0%;
  --app-pill-scale: var(--app-compact-pill-scale);
}

.app-top-bar[data-expanded="false"] .app-nav-button[aria-pressed="false"] {
  --app-pill-scale: .08;
  opacity: 0;
  pointer-events: none;
}

.app-mode-shape {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scale(var(--app-pill-scale));
  transition: transform var(--app-mode-time) var(--app-mode-ease);
}

.app-mode-copy {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: scale(var(--app-copy-scale, var(--app-pill-scale)));
  transition: transform var(--app-mode-time) var(--app-mode-ease);
}

.app-mode-switcher .app-nav-button[aria-pressed="true"] .app-mode-copy {
  --app-copy-scale: 1;
}

.app-top-bar[data-expanded="false"] .app-nav-button[aria-pressed="true"] .app-mode-copy {
  gap: 5px;
  font-size: 16px;
}

.app-mode-copy svg {
  flex: 0 0 17px;
  inline-size: 17px;
  block-size: 17px;
  pointer-events: none;
}

@media (pointer: coarse) {
  .app-mode-switcher .app-nav-button::after {
    content: "";
    position: absolute;
    inset: -4px 0;
  }
  .app-profile-toggle::after {
    content: "";
    position: absolute;
    inset: -4px 0;
  }
}

.app-mode-switcher .app-nav-button[aria-pressed="true"] {
  z-index: 1;
  color: var(--accent, #006cd0);
  font-weight: 650;
}

.app-mode-selection {
  --app-selection-offset: -50%;
  --app-selection-scale: 1;
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: calc(50% - 2px);
  block-size: 36px;
  border-radius: 999px;
  background: var(--app-mode-selection);
  pointer-events: none;
  transform: translate(-50%, -50%) translateX(var(--app-selection-offset)) scale(var(--app-selection-scale));
  transition: transform var(--app-mode-time) var(--app-mode-ease);
}

.app-mode-switcher[data-mode="identify"] > .app-mode-selection { --app-selection-offset: 50%; }
.app-top-bar[data-expanded="false"] .app-mode-switcher > .app-mode-selection {
  --app-selection-offset: 0%;
  --app-selection-scale: var(--app-compact-pill-scale);
}

.app-mode-switcher .app-nav-button:focus-visible { outline: none; }
.app-mode-switcher .app-nav-button:focus-visible .app-mode-shape {
  outline: 2px solid var(--accent, #006cd0);
  outline-offset: -2px;
}

.app-profile-overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: transparent;
  transition:
    background-color calc(var(--app-drawer-time) * .85) var(--app-mode-ease),
    visibility 0s linear var(--app-drawer-time);
}

.app-shell[data-profile-open="true"] > .app-profile-overlay {
  visibility: visible;
  pointer-events: auto;
  background-color: var(--app-drawer-scrim);
  transition-delay: 0s;
}

.app-profile-overlay > .app-profile-page {
  position: relative;
  inset: auto;
  box-sizing: border-box;
  inline-size: min(76%, 300px);
  block-size: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--app-safe-top) 16px calc(20px + var(--app-safe-bottom));
  border-inline-end: 1px solid var(--line, #dce2e9);
  background: var(--app-drawer-fill);
  color: var(--ink, #263342);
  box-shadow: 8px 0 22px rgb(23 35 48 / .13);
  transform: translateX(calc(-100% - 22px));
  transition: transform var(--app-drawer-time) var(--app-mode-ease);
}

.app-shell[data-profile-open="true"] > .app-profile-overlay > .app-profile-page { transform: translateX(0); }

.app-profile-overlay .app-profile-heading {
  box-sizing: border-box;
  min-block-size: var(--app-drawer-heading-size);
  margin-block-end: 12px;
  padding-inline-start: 44px;
  border-bottom: 1px solid var(--line, #dce2e9);
}

.app-profile-overlay .app-profile-heading h1 { font-size: 18px; }
.app-shell.has-app-navigation > .app-navigation-toast { bottom: calc(10px + var(--app-safe-bottom)); }

@media (prefers-color-scheme: dark) {
  .app-shell.has-app-navigation {
    --app-top-glass: rgb(25 32 41 / .56);
    --app-mode-track-fill: rgb(47 60 77 / .78);
    --app-mode-selection: rgb(60 79 104 / .96);
    --app-drawer-fill: #1a2129;
    --app-drawer-scrim: rgb(0 0 0 / .53);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-top-bar,
  .app-profile-toggle,
  .app-profile-toggle-icon > span,
  .app-mode-switcher .app-nav-button,
  .app-mode-shape,
  .app-mode-selection,
  .app-mode-copy,
  .app-profile-overlay,
  .app-profile-overlay .app-profile-page,
  .app-mode-track { transition: none; }
}

/* 预留对称的左右栏，模式胶囊在窄屏上仍居中。 */
.app-top-bar:has(> .app-contact-button) {
  --feedback-side-space: clamp(62px, 21vw, 75px);
  grid-template-columns: var(--feedback-side-space) minmax(0, 1fr) var(--feedback-side-space);
}
.app-top-bar > .app-contact-button {
  --feedback-trigger-fill: rgb(206 232 211 / .7);
  --feedback-trigger-line: rgb(252 255 252 / .8);
  --feedback-trigger-ink: #26503a;
  position: relative;
  z-index: 9;
  grid-column: 3;
  justify-self: end;
  min-block-size: 26px;
  padding: 3px 8px;
  border: 1px solid var(--feedback-trigger-line);
  border-radius: 999px;
  background: var(--feedback-trigger-fill);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--feedback-trigger-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.app-top-bar > .app-contact-button:not(:disabled):is(:hover, :active) {
  transform: none;
  background: var(--feedback-trigger-fill);
}
.app-top-bar > .app-contact-button[data-dialog-open] { visibility: hidden; }

.app-feedback-dialog {
  --feedback-ink: #212d33;
  --feedback-muted: #61717a;
  --feedback-line: #dce3e6;
  --feedback-panel: #fefefe;
  --feedback-control: #f4f6f7;
  --feedback-submit: #0867c5;
  --feedback-submit-ink: #fff;
  --feedback-scrim: rgb(32 48 49 / .20);
  --feedback-panel-border: rgb(255 255 255 / .82);
  --feedback-shadow: rgb(26 46 48 / .18);
  --feedback-success: #24714c;
  --feedback-success-fill: #e2f5e9;
  --feedback-error: #9f2a37;
  position: fixed;
  inset: var(--feedback-viewport-top, 0px) auto auto var(--feedback-viewport-left, 0px);
  box-sizing: border-box;
  inline-size: var(--feedback-viewport-width, 100%);
  block-size: var(--feedback-viewport-height, 100%);
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--feedback-ink);
}

.app-feedback-dialog[open] {
  display: grid;
  place-items: center;
}

.app-feedback-dialog::backdrop {
  background: var(--feedback-scrim, rgb(32 48 49 / .20));
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
}
.app-feedback-dialog[data-motion="opening"]::backdrop {
  animation: app-feedback-backdrop 420ms cubic-bezier(.30,.04,.23,1) both;
}
.app-feedback-dialog[data-motion="closing"]::backdrop {
  animation: app-feedback-backdrop 420ms cubic-bezier(.30,.04,.23,1) reverse both;
}
@keyframes app-feedback-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.app-feedback-card {
  position: relative;
  box-sizing: border-box;
  inline-size: min(100%, 335px);
  max-block-size: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--feedback-panel-border);
  border-radius: 26px;
  background: var(--feedback-panel);
  box-shadow: 0 12px 36px var(--feedback-shadow);
  scrollbar-width: thin;
}

.app-feedback-card[data-morphing] {
  position: absolute;
  inset: 0 auto auto 0;
  max-block-size: none;
  overflow: hidden;
  pointer-events: none;
}

.app-feedback-content {
  position: relative;
  box-sizing: border-box;
  padding: 13px 16px 15px;
}
.app-feedback-card[data-morphing] .app-feedback-content {
  inline-size: var(--feedback-content-width);
}
.app-feedback-motion-label { display: none; }
.app-feedback-card[data-morphing] .app-feedback-motion-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #26503a;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.app-feedback-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 6px;
}
.app-feedback-heading h2,
.app-feedback-receipt h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}
.app-feedback-dialog .app-feedback-close,
.app-feedback-dialog .app-feedback-close:not(:disabled):hover {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  min-block-size: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--feedback-control);
  color: var(--feedback-muted);
  -webkit-tap-highlight-color: transparent;
}
.app-feedback-cross {
  position: relative;
  inline-size: 16px;
  block-size: 16px;
  pointer-events: none;
}
.app-feedback-cross::before,
.app-feedback-cross::after {
  content: "";
  position: absolute;
  inset: 7px 1px auto;
  block-size: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.app-feedback-cross::after { transform: rotate(-45deg); }

.app-feedback-form,
.app-feedback-field {
  display: grid;
}
.app-feedback-form { gap: 8px; }
.app-feedback-field {
  gap: 4px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
}
.app-feedback-field small {
  margin-inline-start: 4px;
  color: var(--feedback-muted);
  font-size: 11px;
  font-weight: 400;
}
.app-feedback-field :is(input, textarea) {
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: 34px;
  padding: 6px 10px;
  border: 1px solid var(--feedback-line);
  border-radius: 10px;
  background: var(--feedback-control);
  color: var(--feedback-ink);
  font: 400 16px/1.3 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.app-feedback-field textarea {
  min-block-size: 54px;
  resize: none;
}
.app-feedback-field :is(input, textarea)::placeholder {
  color: var(--feedback-muted);
  opacity: .85;
}
.app-feedback-note,
.app-feedback-error {
  margin: 0 1px;
  color: var(--feedback-muted);
  font-size: 11px;
  line-height: 1.4;
}
.app-feedback-error { color: var(--feedback-error); }

.app-feedback-dialog .app-feedback-submit,
.app-feedback-dialog .app-feedback-submit:not(:disabled):hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  inline-size: 100%;
  min-block-size: 40px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--feedback-submit);
  color: var(--feedback-submit-ink);
  font-size: 14px;
  font-weight: 600;
}
.app-feedback-submit[aria-disabled="true"]::before {
  content: "";
  inline-size: 13px;
  block-size: 13px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: app-feedback-spin 650ms linear infinite;
}
@keyframes app-feedback-spin {
  to { transform: rotate(360deg); }
}

.app-feedback-dialog :is(.app-feedback-form, .app-feedback-receipt, .app-feedback-error)[hidden] {
  display: none;
}
.app-feedback-receipt {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-block-start: 5px;
}
.app-feedback-receipt-mark {
  display: grid;
  place-items: center;
  inline-size: 54px;
  block-size: 54px;
  border-radius: 50%;
  color: var(--feedback-success);
  background: var(--feedback-success-fill);
  animation: app-feedback-confirm 380ms cubic-bezier(.2,.8,.3,1) both;
}
.app-feedback-tick {
  inline-size: 19px;
  block-size: 10px;
  border-inline-start: 3px solid currentColor;
  border-block-end: 3px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
@keyframes app-feedback-confirm {
  from { transform: scale(.72); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.app-feedback-card[data-received] .app-feedback-heading {
  position: absolute;
  inset-block-start: 13px;
  inset-inline-end: 16px;
  z-index: 1;
}
.app-feedback-card[data-received] .app-feedback-heading h2 { display: none; }

@media (pointer: coarse) {
  .app-top-bar > .app-contact-button::after,
  .app-feedback-close::after {
    content: "";
    position: absolute;
    inset: -7px 0;
  }
  .app-feedback-dialog .app-feedback-submit { min-block-size: 44px; }
}

@media (max-width: 350px) {
  .app-top-bar > .app-contact-button {
    padding-inline: 6px;
    font-size: 11px;
  }
  .app-top-bar:has(> .app-contact-button)[data-expanded="false"] .app-nav-button[aria-pressed="true"] .app-mode-copy {
    gap: 3px;
    font-size: 14px;
  }
  .app-top-bar:has(> .app-contact-button)[data-expanded="false"] .app-mode-copy svg {
    flex-basis: 15px;
    inline-size: 15px;
    block-size: 15px;
  }
}

@media (prefers-color-scheme: dark) {
  .app-top-bar > .app-contact-button {
    --feedback-trigger-fill: rgb(52 95 75 / .7);
    --feedback-trigger-line: rgb(143 191 160 / .28);
    --feedback-trigger-ink: #d8efe0;
  }
  .app-feedback-dialog {
    --feedback-ink: #e9eef0;
    --feedback-muted: #b2c0c6;
    --feedback-line: #394449;
    --feedback-panel: #222b32;
    --feedback-control: #2d3841;
    --feedback-submit: #82baff;
    --feedback-submit-ink: #14283b;
    --feedback-panel-border: #3b4a53;
    --feedback-shadow: rgb(0 0 0 / .32);
    --feedback-success: #b5ebca;
    --feedback-success-fill: #284838;
    --feedback-error: #ffacb4;
  }
  .app-feedback-dialog::backdrop { background: rgb(7 13 16 / .45); }
  .app-feedback-card[data-morphing] .app-feedback-motion-label { color: #d8efe0; }
}

@media (prefers-reduced-motion: reduce) {
  .app-feedback-dialog::backdrop,
  .app-feedback-submit[aria-disabled="true"]::before,
  .app-feedback-receipt-mark { animation: none; }
}

/* End the header frost at the top of the first card. */
.app-shell.has-app-navigation {
  --app-card-top-gap: 10px;
  --app-top-glass-fade: var(--app-card-top-gap);
}
.app-shell.has-app-navigation > .app-top-bar::before {
  bottom: calc(-1 * var(--app-top-glass-fade));
  -webkit-mask-image: linear-gradient(#000 calc(100% - var(--app-top-glass-fade)), transparent);
  mask-image: linear-gradient(#000 calc(100% - var(--app-top-glass-fade)), transparent);
}
.app-shell.has-app-navigation > .workspace.material-surface > .media {
  top: var(--app-card-top-gap);
}

/* Give the collapsed label more breathing room within the same header row. */
.app-shell.has-app-navigation {
  --app-compact-pill-scale: .82;
}
.app-top-bar[data-expanded="true"] > .app-contact-button {
  min-block-size: 30px;
  padding-inline: 10px;
}
@media (max-width: 350px) {
  .app-top-bar[data-expanded="true"] > .app-contact-button {
    padding-inline: 8px;
  }
}
