.case-section{scroll-margin-top:110px}.case-heading{align-items:flex-start}.case-account{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.case-btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:12px 18px;border:1px solid #d2dce6;border-radius:6px;background:#fff;color:#263849;font:inherit;font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;cursor:pointer;transition:background .18s,border-color .18s}.case-btn-primary{background:#1a4371;border-color:#1a4371;color:white}.case-btn:hover{border-color:#1a4371;background:#f0f6fd}.case-btn-primary:hover{background:#112e53;color:#fff}.case-btn:disabled{opacity:.5;cursor:wait}.case-btn span{font-size:20px;line-height:1}.case-signout{font-size:12px;color:#687b8b;text-decoration:underline;text-underline-offset:4px}.case-summary{font-size:13px;color:#637587;margin:0 0 18px}.case-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}.case-card{display:block;min-width:0;color:inherit;text-decoration:none}.case-card-image{overflow:hidden;aspect-ratio:1;background:#eef3f7;border-radius:7px}.case-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}.case-card:hover img{transform:scale(1.035)}.case-card h3{font-size:17px;line-height:1.5;letter-spacing:-.025em;margin:13px 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.case-card:hover h3{color:#1a4371}.case-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;color:#718292;font-size:12px;line-height:1.5}.case-meta .case-author{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-state{border:1px dashed #d5e1ea;background:#f7fafc;border-radius:8px;padding:55px 20px;text-align:center;color:#6b7c8b}.case-state strong{display:block;font-size:19px;color:#314c60;margin:16px 0 8px}.case-state p{font-size:14px;margin:0;line-height:1.8}.case-state svg{width:38px;height:38px;stroke:#90adbf;fill:none;stroke-width:1.3}.case-loading{display:inline-block;width:24px;height:24px;border:2px solid #cbdce9;border-top-color:#1a4371;border-radius:50%;animation:case-spin .8s linear infinite}.case-state .case-btn{margin-top:16px}.case-pagination{display:flex;justify-content:center;gap:7px;margin:32px 0 0}.case-pagination:empty{display:none}.case-page{min-width:36px;height:36px;border:1px solid #e0e7ee;background:white;border-radius:4px;font:inherit;font-size:13px;color:#617486;cursor:pointer}.case-page[aria-current=page]{background:#1a4371;border-color:#1a4371;color:white}.case-page:disabled{opacity:.35;cursor:default}.case-footnote{font-size:12px;color:#82909d;border-top:1px solid #e9edf2;padding-top:18px;margin:28px 0 0}.case-dialog{width:min(900px,calc(100% - 40px));max-height:90dvh;border:0;border-radius:12px;padding:30px;color:#233b4e;box-shadow:0 24px 100px #00162e40;overscroll-behavior:contain}.case-dialog::backdrop{background:#08213599;backdrop-filter:blur(4px)}body:has(.case-dialog[open]){overflow:hidden}.case-dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.case-dialog-top .eyebrow{margin:0 0 6px}.case-close{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;background:#f0f4f8;border:0;border-radius:50%;font:inherit;font-size:25px;color:#5a6f80;cursor:pointer}.case-dialog h2{font-size:28px;line-height:1.45;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere}.case-detail-meta{margin:14px 0 24px}.case-detail-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;font-size:16px;padding:0 0 28px}.case-gallery{display:grid;gap:16px}.case-gallery img{display:block;max-width:100%;width:100%;height:auto;background:#f2f5f8;border-radius:5px}.case-detail-actions{display:flex;justify-content:flex-end;gap:10px;margin:24px 0 0;padding-top:20px;border-top:1px solid #e2e9ee}.case-delete{color:#bd3c3c}.case-editor{width:min(720px,calc(100% - 40px));padding:0}.case-editor>.case-dialog-top{padding:26px 28px 0;margin-bottom:22px}.case-editor h2{font-size:25px}.case-form-fields{padding:0 28px 20px}.case-form-fields>label:not(.case-upload),.case-field-label{display:block;font-weight:650;font-size:14px;margin:24px 0 9px}.case-form-fields>label:first-child{margin-top:0}.case-form-fields label>span,.case-field-label>span{color:#1a4371}.case-form-fields input:not([type=file]),.case-form-fields textarea{display:block;width:100%;border:1px solid #ccd8e2;border-radius:6px;background:#fff;color:#233b4e;font:inherit;font-size:15px;padding:12px 14px;line-height:1.65;box-sizing:border-box}.case-form-fields textarea{resize:vertical;min-height:150px}.case-form-fields input:focus,.case-form-fields textarea:focus{outline:2px solid #1a437135;border-color:#1a4371}.case-form-fields input::placeholder,.case-form-fields textarea::placeholder{color:#91a0ad}.case-help{font-size:12px;line-height:1.7;color:#7a8d9d;margin:7px 0 0}.case-photo-heading{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.case-photo-heading .case-field-label{margin:0 0 9px}.case-photo-heading>span:last-child{font-size:12px;color:#718292}.case-upload{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px 9px;border:1px dashed #a9c2d7;background:#f3f8fd;border-radius:7px;padding:22px 16px;text-align:center;cursor:pointer;color:#1a4371}.case-upload strong{font-size:14px}.case-upload>span{font-size:24px;line-height:1}.case-upload small{flex-basis:100%;font-size:12px;color:#6d8599}.case-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.case-upload:focus-within{outline:2px solid #1a4371}.case-previews{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:15px}.case-preview{position:relative;min-width:0}.case-preview img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px;display:block}.case-preview-badge{position:absolute;top:5px;left:5px;background:#1a4371;color:white;font-size:10px;padding:2px 6px;border-radius:3px}.case-preview-remove{position:absolute;right:4px;top:4px;border:0;width:25px;height:25px;border-radius:50%;color:white;background:#162e43b3;cursor:pointer;font-size:18px}.case-cover-btn{width:100%;border:1px solid #d4e0e9;border-radius:4px;background:white;color:#61798d;font:inherit;font-size:11px;margin-top:5px;padding:5px;cursor:pointer}.case-cover-btn:disabled{color:#1a4371;background:#f0f6fe;cursor:default}.case-editor-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:9px;padding:18px 28px;background:#fff;border-top:1px solid #e4ebf1;z-index:1}.case-error{padding:12px 14px;color:#ac3030;background:#fff2f2;border:1px solid #f1d3d3;border-radius:5px;font-size:13px;margin:16px 0 0}.case-toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);padding:13px 20px;background:#163c58;color:white;font-size:14px;z-index:1000;border-radius:7px;box-shadow:0 6px 22px #001e3540;max-width:calc(100% - 32px);text-align:center}.case-section [hidden],.case-dialog [hidden],.case-toast[hidden]{display:none!important}.case-section a:focus-visible,.case-section button:focus-visible,.case-dialog button:focus-visible{outline:3px solid #88b9ef;outline-offset:3px}@keyframes case-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.case-heading{gap:18px}.case-account{width:100%;justify-content:space-between}.case-btn{padding:11px 15px;font-size:13px}.case-summary{margin-top:20px}.case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.case-card h3{font-size:14px;margin:10px 0 6px}.case-meta{font-size:11px;gap:3px 7px}.case-card .case-meta{display:block}.case-card .case-meta>span,.case-card .case-meta>time{display:block}.case-footnote{line-height:1.7}.case-state{padding:38px 16px}.case-state strong{font-size:17px}.case-state p{font-size:13px}.case-dialog{width:calc(100% - 24px);max-height:92dvh;padding:20px;border-radius:9px}.case-dialog h2{font-size:23px}.case-dialog-top{margin-bottom:18px}.case-detail-body{font-size:14px;line-height:1.9}.case-gallery{gap:12px}.case-editor{padding:0}.case-editor>.case-dialog-top{padding:20px 20px 0}.case-editor h2{font-size:22px}.case-form-fields{padding:0 20px 20px}.case-editor-actions{padding:14px 20px}.case-previews{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.case-form-fields input:not([type=file]),.case-form-fields textarea{font-size:16px}.case-pagination{gap:5px}.case-page{min-width:32px;height:34px}.case-toast{bottom:70px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.case-card-image img{transition:none}.case-loading{animation:none}}
.case-contributor-dialog{width:min(560px,calc(100% - 24px))}
.case-contributor-dialog .case-form-fields{padding:0}
.case-contributor-input{display:flex;align-items:stretch;gap:8px}
.case-contributor-input input{min-width:0}
.case-contributor-input .case-btn{flex-shrink:0;min-width:60px}
.case-contributor-list{padding:0;margin:18px 0 0;list-style:none}
.case-contributor-row{padding:10px 0;border-top:1px solid #e9edf2;display:flex;align-items:center;justify-content:space-between;gap:12px}
.case-contributor-row span{min-width:0;overflow-wrap:anywhere;font-size:14px}
.case-contributor-row .case-btn{flex-shrink:0;padding:8px 12px}

.case-section { min-height: 18rem; padding: clamp(1rem, 3.5vw, 2.1rem); }
.case-heading { display: flex; justify-content: flex-end; margin-bottom: .8rem; }
.case-state strong { margin: 0 0 .35rem; }
.case-state p { margin: 0; }
.case-section .case-signout, .case-footnote, .case-help { font-size: .875rem; color: var(--muted); }
.case-dialog-top:has(> .case-close:only-child) { justify-content: flex-end; }
.case-dialog :is(button, input, textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.case-preview-remove { line-height: 1; }
@media (max-width: 680px) {
  .case-heading { justify-content: flex-start; margin-bottom: .5rem; }
  .case-account { width: auto; gap: .55rem; justify-content: flex-start; }
  .case-summary { margin-top: .85rem; }
  .case-toast { bottom: 1.15rem; }
}
