/* 9.9: Layout-only polish. No changes to generator inputs, IDs or events. */
.gg99-progress{display:flex;gap:8px;align-items:stretch;margin:18px 0 22px;max-width:100%;}
.gg99-progress-item{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:9px;padding:12px 14px;border:1px solid var(--vv-line,#e4d9cf);background:var(--vv-surface,#fff);border-radius:14px;color:var(--vv-ink-soft,#66554b);}
.gg99-progress-item .gg99-number{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:999px;background:var(--vv-paper,#f6f0e8);font-size:13px;font-weight:700;}
.gg99-progress-item .gg99-label{min-width:0;font-weight:600;line-height:1.3;font-size:13px;text-align:left;}
.gg99-progress-item[aria-current="step"]{border-color:var(--vv-forest,#a77b48);background:var(--vv-paper,#f6f0e8);color:var(--vv-ink,#332a25);}
.gg99-progress-item[aria-current="step"] .gg99-number{background:var(--vv-forest,#a77b48);color:white;}
.gg99-progress-item.gg99-complete .gg99-number{color:var(--vv-forest,#a77b48);}
@media(max-width:767px){
  .gg37-studio .gg99-progress{width:100%;margin:14px 0 18px;gap:5px;}
  .gg37-studio .gg99-progress-item{padding:9px 7px;flex-direction:column;justify-content:center;text-align:center;gap:6px;border-radius:10px;}
  .gg37-studio .gg99-progress-item .gg99-number{width:25px;height:25px;}
  .gg37-studio .gg99-progress-item .gg99-label{text-align:center;font-size:11px;overflow-wrap:anywhere;}
  .gg37-studio :is(#gg42PhaseCreate,#gg42PhaseFinish,#gg81StepThree){min-width:0;max-width:100%;width:100%;box-sizing:border-box;}
  .gg37-studio :is(.gg42-phase-head,.gg81-third-header){padding-inline:0;text-align:left;}
  .gg37-studio :is(.gg42-phase-head,.gg81-third-header) :is(h2,p){text-align:left;max-width:100%;}
  .gg37-studio .vv-mode-tabs{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%;}
  .gg37-studio .vv-mode-tabs .vv-model-choice{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box;}
  .gg37-studio .vv-mode-tabs .vv-model-choice > span:last-child{flex:1;min-width:0;text-align:left;}
  .gg37-studio .vv-mode-tabs .vv-model-choice :is(strong,small){text-align:left;white-space:normal;overflow-wrap:break-word;}
  .gg37-studio .ai-assistant-card,.gg37-studio .editor-pane,.gg37-studio .preview-pane,.gg37-studio .input-card,.gg37-studio .stanza-card{min-width:0;max-width:100%;box-sizing:border-box;}
  .gg37-studio .ai-assistant-card{padding:18px!important;}
  .gg37-studio .ai-assistant-card :is(input,select,textarea){max-width:100%;box-sizing:border-box;min-width:0;}
  .gg37-studio #mainWorkspace{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:16px;}
  .gg37-studio .line-input-group{min-width:0;max-width:100%;}
  .gg37-studio .line-input-group input.poem-line{width:100%;min-width:0;}
  .gg37-studio .gg81-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .gg37-studio .gg81-choice button{width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:64px;text-align:left;}
  .gg37-studio .gg81-third-step :is(img,canvas){max-width:100%;height:auto;}
}
@media(max-width:360px){.gg37-studio .gg81-choice{grid-template-columns:minmax(0,1fr)}}
