:root { color-scheme: light; font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif; --ink: #182220; --muted: #66736f; --surface: rgba(247, 249, 248, 0.97); --line: rgba(23, 55, 47, 0.13); --accent: #0f8a70; --danger: #b43d3d; } * { box-sizing: border-box; } html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: transparent; } button, textarea { font: inherit; } .pet-shell { position: relative; width: 100%; height: 100%; pointer-events: none; } .pet-anchor { position: absolute; right: 10px; bottom: 4px; width: 150px; height: 172px; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; -webkit-app-region: no-drag; } .pet-drag-handle { position: absolute; right: 16px; bottom: 158px; z-index: 4; display: grid; place-items: center; width: 42px; height: 19px; border: 1px solid rgba(255, 255, 255, 0.82); border-radius: 999px; color: rgba(24, 34, 32, 0.65); background: rgba(255, 255, 255, 0.88); box-shadow: 0 5px 16px rgba(23, 46, 39, 0.12); font-size: 10px; letter-spacing: 2px; cursor: move; opacity: 0.48; pointer-events: auto; -webkit-app-region: drag; transition: opacity 140ms ease, transform 140ms ease; } .pet-drag-handle:hover { opacity: 1; transform: translateY(-2px); } .sprite { position: absolute; right: 0; bottom: 0; width: 144px; aspect-ratio: 192 / 208; background-repeat: no-repeat; filter: drop-shadow(0 9px 8px rgba(20, 33, 29, 0.18)); transform-origin: 50% 88%; transition: filter 150ms ease, transform 150ms ease; } .pet-anchor:hover .sprite, .pet-anchor:focus-visible .sprite { filter: drop-shadow(0 12px 10px rgba(20, 33, 29, 0.24)); transform: translateY(-3px); } .pet-status { position: absolute; right: 84px; bottom: 132px; z-index: 2; max-width: 175px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 12px 12px 3px 12px; color: var(--ink); background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 24px rgba(23, 46, 39, 0.14); font-size: 12px; line-height: 1.25; opacity: 0; transform: translate(6px, 5px); transition: opacity 140ms ease, transform 140ms ease; white-space: nowrap; pointer-events: none; } .pet-anchor:hover .pet-status, .pet-anchor:focus-visible .pet-status, .pet-shell[data-panel="open"] .pet-status { opacity: 1; transform: translate(0, 0); } .assistant-panel { position: absolute; right: 24px; bottom: 166px; display: grid; grid-template-rows: auto auto minmax(96px, 1fr) auto auto; width: min(370px, calc(100% - 30px)); max-height: calc(100% - 184px); min-height: 330px; padding: 18px; border: 1px solid var(--line); border-radius: 22px 22px 8px 22px; background: var(--surface); box-shadow: 0 22px 70px rgba(19, 37, 32, 0.22); backdrop-filter: blur(20px); opacity: 0; transform: translateY(12px) scale(0.98); transform-origin: 92% 100%; transition: opacity 170ms ease, transform 170ms ease; pointer-events: none; } .pet-shell[data-panel="open"] .assistant-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; } .panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); cursor: move; -webkit-app-region: drag; } .panel-actions { display: flex; flex: none; align-items: center; gap: 7px; -webkit-app-region: no-drag; } .close-pet { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: rgba(80, 99, 93, 0.09); cursor: pointer; pointer-events: auto; -webkit-app-region: no-drag; } .close-pet:hover, .close-pet:focus-visible { color: #fff; background: var(--danger); } .eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; } h1, h2 { margin: 0; color: var(--ink); font-weight: 650; } h1 { max-width: 240px; font-size: 16px; line-height: 1.35; } h2 { font-size: 15px; } .context-scope { max-width: 260px; margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; } .context-scope[data-state="bound"] { color: #3e6258; } .context-scope[data-state="error"] { color: var(--danger); } .connection-state { flex: none; margin-top: 2px; padding: 4px 8px; border-radius: 999px; color: var(--muted); background: rgba(80, 99, 93, 0.09); font-size: 11px; } .connection-state[data-state="online"] { color: #086b56; background: rgba(15, 138, 112, 0.12); } .connection-state[data-state="error"] { color: var(--danger); background: rgba(180, 61, 61, 0.1); } .context-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 0 0; } .context-actions button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(15, 138, 112, 0.2); border-radius: 999px; color: #31534a; background: rgba(15, 138, 112, 0.07); font-size: 11px; cursor: pointer; } .context-actions button:hover, .context-actions button:focus-visible { border-color: rgba(15, 138, 112, 0.48); background: rgba(15, 138, 112, 0.13); } .context-actions button:disabled { opacity: 0.42; cursor: wait; } .context-actions button[hidden] { display: none; } .conversation { min-height: 90px; padding: 14px 2px; overflow-y: auto; scrollbar-width: thin; } .conversation p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; } .system-message { color: var(--muted); } .user-message { color: var(--ink); font-weight: 600; } .assistant-message { color: #34433f; } .error-message { color: var(--danger); } .plan-preview { margin: 0 -3px 12px; padding: 13px 14px; border-left: 3px solid var(--accent); background: rgba(15, 138, 112, 0.07); } .plan-detail { max-height: min(340px, 44vh); margin: 9px 0 12px; padding-right: 3px; overflow-y: auto; color: #40504b; font-size: 12px; line-height: 1.55; scrollbar-width: thin; } .plan-detail dl { display: grid; grid-template-columns: 76px 1fr; gap: 5px 8px; margin: 0; } .plan-detail dt { color: var(--muted); } .plan-detail dd { margin: 0; overflow-wrap: anywhere; } .purchase-line-preview { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(15, 138, 112, 0.18); } .purchase-line-preview > h3 { margin: 0 0 8px; color: var(--ink); font-size: 12px; } .purchase-line-card { margin-bottom: 8px; padding: 9px; border: 1px solid rgba(23, 55, 47, 0.1); border-radius: 10px; background: rgba(255, 255, 255, 0.58); } .purchase-line-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 7px; } .purchase-line-header h4 { margin: 0; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; } .purchase-match-status { flex: none; padding: 2px 6px; border-radius: 999px; color: #086b56; background: rgba(15, 138, 112, 0.12); font-size: 10px; } .dynamic-module-preview { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(15, 138, 112, 0.18); } .dynamic-module-preview > h3, .dynamic-value-group > h4, .dynamic-detail-preview > h4 { margin: 0 0 8px; color: var(--ink); font-size: 12px; } .dynamic-value-group, .dynamic-detail-preview { margin-top: 12px; } .dynamic-value-list, .dynamic-change-list { display: grid; gap: 8px; } .dynamic-detail-row, .dynamic-field-card { padding: 9px; border: 1px solid rgba(23, 55, 47, 0.1); border-radius: 10px; background: rgba(255, 255, 255, 0.58); } .dynamic-detail-row { margin-bottom: 8px; background: rgba(15, 138, 112, 0.035); } .dynamic-detail-row > h5 { margin: 0 0 8px; color: var(--ink); font-size: 11px; } .dynamic-detail-row .dynamic-field-card { background: rgba(255, 255, 255, 0.74); } .dynamic-field-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; } .dynamic-field-header h5 { margin: 0; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; } .dynamic-value-type { flex: none; padding: 2px 6px; border-radius: 999px; color: #086b56; background: rgba(15, 138, 112, 0.12); font-size: 9px; } .dynamic-parameter-id { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; } .dynamic-field-value, .dynamic-change-values > div > div { margin-top: 7px; padding: 7px 8px; border-radius: 7px; color: #30433d; background: rgba(23, 55, 47, 0.045); white-space: pre-wrap; overflow-wrap: anywhere; } .dynamic-change-values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; margin-top: 8px; } .dynamic-change-values > div > span { color: var(--muted); font-size: 10px; } .dynamic-change-values > div:last-child > div { color: #086b56; background: rgba(15, 138, 112, 0.09); } .dynamic-empty-value { margin: 0; color: var(--muted); font-size: 11px; } .confirm-action { width: 100%; min-height: 38px; border: 0; border-radius: 10px; color: #fff; background: var(--accent); cursor: pointer; } .confirm-action:disabled { opacity: 0.55; cursor: wait; } .security-note { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; } .composer { display: block; padding-top: 12px; border-top: 1px solid var(--line); } .composer-row { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 7px; } .attachment-list { display: flex; gap: 6px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; } .attachment-list[hidden] { display: none; } .attachment-chip { display: inline-flex; flex: 0 0 auto; align-items: center; max-width: 180px; min-height: 28px; padding: 3px 4px 3px 9px; border: 1px solid rgba(15, 138, 112, 0.2); border-radius: 999px; color: #31534a; background: rgba(15, 138, 112, 0.08); font-size: 11px; } .attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .attachment-remove { display: inline-grid; place-items: center; width: 21px; min-height: 21px !important; margin-left: 3px; padding: 0 !important; border-radius: 50% !important; color: var(--muted) !important; background: transparent !important; } .composer textarea { width: 100%; max-height: 90px; resize: none; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--ink); background: rgba(255, 255, 255, 0.7); font-size: 13px; line-height: 1.45; } .composer textarea:focus { border-color: rgba(15, 138, 112, 0.48); box-shadow: 0 0 0 3px rgba(15, 138, 112, 0.08); } .composer button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; color: white; background: var(--ink); cursor: pointer; } .composer .attach-action { color: #31534a; background: rgba(15, 138, 112, 0.1); font-size: 12px; } .composer button:disabled { opacity: 0.5; cursor: wait; } .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; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }