/* Harbor136: additive, isolated inner-page polish. Original print media untouched. */
@media screen {
html body.harbor136>footer{font-size:13px!important;line-height:1.65!important;padding:14px 20px!important}
/* Map footer retains its frozen height budget; readable text must not steal map area. */
html body.harbor136:has(main.workspace)>footer{height:38.046875px!important;box-sizing:border-box;line-height:18px!important;padding:9px 16px!important;white-space:nowrap}
@media(max-width:760px){html body.harbor136:has(main.workspace)>footer{height:30.046875px!important;padding:5px 10px!important}}
/* Do not flex map/workspace/embedded policy shells: retain their scroll budgets. */
html body.harbor136:not(:has(.workspace,.consult-workspace,iframe)){display:flex!important;flex-direction:column!important;min-height:100dvh!important}
html body.harbor136:not(:has(.workspace,.consult-workspace,iframe))>main{flex:1 0 auto!important;width:100%;box-sizing:border-box}
html body.harbor136:not(:has(.workspace,.consult-workspace,iframe))>footer{margin-top:auto!important}
html body.harbor136 :is(.guide-intro,.prepare-section){padding:22px 24px!important;border:1px solid #BCC7CF;border-radius:12px;box-sizing:border-box}
html body.harbor136 .guide-intro{margin-bottom:20px}
html body.harbor136 .guide-intro h2{margin-top:0}
html body.harbor136 .guide-intro p:last-child{margin-bottom:0}
html body.harbor136 .scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
html body.harbor136 .scenario-card{padding:20px!important}
html body.harbor136 .scenario-art{width:128px;height:88px;margin:0 auto 12px;object-fit:contain}
html body.harbor136 .scenario-card a{line-height:1.7;overflow-wrap:anywhere}
html body.harbor136 .prepare-section{margin-top:24px}
html body.harbor136.standalone-ai .ai-panel{padding:0!important;border:0!important;background:transparent!important}
html body.harbor136.standalone-ai .consult-sheet{padding:24px!important;gap:14px}
html body.harbor136.standalone-ai #consult-form{padding:18px!important;border:1px solid #BCC7CF!important;border-radius:12px;gap:12px}
html body.harbor136.standalone-ai :is(.consult-sheet>p,#session-status,#consult-status){background:transparent!important;margin:0!important;padding:0!important}
html body.harbor136.standalone-ai .consult-sheet>p:not(#session-status){font-size:13px!important;line-height:1.65!important}
html body.harbor136.standalone-ai .messages:empty{min-height:0!important}
html body.harbor136.standalone-ai #question{width:100%;box-sizing:border-box}
html body.harbor136.standalone-ai .composer-actions{gap:12px;align-items:center;justify-content:space-between}
html body.harbor136 .count{font:600 14px/1.5 system-ui,sans-serif!important;flex:none}
html body.harbor136 #count{font:600 14px/1.5 system-ui,sans-serif!important}
html body.harbor136 #catalog .catalog-group h3 button{gap:10px}
html body.harbor136 #catalog .catalog-group h3 button .count{margin-left:auto}
/* Rev2: catalog labels must wrap within narrow tablet and desktop rails. */
html body.harbor136 #catalog .catalog-group :is(ul,li){min-width:0}
html body.harbor136 #catalog .catalog-group button[data-id]{min-width:0;max-width:100%;height:auto;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
html body.harbor136 #catalog .catalog-group h3 span:not(.count){min-width:0;white-space:normal!important;overflow-wrap:anywhere}
html body.harbor136 #catalog .catalog-group h3 button::after{flex-shrink:0}
html body.harbor136 .nearby-categories button:not(:disabled){border:1px solid #586875!important;font-weight:600;cursor:pointer}
html body.harbor136 main button:not(:disabled):hover{border-color:#426C8B!important}
html body.harbor136 main :focus-visible{outline:3px solid #426C8B!important;outline-offset:3px}
@media (min-width:761px) and (max-width:1000px){
html body.harbor136 .scenario-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
html body.harbor136 :is(.guide-intro,.prepare-section){padding:18px 16px!important}
html body.harbor136 .scenario-grid{grid-template-columns:minmax(0,1fr);gap:12px}
html body.harbor136 .scenario-card{padding:18px!important}
html body.harbor136 .scenario-art{float:right;width:92px;height:68px;margin:0 0 10px 12px}
html body.harbor136 .scenario-card h3{min-height:68px}
html body.harbor136.standalone-ai .consult-sheet{padding:16px 12px!important}
html body.harbor136.standalone-ai #consult-form{padding:14px 12px!important}
html body.harbor136.standalone-ai #question{padding:12px!important;font-size:16px!important}
html body.harbor136.standalone-ai .composer-actions{align-items:stretch!important}
html body.harbor136.standalone-ai .composer-actions span{flex-basis:100%}
html body.harbor136>footer{padding:12px 14px!important}
}
}
