@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root { font-family: 'DM Sans', 'Microsoft YaHei', sans-serif; color: #18263d; background: #f5f7fa; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 92% -10%, #dce8f5 0, transparent 42%), #f5f7fa; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(28px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid #e7ebf0; background: #ffffffdb; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #1c2d49; text-decoration: none; font: 700 15px 'Manrope', sans-serif; letter-spacing: -.02em; }
.brand-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: #fff; background: #315b9a; font: 800 16px 'Manrope', sans-serif; }
.session { display: flex; align-items: center; gap: 9px; color: #667085; font-size: 12px; }
.session-dot { width: 7px; height: 7px; border-radius: 50%; background: #80a4d7; }
main { width: min(1320px, calc(100% - 56px)); margin: 0 auto; flex: 1; padding: 46px 0 80px; }
.login-view { display: grid; min-height: calc(100vh - 220px); place-items: center; }
.login-card { width: min(440px, 100%); border: 1px solid #e4e9f0; border-radius: 22px; padding: 38px; background: #fff; box-shadow: 0 18px 55px #233b5c0c; }
.eyebrow { color: #5b79a7; font: 700 10px 'DM Sans', sans-serif; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: #192943; font: 750 29px/1.2 'Manrope', 'Microsoft YaHei', sans-serif; letter-spacing: -.035em; }
.login-card h1 { margin-top: 13px; font-size: 26px; }
.login-card p, .page-heading p, .panel-heading p { color: #718096; font-size: 13px; line-height: 1.65; }
label { color: #526176; font-size: 12px; font-weight: 600; }
.login-card input, .app-form input, .app-form textarea, .filter-row select { display: block; width: 100%; margin-top: 7px; border: 1px solid #dce3ec; border-radius: 9px; outline: none; padding: 11px 12px; color: #24344e; background: white; font-size: 13px; }
input:focus, textarea:focus, select:focus { border-color: #7194c5; box-shadow: 0 0 0 3px #dce9f8; }
.login-card form { display: grid; gap: 12px; margin-top: 24px; }
.primary-button, .secondary-button, .quiet-button { border: 0; border-radius: 9px; font-weight: 600; }
.primary-button { padding: 11px 16px; color: white; background: #315b9a; box-shadow: 0 3px 9px #315b9a24; font-size: 12px; }
.primary-button:hover { background: #284e86; }
.login-card .primary-button { margin-top: 4px; padding: 13px; }
.secondary-button { padding: 9px 12px; color: #405878; background: #eef2f7; font-size: 11px; }
.secondary-button:hover { background: #e5ebf3; }
.quiet-button { padding: 6px 9px; color: #687890; background: transparent; font-size: 11px; }
.form-error { min-height: 18px; color: #b42318; font-size: 11px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading h1 { font-size: 30px; }
.page-heading p { margin-bottom: 0; }
.page-heading > .primary-button { margin-top: 7px; }
.apps-summary { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 14px; color: #586980; font-size: 12px; font-weight: 700; }
.overview-tabs { display: flex; align-items: center; gap: 7px; margin-top: 28px; border-bottom: 1px solid #e2e7ed; }
.overview-tab { display: inline-flex; align-items: center; gap: 7px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; padding: 12px 10px 11px; color: #7a899c; background: transparent; font-size: 11px; font-weight: 600; }
.overview-tab:hover { color: #456a9b; }
.overview-tab.active { border-bottom-color: #426da6; color: #315b91; }
.tab-count { min-width: 19px; border-radius: 99px; padding: 2px 5px; color: #946116; background: #fff1d9; font-size: 9px; text-align: center; }
.pending-list { display: grid; gap: 9px; margin-top: 20px; }
.pending-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 15px; border: 1px solid #e5e9ef; border-radius: 12px; padding: 14px 16px; background: #fff; box-shadow: 0 3px 13px #263f5a06; }
.pending-main { min-width: 0; }
.pending-item-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.pending-app-name { color: #496a94; font-size: 10px; font-weight: 700; }
.pending-date { margin-left: auto; color: #929eac; font-size: 9px; }
.pending-message { overflow: hidden; margin: 0 0 5px; color: #35445a; font-size: 12px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.pending-route { overflow: hidden; color: #7f8da0; font: 10px 'Cascadia Code', Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.pending-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.pending-actions button { border: 1px solid #dfe5ed; border-radius: 7px; padding: 7px 9px; color: #60748f; background: #fff; font-size: 9px; font-weight: 600; white-space: nowrap; }
.pending-actions button:hover { border-color: #b9cbe0; color: #315b91; background: #f5f8fc; }
.pending-actions .resolve-action { border-color: #d7e9df; color: #477d64; }
.pending-actions .resolve-action:hover { background: #f2f8f4; }
.pending-empty { display: grid; min-height: 180px; place-content: center; border: 1px dashed #d8e0e9; border-radius: 13px; color: #77869a; text-align: center; }
.pending-empty strong { color: #476b91; font-size: 12px; }
.pending-empty span { margin-top: 6px; font-size: 10px; }
.app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 15px; }
.app-card { display: flex; flex-direction: column; min-height: 245px; border: 1px solid #e3e9f0; border-radius: 16px; padding: 15px 16px 13px; color: inherit; background: #fff; box-shadow: 0 5px 20px #243c5a08; transition: border-color .16s, box-shadow .16s, transform .16s; }
.app-card:hover { transform: translateY(-2px); border-color: #9bb4d5; box-shadow: 0 12px 28px #243c5a12; }
.app-card-open { display: flex; flex: 1; flex-direction: column; width: 100%; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.app-card-open:focus-visible { border-radius: 9px; outline: 3px solid #b4c9e3; outline-offset: 3px; }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.app-card-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #dce7f4; border-radius: 12px; color: #315b9a; background: #eef4fb; font: 700 15px 'Manrope', sans-serif; }
.pending-badge { display: flex; align-items: center; gap: 6px; border: 1px solid #e7ebf0; border-radius: 999px; padding: 5px 9px; color: #8a96a5; background: #f8f9fb; }
.pending-badge strong { color: #66758b; font-size: 12px; }
.pending-badge small { font-size: 9px; }
.pending-badge.has-pending { border-color: #f4dcb7; color: #9a6820; background: #fff7e8; }
.pending-badge.has-pending strong { color: #a6630b; }
.app-card-name { overflow: hidden; color: #263750; font: 700 16px 'Manrope', 'Microsoft YaHei', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.app-card-id { margin-top: 4px; color: #96a1af; font: 9px 'Cascadia Code', Consolas, monospace; }
.app-card-bottom { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid #eef1f5; color: #8b97a6; font-size: 10px; }
.app-card-arrow { margin-left: auto; color: #587aa7; font-size: 16px; }
.app-card-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.edit-app-action { border: 0; border-radius: 7px; padding: 6px 8px; color: #687b95; background: #f3f6f9; font-size: 9px; font-weight: 600; }
.edit-app-action:hover { color: #315b91; background: #eaf1f8; }
.delete-app-action { border: 1px solid #f0d4d1; border-radius: 7px; padding: 6px 8px; color: #a43e36; background: #fff; font-size: 9px; font-weight: 600; }
.delete-app-action:hover { border-color: #e9bdb9; background: #fff7f6; }
.apps-empty { display: grid; grid-column: 1 / -1; min-height: 220px; place-content: center; justify-items: center; border: 1px dashed #d6e0eb; border-radius: 16px; padding: 25px; color: #7b899b; text-align: center; }
.apps-empty-mark { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 12px; border-radius: 13px; color: #577ba8; background: #eaf1fa; font-size: 22px; }
.apps-empty strong { color: #425773; font-size: 13px; }
.apps-empty p { margin: 7px 0 15px; color: #8b98a9; font-size: 11px; }
.app-page-heading { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 22px; }
.back-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; border: 0; border-radius: 8px; padding: 9px 11px; color: #60738f; background: #eaf0f7; font-size: 11px; font-weight: 600; white-space: nowrap; }
.back-button:hover { color: #315b9a; background: #dfe9f5; }
.app-page-title .eyebrow { margin-bottom: 7px; }
.app-page-title h1 { margin-bottom: 5px; font-size: 26px; }
.app-page-title p { margin: 0; color: #8793a3; font-size: 11px; }
.panel { border: 1px solid #e5e9ef; border-radius: 15px; background: #fff; box-shadow: 0 4px 18px #263f5a08; }
.app-form-panel { position: fixed; inset: max(16px, env(safe-area-inset-top)) auto auto 50%; width: min(600px, calc(100vw - 32px)); height: fit-content; max-width: none; max-height: calc(100dvh - 32px); margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 24px clamp(16px, 5vw, 27px); color: inherit; transform: translateX(-50%); box-shadow: 0 25px 80px #14233e38; }
.app-form-panel[open] { display: block; }
.app-form-panel::backdrop { background: #14223870; backdrop-filter: blur(3px); }
.integration-panel { margin-bottom: 21px; padding: 21px 23px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.panel-heading h2 { margin: 4px 0 4px; font: 700 16px 'Manrope', 'Microsoft YaHei', sans-serif; }
.panel-heading p { margin: 0; font-size: 12px; }
.icon-button { width: 28px; height: 28px; border: 0; border-radius: 7px; color: #77869b; background: #f5f7fa; font-size: 20px; line-height: 1; }
.app-form, .app-form > label, .edit-integration { min-width: 0; }
.app-form { display: grid; width: 100%; gap: 14px; margin-top: 20px; }
.app-form textarea { resize: vertical; }
.app-form small { display: block; margin-top: 5px; color: #8b96a6; font-size: 10px; font-weight: 400; }
.app-enabled-field { display: flex; align-items: center; gap: 10px; color: #526176; }
.app-enabled-field input { display: block; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; border: 0; padding: 0; background: transparent; box-shadow: none; accent-color: #315b9a; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.edit-integration { border: 1px solid #e3e9f0; border-radius: 11px; padding: 12px; background: #f8fafc; }
.edit-integration > div strong, .edit-integration > div span { display: block; }
.edit-integration > div strong { color: #435a78; font-size: 11px; }
.edit-integration > div span { margin-top: 3px; color: #8793a3; font-size: 10px; }
.edit-integration label { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.edit-integration select { max-width: 65%; border: 1px solid #dce3ec; border-radius: 7px; padding: 5px 8px; color: #435a78; background: white; }
.edit-integration pre { overflow-x: auto; margin: 10px 0; border-radius: 8px; padding: 10px; color: #d9e8fb; background: #18283f; font: 10px/1.6 'Cascadia Code', Consolas, monospace; }
.integration-panel pre { overflow: auto; margin: 17px 0 13px; border-radius: 9px; padding: 14px 16px; color: #d9e8fb; background: #18283f; font: 11px/1.7 'Cascadia Code', Consolas, monospace; }
.integration-foot { display: flex; align-items: center; gap: 10px; color: #7c899a; font-size: 11px; }
.integration-foot code { color: #405878; }
.integration-foot button { margin-left: auto; }
.toolbar { display: flex; align-items: center; gap: 19px; min-height: 62px; border-bottom: 1px solid #e2e7ed; }
.filter-row { display: flex; align-items: center; gap: 8px; }
.filter-row label { white-space: nowrap; color: #77869a; font-size: 11px; }
.filter-row select { width: auto; min-width: 138px; margin: 0; padding: 8px 28px 8px 10px; font-size: 11px; }
.result-count { margin-left: auto; color: #99a3b2; font-size: 11px; }
.content-grid { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 21px; margin-top: 20px; align-items: start; }
.feedback-list { display: grid; gap: 10px; }
.feedback-card { border: 1px solid #e4e9ef; border-radius: 13px; padding: 15px 15px 14px; background: #fff; cursor: pointer; transition: border .15s, box-shadow .15s, transform .15s; }
.feedback-card:hover { transform: translateY(-1px); border-color: #c8d7eb; box-shadow: 0 7px 18px #233f6010; }
.feedback-card.selected { border-color: #7295c5; box-shadow: 0 0 0 2px #dce9f8; }
.feedback-top, .feedback-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feedback-top { margin-bottom: 9px; }
.app-label { color: #506c95; font-size: 10px; font-weight: 700; }
.status { border-radius: 99px; padding: 4px 7px; color: #986d20; background: #fff6df; font-size: 9px; white-space: nowrap; }
.status.in_progress { color: #3d6c9c; background: #eaf3fc; }
.status.resolved { color: #428267; background: #eaf6f0; }
.feedback-message { display: -webkit-box; overflow: hidden; margin: 0 0 11px; color: #35445a; font-size: 12px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.feedback-bottom { color: #8b96a6; font-size: 10px; }
.feedback-route { overflow: hidden; max-width: 72%; color: #647b99; text-overflow: ellipsis; white-space: nowrap; }
.empty-list, .empty-detail { display: grid; min-height: 190px; place-content: center; text-align: center; color: #8793a3; }
.empty-list { border: 1px dashed #d8e0e9; border-radius: 13px; }
.empty-list strong { margin-bottom: 5px; color: #53657e; font-size: 12px; }
.detail-panel { min-height: 370px; overflow: hidden; }
.detail-header { padding: 19px 21px 15px; border-bottom: 1px solid #edf0f4; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.detail-actions { display: flex; align-items: center; gap: 7px; }
.detail-title h2 { margin: 0 0 6px; color: #263650; font: 700 16px 'Manrope', 'Microsoft YaHei', sans-serif; }
.detail-title p { margin: 0; color: #8995a5; font-size: 10px; }
.detail-title select { border: 1px solid #e2e8ef; border-radius: 8px; padding: 8px 9px; color: #53657e; background: white; font-size: 10px; }
.delete-feedback-action { border: 1px solid #f0d4d1; border-radius: 8px; padding: 8px 9px; color: #a43e36; background: #fff; font-size: 10px; font-weight: 600; }
.delete-feedback-action:hover { border-color: #e9bdb9; background: #fff7f6; }
.route-meta { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 8px; margin-top: 16px; color: #77869a; font-size: 10px; }
.route-meta code { overflow-wrap: anywhere; color: #455d7e; font: 10px/1.5 'Cascadia Code', Consolas, monospace; }
.element-inspector { display: flex; align-items: center; gap: 10px; margin-top: 13px; border: 1px solid #dce7f3; border-radius: 10px; padding: 9px 10px; background: #f4f8fd; }
.element-inspector-icon { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #3e6698; background: #e3edf8; font-size: 17px; }
.element-inspector strong, .element-inspector code { display: block; overflow-wrap: anywhere; }
.element-inspector strong { color: #385579; font-size: 10px; }
.element-inspector code { margin-top: 3px; color: #8190a3; font: 9px/1.4 'Cascadia Code', Consolas, monospace; }
.snapshot-wrap { position: relative; display: grid; min-height: 160px; place-items: center; overflow: hidden; padding: 18px; background: #f2f5f8; }
.snapshot { display: block; max-width: 100%; max-height: 470px; border: 1px solid #e1e6ec; background: white; box-shadow: 0 4px 15px #1c2c4113; }
.snapshot-pin { position: absolute; width: 20px; height: 20px; border: 3px solid white; border-radius: 50%; background: #f97316; box-shadow: 0 2px 8px #17203377; transform: translate(-50%, -50%); pointer-events: none; }
.snapshot-empty { color: #95a0af; font-size: 11px; }
.discussion { padding: 18px 21px 21px; }
.discussion h3 { margin: 0 0 13px; color: #76859a; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.reply { margin-bottom: 10px; border-radius: 10px; padding: 11px 12px; background: #f5f7fa; }
.reply strong { display: block; margin-bottom: 5px; color: #405776; font-size: 10px; }
.reply p { margin: 0; color: #536175; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.reply time { display: block; margin-top: 5px; color: #9aa4b1; font-size: 9px; }
.reply-form { display: flex; gap: 8px; margin-top: 12px; }
.reply-form textarea { flex: 1; min-height: 41px; max-height: 110px; resize: vertical; border: 1px solid #dce3ec; border-radius: 9px; padding: 10px; outline: none; font-size: 11px; }
.reply-form button { align-self: flex-end; }
.empty-icon { margin-bottom: 10px; color: #98adc8; font-size: 27px; }
.empty-detail h2 { margin-bottom: 5px; color: #576a84; font-size: 13px; }
.empty-detail p { color: #9aa4b1; font-size: 11px; }
footer { padding: 15px 28px 22px; color: #a0a9b6; text-align: center; font-size: 10px; }
footer span { padding: 0 4px; }
@media (max-width: 850px) { .content-grid { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 13px; } main { width: calc(100% - 36px); } .topbar { padding: 0 18px; } .feedback-card { padding: 12px; } .detail-header, .discussion { padding-left: 14px; padding-right: 14px; } }
@media (max-width: 650px) { main { padding-top: 30px; } .content-grid { grid-template-columns: 1fr; } .detail-panel { grid-row: 1; min-height: 300px; } .feedback-list { grid-template-columns: 1fr; } .toolbar { gap: 10px; flex-wrap: wrap; padding: 12px 0; } .filter-row select { min-width: 108px; } .page-heading { gap: 15px; } .page-heading h1 { font-size: 25px; } .page-heading > .primary-button { white-space: nowrap; } .login-card { padding: 27px; } .integration-foot { flex-wrap: wrap; } .app-cards { grid-template-columns: 1fr; } .app-page-heading { gap: 12px; flex-direction: column; } .app-page-title h1 { font-size: 23px; } .pending-item { grid-template-columns: 1fr; } .pending-actions { justify-content: flex-start; } .pending-date { margin-left: auto; } }
@media (max-width: 480px) { .app-form-panel { inset: max(8px, env(safe-area-inset-top)) auto auto 50%; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 18px 14px; } .app-form-panel .panel-heading { gap: 10px; } .app-form-panel .form-actions { position: sticky; bottom: -18px; margin: 0 -14px -18px; border-top: 1px solid #edf0f4; padding: 11px 14px; background: #fff; } }
