
/* Customer-service workflow management and full-screen editor. */
.wf-list{display:grid;grid-template-columns:180px minmax(0,1fr);min-height:560px;background:#fff;border:1px solid #e4e9f1;border-radius:12px;overflow:hidden}
.wf-categories{padding:18px 12px;border-right:1px solid #e4e9f1;background:#fafbfe}.wf-category-heading,.wf-category-row,.wf-heading,.wf-actions,.wf-pagination,.wf-config-group-title,.wf-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wf-category-heading{padding:0 8px 14px}.wf-category-heading button,.wf-category-edit,.wf-dialog-head button{border:0;background:none;color:#446289;font-size:23px;cursor:pointer}
.wf-category-row{gap:0}.wf-category-row>button:first-child{border:0;background:none;text-align:left;padding:11px 10px;color:#596d87;border-radius:6px;flex:1;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.wf-category-row>button.selected{background:#e9f0ff;color:#235ce5}.wf-category-edit{font-size:20px}
.wf-list-main{padding:22px;min-width:0}.wf-heading{margin-bottom:20px}.wf-heading h2{margin:0 0 6px}.wf-heading p{color:#78869b;margin:0;font-size:13px}.wf-actions{justify-content:flex-end;flex-wrap:wrap}
.wf-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}.wf-filters input,.wf-filters select{width:auto;min-width:130px;background:#f5f7fb;border:1px solid #e3e9f2;padding:9px;border-radius:7px}.wf-filters input[name=q]{width:220px}.wf-filters details{font-size:13px}.wf-date-filters{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:12px;background:#f7f9fc}
.wf-bulk{display:flex;align-items:center;gap:10px;margin:12px 0}.wf-bulk[hidden]{display:none}.wf-table-scroll{overflow:auto}.wf-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.wf-table th{text-align:left;padding:12px 9px;background:#f0f3f8;color:#52627a;font-weight:600}.wf-table td{padding:15px 9px;border-bottom:1px solid #eef1f6;color:#334863;vertical-align:top}.wf-table small{display:block;color:#8c98ab;margin-top:5px}.wf-table .wf-id{font-size:10px;max-width:175px;overflow:hidden;text-overflow:ellipsis}.wf-table input[type=checkbox]{width:15px;height:15px}.wf-row-actions{max-width:170px;white-space:normal;line-height:25px}.wf-row-actions button{margin-right:8px}.wf-dirty{color:#d68c27!important}.wf-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:320px;color:#99a6b8;gap:10px}.wf-empty>span{font-size:55px;color:#b7c9e9}.wf-empty p{margin:0}.wf-pagination{padding-top:18px;font-size:12px;color:#7a899e}.wf-pagination>div{display:flex;align-items:center;gap:12px}
.wf-dialog{border:1px solid #e1e7f0;border-radius:14px;padding:0;max-width:min(1000px,94vw);width:850px;max-height:90vh;box-shadow:0 25px 90px #142e5540}.wf-dialog::backdrop{background:#1f355766}.wf-dialog-head{padding:17px 22px;border-bottom:1px solid #edf0f6}.wf-dialog-head h2{font-size:18px;margin:0}.wf-dialog-body{padding:22px;overflow:auto}.wf-dialog-body label,.wf-inspector label{display:block;font-size:12px;color:#60718b;margin-bottom:14px}.wf-dialog-body input,.wf-dialog-body select,.wf-dialog-body textarea,.wf-inspector input,.wf-inspector select,.wf-inspector textarea{display:block;width:100%;margin-top:7px;border:1px solid #dfe6f1;border-radius:7px;padding:9px;color:#31425e;background:#fff;font:inherit;box-sizing:border-box}.wf-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.wf-template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.wf-template{position:relative;display:flex!important;flex-direction:column;border:1px solid #dfe6f0;border-radius:9px;overflow:hidden;cursor:pointer;background:#fff}.wf-template:has(input:checked){border-color:#3678fa;box-shadow:0 0 0 2px #e8f0ff}.wf-template input[type=radio]{position:absolute;right:12px;top:8px;width:16px;margin:0}.wf-template-icon{display:flex;align-items:center;justify-content:center;font-size:42px;height:96px;color:#5288ed;background:linear-gradient(120deg,#eef3fc,#f7f9fc)}.wf-template strong,.wf-template small{padding:10px 13px 0}.wf-template small{padding-bottom:13px;color:#8a98ac;font-size:11px}.wf-demo{padding:20px}.wf-demo article{border:1px solid #e2e9f3;border-radius:9px;overflow:hidden}.wf-demo article strong{display:block;padding:15px}
.wf-editor{position:fixed;inset:0;z-index:80;background:#f8faff;display:flex;flex-direction:column;color:#344665}.wf-editor-top{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#fff;border-bottom:1px solid #e1e8f4;min-height:68px;box-sizing:border-box}.wf-editor-top>input{width:230px;font-size:16px;border:1px solid transparent;padding:7px;border-radius:6px;font-weight:600;color:#314363}.wf-editor-top>input:focus{border-color:#83a8f9}.wf-save-state{font-size:11px;color:#8190a7}.wf-editor-top>.wf-actions{margin-left:auto}.wf-editor-body{display:grid;grid-template-columns:175px minmax(0,1fr) 310px;flex:1;min-height:0}.wf-node-palette{background:#fff;border-right:1px solid #e4eaf5;padding:19px 12px;overflow:auto}.wf-node-palette>strong{font-size:13px;display:block;margin:0 7px 16px}.wf-palette-item{display:flex;gap:9px;align-items:center;width:100%;padding:10px 8px;margin:6px 0;border:1px solid #e7edf5;border-radius:7px;background:#fafcff;text-align:left;font-size:12px;color:#4a5b75;cursor:pointer}.wf-palette-item>span{display:flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:5px;background:#e6efff;color:#3175ed;font-size:17px}.wf-palette-item.orange>span{background:#fff0e6;color:#fa8d40}.wf-palette-item.purple>span{background:#f0eaff;color:#8c62d7}.wf-palette-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:20px 0}.wf-palette-tools .btn{padding:7px;font-size:11px}.wf-palette-tools .btn:last-child{grid-column:span 2}.wf-node-palette .fine{font-size:11px;line-height:1.8}
.wf-viewport{position:relative;overflow:auto;background-color:#f6f8fc;background-image:radial-gradient(#dce3ee 1px,transparent 1px);background-size:18px 18px}.wf-world{position:relative;transform-origin:0 0;width:2200px;height:1400px}.wf-wires{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}.wf-edge{fill:none;stroke:#aab9ce;stroke-width:2;pointer-events:stroke;cursor:pointer}.wf-edge:hover{stroke:#ef7568;stroke-width:5}.wf-edge.traced{stroke:#3b8c67;stroke-width:3}.wf-node{position:absolute;width:260px;box-sizing:border-box;background:#fff;border:1px solid #e0e7f2;border-radius:11px;box-shadow:0 3px 12px #3047690b;overflow:visible;cursor:pointer}.wf-node.picked{box-shadow:0 0 0 2px #5185f2,0 8px 22px #305ba518}.wf-node.traced{border-color:#48a782}.wf-node.invalid{box-shadow:0 0 0 2px #ec7373}.wf-node-header{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#e7efff;border-radius:10px 10px 0 0;padding:12px 13px;color:#3e669e;font-size:12px;font-weight:600;cursor:grab;touch-action:none}.wf-node-header small{font-size:9px;font-weight:400;white-space:nowrap;color:#758dad}.wf-node.green .wf-node-header{background:#e4f6e8;color:#329254}.wf-node.orange .wf-node-header{background:#fff0e5;color:#c87936}.wf-node.purple .wf-node-header{background:#eee8ff;color:#825cb3}.wf-node-content{padding:14px 13px;font-size:12px;color:#7d8da4;line-height:1.65;max-height:110px;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.wf-node-ports{padding:0 13px 8px}.wf-port-row{position:relative;display:flex;align-items:center;justify-content:flex-end;font-size:10px;color:#5186f2;min-height:27px;gap:10px}.wf-port-row button{position:absolute;right:-19px;width:13px;height:13px;padding:0;border:2px solid #9dbcff;background:#4485fa;border-radius:50%;cursor:crosshair}.wf-port-row button.connecting{background:#ffac5f;box-shadow:0 0 0 4px #ffda9f}.wf-canvas-tools{position:sticky;bottom:35px;left:20px;width:max-content;display:flex;align-items:center;gap:8px;background:white;box-shadow:0 3px 15px #35476518;padding:7px;border-radius:9px;z-index:2;font-size:11px}.wf-canvas-tools .btn{font-size:11px;padding:6px 10px}.wf-canvas-message{position:sticky;bottom:9px;left:20px;width:max-content;max-width:85%;font-size:11px;color:#8796ac;background:#f6f8fced;padding:3px 8px;border-radius:5px}
.wf-inspector{padding:20px 16px;background:#fff;border-left:1px solid #e4eaf5;overflow:auto}.wf-inspector-heading{margin-bottom:20px}.wf-inspector-heading h3{font-size:16px;margin:0 0 6px}.wf-inspector-heading small{color:#8f9bb0;font-size:11px}.wf-inspector textarea{resize:vertical}.wf-inspector details{margin:20px 0;color:#667893;font-size:12px}.wf-inspector details summary{margin-bottom:15px;cursor:pointer}.wf-check{display:flex!important;align-items:center;gap:8px}.wf-check input[type=checkbox]{width:15px;height:15px;margin:0}.wf-connections{border-top:1px solid #edf1f7;margin-top:18px;padding-top:8px}.wf-connections h4{font-size:13px;color:#526983}.wf-delete-node{color:#c76c6c}.wf-config-groups section,.wf-intent-config{border:1px solid #e4eaf5;border-radius:8px;padding:12px;margin-bottom:14px}.wf-config-group-title{font-size:12px;margin-bottom:12px}.wf-config-group-title button{border:0;background:none;color:#bc7a7a;cursor:pointer;font-size:11px}.wf-rule{background:#f7f9fd;padding:10px;border-radius:6px;margin-bottom:12px}
.wf-trace{padding-left:24px;font-size:12px}.wf-trace li{padding:10px 0;border-bottom:1px solid #edf1f7}.wf-trace li>span{margin-left:12px;color:#43856b}.wf-trace p{color:#7d8ba1;margin:6px 0}.wf-trace small{color:#96a0b1}.wf-test-result{margin-top:20px}.wf-preview-messages p{background:#edf4ff;border:1px solid #dce8fe;padding:12px 15px;border-radius:10px;white-space:pre-wrap;font-size:13px}.wf-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fc;border-radius:7px;padding:12px}.wf-conversation-status{font-size:11px;color:#6784a7;margin:8px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:1100px){.wf-editor-body{grid-template-columns:145px minmax(0,1fr) 260px}.wf-editor-top{gap:6px}.wf-editor-top>input{width:160px}.wf-editor-top>.pill,.wf-save-state{display:none}.wf-editor-top .btn{padding:7px;font-size:11px}.wf-list{grid-template-columns:140px minmax(0,1fr)}.wf-heading{align-items:flex-start}.wf-heading p{max-width:300px}.wf-actions .btn{font-size:12px}}
@media(max-width:700px){.wf-list{grid-template-columns:1fr}.wf-categories{display:flex;gap:6px;overflow:auto;border-right:0;border-bottom:1px solid #e3eaf5;align-items:center;padding:10px}.wf-category-heading{padding:0}.wf-category-row{flex-shrink:0}.wf-heading{display:block}.wf-heading .wf-actions{margin-top:12px;justify-content:flex-start}.wf-list-main{padding:14px}.wf-template-grid{grid-template-columns:1fr 1fr}.wf-form-grid{grid-template-columns:1fr}.wf-editor-top{flex-wrap:wrap}.wf-editor-top .wf-actions{margin-left:0}.wf-editor-body{grid-template-columns:1fr 230px}.wf-node-palette{display:none}.wf-editor-body:before{content:"";display:none}.wf-editor-top>input{flex:1}.wf-inspector{padding:12px}.wf-viewport{min-width:100px}.wf-canvas-tools{gap:3px;left:5px}.wf-canvas-tools .btn{padding:5px}.wf-editor .wf-editor-top .wf-actions:before{content:"添加节点：";font-size:10px}}

.wf-mobile-add{display:none}@media(max-width:700px){.wf-mobile-add{display:block;width:130px;border:1px solid #e1e7f1;border-radius:6px;padding:7px;background:#fff;color:#536b89}}
/* Drag connections keep the curve attached to the actual input/output handles. */
.wf-node{transition:box-shadow .16s ease,border-color .16s ease}
.wf-node-input{position:absolute;left:-7px;top:20px;width:12px;height:12px;box-sizing:border-box;border:2px solid #a9bfdc;background:#fff;border-radius:50%;pointer-events:none;transition:background .15s,box-shadow .15s}
.wf-port-row button{touch-action:none;user-select:none;transition:background .15s,box-shadow .15s}
.wf-port-row button::before{content:"";position:absolute;inset:-9px;border-radius:50%}
.wf-port-row button:hover,.wf-port-row button:focus-visible{box-shadow:0 0 0 5px #4485fa26;outline:none}
.wf-port-row button.connecting{background:#2563eb;border-color:#c5d8ff;box-shadow:0 0 0 5px #4485fa30;animation:wf-port-pulse 1.2s ease-in-out infinite}
.wf-connecting,.wf-connecting .wf-node,.wf-connecting .wf-node-header{cursor:crosshair}
.wf-connecting{user-select:none}
.wf-node.wf-drop-valid{border-color:#25a578;box-shadow:0 0 0 3px #25a57842,0 8px 25px #23866120}
.wf-drop-valid .wf-node-input{background:#25a578;border-color:#d5ffec;box-shadow:0 0 0 5px #25a57830}
.wf-node.wf-drop-invalid{border-color:#e46d6d;box-shadow:0 0 0 3px #e46d6d35}
.wf-drop-invalid .wf-node-input{background:#e46d6d;border-color:#ffe4e4}
.wf-node-dragging{z-index:1;box-shadow:0 12px 32px #30476930;transition:none}
.wf-node-dragging .wf-node-header{cursor:grabbing}
.wf-node-header{user-select:none}
.wf-edge{pointer-events:none;stroke-linecap:round}
.wf-edge-hit{fill:none;stroke:transparent;stroke-width:16;pointer-events:stroke;cursor:grab;touch-action:none}
.wf-wires g:hover .wf-edge{stroke:#397df4;stroke-width:3}
.wf-edge.reconnecting{opacity:.25}
.wf-wire-preview,.wf-wire-preview-halo{fill:none;pointer-events:none;stroke-linecap:round}
.wf-wire-preview{stroke:#397df4;stroke-width:2.5;stroke-dasharray:8 5;animation:wf-wire-flow .6s linear infinite}
.wf-wire-preview.valid{stroke:#25a578}
.wf-wire-preview.invalid{stroke:#e46d6d}
.wf-wire-preview-halo{stroke:#397df421;stroke-width:10}
.wf-wire-tip{fill:#fff;stroke:#397df4;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}
.wf-wire-tip.valid{stroke:#25a578;fill:#e7fff4}
.wf-wire-tip.invalid{stroke:#e46d6d;fill:#fff0f0}
@keyframes wf-wire-flow{to{stroke-dashoffset:-26}}
@keyframes wf-port-pulse{50%{box-shadow:0 0 0 8px #4485fa13}}
@media(prefers-reduced-motion:reduce){.wf-wire-preview,.wf-port-row button.connecting{animation:none}.wf-node,.wf-node-input,.wf-port-row button{transition:none}}

.wf-edge-end{fill:#fff;stroke:#79a0d9;stroke-width:2;pointer-events:all;cursor:grab;touch-action:none}
.wf-wires g:hover .wf-edge-end{stroke:#397df4;fill:#eaf2ff}
.wf-edge-dragging .wf-edge-end{opacity:.25;pointer-events:none}
.wf-edge-dragging .wf-edge-hit{pointer-events:none}
.wf-connecting .wf-edge-hit,.wf-connecting .wf-edge-end{cursor:grabbing}
.wf-wire-preview.deleting{stroke:#e46d6d}
.wf-wire-tip.deleting{stroke:#e46d6d;fill:#fff0f0}
/* Team member configuration and safe handoff controls. */
.am-team .settings-card{max-width:none;margin-top:24px}.am-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.am-summary>div{border:1px solid var(--line);border-radius:12px;background:#fff;padding:20px;display:flex;align-items:center;gap:18px}.am-summary strong{font-size:28px;color:#376bea}.am-summary span{color:#8191a9}.am-routing{display:grid;gap:12px}.am-routing form{display:flex;align-items:center;gap:16px;margin:0}.am-routing strong{flex:1;min-width:120px}.am-routing select{flex:2}.am-team .segmented{display:flex;gap:4px}.am-team .segmented button{padding:8px 16px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#556781;cursor:pointer}.am-team .segmented .on{background:#edf3ff;color:#376bea}.am-team input[data-search]{max-width:280px}dialog:has(.am-editor){width:1040px}.am-editor{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px}.am-editor fieldset{border:1px solid var(--line);padding:16px;border-radius:10px;margin:18px 0}.am-editor legend{font-size:13px;padding:0 8px}.am-editor .form-grid{align-items:start}.am-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.am-knowledge-checks{max-height:240px;overflow:auto}.am-editor .ai-check{display:flex;align-items:center;gap:8px;line-height:1.6;margin:8px 0}.am-editor .ai-check input{width:16px;min-height:16px;height:16px;margin:0;flex:none}.am-preview{position:sticky;top:0;align-self:start;border:1px solid var(--line);border-radius:12px;padding:18px;background:#f8faff}.am-preview-messages{height:330px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:10px 0}.am-preview-messages>p{border-radius:10px;padding:12px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-width:94%}.am-preview-user{align-self:flex-end;background:#e5eeff}.am-preview-answer{align-self:flex-start;background:#fff;border:1px solid var(--line)}.am-preview-messages small{display:block;margin-top:8px;color:#8191a9}.am-preview textarea{width:100%;margin:12px 0}.am-events{max-height:240px;overflow:auto;font-size:12px;color:#63738b}.am-events p{padding:10px 0;border-bottom:1px solid var(--line)}.am-logs{max-height:65vh;overflow:auto}.am-logs .ai-log{padding:14px 0;border-bottom:1px solid var(--line)}.am-logs small{display:block;overflow-wrap:anywhere}.am-logs p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:800px){.am-editor{grid-template-columns:1fr}.am-preview{position:static}.am-summary{gap:8px}.am-summary>div{padding:14px;flex-direction:column;gap:4px}.am-routing form{flex-wrap:wrap}.am-routing strong{flex-basis:100%}.am-check-grid{grid-template-columns:1fr}.am-team .page-heading{flex-wrap:wrap}}
.am-task-field { padding:12px; margin:12px 0; border:1px solid var(--border,#dbe3ef); border-radius:10px; }
.am-session-json { white-space:pre-wrap; word-break:break-word; max-height:300px; overflow:auto; }
[data-group-form], [data-tool-form], [data-stat-form] {display:grid;gap:14px;}
[data-stat-result] {margin-top:18px;}
.am-table-wrap {overflow-x:auto;}
.am-picker{display:grid;gap:10px;margin:10px 0 18px}.am-picker>label{display:grid;gap:7px;margin:0}.am-picker input[type=search],.am-picker select{width:100%;min-width:0}.am-knowledge-pickers{margin-top:16px}.am-knowledge-pickers[hidden]{display:none}.am-chips{display:flex;flex-wrap:wrap;gap:8px}.am-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 9px;border:1px solid #d3e1fb;background:#eef4ff;border-radius:7px;color:#355784;font-size:12px}.am-chip>span{overflow-wrap:anywhere;min-width:0}.am-chip>button{flex:none;padding:0;width:22px;height:22px;border:0;border-radius:4px;background:transparent;color:#5c7394;font-size:18px;cursor:pointer}.am-chip>button:hover{background:#dce8fc}.am-chip>button:focus-visible{outline:2px solid #376bea;outline-offset:1px}.am-picker .fine{margin:0}
.am-routing-step{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;max-width:760px}.am-routing-step>label{display:grid;gap:8px;margin:0}.am-routing-step select{width:100%;min-width:0}.am-routing-step>button{align-self:end;margin-bottom:0}[data-routing-choice]{display:grid;gap:16px}[data-routing-choice]>label{display:grid;gap:8px;margin:0}[data-routing-choice] select{width:100%}.am-routing-detail{padding:14px;border:1px solid var(--line);border-radius:9px;background:#f8faff;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.am-routing-step{grid-template-columns:1fr}.am-routing-step>button{justify-self:start}}
/* AI employee template selection */
dialog:has(.am-template-grid) { width: 840px; }
.am-template-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 22px 0; }
.am-template-card { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 20px; text-align: left; color: #526780; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font: inherit; }
.am-template-card:hover { border-color: #769df0; background: #f8faff; }
.am-template-card:focus-visible { outline: 3px solid #376bea; outline-offset: 3px; }
.am-template-icon { font-size: 25px; }
.am-template-card strong { color: #314159; font-size: 15px; }
.am-template-card>span:not(.am-template-icon) { font-size: 12px; line-height: 1.8; }
.am-template-card small { margin-top: auto; padding-top: 6px; color: #8494ab; font-size: 11px; line-height: 1.7; }
.am-template-used { padding: 12px 16px; background: #f3f7fd; border: 1px solid #e6edf9; border-radius: 8px; }
@media(max-width:700px) { .am-template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .am-template-card { padding: 15px; } }
@media(max-width:460px) { .am-template-grid { grid-template-columns: 1fr; } }

dialog:has(.am-library) { width: 900px; }
.am-library-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.am-library-search>input { flex: 1; min-width: 160px; }
.am-library-search .ai-check { margin: 0; }
.am-library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.am-library-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.am-library-card p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.am-library-card .wf-actions { margin-top: auto; }
.am-library-preview { margin: 20px 0; padding: 16px; background: #f5f8fc; border-radius: 10px; }
.am-library-preview dl { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 12px; }
.am-library-preview dt { font-weight: 600; }
.am-library-preview dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.am-library-pager { margin-top: 20px; }
@media(max-width:600px) { .am-library-grid { grid-template-columns: 1fr; } .am-library-preview dl { grid-template-columns: 1fr; gap: 6px; } .am-library-preview dd { margin-bottom: 10px; } }

.am-library-page .page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.am-library-page .am-library-grid { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.am-library-member-form { max-height:75vh; overflow:auto; padding-right:6px; }
.am-library-preview li { margin-bottom:14px; overflow-wrap:anywhere; }
.am-library-preview li p { margin:6px 0; white-space:pre-wrap; }
.rail { overflow-y:auto; }
@media(max-width:600px) { .am-library-page .am-library-grid { grid-template-columns:1fr; } }

.wf-editor [hidden] { display:none!important; }
