/* Halo · contract screens — split directory, stepper form, bento project */
.ct-draft{--c:#6f6d75;--s:#efeeea}.ct-wait{--c:var(--amber);--s:var(--amber-soft)}.ct-review{--c:var(--blue);--s:var(--blue-soft)}.ct-done{--c:var(--ok);--s:var(--ok-soft)}
.h-dot.ct-draft,.h-dot.ct-wait,.h-dot.ct-review,.h-dot.ct-done{background:var(--c)}
.h-segbar i.ct-draft,.h-segbar i.ct-wait,.h-segbar i.ct-review,.h-segbar i.ct-done,.h-seglegend i.ct-draft,.h-seglegend i.ct-wait,.h-seglegend i.ct-review,.h-seglegend i.ct-done{background:var(--c)}
.ct-k{font-size:12.5px;font-weight:500;color:var(--muted)}
.ct-v{display:block;font-size:24px;font-weight:600;letter-spacing:-.03em;margin:6px 0 4px}.ct-v small{font-size:13px;color:var(--muted);font-weight:500;margin-left:3px}.ct-v.accent{color:var(--accent-deep)}
.ct-bento{grid-auto-rows:auto;margin-bottom:18px}.ct-bento .h-tile{padding:16px 18px}.ct-bento .h-progress{margin:8px 0 0}
.ct-split{min-height:0;border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;background:var(--surface);grid-template-columns:420px 1fr}
.ct-split .h-list-pane{position:static;height:auto;max-height:720px}
.ct-tools{grid-template-columns:1fr auto auto;padding:14px 16px 8px}
.ct-chips{display:flex;gap:6px;flex-wrap:wrap;padding:0 16px 10px}
.h-chipbtn{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 9px;border-radius:999px;border:1px solid var(--line);font-size:12px;color:var(--muted);background:var(--surface)}
.h-chipbtn b{font-weight:600;color:var(--text)}
.h-chipbtn[aria-pressed=true]{background:var(--text);border-color:var(--text);color:#fff}.h-chipbtn[aria-pressed=true] b{color:#fff}
.ct-list li[role=option]{grid-template-columns:auto 1fr auto}
.ct-check{display:grid;place-items:center;width:18px;height:18px}.ct-check input{width:14px;height:14px;margin:0;accent-color:var(--text);cursor:pointer}
.ct-list-side{display:grid;gap:4px;justify-items:end}.ct-list-side b{font-size:12.5px;font-weight:600}
.ct-detail{padding:26px 30px 40px;max-width:none}
.ct-badge{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--accent-soft);color:var(--accent-deep);font:600 16px var(--font-mono),monospace;flex-shrink:0}
.ct-detail .h-profile h2{font-size:20px}.ct-detail .h-profile p{font-size:12px}
.ct-money{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:22px}.ct-money div{padding:12px 14px;border-radius:10px;background:var(--bg);display:grid;gap:4px}.ct-money small{font-size:11.5px;color:var(--muted)}.ct-money b{font-size:15px;font-weight:600}.ct-money b.accent{color:var(--accent-deep)}.ct-money .h-progress{margin:4px 0 0}
.h-props.compact{margin-top:14px}.h-props.compact>div{padding:9px 0;grid-template-columns:110px 1fr}
.ct-steps-mini{display:flex;flex-wrap:wrap;gap:6px}.ct-steps-mini span{padding:4px 9px;border-radius:6px;border:1px solid var(--line);font-size:11.5px;color:var(--muted)}.ct-steps-mini span.done{background:var(--ok-soft);border-color:transparent;color:#166a43}.ct-steps-mini span.now{background:var(--text);border-color:var(--text);color:#fff;font-weight:600}
.ct-steps-mini.list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 14px}.ct-steps-mini.list li{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;border:1px solid var(--line);font-size:12.5px;color:var(--muted)}.ct-steps-mini.list li b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--bg);font-size:11px}.ct-steps-mini.list li.now{border-color:var(--text);color:var(--text);font-weight:600}.ct-steps-mini.list li.now b{background:var(--text);color:#fff}.ct-steps-mini.list li.done{color:var(--text)}.ct-steps-mini.list li.done b{background:var(--ok);color:#fff}
/* entry */
.ct-stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}
.ct-stepper button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);text-align:left;color:var(--muted)}
.ct-stepper b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg);font-size:12px;font-weight:600;flex-shrink:0}.ct-stepper b .icon{width:14px;height:14px}
.ct-stepper strong{display:block;font-size:13px;font-weight:600}.ct-stepper small{font-size:11.5px}
.ct-stepper li.now button{border-color:var(--accent);color:var(--text);box-shadow:0 0 0 3px var(--accent-soft)}.ct-stepper li.now b{background:var(--accent);color:#fff}.ct-stepper li.done button{color:var(--text)}.ct-stepper li.done b{background:var(--ok);color:#fff}
.ct-entry-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.ct-entry-main{display:grid;gap:14px}.ct-stage{display:grid;gap:14px}.ct-stage[hidden]{display:none}
.ct-entry .h-tile-head{flex-wrap:wrap}
.ct-seg{display:flex;padding:2px;border-radius:8px;background:var(--bg)}.ct-seg button{height:26px;padding:0 10px;border-radius:6px;font-size:12px;font-weight:500;color:var(--muted)}.ct-seg button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px rgba(26,25,23,.1)}
.ct-three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ct-lines{display:flex;flex-direction:column-reverse;gap:6px;margin-bottom:10px}
.ct-line{display:grid;grid-template-columns:1fr 70px 130px 120px 28px;gap:8px;align-items:center}.ct-line.head{font-size:11px;color:var(--muted);padding:0 2px}.ct-line.head span:nth-child(n+2){text-align:right}
.ct-line input{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:13px;min-width:0}.ct-line input[type=number]{text-align:right}.ct-line b{text-align:right;font-size:13px;font-weight:600}
.ct-upload{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;align-items:center;padding:14px 16px;border:1px dashed var(--line-strong);border-radius:10px;cursor:pointer;position:relative}.ct-upload .icon{grid-row:span 2;color:var(--accent)}.ct-upload strong{font-size:13px;font-weight:600}.ct-upload span{font-size:12px;color:var(--muted)}.ct-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ct-files{display:grid;gap:4px;margin-top:8px;font-size:12.5px}.ct-files li{display:flex;align-items:center;gap:6px}.ct-files .icon{width:14px;height:14px;color:var(--muted)}
.ct-reviewer{display:flex;align-items:center;gap:12px;margin-top:16px;padding:12px 14px;border-radius:10px;background:var(--bg)}.ct-reviewer strong{display:block;font-size:13px;font-weight:600}.ct-reviewer small{color:var(--muted);font-size:12px}
.ct-confirm{display:flex;align-items:center;gap:8px;font-size:13px;margin-top:6px}.ct-confirm input{accent-color:var(--accent)}
.ct-stage-nav{display:flex;justify-content:space-between;gap:10px}
.ct-summary{position:sticky;top:76px}
.ct-sum-big{display:grid;gap:2px;padding-bottom:12px;border-bottom:1px solid var(--line)}.ct-sum-big small{font-size:11.5px;color:var(--muted)}.ct-sum-big strong{font-size:26px;font-weight:600;letter-spacing:-.03em}
.ct-sum-list{display:grid;gap:8px;margin:12px 0}.ct-sum-list div{display:flex;justify-content:space-between;font-size:13px}.ct-sum-list dt{color:var(--muted)}.ct-sum-list dd{margin:0;font-weight:500}.ct-sum-list .hl{padding-top:8px;border-top:1px solid var(--line)}.ct-sum-list .hl dd{color:var(--accent-deep);font-weight:600}
.ct-sum-progress div:first-child{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.ct-sum-progress b{color:var(--text);font-weight:600}.ct-sum-progress .h-progress{margin:6px 0 10px}.ct-sum-progress .h-progress i{background:var(--accent)}
/* project */
.ct-neg{color:var(--danger)!important}
.ct-tabs{display:flex;gap:2px;margin-bottom:14px;border-bottom:1px solid var(--line)}.ct-tabs button{padding:8px 12px;font-size:13.5px;font-weight:500;color:var(--muted);position:relative}.ct-tabs button b{font-size:11px;color:var(--muted);font-weight:500;margin-left:3px}.ct-tabs button[aria-selected=true]{color:var(--text)}.ct-tabs button[aria-selected=true]::after{content:'';position:absolute;left:12px;right:12px;bottom:-1px;height:2px;background:var(--accent)}
.ct-general{grid-auto-rows:auto}
.ct-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:0 12px}.ct-fields .s-field:has(.wide){grid-column:1/-1}
.ct-partners{display:grid;gap:12px}.ct-partners li{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start}.ct-partners li>div{display:grid;gap:6px;min-width:0}
.ct-inline{height:30px;padding:0 8px;border:1px dashed var(--line-strong);border-radius:7px;background:var(--surface);font-size:13px;min-width:0;width:100%}.ct-inline:hover,.ct-inline:focus{border-style:solid}.ct-inline.num{text-align:right;width:80px}
.ct-partner-row{display:flex;align-items:center;gap:6px}.ct-partner-row span{font-size:12px;color:var(--muted)}
.ct-share{margin-top:14px;font-size:13px;color:var(--muted)}.ct-share b{font-size:18px;font-weight:600;color:var(--text);margin:0 6px}
.ct-wide{grid-column:1/-1}
.ct-wrap{border:0;border-radius:0;margin-top:4px}
.ct-table{min-width:1500px;border-collapse:collapse}.ct-table th{padding:8px 8px;font-size:11.5px;font-weight:500;color:var(--muted);text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;background:#fbfaf8}.ct-table th.ct-group{text-align:center;border-left:1px solid var(--line)}.ct-table th.r,.ct-table td.r{text-align:right}.ct-table td{padding:6px 6px;border-bottom:1px solid var(--line);font-size:13px;white-space:nowrap}
.ct-edit input:not([type=checkbox]),.ct-edit select{height:32px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:12.5px;min-width:110px;width:100%}.ct-edit input.num{text-align:right;min-width:120px}.ct-edit input[type=date]{min-width:136px}
.ct-table tr.selected td{background:var(--accent-soft)}
.ct-table tfoot td{background:#fbfaf8;font-weight:600;font-size:12.5px;padding:10px 8px}.ct-total td{color:var(--accent-deep)}
.ct-round-no{font-size:15px;font-weight:600;color:var(--accent-deep)}.ct-round-no small{font-size:10px;color:var(--muted);font-weight:500;margin-left:2px}
.ct-doclist{display:grid;gap:8px}.ct-doclist li{display:grid;grid-template-columns:auto 90px 1.2fr 1fr 1fr auto;gap:8px;align-items:center}
.ct-file{display:flex;align-items:center;justify-content:space-between;gap:8px;height:30px;padding:0 10px;border:1px dashed var(--line-strong);border-radius:7px;position:relative;cursor:pointer;font-size:12px;min-width:0}.ct-file::after{content:'선택';font-size:11px;color:var(--accent-deep);font-weight:500}.ct-file input{position:absolute;inset:0;opacity:0;cursor:pointer}.ct-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-check-all{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:12.5px;color:var(--muted)}.ct-check-all input{accent-color:var(--text)}
.ct-savebar{margin-top:14px;font-size:12px;color:var(--muted)}
@media (max-width:1180px){.ct-split{grid-template-columns:340px 1fr}.ct-entry-grid{grid-template-columns:1fr}.ct-summary{position:static}.ct-money{grid-template-columns:1fr 1fr}}
@media (max-width:820px){.ct-split{grid-template-columns:1fr}.ct-split .h-list-pane{max-height:none;min-height:0}.ct-tools{grid-template-columns:1fr 1fr}.ct-tools .h-field-search{grid-column:1/-1}.ct-detail{padding:18px 16px 40px}.ct-three{grid-template-columns:1fr}.ct-line{grid-template-columns:1fr 60px 100px}.ct-line b{grid-column:1/2}.ct-line.head{display:none}.ct-stepper{grid-template-columns:1fr}.ct-fields{grid-template-columns:1fr 1fr}.ct-doclist li{grid-template-columns:auto 1fr 1fr;grid-auto-rows:auto}.ct-steps-mini.list{grid-template-columns:1fr 1fr}}
