    :root{
      --bg: #f6f8fb;
      --panel: #ffffff;
      --panel-2: #fbfcff;
      --text: #0f172a;
      --muted: #64748b;
      --border: rgba(15, 23, 42, .10);
      --shadow: 0 10px 30px rgba(2, 6, 23, .08);
      --accent: #1d4ed8;
      --accent-2: #0ea5e9;
      --danger: #ef4444;
      --warn-bg:#fff7ed;
      --warn-border:#fed7aa;
      --warn-text:#9a3412;
      --radius: 16px;
      --radius-sm: 12px;
      --gap: 16px;
      --app-max-width: min(1760px, calc(100vw - 20px));
      --main-copy-max: 1220px;
      --font: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Arial, sans-serif;
    }
    *{box-sizing:border-box}
    [hidden]{display:none !important}
    html,body{height:100%}
    body{
      margin:0;
      font-family:var(--font);
      background: var(--bg);
      color:var(--text);
    }
    a{color:inherit; text-decoration:none}
    .app{
      height:100dvh;
      min-height:100dvh;
      display:grid;
      grid-template-columns: clamp(340px, 24vw, 390px) minmax(0, 1fr);
      gap: var(--gap);
      padding: clamp(14px, 1.8vw, 22px);
      padding-bottom: clamp(16px, 2vw, 24px);
      max-width: var(--app-max-width);
      margin: 0 auto;
      align-items:start;
      overflow:visible;
    }

    /* Sidebar */
    .sidebar{
      position:sticky;
      top: 18px;
      align-self:start;
      height: calc(100dvh - 36px);
      overflow-y:auto;
      overflow-x:hidden;
      overscroll-behavior: contain;
      display:flex;
      flex-direction:column;
      gap: var(--gap);
      min-width: 0;
      scrollbar-gutter: stable;
      padding-bottom: 0;
    }
    .brand{
      display: block;
      background: linear-gradient(135deg, rgba(29,78,216,.14), rgba(14,165,233,.10));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px 16px 14px;
      box-shadow: var(--shadow);
    }
    .brand-row{
      display:flex; align-items:center; justify-content:space-between; gap: 12px;
    }
    .logo{
      display:flex; align-items:center; gap: 10px;
      font-weight: 800;
      letter-spacing: .3px;
      font-size: 18px;
    }
    .logo-badge{
      width: 34px; height: 34px;
      border-radius: 12px;
      display:grid; place-items:center;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color:#fff;
      box-shadow: 0 10px 24px rgba(29,78,216,.25);
      flex: 0 0 auto;
    }
    .brand-sub{
      margin-top: 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }
    .brand-row a.pill{
      font-size: 12px;
      padding: 6px 10px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,.70);
      color: var(--muted);
      text-decoration: none !important;
      text-decoration-line: none !important;
    }
    .brand-row a.pill:hover,
    .brand-row a.pill:focus,
    .brand-row a.pill:focus-visible,
    .brand-row a.pill:visited{
      text-decoration: none !important;
      text-decoration-line: none !important;
    }
    .brand-row a.pill,
    .brand-row a.pill *{
      border-bottom: 0 !important;
      box-shadow: none;
    }
    .card{
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px;
      box-shadow: var(--shadow);
    }
    .card h3{
      margin: 0 0 8px 0;
      font-size: 14px;
      letter-spacing: .2px;
    }
    .card p{
      margin: 0 0 12px 0;
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.6;
    }
    .disc-btn{
      appearance:none;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text);
      border-radius: 12px;
      padding: 10px 12px;
      font-weight: 650;
      font-size: 13px;
      cursor:pointer;
      display:inline-flex;
      align-items:center;
      gap: 10px;
      transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
    }
    .disc-btn:hover{transform: translateY(-1px); box-shadow: 0 12px 30px rgba(2,6,23,.10); border-color: rgba(29,78,216,.22)}
    .disc-btn:active{transform: translateY(0)}
    .disc-btn[disabled],
    .disc-btn.is-disabled{
      opacity:.62;
      cursor:not-allowed;
      box-shadow:none;
      transform:none;
    }
    .disc-btn.is-disabled{
      pointer-events:none;
    }
    .disc-btn-primary{
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      border-color: transparent;
      color:#fff;
      box-shadow: 0 14px 34px rgba(29,78,216,.22);
    }
    .disc-btn-ghost{
      background: transparent;
    }
    .disc-btn-danger{
      background: #fff;
      border-color: rgba(239,68,68,.28);
      color: #b91c1c;
    }

    .drop{
      border: 1.5px dashed rgba(29,78,216,.35);
      background: linear-gradient(180deg, rgba(29,78,216,.06), rgba(14,165,233,.03));
      border-radius: 14px;
      padding: 14px;
    }
    .drop-row{display:flex; align-items:flex-start; justify-content:space-between; gap: 12px}
    .drop strong{display:block; font-size: 13px}
    .drop small{display:block; color: var(--muted); margin-top: 6px}
    .file-list{margin-top: 10px; display:flex; flex-direction:column; gap: 6px}
    .file-item{
      border:1px solid var(--border);
      border-radius: 12px;
      padding: 8px 10px;
      font-size: 12.5px;
      color: var(--muted);
      background: rgba(255,255,255,.75);
      display:flex; justify-content:space-between; gap: 10px;
    }
    .file-item b{color: var(--text); font-weight: 650}
    .source-file-item-main{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap: 4px;
      flex:1 1 auto;
    }
    .source-file-note-preview{
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      word-break: break-word;
    }
    .source-file-item-actions{
      display:flex;
      align-items:center;
      gap: 8px;
      flex: 0 0 auto;
    }
    .source-file-note-badge{
      display:inline-flex;
      align-items:center;
      gap: 6px;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(29,78,216,.18);
      background: rgba(29,78,216,.08);
      color: var(--accent);
      font-size: 11px;
      font-weight: 750;
      white-space: nowrap;
    }
    .source-file-note-btn,
    .source-file-delete-btn{
      padding: 7px 10px;
      border-radius: 10px;
      font-size: 12px;
      gap: 6px;
    }
    .knowledge-drop{
      padding: 12px;
    }
    .knowledge-drop.is-locked{
      border-style: solid;
      background: linear-gradient(180deg, rgba(148,163,184,.12), rgba(148,163,184,.06));
    }
    .knowledge-drop-layout{
      display:grid;
      grid-template-columns: 1fr;
      gap: 12px;
      align-items:stretch;
    }
    .knowledge-pane{
      min-width:0;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 12px;
      background: rgba(255,255,255,.72);
      padding: 12px;
      display:flex;
      flex-direction:column;
      gap: 10px;
    }
    .knowledge-pane-title{
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.4;
    }
    .knowledge-pane-sub{
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }
    .knowledge-upload-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 12px;
    }
    .source-url-label{
      margin: 0;
    }
    .source-url-list{
      display:flex;
      flex-direction:column;
      gap: 10px;
    }
    .source-url-row{
      display:flex;
      align-items:center;
      gap: 10px;
    }
    .source-url-field{
      flex: 1 1 auto;
      min-width: 0;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(15,23,42,.1);
      background: rgba(255,255,255,.92);
      font-size: 13px;
      line-height: 1.45;
      color: var(--text);
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }
    .source-url-field::placeholder{
      color: rgba(100,116,139,.88);
    }
    .source-url-field:focus{
      outline: none;
      border-color: rgba(37,99,235,.42);
      box-shadow: 0 0 0 4px rgba(37,99,235,.12);
      background: rgba(255,255,255,.98);
    }
    .source-url-field:disabled{
      background: rgba(248,250,252,.92);
      color: rgba(100,116,139,.96);
      cursor: not-allowed;
    }
    .source-url-remove{
      flex: 0 0 auto;
      min-width: 58px;
      padding: 9px 12px;
      border-radius: 14px;
      border: 1px solid rgba(248,113,113,.28);
      background: rgba(255,255,255,.9);
      color: #dc2626;
      font-size: 12px;
      font-weight: 700;
    }
    .source-url-remove:disabled{
      opacity: .55;
      cursor: not-allowed;
    }
    .source-url-tip{
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }
    .knowledge-confirm-row{
      margin-top: 10px;
      display:flex;
      justify-content:flex-end;
      gap: 10px;
      flex-wrap:wrap;
    }
    .knowledge-confirm-note{
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }
    .knowledge-help{
      margin-top: 8px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(15,23,42,.08);
      background: rgba(255,255,255,.66);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.65;
    }
    .knowledge-help code{
      font-size: 11px;
    }

    /* Main */
    .main{
      background: var(--panel);
      border: 1px solid rgba(15,23,42,.08);
      border-radius: calc(var(--radius) + 6px);
      box-shadow: var(--shadow);
      overflow:hidden;
      display:flex;
      flex-direction:column;
      min-height: 0;
      height: 100%;
      min-width: 0;
    }
    .top{
      padding: 18px 22px 10px;
      border-bottom: 1px solid rgba(15,23,42,.08);
      background: rgba(255,255,255,.98);
      backdrop-filter: blur(8px);
    }
    .title{
      font-size: 28px;
      font-weight: 850;
      margin: 0;
      letter-spacing: .2px;
    }
    .desc{
      margin: 8px 0 0 0;
      color: var(--muted);
      line-height: 1.7;
      font-size: 13.5px;
      max-width: var(--main-copy-max);
    }
    .warn{
      margin-top: 12px;
      padding: 12px 12px;
      border: 1px solid var(--warn-border);
      background: var(--warn-bg);
      border-radius: 14px;
      color: var(--warn-text);
      display:flex;
      gap: 10px;
      align-items:flex-start;
      font-size: 13px;
      line-height: 1.6;
    }
    .warn svg{flex: 0 0 auto; margin-top: 2px}
    .quick{
      margin-top: 14px;
      display:flex;
      gap: 10px;
      flex-wrap:wrap;
    }
    .chip{
      border: 1px solid rgba(15,23,42,.10);
      background: rgba(255,255,255,.70);
      padding: 9px 12px;
      border-radius: 999px;
      font-size: 13px;
      color: var(--text);
      display:flex;
      align-items:center;
      gap: 8px;
      cursor:pointer;
      transition: border-color .12s ease, transform .08s ease;
    }
    .chip:hover{border-color: rgba(29,78,216,.22); transform: translateY(-1px)}
    .chip svg{opacity:.85}

    .tabs{
      display:flex;
      gap: 18px;
      padding: 0 22px;
      overflow:auto;
      background: #fff;
      border-bottom: 1px solid rgba(15,23,42,.08);
    }
    .tab{
      padding: 14px 2px 12px;
      color: var(--muted);
      font-weight: 700;
      font-size: 13px;
      border-bottom: 2px solid transparent;
      white-space:nowrap;
      cursor:pointer;
      user-select:none;
    }
    .tab[aria-selected="true"]{
      color: var(--text);
      border-bottom-color: var(--accent);
    }

    .content{
      padding: 22px;
      overflow:auto;
      flex: 1;
      min-width: 0;
      min-height: 0;
      background: #fff;
    }

    .section-title{
      font-size: 34px;
      margin: 0;
      letter-spacing: .2px;
    }
    .section-sub{
      margin: 10px 0 18px 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
      max-width: var(--main-copy-max);
    }

    .form{
      display:flex;
      flex-direction:column;
      gap: 12px;
      max-width: var(--main-copy-max);
      min-width: 0;
    }
    .label{
      font-size: 13px;
      color: var(--muted);
      font-weight: 650;
      margin-bottom: 6px;
    }
    textarea, input[type="text"], input[type="password"], input[type="number"], select{
      width: 100%;
      border: 1px solid rgba(15,23,42,.12);
      border-radius: 14px;
      background: rgba(255,255,255,.85);
      padding: 12px 12px;
      font-family: var(--font);
      font-size: 14px;
      outline:none;
    }
    textarea{min-height: 140px; resize: vertical}
    select{padding: 11px 12px}
    .row{display:flex; gap: 12px; flex-wrap:wrap; min-width:0}
    .row > .col{flex: 1 1 320px; min-width:0}
    .actions{display:flex; align-items:center; gap: 12px; flex-wrap:wrap}
    .result-card .actions{justify-content:flex-end}
    .knowledge-run-actions{margin-top:12px; margin-bottom:16px}
    .divider{
      margin: 18px 0;
      height: 1px;
      background: rgba(15,23,42,.08);
    }
    details{
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 14px;
      background: rgba(255,255,255,.70);
      padding: 10px 12px;
    }
    summary{
      cursor:pointer;
      font-weight: 750;
      color: var(--text);
      list-style:none;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
    }
    summary::-webkit-details-marker{display:none}
    .details-body{margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65}

    .placeholder{
      border: 1px dashed rgba(15,23,42,.18);
      border-radius: 16px;
      padding: 14px;
      background: rgba(255,255,255,.50);
      color: var(--muted);
      font-size: 13.5px;
      line-height: 1.7;
    }

    .result-box{
      min-height: 150px;
      background: rgba(255,255,255,.85);
      color: var(--text);
    }
    .result-box pre{
      margin: 0;
      white-space: pre-wrap;
      word-break: break-word;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12.5px;
      line-height: 1.7;
    }
    .result-meta{
      margin-bottom: 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
    }
    .artifact-shell{
      display:flex;
      flex-direction:column;
      gap: 12px;
      padding: 16px;
    }
    .artifact-list{
      display:flex;
      flex-direction:column;
      gap: 8px;
    }
    .artifact-entry{
      width:100%;
      border:1px solid var(--border);
      border-radius: 12px;
      padding: 10px 12px;
      background: rgba(255,255,255,.92);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      cursor:pointer;
      font: inherit;
      color: var(--text);
      text-align:left;
      transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
    }
    .artifact-entry:hover{
      transform: translateY(-1px);
      box-shadow: 0 12px 30px rgba(2,6,23,.08);
      border-color: rgba(29,78,216,.22);
    }
    .artifact-entry:active{transform: translateY(0)}
    .artifact-entry[disabled]{
      cursor: not-allowed;
      opacity: .72;
      transform:none;
      box-shadow:none;
    }
    .artifact-entry-main{
      min-width:0;
      display:flex;
      align-items:center;
      gap: 10px;
    }
    .artifact-entry-name{
      min-width:0;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
      font-weight: 700;
    }
    .artifact-entry-hint{
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
      flex: 0 0 auto;
    }
    .artifact-preview{
      border:1px solid rgba(15,23,42,.10);
      border-radius: 14px;
      background: rgba(255,255,255,.94);
      padding: 12px;
      min-height: 120px;
    }
    .artifact-preview-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      margin-bottom: 10px;
      flex-wrap:wrap;
    }
    .artifact-preview-title{
      font-size: 13px;
      font-weight: 750;
      color: var(--text);
      word-break: break-all;
    }
    .artifact-preview-copy{
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
    }
    .artifact-empty{
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }
    .toggle-card{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 18px;
      border: 1px solid rgba(15,23,42,.12);
      border-radius: 14px;
      background: rgba(255,255,255,.85);
      padding: 14px 16px;
    }
    .toggle-copy{
      display:flex;
      flex-direction:column;
      gap: 6px;
    }
    .toggle-copy b{
      font-size: 14px;
    }
    .toggle-copy span{
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }
    .switch{
      position:relative;
      width: 58px;
      height: 32px;
      flex: 0 0 auto;
      display:inline-block;
    }
    .switch input{
      opacity:0;
      width:0;
      height:0;
      position:absolute;
    }
    .switch-slider{
      position:absolute;
      inset:0;
      background:#cbd5e1;
      border-radius:999px;
      transition: all .18s ease;
      box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
      cursor:pointer;
    }
    .switch-slider:before{
      content:"";
      position:absolute;
      width:24px;
      height:24px;
      left:4px;
      top:4px;
      border-radius:50%;
      background:#fff;
      box-shadow: 0 3px 10px rgba(15,23,42,.18);
      transition: transform .18s ease;
    }
    .switch input:checked + .switch-slider{
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
    }
    .switch input:checked + .switch-slider:before{
      transform: translateX(26px);
    }
    .switch-state{
      min-width: 42px;
      text-align:right;
      font-size: 12px;
      font-weight: 750;
      color: var(--muted);
    }

    .source-grid{
      display:grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .source-option{
      display:flex;
      align-items:center;
      gap: 10px;
      padding: 14px 16px;
      border: 1px solid rgba(15,23,42,.12);
      border-radius: 16px;
      background: rgba(255,255,255,.82);
      cursor:pointer;
      font-weight: 650;
      min-height: 56px;
    }
    .source-option input{
      width: 16px;
      height: 16px;
      accent-color: var(--accent);
      margin: 0;
      flex: 0 0 auto;
    }
    .count-input-wrap{
      position:relative;
    }
    .compact-count-input{
      width: min(240px, 100%);
    }
    .count-row{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .count-input-wrap input{
      padding-right: 48px;
    }
    .count-suffix{
      position:absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
      pointer-events:none;
    }
    .task-card{
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 18px;
      background: rgba(255,255,255,.82);
      overflow:hidden;
    }
    .task-card-head{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 16px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(15,23,42,.08);
      background: linear-gradient(180deg, rgba(29,78,216,.05), rgba(255,255,255,.65));
    }
    .task-card-title{
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 6px;
    }
    .task-card-sub{
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }
    .task-card-body{
      min-height: 220px;
      height: auto;
      resize: vertical;
      overflow: auto;
      background: rgba(255,255,255,.72);
    }
    .file-view-shell{
      min-height: 220px;
      height: auto;
      resize: vertical;
      overflow: auto;
      background: rgba(255,255,255,.72);
    }
    .task-markdown-view{
      margin: 0;
      border: 0;
      border-radius: 0;
      min-height: 100%;
      height: auto;
      padding: 18px 16px;
      background: transparent;
    }
    .task-markdown-view pre{
      margin: 0;
      white-space: pre-wrap;
      word-break: break-word;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 13px;
      line-height: 1.8;
      color: var(--text);
    }
    .task-md-editor{
      width: 100%;
      min-height: 100%;
      height: auto;
      border: 0;
      border-radius: 0;
      background: rgba(255,255,255,.92);
      padding: 18px 16px;
      resize: vertical;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      line-height: 1.8;
      overflow: auto;
    }
    .task-card-body > [hidden]{display:none !important}
    .file-view-shell > [hidden]{display:none !important}
    .result-box,
    .artifact-preview{
      resize: vertical;
      overflow: auto;
    }
    .literature-api-key-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 10px;
    }
    .literature-api-key-item[hidden]{display:none !important}
    .markdown-content{
      color: var(--text);
      line-height: 1.8;
      font-size: 14px;
      word-break: break-word;
    }
    .markdown-content > :first-child{margin-top:0}
    .markdown-content > :last-child{margin-bottom:0}
    .markdown-content h1,
    .markdown-content h2,
    .markdown-content h3,
    .markdown-content h4,
    .markdown-content h5,
    .markdown-content h6{
      margin: 1.1em 0 .45em;
      line-height: 1.35;
      font-weight: 800;
    }
    .markdown-content h1{font-size: 24px}
    .markdown-content h2{font-size: 20px}
    .markdown-content h3{font-size: 17px}
    .markdown-content p{margin: .6em 0}
    .markdown-content ul,
    .markdown-content ol{margin: .6em 0; padding-left: 1.4em}
    .markdown-content li + li{margin-top: .28em}
    .markdown-content blockquote{
      margin: .8em 0;
      padding: .1em 0 .1em 1em;
      border-left: 3px solid rgba(29,78,216,.22);
      color: var(--muted);
    }
    .markdown-content code{
      padding: .12em .35em;
      border-radius: 8px;
      background: rgba(15,23,42,.06);
      font-size: .92em;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }
    .markdown-content pre{
      margin: .8em 0;
      padding: 12px 14px;
      border-radius: 14px;
      overflow: auto;
      background: rgba(15,23,42,.05);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12.5px;
      line-height: 1.7;
    }
    .markdown-content pre code{
      background: transparent;
      padding: 0;
      border-radius: 0;
    }
    .markdown-content a{
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .markdown-content hr{
      border: 0;
      height: 1px;
      margin: 1.1em 0;
      background: rgba(15,23,42,.10);
    }
    .markdown-content table{
      width: 100%;
      border-collapse: collapse;
      margin: .9em 0;
      display: block;
      overflow-x: auto;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 14px;
      background: rgba(255,255,255,.96);
    }
    .markdown-content thead tr{
      background: rgba(15,23,42,.05);
    }
    .markdown-content th,
    .markdown-content td{
      min-width: 120px;
      padding: 10px 12px;
      border: 1px solid rgba(15,23,42,.08);
      text-align: left;
      vertical-align: top;
      font-size: 13px;
      line-height: 1.7;
    }
    .markdown-content img{
      display: block;
      max-width: 100%;
      height: auto;
      border-radius: 14px;
      border: 1px solid rgba(15,23,42,.10);
      background: rgba(255,255,255,.96);
    }
    .markdown-content figure{
      margin: 1em 0;
    }
    .markdown-content figcaption{
      margin-top: 8px;
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.6;
    }
    .markdown-content .mermaid-shell{
      margin: .9em 0;
      padding: 14px;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 14px;
      background: rgba(255,255,255,.98);
      overflow: auto;
    }
    .markdown-content .math-block{
      margin: .9em 0;
      overflow-x: auto;
      overflow-y: hidden;
    }
    .markdown-content .katex-display{
      margin: 0;
      padding: .15em 0;
      overflow-x: auto;
      overflow-y: hidden;
    }
    .result-grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .result-grid.lit-result-grid{
      grid-template-columns: 1fr;
      min-width: 0;
      width: 100%;
      max-width: 100%;
    }
    .lit-result-grid .result-card{
      min-height: auto;
      min-width: 0;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }
    .lit-result-grid .result-mini{
      margin-top: 12px;
      min-height: 0;
    }
    .result-card{
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 18px;
      background: rgba(255,255,255,.82);
      padding: 16px;
      min-height: 220px;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-width: 0;
      max-width: 100%;
    }
    .result-card h3{
      margin: 0;
      font-size: 16px;
    }
    .result-card p{
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }
    .result-mini{
      margin-top: auto;
      min-height: 88px;
    }
    .lit-metadata-list{
      display:flex;
      flex-direction:column;
      gap: 10px;
    }
    .lit-metadata-item{
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 14px;
      background: rgba(255,255,255,.86);
      padding: 12px 14px;
    }
    .lit-metadata-item summary{
      align-items:flex-start;
    }
    .lit-metadata-summary-main{
      min-width:0;
      flex:1 1 auto;
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 12px;
    }
    .lit-metadata-title{
      min-width:0;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.65;
      color: var(--text);
      word-break: break-word;
    }
    .lit-metadata-year{
      flex: 0 0 auto;
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
      line-height: 1.8;
      white-space: nowrap;
    }
    .lit-metadata-summary-hint{
      flex: 0 0 auto;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.8;
    }
    .lit-metadata-summary-hint::before{
      content: "点击展开";
    }
    .lit-metadata-item[open] .lit-metadata-summary-hint{
      color: var(--accent);
    }
    .lit-metadata-item[open] .lit-metadata-summary-hint::before{
      content: "点击收起";
    }
    .lit-metadata-detail-grid{
      display:grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .lit-metadata-detail-row{
      padding: 10px 12px;
      border: 1px solid rgba(15,23,42,.08);
      border-radius: 12px;
      background: rgba(248,250,252,.92);
    }
    .lit-metadata-detail-label{
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
      line-height: 1.5;
    }
    .lit-metadata-detail-value{
      color: var(--text);
      font-size: 13px;
      line-height: 1.75;
      word-break: break-word;
    }
    .lit-metadata-detail-value a{
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .lit-blog-shell{
      display:flex;
      flex-direction:column;
      gap: 12px;
      margin-top: 12px;
      min-width: 0;
      width: 100%;
      max-width: 100%;
    }
    .lit-blog-toolbar{
      display:flex;
      align-items:flex-start;
      justify-content:flex-start;
      gap: 12px;
      flex-wrap:wrap;
    }
    .lit-blog-count{
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.6;
    }
    .lit-blog-placeholder{
      margin-top: 0;
      min-height: 0;
    }
    .lit-blog-carousel{
      min-width: 0;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }
    .lit-blog-rail{
      display:flex;
      align-items:stretch;
      gap: 14px;
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 4px;
      scroll-snap-type: x proximity;
      scrollbar-width: thin;
      -webkit-overflow-scrolling: touch;
    }
    .lit-blog-rail::-webkit-scrollbar{
      height: 10px;
    }
    .lit-blog-rail::-webkit-scrollbar-track{
      background: rgba(15,23,42,.05);
      border-radius: 999px;
    }
    .lit-blog-rail::-webkit-scrollbar-thumb{
      background: rgba(29,78,216,.22);
      border-radius: 999px;
    }
    .lit-blog-card{
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(29,78,216,.06), rgba(255,255,255,.96) 28%),
        rgba(255,255,255,.92);
      box-shadow: 0 12px 28px rgba(2,6,23,.06);
      overflow:hidden;
      display:flex;
      flex-direction:column;
      min-height: 100%;
      min-width: 0;
      flex: 0 0 340px;
      width: 340px;
      max-width: min(340px, calc(100vw - 120px));
      scroll-snap-align: start;
      cursor: pointer;
    }
    .lit-blog-preview{
      display:flex;
      flex-direction:column;
      justify-content:flex-start;
      position:relative;
      border-bottom: 1px solid rgba(15,23,42,.08);
      background:
        radial-gradient(circle at top left, rgba(14,165,233,.18), transparent 48%),
        linear-gradient(180deg, rgba(15,23,42,.04), rgba(15,23,42,.01));
      min-height: 190px;
      max-height: 220px;
      overflow:hidden;
      padding: 16px 16px 18px;
    }
    .lit-blog-preview::after{
      content:"";
      position:absolute;
      inset:auto 0 0 0;
      height: 56px;
      background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.82));
      pointer-events:none;
    }
    .lit-blog-preview-markdown{
      position:relative;
      z-index:1;
      font-size: 12.5px;
      line-height: 1.75;
      color: var(--text);
      overflow:hidden;
      word-break: break-word;
      display:flex;
      flex-direction:column;
      gap: 10px;
    }
    .lit-blog-preview-markdown p{
      margin: 0;
      display:-webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow:hidden;
    }
    .lit-blog-preview-markdown code,
    .lit-blog-preview-markdown pre,
    .lit-blog-preview-markdown blockquote,
    .lit-blog-preview-markdown img,
    .lit-blog-preview-markdown ul,
    .lit-blog-preview-markdown ol,
    .lit-blog-preview-markdown h1,
    .lit-blog-preview-markdown h2,
    .lit-blog-preview-markdown h3,
    .lit-blog-preview-markdown h4,
    .lit-blog-preview-markdown h5,
    .lit-blog-preview-markdown h6{
      display:none;
    }
    .lit-blog-card-body{
      padding: 14px 14px 16px;
      display:flex;
      flex-direction:column;
      gap: 10px;
      min-height: 0;
      flex: 1;
    }
    .lit-blog-card-eyebrow{
      color: var(--accent);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .lit-blog-card-title{
      display:-webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow:hidden;
      font-size: 15px;
      font-weight: 800;
      line-height: 1.45;
    }
    .lit-blog-card-title:hover{
      color: var(--accent);
    }
    .lit-blog-card-meta{
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.65;
      min-height: 2.8em;
    }
    .lit-blog-card-actions{
      margin-top: auto;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 10px;
      flex-wrap:wrap;
      min-width: 0;
    }
    .lit-blog-card-file{
      flex: 1 1 auto;
      min-width: 0;
      max-width: 100%;
      color: var(--muted);
      font-size: 11.5px;
      line-height: 1.5;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .lit-blog-card-actions .disc-btn{
      flex: 0 0 auto;
    }
    .lit-blog-card.is-placeholder{
      background:
        linear-gradient(180deg, rgba(148,163,184,.10), rgba(255,255,255,.92) 30%),
        rgba(255,255,255,.9);
    }
    .lit-blog-card.is-placeholder .lit-blog-preview{
      background:
        linear-gradient(135deg, rgba(148,163,184,.14), rgba(226,232,240,.38)),
        linear-gradient(180deg, rgba(15,23,42,.04), rgba(15,23,42,.01));
    }
    .lit-blog-card.is-placeholder .lit-blog-preview::before{
      content:"Blog Preview";
      position:absolute;
      left: 16px;
      top: 14px;
      color: rgba(15,23,42,.36);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .lit-blog-skeleton-line{
      display:block;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(148,163,184,.18), rgba(226,232,240,.65), rgba(148,163,184,.18));
      background-size: 200% 100%;
      animation: litBlogShimmer 1.8s linear infinite;
    }
    .lit-blog-skeleton-line.title{
      height: 16px;
      width: 88%;
    }
    .lit-blog-skeleton-line.title + .lit-blog-skeleton-line.title{
      width: 72%;
      margin-top: 8px;
    }
    .lit-blog-skeleton-line.meta{
      height: 12px;
      width: 66%;
      margin-top: 8px;
    }
    .lit-blog-skeleton-line.file{
      height: 12px;
      width: 58%;
    }
    .lit-blog-skeleton-pill{
      display:inline-flex;
      width: 90px;
      height: 34px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(148,163,184,.18), rgba(226,232,240,.65), rgba(148,163,184,.18));
      background-size: 200% 100%;
      animation: litBlogShimmer 1.8s linear infinite;
    }
    @keyframes litBlogShimmer{
      0%{background-position: 200% 0}
      100%{background-position: -200% 0}
    }


    .manual-mode-hint{margin-top:14px}
    .hint-box{padding:12px 14px; border-radius:12px; background:rgba(59,130,246,.08); color:var(--text); border:1px solid rgba(59,130,246,.18); font-size:13px}
    .interactive-shell{
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 18px;
      background: rgba(255,255,255,.82);
      overflow: hidden;
      min-width: 0;
    }
    .interactive-body{
      height: clamp(640px, 76vh, 1080px);
      min-height: 420px;
      resize: vertical;
      overflow: auto;
      background: #fff;
    }
    .interactive-toolbar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(15,23,42,.08);
      background: linear-gradient(180deg, rgba(29,78,216,.05), rgba(255,255,255,.65));
      flex-wrap: wrap;
    }
    .interactive-toolbar b{
      font-size: 15px;
    }
    .interactive-toolbar span{
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.6;
    }
    .interactive-frame{
      width: 100%;
      height: 100%;
      min-height: 420px;
      border: 0;
      background: #fff;
      display:block;
    }
    .interactive-frame[hidden]{display:none}
    .interactive-placeholder{
      margin: 16px;
      color: var(--muted);
    }
    .inline-field-grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    @media (max-width: 1040px){
      .inline-field-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
    }
    @media (max-width: 720px){
      .interactive-toolbar{align-items:flex-start;}
      .interactive-body{height: 580px; min-height: 420px;}
      .interactive-frame{min-height: 420px;}
      .inline-field-grid{grid-template-columns: 1fr;}
      .count-row{grid-template-columns: 1fr;}
    }

    .project-actions{
      display:flex;
      align-items:center;
      gap: 10px;
      flex-wrap:wrap;
    }
    .project-history-list{
      display:flex;
      flex-direction:column;
      gap: 10px;
      max-height: min(60vh, 480px);
      overflow:auto;
    }
    .project-history-item{
      width:100%;
      border:1px solid rgba(15,23,42,.10);
      border-radius: 14px;
      background: rgba(255,255,255,.92);
      padding: 12px 14px;
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 14px;
      text-align:left;
      cursor:pointer;
      font: inherit;
      color: var(--text);
      transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
    }
    .project-history-item:hover{
      transform: translateY(-1px);
      box-shadow: 0 12px 30px rgba(2,6,23,.08);
      border-color: rgba(29,78,216,.22);
    }
    .project-history-item:active{transform: translateY(0)}
    .project-history-item[disabled]{
      cursor:not-allowed;
      opacity:.72;
      transform:none;
      box-shadow:none;
    }
    .project-history-item-main{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap: 6px;
    }
    .project-history-item-name{
      font-size: 14px;
      font-weight: 800;
      line-height: 1.45;
      word-break: break-word;
    }
    .project-history-item-meta{
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
      word-break: break-word;
    }
    .project-history-item-actions{
      display:flex;
      align-items:center;
      gap: 8px;
      margin-left:auto;
      flex: 0 0 auto;
    }
    .project-history-item-select{
      font-size: 12px;
      font-weight: 750;
      white-space:nowrap;
    }
    .project-history-item-select.action-icon-btn{
      color: var(--accent) !important;
    }
    .project-history-item-delete.action-icon-btn{
      color: var(--danger) !important;
    }
    .disc-btn.action-icon-btn{
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
    }
    /* Modal */
    .modal-backdrop{
      position:fixed; inset:0;
      background: rgba(2,6,23,.45);
      display:none;
      align-items:center;
      justify-content:center;
      padding: 18px;
      z-index: 50;
    }
    .modal{
      width: min(720px, 100%);
      background: var(--panel);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 18px;
      box-shadow: 0 30px 80px rgba(2,6,23,.30);
      overflow:hidden;
    }
    .modal-head{
      padding: 14px 16px;
      border-bottom: 1px solid rgba(15,23,42,.10);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      background: linear-gradient(180deg, rgba(29,78,216,.08), rgba(255,255,255,.55));
    }
    .modal-head b{font-size: 14px}
    .modal-body{padding: 16px}
    .modal-foot{
      padding: 14px 16px;
      border-top: 1px solid rgba(15,23,42,.10);
      display:flex;
      justify-content:flex-end;
      gap: 10px;
      background: rgba(255,255,255,.70);
    }
    .source-note-modal-target-copy{
      color: var(--muted);
      font-size: 12px;
      line-height: 1.65;
      margin-bottom: 12px;
    }


    .editor-actions{
      flex: 0 0 auto;
      justify-content:flex-end;
      align-items:center;
      flex-wrap:nowrap;
      white-space:nowrap;
      gap: 10px;
    }
    .editor-actions .disc-btn{
      flex: 0 0 auto;
    }
    .feedback-fixed-actions{
      display:flex;
      flex-wrap:nowrap !important;
      white-space:nowrap !important;
      justify-content:flex-end;
      align-items:center;
      gap: 10px;
      min-width: max-content;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: thin;
      -webkit-overflow-scrolling: touch;
    }
    .feedback-fixed-actions .disc-btn{
      flex: 0 0 auto;
    }
    .conversation-card{
      margin-top: 14px;
    }
    .conversation-shell{
      min-height: 320px;
      height: clamp(400px, 56vh, 720px);
      overflow:auto;
      resize: vertical;
      padding: 16px;
      background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
      border: 1px solid rgba(148,163,184,.28);
      border-radius: 0;
      display:flex;
      flex-direction:column;
      gap: 14px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
    }
    .conversation-empty{
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }
    .conversation-item{
      border: 1px solid rgba(148,163,184,.34);
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
      padding: 13px 14px;
      box-shadow: 0 10px 24px rgba(15,23,42,.06);
    }
    .conversation-item[data-tone="user"]{
      border-color: rgba(37,99,235,.28);
      background: linear-gradient(180deg, rgba(239,246,255,.98), rgba(248,250,252,.98));
    }
    .conversation-item[data-tone="request"]{
      border-color: rgba(245,158,11,.34);
      background: linear-gradient(180deg, rgba(255,251,235,.98), rgba(255,255,255,.98));
    }
    .conversation-item[data-tone="status"]{
      border-color: rgba(16,185,129,.24);
      background: linear-gradient(180deg, rgba(236,253,245,.98), rgba(255,255,255,.98));
    }
    .conversation-item[data-tone="loading"]{
      border-color: rgba(59,130,246,.18);
      background: linear-gradient(180deg, rgba(241,245,249,.96), rgba(255,255,255,.98));
    }
    .conversation-item-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      margin-bottom: 8px;
      flex-wrap:wrap;
    }
    .conversation-sender{
      display:inline-flex;
      align-items:center;
      gap: 8px;
      font-size: 13px;
      font-weight: 800;
      color: #0f172a;
    }
    .conversation-sender::before{
      content:"";
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      flex: 0 0 auto;
    }
    .conversation-item[data-tone="user"] .conversation-sender::before{
      background: linear-gradient(135deg, #2563eb, #38bdf8);
    }
    .conversation-item[data-tone="request"] .conversation-sender::before{
      background: linear-gradient(135deg, #f59e0b, #f97316);
    }
    .conversation-item[data-tone="status"] .conversation-sender::before{
      background: linear-gradient(135deg, #10b981, #34d399);
    }
    .conversation-meta{
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }
    .conversation-content{
      color: #0f172a;
      font-size: 13px;
      line-height: 1.8;
      word-break: break-word;
    }
    .conversation-content.markdown-content > :first-child{
      margin-top: 0;
    }
    .conversation-content.markdown-content > :last-child{
      margin-bottom: 0;
    }
    .conversation-loading{
      display:inline-flex;
      align-items:center;
      gap: 8px;
      color: #334155;
      font-size: 13px;
      line-height: 1.7;
    }
    .conversation-loading-dots{
      display:inline-flex;
      align-items:center;
      gap: 6px;
    }
    .conversation-loading-dots span{
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      opacity: .24;
      animation: conversationPulse 1.2s ease-in-out infinite;
    }
    .conversation-loading-dots span:nth-child(2){
      animation-delay: .18s;
    }
    .conversation-loading-dots span:nth-child(3){
      animation-delay: .36s;
    }
    @keyframes conversationPulse{
      0%, 80%, 100%{
        transform: scale(.88);
        opacity: .24;
      }
      40%{
        transform: scale(1);
        opacity: .88;
      }
    }
    .conversation-input-shell{
      margin-top: 12px;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid rgba(245,158,11,.30);
      background: linear-gradient(180deg, rgba(255,251,235,.96), rgba(255,255,255,.98));
      box-shadow: 0 10px 24px rgba(15,23,42,.05);
    }
    .conversation-input-prompt{
      margin-bottom: 10px;
      color: #7c2d12;
      font-size: 13px;
      line-height: 1.75;
    }
    .conversation-input-prompt code{
      font-size: 12px;
    }
    .conversation-input-shell .input-request-body{
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .conversation-input-shell .input-request-options{
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .conversation-input-shell .hitl-option{
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      column-gap: 12px;
      text-align: left;
      border: 1px solid rgba(15,23,42,.10);
      border-radius: 12px;
      background: rgba(255,255,255,.98);
      padding: 11px 12px;
      cursor: pointer;
      transition: border-color .15s ease, background .15s ease, transform .15s ease;
    }
    .conversation-input-shell .hitl-option:hover{
      border-color: rgba(29,78,216,.24);
      background: rgba(29,78,216,.04);
      transform: translateY(-1px);
    }
    .conversation-input-shell .hitl-option.recommended{
      border-color: rgba(15,118,110,.28);
      background: rgba(15,118,110,.05);
    }
    .conversation-input-shell .hitl-option.is-selected{
      border-color: rgba(29,78,216,.42);
      background: rgba(29,78,216,.08);
      box-shadow: 0 0 0 1px rgba(29,78,216,.08);
    }
    .conversation-input-shell .hitl-option-copy{
      min-width: 0;
    }
    .conversation-input-shell .hitl-option-title{
      font-size: 13px;
      font-weight: 650;
      color: #172126;
      line-height: 1.45;
    }
    .conversation-input-shell .hitl-option-desc{
      margin-top: 4px;
      font-size: 12px;
      color: #66727a;
      line-height: 1.55;
    }
    .conversation-input-shell .hitl-option-badge{
      justify-self: end;
      margin-left: auto;
      padding: 2px 7px;
      border-radius: 999px;
      background: #0f766e;
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }
    .conversation-question-progress{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 12px;
      margin-bottom: 8px;
      color: #7c2d12;
      font-size: 12px;
    }
    .conversation-question-progress strong{
      font-size: 13px;
      color: #431407;
    }
    .conversation-question-text{
      color: #4b5563;
      font-size: 13px;
      line-height: 1.7;
    }
    .conversation-input-textarea{
      min-height: 110px;
      resize: vertical;
      font-size: 13px;
      line-height: 1.75;
      background: rgba(255,255,255,.98);
      border: 1px solid rgba(148,163,184,.34);
    }
    .conversation-input-textarea.human-input{
      width: 100%;
      min-width: 0;
      min-height: 120px;
      padding: 12px 14px;
      border-radius: 12px;
      font: inherit;
      font-size: 14px;
      color: #172126;
    }
    .conversation-input-textarea.human-input:focus{
      outline: none;
      border-color: rgba(47,111,235,.6);
      box-shadow: 0 0 0 3px rgba(47,111,235,.08);
    }
    .conversation-input-nav{
      display:flex;
      align-items:center;
      gap: 10px;
      margin-right: auto;
    }
    .conversation-input-actions{
      display:flex;
      align-items:center;
      justify-content:flex-end;
      gap: 10px;
      margin-top: 10px;
    }

    /* Responsive */
    @media (max-width: 1040px){
      .app{
        grid-template-columns: 1fr;
        overflow: visible;
      }
      .sidebar{position:relative; max-height:none; height:auto}
      .main{min-height:auto; height:auto}
      .source-grid,
      .result-grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
    }
    @media (max-width: 720px){
      .source-grid,
      .result-grid,
      .literature-api-key-grid{grid-template-columns: 1fr}
      .task-card-head{flex-direction:column; align-items:stretch}
      .editor-actions{flex-wrap:wrap; white-space:normal}
      .knowledge-run-actions{margin-bottom:12px}
      .feedback-fixed-actions{
        flex-wrap:nowrap !important;
        white-space:nowrap !important;
        align-self:flex-start;
        width:auto;
        max-width:100%;
      }
      .knowledge-drop-layout{grid-template-columns: 1fr}
      .knowledge-upload-head{flex-direction:column; align-items:stretch}
      .knowledge-confirm-row{justify-content:stretch}
      .knowledge-confirm-row .disc-btn{width:100%; justify-content:center}
      .lit-blog-card{
        flex-basis: min(82vw, 280px);
        width: min(82vw, 280px);
        max-width: min(82vw, 280px);
      }
    }

    /* Toggle switch */
    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
      flex-shrink: 0;
    }
    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #cbd5e1;
      transition: .2s;
      border-radius: 24px;
    }
    .toggle-slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: .2s;
      border-radius: 50%;
    }
    .toggle-switch input:checked + .toggle-slider {
      background-color: #0f172a;
    }
    .toggle-switch input:checked + .toggle-slider:before {
      transform: translateX(20px);
    }
    .debug-toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .debug-toggle-label {
      font-size: 14px;
      color: #334155;
    }
