.aibrc-sign-tool { max-width: 760px; margin: 1rem 0 1.6rem; }
.aibrc-sign-tool, .aibrc-sign-tool * { box-sizing: border-box; }
.aibrc-sign-tool .sign-version, .aibrc-sign-tool small { color: var(--md-default-fg-color--light); font-size: .7rem; }
.aibrc-sign-tool label { display: block; margin: 1rem 0 .4rem; }
.aibrc-sign-tool input, .aibrc-sign-tool select, .aibrc-sign-tool button { font: inherit; border: 1px solid #4b4e57; border-radius: 5px; }
.aibrc-sign-tool input:not([type=checkbox]), .aibrc-sign-tool select { background: #1c1e23; color: #f0f0f2; padding: .6rem; width: 100%; min-width: 0; }
.aibrc-sign-tool input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.aibrc-sign-tool .sign-inline { display: flex; gap: 9px; align-items: center; font-size: .75rem; margin-top: .6rem; }
.aibrc-sign-tool button { cursor: pointer; padding: .55rem .8rem; background: #e0e2e8; color: #111214; margin-top: .7rem; }
.aibrc-sign-tool button:disabled { opacity: .4; cursor: default; }
.aibrc-sign-tool :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.aibrc-sign-tool small { display: block; margin-top: .4rem; }
.aibrc-sign-tool #sign-confirmation, .aibrc-sign-tool .result { margin-top: 1.2rem; border-top: 1px solid #35363b; padding-top: .6rem; }
.aibrc-sign-tool pre { font: .7rem/1.7 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.aibrc-sign-tool .mono { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.aibrc-sign-tool [data-error=true] { color: #f2b4ab; }
.aibrc-sign-tool .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.aibrc-sign-tool [hidden] { display: none !important; }

/* Batch controls are scoped to the existing documentation tool. */
.aibrc-sign-tool #batch-mode textarea { display: block; width: 100%; min-width: 0; resize: vertical; background: #1c1e23; color: #f0f0f2; padding: .6rem; border: 1px solid #4b4e57; border-radius: 5px; font: .7rem/1.6 ui-monospace, monospace; }
.aibrc-sign-tool #batch-mode textarea:disabled { opacity: .55; }
.aibrc-sign-tool .mode-tabs { display: flex; gap: .4rem; margin: .8rem 0; }
.aibrc-sign-tool .mode-tabs button[aria-selected=false], .aibrc-sign-tool #batch-mode button[aria-pressed=false] { background: #1c1e23; color: #e2e3e6; }
.aibrc-sign-tool #batch-confirmation { border-top: 1px solid #35363b; margin-top: 1.2rem; padding-top: .6rem; }
.aibrc-sign-tool #batch-previous { border-top: 1px solid #35363b; margin-top: 1.2rem; padding-top: .8rem; }
.aibrc-sign-tool #batch-previous summary { cursor: pointer; }
