/* 文件簽核 (claude-esign-20261113): 照 運算節點／技能 的元件，只補簽核卡自己的部分。 */
.es-bar{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 6px}
.es-upload{display:inline-flex;align-items:center;gap:6px}
.es-upload svg{width:18px;height:18px}
.es-row .node-dot{margin:0 4px 0 2px}
.es-empty{margin:10px 2px}
.es-meta{margin:2px 0 12px;overflow-wrap:anywhere}
.es-fields{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 16px;margin:14px 0;padding:16px 18px;border:1px solid var(--line);border-radius:18px;font-size:15px;line-height:1.55}
.es-fields dt{color:var(--muted);white-space:nowrap}
.es-fields dd{margin:0;overflow-wrap:anywhere}
.es-peers{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.es-peer{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;font-size:14px}
.es-peer::before{content:"";width:8px;height:8px;border-radius:50%;background:#218253}
.es-peer.warn::before{background:#b75a08}
:root[data-theme=dark] .es-peer::before{background:#62c991}
:root[data-theme=dark] .es-peer.warn::before{background:#f5a35d}
.es-flags{margin:6px 0 14px;padding:12px 16px;border:1px solid #b75a0855;border-radius:16px;background:#b75a080d;font-size:14px;line-height:1.55}
.es-flags strong{display:block;margin-bottom:2px}
.es-flags ul{margin:0;padding-left:20px}
:root[data-theme=dark] .es-flags{border-color:#f5a35d55;background:#f5a35d12}
.es-decision,.es-target{display:flex;width:100%;max-width:420px;margin:4px 0 8px}
.es-decision button,.es-target button{flex:1 1 0;min-width:0}
.es-reason{margin:6px 0 4px}
.es-reason textarea,.es-card textarea{width:100%;box-sizing:border-box;font:inherit;font-size:15px;line-height:1.5;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);resize:vertical}
.es-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.es-chip{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;min-height:32px}
.es-chip:active{background:var(--hover)}
.es-preview-box{margin:4px 0 6px}
.es-preview-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.es-preview{border-collapse:collapse;width:100%;font-size:13px;line-height:1.4}
.es-preview td{border:1px solid var(--line);padding:6px 8px;text-align:center;vertical-align:middle;min-width:64px}
.es-preview tr:first-child td{font-weight:600}
.es-preview td:first-child{text-align:left;color:var(--muted);min-width:4.5em;max-width:6.5em}
.es-preview td.es-mine{background:#21825312;outline:2px solid #21825366;outline-offset:-2px}
:root[data-theme=dark] .es-preview td.es-mine{background:#62c99118;outline-color:#62c99166}
.es-opts{display:inline-flex;flex-wrap:wrap;gap:2px 8px;justify-content:center;color:var(--muted)}
.es-opts .es-on{color:var(--ink);font-weight:600}
.es-seal{display:block;width:44px;height:44px;margin:2px auto;object-fit:contain}
.es-sig{display:inline-block;padding:2px 8px;border-radius:6px;background:var(--surface);color:var(--muted);font-size:12px}
.es-where{display:flex;flex-direction:column;gap:2px;margin:4px 0 8px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.es-copy{margin-top:8px}
.es-plan{margin:14px 2px 10px;min-height:1.5em;overflow-wrap:anywhere}
.es-confirm{width:100%;max-width:420px;min-height:48px;font-size:16px}
.es-confirm:disabled{opacity:.45}
.es-acts{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.es-acts a.choice-button{text-decoration:none;display:inline-flex;align-items:center}
.es-history{margin-top:18px}
.es-audit-row{padding:10px 18px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.es-audit-row:last-child{border-bottom:0}
.es-audit-row p{margin:0}
.es-hash{display:block;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}
.es-seal-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.es-seal-thumb{width:48px;height:48px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fff;flex:none}
.es-seal-acts{display:flex;gap:8px;margin-left:auto}
.es-seal-acts .danger,.es-settings .danger{border-color:#c0392b;color:#c0392b}
.es-test{padding:0 18px}
.es-test-line{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:14px;line-height:1.5}
.es-test-line .node-dot{width:8px;height:8px;box-shadow:none}
.es-node-note{margin:8px 18px 12px}
.es-how{margin:0 0 12px;font-size:14px;line-height:1.6}
.es-how summary{cursor:pointer;color:var(--ink);font-weight:600}
.es-how ol{margin:8px 0 0;padding-left:20px}
.es-form textarea{width:100%;box-sizing:border-box}
@media (max-width:520px){.es-seal-acts{margin-left:60px}.es-preview{font-size:12px}.es-preview td{padding:5px 4px;min-width:52px}.es-fields{padding:14px 16px;gap:8px 12px}}

.es-block{margin:0 0 6px}
.es-switch-group{margin:0 0 10px}
.es-row .preference-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.es-row .preference-text small{white-space:normal;text-align:left;margin:0;max-width:100%;overflow-wrap:anywhere}
.es-row .preference-text>span{overflow-wrap:anywhere}
.es-check-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px}
.es-check-now{margin-left:auto;white-space:nowrap}
@media (max-width:520px){.es-check-row{grid-template-columns:auto minmax(0,1fr)}.es-check-now{grid-column:2;justify-self:start;margin:8px 0 2px}}
.es-hours{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%}
.es-hours input{flex:1 1 8em;min-width:0;width:100%;box-sizing:border-box}
.es-form{min-width:0;max-width:100%}
.es-form .fine{overflow-wrap:anywhere}
.es-check-row .preference-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.es-check-row .preference-text small{white-space:normal;text-align:left;margin:0;max-width:100%}
.es-check{display:flex;align-items:flex-start;gap:8px;font-size:15px;line-height:1.5;margin:4px 0}
.es-check input{margin-top:4px;flex:none}

/* 第 3 版（claude-esign3-20261113）：個人／公司文件、印章與簽名、身分與公司資料、用印登記簿 */
.es-note{margin:6px 2px 12px;overflow-wrap:anywhere}
.es-note .link-button{margin-left:6px}
.es-seg{display:flex;width:100%;max-width:420px;margin:4px 0 8px}
.es-seg button{flex:1 1 0;min-width:0}
.es-clause-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:16px}
.es-clause-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:10px 14px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.es-clause-list li:last-child{border-bottom:0}
.es-chip-static{flex:none;padding:2px 9px;border-radius:999px;background:#b75a0814;color:#8a4306;font-size:12px;font-weight:600}
:root[data-theme=dark] .es-chip-static{background:#f5a35d1c;color:#f5b77d}
.es-tgts{border:1px solid var(--line);border-radius:16px;overflow:hidden}
.es-tgt{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 12px;padding:12px 14px;border-bottom:1px solid var(--line);cursor:pointer;min-height:48px;box-sizing:border-box}
.es-tgt:last-child{border-bottom:0}
.es-tgt input[type=checkbox]{width:20px;height:20px;margin:2px 0 0;flex:none}
.es-tgt-text{display:flex;flex-direction:column;gap:2px;flex:1 1 12em;min-width:0;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.es-tgt-text small{font-size:13px}
.es-tgt.missing{cursor:default}
.es-tgt.missing .es-tgt-text>span{color:var(--muted)}
.es-blank{flex:1 1 100%;min-width:0;box-sizing:border-box;font:inherit;font-size:15px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);margin-left:32px;max-width:calc(100% - 32px)}
.es-untap{margin-left:auto;min-height:36px}
.es-tapbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 6px}
.es-tapbar .es-seg{max-width:320px;margin:0}
.es-tapbar p{flex:1 1 100%;margin:0}
.es-pdf-box{min-height:120px}
.es-pdf{display:flex;flex-direction:column;align-items:center;gap:14px;padding:12px 0;background:var(--surface);border-radius:16px;overflow:hidden}
.es-pdfpage{position:relative;background:#fff;box-shadow:0 1px 4px #0002;max-width:100%}
.es-pdfpage canvas{display:block}
.es-pdfpage.tappable{cursor:crosshair}
.es-pdfpage-no{position:absolute;right:6px;bottom:4px;padding:1px 6px;border-radius:6px;background:#0007;color:#fff;font-size:11px}
.es-box{position:absolute;box-sizing:border-box;border:2px dashed #8a8f98;border-radius:6px;font-size:10px;line-height:1;color:#555;padding:1px 3px;pointer-events:none;background:#ffffff40}
.es-box.on{border:2px solid #218253;background:#2182531a;color:#165c3a}
.es-box.tap{border-color:#b75a08;background:#b75a0814;color:#8a4306}
.es-marks .es-mark-row{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line)}
.es-marks .es-mark-row:last-child{border-bottom:0}
.es-mark-row.off .es-seal-thumb{opacity:.45}
.es-mark-text{flex:1 1 auto;min-width:0;white-space:normal;display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:none;border:0;padding:4px 0;font:inherit;color:var(--ink);text-align:left;cursor:pointer;min-height:44px}
.es-mark-text small{color:var(--muted);font-size:13px;line-height:1.4;overflow-wrap:anywhere;white-space:normal;text-align:left}
.es-mark-text>span{white-space:normal;text-align:left}
.es-mark-big{display:block;max-width:220px;max-height:160px;margin:0 auto 10px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px}
.es-stage{display:flex;flex-direction:column;gap:10px;margin:0 0 10px}
.es-stage>.choice-button{align-self:flex-start}
.es-cut{display:flex;justify-content:center;align-items:center;min-height:120px;margin:0 0 12px;border:1px dashed var(--line);border-radius:14px;
 background:conic-gradient(#eee 25%,#fff 0 50%,#eee 0 75%,#fff 0) 0 0/16px 16px}
.es-cut img{max-width:100%;max-height:220px;object-fit:contain}
.es-cut p{background:var(--bg);padding:4px 8px;border-radius:8px}
.es-pad{display:block;width:100%;aspect-ratio:3/1;border:1px solid var(--line);border-radius:14px;background:#fff;touch-action:none;cursor:crosshair}
.es-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 12px}
.es-filter select,.es-filter input{min-width:0;flex:1 1 9em;max-width:16em;font:inherit;font-size:15px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink)}
.es-filter a.choice-button{text-decoration:none;display:inline-flex;align-items:center}
.es-id-row .preference-text small{white-space:normal;overflow-wrap:anywhere;text-align:left}
.es-marks .es-mark-row>.ds-switch,.es-marks .es-mark-row>label,.es-marks .es-mark-row>span:last-child{flex:none}
.es-use-row{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.es-use-row:last-child{border-bottom:0}
.es-use-title{font-size:15px;line-height:1.45}
.es-use-row small{font-size:13px;line-height:1.45}
@media (max-width:520px){.es-blank{margin-left:0;max-width:100%}.es-filter select,.es-filter input{max-width:none}}

/* 3c（claude-esign3c-20261114）：好幾家公司時選一家 */
.es-company{width:100%;max-width:420px;box-sizing:border-box;font:inherit;font-size:15px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);margin:4px 0 6px}

/* esign4（claude-esign4-20261114）：簽好要哪種檔、字型、版面比對結果 */
.es-output .es-seg{max-width:460px}
.es-fonts{margin-top:8px}
.es-fonts .es-check{margin-top:6px}
.es-layout{margin:6px 0 0}
.es-layout.bad{color:var(--danger,#c0392b)}
.es-box{white-space:nowrap;overflow:hidden}
/* 設定重整（claude-settings-leaf-20261121）：共用控制在簽核表單裡的位置 */
.es-hours .ui-select{flex:1 1 8em;min-width:0}
.es-tgt{align-items:center}.es-tgt-switch{margin-left:auto;flex:none;padding-top:0;padding-bottom:0}
.es-filter .ui-select{flex:1 1 9em;max-width:16em;min-height:40px}
.es-fonts .ui-check{margin-top:6px}
/* 好用度巡頁第 3 批（claude-uxp3-sec-20261125）：狀態一句、試簽模式一列、「更多」「設定」收起來 */
.es-page>.es-ux-status{margin:14px 0 10px}
.es-page>.es-trial-group{margin:14px 0 10px}
.es-page>.ux-fold{margin:0 0 10px}
.es-more-line{margin:4px 14px 8px;overflow-wrap:anywhere;text-wrap:pretty}
.es-uses .ux-list{margin-top:10px}
/* claude-esignfolder-20261130：狀態卡裡的〔重試〕，跟灰字同一條左邊線 */
.es-ux-status .es-retry{align-self:flex-start;margin:4px 0 0 19px;min-height:40px}
