* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font-family: "Segoe UI", system-ui, sans-serif; background: #f5f5f5; color: #242424; }
.win { display: flex; flex-direction: column; height: 100%; }
.win-bar {
  height: 28px; flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; background: #f3f3f3; border-bottom: 1px solid #e0e0e0; font-size: 11px;
}
.win-bar img { width: 14px; height: 14px; border-radius: 3px; }
.win-bar .sys { margin-left: auto; opacity: .5; letter-spacing: 6px; font-size: 10px; }
#app { flex: 1; display: flex; min-height: 0; background: #fafafa; }
.sidebar { width: 200px; background: #f5f5f5; border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; }
.sidebar-brand { padding: 12px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.sidebar-brand img { width: 24px; height: 24px; border-radius: 5px; }
.nav-item { padding: 8px 12px; margin: 1px 6px; border-radius: 4px; font-size: 12px; color: #616161; display: flex; align-items: center; gap: 8px; }
.nav-item.active { background: #e8f3fc; color: #0078d4; font-weight: 600; }
.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.search-top { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e0e0e0; background: #fff; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid #d1d1d1; border-radius: 4px; padding: 0 10px; background: #fafafa; min-height: 32px; }
.search-box.focus { border-color: #0078d4; box-shadow: 0 0 0 1px #0078d4; background: #fff; }
.search-box input { border: 0; background: transparent; flex: 1; font-size: 12px; outline: none; width: 100%; }
.btn-f { font-size: 11px; padding: 6px 10px; border: 1px solid #d1d1d1; border-radius: 4px; background: #fff; color: #424242; }
.content { flex: 1; display: grid; grid-template-columns: 1fr 1.05fr; min-height: 0; }
.results { border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; min-width: 0; background: #fff; }
.results-h { padding: 8px 12px; font-size: 11px; color: #616161; border-bottom: 1px solid #ededed; }
.result { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; cursor: default; transition: background .2s; }
.result.on { background: #e8f3fc; }
.result .r1 { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 2px; }
.result .from { font-weight: 600; color: #242424; }
.result .date { color: #757575; }
.result .subj { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.result .snip { font-size: 11px; color: #616161; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
mark { background: #fff4ce; color: inherit; padding: 0 1px; border-radius: 2px; }
.preview { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.preview-h { padding: 12px 14px; border-bottom: 1px solid #ededed; }
.preview-h h2 { margin: 0 0 8px; font-size: 14px; line-height: 1.3; }
.meta { font-size: 11px; color: #616161; line-height: 1.5; }
.preview-b { padding: 12px 14px; font-size: 12px; line-height: 1.55; color: #424242; overflow: auto; flex: 1; }
.status { display: flex; justify-content: space-between; padding: 4px 10px; font-size: 10px; color: #757575; background: #f5f5f5; border-top: 1px solid #e0e0e0; }
.status .demo { color: #0078d4; font-weight: 600; }
.caret { display: inline-block; width: 1px; height: 12px; background: #0078d4; margin-left: 1px; vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pulse { animation: pulse .5s ease; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.01); } }
