:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17242a; background: #f4f7f8; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, textarea, input { font: inherit; }
button { border: 0; border-radius: 10px; padding: 10px 15px; background: #135570; color: white; cursor: pointer; font-weight: 650; }
button:hover:not(:disabled) { filter: brightness(.93); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: #e6eef1; color: #183a49; }
button.danger-safe { background: #173f51; }
code { background: #eef3f5; padding: 2px 5px; border-radius: 5px; }
.app-shell { width: min(980px, 100%); margin: 0 auto; padding: 28px 22px 48px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h1 { margin: 2px 0 0; font-size: clamp(28px, 5vw, 42px); }
h2 { margin: 0 0 10px; font-size: 20px; }
.eyebrow { color: #135570; font-size: 12px; letter-spacing: .16em; font-weight: 800; }
.test-badge { padding: 7px 10px; border-radius: 999px; background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; font-size: 12px; font-weight: 800; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #dfe8ec; padding: 4px; border-radius: 14px; gap: 4px; margin-bottom: 16px; }
.tabs button { background: transparent; color: #31505e; }
.tabs button.active { background: white; color: #103f53; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.connection-bar, .panel { background: white; border: 1px solid #d9e3e7; border-radius: 16px; padding: 18px; margin: 14px 0; }
.connection-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connection-bar div { display: flex; flex-direction: column; gap: 3px; }
.connection-bar span, .muted, .participant span, .inbox-list article span { color: #61747d; font-size: 14px; }
textarea { width: 100%; min-height: 210px; resize: vertical; border: 1px solid #bfcfd6; border-radius: 12px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; color: #20323a; background: #fbfcfd; }
textarea:focus { outline: 3px solid rgba(19,85,112,.15); border-color: #135570; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.file-button { display: inline-flex; align-items: center; border-radius: 10px; padding: 10px 15px; background: #135570; color: white; cursor: pointer; font-weight: 650; }
.file-button input { display: none; }
.selected-file { margin-left: 10px; font-size: 14px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.summary-grid div { background: #f4f7f8; border-radius: 10px; padding: 10px; min-width: 0; }
.summary-grid span { display: block; color: #677a83; font-size: 12px; margin-bottom: 4px; }
.summary-grid strong { display: block; overflow-wrap: anywhere; }
.status, .notice, .busy { padding: 10px 12px; border-radius: 10px; margin-top: 10px; font-size: 14px; }
.status.ok { background: #e7f4ed; color: #205d3b; }
.status.error { background: #fae9e7; color: #8e2c22; }
.status.warning { background: #fff4db; color: #755307; }
.notice { background: #e8f0f4; color: #204b5e; border: 1px solid #c7dae2; }
.busy { background: #f3f1ff; color: #4c3e7d; }
.participant { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.pdf-frame { width: 100%; height: 620px; border: 1px solid #d9e3e7; border-radius: 10px; background: #f7f7f7; }
.inbox-list article { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid #e4ebee; padding: 12px 0; }
.inbox-list article:first-child { margin-top: 12px; }
.inbox-list article > div:first-child { display: flex; flex-direction: column; gap: 4px; }
footer { color: #70828a; font-size: 12px; text-align: center; margin-top: 30px; }
@media (max-width: 720px) { .app-shell { padding: 18px 12px 36px; } .summary-grid { grid-template-columns: 1fr 1fr; } .tabs { grid-template-columns: 1fr; } .inbox-list article { align-items: flex-start; flex-direction: column; } .pdf-frame { height: 480px; } }
@media (max-width: 430px) { .summary-grid { grid-template-columns: 1fr; } header { align-items: flex-start; } }
