.exp-root { max-width:1600px; }
.exp-root h2 { font-size:20px; margin:0 0 16px; }
.exp-root h3 { font-size:15px; margin:22px 0 10px; }
.exp-root input:not([type=checkbox]),.exp-root textarea,.exp-root select { padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:#fff; font:inherit; font-size:13px; min-width:0; max-width:100%; }
.exp-root textarea { width:100%; resize:vertical; line-height:1.8; }
.exp-root button { max-width:100%; overflow-wrap:anywhere; }
.exp-page-head,.exp-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.exp-page-head { padding-bottom:18px; border-bottom:1px solid var(--line); }
.exp-page-head>input { flex:1; min-width:180px!important; font-size:18px!important; font-weight:600; }
.exp-page-head h2 { flex:1; margin:0; }
.exp-save-state { font-size:11px; color:var(--muted); }
.exp-empty { padding:80px 20px; text-align:center; }
.exp-empty>.lucide { margin:auto auto 20px; }
.exp-plan-row { padding:22px 0; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.exp-plan-row h2 { font-size:17px; margin:0 0 8px; }
.exp-plan-row a { text-decoration:none; }
.exp-plan-row p { font-size:12px; margin:0; }
.exp-plan-row span { font-size:11px; }
.exp-new { max-width:850px; display:flex; flex-direction:column; gap:20px; }
.exp-field { display:flex; flex-direction:column; gap:8px; margin:14px 0; font-size:13px; color:var(--ink); }
.exp-field>span { font-weight:600; }
.exp-check { display:flex; gap:9px; align-items:flex-start; margin:12px 0; font-size:13px; line-height:1.8; cursor:pointer; }
.exp-check input { margin-top:6px; accent-color:var(--accent); flex:0 0 auto; }
.exp-paper-picker { max-height:320px; overflow:auto; }
.exp-tabs { display:flex; gap:6px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.exp-tabs button { padding:8px 14px; font-size:13px; border-radius:5px; }
.exp-tabs .active { background:var(--accent-soft); color:var(--accent-ink); font-weight:600; }
.exp-workspace { display:grid; grid-template-columns:145px minmax(0,1fr) 270px; gap:24px; }
.exp-outline { padding-right:14px; border-right:1px solid var(--line); min-width:0; }
.exp-outline h3:first-child { margin-top:0; }
.exp-outline button { display:block; text-align:left; font-size:11px; padding:7px 0; }
.exp-outline p { font-size:11px; line-height:1.8; }
.exp-mobile-panels { display:none; }
.exp-main { min-width:0; }
.exp-main>.primary { margin:18px 0; }
.exp-assistant { padding-left:22px; border-left:1px solid var(--line); min-width:0; }
.exp-assistant>.ghost { margin:5px 5px 5px 0; font-size:11px; }
.exp-assistant>h3:first-child { margin-top:0; }
.exp-notice { padding:12px 16px; border-left:3px solid var(--accent); background:var(--accent-soft); font-size:12px; line-height:1.8; }
.exp-evidence,.exp-method,.exp-module,.exp-section { padding:18px 0 24px; border-bottom:1px solid var(--line); }
.exp-main article h3 { margin:0 0 10px; }
.exp-main p { font-size:13px; line-height:1.9; }
.exp-method dt { font-size:11px; color:var(--muted); }
.exp-method dd { margin:2px 0 10px; font-size:13px; }
.exp-status { font-size:11px; background:var(--accent-soft); padding:4px 7px; border-radius:4px; }
.exp-refs { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.exp-refs button { font-size:10px; padding:3px 6px; color:var(--accent-ink); background:var(--accent-soft); border-radius:4px; word-break:break-all; }
.exp-proposal,.exp-discussion,.exp-task { padding:16px 0; border-bottom:1px solid var(--line); font-size:12px; overflow-wrap:anywhere; }
.exp-proposal h4 { margin:0 0 10px; }
.exp-proposal del { display:block; color:var(--muted); font-size:11px; max-height:160px; overflow:auto; }
.exp-task .ghost { padding:6px 9px; min-height:30px; margin:7px 5px 0 0; font-size:11px; }
.exp-method-source { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.exp-method-results { max-height:380px; overflow:auto; }
.exp-root pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.exp-dialog { width:min(720px,calc(100vw - 30px)); max-height:85dvh; overflow:auto; border:1px solid var(--line); border-radius:8px; padding:24px; color:var(--ink); }
.exp-dialog::backdrop { background:rgba(30,50,43,.35); }
.exp-result { padding:18px 0; border-bottom:1px solid var(--line); font-size:13px; line-height:1.8; }
.exp-result p { white-space:pre-wrap; }
.exp-dialog textarea { width:100%; font:inherit; border:1px solid var(--line); border-radius:6px; padding:12px; }
.exp-version { display:flex; align-items:center; gap:10px; padding:15px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.exp-version>span { flex:1; font-size:12px; }
@media(max-width:1250px) { .exp-workspace { grid-template-columns:minmax(0,1fr) 250px; } .exp-outline { display:none; } }
@media(max-width:760px) {
  .exp-workspace { grid-template-columns:minmax(0,1fr); }
  .exp-assistant { padding:0; border:0; }
  .exp-mobile-panels { display:flex; gap:12px; }
  .exp-mobile-panels button { padding:8px 16px; border-bottom:2px solid transparent; font-size:12px; }
  .exp-mobile-panels .active { border-color:var(--accent); color:var(--accent-ink); }
  .exp-root:not([data-panel=discussion]) .exp-assistant { display:none; }
  .exp-root[data-panel=discussion] .exp-main { display:none; }
}
@media(max-width:600px) {
  .exp-tabs { gap:2px; justify-content:space-between; }
  .exp-tabs button { padding:7px 9px; font-size:11px; }
  .exp-page-head { gap:8px; }
  .exp-page-head>input { flex-basis:100%; order:-1; }
  .exp-page-head .ghost { padding:7px 9px; min-height:32px; font-size:11px; }
  .exp-plan-row { align-items:start; flex-direction:column; }
  .exp-root .exp-actions>input { flex:1 1 100%; }
}
