.tool-page{max-width:1140px;margin:0 auto;padding:30px 0 40px}.tool-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.tool-page-heading .eyebrow{font-size:10px;letter-spacing:.16em;color:var(--accent);margin-bottom:8px}.tool-page-heading h2{font-size:28px;line-height:1.4;letter-spacing:-.02em}.tool-page-heading p{font-size:14px;color:var(--muted);margin-top:10px;line-height:1.8}.tool-record-link{white-space:nowrap;text-decoration:none;gap:6px;font-size:13px}.tool-steps{list-style:none;display:flex;gap:34px;align-items:center;margin:0 0 24px;padding:0;font-size:12px;color:var(--muted)}.tool-steps li{display:flex;align-items:center;gap:8px}.tool-steps b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:600}.tool-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.tool-source-card,.tool-settings-card,.tool-result-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.tool-source-card{padding:24px;min-height:390px}.tool-card-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:22px}.tool-card-heading h3,.tool-settings-card>h3{font-size:16px;margin:0}.tool-card-heading>span{font-size:11px;color:var(--muted)}.tool-settings-card{padding:24px}.tool-settings-card>h3{margin-bottom:22px}.tool-drop{border:1.5px dashed var(--line-strong);border-radius:10px;background:var(--surface-soft);transition:background .15s,border-color .15s}.tool-drop:hover,.tool-drop.dragover,.tool-drop:focus-within{border-color:var(--accent);background:var(--accent-soft)}.tool-drop:focus-within{outline:2px solid var(--accent);outline-offset:3px}.tool-drop-label{min-height:282px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;cursor:pointer;padding:24px;text-align:center}.tool-upload-icon{width:56px;height:56px;background:var(--accent-soft);border-radius:14px;display:grid;place-items:center;color:var(--accent);margin-bottom:3px}.tool-upload-icon .ui-icon{width:28px;height:28px}.tool-drop-label strong{font-size:15px;font-weight:600}.tool-drop-label>span:not(.tool-upload-icon):not(.secondary){font-size:12px;color:var(--muted)}.tool-drop-label .secondary{font-size:12px;padding:7px 19px;background:var(--surface);border:1px solid var(--line-strong);border-radius:6px;color:var(--text-secondary)}.tool-field-label{display:block;font-size:13px;font-weight:600;margin-bottom:12px}.tool-url{width:100%;min-height:222px;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:16px;font:inherit;font-size:14px;line-height:1.9;background:var(--surface-soft);color:inherit}.tool-url::placeholder{color:var(--muted)}.tool-url:focus,.tool-select:focus{outline:2px solid var(--focus);outline-offset:2px}.tool-help{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0 0}.tool-source-switch{display:flex;gap:4px;padding:4px;background:var(--surface-soft);border-radius:8px;margin-bottom:22px;width:fit-content}.tool-source-switch button{border:0;border-radius:5px;min-height:35px;padding:8px 17px;background:transparent;font-size:12px;color:var(--muted)}.tool-source-switch button.active{background:var(--surface);color:var(--accent);box-shadow:0 1px 4px #25233810;font-weight:600}.tool-options{border:0;padding:0;margin:0}.tool-options legend{font-size:12px;color:var(--muted);margin-bottom:12px}.tool-choice{display:flex;align-items:flex-start;gap:10px;padding:13px 12px;border:1px solid var(--line);border-radius:8px;margin-bottom:10px;cursor:pointer}.tool-choice:has(input:checked){background:var(--accent-soft);border-color:var(--accent-line)}.tool-choice input{margin-top:4px;accent-color:var(--accent)}.tool-choice strong{font-size:13px;display:block;font-weight:600}.tool-choice small{font-size:11px;color:var(--muted);display:block;margin-top:6px;line-height:1.6}.tool-select{width:100%;padding:12px 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:12px;color:inherit}.tool-output-type{font-size:12px;display:grid;gap:10px;padding:16px;background:var(--surface-soft);border-radius:7px;color:var(--muted)}.tool-output-type strong{font-size:14px;color:var(--text);font-weight:500}.tool-cost{border-top:1px solid var(--line);margin-top:22px;padding:19px 0}.tool-cost>span{font-size:11px;color:var(--muted)}.tool-cost p{font-size:13px;line-height:1.8;color:var(--text-secondary);margin:8px 0}.tool-cost small{font-size:11px;color:var(--muted)}.tool-settings-card .primary{font-size:14px;min-height:44px;border-radius:7px}.tool-settings-card .primary:disabled{opacity:1;cursor:not-allowed}.tool-submit-note{text-align:center;font-size:10px;color:var(--muted);margin:10px 0 0}.tool-status{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text-secondary);margin-top:14px}.tool-status:empty{display:none}.tool-tips{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.tool-tips h4{font-size:12px;margin-bottom:10px;font-weight:600}.tool-tips ul{margin:0;padding-left:15px;color:var(--muted);font-size:11px;line-height:1.9}.tool-tips li+li{margin-top:6px}.tool-result-card{margin-top:22px;padding:23px 24px}.tool-result-card .tool-card-heading{margin-bottom:10px}.tool-result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:134px;color:var(--muted);text-align:center;font-size:13px}.tool-result-empty .ui-icon{width:25px;height:25px;color:var(--icon-muted)}.tool-result-empty small{font-size:11px;color:var(--muted)}.tool-result-empty progress{width:150px;height:5px;accent-color:var(--accent)}.tool-result-body .tool-transcript{width:100%;padding:15px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:14px}.tool-result-body>p{font-size:12px;color:var(--muted);margin-top:12px}.tool-media-preview{border-radius:8px;background:var(--surface-soft);min-height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:14px}.tool-media-preview img,.tool-media-preview video{display:block;max-width:100%;max-height:290px;object-fit:contain;border-radius:5px}.tool-media-preview audio{max-width:100%}.tool-file-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-top:18px}.tool-file-line>div{min-width:0}.tool-file-line strong{font-size:13px;display:block;overflow-wrap:anywhere}.tool-file-line small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.tool-file-line button{font-size:12px;white-space:nowrap}.tool-document-badge{display:grid;place-items:center;width:66px;height:78px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);color:var(--accent);font-size:14px;font-weight:700}.tool-media-preview>p{font-size:12px;color:var(--muted)}
.records-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;flex-wrap:wrap}.records-toolbar label{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.records-toolbar select{padding:9px 30px 9px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text-secondary);font-size:12px}.records-toolbar input{border:1px solid var(--line);border-radius:7px;padding:10px 12px;min-width:230px;font-size:12px}.record-kind{display:inline-block;color:var(--accent);font-size:10px;margin-bottom:7px;background:var(--accent-soft);border-radius:4px;padding:3px 6px}.record-result{margin-top:22px}.record-result textarea{width:100%;padding:14px;border:1px solid var(--line);border-radius:7px}.record-result-status{font-size:12px;color:var(--muted);margin:12px 0}.records-empty{padding:65px 18px;text-align:center;color:var(--muted);font-size:13px;display:grid;justify-items:center;gap:13px}.records-empty .ui-icon{width:30px;height:30px;color:var(--icon-muted)}.records-empty strong{font-size:16px;color:var(--text-secondary)}.records-empty a{font-size:13px;color:var(--accent)}.task-name-copy strong{overflow-wrap:anywhere}.record-query{font-size:12px}.task-filters button:focus-visible,.tool-source-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:1100px){.tool-layout{grid-template-columns:minmax(0,1fr) 254px;gap:16px}.tool-source-card,.tool-settings-card{padding:20px}.tool-drop-label{padding:18px}.tool-page-heading h2{font-size:25px}}
@media(max-width:760px){.tool-page{padding-top:22px}.tool-page-heading{align-items:flex-start;gap:14px}.tool-page-heading h2{font-size:24px}.tool-page-heading p{font-size:12px}.tool-record-link{font-size:11px}.tool-steps{gap:18px;font-size:11px;flex-wrap:wrap}.tool-layout{grid-template-columns:1fr}.tool-source-card{min-height:0}.tool-settings-card{padding:22px}.tool-settings-card>h3{margin-bottom:16px}.tool-tips{margin-top:16px;padding-top:16px}.tool-drop-label{min-height:230px}.tool-result-card{padding:20px}.tool-card-heading>span{font-size:10px}.tool-source-switch button{padding:8px 12px}.records-toolbar{align-items:stretch}.records-toolbar label{flex:1}.records-toolbar input{width:100%;min-width:0}.task-center .section-title h2{font-size:23px}.task-center .section-title p{font-size:12px}.task-center .task-filters{gap:3px}.task-center .task-filters button{font-size:12px;padding:8px 10px}.task-center .task-filters>span{width:100%;margin:8px 0 0}}

.tool-image-result{margin:16px 0;display:flex;justify-content:center;background:var(--surface-soft);border-radius:8px;padding:16px}.tool-image-result img{display:block;max-width:100%;max-height:440px;object-fit:contain}.tool-tips h4{margin-top:0}

.records-toolbar label{white-space:nowrap}.records-toolbar label:last-child{margin-left:auto}

.tool-layout{grid-template-areas:"source settings" "result settings";grid-template-rows:auto 1fr}.tool-source-card{grid-area:source}.tool-settings-card{grid-area:settings}.tool-result-card{grid-area:result;margin-top:0}.tool-page .tool-result-card{align-self:start}@media(max-width:760px){.tool-layout{grid-template-areas:"source" "settings" "result";grid-template-rows:auto}}

/* Stateful interactions: progress, focus and disabled editing. */
.tool-steps li.current{color:var(--accent);font-weight:600}.tool-steps li.current b{background:var(--accent);color:var(--on-brand)}.tool-steps li.done b{background:var(--accent-soft);color:var(--accent)}
.tool-file-line>div{flex:1}.tool-file-line{flex-wrap:wrap}.tool-file-line button{flex:none}.tool-choice:focus-within{outline:2px solid var(--focus);outline-offset:2px}.tool-layout[aria-busy="true"] .tool-drop-label{cursor:wait}.tool-layout[aria-busy="true"] .tool-drop{opacity:.65}

/* Shared workbench component refinements. */
.tool-source-card,.tool-settings-card,.tool-result-card{border-radius:var(--radius-lg)}.tool-drop{border-radius:var(--radius-md)}.tool-choice{border-radius:var(--radius-md);transition:background-color .15s,border-color .15s,transform .08s}.tool-choice:active{transform:translateY(1px)}.tool-source-switch button{transition:background-color .15s,color .15s,transform .08s}.tool-source-switch button:active{transform:translateY(1px)}.tool-submit-note,.tool-tips ul,.tool-card-heading>span,.tool-cost>span,.tool-cost small,.tool-result-empty small,.tool-file-line small{font-size:12px}.tool-status[data-tone="error"]{color:var(--danger)}.tool-status[data-tone="success"]{color:var(--success)}.tool-status[data-tone="warning"]{color:var(--warning-text)}.tool-status[data-tone="loading"]{color:var(--info)}

.membership-page{max-width:1040px;margin:0 auto;padding:30px 0 40px}.membership-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.membership-heading h2{font-size:28px}.membership-heading p{margin-top:8px;color:var(--muted);font-size:14px}.membership-grid{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:20px;align-items:start}.membership-summary,.membership-actions,.membership-products{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);padding:24px}.membership-summary{display:grid;gap:12px}.membership-summary>span,.membership-products>header span{font-size:12px;color:var(--muted)}.membership-summary .member-balance{margin:0;font-size:42px;line-height:1.15}.membership-account{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.membership-actions{margin-top:16px}.membership-actions h3,.membership-products h3{font-size:16px}.membership-action-row{display:flex;gap:8px;align-items:center;margin-top:16px}.membership-action-row .secondary{flex:1}.membership-redeem{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:16px}.membership-redeem label{margin:0}.membership-redeem input{min-height:42px}.membership-redeem .primary{align-self:end}.membership-products>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.membership-products .product-list{margin-top:16px}.membership-products .product-list article{margin:0;border-radius:var(--radius-md);background:var(--surface-soft)}.membership-products .product-list b{display:block;margin-top:12px;color:var(--accent)}.membership-products .notice{margin-top:18px}.membership-empty{padding:28px 12px;text-align:center;color:var(--muted);font-size:13px;border:1px dashed var(--line-strong);border-radius:var(--radius-md)}#memberStatus{min-height:22px;margin-top:14px;font-size:12px;color:var(--muted)}#memberStatus[data-tone="error"]{color:var(--danger)}#memberStatus[data-tone="success"]{color:var(--success)}
.membership-summary,.membership-products{width:100%;margin-left:0;margin-right:0}.membership-actions{margin-top:4px;padding:0;border:0;border-radius:0;background:transparent}.membership-redeem{grid-template-columns:1fr;margin-top:8px}.membership-redeem label{font-size:13px;font-weight:600;color:var(--text-secondary)}.membership-action-row{margin-top:0}.membership-action-row input{flex:1;min-width:0}.membership-action-row .primary{flex:none}
@media(max-width:760px){.membership-page{padding-top:22px}.membership-heading{align-items:flex-start;flex-direction:column}.membership-heading h2{font-size:24px}.membership-grid{grid-template-columns:1fr}.membership-actions{margin-top:12px}.membership-summary,.membership-actions,.membership-products{padding:20px}}
@media(max-width:430px){.membership-redeem{grid-template-columns:1fr}.membership-redeem .primary{width:100%}.membership-action-row{align-items:stretch;flex-direction:column}.membership-action-row .secondary{width:100%}}
.membership-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0;border:0;background:transparent}.tool-status[data-tone="info"],#memberStatus[data-tone="info"],#memberStatus[data-tone="loading"]{color:var(--info)}#memberStatus[data-tone="warning"]{color:var(--warning-text)}
/* Content tools: compact inputs, clear actions and an image selection workspace. */
.tool-page{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif}
.tool-page-heading{margin-bottom:20px}.tool-page-heading p{margin-top:6px}
.tool-steps{padding:14px 18px;background:var(--surface);border:1px solid var(--line);border-radius:10px;gap:26px}
.tool-steps li+li:before{content:"";width:24px;height:1px;background:var(--line);margin-right:6px}
.tool-source-card{min-height:0}.tool-card-heading{margin-bottom:18px}
.tool-url{min-height:152px;background:var(--surface);line-height:1.7}
.tool-link-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.tool-link-actions>span{font-size:12px;color:var(--accent);margin-left:auto}
.tool-page button,.tool-page .secondary,.tool-page .text-button{min-height:40px}
.tool-page .primary{min-height:48px;font-weight:600}
.tool-page button:focus-visible,.image-region-stage:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.tool-page button:disabled{cursor:not-allowed}.tool-page .secondary:disabled,.tool-page .text-button:disabled{opacity:.45}
.tool-page .tool-settings-card{position:sticky;top:20px}
.tool-choice em{font-style:normal;font-size:10px;padding:2px 5px;border-radius:4px;background:var(--accent);color:white;margin-left:4px}
.tool-page .tool-choice small{font-size:12px}.tool-submit-note{line-height:1.7}
.tool-pending-link{display:flex;justify-content:center;margin-top:12px;text-decoration:none}
.tool-page .tool-result-empty{min-height:106px}.tool-result-empty p{margin:0}
.tool-drop-label{min-height:250px}.tool-source-switch button{min-height:40px;font-size:13px}
.tool-file-line{gap:8px}.tool-file-line>div{flex-basis:180px}
.tool-result-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.tool-result-links a{text-decoration:none;overflow-wrap:anywhere;max-width:100%}
.tool-result-body .tool-transcript{min-height:240px;resize:vertical;line-height:1.8}
[data-tool="image"] .tool-media-preview{display:block;padding:0;background:transparent}
.image-region-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.image-region-toolbar>strong{font-size:13px}.image-region-toolbar>div{display:flex;flex-wrap:wrap;gap:6px}
.image-region-toolbar button{padding:7px 10px;font-size:12px}
.image-region-help{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0 14px}
.image-region-viewport{display:flex;align-items:center;justify-content:center;min-height:220px;padding:20px;border:1px solid var(--line);border-radius:10px;background-color:#f1f0f6;background-image:linear-gradient(45deg,#e7e6ef 25%,transparent 25%),linear-gradient(-45deg,#e7e6ef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7e6ef 75%),linear-gradient(-45deg,transparent 75%,#e7e6ef 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.image-region-stage{position:relative;line-height:0;touch-action:none;user-select:none;cursor:crosshair;flex:none;max-width:100%}
.tool-media-preview .image-region-stage img{display:block;width:100%;max-width:none;max-height:none;border-radius:0;pointer-events:none}
.image-region-overlay{position:absolute;inset:0}
.image-region-box{position:absolute;border:2px solid #6250ef;background:rgba(98,80,239,.2);cursor:move;box-sizing:border-box;min-width:1px;min-height:1px}
.image-region-box.active{border-color:#fff;outline:1px solid #6250ef;background:rgba(98,80,239,.3)}
.image-region-box>span{position:absolute;left:0;top:0;padding:3px 5px;background:#6250ef;color:#fff;line-height:1;font-size:11px;pointer-events:none}
.image-region-box i{position:absolute;width:16px;height:16px;border:2px solid #6250ef;border-radius:4px;background:white}
.corner-nw{left:-8px;top:-8px;cursor:nwse-resize}.corner-ne{right:-8px;top:-8px;cursor:nesw-resize}.corner-sw{left:-8px;bottom:-8px;cursor:nesw-resize}.corner-se{right:-8px;bottom:-8px;cursor:nwse-resize}
.image-region-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:var(--muted)}
.image-region-footer [data-region-count]{color:var(--accent)}
.regions-disabled .image-region-overlay,.regions-disabled .image-region-toolbar,.regions-disabled .image-region-help{display:none}
.regions-disabled .image-region-stage{cursor:default;touch-action:auto}
.image-region-stage[aria-disabled="true"]{cursor:default}
@media(max-width:760px){.tool-page .tool-settings-card{position:static}.tool-steps{gap:12px;padding:12px;font-size:11px}.tool-steps li+li:before{display:none}.tool-page-heading{gap:10px}.tool-record-link{padding:6px}.tool-source-card,.tool-result-card{padding:18px}.tool-url{min-height:140px}.tool-link-actions>span{width:100%;margin-left:0}.image-region-viewport{padding:12px;min-height:160px}.image-region-toolbar{align-items:flex-start}.tool-card-heading{flex-wrap:wrap;gap:6px}.tool-file-line button{flex:1}.tool-choice{padding:12px}.tool-tips{margin-top:16px}.tool-page .tool-settings-card .tool-options{display:grid;gap:8px}.tool-choice{margin:0}.tool-page-heading h2{font-size:23px}.image-region-box i{width:20px;height:20px}}
/* Link tools: keep the primary action directly after the input. */
.tool-link-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.tool-link-heading .tool-field-label{margin:0}.tool-link-heading>span{font-size:12px;color:var(--muted)}
.tool-link-composer{border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);overflow:hidden;transition:border-color .15s,box-shadow .15s}
.tool-link-composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.tool-link-composer .tool-url{display:block;height:146px;min-height:120px;max-height:360px;margin:0;border:0;border-radius:0;background:transparent;padding:18px 18px 10px;line-height:1.8;font-size:14px;resize:vertical;box-shadow:none}
.tool-link-composer .tool-url:focus{outline:none}.tool-link-composer .tool-url::placeholder{color:var(--icon-muted);opacity:1}
.tool-link-composer .tool-link-actions{margin:0;padding:10px 14px;border-top:1px solid var(--line);background:var(--surface);gap:8px}
.tool-link-composer .tool-link-actions .secondary{display:inline-flex;align-items:center;gap:7px;border-color:var(--line);background:var(--surface);font-size:12px;padding:8px 12px}
.tool-link-actions .ui-icon{width:17px;height:17px}.tool-link-composer .tool-link-actions .text-button{font-size:12px;padding:8px 10px}
.tool-link-composer[data-state="invalid"]{border-color:var(--danger-line)}
.tool-link-composer[data-state="invalid"] #toolLinkFeedback{color:var(--danger)}
.tool-link-composer[data-state="valid"] #toolLinkFeedback{color:var(--success)}
.tool-link-composer[data-state="valid"] #toolLinkFeedback:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--success);margin-right:6px;vertical-align:middle}
.tool-submit-inline{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.tool-submit-inline .tool-submit-row{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:18px}
.tool-submit-inline .primary{width:auto;min-width:190px;flex:none;padding:12px 28px;border-radius:9px;font-size:14px}
.tool-submit-inline .tool-submit-note{text-align:left;margin:0;line-height:1.8}
.tool-submit-inline .tool-pending-link{width:fit-content}
[data-tool="parse"] .tool-cost,[data-tool="transcript"] .tool-cost{padding-bottom:0}
[data-tool="parse"] .tool-tips,[data-tool="transcript"] .tool-tips{margin-top:18px}
@media(max-width:760px){.tool-link-heading{align-items:flex-start;flex-direction:column;gap:6px}.tool-link-composer .tool-url{height:156px;padding:14px;font-size:14px}.tool-link-composer .tool-link-actions{padding:8px 10px}.tool-link-composer .tool-link-actions>span:empty{display:none}.tool-submit-inline{margin-top:18px;padding-top:16px}.tool-submit-inline .tool-submit-row{flex-direction:column;align-items:stretch;gap:10px}.tool-submit-inline .primary{width:100%;min-width:0}.tool-submit-inline .tool-submit-note{text-align:center}.tool-link-composer .tool-link-actions>span{font-size:12px}}
/* Reference layout: one source card, one result card, shared by all five tools. */
.tool-reference{max-width:1144px;padding:34px 0 36px;color:#1d2040}
.tool-reference .tool-page-heading{margin:0 6px 24px;gap:24px}
.tool-reference .tool-page-heading .eyebrow{font-size:16px;letter-spacing:0;font-weight:600;margin-bottom:9px}
.tool-reference .tool-page-heading h2{font-size:34px;line-height:1.35;font-weight:750;letter-spacing:-.04em}
.tool-reference .tool-page-heading p{font-size:16px;margin-top:8px;color:#777b96}
.tool-reference .tool-record-link{font-size:16px;gap:10px;color:#777b96}
.tool-reference .tool-record-link .ui-icon{width:22px;height:22px}
.tool-reference .tool-layout{display:flex;flex-direction:column;gap:24px}
.tool-reference .tool-source-card,.tool-reference .tool-result-card{width:100%;padding:28px 30px;border:1px solid #eaeaf5;border-radius:14px;box-shadow:0 8px 32px #47419b04;background:var(--surface)}
.tool-reference .tool-card-heading{margin:0 0 14px;gap:16px;align-items:center}
.tool-reference .tool-card-heading h3{font-size:24px;line-height:1.4;font-weight:700;letter-spacing:-.02em}
.tool-source-note{font-size:16px;line-height:1.8;color:#777b96;margin:0 0 16px}
.tool-source-help{position:relative;margin-left:auto;font-size:14px;color:var(--accent);flex:none}
.tool-source-help summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;min-height:40px;font-weight:600}
.tool-source-help summary::-webkit-details-marker{display:none}.tool-source-help summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.tool-source-help summary .ui-icon{width:20px;height:20px}
.tool-source-help>p{position:absolute;right:0;top:38px;width:300px;max-width:70vw;line-height:1.8;padding:16px;border:1px solid var(--line);background:var(--surface);border-radius:10px;box-shadow:var(--shadow-popover);color:var(--text-secondary);z-index:5}
.tool-reference .tool-link-composer{border:1px solid #d9d8eb;background:#f9f9fd;border-radius:9px;overflow:hidden}
.tool-reference .tool-link-composer:focus-within{border-color:#7765ff;box-shadow:0 0 0 1px #7765ff18}
.tool-reference .tool-link-composer .tool-url{height:154px;min-height:140px;max-height:360px;padding:22px 24px;background:transparent;line-height:1.8;font-size:16px;color:#303451;resize:vertical}
.tool-reference .tool-link-composer .tool-url::placeholder{color:#9295ac}
.tool-reference .tool-submit-area{padding:0;margin:16px 0 0;border:0}
.tool-action-line{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.tool-reference .tool-link-actions{display:flex;align-items:center;gap:12px;margin:0;padding:0;border:0;background:transparent}
.tool-reference .tool-link-actions .secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:112px;padding:12px 20px;min-height:52px;border:1px solid #dcdcef;border-radius:9px;background:#fafafe;color:#303451;font-size:16px;font-weight:500}
.tool-reference .tool-link-actions .ui-icon{width:20px;height:20px}
.tool-link-feedback{margin-left:auto;font-size:15px;color:var(--muted);line-height:1.6}
.tool-link-feedback[data-valid="true"]{color:#128568}
.tool-link-feedback[data-valid="true"]:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;margin-right:10px;vertical-align:middle}
.tool-link-feedback[data-valid="false"]:not(:empty){color:var(--danger)}
.tool-reference .tool-run{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-left:auto;width:230px;min-height:54px;padding:12px 22px;border-radius:9px;font-size:17px;font-weight:600;background:#5847ed;border-color:#5847ed;color:white;flex:none}
.tool-link-feedback+.tool-run{margin-left:8px}.tool-run>span:first-child{display:flex}.tool-run .ui-icon{width:21px;height:21px}
.tool-reference .tool-run:hover:not(:disabled){background:#4937dc}.tool-reference .tool-run:disabled{background:var(--disabled-bg);border-color:var(--line);color:var(--icon-muted);opacity:1}
.tool-reference .tool-submit-note{text-align:right;margin-top:10px;font-size:13px}.tool-reference .tool-status{margin-top:10px;font-size:14px}
.tool-account-line{display:flex;align-items:center;gap:22px;flex-wrap:wrap;border-top:1px solid #e8e8f2;margin-top:16px;padding-top:18px;color:#7a7f98;font-size:14px;line-height:1.7}
.tool-account-line #toolRights{margin-right:auto}.tool-action-hint{font-size:14px;color:var(--muted)}
.tool-reference .tool-drop-label{min-height:236px}.tool-reference .tool-drop-label strong{font-size:17px}.tool-reference .tool-drop-label>span:not(.tool-upload-icon):not(.secondary){font-size:14px}
.tool-reference .tool-options{margin-top:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tool-reference .tool-options legend{margin-bottom:12px;font-size:14px}.tool-reference .tool-choice{margin:0;padding:14px 16px;gap:10px}.tool-reference .tool-choice strong{font-size:14px}
.tool-reference .tool-format-row{display:flex;align-items:center;gap:16px;margin-top:22px}.tool-format-row .tool-field-label{margin:0;flex:none;font-size:14px}.tool-reference .tool-format-row .tool-select{max-width:360px;font-size:14px}
.tool-reference .tool-result-card{margin:0;padding-top:24px;padding-bottom:20px}.tool-reference .tool-result-card>.tool-card-heading{margin-bottom:18px}
.tool-reference #toolResultState{font-size:14px;color:#7b8198;display:flex;align-items:center;gap:8px}.tool-reference #toolResultState[data-state="done"]{color:#198453}
.tool-reference #toolResultState[data-state="done"]:before{content:"";display:block;width:8px;height:8px;border-radius:50%;background:currentColor}
.tool-reference #toolResultState[data-state="failed"]{color:var(--danger)}
.tool-reference .tool-result-empty{min-height:170px;font-size:15px}.tool-reference .tool-result-empty small{font-size:13px}
.tool-result-summary{display:grid;grid-template-columns:174px minmax(0,1fr) 266px;gap:32px;align-items:center;border:1px solid #e8e8f3;border-radius:10px;padding:10px}
.tool-result-visual{min-width:0;display:flex;align-items:center;justify-content:center;min-height:200px;background:#f7f7fc;border-radius:8px;overflow:hidden}
.tool-result-video{display:block;width:100%;height:240px;object-fit:contain;background:#222338;border-radius:8px}
.tool-result-cover{display:block;width:100%;height:240px;object-fit:cover}.tool-result-picture{display:block;width:100%}.tool-result-picture img{display:block;width:100%;max-height:280px;object-fit:contain}
.tool-result-file-icon{padding:36px;color:#8175dc}.tool-result-file-icon .ui-icon{width:56px;height:56px}
.tool-result-info{min-width:0}.tool-result-info h4{font-size:21px;font-weight:650;line-height:1.5;margin:0 0 20px;overflow-wrap:anywhere;color:#252842}
.tool-result-info p{color:var(--muted);font-size:14px;line-height:1.8}.tool-result-info dl{margin:0;display:grid;gap:18px;font-size:16px}
.tool-result-info dl>div{display:flex;align-items:center;gap:22px}.tool-result-info dt{display:flex;align-items:center;gap:14px;color:#7a7e98;white-space:nowrap}.tool-result-info dd{margin:0;color:#303451;overflow-wrap:anywhere}
.tool-result-info .ui-icon{width:21px;height:21px}.tool-result-info audio{max-width:100%;width:100%;margin-top:10px}
.tool-result-actions{border-left:1px solid #dcdced;padding:10px 8px 10px 24px;display:flex;flex-direction:column;gap:12px;min-width:0}
.tool-result-actions>a,.tool-result-actions>button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;font-size:15px;font-weight:500;text-decoration:none;border-radius:9px;padding:12px;line-height:1.4}
.tool-result-actions .ui-icon{width:20px;height:20px;flex:none}.tool-result-actions .secondary{border:1px solid #dcdcef;background:#fafafe;color:#303451}.tool-result-actions .primary{background:#5847ed;color:white}
.tool-result-charge{font-size:13px;color:var(--muted);margin:12px 0 0}.tool-reference .tool-transcript{margin-top:18px;background:#fafafe;line-height:1.9;min-height:180px}
.tool-image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;margin-top:18px}.tool-image-gallery a{color:var(--accent);font-size:13px;text-decoration:none}.tool-image-gallery img{width:100%;height:150px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}
.tool-bottom-note{display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;color:#9296ad;font-size:14px;margin:24px 0 0;line-height:1.7}.tool-bottom-note .ui-icon{width:19px;height:19px;flex:none}
@media(max-width:1100px){.tool-result-summary{grid-template-columns:150px minmax(0,1fr) 210px;gap:20px}.tool-result-actions{padding-left:18px}.tool-result-info dl>div{gap:14px}.tool-reference .tool-link-actions .secondary{min-width:92px;padding:10px 16px}.tool-reference .tool-run{width:210px}}
@media(max-width:760px){.tool-reference{padding-top:24px}.tool-reference .tool-page-heading{margin:0 0 20px;gap:14px;align-items:flex-start}.tool-reference .tool-page-heading .eyebrow{font-size:13px}.tool-reference .tool-page-heading h2{font-size:27px}.tool-reference .tool-page-heading p{font-size:14px}.tool-reference .tool-record-link{font-size:12px;gap:5px;padding:4px 0}.tool-reference .tool-record-link .ui-icon{width:18px;height:18px}.tool-reference .tool-source-card,.tool-reference .tool-result-card{padding:20px 18px}.tool-reference .tool-card-heading h3{font-size:21px}.tool-source-help{font-size:12px}.tool-source-help summary{gap:5px}.tool-source-help summary .ui-icon{width:17px;height:17px}.tool-source-note{font-size:14px;line-height:1.8}.tool-reference .tool-link-composer .tool-url{padding:16px;height:168px;font-size:14px}.tool-reference .tool-link-actions .secondary{min-width:84px;min-height:44px;padding:10px 14px;font-size:14px}.tool-action-line{gap:12px}.tool-link-feedback{font-size:13px;margin-left:0;flex-basis:100%;order:1}.tool-reference .tool-run{width:100%;margin:0;order:2;min-height:50px;font-size:16px}.tool-reference .tool-submit-note{text-align:left;font-size:12px}.tool-account-line{gap:6px 16px;font-size:12px;padding-top:14px}.tool-account-line #toolRights{flex-basis:100%}.tool-reference .tool-options{grid-template-columns:1fr;gap:8px}.tool-reference .tool-choice{padding:12px 14px}.tool-reference .tool-choice small{margin-top:4px}.tool-result-summary{grid-template-columns:92px minmax(0,1fr);gap:16px;padding:10px}.tool-result-visual{min-height:126px}.tool-result-video,.tool-result-cover{height:142px}.tool-result-info h4{font-size:17px;margin-bottom:10px}.tool-result-info dl{font-size:12px;gap:10px}.tool-result-info dl>div{gap:8px;flex-wrap:wrap}.tool-result-info dt{gap:6px}.tool-result-info .ui-icon{width:16px;height:16px}.tool-result-actions{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);padding:14px 0 0;gap:10px}.tool-result-actions>a,.tool-result-actions>button{min-height:44px;font-size:14px}.tool-result-info p{font-size:12px}.tool-result-file-icon{padding:16px}.tool-result-file-icon .ui-icon{width:40px;height:40px}.tool-bottom-note{font-size:12px}.tool-action-hint{font-size:12px}.tool-source-help>p{right:0;width:250px}.tool-reference .tool-result-empty{min-height:140px;font-size:14px}.tool-reference .tool-result-empty small{font-size:12px}.tool-reference .tool-format-row{align-items:flex-start;flex-direction:column;gap:10px}}
/* Compact workbench scale: shared by the five content tools. */
.tool-reference{padding:24px 0 28px}
.tool-reference .tool-page-heading{margin:0 4px 20px}
.tool-reference .tool-page-heading .eyebrow{font-size:12px;margin-bottom:6px}
.tool-reference .tool-page-heading h2{font-size:28px;letter-spacing:-.02em}
.tool-reference .tool-page-heading p{font-size:14px;margin-top:6px}
.tool-reference .tool-record-link{font-size:13px;gap:6px}
.tool-reference .tool-record-link .ui-icon{width:18px;height:18px}
.tool-reference .tool-layout{gap:20px}
.tool-reference .tool-source-card,.tool-reference .tool-result-card{padding:22px 24px;border-radius:12px}
.tool-reference .tool-source-card>.tool-card-heading{margin-bottom:8px}
.tool-reference .tool-card-heading h3{font-size:18px;line-height:1.5}
.tool-reference .tool-source-note{font-size:14px;line-height:1.7;margin-bottom:12px}
.tool-reference .tool-source-help{font-size:12px}
.tool-reference .tool-source-help summary{min-height:32px;gap:6px}
.tool-reference .tool-source-help summary .ui-icon{width:17px;height:17px}
.tool-reference .tool-link-composer .tool-url{height:128px;min-height:112px;padding:16px 18px;font-size:14px;line-height:1.8}
.tool-reference .tool-submit-area{margin-top:12px}
.tool-reference .tool-action-line{gap:12px}
.tool-reference .tool-link-actions{gap:8px}
.tool-reference .tool-link-actions .secondary{min-width:84px;min-height:42px;padding:9px 14px;font-size:14px;gap:7px;border-radius:7px}
.tool-reference .tool-link-actions .ui-icon,.tool-reference .tool-run .ui-icon{width:18px;height:18px}
.tool-reference .tool-run{width:168px;min-height:42px;padding:9px 18px;font-size:14px;gap:8px;border-radius:7px}
.tool-reference .tool-link-feedback{font-size:13px}
.tool-reference .tool-submit-note{font-size:12px;margin-top:8px}
.tool-reference .tool-status{font-size:13px;margin-top:8px}
.tool-reference .tool-account-line{font-size:12px;margin-top:14px;padding-top:14px;gap:12px 20px}
.tool-reference .tool-drop-label{min-height:200px;gap:10px}
.tool-reference .tool-drop-label strong{font-size:14px}
.tool-reference .tool-drop-label>span:not(.tool-upload-icon):not(.secondary){font-size:12px}
.tool-reference .tool-upload-icon{width:46px;height:46px;border-radius:12px}
.tool-reference .tool-upload-icon .ui-icon{width:24px;height:24px}
.tool-reference .tool-options,.tool-reference .tool-format-row{margin-top:16px}
.tool-reference .tool-choice{padding:12px}
.tool-reference .tool-choice strong,.tool-reference .tool-options legend,.tool-reference .tool-format-row .tool-field-label{font-size:13px}
.tool-reference .tool-result-card>.tool-card-heading{margin-bottom:12px}
.tool-reference #toolResultState{font-size:12px;gap:6px}
.tool-reference #toolResultState[data-state="done"]:before{display:none}
.tool-reference #toolResultState .ui-icon{width:18px;height:18px;color:#2da442}
.tool-reference .tool-result-empty{min-height:112px;font-size:13px;gap:8px}
.tool-reference .tool-result-empty small{font-size:12px}
.tool-reference .tool-result-summary{grid-template-columns:144px minmax(0,1fr) 230px;gap:24px}
.tool-reference .tool-result-visual{min-height:170px}
.tool-reference .tool-result-video,.tool-reference .tool-result-cover{height:200px}
.tool-reference .tool-result-info h4{font-size:18px;margin-bottom:14px}
.tool-reference .tool-result-info dl{font-size:14px;gap:14px}
.tool-reference .tool-result-info .ui-icon{width:18px;height:18px}
.tool-reference .tool-result-actions{padding-left:22px;gap:10px}
.tool-reference .tool-result-actions>a,.tool-reference .tool-result-actions>button{font-size:14px;min-height:42px;padding:9px 12px;border-radius:7px;gap:8px}
.tool-reference .tool-result-actions .ui-icon{width:18px;height:18px}
.tool-reference .tool-bottom-note{font-size:12px;margin-top:18px}
@media(max-width:1100px){.tool-reference .tool-result-summary{grid-template-columns:130px minmax(0,1fr) 190px;gap:18px}.tool-reference .tool-result-actions{padding-left:16px}}
@media(max-width:760px){
.tool-reference{padding-top:20px}.tool-reference .tool-page-heading{margin:0 0 16px;gap:12px}
.tool-reference .tool-page-heading h2{font-size:24px}.tool-reference .tool-page-heading p{font-size:13px}.tool-reference .tool-record-link{font-size:12px}
.tool-reference .tool-source-card,.tool-reference .tool-result-card{padding:18px 16px}.tool-reference .tool-card-heading h3{font-size:17px}
.tool-reference .tool-source-note{font-size:13px}.tool-reference .tool-link-composer .tool-url{height:140px;padding:14px}
.tool-reference .tool-link-actions .secondary{min-height:44px}.tool-reference .tool-run{width:100%;min-height:44px;margin-left:0}
.tool-reference .tool-account-line{gap:6px 16px}.tool-reference .tool-result-summary{grid-template-columns:92px minmax(0,1fr);gap:16px}
.tool-reference .tool-result-visual{min-height:126px}.tool-reference .tool-result-video,.tool-reference .tool-result-cover{height:142px}
.tool-reference .tool-result-info h4{font-size:16px;margin-bottom:10px}.tool-reference .tool-result-info dl{font-size:12px;gap:10px}
.tool-reference .tool-result-actions{padding-left:0}.tool-reference .tool-result-actions>a,.tool-reference .tool-result-actions>button{min-height:44px}
.tool-reference .tool-file-line>div{flex-basis:100%}.tool-reference .tool-file-line button{flex:1}
}

/* Backend-synced account and billing sidebar. */
.tool-reference .tool-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-areas:"source account" "result account";grid-template-rows:auto 1fr;gap:20px;align-items:start}
.tool-account-card{grid-area:account;min-width:0;padding:22px 20px;background:var(--surface);border:1px solid #eaeaf5;border-radius:12px;position:sticky;top:20px;font-size:13px}
.tool-account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.tool-account-heading h3{font-size:16px;margin:0;line-height:1.5}
.tool-reference .tool-account-heading button{min-height:32px;min-width:32px;padding:6px;display:grid;place-items:center}
.tool-account-card .ui-icon{width:16px;height:16px;flex:none}.tool-account-card a{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:var(--accent);font-size:12px;line-height:1.7}
.tool-account-label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}
.tool-member-block{padding:14px;background:#f6f5ff;border-radius:8px}.tool-member-block>strong{display:block;font-size:15px;color:#5143bb;overflow-wrap:anywhere}
.tool-member-block p{font-size:12px;line-height:1.7;color:var(--muted);margin:6px 0 8px}
.tool-balance-block{padding:20px 0}.tool-balance-block>div{display:flex;align-items:baseline;gap:7px;margin-bottom:8px}.tool-balance-block strong{font-size:30px;line-height:1.2;font-weight:650;overflow-wrap:anywhere}.tool-balance-block>div>span{font-size:12px;color:var(--muted)}
.tool-billing-block{border-top:1px solid var(--line);padding-top:18px}.tool-billing-block>strong{font-size:13px;font-weight:600}.tool-billing-block>p{margin-top:8px;font-size:13px;line-height:1.7}
.tool-estimate{padding:12px;background:var(--surface-soft);border-radius:8px;margin-top:14px;display:flex;flex-direction:column;gap:6px}.tool-estimate>span{font-size:12px;color:var(--muted)}.tool-estimate>strong{font-size:18px;color:var(--accent)}
.tool-billing-block #toolBillingHint{font-size:12px;color:var(--muted)}.tool-account-sync{font-size:11px;color:var(--muted);line-height:1.6;margin-top:16px}.tool-account-records{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;width:100%}.tool-account-records .ui-icon:last-child{margin-left:auto}
.tool-reference .tool-result-summary{grid-template-columns:120px minmax(0,1fr);gap:18px}.tool-reference .tool-result-actions{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;border-left:0;border-top:1px solid var(--line);padding:14px 0 0}.tool-reference .tool-result-actions>*{flex:1;white-space:nowrap}
.tool-reference .tool-action-line{gap:10px}.tool-reference .tool-link-feedback{font-size:12px}.tool-reference .tool-run{width:auto;min-width:190px;flex-shrink:0;white-space:nowrap;min-height:44px}.tool-reference .tool-run>span{white-space:nowrap}.tool-reference .tool-link-feedback+.tool-run{margin-left:0}
@media(max-width:1100px){.tool-reference .tool-layout{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.tool-account-card{padding:20px 16px}.tool-reference .tool-source-card,.tool-reference .tool-result-card{padding:20px}.tool-reference .tool-link-feedback{order:2;flex-basis:100%;text-align:right}.tool-reference .tool-run{margin-left:auto}}
@media(max-width:980px){.tool-reference .tool-layout{grid-template-columns:1fr;grid-template-areas:"source" "account" "result";grid-template-rows:auto}.tool-account-card{position:static;display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.tool-account-heading,.tool-account-sync,.tool-account-records{grid-column:1/-1}.tool-billing-block{grid-column:2;grid-row:2/4;border-top:0;border-left:1px solid var(--line);padding:0 0 0 24px}.tool-balance-block{padding:16px 0 0}}
@media(max-width:760px){.tool-reference .tool-source-card,.tool-reference .tool-result-card{padding:18px 16px}.tool-reference .tool-run{width:100%;margin-left:0}.tool-reference .tool-link-feedback{order:1;text-align:left}.tool-reference .tool-result-summary{grid-template-columns:92px minmax(0,1fr);gap:16px}.tool-reference .tool-result-actions{flex-direction:column}.tool-account-card{gap:0 16px}.tool-billing-block{padding-left:16px}.tool-member-block{padding:12px}.tool-balance-block strong{font-size:26px}.tool-estimate{padding:10px}.tool-estimate>strong{font-size:16px}.tool-account-heading{margin-bottom:16px}}

/* Parsed media: cover, readable metadata and explicitly named actions. */
.tool-parse-result{display:grid;grid-template-columns:168px minmax(0,1fr);gap:24px;align-items:center;padding:6px 0 4px;min-width:0}
.tool-parse-cover{min-width:0}.tool-cover-button{display:block;position:relative;width:100%;height:224px;overflow:hidden;border:0;border-radius:10px;padding:0;background:#eeeef7;cursor:pointer;color:#777391;text-decoration:none}
.tool-parse-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.tool-cover-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:12px}.tool-cover-fallback>.ui-icon{width:32px;height:32px}
.tool-cover-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid #ffffffbb;background:#20223875;color:white;backdrop-filter:blur(4px);transition:background .15s,transform .15s}.tool-cover-play .ui-icon{width:22px;height:22px;margin-left:2px;fill:currentColor}.tool-cover-button:hover .tool-cover-play{background:#5847ed;transform:translate(-50%,-50%) scale(1.06)}
.tool-cover-caption{position:absolute;bottom:0;left:0;right:0;padding:28px 10px 12px;background:linear-gradient(transparent,#151528b8);color:white;font-size:12px;text-align:left}.tool-cover-duration{position:absolute;bottom:10px;right:8px;background:#17182eaa;color:white;font-size:11px;border-radius:4px;padding:2px 5px}.cover-unavailable .tool-cover-fallback{justify-content:flex-start;padding-top:24px}
.tool-parse-content{min-width:0}.tool-parse-tags{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:10px}.tool-parse-tags span{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;background:var(--surface-soft);border-radius:5px}.tool-parse-tags .ui-icon{width:14px;height:14px}
.tool-parse-content h4{font-size:18px;line-height:1.6;font-weight:650;margin:0;overflow-wrap:anywhere}.tool-parse-author{font-size:12px;color:var(--muted);margin:8px 0 0;line-height:1.6}.tool-parse-meta{display:flex;flex-wrap:wrap;gap:10px 20px;margin:12px 0 0;color:var(--muted);font-size:12px}.tool-parse-meta:empty{display:none}.tool-parse-meta>span{display:inline-flex;align-items:center;gap:6px}.tool-parse-meta .ui-icon{width:15px;height:15px}
.tool-parse-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.tool-parse-actions>a,.tool-parse-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;min-height:42px!important;border-radius:7px;font-size:13px;text-decoration:none;white-space:nowrap;font-weight:500}.tool-parse-actions .primary{background:#5847ed;color:white;border:1px solid #5847ed}.tool-parse-actions .secondary{background:var(--surface);border:1px solid var(--line);color:var(--text-secondary)}.tool-parse-actions .ui-icon{width:16px;height:16px}
.tool-more-actions,.tool-parse-text{margin-top:12px;font-size:12px;color:var(--muted)}.tool-more-actions summary,.tool-parse-text summary{cursor:pointer;display:flex;align-items:center;gap:5px;width:fit-content;list-style:none;padding:5px 0}.tool-more-actions summary::-webkit-details-marker{display:none}.tool-more-actions summary .ui-icon{width:14px;height:14px}.tool-more-actions[open] summary .ui-icon{transform:rotate(180deg)}.tool-more-actions>div{display:flex;flex-wrap:wrap;gap:8px 18px;padding:8px 0}.tool-more-link{display:inline-flex;align-items:center;gap:6px;color:var(--accent);text-decoration:none;line-height:1.8}.tool-more-link .ui-icon{width:14px;height:14px}.tool-parse-text p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:8px 0;padding:12px;background:var(--surface-soft);border-radius:7px}
.tool-video-dialog{width:min(880px,calc(100vw - 32px));max-height:90vh;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);margin:auto;box-shadow:0 20px 80px #14142f40}.tool-video-dialog::backdrop{background:#151526b3}.tool-video-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.tool-video-dialog header>strong{font-size:16px}.tool-video-dialog header button{display:grid;place-items:center;padding:8px;min-width:36px;min-height:36px}.tool-video-dialog header .ui-icon{width:20px;height:20px}.tool-video-dialog video{display:block;width:100%;max-height:65vh;background:#171827;border-radius:8px}.tool-preview-message{font-size:12px;line-height:1.8;color:var(--muted);margin-top:10px}.tool-preview-message:empty{display:none}.tool-preview-open{display:inline-flex;gap:6px;align-items:center;color:var(--accent);font-size:12px;margin-top:10px;text-decoration:none}.tool-preview-open .ui-icon{width:14px;height:14px}
.tool-result-charge strong{font-weight:600}.tool-parse-result+.tool-result-charge{margin-top:18px;padding-top:12px;border-top:1px solid var(--line);font-size:12px}
@media(max-width:1100px){.tool-parse-result{grid-template-columns:140px minmax(0,1fr);gap:18px}.tool-cover-button{height:200px}.tool-parse-actions>a,.tool-parse-actions>button{padding:9px 12px}}
@media(max-width:760px){.tool-parse-result{grid-template-columns:1fr;gap:18px}.tool-parse-cover{width:100%;max-width:100%;}.tool-cover-button{height:210px;background:#232338}.tool-parse-poster{object-fit:contain}.tool-parse-content h4{font-size:17px}.tool-parse-actions{gap:8px;margin-top:16px}.tool-parse-actions>.primary{flex-basis:100%}.tool-parse-actions>.secondary{flex:1;min-height:44px!important}.tool-more-actions summary{min-height:40px}.tool-video-dialog{padding:14px}.tool-cover-fallback{color:#d2d0e5}.tool-cover-caption{text-align:center}.tool-cover-duration{right:12px}}
