.case-mode #panel{left:88px;width:1512px;box-shadow:none}.case-mode #space-context{display:none}.case-mode .submit{visibility:hidden}.case-mode .panel-top{padding:0 56px}.case-scroll{height:864px;overflow-y:auto;padding:32px 56px 28px;scrollbar-width:thin;scrollbar-color:#c4d3fa transparent;scroll-behavior:smooth}.case-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:32px}.case-heading h1{font-size:1.75rem;color:var(--ink);font-weight:600;margin:0 0 12px;line-height:1.45}.case-heading h1 span{font-size:var(--text-body);font-weight:400;color:var(--muted);margin-left:22px}.case-heading p:not(.eyebrow){font-size:var(--text-ui);line-height:1.8;color:var(--muted);margin:0}.case-heading>.ui-button{height:42px;min-width:110px}.case-toolbar{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:0 0 24px;margin-bottom:4px}.case-toolbar nav{display:flex;align-items:center;gap:5px}.case-tab{height:38px;padding:0 16px;border-radius:6px;font-size:var(--text-body);cursor:pointer;white-space:nowrap}.case-tab:hover{background:#f8faff}.case-tab.selected{background:var(--soft);color:var(--blue);font-weight:600}.case-toolbar select{border:0;color:var(--muted);background:white;font:inherit;font-size:var(--text-ui);padding:10px;cursor:pointer;max-width:140px}.case-tools{display:flex;gap:14px;align-items:center}.case-tools form{display:flex;border:1px solid var(--line);border-radius:6px;padding:0 12px;height:38px;align-items:center}.case-tools input{width:160px;border:0;outline:0;color:var(--ink);background:transparent;font-size:var(--text-ui)}.case-tools form button{font-size:1.375rem;cursor:pointer}.case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:32px}.case-card{min-width:0}.case-cover{display:block;position:relative;padding:0;width:100%;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--soft);cursor:pointer}.case-cover>svg,.case-cover>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s cubic-bezier(.2,.8,.2,1)}.case-cover:hover>svg,.case-cover:hover>img{transform:scale(1.035)}.case-card-open{position:absolute;right:16px;bottom:16px;border-radius:4px;padding:10px 14px;background:white;color:var(--blue);font-size:var(--text-meta);opacity:0;transform:translateY(5px);transition:.2s}.case-cover:hover .case-card-open,.case-cover:focus-visible .case-card-open{opacity:1;transform:none}.case-card-title{display:flex;gap:12px;align-items:center;margin:13px 0 9px}.case-card-title>button{text-align:left;padding:0;font-size:var(--text-body);font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:pointer;color:var(--ink)}.case-card-title>span{font-size:var(--text-meta);color:var(--muted);white-space:nowrap;margin-left:auto}.case-card-meta{display:flex;align-items:center;gap:7px;font-size:var(--text-meta);color:var(--muted)}.case-avatar{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:var(--soft);color:var(--blue);font-size:var(--text-meta);flex-shrink:0}.case-card-meta>button{margin-left:auto;display:flex;gap:5px;align-items:center;font:var(--text-meta) var(--font-mono);cursor:pointer}.case-card-meta svg{width:13px;height:13px}.case-footer{display:flex;justify-content:space-between;align-items:center;padding:30px 0 8px;margin-top:28px;border-top:1px solid var(--line);font-size:var(--text-meta);color:var(--muted)}.case-result{display:flex;align-items:center;justify-content:space-between;font-size:var(--text-ui);color:var(--muted);margin-bottom:20px}.case-result button{height:30px;font-size:var(--text-meta)}.case-empty{padding:120px 30px;text-align:center;color:var(--ink)}.case-empty h2{font-size:1.375rem;font-weight:500}.case-empty p{font-size:var(--text-body);color:var(--muted);margin-bottom:24px}.case-article{width:980px;margin:8px auto 0}.article-heading h1{font-size:1.8125rem;line-height:1.5;color:var(--ink);font-weight:600;margin:12px 0 22px}.article-byline{display:flex;align-items:center;gap:12px;margin-bottom:28px}.article-byline>.case-avatar{width:40px;height:40px;font-size:var(--text-body)}.article-byline strong{font-size:var(--text-body);font-weight:500}.article-byline small{display:block;margin-top:4px;font-size:var(--text-meta);color:var(--muted)}.case-comment-jump{display:flex;align-items:center;gap:8px;margin-left:auto}.article-cover{width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:var(--soft)}.article-cover svg,.article-cover img{display:block;width:100%;height:100%;object-fit:cover}.article-copy{width:760px;margin:48px auto;color:var(--ink);font-size:var(--text-body);line-height:1.8;overflow-wrap:anywhere}.article-copy p{margin:0 0 28px}.article-copy .article-intro{font-size:1.1875rem;font-weight:500;margin-bottom:32px;line-height:1.8}.article-image{margin:32px 0}.article-image img{max-width:100%;height:auto;display:block;margin:auto;border-radius:6px}.article-source{font-size:var(--text-ui);color:var(--muted);line-height:2;overflow-wrap:anywhere}.article-source a{color:var(--blue);margin-left:12px}.case-comments{margin:48px auto 0;width:760px;padding-top:32px;border-top:1px solid var(--line);scroll-margin-top:30px}.case-comments h2,.case-related h2{font-size:1.1875rem;font-weight:500;margin:0 0 28px;color:var(--ink)}.case-comments h2 span{font-size:var(--text-ui);color:var(--muted);margin-left:8px}.case-comment-form{display:flex;gap:16px;margin-bottom:20px}.case-comment-form>.case-avatar,.case-comment>.case-avatar{width:36px;height:36px;font-size:var(--text-ui)}.case-comment-form>div{flex:1}.case-comment-form label{font-size:var(--text-meta);color:var(--muted);display:block;margin-bottom:12px}.case-comment-form textarea{width:100%;height:110px;border:1px solid var(--line);border-radius:6px;padding:14px;color:var(--ink);font:inherit;font-size:var(--text-body);line-height:1.8;resize:vertical}.case-comment-form .ui-button{display:block;margin:12px 0 0 auto}.case-comment{display:flex;gap:16px;padding:24px 0;border-bottom:1px solid var(--line)}.case-comment>div{flex:1;min-width:0}.case-comment strong{font-size:var(--text-body);font-weight:500}.case-comment time{font-size:var(--text-meta);color:var(--muted);margin-left:16px}.case-comment p{font-size:var(--text-body);line-height:1.9;margin:12px 0;overflow-wrap:anywhere;color:var(--ink)}.case-comment button{padding:0;font-size:var(--text-meta);color:var(--muted);cursor:pointer}.case-no-comments{font-size:var(--text-ui);color:var(--muted);padding:20px 0}.case-related{margin:64px 0 0;padding-top:32px;border-top:1px solid var(--line)}.case-editor{max-width:1120px;margin:0 auto}.case-editor .case-heading{padding-bottom:24px;border-bottom:1px solid var(--line)}.case-editor .case-heading>div:last-child{display:flex;gap:10px}.case-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:56px}.case-editor .field{margin-bottom:24px}.case-editor .field>small{color:var(--muted);font-size:var(--text-meta);line-height:1.8}.case-editor textarea#case-body{height:300px;font-size:var(--text-body)}.case-editor .case-cover-upload{display:block;aspect-ratio:4/3;position:relative;background:var(--soft);border:1px dashed #a9bff6;border-radius:8px;overflow:hidden;cursor:pointer;margin:0 0 10px}.case-cover-upload input,.case-images-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.case-cover-upload:focus-within,.case-images-upload:focus-within{outline:2px solid var(--blue);outline-offset:3px}#case-cover-preview{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}#case-cover-preview>img,#case-cover-preview>svg{width:100%;height:100%;object-fit:cover}#case-cover-preview>span{font-size:2.125rem;font-weight:300;margin-bottom:10px}#case-cover-preview strong{font-size:var(--text-body);font-weight:500}#case-cover-preview small{font-size:var(--text-meta);margin-top:12px}.case-editor .case-images-upload{display:block;position:relative;border:1px dashed #a9bff6;border-radius:6px;padding:20px;text-align:center;color:var(--blue);font-size:var(--text-ui);cursor:pointer}#case-images-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}#case-images-preview>div{position:relative;aspect-ratio:4/3}#case-images-preview img{width:100%;height:100%;object-fit:cover;border-radius:4px}#case-images-preview button{position:absolute;right:4px;top:4px;background:white;border-radius:50%;width:22px;height:22px;cursor:pointer}.case-publish-note{border-top:1px solid var(--line);padding-top:24px;color:var(--muted)}.case-publish-note strong{font-size:var(--text-body);font-weight:500}.case-publish-note p{font-size:var(--text-ui);line-height:1.9}.case-mode .page-header{display:none}
/* Isolate full-width content from the map shell's generic aside and SVG rules. */
.case-editor-grid>aside{position:static;inset:auto;width:auto;border:0;padding:0}.case-cover>svg,.article-cover>svg,#case-cover-preview>svg{stroke:none}.case-toolbar select,.case-editor textarea,.case-comment-form textarea{font-family:inherit}.case-mode .breadcrumb{max-width:360px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

.case-keywords{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}.case-keywords .case-keyword{min-height:32px;height:auto;max-width:100%;padding:5px 12px;border-color:var(--line);background:var(--soft);color:var(--blue);font-size:var(--text-ui);line-height:1.5;white-space:normal;overflow-wrap:anywhere}.case-tools input{width:220px;max-width:100%}

/* Compact gallery controls share the workspaces' filter interaction. */
.case-gallery-scroll{padding-top:20px!important}
.case-compact-toolbar .compact-toolbar{gap:12px;margin-bottom:20px}
.case-compact-toolbar .compact-tools{flex:1}
.case-compact-toolbar .compact-extra{order:-1;flex:1;overflow:hidden}
.case-quick-tabs{display:flex;align-items:center;gap:2px;min-width:0;overflow-x:auto;scrollbar-width:thin}
.case-quick-tabs .case-tab{height:36px;padding:0 11px;font-size:var(--text-ui)}
.case-compact-toolbar .compact-filter-form{flex-shrink:0}
.case-compact-toolbar .compact-search{width:230px}
@media(max-width:1150px){.case-compact-toolbar .compact-summary{flex:0 0 auto}.case-compact-toolbar .compact-tools{flex-wrap:wrap}.case-compact-toolbar .compact-extra{flex-basis:100%;order:1}.case-compact-toolbar .compact-filter-form{margin-left:auto;flex:1}.case-compact-toolbar .compact-search{flex:1;width:auto}}
@media(max-width:520px){.case-compact-toolbar .compact-toolbar{align-items:flex-start}.case-compact-toolbar .compact-summary{width:100%}.case-quick-tabs .case-tab{padding:0 10px}.case-compact-toolbar .compact-tools{gap:10px}}

/* Documents and video share the case editor; no project fields are introduced. */
#case-files-preview{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.case-file-row{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;text-decoration:none;color:var(--ink);background:#fff}
.case-file-kind{display:grid;place-items:center;flex-shrink:0;width:40px;height:42px;border-radius:5px;background:var(--soft);color:var(--blue);font:600 10px/1.3 var(--font-mono);letter-spacing:.2px}
.case-file-meta{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.case-file-meta strong{font-size:var(--text-ui);font-weight:500;line-height:1.5;overflow-wrap:anywhere}.case-file-meta small{color:var(--muted);font-size:var(--text-meta)}
.case-file-row>button{width:28px;height:28px;flex-shrink:0;padding:0;color:var(--muted);font-size:20px;cursor:pointer;border-radius:4px}.case-file-row>button:hover{background:var(--soft);color:var(--blue)}
.case-attachments{margin:32px 0}.case-attachments h2{margin:0 0 16px;color:var(--ink);font-size:1.1875rem;font-weight:500}.case-attachments h2 span{margin-left:8px;color:var(--muted);font-size:var(--text-ui)}
.case-attachment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.case-attachment{min-width:0}.case-attachment .case-file-row:hover{border-color:#a9bff6;background:#f8faff}.case-file-download{flex-shrink:0;color:var(--blue);font-size:var(--text-meta)}
.case-attachment video{display:block;width:100%;max-height:420px;background:#101925;border-radius:6px 6px 0 0}.case-file-image{display:block;background:var(--soft);border-radius:6px 6px 0 0;overflow:hidden}.case-file-image img{display:block;max-width:100%;max-height:320px;margin:auto;object-fit:contain}.case-attachment :is(video,.case-file-image)+.case-file-row{border-top-left-radius:0;border-top-right-radius:0}
@media(max-width:650px){.case-attachment-list{grid-template-columns:minmax(0,1fr)}.case-file-row{padding:10px;gap:10px}.case-file-meta strong{font-size:14px}}

.case-mode .case-delete-action{display:inline-flex;align-items:center;gap:5px;color:#a9343d;border-color:#edcbd0;white-space:nowrap}
.case-mode .case-delete-action:hover{background:#fff4f4}
@media(max-width:600px){
 .article-byline:has(.case-delete-action){column-gap:7px;row-gap:8px}
 .article-byline:has(.case-delete-action) .ui-button{min-width:44px;min-height:44px;padding-inline:8px}
}
