/* Web chronicle disclosure. Runtime keeps every retained event; CSS only limits the viewport. */
html:not([data-platform="android"]) .log-panel>.battle-chronicle{
  display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:8px;
  min-width:0;max-width:100%;margin-top:10px;
}
html:not([data-platform="android"]) .battle-chronicle>.battle-log-toggle{
  display:grid;place-items:center;align-self:start;width:48px;min-width:48px;height:48px;min-height:48px;
  margin:0;padding:0;border:1px solid #b39a6555;border-radius:4px;background:#cbb17a0a;color:#dcc591;
  box-shadow:none;transform:none;touch-action:manipulation;
}
html:not([data-platform="android"]) .battle-log-toggle>.battle-log-chevron{
  display:block;width:12px;height:12px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(-45deg);transition:transform .15s ease-out;pointer-events:none;
}
html:not([data-platform="android"]) .battle-chronicle[data-expanded="true"] .battle-log-chevron{transform:rotate(45deg)}
html:not([data-platform="android"]) .battle-chronicle>.battle-log{
  min-width:0;max-width:100%;min-height:0;height:auto;margin:0;padding:0;
  font:400 var(--type-caption)/1.45 var(--sans);color:#c1c9bf;
  overflow:hidden;scrollbar-gutter:stable;overscroll-behavior:contain;touch-action:pan-y;
}
html:not([data-platform="android"]) .battle-chronicle>.battle-log>p{
  min-width:0;max-width:100%;margin:0;padding:0;border:0;color:inherit;
  font:inherit;line-height:inherit;animation:none;overflow-wrap:anywhere;
}
html:not([data-platform="android"]) .battle-chronicle>.battle-log>p:first-child{color:#e0cda6}
html:not([data-platform="android"]) .battle-chronicle[data-expanded="false"]>.battle-log{max-height:calc(var(--type-caption)*1.45);max-height:1lh}
html:not([data-platform="android"]) .battle-chronicle[data-expanded="false"]>.battle-log>p:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not([data-platform="android"]) .battle-chronicle[data-expanded="false"]>.battle-log>p:not(:first-child){display:none}
html:not([data-platform="android"]) .battle-chronicle[data-expanded="true"]>.battle-log{
  align-self:start;max-height:calc(var(--type-caption)*7.25);max-height:5lh;overflow-y:auto;overflow-x:hidden;
}
html:not([data-platform="android"]) .battle-chronicle[data-expanded="true"]>.battle-log>p{display:block;white-space:normal;overflow:visible;text-overflow:clip}
html:not([data-platform="android"]) .battle-chronicle>:is(.battle-log-toggle,.battle-log):focus-visible{outline:3px solid #f0d391;outline-offset:2px}
html:not([data-platform="android"]) .battle-chronicle>.battle-log-toggle:is(:hover,:active){background:#cbb17a21;color:#f1dcad;transform:none}
@media(prefers-reduced-motion:reduce){html:not([data-platform="android"]) .battle-log-toggle>.battle-log-chevron{transition:none}}
