@font-face { font-family: "Cormorant"; src: url(/fonts/CormorantGaramond-Medium.ttf); font-display: swap; }
@font-face { font-family: "Crimson"; src: url(/fonts/CrimsonPro-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Crimson"; src: url(/fonts/CrimsonPro-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/NunitoSans-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/NunitoSans-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/NunitoSans-Bold.ttf); font-weight: 700; font-display: swap; }
:root {
  --black: #0b0b0b; --charcoal: #151413; --ivory: #f6f2eb; --card: #fffdf9; --line: #e6dfd2;
  --gold: #c8a96f; --gold-light: #d9be8a; --gold-dark: #8e6e3a; --ink: #1a1714; --soft: #5e584f; --muted: #7c766d;
  --danger: #b3261e; --ok: #2e6b4f; --warn: #9a6a12; --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--ivory); color: var(--ink); font-family: "Nunito", "Noto Sans Bengali", "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45; }
h1, h2, h3, h4 { font-family: "Crimson", Georgia, serif; font-weight: 600; margin: 0; color: var(--ink); }
h2 { font-size: 26px; } h3 { font-size: 21px; } h4 { font-size: 17px; }
p { margin: 0; }
a { color: var(--gold-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
footer { margin-top: auto !important; }
#view, #app { flex: 1; }
.brand { color: #e7cf9f; text-align: center; line-height: 1; text-decoration: none; display: inline-block; }
.brand b { display: block; font-family: "Cormorant", Georgia, serif; font-weight: 500; font-size: 30px; letter-spacing: .3em; padding-left: .3em; background: linear-gradient(135deg, #f0dcb4, #c8a96f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: 10px; letter-spacing: .03em; margin-top: 3px; color: #f4efe6; }
.bar { background: var(--black); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; min-height: 66px; }
.bar a.link, .bar button.link { color: #e7cf9f; background: none; border: 0; cursor: pointer; text-decoration: none; padding: 6px 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; min-height: 44px; padding: 8px 18px; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #b4935c); color: var(--ink); }
.btn.black { background: var(--charcoal); color: #fff; }
.btn.ghost { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn.danger { background: var(--card); border-color: var(--danger); color: var(--danger); }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.field textarea { min-height: 80px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 1px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 13px; }
.note { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; background: #efe9dc; }
.note.bad { background: #f8e6e3; color: var(--danger); }
.note.good { background: #e6f1ea; color: var(--ok); }
.note.warn { background: #f7eeda; color: var(--warn); }
.hide { display: none !important; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: #eee7da; color: var(--soft); white-space: nowrap; }
.tag.good { background: #e0efe6; color: var(--ok); }
.tag.bad { background: #f8e0dc; color: var(--danger); }
.tag.warn { background: #f7eeda; color: var(--warn); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid #efe9dd; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; display: block; }
.stat b { display: block; font-family: "Crimson", serif; font-size: 30px; line-height: 1.1; }
.stat.alert b { color: var(--danger); }
dialog { border: 0; border-radius: 16px; padding: 22px; width: min(620px, calc(100vw - 32px)); max-height: 86vh; overflow: auto; background: var(--ivory); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.45); }
.map { width: 100%; height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: #e7e2d6; z-index: 0; }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; }
.timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); font-size: 13px; }
main { width: 100%; }
@media (max-width: 760px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .bar { padding: 10px 16px; gap: 8px; }
  .bar nav { flex-wrap: nowrap; gap: 4px; }
  .bar nav a[href="#/"] { display: none; }
  .bar a.link, .bar button.link { font-size: 13px; white-space: nowrap; }
  .brand b { font-size: 24px; }
  .brand small { font-size: 8px; white-space: nowrap; }
}
