:root {
  --ink: #111318;
  --paper: #f5f2ea;
  --blue: #2952e3;
  --acid: #ffe000;
  --line: #cfd3da;
  --muted: #666d7a;
  --green: #21a366;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.agent-page { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
.agent-page::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .38; background-image: linear-gradient(rgba(17,19,24,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,24,.05) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.agent-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.agent-topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.agent-brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.agent-brand span { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: white; }
.agent-brand img { width: 100%; height: 100%; object-fit: cover; }
.agent-brand b { font-size: 16px; }
.agent-topbar nav { display: flex; gap: 24px; }
.agent-topbar nav a { color: inherit; font-weight: 700; font-size: 14px; text-underline-offset: 5px; }
.agent-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; padding: 70px 0 40px; }
.agent-kicker { margin: 0 0 16px; color: var(--blue); font-weight: 900; letter-spacing: .12em; font-size: 12px; }
.agent-hero h1 { margin: 0; font-size: clamp(3.2rem, 6.8vw, 6.4rem); line-height: .92; letter-spacing: -.075em; }
.agent-hero h1 span { color: var(--blue); }
.agent-lead { max-width: 790px; margin: 28px 0 0; color: #505762; font-size: 18px; line-height: 1.75; }
.agent-purpose { align-self: end; background: var(--ink); color: white; padding: 28px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 10px 10px 0 var(--acid); }
.agent-purpose > span { color: var(--acid); font-weight: 900; letter-spacing: .12em; font-size: 12px; }
.agent-purpose strong { font-size: 27px; line-height: 1.18; }
.agent-purpose p { margin: 0; color: #bec3cc; line-height: 1.55; font-size: 14px; }
.agent-flow { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: white; }
.agent-flow article { display: flex; gap: 16px; align-items: center; padding: 20px 22px; }
.agent-flow article + article { border-left: 1px solid var(--ink); }
.agent-flow article > b { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; background: var(--acid); }
.agent-flow article div { display: grid; gap: 5px; }
.agent-flow article strong { font-size: 15px; }
.agent-flow article span { color: var(--muted); font-size: 12px; }
.pac-baseline { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; margin-top: 16px; padding: 18px 22px; border: 1px solid var(--blue); background: #eef3ff; }
.pac-baseline b { color: var(--blue); font-size: 18px; }
.pac-baseline p { margin: 0; color: #3d4657; font-size: 13px; line-height: 1.65; }
.quota-notice { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 16px; padding: 18px 22px; border: 2px solid #9b2c1f; background: #fff0e8; box-shadow: 6px 6px 0 #9b2c1f; }
.quota-notice[hidden] { display: none; }
.quota-notice > span { color: #9b2c1f; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.quota-notice div { display: grid; gap: 4px; }
.quota-notice b { font-size: 18px; }
.quota-notice p { margin: 0; color: #6f4037; font-size: 12px; line-height: 1.55; }
.quota-notice time { min-width: 190px; padding: 11px 13px; border: 1px solid #9b2c1f; color: #7d2419; background: white; font-size: 12px; font-weight: 900; text-align: center; }
.receipt-lookup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr); gap: 28px; align-items: center; margin-top: 16px; padding: 22px; border: 1px solid var(--ink); background: white; }
.receipt-lookup > div > span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.receipt-lookup h2 { margin: 5px 0 4px; font-size: 23px; letter-spacing: -.03em; }
.receipt-lookup p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.receipt-lookup form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.receipt-lookup input { min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-right: 0; border-radius: 0; font: 800 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; outline: none; }
.receipt-lookup input:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.receipt-lookup button { min-height: 48px; padding: 0 17px; border: 2px solid var(--ink); background: var(--acid); font-weight: 900; cursor: pointer; }
.receipt-lookup form p { grid-column: 1 / -1; min-height: 17px; margin-top: 6px; color: #b42318; font-weight: 700; }
.local-resume { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid #b5c2ed; background: #eef2ff; }
.local-resume > div:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; align-items: center; }
.local-resume > div:first-child > span { padding: 5px 7px; color: white; background: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.local-resume b { font-size: 14px; }
.local-resume code { grid-column: 1 / -1; color: var(--blue); font: 900 14px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.local-resume small { grid-column: 1 / -1; color: #64708b; font-size: 10px; line-height: 1.5; }
.local-resume > div:last-child { display: flex; gap: 8px; }
.receipt-lookup .local-resume button { min-height: 40px; padding: 0 12px; border-width: 1px; background: white; font-size: 11px; }
.receipt-lookup .local-resume button:first-child { color: white; background: var(--blue); }
.agent-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); margin-top: 22px; border: 1px solid var(--ink); background: white; min-height: 720px; }
.agent-input-panel { padding: 34px; border-right: 1px solid var(--ink); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading span { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.panel-heading h2 { margin: 7px 0 0; font-size: 32px; letter-spacing: -.04em; }
.panel-heading .not-chat { color: white; background: var(--ink); padding: 9px 12px; letter-spacing: 0; }
.panel-title-row { position: relative; display: flex; gap: 10px; align-items: center; }
.record-help { position: relative; margin-top: 8px; z-index: 3; }
.record-help summary { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--ink); border-radius: 50%; color: white; background: var(--blue); font-size: 14px; font-weight: 900; cursor: pointer; list-style: none; user-select: none; }
.record-help summary::-webkit-details-marker { display: none; }
.record-help[open] summary { color: var(--ink); background: var(--acid); }
.record-help div { position: absolute; left: 34px; top: -8px; width: min(390px, calc(100vw - 80px)); padding: 15px 17px; border: 1px solid var(--ink); background: white; box-shadow: 6px 6px 0 var(--ink); }
.record-help b { display: block; font-size: 13px; }
.record-help p { margin: 6px 0 0; color: #555d6a; font-size: 12px; line-height: 1.55; }
.record-rule { margin: 24px 0 14px; padding: 16px 18px; border-left: 5px solid var(--acid); background: #f4f5f7; }
.record-rule b { font-size: 12px; }
.record-rule p { margin: 5px 0 0; color: #555d6a; font-size: 13px; line-height: 1.6; }
.activation-field { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 14px; padding: 15px 17px; border: 1px solid var(--ink); background: #fff8c8; }
.activation-field > span { display: grid; gap: 4px; }
.activation-field small { color: #66604a; font-size: 11px; }
.activation-field input { min-width: 170px; height: 42px; padding: 0 11px; border: 1px solid var(--ink); background: white; }
.porting-field { margin: 0 0 14px; padding: 16px 17px 17px; border: 1px solid var(--ink); background: #eef3ff; }
.porting-field legend { padding: 0 7px; font-size: 13px; font-weight: 900; }
.porting-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.porting-option { position: relative; cursor: pointer; }
.porting-option input { position: absolute; opacity: 0; pointer-events: none; }
.porting-option span { display: grid; min-height: 76px; align-content: center; gap: 5px; padding: 12px 14px; border: 1px solid #aeb9d5; background: white; transition: .16s ease; }
.porting-option b { font-size: 14px; }
.porting-option small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.porting-option input:checked + span { border: 2px solid var(--blue); padding: 11px 13px; background: var(--blue); color: white; box-shadow: 3px 3px 0 var(--ink); }
.porting-option input:checked + span small { color: #dfe6ff; }
.porting-option input:focus-visible + span { outline: 3px solid var(--acid); outline-offset: 2px; }
#porting-strategy { margin: 13px 0 0; padding: 10px 12px; border-left: 4px solid var(--blue); background: rgba(255,255,255,.72); color: #414a5b; font-size: 12px; line-height: 1.55; }
.porting-field[data-stage="completed"] { background: #fff4b8; }
.porting-field[data-stage="completed"] #porting-strategy { border-left-color: #d19500; color: #3f3000; font-weight: 700; }
#transcript { display: block; width: 100%; min-height: 390px; resize: vertical; border: 2px solid var(--ink); border-radius: 0; padding: 20px; background: #fbfbfb; color: var(--ink); font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; outline: none; }
#transcript:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(41,82,227,.12); background: white; }
#transcript::placeholder { color: #9aa0aa; }
.input-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.complete-check { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 18px; cursor: pointer; }
.complete-check input { width: 20px; height: 20px; accent-color: var(--blue); }
.complete-check span { display: grid; gap: 4px; }
.complete-check b { font-size: 14px; }
.complete-check small { color: var(--muted); }
.submit-job { width: 100%; min-height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border: 1px solid var(--ink); background: var(--blue); color: white; font-size: 16px; font-weight: 900; cursor: pointer; box-shadow: 6px 6px 0 var(--ink); }
.submit-job:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.submit-job:disabled { cursor: not-allowed; opacity: .38; box-shadow: none; }
.submit-job b { font-size: 24px; }
.submit-error { min-height: 20px; margin: 14px 0 0; color: #b42318; font-size: 13px; font-weight: 700; }
.queue-panel { padding: 32px; background: var(--ink); color: white; }
.queue-idle, .queue-active { position: sticky; top: 22px; }
.queue-orbit { display: block; position: relative; width: 88px; height: 88px; margin-bottom: 80px; border: 1px solid #4c515c; border-radius: 50%; animation: orbit-spin 5s linear infinite; }
.queue-orbit::before, .queue-orbit::after { content: ""; position: absolute; border: 1px solid #3c414b; border-radius: 50%; }
.queue-orbit::before { inset: -20px; }
.queue-orbit::after { inset: -40px; }
.queue-orbit i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--acid); top: -8px; left: 35px; box-shadow: 0 0 30px var(--acid); }
.queue-idle > p, .queue-label { margin: 0 0 10px; color: var(--acid); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.queue-idle > strong, .queue-active > strong { display: block; font-size: 30px; line-height: 1.14; }
.queue-active > strong { font-size: 27px; }
.queue-idle > small { display: block; margin-top: 15px; color: #abb1bb; line-height: 1.65; }
.queue-idle dl { margin: 32px 0 0; border-top: 1px solid #3c414b; }
.queue-idle dl div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #3c414b; font-size: 13px; }
.queue-idle dt { color: #8e95a1; }
.queue-idle dd { margin: 0; font-weight: 900; }
.queue-number { margin: 60px 0 28px; }
.queue-number span { display: block; color: #969daa; font-size: 12px; }
.queue-number b { display: block; margin-top: 2px; color: var(--acid); font-size: 100px; line-height: 1; letter-spacing: -.08em; }
.queue-active > p:not(.queue-label) { color: #b7bdc7; line-height: 1.6; }
.queue-track { height: 5px; margin: 35px 0 18px; background: #3d424c; overflow: hidden; }
.queue-track i { display: block; width: 25%; height: 100%; background: var(--acid); transition: width .4s ease; }
.queue-active code { color: #777f8d; font-size: 10px; word-break: break-all; }
.receipt-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; margin: 28px 0 0; padding: 15px; border: 1px solid #565d69; background: #1b1e24; }
.receipt-card > span { grid-column: 1 / -1; color: #9ba3af; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.receipt-card strong { align-self: center; color: var(--acid); font: 900 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.receipt-card button { align-self: center; padding: 8px 10px; border: 1px solid var(--acid); color: var(--acid); background: transparent; font-size: 11px; font-weight: 900; cursor: pointer; }
.receipt-card small { grid-column: 1 / -1; color: #969daa; font-size: 10px; line-height: 1.45; }
.queue-active .queue-number { margin: 28px 0 16px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.queue-active .queue-number b { margin: 0; font-size: 64px; }
.generation-flow { position: relative; height: 74px; margin: 24px 0 16px; overflow: hidden; border: 1px solid #3d434d; background: linear-gradient(90deg, #15181d, #1c2027); }
.generation-flow i { position: absolute; left: -45%; width: 45%; height: 2px; background: linear-gradient(90deg, transparent, var(--acid), transparent); box-shadow: 0 0 15px rgba(255,224,0,.55); animation: data-flow 2.8s linear infinite; }
.generation-flow i:nth-child(1) { top: 18px; }
.generation-flow i:nth-child(2) { top: 36px; animation-delay: -.95s; }
.generation-flow i:nth-child(3) { top: 54px; animation-delay: -1.9s; }
.generation-flow span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px var(--acid); animation: pulse-node 1.35s ease-in-out infinite; }
.generation-flow span:nth-of-type(1) { left: 17%; top: 15px; }
.generation-flow span:nth-of-type(2) { left: 52%; top: 33px; animation-delay: -.45s; }
.generation-flow span:nth-of-type(3) { right: 16%; top: 51px; animation-delay: -.9s; }
.queue-active[data-status="queued"] .generation-flow { opacity: .58; }
.queue-active[data-status="completed"] .generation-flow i { animation-play-state: paused; left: 55%; }
.generation-stage { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid #343a44; border-bottom: 1px solid #343a44; }
.generation-stage span { color: var(--acid); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.generation-stage b { font-size: 17px; }
.generation-stage small { color: #9199a5; line-height: 1.45; }
.queue-active[data-status="processing"] .queue-track i { width: 72%; animation: working-track 2.2s ease-in-out infinite alternate; }
.agent-result { margin-top: 22px; border: 1px solid var(--ink); background: white; }
.new-round { padding: 14px 18px; border: 1px solid var(--ink); background: var(--acid); font-weight: 900; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.chinese-output span { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.chinese-output p { margin: 8px 0 0; color: #4f5662; line-height: 1.65; font-size: 14px; }
.english-output { padding: 32px; }
.output-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.output-language { display: flex; gap: 12px; align-items: center; }
.output-language span { background: var(--ink); color: white; padding: 8px; font-weight: 900; }
.output-language b { display: block; font-size: 22px; }
.output-language small { display: block; margin-top: 5px; color: var(--muted); font-weight: 800; }
.reply-actions { display: flex; gap: 10px; }
.reply-actions button, .reply-actions a { padding: 14px 17px; border: 1px solid var(--ink); font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; }
.reply-actions button { background: var(--acid); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.reply-actions a { background: var(--blue); color: white; }
.english-output pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; padding: 28px; border: 1px solid var(--ink); background: #f6f7f9; font: 14px/1.75 Arial, sans-serif; }
.chinese-output { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chinese-output > div { padding: 24px 30px; }
.chinese-output > div + div { border-left: 1px solid var(--line); }
.new-round { margin: 26px 32px 32px; background: white; }
.refund-confirmed-follow { scroll-margin-top: 20px; margin-top: 22px; border: 1px solid var(--ink); background: white; }
.confirmed-follow-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 30px 32px; color: white; background: var(--ink); }
.confirmed-follow-heading > div > span { color: #7ee0ae; font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.confirmed-follow-heading h2 { margin: 7px 0 9px; font-size: clamp(28px, 4vw, 46px); line-height: 1.03; letter-spacing: -.045em; }
.confirmed-follow-heading p { max-width: 760px; margin: 0; color: #bec4ce; font-size: 13px; line-height: 1.65; }
.confirmed-follow-heading > strong { display: grid; place-items: center; min-width: 142px; min-height: 116px; border: 1px solid #6b737f; background: #20242b; }
.confirmed-follow-heading > strong b { color: #7ee0ae; font-size: 52px; line-height: 1; }
.confirmed-follow-heading > strong span { color: white; font-size: 12px; }
.confirmed-follow-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.confirmed-follow-steps article { display: grid; gap: 7px; padding: 20px 24px; }
.confirmed-follow-steps article + article { border-left: 1px solid var(--line); }
.confirmed-follow-steps b { color: var(--green); font-size: 13px; }
.confirmed-follow-steps span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.confirmed-follow-template { padding: 28px 32px 32px; }
.confirmed-follow-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.confirmed-follow-toolbar > div:first-child { display: flex; align-items: center; gap: 11px; }
.confirmed-follow-toolbar > div:first-child span { padding: 8px; color: white; background: var(--green); font-weight: 900; }
.confirmed-follow-toolbar > div:first-child b { font-size: 19px; }
.confirmed-follow-toolbar > div:last-child { display: flex; gap: 10px; }
.confirmed-follow-toolbar button, .confirmed-follow-toolbar a { padding: 13px 16px; border: 1px solid var(--ink); font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; }
.confirmed-follow-toolbar button { color: var(--ink); background: var(--acid); box-shadow: 3px 3px 0 var(--ink); }
.confirmed-follow-toolbar a { color: white; background: var(--blue); }
.confirmed-follow-template pre { margin: 0; padding: 25px; border: 1px solid var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f7f9; font: 14px/1.72 Arial, sans-serif; }
.confirmed-follow-template > p { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.ombudsman-builder { margin: 0 32px 30px; border: 2px solid var(--ink); background: #f8f8f5; }
.ombudsman-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 25px; padding: 25px; color: white; background: var(--ink); }
.ombudsman-heading span { color: var(--acid); font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.ombudsman-heading h3 { margin: 8px 0; font-size: 28px; }
.ombudsman-heading p { margin: 0; color: #bec4ce; line-height: 1.55; }
.ombudsman-heading address { align-self: center; padding: 14px; border: 1px solid #505661; font-style: normal; }
.ombudsman-heading address small { display: block; color: #9ba2ae; }
.ombudsman-heading address strong { display: block; margin-top: 5px; color: var(--acid); }
.missing-details { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr); gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); }
.missing-details h4 { margin: 7px 0; font-size: 20px; }
.missing-details > div > span { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.missing-details p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.missing-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.missing-fields-grid:empty::after { content: "记录中的必要信息已经齐全，请直接核对邮件。"; grid-column: 1 / -1; padding: 16px; background: #dff4e9; color: #087443; font-size: 13px; }
.missing-fields-grid label { display: grid; gap: 5px; font-size: 11px; font-weight: 800; }
.missing-fields-grid input { height: 40px; padding: 0 10px; border: 1px solid var(--ink); }
.ombudsman-preview { display: grid; gap: 14px; padding: 24px; }
.ombudsman-preview label { display: grid; gap: 7px; color: var(--blue); font-size: 11px; font-weight: 900; }
.ombudsman-preview input, .ombudsman-preview textarea { width: 100%; border: 1px solid var(--ink); padding: 12px; background: white; color: var(--ink); font: 13px/1.65 Arial, sans-serif; }
.ombudsman-preview textarea { min-height: 320px; resize: vertical; }
.ombudsman-error { min-height: 18px; margin: 0 24px; color: #b42318; font-size: 12px; }
.ombudsman-actions { display: flex; gap: 12px; padding: 12px 24px 24px; }
.ombudsman-actions button, .ombudsman-actions a { flex: 1; padding: 15px; border: 1px solid var(--ink); font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; }
.ombudsman-actions button { background: var(--acid); }
.ombudsman-actions button:disabled, .ombudsman-actions a[aria-disabled="true"] { opacity: .38; pointer-events: none; }
.ombudsman-actions a { color: white; background: var(--blue); }
.ombudsman-note { margin: 0; padding: 13px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.55; }
.ombudsman-note a { color: var(--blue); font-weight: 800; }
.agent-boundary { display: grid; grid-template-columns: 280px 1fr; gap: 30px; margin: 22px 0; padding: 28px 32px; border: 1px solid var(--ink); background: var(--acid); }
.agent-boundary strong { font-size: 24px; }
.agent-boundary p { margin: 0; line-height: 1.7; }
.agent-memory { display: grid; grid-template-columns: 190px 320px 1fr; gap: 24px; align-items: start; margin: 22px 0; padding: 26px 30px; border: 1px solid var(--ink); background: white; }
.agent-memory span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.agent-memory strong { font-size: 20px; }
.agent-memory p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.agent-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0 50px; color: var(--muted); font-size: 12px; }
.agent-footer a { color: var(--muted); }
.agent-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; background: var(--ink); color: white; opacity: 0; pointer-events: none; transition: .2s ease; }
.agent-toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes data-flow { to { left: 105%; } }
@keyframes pulse-node { 0%, 100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes working-track { from { transform: translateX(-20%); } to { transform: translateX(28%); } }
@media (max-width: 820px) {
  .agent-hero, .agent-workspace { grid-template-columns: 1fr; }
  .agent-purpose { min-height: 210px; }
  .agent-flow { grid-template-columns: 1fr; }
  .agent-flow article + article { border-left: 0; border-top: 1px solid var(--ink); }
  .pac-baseline { grid-template-columns: 1fr; gap: 7px; }
  .quota-notice { grid-template-columns: 1fr; gap: 8px; }
  .quota-notice time { min-width: 0; text-align: left; }
  .receipt-lookup { grid-template-columns: 1fr; gap: 14px; }
  .local-resume { grid-template-columns: 1fr; }
  .agent-input-panel { border-right: 0; border-bottom: 1px solid var(--ink); padding: 24px 18px; }
  .queue-panel { min-height: 420px; }
  .queue-idle, .queue-active { position: static; }
  .chinese-output { grid-template-columns: 1fr; }
  .chinese-output > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .output-toolbar { align-items: flex-start; flex-direction: column; }
  .confirmed-follow-heading { grid-template-columns: 1fr; }
  .confirmed-follow-heading > strong { width: 142px; }
  .confirmed-follow-steps { grid-template-columns: 1fr; }
  .confirmed-follow-steps article + article { border-left: 0; border-top: 1px solid var(--line); }
  .confirmed-follow-toolbar { align-items: flex-start; flex-direction: column; }
  .agent-boundary { grid-template-columns: 1fr; }
  .agent-memory, .missing-details { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .agent-shell { width: min(100% - 20px, 1180px); }
  .agent-topbar nav { display: none; }
  .agent-hero { padding-top: 42px; }
  .agent-hero h1 { font-size: 3.35rem; }
  .agent-lead { font-size: 15px; }
  .panel-heading { display: grid; }
  .panel-heading .not-chat { justify-self: start; }
  .activation-field { display: grid; }
  .activation-field input { width: 100%; }
  .porting-options { grid-template-columns: 1fr; }
  #transcript { min-height: 360px; }
  .input-footer { display: grid; }
  .english-output { padding: 18px; }
  .english-output pre { padding: 18px; }
  .reply-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .confirmed-follow-heading, .confirmed-follow-template { padding: 22px 18px; }
  .confirmed-follow-toolbar > div:last-child { width: 100%; display: grid; grid-template-columns: 1fr; }
  .confirmed-follow-template pre { padding: 18px; }
  .ombudsman-builder { margin-inline: 18px; }
  .ombudsman-heading { grid-template-columns: 1fr; }
  .missing-fields-grid { grid-template-columns: 1fr; }
  .ombudsman-actions { display: grid; }
  .receipt-lookup form { grid-template-columns: 1fr; }
  .receipt-lookup input { border-right: 2px solid var(--ink); border-bottom: 0; }
  .local-resume > div:last-child { display: grid; grid-template-columns: 1fr; }
  .record-help div { left: auto; right: -10px; top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .queue-orbit, .generation-flow i, .generation-flow span, .queue-active[data-status="processing"] .queue-track i { animation: none; }
}
