/* A private paper route for a visitor's own problem. */
.studio-stage[data-visitor-plan-open="true"] .front-feedback-mount,
.studio-stage[data-visitor-plan-open="true"] .return-desk-check-finding,
.studio-stage[data-visitor-plan-open="true"] .studio-file-nav,
.studio-stage[data-visitor-plan-open="true"] .team-desk,
.studio-stage[data-visitor-plan-open="true"] .problem-brief-panel { display: none !important; }

.visitor-plan,
.visitor-plan * { box-sizing: border-box; min-width: 0; }
.visitor-plan { display: grid; gap: clamp(16px, 2.5vw, 24px); color: #253a31; }
.visitor-plan[hidden], .visitor-plan [hidden] { display: none !important; }
.visitor-plan :is(h3,h4,p) { margin: 0; }
.visitor-plan :is(button,a,textarea):focus-visible,
.visitor-plan :is(article,section):focus-visible { outline: 3px solid #087d9a; outline-offset: 4px; }
.visitor-plan :is(button,a) { cursor: pointer; }
.visitor-plan :is(p,pre) { overflow-wrap: anywhere; }
.visitor-plan:not([data-example="true"]) .visitor-plan-made,
.visitor-plan:not([data-example="true"]) .visitor-plan-made-file,
.visitor-plan[data-example="true"] .visitor-plan-own { display: none !important; }

.visitor-plan-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: clamp(17px, 2.5vw, 28px); border-radius: 8px; background: #e1eaf0; }
.visitor-plan-kicker,
.visitor-plan-heading .visitor-plan-kicker { margin-bottom: 8px; color: #304e63; font: 850 .67rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .075em; }
.visitor-plan-heading h3 { max-width: 19ch; font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.02; letter-spacing: -.05em; }
.visitor-plan-heading p:last-child { max-width: 62ch; margin-top: 10px; font-size: .87rem; line-height: 1.5; }
.visitor-plan-clip { display: grid; flex: none; width: 58px; height: 58px; place-items: center; border: 2px dashed #304967; border-radius: 50%; color: #304967; background: #f8fcff; font-size: 1.8rem; transform: rotate(9deg); }

.visitor-plan-example { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border: 1px solid #9fb3c0; border-left: 5px solid #536f84; border-radius: 5px; background: #f4f8fb; }
.visitor-plan-example strong { font-size: .9rem; }
.visitor-plan-example p { margin-top: 3px; font-size: .76rem; line-height: 1.4; }
.visitor-plan-example button,
.visitor-plan-action button,
.visitor-plan-preview-actions button,
.visitor-plan-email :is(button,a) { min-height: 44px; padding: 10px 14px; border: 1px solid #304967; border-radius: 4px; color: #fffdf7; background: #304967; font: 800 .78rem/1.3 Inter, ui-sans-serif, sans-serif; text-decoration: none; text-align: left; }
.visitor-plan-example button:hover,
.visitor-plan-action button:hover,
.visitor-plan-preview-actions button:hover,
.visitor-plan-email :is(button,a):hover { filter: brightness(1.15); }
.visitor-plan-made-file { position: relative; overflow: hidden; padding: clamp(16px, 2.6vw, 26px); border: 2px solid #375c4a; border-radius: 4px; background: repeating-linear-gradient(0deg, #fffaf0 0 31px, #e8e0cb 32px, #fffaf0 33px); box-shadow: 6px 7px 0 #d5c59e; }
.visitor-plan-file-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; padding-bottom: 10px; border-bottom: 2px solid #607866; color: #385944; font: 850 .68rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.visitor-plan-file-top b { color: #9a503b; }
.visitor-plan-file-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 16px 0; }
.visitor-plan-file-main > div:first-child { display: grid; gap: 4px; }
.visitor-plan-file-main > div:first-child span { font: 800 .7rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.visitor-plan-file-main strong { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.06em; }
.visitor-plan-file-main small { font-size: .78rem; }
.visitor-plan-file-stamps { display: flex; flex-wrap: wrap; gap: 10px; }
.visitor-plan-file-stamps span { display: grid; min-height: 54px; min-width: 92px; place-items: center; padding: 6px; border: 3px double #9a503b; color: #9a503b; background: #fff6e5; font: 900 .65rem/1.25 ui-monospace, Menlo, monospace; text-align: center; transform: rotate(-8deg); transition: transform 180ms ease, background 180ms ease; }
.visitor-plan-file-stamps span + span { transform: rotate(6deg); }
.visitor-plan[data-claim="total"] .visitor-plan-stamp-total,
.visitor-plan[data-claim="payment"] .visitor-plan-stamp-payment { color: #fff; background: #9a503b; transform: rotate(0) scale(1.04); text-decoration: line-through; text-decoration-thickness: 2px; }
.visitor-plan-made-file > p { margin: 0 0 12px; font-size: .81rem; font-weight: 700; }
.visitor-plan-made-file > button { min-height: 40px; padding: 8px 11px; border: 1px solid #496f59; border-radius: 4px; color: #315641; background: #f5f8ec; font: 800 .76rem/1.3 Inter, ui-sans-serif, sans-serif; }
.visitor-plan-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.visitor-plan-field,
.visitor-plan-choices { display: grid; align-content: start; gap: 8px; margin: 0; padding: 16px; border: 1px solid #b4b9ab; border-radius: 5px; background: #fffdf7; }
.visitor-plan-field > span,
.visitor-plan-choices legend span { display: block; margin-bottom: 4px; color: #567260; font: 850 .66rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.visitor-plan-field strong,
.visitor-plan-choices legend strong { display: block; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.22; }
.visitor-plan-field small { color: #526156; font-size: .71rem; line-height: 1.4; }
.visitor-plan-field textarea { width: 100%; resize: vertical; padding: 11px 12px; border: 1px solid #7b9381; border-radius: 4px; color: #23392d; background: #fff; font: 500 .85rem/1.5 Inter, ui-sans-serif, sans-serif; }
.visitor-plan-field textarea:focus-visible { outline-offset: 2px; }
.visitor-plan-choices legend { float: none; width: 100%; padding: 0; }
.visitor-plan-choices > div { display: grid; gap: 7px; }
.visitor-plan-choices button { min-height: 42px; padding: 9px 12px; border: 1px solid #8fa798; border-radius: 4px; color: #2c4937; background: #f2f6ef; font: 750 .78rem/1.3 Inter, ui-sans-serif, sans-serif; text-align: left; }
.visitor-plan-choices button:hover { background: #e0efdc; }
.visitor-plan-choices button[aria-pressed="true"] { border-color: #2d6844; color: #fff; background: #326648; box-shadow: inset 4px 0 #d7eaa3; }
.visitor-plan-proposed { grid-column: 1 / -1; display: grid; gap: 8px; padding: 15px 18px; border: 2px dashed #a15d3c; border-radius: 5px; background: #fff2e3; }
.visitor-plan-proposed > span { color: #8a482e; font: 850 .67rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .05em; }
.visitor-plan-proposed p { font-size: .84rem; line-height: 1.5; }
.visitor-plan-proposed small { color: #764b35; font-size: .75rem; line-height: 1.45; }
.visitor-plan-action { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.visitor-plan-action p { flex: 1 1 230px; font-size: .77rem; line-height: 1.4; }

.visitor-plan-preview { padding: clamp(18px, 3vw, 30px); border: 2px solid #325644; border-radius: 4px; background: #fff9ea; box-shadow: 7px 8px 0 #d4c295; animation: visitor-slip-return 320ms ease-out both; scroll-margin-top: 18px; }
.visitor-plan-slip-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid #325644; color: #325644; font: 850 .67rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.visitor-plan-slip-head b { padding: 5px 8px; border: 2px solid #9b5b3a; color: #8a472d; transform: rotate(5deg); }
.visitor-plan-preview[data-returned="true"] .visitor-plan-slip-head b { border-color: #326648; color: #326648; transform: rotate(-5deg); }
.visitor-plan-preview h4 { margin: 15px 0; font-size: clamp(1.45rem, 2.7vw, 2.25rem); line-height: 1.1; letter-spacing: -.04em; }
.visitor-plan-route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.visitor-plan-route li { padding: 12px; border: 1px solid #b3bdac; background: #f3f6ed; }
.visitor-plan-route span { display: block; margin-bottom: 8px; color: #4e6f56; font: 850 .66rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .05em; }
.visitor-plan-route p { font-size: .79rem; line-height: 1.5; }
.visitor-plan-human-summary { margin-top: 12px !important; padding: 13px 15px; border: 2px solid #315d46; color: #274a38; background: #e4f0dc; font-size: .86rem; font-weight: 800; line-height: 1.45; }
.visitor-plan-revision-summary { margin-top: 10px !important; padding: 11px 14px; border-left: 4px solid #a65d38; background: #fff0dc; font-size: .8rem; line-height: 1.45; }
.visitor-plan-boundary { margin-top: 12px !important; font-size: .75rem; line-height: 1.45; }
.visitor-plan-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.visitor-plan-preview-actions button:first-child { color: #315943; background: #f3f7ed; }

.visitor-plan-email { padding: clamp(17px, 2.5vw, 26px); border: 2px solid #304967; border-radius: 5px; background: #eaf1f5; scroll-margin-top: 18px; }
.visitor-plan-email h4 { font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.04em; }
.visitor-plan-email-lead { margin-top: 11px !important; padding: 10px 13px; border-left: 4px solid #9a503b; background: #fff9ed; font-size: .82rem; font-weight: 750; line-height: 1.45; }
.visitor-plan-email pre { max-height: 320px; overflow: auto; white-space: pre-wrap; margin: 13px 0; padding: 16px; border: 1px solid #8ba6b5; background: #fff; font: 500 .78rem/1.5 Inter, ui-sans-serif, sans-serif; }
.visitor-plan-email > div { display: flex; flex-wrap: wrap; gap: 8px; }
.visitor-plan-email button { color: #304967 !important; background: #f7fbfd !important; }
.visitor-plan-email > p:last-child { margin-top: 12px; font-size: .74rem; line-height: 1.45; }
.visitor-plan-exits { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; border-top: 1px solid #bbc9bf; }
.visitor-plan-exits a { color: #315943; font-size: .75rem; font-weight: 800; line-height: 1.4; }

@keyframes visitor-slip-return { from { transform: translate(14px, -7px) rotate(1deg); } to { transform: translate(0, 0) rotate(0); } }

@media (max-width: 740px) {
  .visitor-plan-edit,
  .visitor-plan-route { grid-template-columns: minmax(0, 1fr); }
  .visitor-plan-action { grid-column: 1; }
  .visitor-plan-heading { padding: 16px; }
  .visitor-plan-clip { width: 42px; height: 42px; font-size: 1.3rem; }
  .visitor-plan-preview { box-shadow: 4px 5px 0 #d4c295; }
}
@media (max-width: 420px) {
  .visitor-plan-example button,
  .visitor-plan-action button,
  .visitor-plan-preview-actions button,
  .visitor-plan-email :is(button,a) { width: 100%; }
  .visitor-plan-clip { display: none; }
  .visitor-plan-file-main { align-items: start; }
  .visitor-plan-file-stamps { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .visitor-plan-preview { animation: none; }
  .visitor-plan-file-stamps span { transition: none; }
}
