@font-face {
  font-family: "Noto Sans Bengali";
  src: url("/static/fonts/noto-sans-bengali.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Noto Sans";
  src: url("/static/fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #1b1f27;
  --muted: #5b6472;
  --line: #d9dde4;
  --accent: #7b1078;
  --accent-ink: #ffffff;
  --danger: #b42318;
  --ok: #067647;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Noto Sans Bengali", "Noto Sans", system-ui, sans-serif;
}
main, .bar { max-width: 56rem; margin-inline: auto; padding-inline: 1rem; }
main { padding-block: 1rem 3rem; }
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; }
.bar nav { display: flex; gap: 1rem; align-items: center; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; }
h1 { font-size: 1.5rem; margin: 0 0 0.5rem; line-height: 1.3; }
h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-block: 1rem;
}
.narrow { max-width: 26rem; margin-inline: auto; margin-block-start: 3rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.inline { display: inline; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
input[type="email"], input[type="password"], select, textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { resize: vertical; line-height: 1.6; }
:focus-visible { outline: 3px solid #c58bc2; outline-offset: 2px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--danger); border-color: #f0b4ae; }
.btn.big { min-height: 3.25rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }
.drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.drop.over { border-color: var(--accent); background: #faf0fa; }
.drop-title { margin: 0; font-weight: 600; }
.drop .row { justify-content: center; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
legend { font-weight: 600; padding-inline: 0.35rem; }
.choice { flex-direction: row; align-items: flex-start; gap: 0.75rem; font-weight: 400; }
.choice input { margin-top: 0.4rem; accent-color: var(--accent); }
.notice { padding: 0.75rem 1rem; border-radius: 8px; margin: 0.5rem 0; }
.notice.error { background: #fef3f2; color: var(--danger); border: 1px solid #f0b4ae; }
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.jobs li:first-child { border-top: 0; }
.jobs a { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-width: 0; }
.job-label { overflow-wrap: anywhere; }
.badge { font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; background: #eef0f4; white-space: nowrap; }
.badge.done { background: #e3f6ec; color: var(--ok); }
.badge.failed { background: #fef3f2; color: var(--danger); }
.badge.running { background: #fff4d6; color: #8a5a00; }
.job-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.job-head h1 { font-size: 1.25rem; }
progress { width: 100%; height: 0.75rem; accent-color: var(--accent); }
.actions { margin-block: 0.75rem; }
.page-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.preview { width: 100%; max-height: 32rem; object-fit: contain; background: #eef0f4; border-radius: 8px; border: 1px solid var(--line); }
.result { min-height: 12rem; }
@media (min-width: 52rem) {
  .page-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  main, .bar { max-width: 64rem; }
}
