* { box-sizing: border-box; }
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #17243a; background: #f3f6fb; font-synthesis: none; }
body { margin: 0; -webkit-tap-highlight-color: transparent; }
.shell { width: min(100%, 640px); margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
.header { display: flex; align-items: center; gap: 12px; margin: 4px 2px 18px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: #276be3; font-size: 27px; font-weight: 700; }
.eyebrow { margin: 0 0 3px; color: #5474a8; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 0; font-size: 19px; }
h2 { margin: 0 0 14px; font-size: 17px; }
.connection { margin-left: auto; padding: 6px 9px; border-radius: 999px; background: #e8f6ef; color: #21784b; font-size: 11px; white-space: nowrap; }
.panel { margin-bottom: 15px; padding: 17px; border: 1px solid #e0e7f0; border-radius: 14px; background: #fff; box-shadow: 0 6px 22px #19375c0a; }
label { display: block; margin: 13px 0 7px; font-size: 13px; font-weight: 700; }
textarea, input[type=file] { width: 100%; border: 1px solid #d8e0eb; border-radius: 9px; background: white; padding: 11px; color: inherit; font: inherit; }
textarea { resize: vertical; line-height: 1.5; }
.button { min-height: 42px; border: 0; border-radius: 9px; padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.button:disabled { opacity: .55; }
.full { width: 100%; margin-top: 10px; }
.primary { color: #fff; background: #276be3; }
.secondary { color: #345171; background: #edf2f8; }
.small { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.separator { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #8b96a5; font-size: 11px; }
.separator::before, .separator::after { flex: 1; height: 1px; background: #e8edf3; content: ""; }
.hint { margin: 8px 0 0; color: #7b8799; font-size: 11px; line-height: 1.5; }
.message { min-height: 17px; margin: 10px 0 0; color: #276be3; font-size: 12px; }
.heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.heading-row h2 { margin-bottom: 3px; }
.heading-row .hint { margin-top: 0; }
.inbox { display: grid; gap: 9px; margin-top: 12px; }
.empty { margin: 4px 0; color: #818da0; font-size: 13px; }
.item { min-width: 0; padding: 11px; border: 1px solid #e4eaf2; border-radius: 10px; }
.item-title { margin: 0 0 5px; font-size: 13px; overflow-wrap: anywhere; }
.item-meta { margin: 0 0 8px; color: #7c899b; font-size: 10px; }
.item-text { display: block; max-height: 170px; overflow: auto; padding: 10px; border-radius: 7px; background: #f5f7fa; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; line-height: 1.5; }
.item-image { display: block; max-width: 100%; max-height: 290px; object-fit: contain; margin: 6px 0; border: 1px solid #edf0f4; border-radius: 7px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.item-actions .button { min-height: 36px; padding: 8px 10px; font-size: 12px; }
.copy-fallback { width: 100%; min-height: 72px; margin-top: 8px; padding: 8px; border: 1px solid #d8e0eb; border-radius: 7px; font: inherit; font-size: 12px; }
footer { padding: 4px 8px 8px; color: #8490a0; font-size: 10px; line-height: 1.5; text-align: center; }
