:root { color-scheme: light; font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif; color: #20362d; background: #fff; font-synthesis: none; --green: #216347; --muted: #68776f; --line: #e2e8e2; }
* { box-sizing: border-box; }
body { margin: 0; }
html, body { height: 100%; overflow: hidden; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--green); }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #75a98a; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: not-allowed; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.support-app { display: grid; grid-template-columns: 254px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.support-sidebar { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 29px 22px 20px; background: #f5f7f3; border-right: 1px solid var(--line); }
.brand { display: flex; gap: 5px; align-items: center; text-decoration: none; margin: 0 0 44px 2px; }
.brand img { object-fit: contain; }
.workspace-label, .sidebar-section h2, .eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: .12em; font-weight: 650; color: var(--muted); }
.workspace-label { margin: 0 0 13px 10px; }
.new-chat { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid #cfdacf; border-radius: 7px; color: #264d38; background: white; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s; }
.new-chat:hover { background: #eaf0e7; }
.new-chat > span { font-size: 20px; line-height: 1; font-weight: 400; }
.sidebar-section { margin: 33px 0; }
.sidebar-section h2 { margin: 0 10px 12px; }
.sidebar-section nav { display: grid; gap: 2px; }
.sidebar-section a { display: flex; justify-content: space-between; padding: 11px 10px; font-size: 13px; color: #506157; text-decoration: none; border-radius: 5px; }
.sidebar-section a:hover { background: #e9eee7; color: var(--green); }
.sidebar-section a span { color: #718679; }
.engineer-card { margin-top: auto; padding: 19px 16px; border: 1px solid #dce4d8; border-radius: 8px; background: #eef2e9; }
.engineer-card .eyebrow { font-size: 9px; }
.engineer-card h2 { font-size: 15px; font-weight: 600; margin: 9px 0; }
.engineer-card p { color: #677668; font-size: 12px; line-height: 1.75; margin: 0 0 13px; }
.engineer-card a { font-size: 12px; font-weight: 600; text-decoration: none; }
.engineer-card a span { margin-left: 14px; }
.account { display: flex; gap: 10px; align-items: center; border-top: 1px solid #dce4d8; margin-top: 24px; padding: 19px 0 0; }
.account-icon { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #d3ddd1; background: #e7eee2; border-radius: 50%; font-size: 13px; }
.account > div { min-width: 0; flex: 1; }
.account strong { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account div span { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.account > a { text-decoration: none; padding: 6px; font-size: 20px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 38px; min-height: 90px; border-bottom: 1px solid var(--line); }
.header-title { font-size: 18px; font-weight: 650; letter-spacing: -.03em; display: flex; align-items: center; gap: 12px; }
.header-title span { letter-spacing: 0; font-size: 11px; font-weight: 500; color: #4b6e58; background: #edf3e9; border: 1px solid #e1e9dc; padding: 4px 8px; border-radius: 4px; }
.chat-header p { font-size: 11px; color: var(--muted); margin: 7px 0 0; }
.header-actions { display: flex; gap: 16px; align-items: center; }
.manual-link { font-size: 12px; text-decoration: none; color: #526559; }
.manual-link span { margin-left: 5px; }
.mobile-new, .mobile-resources { display: none; }
.mobile-resources { position: relative; }
.mobile-resources summary { cursor: pointer; list-style: none; font-size: 13px; letter-spacing: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; }
.mobile-resources summary::-webkit-details-marker { display: none; }
.mobile-resources nav { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; width: 190px; padding: 7px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px #20362d20; border-radius: 7px; }
.mobile-resources nav a { display: block; padding: 10px; text-decoration: none; font-size: 12px; border-radius: 4px; }
.mobile-resources nav a:hover { background: #f0f5eb; }
.conversation-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: #cbd6cb transparent; scrollbar-width: thin; }
.welcome { max-width: 776px; margin: 0 auto; padding: 28px 34px 25px; }
.assistant-mark { display: grid; place-items: center; width: 54px; height: 54px; background: #eef4e9; border: 1px solid #dce8d5; border-radius: 14px; color: #326648; margin-bottom: 23px; }
.assistant-mark svg { width: 33px; height: 33px; }
.assistant-mark circle { fill: #eef4e9; stroke: currentColor; stroke-width: 2; }
.welcome .eyebrow { color: #5a7b64; margin: 0 0 12px; }
.welcome h1 { font-size: clamp(27px, 3vw, 37px); letter-spacing: -.045em; font-weight: 550; line-height: 1.22; margin: 0 0 16px; }
.welcome-description { font-size: 14px; color: var(--muted); line-height: 1.85; margin: 0; }
.prompt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.prompt-card { text-align: left; padding: 18px 19px; background: white; border: 1px solid #dfe6dd; border-radius: 8px; color: inherit; transition: border-color .15s, background .15s; }
.prompt-card:hover { background: #f6f9f3; border-color: #99b29b; }
.prompt-number { display: block; color: #76867a; font-size: 9px; font-weight: 600; letter-spacing: .1em; margin-bottom: 9px; }
.prompt-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.prompt-card > span:last-child { display: flex; justify-content: space-between; gap: 12px; color: #718074; font-size: 11px; line-height: 1.65; }
.prompt-card b { font-size: 15px; color: #67846b; font-weight: 400; }
.message-history { max-width: 854px; margin: 0 auto; padding: 0 32px; }
.message-history:empty { padding: 0; }
.chat-message { display: flex; align-items: flex-start; gap: 14px; padding: 29px 0; border-bottom: 1px solid #edf0eb; }
.chat-message:last-child { border-bottom: 0; }
.message-avatar { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 7px; font-size: 12px; font-weight: 650; background: #e6efdf; border: 1px solid #d4e3ca; color: #345d3e; }
.user-message .message-avatar { background: #f0f2f0; border-color: #e4e8e3; color: #6c766e; }
.message-body { flex: 1; min-width: 0; padding-top: 5px; }
.message-label { font-size: 12px; font-weight: 650; margin-bottom: 11px; }
.message-content { color: #36473d; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.user-message .message-content { white-space: pre-wrap; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { margin: 0 0 14px; }
.message-content h1, .message-content h2, .message-content h3, .message-content h4 { color: #253e2e; line-height: 1.4; margin: 24px 0 12px; font-size: 17px; font-weight: 600; }
.message-content h1 { font-size: 21px; }
.message-content h2 { font-size: 19px; }
.message-content ul, .message-content ol { padding-left: 24px; }
.message-content li { margin-bottom: 6px; }
.message-content blockquote { border-left: 3px solid #c3d7ba; margin-inline: 0; padding-left: 18px; color: #687867; }
.message-content code { font-family: Consolas, "SFMono-Regular", monospace; font-size: .9em; background: #f1f4ef; border-radius: 3px; padding: 2px 4px; }
.message-content pre { font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.8; background: #192b24; color: #e4eee5; padding: 20px; border-radius: 7px; overflow-x: auto; white-space: pre; overflow-wrap: normal; tab-size: 4; }
.message-content pre code { font: inherit; padding: 0; background: none; color: inherit; white-space: pre; }
.code-block { margin: 18px 0; border-radius: 7px; overflow: hidden; border: 1px solid #30473b; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; background: #263b30; color: #c4d2c6; padding: 7px 13px; font-size: 10px; }
.code-block pre { margin: 0; border-radius: 0; }
.copy-button { border: 0; border-radius: 4px; padding: 5px 7px; color: #66796a; background: transparent; font-size: 11px; }
.copy-button:hover { background: #edf2e9; color: var(--green); }
.code-toolbar .copy-button { color: #d5e5d6; }
.code-toolbar .copy-button:hover { background: #3b5043; }
.message-actions { margin-top: 14px; }
.table-scroll { overflow-x: auto; }
.message-content table { border-collapse: collapse; font-size: 12px; width: 100%; }
.message-content th, .message-content td { text-align: left; border: 1px solid var(--line); padding: 10px; }
.message-content th { background: #f2f6ee; }
.is-streaming .message-label::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #76a675; margin-left: 9px; animation: pulse 1.5s ease-in-out infinite; }
.response-error { color: #9b4033; font-size: 13px; line-height: 1.7; background: #fcf3ef; padding: 12px; border-radius: 6px; }
.retry-button { color: #784e39; background: #fff; border: 1px solid #d8c6ba; border-radius: 5px; padding: 7px 10px; font-size: 12px; }
.composer-area { width: 100%; max-width: 854px; margin: 0 auto; padding: 16px 32px 20px; position: relative; flex-shrink: 0; }
.composer { padding: 14px 15px 11px; border: 1px solid #cdd9ca; border-radius: 12px; background: #fff; box-shadow: 0 4px 20px #243b2710; }
.composer:focus-within { border-color: #7a9f77; box-shadow: 0 0 0 3px #eaf1e5; }
.composer textarea { display: block; width: 100%; min-height: 58px; max-height: 180px; resize: none; border: 0; padding: 1px 3px; color: #2e4234; background: transparent; outline: none; font-size: 14px; line-height: 1.65; }
.composer textarea::placeholder { color: #869184; }
.composer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.composer-context { font-size: 10px; color: #7b8879; padding-left: 3px; }
.composer-context span { margin: 0 5px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: white; padding: 10px 15px; font-size: 12px; font-weight: 600; }
.button:hover:not(:disabled) { background: #174f36; }
.button-small { padding: 8px 11px; white-space: nowrap; }
.send-button { min-width: 88px; }
.send-button span { font-size: 16px; line-height: 1; }
.is-loading { position: relative; color: transparent; }
.is-loading::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid #ffffff70; border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.composer-footer { display: flex; justify-content: space-between; gap: 12px; color: #7e897c; font-size: 10px; line-height: 1.5; margin: 11px 2px 0; }
.composer-footer span span { margin: 0 5px; }
#requestStatus { text-align: right; }
.accuracy-note { color: #879081; font-size: 10px; line-height: 1.65; margin: 13px 0 0; text-align: center; }
.accuracy-note a { color: #657961; text-underline-offset: 3px; }
.latest-button { position: absolute; bottom: calc(100% - 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border: 1px solid #cbd8c6; border-radius: 20px; background: white; box-shadow: 0 4px 12px #22332210; color: #436044; font-size: 12px; }
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #dce4d7; border-radius: 16px; box-shadow: 0 30px 100px #172e2733; color: inherit; }
dialog::backdrop { background: #14291f80; backdrop-filter: blur(4px); }
.access-card { padding: 36px; }
.dialog-close { position: absolute; top: 13px; right: 14px; border: none; background: transparent; color: #778473; padding: 4px 9px; font-size: 24px; }
.access-mark { display: grid; place-items: center; width: 44px; height: 44px; font-size: 23px; background: #eaf2e3; color: var(--green); border-radius: 10px; margin-bottom: 24px; }
.access-card .eyebrow { color: #6d896a; }
.access-card h2 { font-size: 28px; font-weight: 550; line-height: 1.2; letter-spacing: -.035em; margin: 12px 0; }
#registerDescription { font-size: 13px; line-height: 1.8; color: #70816e; margin-bottom: 25px; }
.access-card label { display: block; font-size: 12px; font-weight: 600; margin: 17px 0 8px; }
.access-card label span { font-weight: 400; color: #7c8876; }
.access-card input { display: block; width: 100%; padding: 12px 13px; font-size: 14px; border: 1px solid #cfdac9; border-radius: 6px; background: #fff; color: #314630; }
.access-card input:focus { outline: 3px solid #e6eedf; border-color: #84a577; }
.access-submit { width: 100%; margin-top: 14px; padding-block: 13px; }
#regMsg { font-size: 12px; line-height: 1.7; margin: 14px 0 0; }
#regMsg:empty { display: none; }
#regMsg.error, .access-error { color: #a14236; }
#regMsg.success { color: #216347; padding: 12px; background: #edf5e8; border-radius: 6px; }
.access-error { font-size: 12px; line-height: 1.7; }
.access-footer { font-size: 11px; line-height: 1.7; color: #83907b; text-align: center; margin: 17px 0 0; }
.noscript-note { position: fixed; inset: auto 10px 10px; padding: 15px; background: #fff3cc; border: 1px solid #d2b568; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .3; } }
@media (min-width: 1500px) { .welcome { padding-top: 9vh; } }
@media (max-width: 1050px) { .support-app { grid-template-columns: 220px minmax(0,1fr); } .support-sidebar { padding-inline: 16px; } .chat-header { padding-inline: 26px; } .welcome { padding-inline: 26px; } .message-history { padding-inline: 24px; } .composer-area { padding-inline: 24px; } .prompt-card { padding: 15px; } }
@media (max-width: 900px) {
    .support-app { display: block; }
    .support-sidebar { display: none; }
    .chat-main { height: 100%; }
    .chat-header { padding: 16px 20px; min-height: 76px; }
    .mobile-new { display: inline-block; font-size: 12px; text-decoration: none; white-space: nowrap; }
    .mobile-resources { display: block; }
    .manual-link { display: none; }
    .header-title { font-size: 17px; gap: 8px; }
    .header-title span { font-size: 10px; }
    .header-actions { gap: 9px; }
    .welcome { padding: 30px 22px 24px; }
    .welcome h1 { font-size: 29px; }
    .welcome-description { font-size: 13px; }
    .welcome-description br { display: none; }
    .assistant-mark { width: 46px; height: 46px; margin-bottom: 20px; }
    .prompt-grid { gap: 10px; margin-top: 25px; }
    .prompt-card { padding: 15px 13px; }
    .prompt-card strong { font-size: 13px; }
    .prompt-number { font-size: 8px; }
    .prompt-card > span:last-child { font-size: 10px; }
    .message-history { padding: 0 18px; }
    .chat-message { gap: 10px; padding-block: 23px; }
    .message-avatar { flex-basis: 26px; height: 26px; font-size: 11px; }
    .message-content { font-size: 14px; }
    .composer-area { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
    .composer-context { font-size: 9px; }
    .composer textarea { font-size: 16px; }
    .composer-footer { font-size: 9px; }
    .accuracy-note { font-size: 9px; margin-top: 9px; }
    .access-card { padding: 30px 26px; }
    .access-card input { font-size: 16px; }
}
@media (max-width: 380px) { .header-title span { display: none; } .prompt-grid { grid-template-columns: 1fr; } .composer-context { max-width: 170px; line-height: 1.6; } }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }
