/* Card structures and spacing verified in the retained TaskPyro frontend build. */
.page-refresh-icon{width:36px;padding:8px}
.crawler-bridge-banner.crawler-connection-note{display:block;padding:0;margin-bottom:20px;border-radius:8px}
.crawler-connection-details>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:9px 12px;font-size:12px;line-height:20px}
.crawler-connection-details>summary strong{font-weight:500}
.crawler-connection-details>summary>.icon:last-child{width:14px;height:14px;margin-left:auto;transition:transform .2s}
.crawler-connection-details[open]>summary>.icon:last-child{transform:rotate(180deg)}
.crawler-connection-body{display:flex;align-items:flex-start;gap:12px;padding:0 12px 12px}
.crawler-connection-body>p{flex:1;margin:0;font-size:12px;line-height:20px}
.crawler-connection-body>.btn{flex:none}
.task-filter-toolbar{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;margin-bottom:24px;min-width:0}
.task-filter-toolbar>input{width:250px;min-width:150px;height:32px;min-height:32px;padding:5px 12px;font-size:14px;line-height:20px}
.task-filter{position:relative;min-width:0;font-size:14px;line-height:20px}
.task-filter>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:32px;max-width:300px;padding:5px 10px;border:1px dashed var(--line);border-radius:6px;background:var(--panel);cursor:pointer;white-space:nowrap}
.task-filter>summary::-webkit-details-marker{display:none}
.task-filter>summary:hover,.task-filter[open]>summary{background:var(--hover)}
.task-filter>summary .icon{width:15px;height:15px}
.task-filter>summary .task-filter-value{font-size:12px;font-weight:400;max-width:145px;padding:0 5px;border-left:1px solid var(--line);overflow:hidden;text-overflow:ellipsis}
.task-filter-panel{position:absolute;left:0;top:calc(100% + 6px);z-index:25;width:220px;display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 4px 12px #0f172a18}
.task-filter-panel label{font-size:12px;line-height:18px;color:var(--muted)}
.task-filter-panel select,.task-filter-panel input{width:100%;min-width:0;font-size:14px;line-height:20px;height:36px;min-height:36px;padding:6px 8px}
.task-planned-filter .task-filter-panel{width:280px;left:auto;right:0}
.task-filter-toolbar .btn{height:32px;min-height:32px;padding:5px 10px;font-size:14px;line-height:20px}
.task-filter-button{border-style:dashed}
.task-filter-button[aria-pressed=true]{background:var(--hover);border-style:solid}
.task-list-body{min-width:0}
.task-card-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.task-card{display:flex;flex-direction:row;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0;background:var(--panel);box-shadow:0 1px 2px #0f172a0d;transition:box-shadow .2s,border-color .2s}
.task-card:hover{box-shadow:0 4px 6px #0f172a12}
.task-card.is-selected{outline:2px solid var(--primary);outline-offset:2px}
.task-card-identity{display:flex;align-items:center;gap:16px;flex:1;min-width:0}
.task-card-identity>.row-select{width:20px;height:20px;min-height:20px;margin:0;flex:none;accent-color:var(--primary)}
.task-card-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.task-card-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.task-card-title h3{font-size:16px;line-height:24px;font-weight:700;letter-spacing:normal;margin:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-description-hint{display:inline-flex;align-items:center;color:var(--muted);cursor:help;max-width:16px}
.task-description-hint .icon{width:16px;height:16px}
.task-card-title .badge{font-size:11px;line-height:16px;padding:1px 6px;border-radius:6px}
.task-card-context{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.task-context-tag,.task-label-tag{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid var(--line);border-radius:4px;max-width:180px;background:var(--soft);color:var(--muted);font-size:10px;line-height:14px}
.task-context-tag .icon{width:12px;height:12px}
.task-context-tag>span,.task-label-tag{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.task-card-command{display:flex;align-items:center;gap:8px;min-width:0;color:var(--muted);font-size:12px;line-height:16px;margin-top:2px}
.task-card-command .icon{width:12px;height:12px}
.task-card-command code{background:none;padding:0;font-size:12px;line-height:16px;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.task-card-schedule{display:flex;flex-direction:column;justify-content:center;gap:4px;align-self:stretch;flex:none;width:285px;margin:0;padding-left:16px;border-left:1px dashed var(--line);color:var(--muted);font-size:12px;line-height:16px}
.task-card-schedule>div{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0}
.task-card-schedule dt{display:flex;align-items:center;gap:6px;flex:none;font-weight:400}
.task-card-schedule dt .icon{width:14px;height:14px;opacity:.7}
.task-card-schedule dd{font-weight:500;margin:0;max-width:200px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:right}
.task-unscheduled{font-style:italic;font-weight:400}
.task-card-actions{display:flex;align-items:center;align-self:stretch;gap:12px;flex:none;margin-left:8px;padding-left:16px;border-left:1px dashed var(--line)}
.task-run-actions,.task-more-actions{display:flex;align-items:center;gap:4px}
.task-run-actions>.icon-btn{border:1px solid var(--line)}
.task-card-actions .icon-btn{height:32px;width:32px;border-radius:6px}
.task-card-actions .icon-btn .icon{height:16px;width:16px}
.task-card-actions .btn{height:32px;min-height:32px;padding:5px 12px;gap:4px;font-size:14px;line-height:20px;border-radius:6px}
.task-more-actions>button:last-child:hover{color:#dc2626;background:#fef2f2}
.task-empty>.empty{min-height:400px;display:flex;flex-direction:column;justify-content:center;border-radius:8px}
.task-pagination{padding:16px 0;position:sticky;bottom:0;background:var(--bg);z-index:4;border-top:1px solid var(--line);font-size:14px;line-height:20px}
.task-pagination-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.task-pagination-controls>label{display:flex;align-items:center;gap:8px}
.task-pagination-controls select{width:65px;height:32px;min-height:32px;font-size:14px;padding:4px 8px}
.task-pagination-controls>.btn{font-size:12px;line-height:18px;padding:5px 8px}
.task-bulk-actions{position:fixed;left:50%;bottom:24px;z-index:28;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 95%,transparent);backdrop-filter:blur(12px);box-shadow:0 12px 28px #0f172a26;transform:translateX(-50%);font-size:14px;line-height:20px;max-width:calc(100vw - 24px);flex-wrap:wrap}
.task-select-visible{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}
.task-select-visible input{width:16px;height:16px;min-height:16px;margin:0}
.task-bulk-actions .btn{min-height:32px;font-size:12px;padding:5px 8px}
.workflow-card-list{display:flex;flex-direction:column;gap:16px;min-width:0}
.workflow-list-card,.workflow-list-empty{border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 1px 2px #0f172a0d;min-width:0}
.workflow-list-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px}
.workflow-list-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:8px}
.workflow-list-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;min-width:0}
.workflow-list-title h2{font-size:16px;line-height:24px;font-weight:600;margin:0;overflow-wrap:anywhere}
.workflow-list-title h2 a:hover{color:var(--blue)}
.workflow-list-meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 12px;font-size:12px;line-height:16px;color:var(--muted);margin-left:auto}
.workflow-list-meta span{white-space:nowrap}
.workflow-list-copy>p{font-size:14px;line-height:20px;color:var(--muted);margin:0;white-space:pre-line;overflow-wrap:anywhere}
.workflow-list-state{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:wrap;max-width:190px}
.workflow-list-state .badge,.workflow-version{font-size:12px;line-height:16px;font-weight:500;padding:2px 8px;border-radius:6px}
.workflow-version{border:1px solid var(--line)}
.workflow-unsaved{font-size:12px;line-height:16px;color:var(--muted)}
.workflow-schedule-note{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;line-height:18px}
.workflow-schedule-note .icon{width:14px;height:14px}
.workflow-list-card>footer{display:flex;gap:8px;flex-wrap:wrap;padding:0 24px 24px;margin-top:-8px}
.workflow-list-card>footer .btn{height:36px;font-size:14px;line-height:20px}
.workflow-list-empty{padding:24px}
.workflow-list-empty h2{font-size:16px;line-height:24px;font-weight:600;margin:0 0 6px}
.workflow-list-empty p{font-size:14px;line-height:20px;margin:0;color:var(--muted)}
.workflow-cycle-shortcuts{margin:0 0 20px;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:20px}
.workflow-cycle-shortcuts>summary{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;list-style:none}
.workflow-cycle-shortcuts>summary>span{margin-left:auto;font-size:12px;line-height:18px;color:var(--muted)}
.workflow-cycle-shortcuts>summary>.icon:last-child{height:14px;width:14px}
.workflow-cycle-shortcuts[open]>summary>.icon:last-child{transform:rotate(180deg)}
.workflow-cycle-shortcuts .crawler-cycle-grid{padding:0 12px 12px;margin:0}
.workflow-editor-frame{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;border:0;border-radius:0;background:transparent;overflow:visible;min-height:0}
.workflow-canvas-card,.workflow-inspector-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel);min-width:0;display:flex;flex-direction:column}
.workflow-editor-fields{padding:12px 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-bottom:1px solid var(--line)}
.workflow-header-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.workflow-header-field label{font-size:13px;line-height:20px;font-weight:500}
.workflow-header-field input{width:100%;height:32px;min-height:32px;padding:5px 10px;font-size:14px;line-height:20px}
.workflow-editor-frame .workflow-canvas-wrap{height:calc(100dvh - 290px);min-height:500px;flex:1}
.workflow-inspector-card>header{padding:12px 16px;border-bottom:1px solid var(--line)}
.workflow-inspector-card>header h2{font-size:16px;line-height:24px;font-weight:600;margin:0 0 4px}
.workflow-inspector-card>header p{font-size:12px;line-height:16px;color:var(--muted);margin:0}
.workflow-inspector-card .workflow-inspector{border:0;padding:16px;max-height:calc(100dvh - 290px);flex:1;overflow:auto}
.workflow-select-hint{padding:32px 0;text-align:center;color:var(--muted);font-size:14px;line-height:20px}
.workflow-select-hint>.icon{width:28px;height:28px;margin-bottom:8px}
.workflow-select-hint p{margin:0}
.workflow-connection-list{font-size:12px;line-height:20px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}
.workflow-connection-list>summary{cursor:pointer}
.workflow-node-palette{position:sticky;left:50%;bottom:16px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);margin-top:-54px;display:flex;align-items:center;gap:4px;padding:6px;border:1px solid var(--line);border-radius:30px;background:color-mix(in srgb,var(--panel) 95%,transparent);backdrop-filter:blur(8px);box-shadow:0 4px 12px #0f172a18;z-index:4}
.workflow-node-palette>span{font-size:11px;line-height:16px;color:var(--muted);padding:0 10px;border-right:1px solid var(--line)}
.workflow-node-palette .btn{min-height:32px;height:32px;padding:5px 10px;font-size:12px;line-height:20px;border-radius:24px}
.workflow-node-palette select{width:108px;min-height:32px;height:32px;font-size:12px;line-height:20px;padding:4px 8px;border-radius:20px}
.settings-page{max-width:900px}
.settings-page>h2,.settings-page>.space-between>h2{font-size:24px;line-height:32px;font-weight:700;letter-spacing:-.6px;margin:0 0 4px}
.settings-page>p{font-size:16px;line-height:24px;margin:0 0 24px}
.settings-page>form{padding-top:24px}
.dialog:has([name=trigger_type]){width:720px}
.dialog:has([name=trigger_type]) .field label{font-size:14px;line-height:20px}
.dialog:has([name=trigger_type]) .field input,.dialog:has([name=trigger_type]) .field select,.dialog:has([name=trigger_type]) .field textarea{font-size:14px;line-height:20px}
@media(max-width:1250px){.task-card-schedule{width:235px}.task-card-actions{flex-direction:column;justify-content:center;gap:6px}.task-card-title h3{font-size:16px}}
@media(max-width:1100px){.workflow-editor-frame{grid-template-columns:minmax(0,1fr)}.workflow-inspector-card .workflow-inspector{max-height:440px}.task-card{flex-wrap:wrap}.task-card-identity{min-width:200px}.task-card-schedule{order:3;width:100%;border-left:0;border-top:1px dashed var(--line);padding:12px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.task-card-schedule>div{flex-direction:column;align-items:flex-start;gap:6px}.task-card-actions{flex-direction:row}.task-filter-toolbar>input{width:200px}}
@media(max-width:640px){.task-card{gap:12px}.task-card-identity{flex-basis:100%;min-width:0}.task-card-actions{border-left:0;border-top:1px dashed var(--line);width:100%;margin-left:0;padding:12px 0 0;justify-content:space-between}.task-card-schedule{font-size:11px;gap:8px}.task-card-schedule dd{max-width:100%;font-size:10px}.task-card-title h3{white-space:normal}.task-card-context{max-height:44px;overflow:hidden}.task-pagination-controls{justify-content:flex-start}.task-pagination-controls>label{display:none}.task-filter-toolbar>input{width:100%}.task-filter>summary{max-width:220px}.task-filter-panel{position:fixed;left:14px;right:14px;top:24%;width:auto;max-width:none;z-index:32;box-shadow:0 0 0 100vmax #0003,0 4px 12px #0f172a18}.task-planned-filter .task-filter-panel{left:14px;right:14px;width:auto}.task-bulk-actions{bottom:12px;width:calc(100% - 24px);justify-content:center}.workflow-list-card>header{padding:16px;gap:10px}.workflow-list-title{gap:8px}.workflow-list-meta{justify-content:flex-start;margin-left:0}.workflow-list-state{max-width:90px;justify-content:flex-end}.workflow-list-card>footer{padding:0 16px 16px;margin-top:0}.workflow-cycle-shortcuts>summary>span{display:none}.workflow-cycle-shortcuts .crawler-cycle-grid{grid-template-columns:minmax(0,1fr)}.workflow-editor-fields{grid-template-columns:minmax(0,1fr)}.workflow-node-palette>span,.workflow-node-palette select{display:none}.workflow-node-palette{bottom:54px}.settings-page>p{font-size:14px;line-height:20px}}
