.case-body:has(.arrange-workspace){padding:0;overflow:hidden;container-type:inline-size;background:var(--white);display:flex;flex-direction:column}
.arrange-workspace,.arrange-surface{display:flex;flex-direction:column;flex:1;min-height:0}
.arrange-heading{position:relative;z-index:2;padding:16px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.arrange-heading .workflow-tabs{padding:0;max-width:100%}
.arrange-filter{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.arrange-filter>span{white-space:nowrap}
.arrange-board{display:grid;grid-template-columns:minmax(285px,33%) minmax(0,1fr);flex:1;min-height:0}
.arrange-tree{overflow:auto;min-width:0;padding:16px 16px 24px;border-right:1px solid #e4e7e7;overscroll-behavior:contain}
:is(.arrange-tree,.sort-drag-preview) button{font-family:inherit;text-align:left}
.arrange-row{display:flex;align-items:center;gap:2px;min-width:0;position:relative;min-height:40px;border-radius:5px}
.arrange-topic{border-top:1px solid #e4e7e7;padding:7px 0}
.arrange-topic-body{padding-left:12px}
.arrange-group{margin:3px 0}
.arrange-file-heading{border-bottom:1px solid #e9ecec}
.arrange-material{margin-left:21px}
.sort-drag-preview .arrange-row{margin:0}
:is(.arrange-tree,.sort-drag-preview) :is(.arrange-directory,.arrange-file-title,.arrange-reason-toggle,.arrange-material-select){display:flex;gap:8px;align-items:center;justify-content:flex-start;min-width:0;flex:1;background:none;border:0;border-radius:5px;line-height:20px;padding:8px 3px}
.arrange-tree .arrange-directory{font-size:16px;font-weight:600;width:100%;margin-bottom:8px;padding:10px 12px}
:is(.arrange-tree,.sort-drag-preview) :is(.arrange-reason-toggle,.arrange-file-title){font-weight:600}
:is(.arrange-tree,.sort-drag-preview) :is(.arrange-directory,.arrange-file-title,.arrange-reason-toggle,.arrange-material-select)>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.arrange-tree,.sort-drag-preview) .icon{flex-shrink:0}
.arrange-material-select small{margin-left:auto;max-width:58%;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:12px;white-space:nowrap}
:is(.arrange-tree,.sort-drag-preview) :is(.arrange-directory,.arrange-file-title,.arrange-reason-toggle)>.icon:last-of-type{color:var(--link)}
:is(.arrange-tree,.sort-drag-preview) .arrange-disclosure{width:23px;min-width:23px;height:28px;border:0;padding:0}
:is(.arrange-tree,.sort-drag-preview) .arrange-row-action{opacity:0;width:32px;min-width:32px;height:32px;padding:0}
.arrange-row:hover .arrange-row-action,.arrange-row:has(:focus-visible) .arrange-row-action{opacity:1}
:is(.arrange-tree,.sort-drag-preview) .selected{background:#e3f1f0}
.arrange-row:not(:has([data-sort-handle])):hover:not(.selected),.arrange-tree .arrange-directory:not(.selected):hover{background:#f0f5f4}
.arrange-tree .arrange-row .arrange-material-select:hover{background:transparent}
.arrange-reader{display:flex;flex-direction:column;min-width:0;min-height:0;background:white}
.arrange-detail-head{padding:18px 28px 0;flex-shrink:0}
.arrange-detail-title{display:flex;gap:10px;align-items:flex-start}
.arrange-detail-title>div{flex:1;min-width:0}
.arrange-detail-title>.icon{color:var(--link);margin-top:4px;flex-shrink:0}
.arrange-detail-title h2{margin:0 0 4px;font-size:20px;font-weight:600;overflow-wrap:anywhere}
.arrange-detail-title a{color:var(--link)}
.arrange-detail-title a>.icon{width:14px;height:14px;vertical-align:middle}
.arrange-detail-head .workflow-tabs{margin-top:12px;padding:0;border-bottom:1px solid #e4e7e7}
.arrange-detail-head .workflow-tab.active{background:none}
.arrange-detail-body,.arrange-overview,.arrange-gaps{overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
.arrange-detail-body,.arrange-overview{padding:22px 28px}
.arrange-detail-body section{margin:0 0 22px}
.arrange-detail-body h3{margin:0 0 10px;font-size:16px;font-weight:600}
.arrange-detail-body p{overflow-wrap:anywhere}
.arrange-detail-body .review-fact-row{min-height:36px;padding:5px 0}
.arrange-detail-body .review-fact-row dd{font-weight:600}
.arrange-legacy-analysis{margin:0 0 16px}
.arrange-legacy-analysis summary{cursor:pointer;color:var(--link)}
.arrange-gaps{padding:20px 24px}
.arrange-preview{flex:1;min-height:0;display:flex;flex-direction:column;border:0!important;border-radius:0!important}
.arrange-preview .preview-toolbar{justify-content:flex-end}
.arrange-preview:not(:fullscreen) .preview-title,.arrange-preview .preview-pages,.arrange-preview .preview-sections{display:none}
.arrange-preview .preview-workspace{grid-template-columns:minmax(0,1fr);flex:1;min-height:0}
.arrange-preview .preview-stage{padding:20px;min-height:0;overflow:auto}
.arrange-preview>.empty-state{margin:auto}
.arrange-error{padding:12px 24px;background:#fff4ed;color:#9b3e20;display:flex;align-items:center;gap:16px}
.arrange-error>span{flex:1;min-width:0}
.arrange-overview-heading{font-size:16px;margin:16px 0 10px;font-weight:600;overflow-wrap:anywhere}
.arrange-overview-group{font-size:14px;line-height:1.7;margin:16px 0 8px;font-weight:600;overflow-wrap:anywhere}
.arrange-overview>section:first-child .arrange-overview-heading,.arrange-overview>section:first-child>div:first-child .arrange-overview-group{margin-top:0}
.arrange-overview-item{padding:8px 0;border-bottom:1px solid #e6e8e8}
.arrange-overview-item .text-btn{white-space:normal;text-align:left;line-height:1.65}
.editor-footer .citations summary{cursor:pointer;color:var(--teal)}
.editor-footer .citations[open]{display:block}
.editor-footer .citations .citation{display:block;text-align:left;margin:8px 0}
.workflow-disabled-action{position:relative;display:inline-flex;border-radius:24px;cursor:not-allowed}
.workflow-disabled-action>.btn{pointer-events:none}
.workflow-disabled-action>[role=tooltip]{display:none;position:absolute;top:calc(100% + 8px);right:0;z-index:20;width:260px;max-width:calc(100vw - 112px);padding:10px 12px;border-radius:8px;background:#333;color:#fff;font-size:12px;line-height:1.6;font-weight:400;white-space:normal;cursor:default}
.workflow-disabled-action:first-child>[role=tooltip]{left:0;right:auto}
.workflow-disabled-action:hover>[role=tooltip],.workflow-disabled-action:focus>[role=tooltip]{display:block}
@container(max-width:760px){
  .arrange-heading{padding:12px 16px;gap:10px}
  .arrange-board{grid-template-columns:minmax(235px,38%) minmax(0,1fr)}
  .arrange-tree{padding:10px 6px}
  .arrange-detail-head{padding:14px 16px 0}
  .arrange-detail-body,.arrange-overview,.arrange-preview .preview-stage{padding:12px 16px}
}
@container(max-width:580px){
  .arrange-surface{overflow:auto}
  .arrange-board{display:flex;flex-direction:column;flex:0 0 auto}
  .arrange-tree{max-height:220px;border-right:0;border-bottom:1px solid #ddd}
  .arrange-detail-body,.arrange-overview{overflow:visible}
  .arrange-reader:has(.arrange-preview){min-height:420px}
  .arrange-detail-title h2{font-size:17px}
}
@media(hover:none){.arrange-tree .arrange-row-action{opacity:1}}
