:root{color-scheme:light;--bg:#f4f7fc;--panel:#fff;--soft:#eaf2ff;--ink:#111827;--muted:#64748b;--line:#e5eaf2;--accent:#2563eb;--shadow:0 5px 22px #142d5c06;--danger:#dc354f}
:root[data-theme=dark]{color-scheme:dark;--bg:#0b101a;--panel:#171f2d;--soft:#1d2c45;--ink:#f1f5fb;--muted:#a0adc1;--line:#2b3648;--accent:#70a5ff;--shadow:none;--danger:#ff7e8f}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Microsoft JhengHei",sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:10px 14px}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}button:active:not(:disabled){transform:translateY(1px)}.primary{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:650}.danger{color:var(--danger);border-color:var(--danger)}.text-button{border:0;background:transparent;color:var(--accent);padding:8px}.icon-button{padding:10px;display:inline-grid;place-items:center;border:0;background:transparent}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:24px;line-height:1.4}h2{font-size:20px;line-height:1.4}h3{font-size:18px}.muted,small{color:var(--muted)}small{font-size:12px}.eyebrow{color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.1em}[hidden]{display:none!important}a{color:var(--accent)}label{display:block;margin:14px 0 0;font-size:14px;color:var(--muted)}input:not([type=checkbox]),select,textarea{display:block;width:100%;min-height:48px;border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:11px 12px;margin-top:6px;max-width:100%}textarea{min-height:104px;resize:vertical}input[type=checkbox]{width:22px;height:22px;vertical-align:middle;margin-right:8px;accent-color:#2563eb}fieldset{border:1px solid var(--line);border-radius:14px;margin:14px 0;padding:12px;min-width:0}form>.primary,form>button{margin-top:16px}form>.primary{width:100%}input[type=file]{font-size:13px}input[type=file]::file-selector-button{min-height:40px;border:0;background:var(--soft);color:var(--accent);border-radius:8px;padding:6px 10px;margin-right:8px}
.mobile-shell{max-width:560px;margin:auto;min-height:100dvh;padding-bottom:calc(86px + env(safe-area-inset-bottom));background:var(--bg)}.app-header{display:flex;align-items:center;gap:10px;padding:16px 18px 10px;padding-top:calc(12px + env(safe-area-inset-top));background:var(--panel)}.brand-mini,.brand-tile{display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,#2583ff,#1e40af);border-radius:14px;font-size:29px;flex-shrink:0}.brand-mini{width:42px;height:42px}.header-identity{min-width:0;flex:1}.header-identity strong{font-size:18px;display:block}.header-identity small{display:block;overflow-wrap:anywhere}.scope-row{display:flex;align-items:center;gap:8px;padding:0 18px 12px;background:var(--panel);font-size:12px;border-bottom:1px solid var(--line)}.scope-row label{margin:0;white-space:nowrap;font-size:12px}.scope-row select{font-size:13px;margin:0;padding:6px 9px;min-height:40px;flex:1;min-width:0}.scope-row button{font-size:12px;white-space:normal;max-width:115px;padding:5px;line-height:1.4}#content{padding:16px 16px 22px;min-width:0}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:var(--panel);border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:10;box-shadow:0 -5px 20px #10244008}.bottom-nav button{border:0;background:transparent;padding:2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;min-height:48px;color:var(--muted)}.bottom-nav button[aria-current=page]{color:var(--accent);font-weight:700}.bottom-nav .create-button{background:#2563eb;color:#fff;border-radius:50%;width:51px;height:51px;justify-self:center;box-shadow:0 5px 15px #2563eb55}.create-button .icon{width:28px;height:28px}.badge{display:inline-block;border-radius:12px;background:#ef4444;color:white;font-size:10px;line-height:18px;min-width:18px;padding:0 4px;text-align:center}.bell-wrap{position:relative}.bell-wrap .badge{position:absolute;right:-6px;top:-7px}
.hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#287fff,#1d4ed8);color:#fff;border-radius:20px;padding:20px;min-height:134px;box-shadow:0 8px 18px #2563eb22}.hero h1{margin:0 0 6px;font-size:24px;max-width:75%}.hero p{margin:0;font-size:13px;max-width:75%;color:#dceaff}.hero:after{content:'';position:absolute;right:12px;bottom:-10px;width:72px;height:115px;background:repeating-linear-gradient(0deg,transparent 0 12px,#e9f6ff99 12px 15px),repeating-linear-gradient(90deg,#a0d4ff88 0 12px,#63afff88 12px 20px);transform:skewY(-8deg);border-radius:10px;box-shadow:-42px 28px 0 #75bdff55;opacity:.65}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:22px 0 12px}.section-title h2{font-size:18px;margin:0}.section-title button{font-size:13px;min-height:44px;padding:5px 0;background:transparent;border:0;color:var(--accent)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}.stats button{border:0;background:var(--soft);padding:12px 4px;border-radius:16px;font-size:12px}.stats strong{display:block;color:var(--accent);font-size:26px;line-height:1.2;margin-bottom:6px}.stats button:nth-child(2){background:#f59e0b14}.stats button:nth-child(2) strong{color:#d88b00}.stats button:nth-child(3){background:#10b98114}.stats button:nth-child(3) strong{color:#0da87b}.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tile{min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);box-shadow:var(--shadow);font-size:13px;padding:12px 5px;overflow-wrap:anywhere}.tile .icon-box{display:grid;place-items:center;background:var(--soft);color:var(--accent);width:40px;height:40px;border-radius:12px}.tile:nth-child(3n+2) .icon-box{background:#a78bfa1a;color:#9468da}.tile:nth-child(3n) .icon-box{background:#10b98119;color:#0da87b}.card,.case-card,.report-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:16px;margin:12px 0;box-shadow:var(--shadow);min-width:0}.card h2:first-child{margin-top:0}.card p:last-child{margin-bottom:0}.case-card{display:block;width:100%;text-align:left}.case-head{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}.case-head strong{font-size:15px}.case-card time{font-size:11px;color:var(--muted);display:block}.case-card p{margin:8px 0 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.case-card .location{font-size:12px;color:var(--muted)}.status{display:inline-block;white-space:nowrap;align-self:flex-start;font-size:12px;border-radius:8px;padding:4px 8px;background:#2563eb12;color:var(--accent)}.status.done{background:#10b98115;color:#0da87b}.status.working{background:#f59e0b17;color:#c88712}.status.pending{background:#ef444411;color:#eb5360}.empty{text-align:center;color:var(--muted);padding:30px 15px}.empty>.icon{width:32px;height:32px;opacity:.5}.empty p{font-size:14px}.btn-row,.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.actions{margin-top:14px}.actions>*{flex:1;min-width:100px}.date-tools{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;margin:12px 0}.date-tools input{margin:0}.pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:18px 0;font-size:12px}.pagination button{padding:8px;font-size:13px}.search-form{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.search-form label:first-child{margin-top:0}.search-form details{margin-top:10px}.list-actions{display:flex;gap:8px;margin-bottom:10px}.list-actions button{flex:1;font-size:13px}.notice-card{border:1px solid var(--line);background:var(--soft);border-radius:14px;padding:14px;font-size:14px}.timeline{padding-left:18px;border-left:2px solid var(--line);margin:18px 0}.timeline article{margin:16px 0}.timeline strong{font-size:13px}.timeline p{font-size:14px;white-space:pre-wrap;margin:5px 0}.timeline small{display:block}.photos{display:flex;flex-wrap:wrap;gap:8px}.photos img{width:88px;height:88px;object-fit:cover;border-radius:12px;cursor:zoom-in}.photos figure{margin:0}.photos button{font-size:12px;display:block}.photos figure button{width:100%;margin-top:6px}
dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:22px;width:calc(100% - 24px);max-width:530px;max-height:90dvh;padding:18px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #0006}dialog::backdrop{background:#07142b99;backdrop-filter:blur(3px)}dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px}dialog header h2{margin:0;font-size:19px}dialog header button{font-size:24px}dialog footer{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}dialog pre,pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 system-ui}#photo-image,#photo-large{display:block;max-width:100%;max-height:75dvh;object-fit:contain;margin:auto}#notice-text{white-space:pre-wrap}.login-screen{max-width:440px;min-height:100dvh;margin:auto;padding:42px 24px;background:var(--panel)}.brand-tile{width:66px;height:66px;font-size:44px;margin-bottom:28px}.login-screen h1{font-size:30px;margin:12px 0}.login-screen .muted{font-size:14px}.login-screen form{margin-top:28px}.login-screen form>button{width:100%}.login-screen #login-error{color:var(--danger);font-size:14px}.locked{padding:22px;text-align:center}.locked .icon{width:38px;height:38px;color:var(--accent)}.loading{padding:30px 15px;color:var(--muted);text-align:center}.loading:before{content:'';display:block;width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;margin:0 auto 12px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.more-list{display:grid;gap:8px}.more-list>button{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:14px;background:var(--panel);border:1px solid var(--line)}.more-list>button>.icon:last-child{margin-left:auto;width:17px}.version{font-size:11px;color:var(--muted);text-align:center;margin:26px 0 4px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.month-grid button{padding:4px;min-width:0;min-height:47px;font-size:13px}.month-grid button[data-has-event=true]{background:var(--soft);color:var(--accent);font-weight:700}.month-grid button[aria-current=date]{border-color:var(--accent)}.month-grid small{font-size:10px}.calendar-entry{width:100%;text-align:left;display:flex;gap:10px;margin:8px 0;align-items:flex-start}.calendar-entry time{font-size:12px;color:var(--accent);min-width:50px}.calendar-entry span{flex:1}.scope-note{font-size:12px;color:var(--muted);margin:10px 0}
/* Native mobile presentation of shared management controller. */
.mobile-workspace{display:block;min-width:0}.workspace-nav{display:none}.review-tabs{display:flex;gap:8px;margin-bottom:12px}.review-tabs button{flex:1;font-size:14px}.table-wrap{overflow:visible}table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}tbody{display:grid;gap:12px}tr{display:grid;padding:12px;border:1px solid var(--line);border-radius:14px;min-width:0}td{display:flex;flex-wrap:wrap;gap:6px;align-items:center;border:0;overflow-wrap:anywhere;min-width:0;padding:5px 0}td:before{content:attr(data-label);font-size:12px;color:var(--muted);min-width:65px}td:first-child{font-weight:700}td button{font-size:13px;padding:8px}#manage-data>p{border-bottom:1px solid var(--line);padding-bottom:12px;font-size:14px;overflow-wrap:anywhere}#manage-data button{margin:4px 4px 0 0;font-size:13px}#operation .btn-row>label{width:100%}.grid3{display:grid;gap:8px}.portal-tabs{display:flex;flex-wrap:wrap}.read-only-note{font-size:13px;color:var(--muted)}.report-card h3{margin:10px 0}.report-card p{white-space:pre-wrap;font-size:14px}.report-card small{font-size:12px}#page>.card:first-child{margin-top:0}#page>.card>h2{font-size:19px}.pending-owner{background:var(--soft);padding:12px;border-radius:10px;font-size:13px}video{max-width:100%}#qr-code svg{width:100%;max-width:270px;height:auto;background:white;border-radius:12px}details{overflow-wrap:anywhere}summary{min-height:44px;padding:10px 0;cursor:pointer;color:var(--accent)}.account-block{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.small-print{font-size:12px;color:var(--muted)}@media(max-width:359px){#content{padding:12px}.app-header{padding-left:12px;padding-right:12px}.scope-row{padding-left:12px;padding-right:12px}.tiles{gap:7px}.tile{font-size:12px}.case-head{flex-wrap:wrap}.pagination{flex-wrap:wrap;justify-content:center}.hero h1{font-size:22px}.hero{padding:16px}}@media(min-width:600px){body{padding-top:16px}.mobile-shell,.login-screen{box-shadow:0 0 30px #142d5c0d;border-left:1px solid var(--line);border-right:1px solid var(--line)}.mobile-shell{border-radius:24px 24px 0 0;overflow:clip}}

/* Mobile shortcut notification counts. */
.tile .icon-box{position:relative;overflow:visible}.icon-box>.badge{position:absolute;right:-8px;top:-7px;min-width:20px;line-height:20px;border-radius:50%;font-weight:700;box-shadow:0 0 0 2px var(--panel)}

#case-photos section{margin-block:18px}#case-photos figure{margin:6px;max-width:100%;overflow-wrap:anywhere}#case-photos figcaption{font-size:12px;color:var(--muted)}.photo-stage-form input[type=file]{width:100%;min-width:0}.photo-stage-form button{margin-block:4px;width:100%}

.photo-preview{display:flex;flex-wrap:wrap;gap:8px}.photo-preview figure{margin:0}.photo-preview img{object-fit:cover;border-radius:8px}.operation-photos{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:12px}
.desktop-stage-drafts .photo-preview{display:flex;gap:8px;flex-wrap:wrap}

#operation-warning{background:#fff3cd;color:#664d03;padding:12px 16px}

/* Per-stage verified originals and selected optional photos remain responsive. */
.photos,.photo-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:8px}
.photos figure,.photo-preview figure{min-width:0;overflow-wrap:anywhere}
.photos img,.photo-preview img{width:100%;max-width:100%;height:90px;object-fit:cover}

/* Connection/error text is a full-width flow banner, never a navigation grid cell. */
#connection{position:relative;margin:12px 16px;padding:12px 14px;max-height:30dvh;overflow:auto;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--ink);font-size:14px;line-height:1.6}
/* V5 refinement: consistent touch sizes, compact filters, safe viewport layout.
 * No changes to visibility/authorization of business controls or photo quotas. */
.app-header{gap:8px;padding-inline:14px}
.app-header .icon-button{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:10px;border-radius:12px}
.app-header .icon-button .icon{width:22px;height:22px}
.app-header .icon-button .bell-wrap{display:grid;place-items:center}
.header-identity strong{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.header-identity small{font-size:12px;line-height:1.5}
#content{padding:14px 14px 24px}
.mobile-shell{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
html{scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
#content :is(input,select,textarea,button){scroll-margin-block:76px calc(100px + env(safe-area-inset-bottom,0px))}
#content :is(input:not([type=checkbox]):not([type=radio]),select){min-width:0;min-height:44px;font-size:16px;line-height:1.5;padding:9px 10px}
#content textarea{font-size:16px;line-height:1.6;min-height:100px}
#content :is(.actions,.btn-row)>button{min-height:44px;font-size:14px;line-height:1.5;padding:9px 12px}
#case-query{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px}
#case-query>label{margin:0;min-width:0}
#case-query>details{margin:0;border-top:1px solid var(--line)}
#case-query>details summary{min-height:44px;padding:10px 0;font-size:14px}
#case-query>details label{margin-top:10px;min-width:0}
#case-query>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#case-query>.actions>button{min-width:0}
.notice-card:has(#case-stats-date){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:12px;margin-bottom:12px}
.notice-card:has(#case-stats-date)>label{margin:0;font-size:13px;min-width:0}
.notice-card:has(#case-stats-date)>button[data-stat]{width:auto;min-width:0;min-height:44px;padding:8px;font-size:13px;line-height:1.5;text-align:left;border:0;background:transparent;box-shadow:none;text-decoration:underline;text-underline-offset:4px}
.notice-card:has(#case-stats-date)>button[data-stat] strong{font-size:17px;margin-left:4px}
dialog{width:calc(100% - 24px);max-width:530px;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);padding:16px;scroll-padding-block:72px 24px}
dialog>header{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:10px;position:sticky;top:0;z-index:2;padding-block:4px 10px;margin-bottom:10px;background:var(--panel);border-bottom:1px solid var(--line)}
dialog>header>h2{flex:1;min-width:0;margin:0;font-size:18px;line-height:1.5;overflow-wrap:anywhere}
dialog>header>button:is([data-close],[data-action^=close],#photo-close){flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:6px;margin-left:auto;font-size:24px;line-height:1;border-radius:12px}
dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0;font-size:16px;scroll-margin-block:72px 24px}
dialog footer{margin-top:16px}
:root[data-theme=neon] .hero{min-height:120px;padding:16px}
:root[data-theme=neon] .hero h1{font-size:22px;line-height:1.4}
:root[data-theme=neon] .hero p{font-size:13px;line-height:1.6}
:root[data-theme=neon] .section-title{margin:18px 0 10px}
:root[data-theme=neon] .tiles{gap:9px}
:root[data-theme=neon] .tile{min-height:96px;gap:7px;padding:12px 6px;font-size:13px;line-height:1.5}
:root[data-theme=neon] .tile .icon-box{width:38px;height:38px;border-radius:11px}
:root[data-theme=neon] .tile .icon{width:22px;height:22px}
@media(min-width:400px){#case-query{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}#case-query>:is(details,.actions){grid-column:1/-1}}
@media(max-width:359px){.app-header{padding-inline:12px}.app-header .brand-mini{width:36px;height:36px}.header-identity strong{font-size:16px}.notice-card:has(#case-stats-date){grid-template-columns:minmax(0,1fr)}.notice-card:has(#case-stats-date)>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}.notice-card:has(#case-stats-date)>label input{margin:0}.notice-card:has(#case-stats-date)>button{justify-self:start}#content{padding-inline:12px}}
/* Keep scrolling text from bleeding through the fixed Neon navigation surface. */
:root[data-theme=neon] #bottom-nav{background:#081d3c;backdrop-filter:none}
/* V5 local mobile polish: lightweight navigation, unchanged action hooks. */
#content>.section-title:has(>button[data-action=new-case])>h1{min-width:0;margin:0;line-height:1.4}
#content>.section-title>button:is([data-route=more],[data-route=cases],[data-action=new-case]){display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:4px;min-height:40px;height:40px;padding:4px 8px;line-height:1.4;white-space:nowrap;font-size:13px}
#content>.section-title>button:is([data-route=more],[data-route=cases]){color:var(--accent);background:transparent;border-color:transparent;box-shadow:none;border-radius:8px}
#content>.section-title>button:is([data-route=more],[data-route=cases])>.icon{width:16px;height:16px}
#content>.section-title>button[data-action=new-case]{padding-inline:10px;font-size:14px}
/* The outer .photos contains STAGES, not thumbnails. Keep only inner grids. */
#detail-photos{display:block;min-width:0;width:100%}
#detail-photos>section{min-width:0;width:100%;margin-block:18px}
#detail-photos>section>h4{margin:0 0 8px;line-height:1.5}
#detail-photos>section>p{margin:0 0 10px;line-height:1.6;word-break:normal;overflow-wrap:anywhere}
#detail-photos>section>.photos{grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr));gap:12px;min-width:0}
#detail-photos figure{margin:0;min-width:0;max-width:100%}
#detail-photos img{display:block;width:100%;height:112px;max-width:100%;object-fit:cover}
#detail-photos figure>button{width:100%;min-width:0;min-height:44px;padding:8px;line-height:1.5;white-space:normal;word-break:normal}
/* Scroll the report body, not beneath a sticky header. Other dialogs unchanged. */
#modal[open]:has(#detail-photos){display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:min(780px,calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px));overflow:hidden}
#modal:has(#detail-photos)>header{position:static;min-width:0;margin-bottom:10px}
#modal:has(#detail-photos)>header>h2{word-break:normal;overflow-wrap:normal}
#modal:has(#detail-photos)>#modal-body{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}
#modal:has(#detail-photos)>#modal-body>:is(h3,p,article,details){min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
#modal:has(#detail-photos)>footer{margin-top:10px;min-width:0}
/* Blend the mobile modal title surface; keep its geometry and controls intact. */
dialog>header{background:transparent;border-bottom-color:transparent;box-shadow:none}
/* Native disclosure keeps full history in place and starts collapsed. */
.case-history{min-width:0;max-width:100%;overflow-wrap:anywhere}.case-history>summary{cursor:pointer;font-weight:700;font-size:1.1rem;min-height:44px;padding-block:8px;list-style-position:inside}.case-history>summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.case-history .timeline{min-width:0;overflow-wrap:anywhere}

/* Shared case-history content, scoped away from editors and other timelines. */
.case-history-timeline{min-width:0;border-left:2px solid var(--line);padding-left:16px;margin-block:16px}.case-history-entry{min-width:0;margin-block:20px;overflow-wrap:anywhere}.case-history-entry .case-history-meta{font-size:13px;color:var(--muted);margin:0 0 8px}.case-history-entry .case-history-label{font-size:14px;margin:6px 0}.case-history-entry .case-history-note{font-size:18px;line-height:1.7;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.case-history-entry .status{display:inline-block;font-size:13px;line-height:1.5;padding:4px 9px;border-radius:8px;margin-block:4px;max-width:100%;white-space:normal}.case-history-entry .status.pending{color:#eb5360;background:#ef444418}.case-history-entry .status.working{color:#c88712;background:#f59e0b18}.case-history-entry .status.done{color:#0da87b;background:#10b98118}.case-history-entry details{min-width:0;overflow-wrap:anywhere}.case-history-entry details p{white-space:pre-wrap}
