/* 快账工具原样式，选择器限定在工具内容。 */
/* Scoped to the local utility workspace, including CMS and mobile embedding. */
:where(.study-tools-embed) .utility-view .tool-heading, :where(.study-tools-embed).utility-view .tool-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:8px 0 16px}
:where(.study-tools-embed) .utility-view .tool-heading h1, :where(.study-tools-embed).utility-view .tool-heading h1{font-size:25px;line-height:1.5;font-weight:600}
:where(.study-tools-embed) .utility-view .workspace-topbar, :where(.study-tools-embed).utility-view .workspace-topbar{margin-bottom:8px}
:where(.study-tools-embed) .utility-view #utilityForm, :where(.study-tools-embed).utility-view #utilityForm{padding:20px;max-height:none;display:block}
:where(.study-tools-embed) .utility-view .panel-topline, :where(.study-tools-embed).utility-view .panel-topline{margin-bottom:18px;gap:12px;flex-wrap:wrap}
:where(.study-tools-embed) .utility-view .panel-caption, :where(.study-tools-embed).utility-view .panel-caption{font-size:15px;font-weight:500;white-space:nowrap}
:where(.study-tools-embed) .utility-view .example-control, :where(.study-tools-embed).utility-view .example-control{flex:1 1 140px;min-width:0;max-width:200px;margin-left:auto}
:where(.study-tools-embed) .utility-view .example-control select, :where(.study-tools-embed).utility-view .example-control select{width:100%;min-width:0;max-width:100%}
:where(.study-tools-embed) .utility-view .form-utilities, :where(.study-tools-embed).utility-view .form-utilities{flex-shrink:0;margin-left:auto}
:where(.study-tools-embed) .utility-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
:where(.study-tools-embed) .utility-fields .field{min-width:0;margin:0}
:where(.study-tools-embed) .utility-fields .utility-wide{grid-column:1/-1}
:where(.study-tools-embed) .utility-view .utility-fields .field:has(textarea):not(.utility-wide), :where(.study-tools-embed).utility-view .utility-fields .field:has(textarea):not(.utility-wide){grid-column:auto}
:where(.study-tools-embed) .utility-fields label{font-size:14px;line-height:1.6}
:where(.study-tools-embed) .utility-fields textarea{width:100%;min-height:145px;padding:12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font:14px/1.8 'PingFang SC','Microsoft YaHei',sans-serif;resize:vertical;tab-size:4}
:where(.study-tools-embed) .utility-fields input[type=number], :where(.study-tools-embed) .utility-fields input[type=text], :where(.study-tools-embed) .utility-fields select{width:100%;min-width:0;min-height:42px}
:where(.study-tools-embed) .utility-fields input[type=date]{width:100%;min-width:0;max-width:100%;min-height:42px;padding:8px;border:1px solid var(--line);border-radius:7px;background:white;box-sizing:border-box}
:where(.study-tools-embed) .utility-fields [hidden]{display:none!important}
:where(.study-tools-embed) .utility-fields .utility-import{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--muted);margin-top:8px}
:where(.study-tools-embed) .utility-import input{max-width:100%;font-size:12px}
:where(.study-tools-embed) .utility-table-wrap{max-width:100%;overflow:auto;max-height:480px;margin-top:15px;border:1px solid var(--line);border-radius:7px}
:where(.study-tools-embed) .utility-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.7;white-space:nowrap}
:where(.study-tools-embed) .utility-table th, :where(.study-tools-embed) .utility-table td{padding:9px 12px;text-align:left;border-bottom:1px solid var(--line)}
:where(.study-tools-embed) .utility-table th{position:sticky;top:0;background:#f5f7fa;font-weight:500;color:var(--muted)}
:where(.study-tools-embed) .utility-table td{max-width:250px;white-space:normal;overflow-wrap:anywhere;min-width:80px}
:where(.study-tools-embed) .utility-table td.utility-numeric{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;text-align:right}
:where(.study-tools-embed) .utility-workspace>*{min-width:0}
:where(.study-tools-embed) .utility-view .utility-tabular, :where(.study-tools-embed).utility-view .utility-tabular{grid-template-columns:minmax(0,1fr)}
:where(.study-tools-embed) .utility-view .utility-tabular .result-column, :where(.study-tools-embed).utility-view .utility-tabular .result-column{position:static}
:where(.study-tools-embed) .utility-fields input[type=color]{width:100%;height:42px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:4px}
:where(.study-tools-embed) .utility-fields .check-label{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.7}
:where(.study-tools-embed) .utility-fields .field-hint{font-size:12px;line-height:1.7;min-height:0;margin-top:5px}
:where(.study-tools-embed) .utility-privacy{font-size:12px;color:var(--muted);margin-top:18px;line-height:1.7}
:where(.study-tools-embed) .utility-sample{background:#f4f7fc;border-radius:6px;padding:8px 10px;margin-bottom:15px}
:where(.study-tools-embed) .utility-view .result-card, :where(.study-tools-embed).utility-view .result-card{padding:20px;max-height:none;overflow:visible}
:where(.study-tools-embed) .utility-empty{padding:34px 8px;text-align:center;color:var(--muted);font-size:14px}
:where(.study-tools-embed) .utility-number{font-size:29px;font-weight:500;color:var(--ink);line-height:1.6;overflow-wrap:anywhere;margin:16px 0}
:where(.study-tools-embed) .utility-number small{font-size:15px;color:var(--muted);margin-left:7px}
:where(.study-tools-embed) .utility-output{display:block;width:100%;min-height:220px;max-height:520px;padding:12px;border:1px solid var(--line);border-radius:7px;font:14px/1.8 'PingFang SC','Microsoft YaHei',sans-serif;resize:vertical;background:#fafbfd;color:var(--ink);tab-size:4}
/* Pair each label with its value; a long formula must not size every label column. */
:where(.study-tools-embed) .utility-view .utility-stats, :where(.study-tools-embed).utility-view .utility-stats{display:block;margin:12px 0 0;font-size:14px;line-height:1.7}
:where(.study-tools-embed) .utility-view .utility-stat-row, :where(.study-tools-embed).utility-view .utility-stat-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
:where(.study-tools-embed) .utility-view .utility-stat-row:last-child, :where(.study-tools-embed).utility-view .utility-stat-row:last-child{border-bottom:0}
:where(.study-tools-embed) .utility-view .utility-stats dt, :where(.study-tools-embed).utility-view .utility-stats dt, :where(.study-tools-embed) .utility-view .utility-stats dd, :where(.study-tools-embed).utility-view .utility-stats dd{float:none;width:auto;min-width:0;max-width:none;margin:0;white-space:normal;word-break:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.7}
:where(.study-tools-embed) .utility-view .utility-stats dt, :where(.study-tools-embed).utility-view .utility-stats dt{color:var(--muted);font-weight:400}
:where(.study-tools-embed) .utility-view .utility-stats dd, :where(.study-tools-embed).utility-view .utility-stats dd{text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
:where(.study-tools-embed) .utility-view .utility-stat-row-wide, :where(.study-tools-embed).utility-view .utility-stat-row-wide{grid-template-columns:minmax(0,1fr);gap:5px}
:where(.study-tools-embed) .utility-view .utility-stat-row-wide dd, :where(.study-tools-embed).utility-view .utility-stat-row-wide dd{text-align:left}
:where(.study-tools-embed) .utility-warning{background:#fff8e8;color:#805c25;border-radius:6px;padding:10px 12px;font-size:13px;line-height:1.8;margin-top:14px}
:where(.study-tools-embed) .utility-view #utilityError, :where(.study-tools-embed).utility-view #utilityError{margin:10px 0 16px}
:where(.study-tools-embed) .utility-view .utility-notes, :where(.study-tools-embed).utility-view .utility-notes{margin:12px 0 0;padding-left:21px;color:var(--muted);font-size:13px;line-height:1.9}
:where(.study-tools-embed) .utility-view .utility-notes li+li, :where(.study-tools-embed).utility-view .utility-notes li+li{margin-top:5px}
:where(.study-tools-embed) .utility-view .result-actions, :where(.study-tools-embed).utility-view .result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
:where(.study-tools-embed) .utility-view .result-actions .button, :where(.study-tools-embed).utility-view .result-actions .button{flex:1;min-width:110px;min-height:40px}
:where(.study-tools-embed) .utility-view #utilityMessage, :where(.study-tools-embed).utility-view #utilityMessage{margin-top:10px}
:where(.study-tools-embed) .utility-view[data-operation=diff] .utility-workspace, :where(.study-tools-embed).utility-view[data-operation=diff] .utility-workspace{grid-template-columns:1fr}
:where(.study-tools-embed) .utility-view[data-operation=diff] .utility-workspace .result-column, :where(.study-tools-embed).utility-view[data-operation=diff] .utility-workspace .result-column{position:static}
:where(.study-tools-embed) .utility-diff{max-height:520px;overflow:auto;border:1px solid var(--line);border-radius:7px;font:14px/1.8 'PingFang SC','Microsoft YaHei',sans-serif;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;tab-size:4}
:where(.study-tools-embed) .utility-diff ins{background:#e3f5eb;color:#175e38;text-decoration:underline;text-decoration-style:solid}
:where(.study-tools-embed) .utility-diff del{background:#ffe9e7;color:#9a352d;text-decoration:line-through}
:where(.study-tools-embed) .utility-diff-legend{display:flex;gap:18px;font-size:12px;margin:0 0 10px;color:var(--muted)}
:where(.study-tools-embed) .utility-qr{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:15px}
:where(.study-tools-embed) .utility-qr canvas{max-width:100%;height:auto;image-rendering:pixelated;border:1px solid var(--line)}
:where(.study-tools-embed) .utility-generate{display:block;width:100%;margin-top:20px;min-height:44px}
:where(.study-tools-embed) .tone-text{background:#f2effb;color:#7963ab}
:where(.study-tools-embed) .utility-view #utilityCopyDialog, :where(.study-tools-embed).utility-view #utilityCopyDialog{max-width:600px}
@media(max-width:1050px){:where(.study-tools-embed) .utility-view .utility-workspace, :where(.study-tools-embed).utility-view .utility-workspace{grid-template-columns:1fr}:where(.study-tools-embed) .utility-view #utilityForm, :where(.study-tools-embed).utility-view #utilityForm, :where(.study-tools-embed) .utility-view .result-card, :where(.study-tools-embed).utility-view .result-card{padding:18px}:where(.study-tools-embed) .utility-view .tool-heading h1, :where(.study-tools-embed).utility-view .tool-heading h1{font-size:23px}}
@media(max-width:600px){:where(.study-tools-embed) .utility-fields{grid-template-columns:1fr;gap:15px}:where(.study-tools-embed) .utility-view .panel-topline, :where(.study-tools-embed).utility-view .panel-topline{flex-wrap:wrap;gap:10px}:where(.study-tools-embed) .utility-view .example-control, :where(.study-tools-embed).utility-view .example-control{max-width:160px}:where(.study-tools-embed) .utility-view .form-utilities, :where(.study-tools-embed).utility-view .form-utilities{margin-left:auto}:where(.study-tools-embed) .utility-view .tool-heading h1, :where(.study-tools-embed).utility-view .tool-heading h1{font-size:22px}:where(.study-tools-embed) .utility-view .tool-heading, :where(.study-tools-embed).utility-view .tool-heading{gap:10px}:where(.study-tools-embed) .utility-number{font-size:25px}:where(.study-tools-embed) .utility-fields textarea{min-height:150px}}
@media print{:where(.study-tools-embed) .utility-view .input-panel, :where(.study-tools-embed).utility-view .input-panel, :where(.study-tools-embed) .utility-view .result-actions, :where(.study-tools-embed).utility-view .result-actions{display:none}:where(.study-tools-embed) .utility-view .utility-workspace, :where(.study-tools-embed).utility-view .utility-workspace{display:block}:where(.study-tools-embed) .utility-output, :where(.study-tools-embed) .utility-diff{max-height:none;overflow:visible}}
