.workspace-shell #tests-view{max-width:1300px;margin:auto}
.workspace-shell .tests-workspace,.workspace-shell .owner-tests-workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:22px;align-items:start}
.workspace-shell .test-library,.workspace-shell .test-detail,.workspace-shell #saved-list,.workspace-shell #saved-detail{min-width:0;padding:22px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.workspace-shell .test-library{position:sticky;top:94px;max-height:calc(100dvh - 125px);overflow:auto}
.workspace-shell .test-library h2{font-size:17px;margin:0 0 10px}
.workspace-shell .test-library .note,.workspace-shell .test-detail .note{font-size:12px;line-height:1.6;color:var(--muted)}
.workspace-shell .tests-new{display:inline-flex;padding:10px 14px;border-radius:8px;background:var(--signal);color:#171918;font-weight:700;text-decoration:none;margin:5px 0 12px}
.workspace-shell #guest-tests-list .guest-test-row{display:flex;flex-wrap:wrap;gap:7px;padding:14px 0;margin:0;border:0;border-top:1px solid var(--line);min-width:0}
.workspace-shell #guest-tests-list .guest-test-row.is-selected{background:var(--signal-soft);box-shadow:0 0 0 7px var(--signal-soft);border-radius:5px}
.workspace-shell #guest-tests-list .test-open{width:100%;padding:0;border:0;border-radius:0;background:none;color:var(--ink);text-decoration:none;font-size:15px;overflow-wrap:anywhere;font-weight:700}
.workspace-shell #guest-tests-list button{width:auto;min-width:0;min-height:36px;padding:6px 9px;margin:0;border:1px solid var(--line-strong);background:var(--card);color:var(--ink);font-size:11px;border-radius:7px}
.workspace-shell #guest-tests-list .test-preview-button{font-weight:700}
.workspace-shell #guest-tests-list .guest-test-remove{color:var(--muted)}
.workspace-shell #guest-tests-list p{width:100%;font-size:12px;margin:0;overflow-wrap:anywhere}
.workspace-shell #guest-tests-list p:empty{display:none}
.workspace-shell #guest-tests-list input{min-width:0;width:100%}
.workspace-shell .test-detail{scroll-margin-top:100px;min-height:360px}
.workspace-shell .test-detail h2{font-size:24px;line-height:1.3;margin:0 0 10px;overflow-wrap:anywhere}
.workspace-shell .test-meta{font-size:12px;color:var(--muted);margin:0 0 14px}
.workspace-shell .test-share-state{display:inline-block;padding:5px 9px;border:1px solid var(--line-strong);border-radius:6px;font-size:12px;margin:0}
.workspace-shell .test-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 8px}
.workspace-shell .test-detail button,.workspace-shell .test-detail-actions a{min-height:42px;width:auto;padding:9px 13px;margin:0;font-size:12px;line-height:1.5;border:1px solid var(--line-strong);border-radius:8px;background:var(--card);color:var(--ink);text-decoration:none}
.workspace-shell .test-detail-actions .test-primary-link{background:var(--signal);border-color:transparent;color:#171918;font-weight:700}
.workspace-shell .test-detail>input{width:100%;min-width:0}
.workspace-shell .test-detail>p[role=status]{font-size:12px;overflow-wrap:anywhere}
.workspace-shell .test-positions{display:grid;gap:8px;margin:20px 0}
.workspace-shell .test-position,.workspace-shell #saved-detail .saved-task-preview{margin:0;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--card);min-width:0}
.workspace-shell .test-position>summary,.workspace-shell #saved-detail .saved-task-preview>summary{padding:13px 15px;cursor:pointer;font-size:14px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.workspace-shell .test-position-body{padding:4px 15px 15px;overflow-wrap:anywhere}
.workspace-shell .test-position-body>p{font-family:Georgia,serif;font-size:18px;white-space:pre-line}
.workspace-shell .test-position-body .diagram{max-width:100%;max-height:400px;object-fit:contain;display:block;margin:16px auto;background:#fff;border-radius:6px}
.workspace-shell #saved-detail .saved-task-preview>*:not(summary){margin-left:15px;margin-right:15px}
.workspace-shell .test-edit-copy{margin-top:4px!important}
.workspace-shell .tests-empty{max-width:420px;color:var(--muted);font-size:15px;line-height:1.7;margin:30px auto}
.workspace-shell #saved-owner{border:0;background:none;padding:0}
.workspace-shell #saved-detail>h3{font-size:23px;margin-top:0;overflow-wrap:anywhere}
.workspace-shell #saved-detail button,.workspace-shell #saved-list button{width:auto;max-width:100%;overflow-wrap:anywhere;border-color:var(--line-strong);border-radius:8px;background:var(--card);color:var(--ink)}
.workspace-shell #saved-detail input{max-width:100%;min-width:0}
.workspace-shell #saved-detail>section{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:10px}
.workspace-shell #saved-detail .pdf-download{width:auto;background:var(--card);border-color:var(--line-strong);color:var(--ink);border-radius:8px}
@media(max-width:1050px){.workspace-shell .test-library{max-height:calc(100dvh - 180px)}}
@media(max-width:900px){.workspace-shell .tests-workspace,.workspace-shell .owner-tests-workspace{grid-template-columns:minmax(0,1fr);gap:16px}.workspace-shell .test-library{position:static;max-height:340px}.workspace-shell .test-detail{min-height:220px}}
@media(max-width:480px){.workspace-shell .test-library,.workspace-shell .test-detail,.workspace-shell #saved-list,.workspace-shell #saved-detail{padding:16px}.workspace-shell .test-detail h2{font-size:21px}.workspace-shell .test-detail-actions{display:grid;grid-template-columns:minmax(0,1fr)}.workspace-shell .test-position>summary{font-size:13px}.workspace-shell .test-position-body{padding:4px 12px 12px}.workspace-shell .test-position-body>p{font-size:17px}}
