/* V237 – Compact final comparative EA application. Paper 2 only. */
#panelPlane .plane-col-key{display:none!important}
#panelPlane .plane-pair-card{margin-bottom:1rem!important;padding:0!important;overflow:hidden}
#panelPlane .plane-card-body{padding:.75rem 1rem 1rem!important}
#panelPlane .plane-ddm-idea-inline{display:grid;grid-template-columns:minmax(122px,155px) minmax(0,1fr);align-items:center;gap:.7rem;padding:0 0 .7rem;margin:0!important;border:0!important;background:transparent!important}
#panelPlane .plane-ddm-idea-inline label{font-weight:800;letter-spacing:0;color:#273549;white-space:normal}
#panelPlane .plane-ddm-idea-inline label small{display:block;font-size:.73rem;line-height:1.35;font-weight:500;color:#526275}
#panelPlane .plane-ddm-idea-inline textarea{box-sizing:border-box;width:100%;min-height:64px;height:64px;max-height:220px;margin:0;padding:.65rem .75rem;border:1px solid #b8bdca!important;border-radius:7px!important;background:#fff!important;color:#273549;font:inherit;line-height:1.35;resize:vertical}
#panelPlane .plane-compact-practice{margin:0 0 .8rem;padding:.45rem .7rem;line-height:1.45;background:#f3f0f8;border-left:3px solid #8a61a0;border-radius:5px;font-size:.88rem;color:#2b3448}
#panelPlane .plane-compact-practice a{color:#583079;text-decoration:underline;font-weight:750}
#panelPlane .plane-compact-practice a:hover,#panelPlane .plane-compact-practice a:focus{color:#30164d}
#panelPlane .plane-final-ea-column{order:0;display:block!important}
#panelPlane .plane-comparison-layout{display:flex!important;flex-direction:column;gap:.2rem!important}
#panelPlane .plane-final-ea-editor{margin:0 0 .5rem!important;padding:.65rem .8rem!important}
#panelPlane .plane-final-ea-editor label{font-size:.94rem!important;margin:0 0 .35rem!important}
#panelPlane .plane-final-ea-editor textarea{min-height:190px!important}
#panelPlane details.plane-supporting-evidence{order:2!important;margin:.15rem 0 .15rem!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#panelPlane details.plane-supporting-evidence>summary{background:transparent!important;border:0!important;border-radius:0!important;padding:.2rem .15rem!important;font-size:.78rem!important;font-weight:600!important;color:#657182!important}
#panelPlane details.plane-supporting-evidence>summary:hover{text-decoration:underline}
#panelPlane .plane-add-extra-small{font-size:.78rem!important;font-weight:700!important;margin:.2rem 0 .6rem!important;padding:.45rem .75rem!important;background:#edf0f5!important;border:1px solid #c3ccda!important;color:#33465d!important;border-radius:6px!important;box-shadow:none!important}
#panelPlane .plane-add-extra-small:hover{background:#e0e6ef!important}
#panelPlane #planeExtraSlot1[hidden],#panelPlane #planeExtraSlot2[hidden]{display:none!important}
#panelPlane .plane-extra-card[data-idea-colour="one"]>.plane-card-summary{background:#ded0e9!important;color:#463456!important;border-color:#c5afd8!important}
#panelPlane .plane-extra-card[data-idea-colour="two"]>.plane-card-summary{background:#d9e7f4!important;color:#214b72!important;border-color:#b4d1e8!important}
#panelPlane .plane-extra-card{margin:.25rem 0 .5rem!important;border:1px solid #d8dce4!important;box-shadow:none!important}
#panelPlane .plane-extra-body{padding:.5rem .65rem!important}
@media(max-width:650px){#panelPlane .plane-ddm-idea-inline{grid-template-columns:1fr;gap:.35rem}#panelPlane .plane-ddm-idea-inline label small{display:inline;margin-left:.25rem}#panelPlane .plane-card-body{padding:.6rem!important}#panelPlane .plane-compact-practice{font-size:.82rem}}

/* V238: Keep DDM IDEA editable in each accordion header, even when collapsed.
   Purple shades belong to IDEA groups; red and blue remain reserved for Text A/B. */
#panelPlane .plane-pair-card>.plane-editable-summary{
  display:grid!important;grid-template-columns:20px 78px minmax(0,1fr)!important;
  align-items:center!important;column-gap:.8rem!important;row-gap:.25rem!important;
  padding:.7rem 1.1rem!important;min-height:83px!important;
  line-height:1.3!important;list-style:none!important;
}
#panelPlane .plane-pair-card>.plane-editable-summary::-webkit-details-marker{display:none!important}
#panelPlane .plane-pair-card[data-idea-colour="one"]>.plane-editable-summary{
  background:#55276f!important;color:#fff!important;border-color:#55276f!important;
}
#panelPlane .plane-pair-card[data-idea-colour="two"]>.plane-editable-summary{
  background:#9060a9!important;color:#fff!important;border-color:#9060a9!important;
}
#panelPlane .plane-idea-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-width:16px;
  font-family:Arial,sans-serif!important;font-size:1.12rem!important;font-weight:800!important;color:inherit!important}
#panelPlane .plane-idea-toggle::before{content:'▸'}
#panelPlane .plane-pair-card[open]>.plane-editable-summary .plane-idea-toggle::before{content:'▾'}
#panelPlane .plane-idea-number{font-size:.94rem!important;font-weight:800!important;letter-spacing:.01em!important;
  font-family:inherit!important;color:inherit!important;white-space:nowrap}
#panelPlane .plane-idea-header-input{
  display:block!important;box-sizing:border-box!important;width:100%!important;
  min-width:0!important;min-height:55px!important;height:55px!important;max-height:300px!important;
  margin:0!important;padding:.55rem .75rem!important;border:1px solid rgba(255,255,255,.72)!important;
  border-radius:7px!important;background:rgba(255,255,255,.97)!important;color:#292238!important;
  font:500 .91rem/1.35 'Inter',sans-serif!important;letter-spacing:normal!important;
  resize:vertical!important;cursor:text!important;box-shadow:none!important
}
#panelPlane .plane-idea-header-input:focus{outline:3px solid #e1bdff!important;outline-offset:1px!important}
#panelPlane .plane-idea-header-input::placeholder{color:#61697a!important;opacity:1!important}
#panelPlane .plane-pair-card>.plane-card-body{padding-top:.9rem!important}
/* The chat is always present and can grow down without an arbitrary height cap.
   Enlarging the history changes layout height; the footer remains in normal flow. */
#panelPlane #planeUnifiedAI{height:auto!important;max-height:none!important;overflow:visible!important;contain:none!important}
#panelPlane #planeAIMessages{display:block!important;position:relative!important;box-sizing:border-box!important;
  height:176px;min-height:130px!important;max-height:none!important;
  resize:vertical!important;overflow:auto!important;overflow-x:hidden!important;
  padding:.7rem!important;margin-bottom:.7rem!important;flex:0 0 auto!important
}
#panelPlane #planeAIInput{min-height:80px!important;resize:vertical!important}
#panelPlane .plane-ai-bottom-row{position:static!important}
@media(max-width:670px){
  #panelPlane .plane-pair-card>.plane-editable-summary{grid-template-columns:18px minmax(0,1fr)!important;gap:.45rem!important;padding:.65rem .7rem!important}
  #panelPlane .plane-idea-number{font-size:.91rem!important}
  #panelPlane .plane-idea-header-input{grid-column:1/-1!important;height:70px!important;min-height:70px!important;font-size:.89rem!important}
}

#workspaceContainer.single-open #panelPlane .activity-area{overflow:visible!important;height:auto!important;max-height:none!important}
#workspaceContainer.single-open{overflow:visible!important;height:auto!important;max-height:none!important}
