/* Office only. Never loaded by the app or customer capture page. */
#case-dialog{width:calc(100vw - 40px);max-width:1440px;height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);overflow:hidden}
#case-dialog[open]{display:flex;flex-direction:column}
#case-dialog>.dialog-head{flex:none;padding:16px 22px;gap:16px}
#case-dialog-title{font-size:1.35rem;overflow-wrap:anywhere}
#case-detail{flex:1;min-height:0;overflow:auto;padding:20px 22px;align-content:start;gap:18px;overscroll-behavior:contain}
#case-detail .meta{margin:0;background:#f5f6f8;border-radius:12px;padding:16px;gap:12px}
#case-detail .notice{border-radius:10px}
.office-media-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.office-media-toolbar h3{font-size:1.2rem;margin-bottom:4px}
.office-media-toolbar p{font-size:.9375rem;line-height:1.4;color:var(--muted)}
.office-media-toolbar .row{gap:8px}
.office-media-toolbar .btn{min-height:48px;font-size:1rem}
.office-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;align-content:start}
.office-media-tile{position:relative;display:grid;grid-template-rows:150px auto;min-width:0;overflow:hidden;padding:0;border:1px solid #d7dde5;border-radius:12px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 2px 6px #18233408;touch-action:manipulation}
.office-media-tile:hover,.office-media-tile:focus-visible{border-color:var(--red);box-shadow:0 5px 16px #18233416}
.office-media-thumb{display:grid;place-items:center;overflow:hidden;background:#edf0f4;color:#687382}
.office-media-thumb>svg{width:48px;height:48px}
.office-media-thumb>img{display:block;width:100%;height:150px;object-fit:contain}
.office-media-caption{min-width:0;padding:11px 12px;display:grid;gap:4px}
.office-media-caption strong{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
.office-media-caption>span{font-size:.875rem;line-height:1.35;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.office-media-noted{position:absolute;right:8px;top:8px;padding:5px 9px;border-radius:6px;background:#fff;color:var(--red);font-size:.875rem;font-weight:650;box-shadow:0 1px 6px #0002}
#detail-status:empty{display:none}
#file-dialog.office-viewer{width:calc(100vw - 24px);max-width:1600px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
#file-dialog.office-viewer[open]{display:flex;flex-direction:column}
.office-viewer>.dialog-head{flex:none;padding:12px 18px;gap:14px}
.office-viewer h2{flex:1;font-size:1.125rem;min-width:0}
.office-viewer-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,260px);flex:1;min-height:0}
.office-viewer-body:has(#file-note-wrap[hidden]){grid-template-columns:minmax(0,1fr)}
#file-detail{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;background:#101215;padding:0;overflow:hidden}
#file-detail>:is(img,video,iframe){display:block;border:0;width:100%;height:100%;max-height:none;object-fit:contain}
#file-note-wrap{padding:20px;border-left:1px solid var(--line);overflow:auto;min-height:0;background:#fff}
#file-note-wrap h3{margin-bottom:12px}
.office-viewer-footer{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 18px;border-top:1px solid var(--line);background:#fff}
.office-viewer-footer .row{gap:8px}
.office-viewer-footer .btn{min-height:44px;font-size:1rem;padding:8px 12px}
#file-status{font-size:.9375rem;line-height:1.35;flex:1;text-align:right;color:var(--muted)}
@media(max-width:640px){#case-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}#case-dialog>.dialog-head,#case-detail{padding:12px}#case-detail .meta{grid-template-columns:1fr;gap:10px}.office-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.office-media-tile{grid-template-rows:120px auto}.office-media-thumb>img{height:120px}.office-media-caption{padding:9px}.office-media-toolbar{align-items:flex-start}.office-media-toolbar .row{width:100%}.office-media-toolbar .btn{flex:1}.office-viewer-body{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}#file-note-wrap{max-height:130px;border-left:0;border-top:1px solid var(--line);padding:12px}.office-viewer-footer{padding:8px}.office-viewer h2{font-size:1rem}}
/* Case-specific capture scope, only in the Kasko dashboard. */
.kasko-case-options{display:grid;gap:8px;font-size:1rem}
.kasko-case-options>label,.kasko-case-options legend{font-weight:700}
.kasko-case-options select{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit}
.kasko-case-options fieldset{min-width:0;border:1px solid var(--line);border-radius:8px;padding:6px 12px}
.kasko-case-options fieldset label{display:flex;align-items:center;gap:10px;min-height:44px}
.kasko-case-options input{width:18px;height:18px;accent-color:var(--red)}
