@font-face {
  font-family: "KVS Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "KVS Inter Tight";
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  font-family: "KVS Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #212529;
  background: #fff;
  font-synthesis: none;
  --ink: #212529;
  --muted: #69757d;
  --brand: #1aa7c9;
  --brand-deep: #086d84;
  --accent: #f29c00;
  --line: #e0e8eb;
  --surface: #f1fafc;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, textarea { font: inherit; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #def3f8; }
[hidden] { display: none !important; }
.pane { max-width: 560px; margin: auto; padding: 22px 20px 20px; }
.app-header { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 48px; height: 42px; display: grid; place-items: center; flex: none;
  border-radius: 8px; background: var(--brand); color: #0b3541;
  box-shadow: inset 0 -4px 0 var(--accent);
  font-family: "KVS Inter Tight", Inter, sans-serif; font-size: 18px;
  font-weight: 800; letter-spacing: -.6px; padding-bottom: 3px;
}
.app-header h1 { font-family: "KVS Inter Tight", Inter, sans-serif; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.35px; margin: 0; }
.app-header p { font-size: 11px; margin: 4px 0 0; color: var(--muted); }
.icon-button { border: 0; background: transparent; color: #697b83; width: 30px; height: 30px; font-size: 21px; border-radius: 6px; display: grid; place-items: center; }
.icon-button:hover { background: #e8f6fa; color: var(--brand-deep); }
#logout { margin-left: auto; font-size: 20px; }
.profile { padding: 12px 0 16px; display: flex; align-items: center; gap: 7px; font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.profile-status { margin-left: auto; color: var(--brand-deep); font-size: 10px; }
.message-card { background: var(--surface); border: 1px solid #d6edf3; border-radius: 10px; padding: 14px; margin-bottom: 21px; }
.eyebrow { font-size: 10px; color: #58737d; overflow-wrap: anywhere; }
.message-card h2 { font-family: "KVS Inter Tight", Inter, sans-serif; font-size: 15px; line-height: 1.45; letter-spacing: -.1px; margin: 6px 0 12px; font-weight: 600; overflow-wrap: anywhere; }
.message-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mailbox-type { font-size: 10px; border: 1px solid #cce4eb; background: #fff; color: #486b78; border-radius: 5px; padding: 2px 6px; }
.category-pill { font-size: 10px; font-weight: 600; border-radius: 5px; background: #fff0cf; color: #795000; padding: 3px 7px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.section-heading h2 { font-family: "KVS Inter Tight", Inter, sans-serif; font-size: 14px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.count { font-weight: 500; font-size: 10px; color: var(--brand-deep); display: inline-grid; place-items: center; min-width: 19px; height: 19px; border-radius: 5px; background: #e6f6fa; }
.notes { display: grid; gap: 13px; }
.note { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fff; }
.note.own { border-color: #cfe8ef; }
.note-head { display: flex; align-items: center; gap: 8px; }
.avatar { width: 26px; height: 26px; background: #fff0d3; color: #865600; border-radius: 50%; font-size: 10px; font-weight: 600; display: grid; place-items: center; flex: none; }
.note.own .avatar { background: #e1f5fa; color: var(--brand-deep); }
.note-author { font-size: 11px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.note-date { color: #73808a; font-size: 9px; white-space: nowrap; margin-left: auto; flex: none; }
.note-text { font-size: 12px; line-height: 1.65; margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #45545e; }
.note-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.text-button { background: none; border: 0; padding: 0; font-size: 10px; color: var(--brand-deep); }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.text-button.danger { color: #ac5145; }
.empty { text-align: center; padding: 22px 14px; border: 1px dashed #cfe3ea; border-radius: 9px; color: #75858d; }
.empty-symbol { font-size: 26px; color: #80c7d8; margin-bottom: 5px; }
.empty h3 { font-family: "KVS Inter Tight", Inter, sans-serif; font-size: 13px; color: #466e7b; margin: 4px 0; font-weight: 600; }
.empty p { font-size: 11px; margin: 4px 0; line-height: 1.7; }
.compose { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.compose label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 8px; }
textarea { width: 100%; resize: vertical; min-height: 105px; max-height: 320px; border: 1px solid #cfdde3; border-radius: 7px; background: #fff; font-size: 12px; line-height: 1.6; color: #334750; padding: 11px 12px; }
textarea::placeholder { color: #75818a; }
.compose-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.char-count { font-size: 10px; color: #76848d; }
.button { border: 0; border-radius: 6.4px; font-size: 11px; font-weight: 600; padding: 10px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; line-height: 1.4; }
.primary { color: #212529; background: var(--accent); }
.primary:hover:not(:disabled) { background: #db8d00; }
.secondary { background: #e8f6fa; color: var(--brand-deep); }
.connection { border: 1px solid #d6e9ef; padding: 20px; border-radius: 9px; margin: 18px 0 0; color: var(--muted); }
.connection h2 { font-family: "KVS Inter Tight", Inter, sans-serif; font-size: 16px; color: var(--ink); margin: 0 0 7px; font-weight: 600; }
.connection p { font-size: 12px; overflow-wrap: anywhere; }
.connection a { display: block; margin-top: 18px; color: var(--brand-deep); font-size: 12px; }
.feedback { font-size: 11px; background: #eaf7f4; border: 1px solid #d2e9e3; color: #32685b; border-radius: 7px; padding: 9px 11px; margin: 0 0 15px; overflow-wrap: anywhere; }
.feedback.error { background: #fff1ef; border-color: #f2d7d2; color: #a35a50; }
.category-warning { border: 1px solid #eddfbc; background: #fffbf0; border-radius: 7px; font-size: 11px; padding: 10px; margin-bottom: 14px; color: #806530; }
.category-warning p { margin: 0 0 5px; }
.category-warning button { color: #775917; font-weight: 600; }
.demo-label { font-size: 9px; text-align: center; background: #fff4dc; color: #8a611a; padding: 6px; }
.note-edit { margin-top: 10px; }
.note-edit textarea { min-height: 90px; }
.edit-buttons { display: flex; gap: 7px; justify-content: flex-end; margin-top: 8px; }
.delete-confirm { font-size: 11px; color: #9d615a; background: #fff6f2; padding: 8px; border-radius: 6px; margin-top: 9px; }
.delete-confirm p { margin: 0 0 7px; }
.delete-confirm .button { font-size: 10px; padding: 6px 9px; }
.auth-page { background: var(--surface); display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-page main { width: 100%; max-width: 420px; background: #fff; border: 1px solid #d5eaf0; padding: 32px; border-radius: 12px; box-shadow: 0 12px 40px #15576d0a; }
.auth-page h1 { font-family: "KVS Inter Tight", Inter, sans-serif; font-size: 22px; font-weight: 600; margin-top: 20px; }
.auth-page p { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
/* The surrounding example inbox is illustrative; the actual add-in is the right pane. */
.demo-body { background: #edf1f3; color: #34434b; }
.demo-topbar { height: 54px; display: flex; align-items: center; padding: 0 24px; background: #fff; border-bottom: 1px solid #e0e7e8; gap: 12px; }
.demo-logo { width: 28px; height: 28px; background: #1679bb; color: #fff; display: grid; place-items: center; border-radius: 6px; font-weight: 700; font-size: 17px; }
.demo-topbar strong { font-weight: 600; font-size: 15px; }
.demo-topbar span:last-child { margin-left: auto; font-size: 11px; color: #819097; }
.demo-layout { display: grid; grid-template-columns: 190px minmax(340px, 1fr) 350px; min-height: calc(100vh - 54px); }
.demo-nav { padding: 30px 16px; background: #f5f8f9; border-right: 1px solid #e1e8eb; }
.demo-nav .label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; color: #819198; margin: 0 10px 12px; }
.demo-nav button { display: block; width: 100%; border: 0; text-align: left; border-radius: 7px; padding: 10px; color: #60757e; background: transparent; font-size: 12px; margin-bottom: 5px; }
.demo-nav button.active { background: #e4edf2; color: #30617e; font-weight: 600; }
.demo-nav p { font-size: 11px; line-height: 1.7; color: #8b9ba1; margin: 30px 10px; }
.demo-center { padding: 30px; }
.demo-center h1 { font-size: 23px; font-weight: 600; letter-spacing: -.5px; margin: 0 0 3px; }
.demo-intro { font-size: 12px; color: #7e9099; margin: 0 0 23px; }
.demo-mail-list { background: #fff; border: 1px solid #e0e7e9; border-radius: 11px; overflow: hidden; }
.demo-mail { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 15px 17px; border-bottom: 1px solid #edf1f2; border-left: 3px solid transparent; }
.demo-mail:last-child { border-bottom: 0; }
.demo-mail:hover { background: #f8fafb; }
.demo-mail.active { background: #f0f6f9; border-left-color: #528fad; }
.demo-mail-top { display: flex; justify-content: space-between; color: #5b6f7b; font-size: 11px; }
.demo-mail strong { display: block; font-size: 13px; font-weight: 600; margin: 4px 0; color: #344f5e; }
.demo-mail p { margin: 3px 0; color: #8b9ca4; font-size: 11px; }
.demo-mail .category-pill { display: inline-block; margin-top: 7px; }
.demo-explainer { margin-top: 25px; border: 1px dashed #cbd9df; border-radius: 10px; padding: 17px; color: #8197a0; font-size: 11px; line-height: 1.8; }
.demo-explainer strong { color: #5d7783; font-weight: 600; }
.demo-frame { display: block; width: 100%; height: calc(100vh - 54px); min-height: 860px; border: 0; background: #fff; border-left: 1px solid #dce5e3; }
.demo-side { background: #fff; }
.demo-note { display: flex; align-items: center; gap: 6px; margin-top: 13px; font-size: 10px; color: #8e9ba0; }
.demo-dot { width: 5px; height: 5px; background: var(--brand); border-radius: 50%; }
@media (max-width: 1020px) {
  .demo-layout { grid-template-columns: minmax(300px, 1fr) 350px; }
  .demo-nav { display: none; }
  .demo-center { padding: 25px 20px; }
}
@media (max-width: 700px) {
  .demo-layout { display: flex; flex-direction: column; }
  .demo-center { padding: 20px; }
  .demo-center h1 { font-size: 20px; }
  .demo-explainer { display: none; }
  .demo-frame { height: 900px; border-left: 0; border-top: 1px solid #dce5e3; min-height: 800px; }
  .demo-topbar { padding: 0 16px; }
  .demo-topbar span:last-child { font-size: 9px; }
  .demo-intro { margin-bottom: 13px; }
  .demo-mail { padding: 10px 14px; }
  .pane { padding: 20px 18px; }
}
@media (max-width: 360px) {
  .pane { padding: 18px 14px; }
  .app-header h1 { font-size: 19px; }
  .brand-mark { width: 44px; height: 40px; font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .note { animation: appear .18s ease-out; }
  @keyframes appear { from { opacity: .3; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}
