#human-status.bad{position:static;margin:12px 0;max-height:none;box-shadow:none}
#human-onchain-workbench[hidden],#ln-mediator-workbench[hidden]{display:none}
nav a[aria-current="true"]{color:var(--gold,var(--lime));font-weight:700}

.browser-mediator-identity {margin:20px 0;padding:22px;}
.browser-mediator-identity h3 {margin-top:0;}
.browser-mediator-identity .action-group {display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;}
.browser-mediator-identity .row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.browser-mediator-identity code {overflow-wrap:anywhere;white-space:normal;}
.browser-mediator-identity .check-row {display:flex;align-items:flex-start;gap:12px;}
.browser-mediator-identity .check-row input {width:auto;flex:none;margin-top:5px;}
.browser-mediator-identity [hidden] {display:none!important;}
@media(max-width:600px) {.browser-mediator-identity {padding:16px;} .browser-mediator-identity .row {grid-template-columns:1fr;} .browser-mediator-identity .action-group button {width:100%;}}
.pwa-role-workspace [hidden]{display:none!important}
.role-brand{display:inline-flex;margin-bottom:12px}
.role-brand img{width:190px;height:auto}
.role-key-timer{display:inline-block;margin:8px 18px;font-variant-numeric:tabular-nums;color:var(--gold)}
.pwa-role-workspace>.secondary{margin-left:max(18px,calc((100% - 1224px)/2))}
.pwa-role-workspace header h1{font-size:clamp(1.4rem,3vw,2rem);line-height:1.25;margin:0 0 10px}
.pwa-role-workspace header>div:last-child{display:flex;flex-wrap:wrap;gap:10px}
.role-navigation,.role-task-picker{display:flex;flex-wrap:wrap;gap:8px;max-width:1280px;margin:0 auto;padding:16px 28px;border-bottom:1px solid var(--line);position:static;background:transparent;backdrop-filter:none}
.role-navigation>a,.role-task-picker>a{display:block;min-height:44px;padding:10px 14px;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent}
.role-navigation>a[aria-current=page],.role-task-picker>a[aria-current=page]{border-bottom-color:var(--gold);background:var(--surface)}
.role-navigation a[aria-current=page],.role-task-picker a[aria-current=page]{color:var(--gold);font-weight:700}
.role-task-picker{padding:0 0 20px;margin-bottom:24px}
.pwa-role-workspace .panel{max-width:960px;margin:0 auto 24px}
.pwa-role-workspace label,.pwa-role-workspace details{display:block;margin:18px 0}
.pwa-role-workspace button{margin:8px 10px 8px 0}
.role-feedback{max-width:960px;margin:0 auto 24px}
.role-feedback:has(#console-status:empty){display:none}
.role-feedback #console-status{margin:0;padding:14px 18px;border-left:3px solid var(--gold);background:var(--panel);overflow-wrap:anywhere}
.pwa-role-workspace button[data-console-lang],.pwa-role-workspace button[data-human-language]{transition:none}
.pwa-role-workspace button[data-console-lang][aria-pressed=true],.pwa-role-workspace button[data-human-language][aria-pressed=true]{background:var(--gold);color:var(--bg);border-color:var(--gold)}
html body.pwa-role-workspace .bundle-help-button{border:0;border-radius:0;background:transparent;padding:4px;margin:0;box-shadow:none}
.pwa-role-workspace .bundle-help-button img{display:block;width:32px;height:32px;object-fit:contain}
.pwa-role-workspace .bundle-help-button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.pwa-role-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere}
.pwa-role-workspace .card{overflow-wrap:anywhere}
.mediation-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:960px;margin:0 auto 24px;gap:16px;position:static;background:transparent;backdrop-filter:none;padding:0;border:0}
.mediation-modes a{display:block;border:1px solid var(--line);padding:18px 24px;border-radius:8px;background:var(--panel);text-decoration:none;font-weight:650}
.mediation-modes.is-selected a{padding:8px 16px}
.mediation-modes.is-selected{grid-template-columns:repeat(2,minmax(0,1fr))}
.role-task-picker button:not([aria-pressed=true]){background:transparent;color:var(--ink);border-color:var(--line)}
.mediation-progress{border-left:3px solid var(--gold);padding:16px 20px;margin:0 0 24px;background:var(--panel)}
.mediation-progress h3{font-size:1.4rem;margin:0 0 12px}
.pwa-role-workspace label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:12px}
.pwa-role-workspace input[type=checkbox]{width:auto;flex:none;margin-top:5px}
.browser-mediator-identity .identity-choices{display:flex;gap:12px;flex-wrap:wrap}
/* The next action has the same visual priority for every mediator mode. */
.pwa-role-workspace .role-primary,
.pwa-role-workspace #ln-mediator-workbench [data-connect],
.pwa-role-workspace #ln-mediator-workbench [data-prepare],
.pwa-role-workspace #ln-mediator-workbench [data-sign],
.pwa-role-workspace #ln-mediator-download,
.pwa-role-workspace .browser-mediator-identity [data-key-generate],
.pwa-role-workspace .browser-mediator-identity [data-key-import]{display:block;width:100%;min-height:48px;padding:14px 18px;margin:20px 0;font-size:1.1rem;font-weight:700}
.pwa-role-workspace .role-document{border-top:1px solid var(--line);padding-top:8px}
.pwa-role-workspace .role-document summary{color:var(--gold);font-size:1rem}
.pwa-role-workspace .role-document pre{max-height:40vh;overflow:auto;margin:14px 0;font-size:.9rem}
.pwa-role-workspace .role-document p,.pwa-role-workspace .role-case-context{white-space:pre-line;overflow-wrap:anywhere;line-height:1.7}
#human-flow>p{overflow-wrap:anywhere}
#human-flow>pre{white-space:pre-wrap;line-height:1.7}
@media(max-width:600px){.role-navigation{padding:18px;gap:14px 18px}.pwa-role-workspace main{padding:18px}.mediation-modes{grid-template-columns:1fr}.pwa-role-workspace button{max-width:100%}}

/* Illustrated mediation overview. Case actions continue in the original workspace. */
.mediation-overview{margin-bottom:28px}.mediation-overview-hero{display:grid;grid-template-columns:1fr .9fr;gap:32px;align-items:center;margin-bottom:24px}.mediation-overview-hero h2{font-size:clamp(1.55rem,2.6vw,2.35rem);line-height:1.3;margin:.4rem 0 1rem}.mediation-overview-hero p{margin:.5rem 0;color:var(--muted)}.mediation-overview-hero .eyebrow{color:var(--gold);letter-spacing:.12em;font-size:.8rem}.mediation-overview-hero img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid var(--line)}.mediation-overview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.mediation-overview-card{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden}.mediation-overview-card summary{padding:16px;cursor:pointer;list-style:none;position:relative}.mediation-overview-card summary::-webkit-details-marker{display:none}.mediation-overview-card summary img{display:block;width:100%;height:150px;object-fit:contain;border-radius:10px;margin-bottom:14px}.mediation-overview-card h3{font-size:1.1rem;line-height:1.5;margin:0 24px 6px 0}.mediation-overview-card summary span{font-size:.8rem;color:var(--muted)}.mediation-overview-card summary::after{content:'＋';position:absolute;right:16px;bottom:42px;color:var(--gold)}.mediation-overview-card[open] summary::after{content:'−'}.mediation-overview-card[open] summary{border-bottom:1px solid var(--line)}.mediation-overview-flow{list-style:none;padding:16px;margin:0}.mediation-overview-flow li{position:relative;padding:12px;border:1px solid var(--line);border-radius:10px;margin-bottom:22px}.mediation-overview-flow li:not(:last-child)::after{content:'↓';position:absolute;bottom:-25px;left:50%;color:var(--gold)}.mediation-overview-flow li:last-child{margin-bottom:0}.mediation-overview-flow strong{color:var(--gold);font-size:.9rem}.mediation-overview-flow p{margin:6px 0 0;font-size:.85rem;line-height:1.6;overflow-wrap:anywhere}.mediation-overview-card>.hint{padding:0 16px 16px;margin:0;font-size:.8rem}.mediation-overview-boundary{border-left:3px solid var(--gold);padding:12px 16px;margin-top:20px!important;font-size:.85rem}
@media(max-width:900px){.mediation-overview-hero{gap:20px}.mediation-overview-cards{grid-template-columns:1fr}.mediation-overview-card summary{display:grid;grid-template-columns:130px 1fr;gap:4px 18px;align-items:center}.mediation-overview-card summary img{grid-row:1/3;height:95px;margin:0}.mediation-overview-card summary::after{bottom:20px}.mediation-overview-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mediation-overview-flow li{margin:0}.mediation-overview-flow li::after{display:none}}
@media(max-width:560px){.mediation-overview-hero{grid-template-columns:1fr;gap:16px}.mediation-overview-hero img{max-height:220px;object-fit:cover}.mediation-overview-card summary{grid-template-columns:100px 1fr;gap:4px 14px}.mediation-overview-card summary img{height:90px}.mediation-overview-card h3{font-size:1rem}.mediation-overview-flow{display:block}.mediation-overview-flow li{margin-bottom:22px}.mediation-overview-flow li:not(:last-child)::after{display:block}}
