/* Chapter six follows one change from the signed source to the agent’s decision. */
.role-story #chapter-6 {
  position:relative; isolation:isolate; background:#27312d;
}
.role-story #chapter-6 .journey-inner {
  display:grid; width:min(91%,1320px); grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(30px,6vw,115px); align-items:center; min-height:min(740px,87vh);
  padding-block:clamp(54px,6vw,98px);
}
.role-story #chapter-6 .scroll-tour-track[data-tour-guided] > .journey-inner {
  position:sticky;
}
.role-story #chapter-6 .journey-terrace::after {
  background:linear-gradient(90deg,#142019ec 0%,#19251ee2 26%,#17271ec0 46%,#17251e58 70%,#131c164d);
}
.role-story #chapter-6 .journey-copy { max-width:490px; }
.role-story #chapter-6 .journey-copy h2 { max-width:14ch; color:#fff8eb; text-wrap:balance; }
.role-story #chapter-6 .journey-copy h2 em { color:#f1d7b3; }
.role-story #chapter-6 .role-label { color:#efe0c7; }
.role-story #chapter-6 .journey-copy>p:not(.role-label) { color:#f3ece1; max-width:43ch; }
.role-story #chapter-6 .role-file-link { color:#fff4df; }
.role-story #chapter-6 .journey-product { justify-self:center; width:100%; max-width:680px; margin:0; padding:0; }
.role-story #chapter-6 .jd-date-strip {
  display:flex; margin:24px 0 12px; padding:14px 0; width:min(100%,380px); border-block:1px solid #d3c4b061;
}
.jd-date-strip div { min-width:0; padding-right:clamp(10px,3vw,48px); }
.jd-date-strip div+div { border-left:1px solid #d3c4b061; padding-left:clamp(10px,3vw,48px); }
.jd-date-strip dt { color:#f2e7d7; font:500 11px/1.45 Inter,Arial,sans-serif; }
.jd-date-strip dd { color:#fff7e8; margin:3px 0 0; font:400 24px/1.15 Ivar,Georgia,serif; }

[data-duo-decision] { text-shadow:none; }
[data-duo-decision] .duo-stops { width:fit-content; padding:2px 15px; background:#111d17ed; border:1px solid #e8e4c83b; border-radius:7px; }
[data-duo-decision] .duo-stops button { color:#dfdfd1; }
[data-duo-decision] .duo-stops [aria-pressed="true"] { border-color:#e2cdaa; color:#fff8df; }
[data-duo-decision] .jd-cover-button {
  display:block; margin-top:4px; padding:6px 0; color:#fdf3d9; border:0; background:none;
  font:550 12px/1.35 Inter,Arial,sans-serif; text-align:left; text-decoration:underline;
  text-underline-offset:3px; cursor:pointer;
}
[data-duo-decision] .duo-cover-copy { margin:3px 0 8px; gap:3px; }
[data-duo-decision] .duo-cover-copy img { width:20px; height:18px; margin:0 0 3px; }
[data-duo-decision] .duo-cover-copy .duo-kicker { font-size:9px; }
[data-duo-decision] .duo-cover-copy strong { font-size:clamp(23px,4.4cqw,31px); }
[data-duo-decision] .duo-notification { padding:8px; border-radius:9px; }
[data-duo-decision] .duo-notification .duo-kicker { display:block; font-size:8px; line-height:1.3; }
[data-duo-decision] .duo-notification b { margin:3px 0; font-size:clamp(17px,3.3cqw,22px); line-height:1.08; }
[data-duo-decision] .duo-notification p { margin:0; color:#f4eee1; font:400 11.5px/1.36 Inter,Arial,sans-serif; }
[data-duo-decision] .duo-cover .jd-cover-button { padding:5px 0; min-height:32px; margin:0; font-size:11px; }
[data-duo-decision] button:focus-visible { outline:2px solid #8d724f; outline-offset:2px; }
[data-duo-decision] :is(.duo-cover,.duo-stops) button:focus-visible { outline-color:#ead7a8; }
[data-duo-decision] #jd-approved-copy {
  margin:5px 0 0; font:italic 12px/1.3 Georgia,serif; color:#e0d9c9;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
[data-duo-decision] .jd-evidence { position:relative; justify-content:center; gap:0; text-align:left; }
[data-duo-decision] .jd-sheet-label {
  display:flex; align-items:center; gap:7px; color:#605a4c; font:550 11px/1.35 Inter,Arial,sans-serif;
}
.jd-sheet-label i { font:400 18px/1 Georgia,serif; color:#7a674c; }
.jd-sheet-label img { width:19px; height:17px; filter:brightness(.5); }
.jd-sheet-label em { margin-left:auto; color:#736651; font:italic 13px/1 Georgia,serif; }
[data-duo-decision] .jd-evidence h3 { margin:22px 0 5px; font:400 clamp(27px,5.5cqw,36px)/1.04 Ivar,Georgia,serif; }
[data-duo-decision] .jd-doc-property { color:#73674f; font:italic 15px/1.35 Ivar,Georgia,serif; }
.jd-doc-dates { margin:20px 0 15px; }
.jd-doc-dates div { display:flex; align-items:baseline; justify-content:space-between; gap:6px; padding:10px 0; border-block-start:1px solid #c6bba8; }
.jd-doc-dates dt,.jd-signed { font:500 12px/1.4 Inter,Arial,sans-serif; color:#665e50; }
.jd-doc-dates dd { margin:0; color:#38382d; font:400 24px/1 Ivar,Georgia,serif; }
.jd-doc-dates div:first-child dd { font-size:20px; color:#786b57; }
.jd-signed { color:#4e5c47; }
.jd-source-link {
  width:fit-content; padding:5px 0; margin-top:9px; min-height:36px; color:#604c34;
  border:none; background:none; cursor:pointer; text-align:left; text-decoration:underline;
  text-underline-offset:3px; font:550 12px/1.35 Inter,Arial,sans-serif;
}
[data-duo-decision] .jd-work { min-height:0; color:#342e26; text-align:left; justify-content:center; }
[data-duo-decision] .jd-work h3 { margin:16px 0 9px; font:400 clamp(26px,5.15cqw,34px)/1.02 Ivar,Georgia,serif; }
[data-duo-decision] .jd-reason { color:#554f45; font:400 13px/1.45 Inter,Arial,sans-serif; }
.jd-choice { margin-top:16px; padding:10px; border:1px solid #c9c0ad; border-radius:8px; background:#f9f4e9; }
.jd-choice em { color:#73644c; font:italic 13px/1.2 Ivar,Georgia,serif; }
.jd-choice button,.jd-confirm,.jd-options button {
  cursor:pointer; appearance:none; border:0; background:transparent; color:#3c3c30;
  font:500 13px/1.3 Inter,Arial,sans-serif; text-align:left;
}
.jd-choice button,.jd-confirm { display:flex; align-items:center; gap:6px; justify-content:space-between; width:100%; min-height:32px; }
.jd-choice button span,.jd-confirm span { flex:none; }
.jd-options { display:flex; gap:14px; }
.jd-options button { padding:0; min-height:40px; font-size:11px; text-decoration:underline; text-underline-offset:3px; }
#jd-editor { min-height:0; display:flex; flex-direction:column; gap:9px; }
#jd-editor label { display:block; color:#333026; margin:15px 0 0; font:400 26px/1 Ivar,Georgia,serif; }
#jd-editor label small { display:block; margin:6px 0 0; font:400 11px/1.4 Inter,Arial,sans-serif; color:#655c4d; }
#jd-editor textarea {
  display:block; box-sizing:border-box; padding:9px 11px; width:100%; min-height:64px; resize:none; border:1px solid #a69e8f;
  background:#fcf9f2; border-radius:8px; color:#2b2924; font:400 15px/1.45 Inter,Arial,sans-serif;
}
#jd-editor textarea:focus-visible { outline:2px solid #795b3c; outline-offset:2px; }
#jd-editor .jd-confirm { background:#414633; color:#fffdf4; border-radius:6px; padding:8px 12px; min-height:38px; }
.jd-document {
  padding: 0;
  width: min(690px, calc(100vw - 32px));
  max-width: none;
  height: min(570px, calc(100dvh - 44px));
  max-height: none;
  border: 1px solid #756e61;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1b18;
  color: #ebe5db;
  text-shadow: none;
}
.jd-document[open] { display: flex; flex-direction: column; }
.jd-document::backdrop { background: #111510ba; }
.jd-document-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 46px;
  border-bottom: 1px solid #47473e;
  font: 400 .75rem/1.4 Inter,Arial,sans-serif;
}
#jd-return span { margin-left: .4em; }
.jd-frame-slot { flex: 1; min-height: 0; }
.jd-frame-slot iframe { display: block; border: 0; width: 100%; height: 100%; background: #171915; }


.jd-document { margin:auto; }
.jd-document-bar { background:#232620; color:#f0ebde; }
#jd-return { padding:5px; min-height:44px; border:0; background:none; cursor:pointer; color:inherit; font:inherit; }
@container (min-width:481px) and (max-width:565px) {
  [data-duo-decision] .jd-evidence,[data-duo-decision] .jd-work { padding:14px; }
  [data-duo-decision] .jd-reason { font-size:12px; }
}
@container (max-width:480px) {
  /* The same file condenses to its source line and the decision that needs a thumb. */
  [data-duo-decision] .duo-workspace { grid-template: auto minmax(0,1fr) / 1fr; align-content:start; }
  [data-duo-decision] .duo-workspace .jd-evidence {
    min-height:34px; display:flex; flex-direction:row; justify-content:space-between;
    align-items:center; padding:4px 11px; gap:5px; border-bottom:1px solid #d2c7b4;
  }
  [data-duo-decision] .duo-workspace .jd-evidence :is(.jd-sheet-label,h3,.jd-doc-property,.jd-signed) { display:none; }
  [data-duo-decision] .duo-workspace .jd-doc-dates { display:flex; align-items:center; gap:3px; margin:0; }
  [data-duo-decision] .duo-workspace .jd-doc-dates div { padding:0; border:0; }
  [data-duo-decision] .duo-workspace .jd-doc-dates dt { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  [data-duo-decision] .duo-workspace .jd-doc-dates dd { font:500 12px/1.2 Inter,Arial,sans-serif; white-space:nowrap; }
  [data-duo-decision] .duo-workspace .jd-doc-dates div+div::before { content:"→"; color:#8d7b62; }
  .jd-source-link { margin:0; min-height:30px; font-size:11px; }
  [data-duo-decision] .duo-workspace .jd-work { overflow:auto; padding:8px 13px; justify-content:flex-start; }
  [data-duo-decision] .jd-sheet-label { font-size:10px; }
  [data-duo-decision] .jd-work h3 { font-size:23px; margin:4px 0; }
  [data-duo-decision] .duo-workspace .jd-reason { display:none; }
  .jd-choice { display:flex; align-items:center; margin-top:3px; padding:1px 7px; gap:6px; }
  .jd-choice em { order:2; font:italic 10px/1.05 Georgia,serif; }
  .jd-choice button { min-height:35px; font-size:12px; }
  .jd-options { justify-content:flex-start; }
  .jd-options button { min-height:32px; font-size:11px; }
  [data-duo-decision][data-duo-state="2"] .duo-workspace { grid-template:1fr / 1fr; }
  [data-duo-decision][data-duo-state="2"] .duo-workspace .jd-evidence { display:none; }
  [data-duo-decision][data-duo-state="2"] .duo-workspace .jd-work { justify-content:flex-start; }
  #jd-editor { flex:1; gap:5px; }
  #jd-editor label { font-size:19px; margin:3px 0 0; }
  #jd-editor label small { font-size:10px; margin:2px 0 0; }
  #jd-editor textarea { font-size:16px; line-height:1.24; flex:1; min-height:40px; padding:5px 8px; }
  #jd-editor .jd-confirm { min-height:34px; font-size:12px; }
  .duo-ink .jd-signed { display:block; }
  .duo-ink .jd-doc-dates div { display:block; padding:4px 0; }
  .duo-ink .jd-doc-dates { margin:8px 0; }
  .duo-ink .jd-work h3,.duo-ink .jd-evidence h3 { font-size:20px; }
}
@media(max-width:860px) {
  .role-story #chapter-6 .journey-inner { width:90%; grid-template-columns:minmax(0,.85fr) minmax(0,1.1fr); gap:24px; }
}
@media(max-width:680px) {
  .role-story #chapter-6 .journey-inner { width:90%; grid-template-columns:minmax(0,1fr); gap:22px; padding-block:40px; }
  .role-story #chapter-6 .journey-copy { padding:0; }
  .role-story #chapter-6 .journey-copy h2 { max-width:20ch; }
  .role-story #chapter-6 .journey-terrace img { object-position:54% 50%; }
  .role-story #chapter-6 .journey-terrace::after { background:linear-gradient(180deg,#17201bef 0%,#1b241edf 36%,#18201f80 67%,#192019ab); }
  .role-story #chapter-6 .jd-date-strip { margin-block:17px 6px; }
  .jd-document { width:calc(100vw - 16px); border-radius:12px; }
  [data-duo-decision] .duo-stops { padding:0 8px; }
}
@media (min-width:681px) and (max-height:650px) {
  .role-story #chapter-6 .journey-inner { min-height:0; padding-block:22px; align-items:center; }
  .role-story #chapter-6 .journey-copy h2 { font-size:clamp(37px,4.8vw,58px); }
  .role-story #chapter-6 .jd-date-strip { margin:12px 0 6px; padding-block:8px; }
  [data-duo-decision] .duo-studio { height:clamp(260px,63svh,390px); }
  [data-duo-decision] .duo-unit {
    --pocket:clamp(176px,39svh,240px);
    --flat:min(calc(100cqw - 10px),85svh,530px);
  }
}
