@font-face {
  font-family: Inter;
  src: url('/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Matches Kanagile's shared palette and sidebar; no runtime dependency. */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --paper: #f8fafc;
  --line: #e2e8f0;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent: #e0f2fe;
  --accent-border: #bae6fd;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px Inter, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.rail { position: fixed; inset: 0 auto 0 0; width: 208px; background: #f8fafc; border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; }
.brand { display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); text-decoration: none; padding: 0 8px 18px; border-bottom: 1px solid var(--line); }
.brand img { width: 84px; height: 48px; object-fit: contain; object-position: left center; }
.brand span { display: block; font-size: 18px; font-weight: 700; margin-top: 2px; }
.rail-label { font-size: 10px; letter-spacing: .8px; color: var(--muted); margin: 26px 12px 14px; }
.rail-active { background: var(--accent); border: 1px solid var(--accent-border); color: #075985; padding: 12px; border-radius: 8px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; }
.rail-note { font-size: 11px; line-height: 1.6; margin: 20px 12px; color: var(--muted); }
.operator { margin-top: auto; border-top: 1px solid var(--line); padding: 16px 8px 4px; display: flex; gap: 10px; align-items: center; font-size: 12px; }
.operator small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.avatar { background: #0ea5e9; color: white; border-radius: 50%; padding: 10px; font-size: 11px; font-weight: 600; }
main { margin-left: 208px; padding: 0 32px; max-width: 1680px; }
.demo-banner { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 600; letter-spacing: .6px; display: flex; align-items: center; gap: 8px; color: #475569; }
.demo-banner > span:last-child { margin-left: auto; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #0ea5e9; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 0; }
.page-heading { display: flex; align-items: center; gap: 16px; }
.page-icon { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #38bdf8, #0284c7); color: white; box-shadow: 0 4px 6px #0284c726; font-size: 28px; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.75px; margin: 0; }
header p { color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: var(--primary); color: white; border: 1px solid var(--primary); border-radius: 6px; padding: 10px 16px; font-size: 13px; font-weight: 500; }
.primary:hover { background: var(--primary-hover); }
.primary span { font-size: 18px; line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: white; padding: 20px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px #0f172a04; }
.stat strong { font-size: 28px; font-weight: 700; display: block; margin-top: 10px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat:first-child { background: linear-gradient(135deg, #f8fafc, #f0f9ff, white); border-color: var(--accent-border); }
.desk { display: grid; grid-template-columns: minmax(250px, 34%) 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; min-height: 550px; box-shadow: 0 1px 3px #0f172a06; }
.inbox { border-right: 1px solid var(--line); background: white; }
.inbox-head { padding: 20px 18px 12px; display: flex; justify-content: space-between; align-items: center; }
.inbox-head h2 { font-size: 17px; font-weight: 600; margin: 0; }
.inbox-head span { color: var(--muted); font-size: 11px; }
input, select, textarea { border: 1px solid #cbd5e1; border-radius: 6px; background: white; color: var(--ink); padding: 10px; max-width: 100%; }
#search { width: calc(100% - 36px); margin: 0 18px; font-size: 12px; }
.filters { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 12px; color: #475569; }
.filters select { flex: 1; padding: 7px; }
.case { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 19px 18px; color: var(--ink); }
.case:hover { background: #f8fafc; }
.case.selected { background: #f0f9ff; box-shadow: inset 3px 0 #0ea5e9; }
.case strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; margin: 9px 0; }
.case small { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.badge { display: inline-block; border-radius: 12px; background: #e0f2fe; color: #075985; padding: 4px 8px; font-size: 10px; font-weight: 500; }
.empty { padding: 52px 28px; text-align: center; color: var(--muted); }
.empty h2 { font-size: 22px; color: var(--ink); }
.empty .symbol { font-size: 42px; color: #0284c7; }
#detail { padding: 25px 28px; min-width: 0; }
.detail-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
#detail h2 { font-size: 23px; font-weight: 600; line-height: 1.35; letter-spacing: -.4px; margin: 12px 0; overflow-wrap: anywhere; }
.requester { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.properties { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 20px 0; }
.properties label { font-size: 11px; color: var(--muted); }
.properties select { width: 100%; margin-top: 6px; padding: 8px; font-size: 12px; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-top: 22px; }
.tabs button { background: none; border: 0; padding: 12px 0; color: var(--muted); font-size: 12px; }
.tabs button.active { color: #0369a1; border-bottom: 2px solid #0ea5e9; }
.message { border: 1px solid var(--line); border-radius: 8px; margin-top: 18px; padding: 16px; background: #f8fafc; }
.message-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.message pre { font: 13px/1.7 Inter, Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 0; }
.message.note { background: #fffbeb; border-color: #fde68a; }
.message.draft { background: #f0f9ff; border-color: #bae6fd; }
.composer { margin-top: 24px; }
.composer label { display: block; font-size: 12px; margin-bottom: 8px; }
.composer textarea { width: 100%; resize: vertical; min-height: 115px; line-height: 1.5; }
.compose-actions { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 10px; }
.secondary { border: 1px solid #cbd5e1; background: white; color: #334155; padding: 9px 12px; border-radius: 6px; font-size: 12px; }
.secondary:hover { background: #f1f5f9; }
.hint { font-size: 11px; color: var(--muted); line-height: 1.5; }
.activity { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.activity small { display: block; color: var(--muted); margin-top: 5px; }
footer { display: flex; justify-content: space-between; padding: 20px 0; font-size: 10px; color: var(--muted); }
#notice { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #0f172a; color: white; padding: 12px 22px; border-radius: 6px; box-shadow: 0 5px 20px #0002; display: none; max-width: 90%; z-index: 3; }
#notice.visible { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (max-width: 1100px) {
  main { padding: 0 24px; margin-left: 175px; }
  .rail { width: 175px; }
  .desk { grid-template-columns: 290px 1fr; }
  .properties { grid-template-columns: 1fr; }
  header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 780px) {
  .rail { position: static; width: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); display: block; }
  .brand { flex-direction: row; align-items: center; gap: 12px; padding: 0; border: 0; }
  .brand img { width: 68px; height: 38px; }
  .brand span { font-size: 17px; }
  .rail-label, .rail-active, .rail-note, .operator { display: none; }
  main { margin-left: 0; padding: 0 16px; }
  .demo-banner { flex-wrap: wrap; }
  .demo-banner > span:last-child { width: 100%; margin: 0; }
  header { gap: 16px; padding: 24px 0; }
  .page-heading { gap: 12px; }
  .page-icon { width: 44px; height: 44px; border-radius: 10px; }
  h1 { font-size: 25px; }
  header p { font-size: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 16px; }
  .desk { display: block; }
  .inbox { border-right: 0; border-bottom: 1px solid var(--line); }
  #cases { max-height: 280px; overflow: auto; }
  #detail { padding: 22px 16px; }
  .properties { grid-template-columns: 1fr; }
  .compose-actions { align-items: stretch; flex-direction: column; }
  footer { gap: 15px; line-height: 1.5; }
  .message-head { flex-wrap: wrap; }
}
/* Shared Myatt brand, with a dedicated internal staff entry point. */
.login-shell { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { max-width: 500px; padding: 40px; border: 1px solid #e2e8f0; border-radius: 16px; background: white; box-shadow: 0 20px 60px #0f172a0a; }
.login-card p { line-height: 1.7; }
.login-link { display: block; text-align: center; text-decoration: none; margin: 24px 0; padding: 14px; border-radius: 8px; }
.mail-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
[hidden] { display: none !important; }
.content-shell { margin: 0 auto; max-width: 1050px; padding: 24px; }
.knowledge-layout { display:grid; grid-template-columns:1fr 2fr; gap:24px; margin-top:30px; }
.stacked { display:grid; gap:16px; }
.stacked label { display:grid; gap:8px; }
.stacked input,.stacked textarea { width:100%; }
.suggestions { border:1px solid var(--accent-border); padding:14px; border-radius:8px; margin-top:18px; background:#f0f9ff; }
.suggestions h3 { margin-top:0; font-size:14px; }
.suggestions pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; }
@media(max-width:780px) { .knowledge-layout { grid-template-columns:1fr; } }
