.tool-history,.tool-history *{box-sizing:border-box;min-inline-size:0}
.tool-history{
  container:tool-history/inline-size;
  --ink:#182735;--muted:#516274;--rule:#dbe3ea;--accent:#164e47;--soft:#f1f5f7;
  width:100%;max-width:76rem;margin:0 auto;padding:clamp(14px,3vw,28px) clamp(12px,3vw,32px) max(24px,env(safe-area-inset-bottom));
  color:var(--ink);background:#fff;overflow-wrap:anywhere;
  font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.pc-embedded-runtime:has(.tool-history--embedded),.pc-embedded-admin-app:has(.tool-history--embedded){display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;max-width:100%}
.pc-embedded-admin-app:has(.tool-history--embedded){flex:1;overflow:visible!important}
.tool-history--embedded{flex:1;max-width:none}
.tool-history--embedded,
.app-root.app-tool-history:not(.pc-embedded-admin-app)>main.tool-history:not(.tool-history--embedded){height:100%;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y}
.tool-history .tool-history-bar,.tool-history-toolbar,.tool-history-result-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 14px}
.tool-history .tool-history-bar{margin-bottom:14px}
.tool-history h1,.tool-history h2{margin:0;line-height:1.25;letter-spacing:-.035em}
.tool-history h1{font-size:clamp(23px,4cqi,31px);font-weight:700}
.tool-history h2{font-size:18px}
.tool-history-stream-controls{
  position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;
  gap:6px 10px;min-height:54px;padding:5px 9px 5px 11px;margin-bottom:10px;
  border:1px solid #c5d9d7;border-radius:9px;background:#f0f7f5
}
.tool-history-stream-controls[data-live-state=paused]{border-color:#e9d6a9;background:#fff8e8}
.tool-history-stream-controls .tool-history-live-toggle{min-height:44px;flex:none;padding-inline:11px;border-color:#164e47;color:#164e47}
.tool-history-stream-controls[data-live-state=paused] .tool-history-live-toggle{background:#164e47;color:#fff}
.tool-history-stream-controls[data-live-state=paused] .tool-history-live-toggle:hover{background:#113d38}
.tool-history button,.tool-history select,.tool-history input{font:inherit;color:inherit;background:#fff;border:1px solid #c7d4de;border-radius:7px;min-height:43px;max-width:100%;padding:7px 10px}
.tool-history button{cursor:pointer;font-size:13px;font-weight:600;white-space:normal}
.tool-history button:hover:not(:disabled){background:var(--soft)}
.tool-history button:disabled,.tool-history select:disabled,.tool-history input:disabled{opacity:.61;cursor:default}
.tool-history button:focus-visible,.tool-history summary:focus-visible,.tool-history select:focus-visible,.tool-history input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tool-history-connection{font-size:13px;font-weight:650;color:var(--ink);display:inline-flex;align-items:center;gap:6px}
.tool-history-connection::before{content:'';width:7px;height:7px;border-radius:50%;background:#687886;flex:none}
.tool-history-stream-controls[data-live-state=active] .tool-history-connection::before{background:#127256}
.tool-history-stream-controls[data-live-state=paused] .tool-history-connection::before{background:#8c6100}
.tool-history-controls{border:1px solid var(--rule);border-radius:12px;background:#f8fafb;padding:12px 14px;margin-bottom:22px}
.tool-history-toolbar{justify-content:flex-start;margin-bottom:10px}
.tool-history-segments{display:inline-flex;flex-wrap:wrap;gap:2px;background:#e8eff3;border-radius:8px;padding:3px}
.tool-history-segments button{border:0;border-radius:6px;background:transparent;color:var(--muted);min-height:35px;padding:6px 11px}
.tool-history-segments button[aria-pressed=true]{background:#fff;color:var(--accent);box-shadow:0 1px 3px #15374622}
.tool-history-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:9px 12px}
.tool-history-fields label{display:grid;gap:4px;align-content:start;font-size:12px;font-weight:650;color:var(--muted)}
.tool-history-fields select,.tool-history-fields input{inline-size:100%;font-size:16px;font-weight:400;color:var(--ink)}
.tool-history-options{margin-top:10px;border-top:1px solid var(--rule)}
.tool-history-options>summary{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;min-height:39px;padding-block:7px 2px;font-weight:650;cursor:pointer;list-style:none}
.tool-history-options>summary::before{content:'›';font-size:19px;line-height:1;color:var(--muted)}
.tool-history-options[open]>summary::before{transform:rotate(90deg)}
.tool-history-options[open] .tool-history-fields{padding-block:5px 2px}
.tool-history-options>summary::-webkit-details-marker,.tool-history-list summary::-webkit-details-marker{display:none}
.tool-history-selection{font-size:12px;color:var(--muted);font-weight:400}
.tool-history-selection::before{content:'· '}
.tool-history-result-heading{margin-bottom:9px}
.tool-history-result-heading>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.tool-history-list{list-style:none;padding:0;margin:0}
.tool-history-list li{border-bottom:1px solid var(--rule)}
.tool-history-table-caption,.tool-history-list summary{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.25fr) minmax(5rem,8rem);gap:4px 14px;align-items:center;padding:9px 24px 9px 9px}
.tool-history-table-caption{background:var(--soft);border-radius:6px;color:var(--muted);font-size:12px;font-weight:650}
.tool-history-list summary{list-style:none;cursor:pointer;position:relative;min-height:56px}
.tool-history-list summary:hover,.tool-history-list details[open] summary{background:var(--soft)}
.tool-history-list summary::after{content:'⌄';position:absolute;right:8px;top:50%;transform:translateY(-50%);color:var(--muted)}
.tool-history-list details[open] summary::after{content:'⌃'}
.tool-history-tool{display:grid;gap:2px}
.tool-history-tool strong{font-size:14px;font-weight:700}
.tool-history-tool time,.tool-history-subline{color:var(--muted);font-size:12px}
.tool-history-tool time{font-variant-numeric:tabular-nums}
.tool-history-subline{display:flex;flex-wrap:wrap;gap:2px 7px;align-items:baseline}
.tool-history-server::before{content:'· '}
.tool-history-credential{flex-basis:100%;color:var(--ink);font-weight:600}
.tool-history-credential[data-kind=unknown]{font-weight:400;color:var(--muted)}
.tool-history-result{justify-self:start;max-width:100%;overflow-wrap:anywhere;border-radius:4px;background:#e9f4ee;color:var(--accent);font-size:12px;padding:2px 7px}
.tool-history-result[data-error=true]{background:#f9eeee;color:#942631}
.tool-history-details{background:#f8fafb;padding:12px;margin-bottom:8px;border-radius:0 0 7px 7px}
.tool-history-details dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 12px;margin:0}
.tool-history-details dd{margin:0}.tool-history-details dt,.tool-history-details small{color:var(--muted)}
.tool-history-details small{display:block}
.tool-history-details pre{white-space:pre-wrap;max-width:100%;overflow-wrap:anywhere;margin:8px 0 0;font-size:12px}
.tool-history-error{margin:8px 0;color:#942631}
.tool-history-empty{margin:0;padding:24px 12px;text-align:center;color:var(--muted);background:var(--soft);border-radius:7px}
.tool-history-more{margin-top:12px}
@container tool-history (max-width:570px){
  .tool-history .tool-history-bar{margin-bottom:10px}
  .tool-history-controls{padding:9px 10px;margin-bottom:16px}
  .tool-history .tool-history-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tool-history .tool-history-primary label:has(select[aria-label="자격증명"]){grid-column:1/-1;grid-row:2}
  .tool-history-table-caption{display:none}
  .tool-history-list summary{grid-template-columns:minmax(0,1fr) minmax(4.5rem,24%);gap:3px 8px;padding:9px 20px 9px 4px}
  .tool-history-tool{grid-column:1;grid-row:1}
  .tool-history-subline{grid-column:1;grid-row:2}
  .tool-history-result{grid-column:2;grid-row:1/span 2}
}
@container tool-history (max-width:300px){
  .tool-history .tool-history-fields{grid-template-columns:minmax(0,1fr)}
  .tool-history .tool-history-primary label:has(select[aria-label="자격증명"]){grid-row:auto}
}
.tool-history--embedded .tool-history-bar{display:none}
body:has(.embedded-app-window[aria-hidden="false"] .tool-history--embedded) .app-tool-history:not(.pc-embedded-admin-app)>main.tool-history{display:none}

.tool-history-credential-note{font-size:12px;font-weight:400;line-height:1.35}
