/* Adventure sheets: natural panel heights, with iPad and desktop as the main canvas. */
#sheet .sheet-overview { align-items:start; }
#sheet .sheet-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:start; margin-top:16px; }
#sheet .column-stack { grid-column:auto; grid-row:auto; display:flex; flex-direction:column; gap:16px; min-width:0; }
#sheet .column-stack>.panel { width:100%; align-self:start; }
#sheet .panel { box-sizing:border-box; }
#sheet .panel h2 { margin-top:0; }
#sheet .skills-panel { padding-bottom:16px; }
#sheet .skills-panel .stat-row:last-child { margin-bottom:0; }
#sheet .identity { padding:18px; }
#sheet .identity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; align-items:start; }
#sheet .identity-grid>label,#sheet .level-summary { min-width:0; }
#sheet .identity-name,#sheet .identity-grid>.identity-mark { grid-column:1/-1; }
#sheet .identity-grid input,#sheet .identity-grid select { width:100%; min-width:0; min-height:44px; font-size:16px; }
#sheet #characterIdentityFields { grid-column:1/-1; min-width:0; }
#sheet .character-identity-fields { grid-template-columns:minmax(0,1fr); gap:12px 16px; }
#sheet .identity-description { font-size:14px; }
#sheet .identity-description:empty { display:none; }
#sheet .avatar-choices { margin:0; padding-top:12px; display:grid; grid-template-columns:minmax(0,1fr); gap:10px 20px; align-items:center; }
#sheet .avatar-preview { margin:0; gap:14px; }
#sheet .avatar-preview>img { width:64px; height:96px; flex:none; }
#sheet .avatar-preview p { margin:0; font-size:14px; color:var(--muted); }
#sheet .avatar-preview strong { font-size:15px; }
#sheet .avatar-preview button { white-space:normal; }
#sheet .avatar-choices>details,#sheet .avatar-choices>small,#sheet .avatar-change-note { grid-column:1/-1; margin:0; }
#sheet .avatar-choices>small { display:block; font-size:12px; line-height:1.5; }
#sheet .avatar-choices summary { padding:8px 0; }
#sheet .stat-lock-panel { gap:16px; margin:12px 0 0; padding:12px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; background:none; }
#sheet .stat-lock-panel>div { min-width:0; }
#sheet .stat-lock-panel p { margin:6px 0 0; max-width:none; line-height:1.5; }
#sheet .stat-lock-panel[data-locked=true] #statLockNote,#sheet .stat-lock-panel .error:empty { display:none; }
#sheet .stat-lock-panel strong { font-size:14px; }
#sheet .stat-lock-panel button { white-space:normal; }

@media(min-width:740px) {
 #gameMain { padding:24px; }
 #sheet .sheet-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #sheet .sheet-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #sheet .identity-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 #sheet .identity-name { grid-column:span 2; }
 #sheet .identity-grid>.identity-mark { grid-column:span 3; }
 #sheet .character-identity-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
 #sheet .avatar-choices { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 #sheet .avatar-preview { grid-column:2; grid-row:1; }
 #sheet .stat-row { gap:8px; }
 #sheet .stat-row input[type=number] { width:70px; min-width:0; }
 #sheet .vital-panel .stat-row input[type=number] { width:100%; }
 #sheet .column-stack>.panel { padding:18px; }
 #sheet .column-stack>.panel h2 { font-size:20px; margin-bottom:14px; padding-bottom:10px; flex-wrap:wrap; }
}
@media(min-width:1100px) {
 #gameMain { max-width:1400px; padding:28px 32px; }
 #sheet .identity-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
 #sheet .identity-grid>.identity-mark { grid-column:auto; }
 #sheet .sheet-columns { grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:20px; }
 #sheet .column-stack { gap:20px; }
 #sheet .column-stack>.panel { padding:20px 24px; }
}
