/* Target setup: one explicit period, optional drivers, readable confirmation. */
.drawer.is-target-workflow{width:min(960px,calc(100vw - 48px));max-height:calc(100dvh - 48px)}
.is-target-workflow .drawer-body{padding:20px 24px;overflow:auto;overscroll-behavior:contain}
.target-workflow{min-width:0}
.target-context-line{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px;margin-bottom:13px}
.target-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:20px}
.target-steps>button{display:flex;align-items:center;gap:11px;min-height:64px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);text-align:left}
.target-steps>button>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;flex:none;background:white;border:1px solid var(--line);font-size:12px}
.target-steps b,.target-steps small{display:block;line-height:1.4}
.target-steps b{font-size:13px;font-weight:600}.target-steps small{font-size:11px;color:var(--muted);margin-top:4px}
.target-steps .current{background:var(--yellow-soft);border-color:#dbc579}.target-steps .current>span{background:var(--yellow);border-color:transparent}
.target-steps .done>span{background:var(--accent);color:white;border-color:transparent}
.target-basics{max-width:590px;margin:0 auto;display:grid;gap:17px}
.target-period-picker{display:flex;flex-wrap:wrap;gap:6px}.target-period-picker .btn{min-height:34px;font-size:12px;padding:6px 14px}
.target-fields{display:grid;gap:14px}.target-fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.target-fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.target-field{gap:5px;font-size:13px}.target-required{font-size:10px;color:var(--muted);font-weight:400;margin-left:5px}
.target-input-wrap{position:relative;display:block}.target-input-wrap>span{position:absolute;top:50%;right:11px;transform:translateY(-50%);pointer-events:none;font-size:11px;color:var(--muted)}
.target-input-wrap input{padding-right:75px;font-size:14px;min-height:41px}.target-input-wrap input[type=date]{padding-right:10px}
.target-field small:not(.target-required){font-size:11px;line-height:1.55;color:var(--muted)}
.target-driver-layout{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);gap:18px}
.target-section{padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--surface);margin-bottom:14px}.target-driver-layout>.target-section{margin-bottom:0}
.target-section-head{margin-bottom:14px}.target-section-head h3{font-size:14px}.target-section-head p{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.65}
.target-formula{background:var(--surface-soft);border-radius:7px;padding:10px 12px;font-size:12px;margin:13px 0 18px;line-height:1.7}.target-formula>span{display:block;color:var(--muted);font-size:10px}
.target-level-tabs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}.target-level-tabs .btn{font-size:11px;min-height:33px;padding:5px 10px}
.target-grade-editor{border-top:1px solid var(--line);padding-top:13px}.target-grade-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.target-grade-title b{font-size:13px}.target-grade-title>span{font-size:10px;color:var(--muted)}
.target-grade-editor .target-fields.three{gap:9px}.target-grade-editor .target-field{font-size:11px}.target-grade-editor input{padding-right:9px}.target-grade-editor .target-input-wrap>span{position:static;transform:none;display:block;margin-top:3px;text-align:right;font-size:10px}
.target-grade-editor .hint{font-size:10px;line-height:1.7;margin-top:12px}
.target-secondary-drivers .target-section:last-child{margin-bottom:0}
.target-review-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:1px 0 17px}.target-review-summary>span{color:var(--muted);font-size:12px}.target-review-summary strong{font-family:var(--font-number);font-size:27px;letter-spacing:-.6px;font-weight:500;white-space:nowrap}
.target-validation{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 14px;padding:10px 12px;background:var(--surface-soft);border-radius:7px;margin-top:10px;font-size:12px}.target-validation b{font-weight:500;text-align:right}.target-validation small{grid-column:1/-1;font-size:11px;color:var(--muted)}.target-validation.ok{background:var(--good-soft)}.target-validation.error{background:var(--bad-soft)}.target-validation.error small{color:var(--bad)}
.target-configured-drivers{padding:0 0 14px}.target-configured-drivers>summary{font-size:12px}.target-driver-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.target-driver-summary>span{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:8px;border-radius:6px}.target-driver-summary b{display:block;font-size:13px;color:var(--text);margin-top:4px}
.target-grade-summary{overflow-x:auto}.target-grade-summary>div{display:grid;grid-template-columns:.8fr .7fr .8fr 1.2fr 1.2fr;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px;min-width:520px}.target-grade-summary>div:first-child{color:var(--muted);font-size:11px}.target-grade-summary span{text-align:right}.target-grade-summary span:first-child{text-align:left}
.target-reason{font-size:12px;margin-bottom:9px}.target-reason textarea{min-height:73px;resize:vertical;font-size:13px}
.target-notice{font-size:12px;line-height:1.65;color:var(--muted);background:var(--yellow-soft);border-radius:7px;padding:10px 12px;margin-bottom:13px}.target-notice .btn{font-size:11px;min-height:27px;padding:0 5px}.target-notice.warning{background:var(--bad-soft);color:var(--bad);margin-top:11px}
.target-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.target-footer>span{font-size:11px;color:var(--muted)}.target-footer>div{display:flex;gap:8px}.target-footer .btn{min-height:39px}
@media(max-width:740px){.drawer.is-target-workflow{width:100%;max-height:100dvh;height:100dvh;border-radius:0}.is-target-workflow .drawer-body{padding:17px 16px}.target-driver-layout{grid-template-columns:1fr;gap:13px}.target-steps{gap:5px;margin-bottom:16px}.target-steps>button{padding:10px 8px;min-height:57px;gap:6px}.target-steps>button>span{width:22px;height:22px;font-size:11px}.target-steps b{font-size:11px}.target-steps small{display:none}.target-section{padding:13px}.target-context-line{font-size:10px;gap:8px}.target-review-summary{display:block}.target-review-summary>span{display:block}.target-review-summary strong{font-size:28px;display:block;margin-top:4px}.target-fields.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.target-grade-editor .target-fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.target-field{font-size:12px}.target-input-wrap input{font-size:15px;min-height:44px;padding-right:65px}.target-input-wrap>span{font-size:10px;right:9px}.target-validation{grid-template-columns:1fr;gap:5px}.target-validation b{text-align:left}.target-validation small{grid-column:auto}.target-driver-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.target-footer>span{display:none}.target-footer>div{width:100%;justify-content:space-between}.target-footer .btn{min-height:44px}.target-level-tabs .btn{min-height:38px;padding:7px 12px}.is-target-workflow .drawer-foot{padding-bottom:max(14px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.is-target-workflow *{scroll-behavior:auto!important}}
@media(max-width:740px){.target-input-wrap input,.target-reason textarea{font-size:16px}.target-grade-editor .target-fields.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.target-level-tabs .btn{min-height:44px}.target-section-head p,.target-grade-editor .hint,.target-field small:not(.target-required),.target-validation small,.target-context-line{font-size:12px}.target-steps b{font-size:12px}}
