.target-launch{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 18px;padding:14px 0;border-bottom:1px solid var(--border);}
.target-launch p{margin:0;font-size:.875rem;color:var(--text-muted);}
.target-sheet-dialog{width:calc(100% - 32px);max-width:1520px;height:92vh;height:92dvh;max-height:96dvh;box-sizing:border-box;padding:0;border:1px solid var(--border);border-radius:16px;background:var(--bg);color:var(--text);}
.target-sheet-dialog::backdrop{background:rgba(0,0,0,.7);}
#targetSheetForm{height:100%;display:flex;flex-direction:column;min-height:0;}
.target-sheet-inline{margin-top:16px;border:1px solid var(--border);border-radius:14px;background:var(--bg);overflow:hidden;}
.target-sheet-inline #targetSheetForm{height:auto;display:block;}
.target-sheet-inline .target-sheet-head .menu-close{display:none;}
.target-sheet-inline #targetSheetBody{overflow:visible;}
.target-sheet-inline .target-sheet-footer{position:static;}
.target-sheet-head{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);}
.target-sheet-head h2{margin:0;font-size:1.25rem;}
.target-excel-import-dialog{max-width:680px;}
.target-excel-import-dialog .target-import-preview{padding:16px 0 0;border-top:1px solid var(--border);max-height:none;}
#targetExcelMenuStatus[data-error=true]{color:#ffb09b;}
#targetSheetBody{overflow:auto;min-height:0;flex:1;padding:16px 24px;}
.target-sheet-tabs{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;position:sticky;top:0;z-index:5;margin-bottom:12px;padding:5px;border:1px solid var(--border);border-radius:13px;background:rgba(36,32,25,.96);box-shadow:0 8px 20px rgba(0,0,0,.16);}
.target-sheet-tabs button{min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--text-muted);font-family:inherit;font-size:.9rem;font-weight:600;cursor:pointer;}
.target-sheet-tabs button:hover{background:var(--surface-hover);color:var(--text);}
.target-sheet-tabs button[aria-selected=true]{background:linear-gradient(135deg,var(--copper),var(--copper-bright));color:var(--bg);box-shadow:0 5px 14px rgba(193,120,23,.24);}
.target-plan-status{margin-bottom:14px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-muted);font-size:.86rem;}
.target-basic-grid{display:grid;grid-template-columns:1fr;gap:20px;}
.target-basic-wide{grid-column:1/-1;}
.target-double-brew{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:18px;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);}
.target-double-brew label{display:flex;align-items:center;gap:9px;font-weight:600;}.target-double-brew input{width:22px!important;min-height:22px!important;}.target-double-brew span{color:var(--text-muted);font-size:.85rem;}
#targetSheetBody[data-double-brew=false] [data-second-brew]{display:none!important;}
.target-section{margin-bottom:24px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;}
.target-section h3{font-size:1rem;margin:0 0 16px;}
.target-subtitle{margin:20px 0 10px;padding-top:14px;border-top:1px solid var(--border);font-size:.92rem;}
.target-tool-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0 10px;}
.target-calculation-result{margin:10px 0;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);font-size:.875rem;line-height:1.65;}
.target-calculation-result.is-warning{border-color:#bf5b3c;color:#ffd4c8;}
.target-field-grid,.target-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.target-field{min-width:0;}
.target-inline-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;}
.target-inline-action .inv-action-btn{min-height:40px;white-space:nowrap;}
.target-water-summary{margin:14px 0 0;padding:10px 12px;border-radius:8px;background:var(--surface-2);font-weight:600;}
.target-choice-field select{margin-bottom:8px;}
.target-style-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;}
.target-style-controls>.inv-action-btn{min-height:40px;margin-bottom:8px;white-space:nowrap;}
.target-clear-actions{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.target-clear-actions .inv-action-btn{min-height:40px;white-space:nowrap;}
.target-choice-custom[hidden]{display:none!important;}
.target-inline-note{display:block;margin-top:6px;color:var(--text-muted);font-size:.78rem;line-height:1.45;}
.style-reference{grid-column:1/-1;margin:12px 0 18px;padding:12px 14px;border:0;border-left:4px solid var(--copper);border-radius:0 8px 8px 0;background:rgba(201,123,19,.07);}
.style-reference>strong,.style-reference>span{display:block;}.style-reference>span{margin-top:5px;color:var(--text-muted);font-size:.85rem;}
.style-reference p{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px;}.style-reference a{color:var(--copper-bright);font-size:.82rem;}
.style-reference-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}.style-reference-grid div{padding:6px 2px;}.style-reference-grid span,.style-reference-grid strong{display:block;}.style-reference-grid span{font-size:.72rem;color:var(--text-muted);}.style-reference-grid strong{margin-top:4px;font-size:.88rem;overflow-wrap:anywhere;}.style-reference small{display:block;margin-top:9px;color:var(--text-muted);}
.target-goal-actual{display:grid;grid-template-columns:1fr 1fr;gap:14px;}.target-result-card{padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);}.target-result-card h4{margin:0 0 12px;font-size:.9rem;}.target-result-card .target-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.target-field label,.target-material-table label{display:block;font-size:.82rem;color:var(--text-muted);margin:0 0 6px;}
#targetSheetBody input,#targetSheetBody select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;font:inherit;font-size:.9rem;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);color:var(--text);padding:8px;}
.brew-process-plan input,.brew-process-plan select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;font:inherit;font-size:.9rem;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);color:var(--text);padding:8px;}
#targetSheetBody input:disabled,#targetSheetBody select:disabled{opacity:1;background:transparent;border-color:transparent;cursor:default;}
.brew-process-mobile{display:none;}.brew-process-batch-panel{margin-bottom:14px;}.brew-process-plan>.target-section{margin-bottom:12px;}.brew-process-current-card{padding:14px;border:2px solid var(--copper);border-radius:12px;background:rgba(201,123,19,.08);}.brew-process-current-head{display:flex;flex-direction:column;gap:5px;margin-bottom:12px;}.brew-process-current-head span{color:var(--copper-bright);font-size:.78rem;font-weight:700;}.brew-process-current-head strong{font-size:1.1rem;}.brew-process-current-card dl{margin:0;}.brew-process-current-card dl>div{display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;padding:9px 0;border-top:1px solid var(--border);}.brew-process-current-card dt{color:var(--text-muted);font-size:.8rem;}.brew-process-current-card dd{margin:0;line-height:1.55;}.brew-process-current-card p{margin:12px 0;color:var(--text-muted);font-size:.85rem;}.brew-process-current-card .btn{width:100%;}
.target-table-scroll{overflow-x:auto;}
.target-material-table{display:block;width:100%;min-width:0;}
.target-material-table thead{display:none;}
.target-material-table tbody{display:grid;gap:12px;}
.target-material-table tr{display:grid;grid-template-columns:1fr;gap:10px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);}
.target-material-table td{display:block;min-width:0;padding:0;border:0;vertical-align:top;text-align:left;}
.target-material-table td::before{content:attr(data-label);display:block;margin:0 0 6px;color:var(--text-muted);font-size:.78rem;}
.target-material-table .target-cell-wide{min-width:0;}
.target-material-table label{margin-bottom:8px;}
.target-row-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;flex-wrap:wrap;}
.target-material-table output,.target-row-footer output{font-size:.85rem;}
.target-quantity-input{display:flex;align-items:center;gap:6px;}
#targetSheetBody .target-quantity-input input{flex:1;width:0;min-width:0;}
.target-quantity-unit{flex:0 0 auto;max-width:45%;overflow-wrap:anywhere;color:var(--text);font-size:.9rem;font-weight:600;}
.target-process-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1320px;}
.target-process-table th,.target-process-table td{padding:7px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);vertical-align:top;text-align:left;background:var(--surface);}
.target-process-table th{position:sticky;top:0;z-index:3;white-space:nowrap;color:var(--text-muted);font-size:.8rem;}
.target-process-table th:first-child{width:45px}.target-process-table th:nth-child(2){min-width:190px}.target-process-table th:last-child{min-width:145px}
.target-process-table td{min-width:120px}.target-process-table td:first-child{min-width:45px}.target-process-table td:nth-child(2){min-width:190px}.target-process-table td:last-child{min-width:145px}
.target-process-table .target-field{margin-bottom:6px}.target-process-table .target-field:last-child{margin-bottom:0}.target-process-table .target-field>label{font-size:.7rem;}
.target-process-table input[type="number"]{text-align:right;font-variant-numeric:tabular-nums;}
.target-process-table input[type="time"]{text-align:left;font-variant-numeric:tabular-nums;}
.action-dialog #processFields .number-control input[type="number"]{text-align:right;font-variant-numeric:tabular-nums;}
.target-step-number{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;background:var(--surface-2);color:var(--text-muted);font-weight:600;}
.target-step-actions{display:flex;gap:5px;}.target-step-actions button{min-width:40px;}
.target-mobile-actual{min-width:220px;background:rgba(201,123,19,.06)!important;}.target-mobile-actual span{display:block;margin-bottom:8px;line-height:1.5;}.target-mobile-actual .btn{width:100%;min-height:40px;padding:8px;}
.target-bound-reference{min-height:40px;display:flex;align-items:center;padding:8px;border:1px dashed var(--border);border-radius:6px;color:var(--text-muted);font-size:.86rem;}
.target-process-table td.target-empty-table-cell{vertical-align:middle;text-align:center;}
.target-empty-cell{display:block;width:100%;color:var(--text-muted);text-align:center;}
.target-metric-input{display:flex;gap:6px;}
.target-metric-input select{flex:0 0 65px;}
.target-note{font-size:.875rem;color:var(--text-muted);}
.target-sheet-footer{padding:12px 24px;border-top:1px solid var(--border);background:var(--surface);}
.target-sheet-footer .actions{margin:0;}
#targetSheetError{margin:0 0 8px;color:#ffb09b;font-size:.875rem;}
#targetSheetError:empty{display:none;}
.target-sheet-footer p{font-size:.85rem;margin:0 0 8px;color:var(--text-muted);}
.target-import-preview{margin:0;padding:16px 24px;border-top:2px solid var(--copper);background:var(--surface);max-height:42vh;overflow:auto;}.target-import-preview h3{margin:0 0 10px;font-size:1rem;}.target-import-preview p,.target-import-preview li{font-size:.875rem;line-height:1.7;}.target-import-preview ul{margin:8px 0;padding-left:22px;}.target-import-summary{display:flex;gap:8px;flex-wrap:wrap;}.target-import-summary span{padding:7px 10px;border:1px solid var(--border);border-radius:999px;background:var(--surface-2);}.target-import-warning{color:#ffb09b;}.target-import-warning>p{margin:8px 0;color:var(--text-muted);}.target-import-warning:empty{display:none;}
@media(min-width:1000px){
  .target-sheet-tabs{display:grid;}[data-target-sheet-pane]:not([data-active=true]){display:none;}.target-basic-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}.target-sheet-dialog{max-width:none;width:calc(100% - 24px);}.target-section{padding:14px;}.target-field-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.target-result-card .target-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .target-material-section{margin-bottom:10px;padding:0;overflow:hidden;border-radius:8px;}
  .target-material-section>h3{margin:0;padding:7px 9px;border-bottom:1px solid var(--border);background:var(--surface-raised);font-size:.86rem;}
  .target-material-section>.target-note:not(.target-material-footnote){display:none;}
  .target-material-section .target-table-scroll{overflow-x:auto;}
  .target-material-table{display:table;width:100%;min-width:0;table-layout:auto;border-collapse:separate;border-spacing:0;}
  .target-material-table thead{display:table-header-group;}
  .target-material-table tbody{display:table-row-group;}
  .target-material-table tr{display:table-row;padding:0;background:var(--surface-2);}
  .target-material-table th,.target-material-table td{display:table-cell;padding:4px 5px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);vertical-align:middle;white-space:nowrap;}
  .target-material-table th{color:var(--text-muted);font-size:.68rem;text-align:left;background:var(--surface);}
  .target-material-table td::before,.target-material-table .target-field>label{display:none;}
  #targetSheetBody .target-material-table input,#targetSheetBody .target-material-table select{min-width:0;min-height:32px;padding:4px 5px;border-radius:4px;font-size:.78rem;}
  .target-material-table .target-cell-wide{min-width:150px;}
  .target-material-table .target-choice-field select{margin-bottom:3px;}
  .target-material-table .target-inline-note{display:none;}
  .target-row-footer{margin:0;padding:6px 8px;background:var(--surface);}
  .target-row-footer .inv-action-btn{min-height:32px;padding:5px 9px;font-size:.74rem;}
  .target-material-footnote{margin:0;padding:6px 9px;font-size:.72rem;}
  .target-yeast-table{table-layout:fixed;}
}
@media(min-width:1000px){
  .target-process-scroll{overflow-x:visible;}
  .target-process-table{table-layout:fixed;min-width:0;}
  .target-process-table th,.target-process-table td{min-width:0!important;padding:6px 4px;overflow-wrap:anywhere;}
  .target-process-table th{white-space:normal;font-size:.72rem;line-height:1.35;}
  .target-process-table th:nth-child(1){width:3%;}.target-process-table th:nth-child(2){width:11%;}.target-process-table th:nth-child(3){width:10%;}.target-process-table th:nth-child(4){width:8%;}.target-process-table th:nth-child(5){width:8%;}.target-process-table th:nth-child(6){width:7%;}.target-process-table th:nth-child(7){width:10%;}.target-process-table th:nth-child(8){width:6%;}.target-process-table th:nth-child(9){width:13%;}.target-process-table th:nth-child(10){width:15%;}.target-process-table th:nth-child(11){width:9%;}
  #targetSheetBody .target-process-table input,#targetSheetBody .target-process-table select{height:34px;min-height:34px;padding:5px 4px;font-size:.78rem;}
  .brew-process-plan .target-process-table input,.brew-process-plan .target-process-table select{height:34px;min-height:34px;padding:5px 4px;font-size:.78rem;}
  .brew-process-plan .target-process-table input[type="time"]{padding-right:3px;font-variant-numeric:tabular-nums;}
  .brew-process-plan .target-process-table input[type="time"]::-webkit-calendar-picker-indicator{width:14px;height:14px;margin:0;padding:0;opacity:.72;}
  .target-process-table .target-field>label{font-size:.66rem;line-height:1.3;}
  .target-process-table .target-step-head::before{content:"";display:block;height:.86rem;margin-bottom:6px;}
  .target-process-table .target-metric-input{flex-wrap:wrap;gap:3px;}
  .target-process-table .target-metric-input input{flex:1 1 54px;}
  .target-process-table .target-metric-input select{flex:1 1 40px;min-width:0;}
  .target-step-number{width:24px;height:24px;font-size:.78rem;}
  .target-mobile-actual{min-width:0;}.target-mobile-actual span{font-size:.72rem;line-height:1.35;}.target-mobile-actual .btn{min-height:34px;padding:5px 4px;font-size:.72rem;white-space:normal;}
  .target-step-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;}
  .target-step-actions button{min-width:0;padding:5px 2px;font-size:.72rem;}.target-step-actions button:last-child{grid-column:1/-1;}
}
@media(max-width:999px){.brew-process-desktop{display:none;}.brew-process-mobile{display:block;margin-bottom:16px;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);}.target-sheet-panes>[data-target-sheet-pane]{display:block!important;}.target-process-table{min-width:0;}.target-process-table thead{display:none;}.target-process-table tbody,.target-process-table tr{display:block;}.target-process-table tr{margin-bottom:14px;border:1px solid var(--border);border-radius:10px;overflow:hidden;}.target-process-table td{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;width:100%;min-width:0!important;border-right:0;}.target-process-table td::before{content:attr(data-label);color:var(--text-muted);font-size:.78rem;}.target-step-actions{display:flex!important;}.target-step-actions::before{display:none}.target-mobile-actual{display:grid!important;background:rgba(201,123,19,.08)!important;}.target-mobile-actual span{line-height:1.55;}.target-mobile-actual .btn{width:100%;min-height:44px;margin-top:8px;}.target-empty-cell{display:none;}.style-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.target-material-section{margin-bottom:12px;padding:10px;}.target-material-section>h3{margin-bottom:8px;}.target-material-section>.target-note{margin:6px 0;}.target-material-table tbody{gap:8px;}.target-material-table tr{gap:7px;padding:10px;}.target-material-table td::before{margin-bottom:3px;}}
@media(max-width:700px){.target-sheet-dialog{width:calc(100% - 12px);}.target-sheet-head,#targetSheetBody,.target-import-preview,.target-sheet-footer{padding:12px;}.target-section{padding:12px;}.target-field-grid,.target-metrics,.target-goal-actual,.target-result-card .target-field-grid,.target-style-controls{grid-template-columns:1fr;}#targetSheetBody input,#targetSheetBody select{font-size:1rem;min-height:44px;}.target-launch{align-items:flex-start;}.target-launch .btn,.brew-plan-hub .btn{width:100%;}.target-tool-actions{display:grid;grid-template-columns:1fr;}.target-sheet-footer .actions,.target-import-preview .actions{grid-template-columns:1fr;}.target-inline-action{grid-template-columns:1fr;}.target-inline-action .inv-action-btn,.target-style-controls>.inv-action-btn{width:100%;margin-bottom:0;}.target-clear-actions{display:grid;grid-template-columns:1fr;margin-bottom:0;}.target-clear-actions .inv-action-btn{width:100%;}}
