/* Consistent four-stage workspace, documents and conversation. */
.process-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.process-directory .panel{margin:0;display:block}.process-directory h2{font-size:19px}
.context-document,.pdca-context-tools a,.eight-step-buttons a{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:30px;border:1px solid #c7d9df;border-radius:7px;background:#fff;color:#345e68;font-size:17px;text-decoration:none}
.pdca-context-tools{display:flex;gap:6px;align-items:center;float:right}.pdca-context-tools a:first-child{font-size:12px;padding:3px 8px}
.eight-inline-editor .eight-nav{display:flex;position:static;gap:5px;flex-wrap:nowrap;overflow:auto;margin:0;padding:9px;background:#fff;border:1px solid #d6e3e7;border-radius:12px 12px 0 0}.eight-inline-editor .eight-nav>*{flex:1;min-width:100px;text-align:center;padding:10px;border-radius:7px;font-size:12px}.eight-inline-editor .eight-nav>a{background:#f0f4f5;color:#254856;display:flex;align-items:center;justify-content:center}
.pdca-object-hero{min-height:0!important;margin:8px 0 12px!important;padding:14px!important;gap:16px!important}.pdca-object-hero .object-hero-front{width:80px!important;height:80px!important;flex:0 0 80px!important}.pdca-object-hero h1{font-size:23px!important;margin:5px 0!important}.pdca-object-hero p{margin:4px 0;font-size:12px}
.eight-inline-editor{height:var(--available-height,70dvh);min-height:300px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d5e3e6;border-radius:12px;background:#fff}.eight-inline-editor>[data-d-panel]{flex:1;min-height:0}.eight-inline-editor>[data-d-panel][hidden]{display:none}.eight-inline-editor .discipline-editor{height:100%;display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);margin:0}.eight-inline-editor .eight-tracking-band{grid-column:1/-1;padding:10px 14px;margin:0;border:0;border-bottom:1px solid #d5e3e6}.eight-inline-editor .eight-tracking-band legend{font-size:12px;font-weight:700;float:left;width:100%;margin-bottom:6px}.eight-inline-editor .eight-tracking-grid{clear:both;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.eight-inline-editor .eight-tracking-grid label{font-size:10px}.eight-inline-editor .eight-tracking-grid input,.eight-inline-editor .eight-tracking-grid select{padding:7px;min-height:33px;font-size:11px}.eight-inline-editor .eight-tracking-band details{font-size:11px;margin-top:5px}.eight-inline-editor .discipline-dock{position:static;max-height:none;min-height:0;overflow:hidden;padding:14px;grid-column:1;grid-row:2;display:flex;flex-direction:column}.eight-inline-editor .discipline-dock-scroll{flex:1;min-height:0;overflow:auto}.eight-inline-editor .discipline-fields{grid-column:2;grid-row:2;max-height:none;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}.eight-inline-editor .eight-step-shortcut{grid-template-columns:minmax(0,1fr) 24px}.eight-inline-editor .eight-step-shortcut input{grid-column:1/-1}.eight-inline-editor .discipline-step{padding:14px}
.improvement-tools-heading h1{font-size:23px;margin:5px 0 14px}.improvement-tool-nav{display:flex;gap:6px;padding:9px;background:white;border:1px solid #d4e2e6;border-radius:12px 12px 0 0;overflow:auto}.improvement-tool-nav a{padding:9px 14px;white-space:nowrap;color:#315965;background:#eff4f5;border-radius:7px;font-size:12px}.improvement-tool-nav a[aria-current]{background:#24776e;color:white}
.bounded-workspace{height:var(--available-height,65dvh);min-height:240px;border:1px solid #d6e3e6;border-radius:0 0 12px 12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}.bounded-workspace>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#e7f0ed;flex:none}.bounded-workspace h2{font-size:17px;margin:0}.bounded-workspace>header form{display:flex;gap:6px}.bounded-workspace>header input,.bounded-workspace>header select{max-width:200px;font-size:12px}.improvement-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px;background:#eeeae2;background-image:radial-gradient(#a9bca431 .7px,transparent .7px);background-size:12px 12px;display:flex;flex-direction:column;gap:12px}.improvement-bubble{flex:none;max-width:min(78%,650px);background:white;border-radius:10px;box-shadow:0 1px 2px #173c4220;padding:10px 13px;align-self:flex-start}.improvement-bubble.mine{align-self:flex-end;background:#d9f2cb}.improvement-bubble p{margin:6px 0;white-space:normal;overflow-wrap:anywhere}.improvement-bubble small{font-size:10px;color:#557568}.improvement-bubble blockquote{margin:6px 0;padding:8px;border-left:3px solid #579b86;background:#ffffff80;font-size:12px}.improvement-bubble footer{display:flex;gap:9px;align-items:center;justify-content:flex-end;font-size:10px;margin-top:6px}.improvement-bubble footer form{margin:0}.improvement-bubble footer button{font-size:10px;padding:4px 7px}.message-done{text-decoration:line-through;color:#668079}.message-attachment{display:block;padding:9px;background:#ffffff80;border-radius:7px}.reaction-chips{display:flex;gap:4px;font-size:12px}.bubble-reactions{position:relative}.bubble-reactions summary{cursor:pointer;list-style:none;font-size:17px}.bubble-reactions form{position:absolute;right:0;bottom:25px;display:flex;padding:5px!important;border-radius:25px;background:#fff;box-shadow:0 3px 15px #24455233;z-index:3}.bubble-reactions button{font-size:18px!important;background:transparent!important;border:0!important}
.improvement-composer{flex:none;margin:0;padding:10px 14px;background:#f5f7f3;border-top:1px solid #cdded5;max-height:48%;overflow:auto}.composer-body{display:flex;gap:10px;align-items:center}.composer-body textarea{flex:1;min-height:44px;resize:vertical}.improvement-composer details{font-size:12px;margin-top:6px}.composer-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:8px}.composer-options label{font-size:11px}.composer-options input,.composer-options select{width:100%;min-width:0}.tool-footer{margin:0;padding:10px 15px;font-size:11px;border-top:1px solid #d8e3e5;color:#647c83;flex:none}
.improvement-files{display:grid;grid-template-columns:230px minmax(0,1fr);flex:1;min-height:0}.improvement-files>aside{padding:12px;background:#f0f4f6;overflow:auto;border-right:1px solid #d6e3e6}.improvement-files>aside>a{display:block;padding:9px}.improvement-file-list{overflow:auto;padding:14px;min-width:0}.improvement-file-list>form{display:flex;gap:8px;margin-bottom:12px}.tool-document{display:flex;align-items:center;justify-content:space-between;padding:14px 4px;border-bottom:1px solid #e0e8eb;gap:10px}.tool-document strong{overflow-wrap:anywhere}.tool-document small{display:block;font-size:11px;margin-top:4px}.tool-document details{position:relative}.tool-document details form{position:absolute;right:0;top:25px;width:260px;z-index:5;background:white;padding:15px;border:1px solid #c9dadf;border-radius:8px;box-shadow:0 5px 20px #24455222}.tool-document button{margin:5px 0}
/* Ratio is constant. Only the image flexes; labels and footer never shrink out of view. */
.remax-theme .event-tcg.presq-event{box-sizing:border-box;aspect-ratio:63/88;height:auto;min-height:0;transform:perspective(1000px) rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg))}.remax-theme .event-tcg.presq-event>a{box-sizing:border-box;height:100%;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;padding:9px;gap:4px}.remax-theme .event-tcg.presq-event>a>*{flex-shrink:0;margin-top:0;margin-bottom:0}.remax-theme .event-tcg.presq-event .event-card-art{flex:1 1 0;min-height:65px}.remax-theme .event-tcg.presq-event .eyebrow{display:block;min-height:14px}.remax-theme .event-tcg.presq-event .event-rating{font-size:9px;line-height:15px;padding:3px 6px}.remax-theme .event-tcg.presq-event h3{font-size:14px;line-height:18px;height:36px}.remax-theme .event-tcg.presq-event .event-card-counts{margin-top:0;padding-top:4px;font-size:9px;line-height:14px}.remax-theme .event-tcg.presq-event small{line-height:13px;font-size:9px}.event-card-art:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(var(--foil-angle,120deg),transparent 25%,#ffffff66 48%,transparent 68%);opacity:.25}.event-tcg:hover .event-card-art:after{opacity:.55}.finding-eight{grid-template-columns:repeat(4,1fr)!important}.finding-tcg .finding-card-copy>h3{font-size:15px;line-height:19px;max-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.finding-tcg .finding-card-copy>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
[data-affair-workspace] .focus-inline,[data-affair-workspace] .v02-chat-expanded .conversation-panel,[data-affair-workspace] .affair-files{height:var(--available-height,65dvh)!important;min-height:260px!important;max-height:none!important}
@media(max-width:760px){.eight-inline-editor .discipline-editor{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr)}.eight-inline-editor .discipline-dock{grid-column:1;grid-row:3;pointer-events:none;justify-content:flex-end;z-index:3;padding:0 12px 9px}.eight-inline-editor .discipline-dock-scroll,.eight-inline-editor .eight-save-state{display:none}.eight-inline-editor .discipline-save{pointer-events:auto;margin:0}.eight-inline-editor .discipline-fields{grid-column:1;grid-row:3;padding-bottom:65px}.eight-inline-editor .eight-tracking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.eight-inline-editor .eight-nav>*{min-width:80px;font-size:11px;padding:8px}.eight-inline-editor .eight-tracking-band{grid-row:1}.composer-options{grid-template-columns:1fr 1fr}.improvement-files{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.improvement-files>aside{max-height:90px;display:flex;gap:6px;overflow:auto}.improvement-files>aside>a{white-space:nowrap}.bounded-workspace>header{flex-wrap:wrap}.bounded-workspace>header form{width:100%}.bounded-workspace>header input,.bounded-workspace>header select{min-width:0;width:33%}.improvement-bubble{max-width:92%}.pdca-object-hero .object-hero-front{display:none}.pdca-context-tools{float:none;clear:both}.improvement-tools-heading h1{font-size:19px}}
@media(prefers-reduced-motion:reduce){.remax-theme .event-tcg.presq-event{transform:none!important}.event-card-art:after{display:none}}
@media print{.record-page button,.record-page>a,.sidebar,.workspace-header,.preview-notice{display:none!important}.record-page{color:#000}body.app-shell{display:block}#main-content{margin:0;padding:0}.record-page h3{break-after:avoid}}

/* Override the older grid's start alignment so both panes fit their row. */
.eight-inline-editor .discipline-editor{align-items:stretch;gap:0}
.eight-inline-editor .discipline-dock,.eight-inline-editor .discipline-fields{height:100%;box-sizing:border-box;align-self:stretch}
.eight-inline-editor .eight-nav{flex:none;padding:6px;align-items:stretch}
.eight-inline-editor .eight-nav>*{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px}
.eight-inline-editor .eight-tracking-band legend{width:auto;float:left;margin:0 0 5px}
.eight-inline-editor .pdca-context-tools{margin-top:-3px;margin-bottom:4px}
.eight-inline-editor .eight-tracking-band{padding:8px 12px}
.eight-inline-editor .eight-step-shortcut button[data-jump-step] span{margin-right:5px}
.pdca-object-hero .object-hero-front .finding-type-face{min-height:0;width:100%;height:100%;gap:3px}
.pdca-object-hero .object-hero-front .finding-type-code{font-size:22px!important;letter-spacing:-.04em}
.pdca-object-hero .object-hero-front .finding-type-label{font-size:8px}
.pdca-object-hero .object-hero-front .finding-type-axes{display:none}
.jalon-status-control>.context-tool{float:right;display:inline-flex;width:30px;height:32px;padding:5px;border:1px solid #bacdcd;border-radius:7px;background:#fff}
@media(max-width:760px){.eight-inline-editor .discipline-editor{grid-template-rows:auto minmax(0,1fr)}.eight-inline-editor .discipline-dock,.eight-inline-editor .discipline-fields{grid-row:2}.eight-inline-editor .pdca-context-tools{float:right;clear:none}.eight-inline-editor .eight-nav>*{min-width:95px}}

.improvement-tool-nav a{flex:1;text-align:center;min-width:95px;padding:14px 8px}

.improvement-files .is-drop-target{background:#d2ebe4;outline:2px dashed #287e70}.tool-document.is-dragging{opacity:.5}.tool-document[draggable=true]{cursor:grab}

.eight-inline-editor .eight-nav{order:0}
@media(max-width:760px){.eight-inline-editor .discipline-dock{background:transparent!important;border:0!important}.eight-inline-editor .discipline-save{box-shadow:0 -5px 10px #fff}.eight-inline-editor .step-heading{flex-wrap:wrap;gap:8px}.eight-inline-editor .step-heading h3{width:100%;font-size:14px}.eight-inline-editor .eight-step-buttons{flex-wrap:wrap}.eight-inline-editor .canonical-field{padding:13px}}

.jalon-status-buttons>.context-tool{display:inline-flex;align-items:center;justify-content:center;width:30px;height:32px;border:1px solid #bacdcd;border-radius:7px;background:#fff;padding:5px}.focus-step-switches>.context-document{height:34px;width:34px;flex:none;padding:6px}

/* Shared compact composer: one input row, expanding only for useful context. */
#main-content .conversation-compose{display:flex;flex-direction:column;gap:6px;padding:8px 12px;align-items:stretch}
#main-content .conversation-compose .chat-compose-toolbar{min-height:28px;margin:0;gap:8px;flex-wrap:nowrap}
#main-content .conversation-compose .chat-compose-toolbar select{min-height:28px;height:28px;padding:2px 8px;font-size:12px}
#main-content .conversation-compose .chat-compose-entry{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:8px;align-items:end;min-width:0}
#main-content .chat-compose-entry>.chat-attachment{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin:0;height:42px}
#main-content .chat-compose-entry .chat-attach-label{display:grid;place-items:center;width:36px;height:40px;padding:0;font-size:26px;border-radius:50%;color:#39745c;line-height:1}
#main-content .chat-compose-entry .chat-attach-label:hover{background:#e1eae4}
#main-content .chat-compose-entry>[data-guide-stage]{grid-column:2;grid-row:1;min-width:0;margin:0}
#main-content .chat-compose-entry textarea{height:42px;min-height:42px!important;max-height:112px;resize:none;line-height:20px;padding:10px 12px;font-size:14px;overflow-y:auto}
#main-content .chat-compose-entry>.chat-guide-controls{grid-column:3;grid-row:1;gap:6px;align-self:end;min-height:42px;margin:0}
#main-content .chat-compose-entry .chat-send{width:38px;height:38px;display:grid;place-items:center;line-height:1;border-radius:50%;padding:0}
#main-content .conversation-compose.is-guided .chat-compose-entry:has(.chat-attachment[hidden]){grid-template-columns:minmax(0,1fr) auto}
#main-content .conversation-compose.is-guided .chat-compose-entry:has(.chat-attachment[hidden])>[data-guide-stage]{grid-column:1}
#main-content .conversation-compose.is-guided .chat-compose-entry:has(.chat-attachment[hidden])>.chat-guide-controls{grid-column:2}
#main-content .conversation-compose.has-guide-errors .chat-compose-entry{display:flex;flex-wrap:wrap}
#main-content .conversation-compose.has-guide-errors [data-guide-stage]{flex:1 1 100%}
#main-content .conversation-compose .chat-compose-help{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
#main-content .conversation-compose .chat-media-preview{margin:0;max-height:72px;overflow:auto}
#main-content .conversation-compose .chat-reply-preview{max-height:68px;overflow:auto}
@media(max-width:600px){#main-content .conversation-compose{padding:6px 8px}#main-content .conversation-compose .chat-compose-toolbar select{font-size:16px;height:30px}#main-content .chat-compose-entry textarea{font-size:16px}#main-content .conversation-compose.is-guided .chat-compose-entry{grid-template-columns:32px minmax(0,1fr)}#main-content .conversation-compose.is-guided .chat-compose-entry>.chat-guide-controls{grid-row:2;grid-column:1/-1;justify-self:end}#main-content .conversation-compose.is-guided .chat-compose-entry:has(.chat-attachment[hidden])>.chat-guide-controls{grid-column:1/-1}}

[data-affair-workspace] .focus-inline{height:max(var(--available-height,65dvh),var(--sidebar-height,580px))!important}
.focus-inline .focus-preview-content{overflow:visible;flex:none;min-height:max-content}
.focus-inline .focus-preview{overflow:visible}.focus-inline .focus-save-dock{margin-top:10px}
.step-auto-status{font-size:10px;padding:6px;color:var(--ambience-ink,#335d70)}
.focus-business-details{border-top:0!important;padding-top:0!important}

/* Keep the short outline and save together, without a nested scrollbar. */
.focus-inline .focus-preview{padding:12px 14px}
.focus-inline .focus-preview-content{max-height:none;padding-bottom:0}
.focus-inline .affair-base-heading{font-size:14px;margin:0 0 6px}
.focus-inline .affair-base-fields p{margin:0 0 7px}
.focus-inline .affair-base-fields :is(input,select){height:33px;min-height:33px;padding:5px 8px;font-size:12px}
.focus-inline .step-outline{margin-top:8px;padding-top:8px}
.focus-inline .step-outline-row{margin:3px 0;padding:2px}
.focus-inline .focus-save-dock{padding-top:8px;margin-top:6px;gap:5px}
.focus-inline .focus-save-dock [data-focus-save]{padding:8px 12px;min-height:34px}
