/* 2x.css - the 2X design system: the look the founder picked on the 2X Review page (4 Oct 2026, "Saffron": the
   mark's own saffron and green on warm paper, ink type). One file for bharat2x.com, the privacy page and /admin
   (bot/app.py serves it at /2x.css). System fonts only: the site makes no request to anyone else. Light and dark.

   Tokens: --paper (the page), --panel (a card), --ink, --muted, --line; --accent (saffron: buttons, rules) with
   --on-accent for what sits on it and --accent-ink for saffron as text (links, labels: it reads on paper); --ok, --bad. */
:root {
  --saffron: #f07f19; --green: #128c3c;
  --paper: #f6f1ea; --panel: #fffdf9; --ink: #1e2229; --muted: #5e6570; --line: #e6dfd3;
  --accent: #f07f19; --on-accent: #1e2229; --accent-ink: #b55305; --soft: #fdeedd;
  --ok: #128c3c; --ok-soft: #e8f4ec; --bad: #b3261e;
  --shadow: 0 1px 2px rgba(60, 40, 20, .10);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Nirmala UI", "Noto Sans Devanagari",
          "Noto Sans Telugu", sans-serif;
  --r-s: 8px; --r-m: 12px; --r-l: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15110d; --panel: #1d1813; --ink: #efe7dc; --muted: #a59b8f; --line: #3a3128;
    --accent: #ff9a3d; --on-accent: #1a120a; --accent-ink: #ffb067; --soft: #3a2614;
    --ok: #43c174; --ok-soft: #17281d; --bad: #ff8a80; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: 2rem; margin: 8px 0; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; }
ol, ul { padding-left: 1.3em; margin: 0; }
li { margin: 6px 0; }
.muted { color: var(--muted); }

/* a page of reading: bharat2x.com, the privacy page */
.page { max-width: 680px; margin: 0 auto; padding: 28px 18px 40px; }
.masthead { display: flex; align-items: center; gap: 12px; }
.masthead svg { width: 56px; height: 56px; flex: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(30, 34, 41, .12); }
.masthead .name { font-weight: 800; font-size: 1.35rem; color: inherit; text-decoration: none; }
.rule { height: 4px; width: 72px; margin-top: 4px; border-radius: 2px;
        background: linear-gradient(90deg, var(--saffron) 0 50%, var(--green) 50% 100%); }
.eyebrow { margin: 28px 0 0; color: var(--accent-ink); font-weight: 800; font-size: .9rem; letter-spacing: .08em;
           text-transform: uppercase; }
.lede { margin: 0 0 12px; font-size: 1.2rem; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px;
        box-shadow: var(--shadow); margin: 20px 0; }
.card > :first-child { margin-top: 0; }
.btn { display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 22px; border-radius: var(--r-m);
       background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; font-size: 1.08rem; }
.btn small { font-weight: 500; font-size: .9rem; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok);
        font-weight: 700; font-size: .95rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 44px; margin: 12px 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px;
                    height: 30px; border-radius: 50%; background: var(--soft); color: var(--accent-ink); font-weight: 800;
                    display: grid; place-items: center; font-size: .95rem; }
footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* a page of numbers: /admin */
.desk { font-size: 15px; line-height: 1.45; padding: 16px; }
.desk h1 { font-size: 20px; margin: 0 0 12px; }
.desk h2 { font-size: 16px; margin: 22px 0 8px; }
.desk table { border-collapse: collapse; width: 100%; background: var(--panel); border-radius: var(--r-s); overflow: hidden; }
.desk td, .desk th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.desk th { font-weight: 600; background: var(--soft); }
.desk .num { text-align: right; font-variant-numeric: tabular-nums; }
.desk .bad { color: var(--bad); }
.desk .ok { color: var(--ok); }
.desk .wrap { overflow-x: auto; }
.desk img, .desk video { max-width: 100%; height: auto; border-radius: var(--r-s); }
.desk pre { white-space: pre-wrap; background: var(--panel); padding: 10px; border-radius: var(--r-s); }
/* /admin's first screen (ADMIN.md): the status line, the week's few numbers, where they stop */
.desk h3 { font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
.desk h1.detail { margin-top: 36px; padding-top: 14px; border-top: 2px solid var(--line); }
.desk .now { padding: 10px 14px; border-radius: var(--r-m); background: var(--ok-soft); border-left: 6px solid var(--ok); }
.desk .now.bad { background: var(--soft); border-left-color: var(--bad); color: var(--ink); }
.desk .now.warn { background: var(--soft); border-left-color: var(--accent); color: var(--ink); }
/* a signal beside a line or a conversation: "the same question again ×3", "slow: 16 s", "annoyed" */
.desk .flag { display: inline-block; margin: 0 4px; padding: 0 6px; border-radius: var(--r-s); font-size: 12px;
              background: var(--soft); color: var(--bad); border: 1px solid var(--line); white-space: nowrap; }
.desk .alerts { margin: 8px 0; padding-left: 20px; color: var(--bad); }
.desk .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .desk .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.desk .tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px;
              display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.desk .tile span { color: var(--muted); font-size: 13px; }
.desk .tile b { font-size: 22px; font-variant-numeric: tabular-nums; }
.desk .tile small { color: var(--muted); font-variant-numeric: tabular-nums; }
.desk .barcell { width: 40%; }
.desk .bar { display: block; height: 10px; border-radius: 5px; background: var(--accent); min-width: 2px; }
.desk .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.desk .filters a, .desk .filters b { margin-right: 4px; }
/* one conversation, both sides (/admin/c/...): 2X's replies set off from theirs */
.desk .chat td:first-child { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.desk .chat tr.us td { background: var(--soft); }
.desk .chat tr.note td { color: var(--muted); font-size: 13px; }
/* /admin by tab (21 Oct 2026, on his phone): sticky tabs, the windows and filters as chips, every number a tap (44 px) */
.desk .tabs, .desk .win, .desk .chips { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
                                        margin: 0 -16px 6px; padding: 4px 16px; }
.desk .tabs { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line);
              margin-top: -16px; padding-top: 8px; padding-bottom: 8px; }
.desk .tabs a, .desk .win a, .desk .chips a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  text-decoration: none; flex: none; }
.desk .win a { min-height: 36px; font-size: 14px; }
.desk .tabs a.on, .desk .win a.on, .desk .chips a.on { background: var(--accent); border-color: var(--accent);
                                                        color: var(--on-accent); font-weight: 700; }
.desk .crumbs { margin: 4px 0 8px; font-size: 14px; color: var(--muted); }
.desk .crumbs a { display: inline-block; padding: 12px 0; }
.desk a.tile { color: var(--ink); text-decoration: none; min-height: 44px; }
.desk .tile.bad { border-color: var(--bad); }
.desk .tile.bad b { color: var(--bad); }
.desk .num a { display: inline-block; min-width: 44px; padding: 10px 0; text-align: right; }
.desk .tile b a { display: inline-block; min-width: 36px; padding: 6px 2px; text-align: center; }
.desk .pcard { display: block; margin: 8px 0; padding: 10px 12px; min-height: 44px; background: var(--panel);
               border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; }
.desk .pcard.open { border-left: 6px solid var(--bad); }
.desk .act { margin: 12px 0; padding: 12px 14px; }
.desk .act h2 { margin-top: 12px; }
.desk textarea, .desk input[type=text] { width: 100%; min-height: 44px; padding: 10px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); }
.desk button { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-m); background: var(--accent);
               color: var(--on-accent); font: inherit; font-weight: 700; }
.desk details > summary { min-height: 44px; display: flex; align-items: center; color: var(--accent-ink); cursor: pointer; }
.desk details.nh > summary { min-height: 32px; font-size: 13px; }
.desk .chat tr.here td, .desk .chat tr.mine td { background: var(--ok-soft); }
.desk .pager a, .desk .pager b { display: inline-block; min-width: 44px; padding: 10px; text-align: center; }
/* 22 Oct 2026: what each number counts under it, his notes on any of it, the media in its place, the ad's picture */
.desk .winline { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.desk .tcell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.desk .tcell > .tile { flex: 1; }
.desk .tile .def, .desk p.def { font-style: normal; font-size: 12px; line-height: 1.35; color: var(--muted); }
.desk .tile .def { margin-top: 4px; border-top: 1px dashed var(--line); padding-top: 4px; }
.desk .enotes { margin: 2px 0 10px; }
.desk .enote, .desk p.note { margin: 4px 0; padding: 6px 10px; font-size: 13px; background: var(--ok-soft);
                             border-radius: var(--r-s); }
.desk .enotes details.nh > summary { min-height: 28px; font-size: 12px; }
.desk .thumb { display: block; max-width: 180px; max-height: 180px; width: auto; height: auto; margin: 6px 0 2px;
               border-radius: var(--r-s); background: var(--paper); }
.desk video.thumb { max-width: 220px; max-height: 220px; }
.desk .media { display: inline-block; font-size: 13px; }
.desk audio { width: 220px; max-width: 100%; height: 40px; margin: 6px 0 2px; }
.desk .gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.desk .gallery figure { margin: 0; width: 160px; }
.desk .gallery .thumb, .desk .gallery video.thumb { max-width: 160px; }
.desk .gallery video.thumb { width: 160px; }
.desk .mini { margin: 6px 0; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line);
              border-radius: var(--r-m); }
.desk .mini a { display: inline-block; min-width: 32px; padding: 6px 0; text-align: center; }
.desk .gallery figcaption { font-size: 12px; color: var(--muted); }
.desk .tick { font-size: 12px; color: var(--muted); white-space: nowrap; }
.desk .tick.read { color: #2a8bd8; font-weight: 700; }
.desk .adimg { float: right; width: 48px; height: 48px; object-fit: cover; margin: 0 0 4px 8px; border-radius: var(--r-s); }
.desk .adimg.big { float: none; display: block; width: auto; height: auto; max-width: 180px; max-height: 180px; }
.desk .adline { margin: 4px 0 8px; }
.desk .adline p { margin: 4px 0; }
.desk .pcard.ghost { color: var(--muted); border-style: dashed; }
.desk .pcard::after { content: ""; display: block; clear: both; }
.desk .draft { margin: 8px 0; padding: 8px 10px; background: var(--soft); border-radius: var(--r-s); font-size: 14px; }
.desk .chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.desk .chk input { width: 22px; height: 22px; }
.desk button.ghostbtn { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.desk .lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.desk .chat tr.team td { background: var(--ok-soft); }
@media (prefers-color-scheme: dark) { .desk .tick.read { color: #6cb8ff; } }
