.back-home { color: var(--muted); font-size: 12px; }
.back-home:hover, .breadcrumbs a:hover { color: var(--blue); }
.tool-main { padding-top: 30px; padding-bottom: 65px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.breadcrumbs > span:last-child { color: var(--text); }
.tool-intro { display: flex; align-items: center; gap: 20px; margin: 36px 0; }
.tool-heading-icon { display: grid; place-items: center; width: 68px; height: 68px; flex-shrink: 0; color: var(--blue); background: var(--blue-soft); border: 1px solid var(--border); border-radius: 20px; }
.tool-heading-icon .icon { width: 29px; height: 29px; }
.tool-category { color: var(--blue); font-size: 9px; letter-spacing: 2px; font-weight: 600; }
.tool-intro h1 { font-size: 29px; font-weight: 600; letter-spacing: -.5px; margin: 8px 0 9px; }
.tool-intro p { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.8; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.workspace-panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading > div { display: flex; align-items: center; gap: 10px; }
.step-label { color: var(--subtle); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.local-badge { color: var(--blue); background: var(--blue-soft); border-radius: 20px; padding: 5px 9px; font-size: 10px; }
.panel-description { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 18px 0 20px; }
.input-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--background); border: 1px solid var(--border); border-bottom: none; border-radius: 10px 10px 0 0; }
.input-toolbar > span { color: var(--subtle); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; letter-spacing: 1px; }
.input-toolbar > div { display: flex; gap: 17px; }
.text-button { border: none; padding: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 11px; }
.muted-button { color: var(--muted); }
.credential-input { display: block; width: 100%; min-height: 270px; resize: vertical; border: 1px solid var(--border); border-radius: 0 0 10px 10px; background: var(--surface); color: var(--text); padding: 18px; outline: none; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.credential-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.credential-input::placeholder { color: var(--subtle); }
.input-status { margin-top: 11px; color: var(--subtle); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.input-status[data-state="error"] { color: #cc5757; }
.input-status[data-state="ready"] { color: var(--blue); }
.account-preview { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-top: 18px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.preview-heading strong { color: var(--blue); font-size: 11px; font-weight: 550; }
.account-row { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid var(--border); padding: 11px 0 2px; margin-top: 8px; }
.account-row input { margin: 3px 0 0; accent-color: var(--blue); width: 14px; height: 14px; flex-shrink: 0; }
.account-row label { min-width: 0; flex: 1; cursor: pointer; }
.account-row strong { display: block; font-size: 12px; font-weight: 500; word-break: break-all; }
.account-row small { display: block; font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 4px; }
.account-row:has(input:disabled) { opacity: .65; }
.ignored-note { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.submit-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }
.input-actions { display: flex; flex-wrap: wrap; margin-left: auto; gap: 10px; }
.input-actions button { padding: 11px 12px; }
.submit-row > span { color: var(--subtle); font-size: 11px; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 9px; font-size: 12px; font-weight: 550; line-height: 1.3; cursor: pointer; border: 1px solid transparent; transition: background .2s; }
.primary-button { background: #5277af; color: #fff; }
.primary-button:hover { background: #42659c; }
.primary-button .icon { width: 15px; height: 15px; }
.secondary-button { background: var(--surface); color: var(--muted); border-color: var(--border); }
.secondary-button:hover { color: var(--text); background: var(--background); }
.danger-button { background: #be5555; color: #fff; }
.danger-button:hover { background: #a84343; }
button:disabled { opacity: .45; cursor: not-allowed; }
.guide-panel { padding: 27px 21px; }
.guide-eyebrow { color: var(--subtle); font-size: 9px; letter-spacing: 2px; }
.guide-panel h2 { font-size: 18px; line-height: 1.6; margin-top: 12px; }
.guide-steps { list-style: none; margin: 25px 0 28px; padding: 0; }
.guide-steps li { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; }
.guide-steps li > span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--border); border-radius: 7px; color: var(--blue); font-size: 10px; flex-shrink: 0; background: var(--surface); }
.guide-steps strong { display: block; font-size: 12px; font-weight: 550; padding-top: 3px; }
.guide-steps p, .privacy-note p { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 7px 0 0; }
.privacy-note { border-top: 1px solid var(--border); padding-top: 21px; }
.privacy-note strong { font-size: 11px; font-weight: 550; }
.scope-note { color: var(--muted); font-size: 10px; line-height: 1.9; margin: 18px 0; }
.docs-link { font-size: 10px; color: var(--blue); }
.progress-panel { margin-top: 24px; }
#progress-percent { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.progress-bar { display: block; appearance: none; border: 0; width: 100%; height: 5px; border-radius: 5px; margin: 22px 0 16px; background: var(--border); overflow: hidden; }
.progress-bar::-webkit-progress-bar { background: var(--border); border-radius: 5px; }
.progress-bar::-webkit-progress-value { background: #5277af; border-radius: 5px; transition: width .3s; }
.progress-bar::-moz-progress-bar { background: #5277af; border-radius: 5px; }
.progress-summary { font-size: 12px; color: var(--muted); line-height: 1.8; }
.progress-account { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 18px; }
.progress-account h3 { font-size: 12px; font-weight: 550; margin-bottom: 13px; letter-spacing: 0; overflow-wrap: anywhere; }
.execution-steps { list-style: none; margin: 0; padding: 0; }
.execution-steps li { display: flex; gap: 11px; padding: 9px 0; align-items: flex-start; }
.execution-steps .step-icon { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--border); border-radius: 50%; color: var(--subtle); font-size: 10px; flex-shrink: 0; margin-top: 1px; }
.execution-steps strong { font-size: 11px; font-weight: 500; display: block; line-height: 1.8; }
.execution-steps p { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 3px 0 0; word-break: break-word; }
.execution-steps [data-status="running"] .step-icon { border-color: var(--blue); color: var(--blue); }
.execution-steps [data-status="done"] .step-icon { border-color: #6b9b802f; color: #5b9777; background: #6b9b8010; }
.execution-steps [data-status="warning"] .step-icon { border-color: #c18a463f; color: #b78243; background: #c18a4610; }
.execution-steps [data-status="error"] .step-icon { border-color: #be55553f; color: #be5555; background: #be555510; }
.result-banner { padding: 15px 17px; border-radius: 10px; font-size: 12px; line-height: 1.9; margin-top: 24px; background: var(--blue-soft); color: var(--blue); white-space: pre-line; overflow-wrap: anywhere; }
.result-banner[data-status="warning"] { background: #c18a4612; color: #ae7a3e; }
.result-banner[data-status="error"] { background: #be555510; color: #be5555; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.result-actions:empty { display: none; }
.recovery-note { color: var(--muted); font-size: 11px; line-height: 1.9; }
.confirmation-dialog { width: min(440px, calc(100% - 40px)); max-height: calc(100svh - 40px); overflow-y: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 19px; padding: 30px; box-shadow: 0 20px 100px #0003; }
.confirmation-dialog::backdrop { background: #11192770; backdrop-filter: blur(3px); }
.dialog-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #be555510; color: #be5555; border-radius: 13px; margin-bottom: 22px; }
.confirmation-dialog h2 { font-size: 19px; margin-bottom: 14px; }
.confirmation-dialog p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.dialog-accounts { border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; max-height: 150px; overflow-y: auto; font-size: 11px; color: var(--muted); line-height: 2; overflow-wrap: anywhere; }
.dialog-note { font-size: 11px !important; margin: 16px 0; }
.confirm-checkbox { display: flex; gap: 9px; align-items: flex-start; font-size: 11px; line-height: 1.8; margin: 21px 0; cursor: pointer; }
.confirm-checkbox input { margin: 3px 0 0; accent-color: #be5555; flex-shrink: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-message { margin: 20px; text-align: center; font-size: 14px; }
[hidden] { display: none !important; }
@media (max-width: 960px) { .workspace-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; } .workspace-panel { padding: 23px; } .guide-panel { padding: 24px 10px; } }
@media (max-width: 760px) {
  .workspace-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-main { padding-top: 22px; }
  .tool-intro { margin: 28px 0; gap: 14px; }
  .tool-heading-icon { width: 49px; height: 49px; border-radius: 14px; }
  .tool-heading-icon .icon { width: 24px; height: 24px; }
  .tool-intro h1 { font-size: 23px; margin: 6px 0 7px; }
  .tool-intro p { font-size: 11px; }
  .workspace-panel { padding: 21px; border-radius: 14px; }
  .guide-panel { padding: 20px 4px 0; }
  .guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
  .guide-steps li { margin: 0; gap: 9px; }
  .privacy-note { padding-top: 16px; }
  .submit-row > span { font-size: 10px; }
  .input-actions { width: 100%; }
  .input-actions button { flex: 1; font-size: 11px; }
  .credential-input { min-height: 240px; }
  .back-home { font-size: 11px; }
  .header-actions { gap: 14px; }
}
@media (max-width: 380px) {
  .tool-intro h1 { font-size: 20px; }
  .tool-heading-icon { display: none; }
  .workspace-panel { padding: 17px; }
  .panel-heading h2 { font-size: 13px; }
  .local-badge { font-size: 9px; padding: 4px 7px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .guide-steps { grid-template-columns: 1fr; }
  .confirmation-dialog { padding: 23px; }
  .dialog-actions { flex-direction: column-reverse; }
}
