/* Gallery-only adapter for the canonical Calendar sections and approval dock. */
.gallery-calendar-legacy{display:none!important}
body.gallery-calendar-page main.gallery-main{margin-left:83px!important;width:calc(100% - 83px)!important;background:#fff;overflow:visible!important}
body.gallery-calendar-page main.gallery-main .gallery-shell{--gallery-workspace-gutter:clamp(38px,5vw,76px);max-width:1440px;width:100%;padding:0 var(--gallery-workspace-gutter) 52px;margin:auto;box-sizing:border-box}
.gallery-heading{display:none}
body.gallery-calendar-page .gallery-calendar-layout.calendar-redesign-sections12{--workspace-gutter:var(--gallery-workspace-gutter);width:calc(100% + 2 * var(--gallery-workspace-gutter));margin-left:calc(-1 * var(--gallery-workspace-gutter));max-width:none;overflow:visible}
.gallery-calendar-layout .proposal-section{padding-top:22px}
.gallery-calendar-layout .briefing-hero{min-width:0}
.gallery-calendar-layout .hero-copy h1{font-size:34px;line-height:38px;letter-spacing:-.05em;font-weight:600;margin:0}
.gallery-calendar-layout .hero-copy h1 em{color:#276df5;font-style:normal}
.gallery-calendar-layout .intelligence-panel{min-width:0}
.gallery-calendar-layout .intelligence-panel li{opacity:1;animation:none}
.gallery-calendar-layout .intelligence-panel li>div{min-width:0}
.gallery-calendar-layout .intelligence-panel li button{white-space:nowrap}
.gallery-calendar-layout .insight-section{margin-left:var(--workspace-gutter);margin-right:var(--workspace-gutter)}
.gallery-calendar-layout .insight-card-back{overflow:auto}
.gallery-calendar-layout .insight-card-back>footer button:disabled{opacity:.5}
.gallery-calendar-layout .insight-card-copy h3{overflow-wrap:anywhere}
.gallery-calendar-layout .gallery-evidence-note{font-size:11px;color:#697482;line-height:18px;margin-top:16px}
.gallery-calendar-layout .gallery-review-all{border:1px solid #d9dfe9;border-radius:18px;padding:9px 14px;font-size:11px;margin-top:20px;align-self:flex-start;background:#fff}
.gallery-calendar-agent .calendar-agent-dock{z-index:90}
.gallery-calendar-agent .calendar-agent-launcher{z-index:85}
.gallery-calendar-agent .agent-action-bullets{margin-left:0}
.gallery-calendar-agent .agent-followup-prompts{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}
.gallery-calendar-agent .agent-followup-prompts button{border:1px solid #e1e5ed;border-radius:16px;padding:7px 10px;font-size:10px;color:#46628d}
.gallery-calendar-agent .gallery-agent-scope{font-size:10px;line-height:16px;color:#687385;margin:10px 0}
.gallery-calendar-agent .agent-chat-prompt{margin-bottom:15px;overflow-wrap:anywhere}
.gallery-calendar-agent .agent-error{overflow-wrap:anywhere}
.gallery-calendar-agent .agent-compact-action .agent-bullet-trigger{grid-template-columns:26px minmax(0,1fr)}
@media(min-width:1101px){body.gallery-calendar-page.gallery-agent-open main.gallery-main{width:calc(100% - 83px - 430px)!important}body.gallery-calendar-page.gallery-agent-open main.gallery-main .gallery-shell{--gallery-workspace-gutter:clamp(24px,3vw,48px)}body.gallery-calendar-page.gallery-agent-open.gallery-agent-collapsed main.gallery-main{width:calc(100% - 83px - 70px)!important}body.gallery-calendar-page.gallery-agent-open.gallery-agent-collapsed main.gallery-main .gallery-shell{--gallery-workspace-gutter:clamp(38px,5vw,76px)}body.gallery-agent-open:not(.gallery-agent-collapsed) .gallery-calendar-layout .briefing-redesign{grid-template-columns:1fr}body.gallery-agent-open:not(.gallery-agent-collapsed) .gallery-calendar-layout .briefing-hero{border-right:0;border-bottom:1px solid #d9dce2}}
@media(min-width:651px) and (max-width:900px){body.gallery-calendar-page main.gallery-main .gallery-shell{--gallery-workspace-gutter:28px}}
@media(max-width:760px){body.gallery-calendar-page main.gallery-main{margin-left:0!important;width:100%!important}.gallery-calendar-layout .briefing-redesign{grid-template-columns:1fr}.gallery-calendar-layout .briefing-hero{border-right:0;min-height:430px}.gallery-calendar-layout .intelligence-panel{padding:28px 20px;min-height:0}.gallery-calendar-layout .intelligence-panel li{min-height:115px;padding:14px 0;grid-template-columns:28px minmax(0,1fr);gap:10px}.gallery-calendar-layout .intelligence-panel li button{grid-column:2;margin-top:0;min-height:40px;width:max-content}.gallery-calendar-layout .hero-copy h1{font-size:29px;line-height:33px}.gallery-calendar-layout .insight-section{margin:0 var(--workspace-gutter)}.gallery-calendar-agent .calendar-agent-dock{width:calc(100vw - 20px);max-width:430px;right:10px;top:10px;bottom:10px;height:calc(100dvh - 20px)}.gallery-calendar-agent .calendar-agent-dock.collapsed{width:70px}.gallery-calendar-agent .calendar-agent-launcher{bottom:40px;right:15px}}
@media(max-width:650px){body.gallery-calendar-page main.gallery-main .gallery-shell{--gallery-workspace-gutter:18px}.gallery-calendar-layout .insight-section-heading h2{font-size:24px;line-height:29px}.gallery-calendar-layout .insight-section-heading{padding-left:18px}.gallery-calendar-layout .insight-rail{padding-left:18px}.gallery-calendar-layout .insight-section-note{padding-left:18px}.gallery-calendar-layout .metric-card>span{white-space:normal}.gallery-calendar-layout .signal-count{display:none}}
@media(prefers-reduced-motion:reduce){.gallery-calendar-layout *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Match page gutters for retained Gallery sections as well as the new briefing. */
body.gallery-calendar-page .gallery-shell>:is(.gallery-story-strip,.gallery-top-five,.gallery-questions,.gallery-workspace){margin-left:0!important;margin-right:0!important;width:100%;max-width:none}
body.gallery-calendar-page .gallery-calendar-layout .intelligence-panel li.priority>button,
body.gallery-calendar-page .gallery-calendar-layout .intelligence-panel li.priority>button span,
body.gallery-calendar-page .gallery-calendar-layout .intelligence-panel li.priority .action-number{color:#fff!important}
.gallery-calendar-agent .agent-header-actions{display:flex;align-items:center;gap:4px}
.gallery-calendar-agent .agent-header-actions button{flex:none}
@media(max-width:760px){body.gallery-calendar-page .gallery-shell>:is(.gallery-story-strip,.gallery-top-five,.gallery-questions,.gallery-workspace){margin-left:0!important;margin-right:0!important;width:100%}.gallery-calendar-agent .calendar-agent-dock>header{grid-template-columns:32px minmax(0,1fr) auto;gap:7px;padding:12px}.gallery-calendar-agent .agent-header-actions button{width:27px;height:27px}.gallery-calendar-agent .calendar-agent-dock>header strong{font-size:12px}}
.gallery-calendar-agent .calendar-agent-dock .agent-inline-actions :is([data-gallery-approve],[data-gallery-reject]){width:28px;min-width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f0f5ff;color:#3478ee;box-shadow:none;font-size:14px;line-height:1}
.gallery-calendar-agent .calendar-agent-dock .agent-inline-actions [data-gallery-reject]{background:#f2f3f5;color:#717680}
body.gallery-agent-open>span[style*="position:fixed"]{display:none}
body.gallery-calendar-page .gallery-calendar-layout .proposal-section{padding-left:var(--workspace-gutter);padding-right:var(--workspace-gutter)}
@media(max-width:760px){body.gallery-calendar-page .gallery-heading{display:block;height:58px;min-height:58px}.gallery-heading .mobile-menu{display:grid!important;position:relative;top:10px}}
/* Calendar's current two-column QA, preserving the Gallery workspace gutters. */
body.gallery-calendar-page .gallery-calendar-questions.calendar-redesign-sections12{--workspace-gutter:var(--gallery-workspace-gutter);width:calc(100% + 2 * var(--gallery-workspace-gutter));max-width:none;margin-left:calc(-1 * var(--gallery-workspace-gutter));overflow:visible}
body.gallery-calendar-page .gallery-calendar-questions .calendar-qa-section{padding-left:var(--workspace-gutter);padding-right:var(--workspace-gutter)}
.gallery-calendar-questions .gallery-qa-record-actions a{display:inline-flex;margin-top:12px;padding:7px 12px;border-radius:18px;background:#171719;color:#fff;font-size:10px;line-height:16px;text-decoration:none}
.gallery-calendar-questions .qa-follow-up>small{line-height:16px;font-size:9px}
.gallery-calendar-questions .qa-context-status{flex-wrap:wrap}
@media(min-width:1101px) and (max-width:1565px){body.gallery-agent-open:not(.gallery-agent-collapsed) .gallery-calendar-questions .calendar-qa-shell{grid-template-columns:1fr}body.gallery-agent-open:not(.gallery-agent-collapsed) .gallery-calendar-questions .qa-context-panel,body.gallery-agent-open:not(.gallery-agent-collapsed) .gallery-calendar-questions .qa-context-content{min-height:520px}}
.gallery-calendar-layout .metric-card .metric-action-hint{font-size:10px;line-height:16px;color:#1769f5;white-space:normal;padding-top:9px;margin-top:auto}
.gallery-calendar-layout .metric-card:disabled{cursor:default;opacity:.6}
.gallery-metric-scope{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding:12px 14px;background:#edf3ff;border:1px solid #d5e3fb;border-radius:10px;color:#244d8b;font-size:12px;line-height:18px}
.gallery-metric-scope[hidden]{display:none}
.gallery-metric-scope button{flex:none;border:1px solid #b9cceb;border-radius:16px;padding:6px 10px;background:#fff;color:#244d8b;font:inherit;cursor:pointer}
#gallery-browse{scroll-margin-top:24px}
#gallery-story-title:focus-visible{outline:2px solid #1769f5;outline-offset:6px}
@media(max-width:650px){.gallery-metric-scope{align-items:flex-start;flex-direction:column;font-size:11px}.gallery-calendar-layout .metric-card .metric-action-hint{font-size:9px;line-height:14px}}
/* Canonical Calendar has a fixed icon rail, not an expandable blue sidebar. */
body.gallery-calendar-page .gallery-heading{display:none!important}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation{top:22px;bottom:22px;left:22px;width:61px}
@media(max-width:900px){body.gallery-calendar-page .gallery-calendar-agent .primary-navigation{top:10px;bottom:10px;left:10px}}
@media(max-width:650px){body.gallery-calendar-page .gallery-calendar-agent .primary-navigation{display:none}}
@media(min-width:651px) and (max-width:900px){body.gallery-calendar-page main.gallery-main{margin-left:71px!important;width:calc(100% - 71px)!important}}
/* Tasks-reference top section only. Calendar AI/session and every lower section retain their behavior. */
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section{--gallery-top-font:-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",sans-serif;padding-bottom:16px}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section,
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section *{font-family:var(--gallery-top-font)!important;font-size:14px!important;line-height:1.45!important}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .briefing-redesign,
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .briefing-hero{min-height:532px}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .briefing-hero{padding:24px 44px 23px}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .hero-copy h1,
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .hero-copy h1 em{font-size:28px!important;line-height:1.15!important;font-weight:600;letter-spacing:-.05em}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .hero-summary{margin-top:12px;font-weight:400}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .motion-visual,
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .motion-visual video{width:272px;height:204px}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .briefing-date{font-weight:600}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card{padding:12px;min-height:148px;gap:4px;font-weight:500}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card>strong{font-size:28px!important;line-height:1.15!important;font-weight:700;letter-spacing:-.04em}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card>span{white-space:normal;font-weight:600;overflow-wrap:anywhere}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card small{display:flex;flex-wrap:nowrap;align-items:baseline;gap:5px;margin-top:3px;font-weight:500}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card small i{width:5px;height:5px;border-radius:50%;flex:none;background:#4e82ef}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card.attention small i{background:#e37a65}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card.available small i{background:#45ad83}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-action-hint{padding-top:7px;margin-top:auto;white-space:normal!important;color:#1769f5;font-weight:600}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .intelligence-title h3{font-size:18px!important;line-height:1.25!important;font-weight:600;letter-spacing:-.035em}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .intelligence-title small{font-weight:700;color:#171719}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .signal-count{font-weight:400;white-space:nowrap}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .signal-count.has-issues i{background:#c77c20;box-shadow:0 0 0 4px #c77c2012}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .intelligence-panel ol{margin:0;padding:0;list-style:none}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row{display:flex;align-items:flex-start;gap:10px;padding:12px 0;min-height:0;background:transparent;border-radius:0;margin:0;border-bottom:1px solid #e6e9ee}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row>div{min-width:0;flex:1}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row strong{font-weight:600;letter-spacing:0;display:block}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row p{margin:4px 0 6px;color:#171719;font-weight:400}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row button{display:inline-flex;position:static;width:auto;min-width:0;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:#171719;white-space:normal;text-align:left;font-weight:600}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row button span{font-weight:600}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row :is(.action-impact,.action-reasoning){display:none}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-marker{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#edf3ff;color:#3478ee}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-marker.overdue{background:#fff0f0;color:#bd4141}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-marker.approval{background:#f6f0e4;color:#956513}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-marker svg{width:18px;height:18px}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-review-all{margin-top:10px;padding:0;border:0;border-radius:0;background:none;color:#171719;font-weight:600}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-top-evidence-note{margin:12px 0 0;color:#697482!important;font-size:11px!important;line-height:16px!important}
@media(max-width:900px){body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .briefing-redesign{grid-template-columns:1fr}body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .briefing-hero{border-right:0;border-bottom:1px solid #e5e6e9}}
@media(max-width:760px){body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .briefing-hero{min-height:500px}body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card{padding:10px 8px;min-height:164px}body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .signal-count{display:none}}
@media(max-width:650px){body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .briefing-hero{padding:26px 23px}body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-row{gap:9px}body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .intelligence-panel{padding:31px 22px 25px}}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-marker.overdue{color:#bd4141!important}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-marker.approval{color:#956513!important}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-marker.draft{color:#3478ee!important}
/* Keep Calendar's existing warm orb palette as a static fallback when motion/media is unavailable. */
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .motion-visual.gallery-motion-fallback{position:relative}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .motion-visual.gallery-motion-fallback video{visibility:hidden}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .motion-visual.gallery-motion-fallback::after{content:"";display:block;position:absolute;top:50%;left:50%;width:128px;height:128px;aspect-ratio:1;transform:translate(-50%,-50%);border:1px solid #ffd7ba;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#f7d8dd 55%,#ffbd65);box-shadow:0 15px 45px #d98b6621;opacity:1}
/* Founder-approved compact metrics: number, label and action only. */
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card{min-height:120px}
@media(max-width:760px){body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .metric-card{min-height:120px}}
/* Founder release review: make priority review actions easy to find. */
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row button,
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row button span,
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-review-all{color:#1769f5!important}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row button:hover,
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-review-all:hover{text-decoration:underline;text-underline-offset:3px}
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-priority-row button:focus-visible,
body.gallery-calendar-page .gallery-calendar-layout>.proposal-section .gallery-review-all:focus-visible{outline:2px solid #1769f5;outline-offset:4px;border-radius:3px}
/* Preserve shared native account behavior inside Calendar's compact rail. */
body.gallery-calendar-page>.sidebar{display:none!important}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation>.account-control{position:relative;margin-top:auto;flex:none;width:43px!important}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account{display:grid;place-items:center;width:43px;height:43px;margin:0;padding:6px;border:0;border-radius:12px;background:transparent;color:#fff;cursor:pointer}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account>span:first-child{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#fff3;color:#fff;font-size:13px;font-weight:400}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account>span+span{display:none}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account:hover{background:#ffffff12}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account:focus-visible{outline:2px solid #fff;outline-offset:2px}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account-menu{left:calc(100% + 12px);right:auto;bottom:0;width:230px;max-width:calc(100vw - 100px);max-height:calc(100dvh - 36px);overflow:auto;z-index:95}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account-menu :is(a,button){width:100%;display:grid;grid-template-columns:25px minmax(0,1fr);padding:9px;min-height:0;height:auto;background:transparent;color:#252734;border-radius:10px;text-align:left;white-space:normal}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account-menu :is(a,button):hover{background:#f3f4f8}
body.gallery-calendar-page .gallery-calendar-agent .primary-navigation .account-menu .logout{color:#b42318}
/* Founder heading consistency: align Browse and Top 5 with section-two heading. */
body.gallery-calendar-page .gallery-shell :is(#gallery-story-title,.gallery-top-five>header h2){font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Arial,sans-serif;font-size:24px;line-height:29px;font-weight:600;letter-spacing:-.04em;color:#171719}
/* Founder-supplied Gallery section-two editorial artwork; retain clear white copy on bright imagery. */
.gallery-calendar-layout .gallery-editorial-card .insight-card-front>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:none}
.gallery-calendar-layout .gallery-editorial-card:not(.flipped):hover .insight-card-front>img{filter:none}
.gallery-calendar-layout .gallery-editorial-card .insight-card-shade{display:block;background:linear-gradient(180deg,rgba(9,10,13,.76) 0%,rgba(17,18,23,.18) 52%,rgba(16,17,21,.76) 100%)}
.gallery-calendar-layout .gallery-editorial-card .insight-card-copy,
.gallery-calendar-layout .gallery-editorial-card .insight-card-copy h3,
.gallery-calendar-layout .gallery-editorial-card .insight-card-meta>span,
.gallery-calendar-layout .gallery-editorial-card .insight-front-action>div{color:#fff}
