:root {
  color-scheme: light;
  --bg: #f5f6f8; --surface: #fff; --text: #20252d; --muted: #606a79;
  --border: #dde2e9; --primary: #334fc4; --primary-soft: #eef1ff;
  --success: #187148; --warning: #8a580b; --danger: #ad3030;
  --radius: 12px; --control-radius: 8px; --space: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: var(--primary); text-decoration: none; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #8b9cf0; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.3; margin-bottom: 8px; letter-spacing: -.6px; }
input:not([type=file]), select, textarea { border: 1px solid var(--border); border-radius: var(--control-radius); background: var(--surface); color: var(--text); padding: 10px 12px; min-height: 42px; width: 100%; }
input::placeholder, textarea::placeholder { color: #7a8594; }
textarea { resize: vertical; }
.primary, .secondary { border-radius: var(--control-radius); min-height: 42px; border: 1px solid transparent; padding: 9px 16px; font-weight: 600; transition: background-color .15s; }
.primary { background: var(--primary); color: #fff; }
.primary:hover { background: #263fae; }
.secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.secondary:hover { background: #f2f4f8; }
.button-link { display: inline-flex; justify-content: center; align-items: center; }
.text-button { background: none; border: none; color: var(--muted); min-height: 40px; padding: 6px 0; }
.text-button:hover { color: var(--primary); }
.muted, .subtitle { color: var(--muted); }
.subtitle { margin-bottom: 0; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--muted); margin-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 2px; letter-spacing: .5px; }
.brand-mark { display: grid; place-items: center; background: var(--primary); color: white; width: 36px; height: 36px; border-radius: 10px; font-size: 27px; font-family: system-ui, sans-serif; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 30px 16px 20px; display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; }
.sidebar .brand { margin: 0 4px 36px; gap: 9px; }
.sidebar-label { font-size: 11px; font-weight: 600; color: var(--muted); padding: 0 12px; margin-bottom: 10px; }
.apps-label { margin-top: 26px; display: flex; justify-content: space-between; }
.app-filter { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: none; border-radius: var(--control-radius); background: none; padding: 10px 12px; width: 100%; text-align: left; min-height: 44px; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.app-filter:hover { background: var(--bg); color: var(--text); }
.app-filter.selected { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.app-name { display: flex; align-items: center; gap: 8px; }
.app-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; background: #f1eaf9; color: #76528e; flex-shrink: 0; }
.tone-1 { background: #fff0e5; color: #a4683a; }
.tone-2 { background: #e8f3ed; color: #407b5a; }
.tone-3 { background: #e9eefb; color: #4b65a6; }
.count { font-size: 11px; font-variant-numeric: tabular-nums; }
.sidebar-footer { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--border); }
.local-badge { font-size: 10px; color: var(--muted); background: var(--bg); padding: 5px 8px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; }
.local-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; }
#username { overflow: hidden; text-overflow: ellipsis; }
.main-area { padding: 32px 36px 16px; min-width: 0; max-width: 1700px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: left; padding: 18px 20px; }
.metric.active { border-color: #a1aee9; box-shadow: inset 0 0 0 1px #a1aee9; }
.metric > span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.metric strong { font-size: 30px; line-height: 1.3; font-weight: 650; display: block; margin-top: 8px; font-variant-numeric: tabular-nums; }
.metric small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot.pending { background: var(--primary); }.dot.processing { background: var(--warning); }.dot.resolved { background: var(--success); }
.workspace { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1; }
.search-field > span { font-size: 25px; color: var(--muted); }
.search-field input { border: none; padding: 7px 0; min-height: 38px; background: transparent; }
.toolbar select { width: 130px; font-size: 12px; min-height: 38px; padding: 7px 10px; }
#mobile-app-filter { display: none; }
.inbox-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); min-height: 520px; }
.list-panel { border-right: 1px solid var(--border); min-width: 0; display: flex; flex-direction: column; }
.panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 20px 12px; }
.panel-heading h2 { font-size: 12px; font-weight: 600; margin: 0; }
.panel-heading > span { font-size: 11px; }
#feedback-list { flex: 1; max-height: 640px; overflow-y: auto; }
.feedback-item { display: block; background: transparent; border: none; border-bottom: 1px solid #edf0f4; width: 100%; text-align: left; padding: 18px 20px; border-left: 3px solid transparent; }
.feedback-item:hover { background: #f9fafc; }
.feedback-item.selected { background: #f4f6ff; border-left-color: var(--primary); }
.item-top, .item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item-app { font-size: 11px; color: var(--muted); }
.item-date { font-size: 10px; color: var(--muted); white-space: nowrap; }
.item-title { font-size: 14px; font-weight: 600; margin: 10px 0 5px; overflow-wrap: anywhere; }
.item-excerpt { font-size: 12px; color: var(--muted); margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.status-tag { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.status-tag.pending { color: var(--primary); background: var(--primary-soft); }
.status-tag.processing { color: var(--warning); background: #fff4df; }
.status-tag.resolved { color: var(--success); background: #eaf5ee; }
.attachment-count { font-size: 10px; color: var(--muted); }
.pagination { border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 6px 18px; font-size: 11px; margin-top: auto; }
.pagination .text-button { font-size: 11px; }
.pagination button:disabled { cursor: default; }
.detail-panel { padding: 26px 28px; min-width: 0; max-height: 756px; overflow-y: auto; }
.empty-detail, .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 46px 24px; min-height: 360px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; background: #f0f2f8; color: #8793b4; border: 1px solid #e1e5ee; width: 60px; height: 60px; border-radius: 16px; font-size: 30px; margin-bottom: 20px; }
.empty-detail h2, .empty-state h3 { color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.empty-detail p, .empty-state p { font-size: 12px; max-width: 260px; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.detail-app { color: var(--primary); font-size: 12px; font-weight: 600; }
.detail-title { font-size: 22px; line-height: 1.5; margin: 14px 0 8px; overflow-wrap: anywhere; }
.detail-date { color: var(--muted); font-size: 11px; margin-bottom: 20px; }
.status-controls { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--bg); border-radius: var(--control-radius); }
.status-controls label { font-size: 11px; color: var(--muted); white-space: nowrap; margin-right: auto; }
.status-controls select { font-size: 12px; width: 105px; }
.status-controls button { font-size: 12px; white-space: nowrap; padding: 8px 12px; }
.detail-section { margin-top: 26px; }
.section-label { color: var(--muted); font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.feedback-body { font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.attachment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.image-card { min-width: 0; }
.image-open { width: 100%; height: 115px; border: 1px solid var(--border); background: var(--bg); border-radius: var(--control-radius); padding: 0; overflow: hidden; }
.image-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-caption { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--muted); margin-top: 6px; }
.metadata { border-top: 1px solid var(--border); padding-top: 20px; }
.metadata-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 11px; }
.metadata-row > span:first-child { flex-shrink: 0; }
.metadata-row > span:last-child { text-align: right; overflow-wrap: anywhere; }
.page-footer { display: flex; justify-content: space-between; margin-top: 16px; font-size: 10px; color: #758091; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: white; border-radius: var(--control-radius); padding: 12px 20px; box-shadow: 0 8px 24px #20252d20; z-index: 20; max-width: calc(100% - 32px); width: max-content; font-size: 13px; }
.error-message { background: #fff1f1; color: var(--danger); font-size: 12px; border-radius: var(--control-radius); padding: 12px 14px; margin: 12px 0; overflow-wrap: anywhere; }
.list-panel > .error-message { margin: 0 16px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
dialog { border: none; border-radius: var(--radius); background: var(--surface); padding: 16px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
dialog::backdrop { background: #20252dcc; }
.dialog-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 16px; }
#image-name { overflow-wrap: anywhere; }
#preview-image { display: block; max-width: 80vw; max-height: 75vh; object-fit: contain; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-intro { background: #eef1fa; padding: 40px 48px; display: flex; flex-direction: column; }
.intro-content { max-width: 440px; margin: auto; padding: 50px 0; }
.intro-content h1 { font-size: 46px; line-height: 1.45; font-weight: 600; margin-bottom: 20px; }
.intro-content > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 2; }
.intro-card { margin-top: 40px; background: #ffffffbf; border: 1px solid #d8dfef; border-radius: 16px; padding: 22px 24px; transform: rotate(-3deg); max-width: 340px; }
.intro-card-label { font-size: 12px; font-weight: 600; }
.illustration-lines { display: grid; gap: 10px; margin: 20px 0; }
.illustration-lines i { background: #e0e5f2; height: 8px; border-radius: 3px; display: block; width: 90%; }
.illustration-lines i:nth-child(2) { width: 70%; }.illustration-lines i:nth-child(3) { width: 80%; }
.intro-card-tag { color: var(--primary); background: var(--primary-soft); border-radius: 5px; font-size: 10px; padding: 6px 8px; }
.intro-footer { font-size: 11px; color: var(--muted); margin: 0; }
.auth-form-panel { display: grid; place-items: center; background: var(--surface); padding: 48px; }
.auth-form-wrap { width: 100%; max-width: 360px; }
.auth-form-wrap h2 { font-size: 24px; margin: 22px 0 8px; }
.auth-form-wrap > p { font-size: 13px; }
#auth-form { margin-top: 28px; }
form label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 8px; }
#auth-form input { margin-bottom: 20px; }
.full-width { width: 100%; }
.auth-footnote { margin-top: 18px; text-align: center; font-size: 11px !important; color: var(--muted); }
.field-hint { font-size: 11px; color: var(--muted); margin: 8px 0 16px; line-height: 1.7; }
.submit-header { max-width: 1040px; margin: auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.submit-card { max-width: 680px; margin: 14px auto 28px; padding: 36px 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.submit-card .subtitle { font-size: 12px; }
#submit-form { margin-top: 26px; }
.submission-context { background: var(--bg); border-radius: var(--control-radius); padding: 16px; margin-bottom: 24px; }
.meta-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-heading { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 8px; gap: 12px; font-size: 11px; }
.field-heading label { margin-bottom: 0; }
.required, .optional { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.upload-zone { position: relative; text-align: center; border: 1px dashed #b7c1d9; background: #fafbfe; border-radius: var(--control-radius); padding: 22px; display: flex; flex-direction: column; align-items: center; cursor: pointer; overflow: hidden; }
.upload-zone input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.upload-zone:focus-within { outline: 3px solid #8b9cf0; outline-offset: 3px; }
.upload-symbol { font-size: 24px; color: var(--primary); margin-bottom: 3px; }
.upload-zone strong { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.upload-zone > span:last-of-type { font-size: 10px; color: var(--muted); }
.upload-previews { display: flex; gap: 12px; margin: 12px 0 22px; }
.upload-preview { position: relative; width: calc((100% - 24px) / 3); min-width: 0; }
.upload-preview img { width: 100%; height: 115px; object-fit: cover; border-radius: var(--control-radius); border: 1px solid var(--border); }
.upload-preview > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--muted); }
.remove-image { position: absolute; right: 4px; top: 4px; border: none; background: #20252dde; color: white; width: 32px; height: 32px; border-radius: 50%; }
.submit-footer { text-align: center; color: var(--muted); font-size: 11px; padding: 0 24px 24px; }
.submit-success { text-align: center; padding: 44px 0 20px; }
.success-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #eaf5ee; color: var(--success); margin: 0 auto 22px; font-size: 24px; }
.submit-success h2 { font-size: 22px; }
#submission-reference { font-size: 11px; overflow-wrap: anywhere; }
.submit-success .button-link { margin: 12px 8px 0 0; }
@media (max-width: 1200px) {
  .main-area { padding: 28px 24px 16px; }.metric { padding: 16px; }
  .detail-panel { padding: 24px 20px; }.inbox-grid { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); }
  .status-controls { flex-wrap: wrap; }.status-controls label { flex-basis: 100%; }
  .attachment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app-shell { display: block; }.sidebar { position: static; height: auto; padding: 16px 24px; flex-direction: row; justify-content: space-between; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar .brand { margin: 0; }.sidebar-label, #all-apps, #app-nav { display: none; }
  .sidebar-footer { padding: 0; border: 0; margin-top: 0; }.sidebar-footer .local-badge { display: none; }.account-row { margin: 0; }
  .inbox-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.main-area { padding: 24px; }
  #mobile-app-filter { display: block; width: 155px; }.toolbar { flex-wrap: wrap; }.search-field { min-width: 180px; }
  .auth-intro { padding: 32px; }.intro-content h1 { font-size: 38px; }.auth-form-panel { padding: 32px; }
}
@media (max-width: 700px) {
  .inbox-grid { grid-template-columns: minmax(0, 1fr); }.list-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  #feedback-list { max-height: 460px; }.detail-panel { max-height: none; min-height: 300px; }
  .empty-detail, .empty-state { min-height: 230px; }.page-header { align-items: flex-start; }.header-actions { flex-direction: column; }
  .header-actions .primary, .header-actions .secondary { padding: 8px 12px; font-size: 12px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }.auth-intro { padding: 24px; }.intro-content, .intro-footer { display: none; }
  .auth-form-panel { padding: 36px 24px; min-height: calc(100vh - 90px); align-items: start; }
}
@media (max-width: 600px) {
  .main-area { padding: 20px 16px; }.sidebar { padding: 14px 16px; }.brand { font-size: 13px; }.brand small { font-size: 9px; }
  .page-header { gap: 10px; }h1 { font-size: 24px; }.subtitle { font-size: 11px; }.eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }.metric { padding: 14px; }.metric strong { font-size: 25px; }.metric small { font-size: 9px; }
  .toolbar { padding: 12px 16px; gap: 8px; }.search-field { flex-basis: 100%; }.toolbar select, #mobile-app-filter { width: calc(50% - 4px); }
  .status-controls label { flex-basis: auto; }.detail-panel { padding: 22px 20px; }.attachment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.image-open { height: 100px; }
  .submit-header { padding: 18px 16px; }.submit-header > .text-button { font-size: 11px; }.submit-card { margin: 4px 12px 22px; padding: 24px 20px; }
  .meta-inputs { grid-template-columns: minmax(0, 1fr); }.upload-preview img { height: 86px; }.page-footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
