.workspace, body[data-space="l3"] main { background: #f8f9f7; }
.workspace-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - var(--top-h) - 56px); }
.work-sidebar { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 30px 18px 28px; background: #e9eeeb; border-right: 1px solid #d7ded8; min-width: 0; }
.work-sidebar .kicker { margin: 0 0 4px; font-size: var(--fs-label); color: #4f665b; }
.work-sidebar h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.work-sidebar > p, .work-sidebar .muted { font-size: 12px; line-height: 1.6; color: #586a5f; }
.side-label { margin: 24px 0 4px; font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; color: #5c6e62; }
.work-sidebar a, .work-sidebar button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 3px; font-size: 13.5px; line-height: 1.45; color: #2f3b34; }
.work-sidebar a:hover, .work-sidebar button:hover { background: #dfe7e1; }
.work-sidebar .side-active, .work-sidebar .work-filter.active, .work-sidebar a[aria-current="page"], .work-sidebar a[aria-current="true"] { background: #d5e1d9; font-weight: 650; color: #2c4a40; }
.work-sidebar .sidebar-bottom { margin-top: 28px; padding-top: 14px; border-top: 1px solid #d2dad4; border-radius: 0; }
.work-sidebar nav, .work-sidebar .work-nodes, .ws-nodes { display: grid; gap: 2px; }
.work-sidebar [data-node] small, .work-sidebar [data-node] em { display: block; font-style: normal; font-size: var(--fs-label); color: #5c6e62; font-weight: 400; }
.work-identity { margin: 18px 0 4px; padding: 12px; background: #f4f7f5; border: 1px solid #d2dad4; border-radius: 3px; }
.work-identity label { display: block; margin-bottom: 6px; font-size: var(--fs-label); font-weight: 650; letter-spacing: .04em; color: #3f5449; }
.work-identity select { width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid #b9c7bd; border-radius: 3px; background: #fff; font-size: 13.5px; }
.work-identity .meta { margin-top: 6px; font-size: var(--fs-label); line-height: 1.55; color: #5c6e62; }
.work-top .work-identity { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 520px; }
.work-top .work-identity label { margin: 0; }
.work-top .work-identity select { width: auto; min-width: 200px; }
.work-top .work-identity .meta { flex-basis: 100%; margin: 0; }
.work-main { min-width: 0; padding: 32px clamp(16px, 3vw, 48px) 40px; }
.work-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.work-top > div { min-width: 0; }
.work-top .crumb { margin-bottom: 12px; font-size: var(--fs-small); }
.work-top h1 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.03em; }
.work-top h1:lang(ja) { letter-spacing: 0; }
.work-top p { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: #55665b; max-width: 44em; }
.work-top .button { flex: none; }
.work-top .to-l2, .work-top a.textlink { font-size: 13px; }
.work-tabs { display: flex; gap: 22px; margin-top: 26px; border-bottom: 1px solid #d5ddd6; overflow-x: auto; scrollbar-width: none; }
.work-tabs button, .work-tabs a { flex: none; padding: 10px 2px 9px; font-size: 13.5px; color: #55665b; border-bottom: 2px solid transparent; }
.work-tabs button:hover { color: var(--ink); }
.work-tabs .active, .work-tabs [aria-pressed="true"] { border-bottom-color: #416b5b; color: #2c4a40; font-weight: 650; }
.work-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 470px; border-bottom: 1px solid #d5ddd6; }
.work-list { min-width: 0; padding: 10px 14px 14px 0; border-right: 1px solid #d5ddd6; }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; padding: 15px 12px; text-align: left; border-bottom: 1px solid #e2e8e2;
  border-radius: 2px; transition: background .15s; }
.work-row:hover, .work-row.selected, .work-row[aria-current="true"] { background: #e7eee8; }
.work-row.selected, .work-row[aria-current="true"] { box-shadow: inset 3px 0 0 #416b5b; }
.work-row > div { min-width: 0; }
.work-row b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.5; }
.work-row small { display: block; margin-top: 5px; font-size: var(--fs-label); line-height: 1.55; color: #586a5f; }
.work-list > .meta { padding: 20px 12px; font-size: 13px; color: var(--mut); }
.state { align-self: start; display: inline-block; padding: 2px 8px; font-size: var(--fs-label); line-height: 1.5; white-space: nowrap; color: #3f6153; border: 1px solid #c5d4c9; background: #f3f7f3; border-radius: 3px; }
.work-type { font-weight: 600; }
.work-detail { min-width: 0; padding: 24px 0 26px 26px; }
.work-detail:focus { outline: none; }
.work-detail .meta { font-size: 12px; line-height: 1.6; color: #5a6e62; }
.work-detail > .meta + .meta { margin-top: 2px; }
.work-detail h2 { margin: 8px 0 10px; font-size: clamp(22px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -.01em; }
.work-detail h2:focus { outline: none; }
.work-detail h3 { margin: 4px 0 10px; font-size: 14px; font-weight: 650; }
.work-detail p { font-size: 14px; line-height: 1.7; color: #46544b; margin: 10px 0; }
.work-detail hr { border: 0; border-top: 1px solid #d9e0d9; margin: 22px 0; }
.work-detail .textlink { font-size: 13.5px; padding: 6px 0 4px; }
.work-back-row { margin: 0 0 10px; }
.work-content { margin-top: 14px; }
.work-langline { font-size: var(--fs-label) !important; color: #586a5f !important; margin: 0 0 6px !important; }
.work-text { padding: 12px 14px; background: #fff; border: 1px solid #dde4dd; border-radius: 3px; }
.work-text p { margin: 0; color: #2e3a33; font-size: 14.5px; }
.work-text p + p { margin-top: 6px; }
.work-orig { margin-top: 8px; font-size: 12.5px; color: #5a6e62; }
.work-orig summary { padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.work-orig .work-text { margin-top: 6px; background: #f3f6f3; }
.work-trs { list-style: none; margin: 10px 0 0; padding: 0; }
.work-tr { padding: 8px 0; border-top: 1px dashed #d2dad4; }
.work-tr .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.work-tr .work-text { margin-top: 6px; background: #fbfcfa; }
.work-tr button { padding: 3px 9px; border: 1px solid #9fb4a6; border-radius: 3px; font-size: 12px; background: #e8f0e9; }
.work-tr-act { margin: 8px 0 0 !important; }
.work-link { font-size: 12.5px; color: #2c4a40; text-decoration: underline; text-underline-offset: 3px; }
.work-link:hover { color: #1d3a30; }
.work-links { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid #d9e0d9; }
.work-links li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 9px 0; border-bottom: 1px solid #e2e8e2; font-size: 13.5px; }
.work-links a { color: #2c4a40; }
.work-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.work-discussion { margin-top: 4px; }
.work-detail .comments { margin-bottom: 10px; padding: 10px 12px; background: #eef2ee; border-radius: 3px; font-size: 13px; overflow-wrap: anywhere; }
.work-detail .comments .work-text { background: #fff; }
.work-detail .comments > .meta { margin: 0 0 4px; font-weight: 600; }
.work-form { margin-top: 12px; display: grid; gap: 6px; }
.work-form[hidden] { display: none !important; }
.work-form label, dialog label { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #3f5449; }
.work-form input:not([type="radio"]), .work-form select, .work-form textarea,
dialog input, dialog select, dialog textarea, .work-detail textarea { width: 100%; padding: 9px 10px; border: 1px solid #c5d1c7; border-radius: 3px; background: #fff; font-size: 14px; line-height: 1.55; }
.work-form textarea, dialog textarea { resize: vertical; min-height: 84px; }
.work-form input:focus, .work-form select:focus, .work-form textarea:focus, dialog input:focus, dialog select:focus, dialog textarea:focus { outline: 2px solid #416b5b; outline-offset: 0; border-color: #416b5b; }
.workspace-shell select, dialog select, .work-identity select { -webkit-appearance: none; appearance: none; min-height: 42px; padding: 9px 36px 9px 10px;
  border: 1px solid #c5d1c7; border-radius: 3px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23416b5b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 12px center / 12px 8px no-repeat;
  font-size: 14px; line-height: 1.5; color: var(--ink); cursor: pointer; text-overflow: ellipsis; }
.workspace-shell select:hover, dialog select:hover { border-color: #9fb4a6; }
.work-identity select { min-height: 36px; font-size: 13.5px; }
.dialog-actions select { width: auto; min-width: 8em; }
.work-form fieldset { margin: 0; padding: 10px 12px; border: 1px solid #d2dad4; border-radius: 3px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.work-form legend { padding: 0 4px; font-size: 12.5px; font-weight: 650; color: #3f5449; }
.work-form fieldset label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 13.5px; color: var(--ink); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
.dialog-actions label { margin: 0; }
.dialog-actions select { width: auto; }
.dialog-actions > button:not(.button) { min-height: 38px; padding: 8px 14px; border: 1px solid #9fb4a6; border-radius: 3px; background: #e8f0e9; font-size: 13px; }
.dialog-actions > button:not(.button):hover { background: #dce8de; }
.work-compose .dialog-actions { justify-content: flex-start; }
.work-compose .dialog-actions > button:last-child { margin-left: auto; }
.work-detail .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.work-detail .actions button { min-height: 36px; padding: 7px 12px; border: 1px solid #9fb4a6; border-radius: 3px; font-size: 13px; background: #e8f0e9; color: #24352c; }
.work-detail .actions button:hover:not(:disabled) { background: #dce8de; }
.work-detail .actions button[aria-expanded="true"] { background: #416b5b; border-color: #416b5b; color: #fff; }
.work-detail .actions button:disabled { opacity: .55; cursor: not-allowed; }
.work-msgs:empty { display: none; }
.work-msg { margin: 14px 0 0 !important; padding: 10px 12px; border-left: 3px solid #416b5b; background: #eef3ef; font-size: 13.5px !important; color: #24352c !important; }
.work-msg[data-tone="warn"] { border-left-color: var(--c-gold); background: #f6f1e6; }
.work-msg .textlink { margin-left: 8px; padding: 0; }
.work-warning { margin-top: 18px; font-size: 12px; line-height: 1.6; color: #586a5f; }
dialog { width: min(540px, 92vw); padding: 28px; border: 1px solid #a8b8ad; border-radius: 3px; background: #f7f9f6; color: var(--ink); }
dialog::backdrop { background: rgba(21, 32, 28, .68); }
dialog h2 { margin-bottom: 18px; font-size: 24px; line-height: 1.3; }
dialog label { margin: 12px 0 5px; }
.dialog-field { margin-top: 4px; }
dialog .dialog-actions { margin-top: 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .workspace-shell { grid-template-columns: minmax(0, 1fr); }
  .work-sidebar { border-right: 0; border-bottom: 1px solid #d7ded8; padding: 18px 5% 16px; }
  .work-sidebar h2 { font-size: 22px; }
  .work-sidebar .side-label { margin-top: 14px; }
  .work-sidebar nav, .work-sidebar .work-nodes, .ws-nodes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .work-sidebar nav a, .work-sidebar .work-nodes a, .ws-nodes a { flex: none; width: auto; border: 1px solid #ccd6cf; }
  .work-sidebar .work-filter { display: none; }
  .work-main { padding: 20px 5% 32px; }
  .work-top { align-items: flex-start; flex-wrap: wrap; }
  .work-top h1 { font-size: 28px; }
  .work-body { grid-template-columns: minmax(0, 1fr); }
  .work-list { border-right: 0; padding-right: 0; }
  .work-detail { border-top: 1px solid #d5ddd6; padding: 18px 0; }
  .work-detail h2 { font-size: 22px; }
  .work-tabs { gap: 16px; }
  .work-sidebar { gap: 2px; padding: 14px 5% 12px; }
  .work-sidebar .kicker { font-size: 13px; margin-bottom: 2px; }
  .work-sidebar h2 { font-size: 21px; }
  .work-sidebar > p, .work-sidebar .muted { font-size: 13px; }
  .work-sidebar .side-label { margin: 10px 0 6px; font-size: 13px; }
  .work-sidebar .side-label:has(+ .side-filters), .work-sidebar .side-filters { display: none; }
  .work-sidebar nav a, .work-sidebar .work-nodes a, .ws-nodes a { padding: 8px 12px; font-size: 14px; }
  .work-sidebar [data-node] small, .work-sidebar [data-node] em { font-size: 13px; }
  .work-sidebar .sidebar-bottom { margin-top: 10px; padding: 10px 0 2px; font-size: 14px; }
  .work-sidebar .sidebar-bottom:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
  .work-identity { margin: 12px 0 2px; padding: 10px 12px; }
  .work-identity label { font-size: 13px; }
  .work-identity select, .work-top .work-identity select { font-size: 16px; min-height: 44px; }
  .work-identity .meta { font-size: 13px; }
  .work-top .crumb { font-size: 13px; }
  .work-top p { font-size: 15px; }
  .work-top .to-l2, .work-top a.textlink { font-size: 14px; }
  .work-tabs button, .work-tabs a { padding: 11px 2px 10px; font-size: 15px; }
  .work-row { padding: 14px 10px; }
  .work-row b { font-size: 15px; }
  .work-row small { font-size: 13px; }
  .state { font-size: 13px; }
  .work-list > .meta { font-size: 15px; }
  .work-detail .meta { font-size: 13px; }
  .work-detail h3 { font-size: 15px; }
  .work-detail p, .work-text p { font-size: 15px; }
  .work-detail .textlink { font-size: 15px; }
  .work-langline { font-size: 13px !important; }
  .work-orig { font-size: 13px; }
  .work-tr button { font-size: 13px; padding: 6px 10px; }
  .work-link { font-size: 14px; }
  .work-links li { font-size: 15px; }
  .work-detail .comments { font-size: 15px; }
  .work-form label, dialog label, .work-form legend { font-size: 13px; }
  .work-form fieldset label { font-size: 15px; }
  .work-form input:not([type="radio"]), .work-form select, .work-form textarea,
  dialog input, dialog select, dialog textarea, .work-detail textarea, .workspace-shell select, dialog select { font-size: 16px; }
  .dialog-actions > button:not(.button), .work-detail .actions button { min-height: 42px; font-size: 14px; }
  .work-msg { font-size: 15px !important; }
  .work-warning { font-size: 13px; }
  dialog { padding: 22px 18px; }
  dialog h2 { font-size: 22px; }
}
.work-back, .work-detail .work-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 6px; padding: 8px 0;
  border: 0; border-radius: 0; background: none; font-size: 15px; font-weight: 600; line-height: 1.4; color: #2c4a40; }
.work-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-back:focus-visible { outline: 2px solid #416b5b; outline-offset: 2px; }
div.work-split { outline: none; }
div.work-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; background: transparent; transition: background var(--dur); }
div.work-split::after { content: ""; position: absolute; top: 50%; left: 3px; width: 8px; height: 40px; margin-top: -20px; border-radius: 4px;
  background: var(--c-white); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background var(--dur), box-shadow var(--dur); }
div.work-split:is(:hover, [data-dragging], :focus-visible)::before { background: var(--c-green); }
div.work-split:is(:hover, [data-dragging])::after { background: var(--c-green); box-shadow: inset 0 0 0 1px var(--c-green); }
div.work-split:focus-visible::after { background: var(--c-green); box-shadow: 0 0 0 2px var(--c-paper), 0 0 0 4px var(--c-gold); }
html:has(div.work-split[data-dragging]) { cursor: col-resize; user-select: none; }
