#workby-planner{display:grid;grid-template-columns:minmax(230px,305px) minmax(0,1fr);align-items:start;gap:18px}
#workby-planner .panel{min-width:0}
#workby-planner .panel h2{margin:0 0 10px}
#workby-planner form{display:grid;gap:12px;margin-top:13px}
#workby-planner .fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#workby-planner label{display:grid;gap:5px}
#workby-planner :is(input,select,textarea){width:100%;min-width:0}
#workby-planner textarea{resize:vertical}
#workby-planner .plan-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px}
#workby-planner .actions{display:flex;flex-wrap:wrap;gap:7px}
#workby-planner :disabled{opacity:.5;cursor:default}
#workby-planner .status{font-size:13px;margin:4px 0 0}
#workby-planner .empty{margin-top:16px;min-height:170px;display:grid;place-items:center;text-align:center}
#workby-planner .empty strong{display:block;margin-bottom:5px}
#workby-planner .table-wrap{margin-top:14px;overflow:auto}
#workby-planner table{width:100%;table-layout:fixed;min-width:810px}
#workby-planner th{vertical-align:bottom}
#workby-planner td{vertical-align:top}
#workby-planner th:nth-child(1){width:18%}
#workby-planner th:nth-child(2){width:23%}
#workby-planner th:nth-child(3){width:25%}
#workby-planner th:nth-child(4){width:17%}
#workby-planner th:nth-child(5){width:17%}
#workby-planner td textarea,#workby-planner td input{font-size:13px;padding:7px;min-height:0;border-radius:8px}
#workby-planner [hidden]{display:none!important}
@media(max-width:850px){#workby-planner{grid-template-columns:1fr;gap:12px}}

#workby-planner .planner-brief-fields{display:grid;gap:9px;margin-top:9px}
#planner-instagram-grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;margin:15px 0}
#planner-instagram-grid li{border:1px solid #ffffff25;border-radius:9px;padding:11px;min-width:0;overflow-wrap:anywhere}
#planner-instagram-grid small{display:block;opacity:.8;margin-bottom:4px}
#planner-instagram-grid strong{font-size:13px}
#planner-hashtags{display:grid;gap:6px;margin:15px 0}
#planner-hashtags button{justify-self:start}
.studio-tool{margin-bottom:15px}
.studio-tool form{display:grid;gap:13px}
.studio-tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.studio-tool label{display:grid;gap:5px}
.studio-tool :is(input,select,textarea){width:100%;min-width:0}
.studio-quote-items{display:grid;gap:8px}
.studio-quote-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(60px,.5fr) minmax(90px,.75fr) auto;align-items:end;gap:8px}
.studio-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.studio-totals div{border:1px solid #ffffff25;border-radius:8px;padding:8px}
.studio-totals dt{font-size:12px}
.studio-totals dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.studio-tool form > button{justify-self:start}
.studio-report-preview{white-space:pre-line;margin:15px 0}
.studio-client-actions{flex-wrap:wrap;margin:10px 0}
@media(max-width:640px){
  .studio-quote-line,.studio-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .studio-quote-line label:first-child{grid-column:1 / -1}
  .studio-quote-line button{justify-self:start}
  #planner-instagram-grid li{padding:7px}
  #planner-instagram-grid small,#planner-instagram-grid strong{font-size:11px}
}

#planner-import{display:grid;gap:8px;margin:12px 0}
#planner-import-preview{border:1px solid #ffffff30;border-radius:8px;padding:10px}
#planner-import-preview ol{margin:8px 0 0;max-height:180px;overflow:auto}
#workby-planner th:nth-child(1){width:6%}
#workby-planner th:nth-child(2){width:16%}
#workby-planner th:nth-child(3){width:21%}
#workby-planner th:nth-child(4){width:25%}
#workby-planner th:nth-child(5){width:16%}
#workby-planner th:nth-child(6){width:16%}
#workby-planner td:first-child input{width:auto;min-width:auto}
