/* Native extraction and annotation tools inside the shared workspace. */
.standalone-workspace { display:flex; min-height:0; }
.standalone-main { flex:1 1 0; min-width:0; overflow:auto; padding:6px clamp(14px,2vw,32px) 38px; }
.standalone-main > * { width:100%; max-width:1340px; margin-inline:auto; }
.standalone-main h1 {
  font-size:clamp(24px,2.25vw,34px); font-weight:var(--shell-heading-weight);
  line-height:1.2; letter-spacing:-.04em;
}
.standalone-main [data-review-section="heading"] { margin:5px 0 16px; }
.standalone-main [data-review-section="controls"] { margin-bottom:16px; }
.review-workspaces { margin-top:auto; display:grid; gap:3px; }
.review-workspaces a { width:fit-content; padding:5px 10px; border-radius:10px; color:var(--ink); text-decoration:none; font-size:14px; }
.review-workspaces a:hover,.review-workspaces a[aria-current] { background:#f2f2ef; }
.standalone-workspace #side-ask { display:inline-block; text-decoration:none; }
.standalone-main .quality-controls select,.standalone-main #build { max-width:100%; border-radius:10px; }
.standalone-main .tabs { max-width:100%; }
.standalone-main .tabpanels { border:0; border-radius:0; background:transparent; }
.standalone-main .tabpanel { padding:0; }
.standalone-main .qd-frame { max-width:none; border-color:var(--line); border-radius:var(--shell-corner); font-family:var(--font); }
.standalone-main .qd-frame .qd-head { background:var(--panel-2); }
.standalone-main .qd-frame :is(.qd-tile,.qd-card) { background:var(--shell-card); }
.annotation-page #message { color:var(--muted); margin:6px 0 0; }
.annotation-page .panel {
  min-width:0; padding:clamp(14px,1.5vw,22px); border:1px solid var(--line);
  border-radius:var(--shell-corner); background:var(--shell-card);
}
.annotation-page .panel h2 { font-size:18px; font-weight:500; margin-bottom:8px; }
.annotation-page .panel h3 { font-size:15px; font-weight:500; margin:16px 0 8px; }
.annotation-page .panel p { margin:5px 0 12px; }
.annotation-page .actions { display:flex; align-items:end; flex-wrap:wrap; gap:9px 14px; }
.annotation-page [data-review-section="packet"] { justify-content:space-between; }
.annotation-page #packet { display:block; margin-top:4px; max-width:100%; font-size:13px; }
.annotation-page .actions label { min-width:0; max-width:100%; }
.annotation-page .small { color:var(--muted); font-size:12px; }
.annotation-page #work,.annotation-page .columns { display:grid; gap:12px; margin-top:12px; }
.annotation-page .columns { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); margin-top:0; align-items:start; }
.annotation-page .panel details { padding:8px 0; }
.annotation-page summary { color:var(--ink-2); cursor:pointer; }
.annotation-page :is(#source,#quote,#context) {
  overflow-wrap:anywhere; margin:10px 0; padding:12px 15px; line-height:1.65;
  border-left:3px solid var(--shell-highlight); border-radius:0 9px 9px 0; background:var(--panel-2);
}
.annotation-page #quote { font-size:14px; }
.annotation-page #context { border-color:var(--line-2); font-size:12px; }
.annotation-page #standalone-content button:not(.hp-hide,.hp-resize),.annotation-page #packet::file-selector-button {
  width:fit-content; border:1px solid var(--line-2); border-radius:99px; background:white;
  color:var(--ink); padding:6px 12px; font:inherit; cursor:pointer;
}
.annotation-page #standalone-content :is(#save,button[type="submit"]) { color:#fff; background:var(--shell-dark); border-color:var(--shell-dark); }
.annotation-page #standalone-content button:disabled { opacity:.5; cursor:default; }
.annotation-page #standalone-content button:enabled:hover { border-color:var(--ink); }
.annotation-page #form :is(select,input:not([type="checkbox"]),textarea) { border:1px solid var(--line-2); border-radius:8px; color:var(--ink); }
@media (max-width:760px) {
  .standalone-workspace { min-height:100dvh; }
  .standalone-main { overflow:visible; padding:6px 10px 24px; }
  .standalone-main .tabs { width:100%; max-width:100%; }
  .annotation-page .columns { grid-template-columns:minmax(0,1fr); }
}

@media (max-width:760px) {
  .standalone-main [data-review-section="heading"] { min-width:0; }
  .standalone-main h1,.standalone-main .qd-head :is(h2,p) { white-space:normal; overflow-wrap:anywhere; }
  .standalone-main .quality-controls,.standalone-main #published-controls { flex-wrap:wrap; max-width:100%; }
  .standalone-main .tabs { width:100%; flex-wrap:wrap; border-radius:14px; }
  .standalone-main .tabs button { min-height:36px; white-space:normal; }
  .standalone-main :is(.hint,#message) { font-size:14px; line-height:1.5; }
}
