:root{
  --canvas:#f6f1e4;
  --paper:#fbf7ec;
  --sidebar:#efe7d3;
  --ink:#2d2820;
  --muted:#6f675a;
  --green:#2b8a4c;
  --green-deep:#237540;
  --green-soft:#e2f1e7;
  --line:#e0d6bf;
  --warm:#c24a35;
  --warm-soft:#f7e9de;
  --danger:#9b382d;
  --focus:#c24a35;
  --sans:"Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",sans-serif;
  --serif:Georgia,"Times New Roman","Noto Serif CJK SC","Source Han Serif SC","Songti SC","SimSun",serif
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:var(--sans);
  font-size:14px;
  line-height:1.65
}
button,input,textarea,select{
  font:inherit;
  color:inherit
}
button,a,input,textarea,select,summary{
  touch-action:manipulation
}
button{
  cursor:pointer
}
button:disabled{
  cursor:not-allowed;
  background:#e5e7df;
  color:#5c6459;
  border-color:#c6ccc0
}
button,select,input{
  min-height:44px
}
button{
  border:1px solid transparent;
  border-radius:5px;
  padding:9px 15px;
  line-height:1.5;
  transition:background-color .15s,color .15s
}
button:hover:not(:disabled){
  filter:brightness(.96)
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex="-1"]:focus{
  outline:3px solid var(--focus);
  outline-offset:3px
}
a{
  color:var(--green)
}
h1,h2,h3,h4,p{
  margin:0
}
h1,h2,h3{
  font-family:var(--serif)
}
h2{
  font-size:19px;
  font-weight:600
}
h3{
  font-size:21px;
  line-height:1.6
}
h4{
  font-size:15px
}
p{
  overflow-wrap:anywhere
}
small{
  font-size:12px
}
strong{
  font-weight:600
}
[hidden]{
  display:none!important
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link{
  position:fixed;
  left:16px;
  top:-80px;
  z-index:10;
  padding:12px;
  background:var(--paper)
}
.skip-link:focus{
  top:10px
}
.muted{
  color:var(--muted)
}
.danger{
  color:var(--danger)
}
.primary{
  background:var(--green);
  color:var(--paper);
  border-radius:999px
}
.primary:hover:not(:disabled){
  background:var(--green-deep);
  filter:none
}
.secondary{
  background:var(--paper);
  border-color:#a89e86;
  color:var(--green);
  border-radius:999px
}
.text-button{
  background:transparent;
  color:var(--green);
  padding:6px 8px
}
.text-button.danger{
  color:var(--danger)
}
.app-shell{
  display:grid;
  grid-template-columns:226px minmax(0,1fr);
  min-height:100vh
}
.sidebar{
  background:var(--sidebar);
  border-right:1px solid var(--line);
  padding:32px 20px 22px;
  display:flex;
  flex-direction:column;
  gap:28px;
  position:sticky;
  top:0;
  height:100vh
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none
}
.brand-mark{
  width:46px;
  height:52px;
  border:1px solid #9aa995;
  display:grid;
  place-items:center;
  font:28px var(--serif);
  color:var(--green);
  border-radius:2px 2px 18px 2px
}
.brand strong{
  display:block;
  font-family:var(--serif);
  font-size:26px;
  letter-spacing:.22em;
  line-height:1.2
}
.brand small{
  display:block;
  margin-top:6px;
  letter-spacing:.08em;
  color:var(--muted)
}
.new-case{
  width:100%;
  text-align:left
}
.new-case span{
  margin-right:13px;
  font-size:19px
}
.library{
  flex:1;
  overflow:auto;
  min-height:60px
}
summary{
  cursor:pointer;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:8px;
  list-style:none
}
summary::-webkit-details-marker{
  display:none
}
summary:before{
  content:"＋";
  color:var(--muted)
}
details[open]>summary:before{
  content:"−"
}
.library summary{
  font-weight:600;
  font-size:13px
}
.library summary span{
  margin-left:auto;
  color:var(--muted);
  font-weight:400
}
.library-empty{
  font-size:13px;
  padding:15px 4px
}
.case-item{
  display:block;
  width:100%;
  text-align:left;
  background:transparent;
  border-radius:3px;
  border-left:2px solid transparent;
  padding:12px;
  margin:3px 0
}
.case-item[aria-current="page"]{
  background:#e9dfc6;
  border-left-color:var(--green)
}
.case-item strong{
  display:block;
  overflow-wrap:anywhere;
  font-weight:500
}
.case-item small{
  display:block;
  color:var(--muted);
  margin-top:3px
}
.sidebar-bottom{
  margin-top:auto
}
.example-link{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:12px 0;
  text-align:left;
  border-top:1px solid #cbd2c3;
  border-bottom:1px solid #cbd2c3;
  border-radius:0;
  background:transparent;
  font-size:13px
}
.example-link small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px
}
.example-symbol{
  font:23px var(--serif);
  color:var(--warm)
}
.sidebar-note{
  font-family:var(--serif);
  font-size:16px;
  line-height:1.9;
  margin:25px 0;
  color:#5a6659
}
.service-heading{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px
}
.status-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--warm)
}
.status-dot.ready{
  background:var(--green)
}
#refresh-service{
  font-size:12px;
  padding:0;
  min-height:32px;
  color:var(--muted)
}
main{
  min-width:0;
  padding:28px 30px 12px
}
.workspace-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:22px
}
.eyebrow{
  font-size:12px;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:7px
}
.eyebrow span{
  padding:0 8px;
  color:#909688
}
h1{
  font-size:clamp(23px,2vw,29px);
  font-weight:500;
  letter-spacing:.035em;
  line-height:1.45
}
.steps{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
  counter-reset:steps;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px
}
.steps li{
  counter-increment:steps
}
.steps li:before{
  content:"0" counter(steps);
  display:block;
  font-family:var(--serif);
  font-size:19px;
  color:#626a60;
  margin-bottom:3px
}
.steps li.active{
  color:var(--green)
}
.steps li.active:before{
  color:var(--green)
}
.service-banner{
  font-size:13px;
  color:#7a5a3a;
  background:#f0e8d4;
  border-left:3px solid #c9935f;
  border-radius:0 12px 12px 0;
  padding:10px 14px;
  margin-bottom:18px
}
.service-banner.ready{
  background:var(--green-soft);
  border-left-color:var(--green);
  color:var(--green)
}
.notice{
  padding:12px 15px;
  margin-bottom:14px;
  background:var(--green-soft);
  border-left:3px solid var(--green);
  border-radius:0 12px 12px 0;
  font-size:14px;
  overflow-wrap:anywhere
}
.notice.error{
  background:#f6e8df;
  color:var(--danger);
  border-color:var(--danger)
}
.notice button{
  margin-left:10px
}
.workbench{
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);
  align-items:start;
  gap:24px
}
.manuscript-panel,.report-panel{
  min-width:0;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden
}
.panel-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
  min-height:62px;
  padding:10px 22px
}
.panel-heading>div{
  display:flex;
  align-items:center;
  gap:12px
}
.panel-heading>.muted{
  font-size:12px
}
.section-number{
  color:var(--warm);
  font-family:var(--serif);
  font-size:15px
}
.manuscript-scroll{
  padding:20px 24px 0;
  max-height:calc(100dvh - 276px);
  min-height:0;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#bec8b7 transparent
}
.report-content{
  padding:24px;
  max-height:calc(100dvh - 276px);
  min-height:0;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#bec8b7 transparent
}
.report-panel:has(.job-status:not([hidden])) .report-content{
  max-height:calc(100dvh - 345px)
}
fieldset{
  border:0;
  padding:0;
  margin:0;
  min-width:0
}
label{
  display:block;
  font-size:13px;
  font-weight:500;
  margin-bottom:7px
}
input:not([type=checkbox]),textarea,select{
  width:100%;
  border:1px solid #a89e86;
  border-radius:10px;
  background:#fffdf4;
  padding:10px 12px
}
input::placeholder,textarea::placeholder{
  color:#73756c;
  opacity:1
}
textarea{
  display:block;
  resize:vertical;
  line-height:1.8
}
input:disabled,textarea:disabled,select:disabled{
  color:#545e53;
  background:#f1f2ea;
  opacity:1
}
fieldset>label:not(:first-of-type){
  margin-top:16px
}
.required{
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  margin-left:6px
}
#title{
  font-family:var(--serif);
  font-size:21px;
  padding:8px 0;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  margin-bottom:1px
}
#author-request{
  font-size:14px;
  background:#f8f8f0
}
.task-details,.context-details{
  border-bottom:1px solid var(--line);
  font-size:13px;
  margin:10px 0 0
}
.task-details summary span,.context-details summary span{
  font-size:12px;
  color:var(--muted);
  font-weight:400
}
.details-content{
  padding:8px 0 14px
}
.details-content label{
  margin-top:12px
}
.field-pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.context-details{
  margin-top:0
}
.context-details small{
  display:block;
  color:var(--muted);
  padding:6px 0 12px
}
.text-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:22px;
  margin-bottom:10px
}
.text-heading label{
  margin:0
}
.text-heading label span{
  display:block;
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  margin-top:3px
}
.char-count{
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}
.char-count.invalid{
  color:var(--danger)
}
.manuscript{
  min-height:290px;
  font:17px/2 var(--serif);
  padding:16px;
  border-color:#a89e86;
  background:#fffdf4
}
.source-view{
  min-height:220px;
  font:17px/2.1 var(--serif);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  padding:15px 2px
}
.source-view mark{
  background:#ecdbad;
  color:#383b29;
  border-bottom:2px solid #a37943;
  padding:2px 0
}
.field-help{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
  line-height:1.8
}
.data-details{
  margin-top:16px;
  color:var(--muted);
  font-size:13px;
  line-height:1.75
}
.data-details summary{
  cursor:pointer;
  width:max-content;
  max-width:100%;
  text-decoration:underline;
  text-underline-offset:3px
}
.data-details p{
  margin:8px 0
}
.consent-area{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line)
}
.checkbox-label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.75;
  font-weight:400;
  cursor:pointer
}
.checkbox-label input{
  accent-color:var(--green);
  width:18px;
  height:18px;
  min-height:18px;
  flex:0 0 18px;
  margin:3px 0 0
}
.checkbox-label small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:4px
}
.editor-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  position:sticky;
  bottom:0;
  background:var(--paper);
  padding:18px 0 10px;
  z-index:1
}
.editor-actions button{
  font-size:13px
}
.editor-actions .primary{
  flex:1
}
.action-help{
  text-align:center;
  margin:0 0 14px
}
.version-toolbar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 0 16px;
  flex-wrap:wrap
}
.version-toolbar label{
  margin:0;
  color:var(--muted);
  font-size:12px
}
.version-toolbar select{
  width:auto;
  flex:1;
  min-width:115px;
  font-size:12px
}
.version-toolbar button{
  font-size:12px
}
.case-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid var(--line);
  padding:10px 0
}
.case-actions button{
  font-size:12px
}
.empty-report{
  padding:35px 4px 12px
}
.empty-report .reading-mark{
  font:52px var(--serif);
  color:#9d7958;
  line-height:1
}
.empty-report h3{
  font-size:26px;
  font-weight:400;
  margin:18px 0 14px;
  line-height:1.6
}
.empty-report>p{
  font-size:14px;
  color:var(--muted);
  line-height:1.9;
  max-width:32em
}
.dimension-preview{
  margin:28px 0;
  border-top:1px solid var(--line)
}
.dimension-preview div{
  display:grid;
  grid-template-columns:50px 1fr;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding:12px 0
}
.dimension-preview strong{
  font-family:var(--serif);
  font-size:17px;
  font-weight:400
}
.dimension-preview span{
  font-size:13px;
  color:var(--muted);
  align-self:center
}
.empty-report button{
  margin-top:8px
}
.report-label{
  display:inline-block;
  font-size:12px;
  color:var(--warm);
  border-bottom:1px solid #c59c77;
  padding-bottom:3px;
  margin-bottom:14px
}
.report-summary{
  font-family:var(--serif);
  font-size:20px;
  line-height:1.8;
  margin-bottom:16px
}
.report-meta{
  font-size:12px;
  color:var(--muted);
  margin:12px 0 20px
}
.report-section{
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:24px
}
.report-section>h3{
  font-size:19px;
  margin-bottom:14px
}
.section-caption{
  font-size:12px;
  color:var(--muted);
  margin:-5px 0 14px
}
.classification-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px
}
.classification-list span{
  color:var(--green);
  background:var(--green-soft);
  padding:3px 12px;
  font-size:12px;
  border-radius:999px
}
.report-content p{
  line-height:1.85
}
.report-content ul{
  padding-left:20px;
  margin:10px 0
}
.report-content li{
  margin:7px 0
}
.dimension-tabs{
  display:flex;
  gap:0;
  border-bottom:1px solid var(--line);
  margin-bottom:18px
}
.dimension-tabs button{
  flex:1;
  padding:9px 5px;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent;
  color:var(--muted)
}
.dimension-tabs button[aria-pressed=true]{
  color:var(--green);
  border-bottom-color:var(--green);
  background:#f0e9d6
}
.dimension-body>p{
  margin:10px 0
}
.strength-note{
  color:var(--green);
  padding-left:12px;
  border-left:2px solid #9bb497
}
.quote-button{
  display:block;
  text-align:left;
  width:100%;
  margin:10px 0;
  background:#f1e9d4;
  border:0;
  border-left:3px solid var(--green);
  border-radius:0 14px 14px 0;
  padding:12px 16px
}
.quote-button .quote{
  font-family:var(--serif);
  font-size:15px;
  line-height:1.9;
  white-space:pre-wrap;
  display:block
}
.quote-button small{
  color:var(--green);
  display:block;
  margin-top:5px;
  font-size:11px
}
.quote-unavailable{
  background:#f1efe8;
  border-left:2px solid #bca88e;
  padding:12px 14px;
  margin:10px 0
}
.quote-unavailable blockquote{
  margin:0;
  font-family:var(--serif);
  white-space:pre-wrap
}
.quote-unavailable small{
  color:var(--warm)
}
.strength-entry{
  margin:18px 0
}
.strength-entry h4{
  font-size:16px;
  font-family:var(--serif);
  margin-bottom:8px
}
.finding{
  margin:24px 0 28px
}
.finding-heading{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px
}
.finding-number{
  font:22px var(--serif);
  color:var(--warm);
  padding-top:2px
}
.finding-heading h4{
  font-size:17px;
  font-family:var(--serif);
  line-height:1.6
}
.finding-kind{
  font-size:11px;
  color:var(--warm);
  display:block;
  margin-top:3px
}
.finding p{
  margin:10px 0
}
.condition{
  font-size:13px;
  color:var(--muted)
}
.options{
  margin:16px 0;
  padding:0;
  list-style:none!important
}
.option{
  padding:12px 0;
  border-top:1px dashed #ccd1c2
}
.option h5{
  margin:0 0 8px;
  font-size:14px;
  font-weight:600
}
.option p{
  font-size:13px;
  margin:5px 0
}
.option .tradeoff{
  color:var(--warm)
}
.finding details{
  font-size:13px;
  border-bottom:1px solid var(--line);
  margin:12px 0
}
.finding details>div{
  padding:0 0 12px
}
.feedback-form{
  margin-top:18px;
  background:#f1ecdb;
  border-radius:14px;
  padding:16px
}
.feedback-form label{
  font-size:12px
}
.feedback-choices{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  margin-bottom:12px
}
.feedback-choices label{
  position:relative;
  cursor:pointer;
  margin:0
}
.feedback-choices input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px
}
.feedback-choices span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:1px solid #899581;
  border-radius:4px;
  background:var(--paper);
  font-size:12px
}
.feedback-choices input:checked+span{
  background:var(--green);
  border-color:var(--green);
  color:var(--paper)
}
.feedback-choices input:focus-visible+span{
  outline:3px solid var(--focus);
  outline-offset:2px
}
.feedback-form textarea{
  font-size:13px
}
.feedback-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:10px
}
.feedback-footer small{
  font-size:11px;
  color:var(--muted)
}
.feedback-footer button{
  font-size:12px
}
.report-footnote{
  font-size:12px;
  color:var(--muted);
  padding-top:20px;
  margin-top:24px;
  border-top:1px solid var(--line)
}
.report-footnote summary{
  font-size:12px
}
.report-footnote dl{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px 14px
}
.report-footnote dd{
  margin:0;
  overflow-wrap:anywhere
}
.report-footnote dt{
  color:var(--muted)
}
.recheck{
  padding:12px 0;
  border-bottom:1px dashed var(--line)
}
.recheck strong{
  font-size:13px;
  color:var(--green)
}
.recheck p{
  font-size:13px;
  margin-top:6px
}
.job-status{
  background:var(--green-soft);
  padding:14px 22px;
  border-bottom:1px solid #bcdcc6;
  color:var(--green-deep);
  font-size:13px
}
.job-status strong,.job-status small{
  display:block
}
.job-status button{
  margin-top:8px
}
.workspace-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:11px;
  color:var(--muted);
  padding-top:16px
}
.mobile-switch{
  display:none
}
dialog{
  max-width:460px;
  width:calc(100% - 40px);
  border:1px solid var(--line);
  border-radius:20px;
  padding:30px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 20px 80px #3d322626
}
dialog::backdrop{
  background:#2d282059
}
dialog h2{
  font-size:24px;
  margin:10px 0
}
dialog p{
  font-size:14px;
  margin:12px 0;
  line-height:1.9
}
dialog label{
  margin-top:20px
}
.dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:26px
}
#confirm-yes.destructive{
  background:var(--danger)
}
.example-disclaimer{
  background:var(--warm-soft);
  color:#734628;
  padding:12px;
  font-size:13px;
  margin-bottom:20px
}
.report-history{
  margin:0 0 18px
}
.report-history select{
  font-size:12px
}
.report-history label{
  color:var(--muted);
  font-size:12px
}
@media(min-width:1500px){
  main{
    padding:34px 44px 14px
  }
  .workbench{
    gap:32px
  }
  .manuscript-scroll,.report-content{
    padding-left:30px;
    padding-right:30px
  }
  .sidebar{
    padding:36px 24px
  }
  .app-shell{
    grid-template-columns:244px minmax(0,1fr)
  }
}
@media(max-width:1190px){
  .app-shell{
    grid-template-columns:192px minmax(0,1fr)
  }
  .sidebar{
    padding:26px 14px;
    gap:22px
  }
  main{
    padding:24px 20px 12px
  }
  .steps{
    display:none
  }
  .workbench{
    gap:16px
  }
  .manuscript-scroll,.report-content{
    padding-left:18px;
    padding-right:18px
  }
  .panel-heading{
    padding-left:18px;
    padding-right:18px
  }
  .panel-heading h2{
    font-size:17px
  }
  .editor-actions{
    flex-wrap:wrap
  }
  .editor-actions .primary{
    min-width:180px
  }
  .field-pair{
    grid-template-columns:1fr
  }
}
@media(max-width:900px){
  .app-shell{
    grid-template-columns:170px minmax(0,1fr)
  }
  .brand{
    gap:8px
  }
  .brand-mark{
    width:34px;
    font-size:24px
  }
  .brand strong{
    font-size:23px
  }
  .brand small{
    font-size:10px
  }
  .sidebar{
    padding:24px 12px
  }
  .sidebar-note{
    font-size:14px
  }
  .workbench{
    display:block
  }
  .mobile-switch{
    display:flex;
    border-bottom:1px solid #b9c4b2;
    margin-bottom:16px
  }
  .mobile-switch button{
    width:50%;
    background:transparent;
    border-radius:0;
    border-bottom:2px solid transparent;
    color:var(--muted)
  }
  .mobile-switch button[aria-pressed=true]{
    color:var(--green);
    border-bottom-color:var(--green);
    font-weight:600
  }
  .workbench[data-panel=manuscript] .report-panel{
    display:none
  }
  .workbench[data-panel=report] .manuscript-panel{
    display:none
  }
  .manuscript-scroll,.report-content,.report-panel:has(.job-status:not([hidden])) .report-content{
    max-height:none;
    min-height:0;
    overflow:visible
  }
  .workspace-footer{
    display:block
  }
  .workspace-footer span{
    display:block;
    margin-bottom:4px
  }
  .editor-actions{
    padding-top:14px;
    padding-bottom:12px
  }
  .report-content{
    padding-bottom:30px
  }
  .empty-report{
    padding-top:10px
  }
  .field-pair{
    grid-template-columns:1fr 1fr
  }
}
@media(max-width:600px){
  body{
    font-size:14px
  }
  .app-shell{
    display:block
  }
  .sidebar{
    position:static;
    height:auto;
    padding:15px 20px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .brand-mark{
    width:32px;
    height:38px;
    font-size:23px;
    border-radius:2px 2px 12px 2px
  }
  .brand strong{
    font-size:22px
  }
  .brand small{
    font-size:10px;
    margin-top:3px
  }
  .new-case{
    width:auto;
    font-size:12px;
    padding:9px 12px;
    align-self:center
  }
  .new-case span{
    font-size:15px;
    margin-right:3px
  }
  .library{
    grid-column:1/-1;
    max-height:240px;
    min-height:0;
    border-top:1px solid #d3d9cd
  }
  .library summary{
    min-height:38px
  }
  .library-empty{
    padding:4px;
    font-size:12px
  }
  .sidebar-bottom{
    display:none
  }
  main{
    padding:20px 16px 16px
  }
  .workspace-header{
    margin-bottom:16px
  }
  h1{
    font-size:23px;
    letter-spacing:.01em
  }
  .eyebrow{
    font-size:11px;
    margin-bottom:6px
  }
  .service-banner{
    font-size:12px;
    padding:10px 12px;
    margin-bottom:12px
  }
  .mobile-switch{
    margin-bottom:14px
  }
  .mobile-switch button{
    font-size:13px
  }
  .panel-heading{
    padding:9px 16px;
    min-height:58px
  }
  .panel-heading>div{
    gap:8px
  }
  .panel-heading h2{
    font-size:18px
  }
  .panel-heading .text-button{
    font-size:11px;
    padding:5px 0
  }
  .manuscript-scroll,.report-content{
    padding:18px 16px 0
  }
  .report-content{
    padding-bottom:24px
  }
  .manuscript{
    font-size:17px;
    min-height:330px;
    padding:12px
  }
  .text-heading label span{
    font-size:10px
  }
  #title{
    font-size:20px
  }
  .char-count{
    font-size:11px
  }
  .field-pair{
    grid-template-columns:1fr
  }
  .task-details summary,.context-details summary{
    flex-wrap:wrap;
    gap:5px
  }
  .task-details summary span,.context-details summary span{
    font-size:11px
  }
  .editor-actions{
    padding-bottom:max(12px,env(safe-area-inset-bottom));
    flex-wrap:nowrap;
    gap:8px
  }
  .editor-actions .primary{
    min-width:0
  }
  .editor-actions button{
    font-size:12px;
    padding:10px
  }
  .version-toolbar{
    gap:6px
  }
  .version-toolbar button{
    padding:5px
  }
  .empty-report h3{
    font-size:25px
  }
  .empty-report>p{
    font-size:14px
  }
  .report-summary{
    font-size:19px
  }
  .feedback-form{
    padding:12px
  }
  .feedback-choices{
    gap:4px
  }
  .feedback-choices span{
    font-size:11px
  }
  .feedback-footer{
    flex-wrap:wrap
  }
  .finding-heading h4{
    font-size:17px
  }
  .report-footnote dl{
    grid-template-columns:1fr;
    gap:3px
  }
  .report-footnote dd{
    margin-bottom:8px
  }
  .workspace-footer{
    font-size:10px;
    line-height:1.9
  }
  dialog{
    padding:24px
  }
  .source-view{
    font-size:17px
  }
  .case-actions button{
    font-size:11px
  }
  .report-content .example-disclaimer{
    font-size:12px
  }
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

.report-view-tabs{display:flex;gap:8px;padding:12px 24px;border-bottom:1px solid #d9d2bd;flex-wrap:wrap}.report-view-tabs button{border:1px solid #b6bca9;border-radius:20px;padding:8px 18px;background:transparent;color:#355547;font:inherit;cursor:pointer}.report-view-tabs button[aria-pressed="true"]{background:#315e49;color:#fff}.focus-answer{padding:18px 0;border-bottom:1px solid #ded6c1}.focus-direct-answer{font-size:16px;line-height:1.9}.report-view-tabs[hidden],#focus-content[hidden],#report-content[hidden]{display:none}

.studio-handoff{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;padding:14px 18px;background:#edf3ef;border:1px solid #c9dacf;border-radius:12px}.studio-handoff p{margin:5px 0 0}.studio-handoff[hidden],#export-format[hidden]{display:none}#export-format{max-width:132px;padding:7px;border:1px solid #d6dfd9;border-radius:6px;background:#fffdf7}.reading-motion{height:4px;margin-top:14px;background:#dce6df;border-radius:4px;overflow:hidden}.reading-motion span{display:block;width:30%;height:100%;background:#2f6955;animation:review-reading 1.8s ease-in-out infinite}@keyframes review-reading{0%{transform:translateX(-110%)}100%{transform:translateX(450%)}}@media(prefers-reduced-motion:reduce){.reading-motion span{animation:none;width:100%;opacity:.6}}@media(max-width:600px){.studio-handoff{align-items:start;flex-direction:column}.panel-heading:has(#export-report){flex-wrap:wrap;gap:8px}}

.sidebar{overflow-y:auto;max-height:100dvh}
@media(max-height:700px){.manuscript-scroll,.report-content{max-height:none}.sidebar{position:sticky;top:0;align-self:start}.app-shell{align-items:start}}
