/* ===================================================================
   Design tokens - GRAPHITE PRO

   A tool, not a poster. Depth comes from tone, not decoration: five
   graphite levels (well, canvas, panel, raised, hover) separated by
   steps small enough to feel cohesive and large enough to read as
   elevation, plus 1px hairlines. No large gradients, no glow.

   One accent does all the punctuation. --source is the cool steel blue
   and it appears only where the user acts or the machine is working:
   focus ring, active step, the head of the progress fill, links. It is
   deliberately NOT the Generate button's fill - that button earns its
   weight from contrast and a crisp edge, so the interface stays
   overwhelmingly graphite.

   The source -> mid -> artifact journey survives, re-read as cool
   metal: live accent blue, to brushed steel, to the pale finish of a
   completed document. Semantic states stay subdued - they are signals,
   not accents, and none of them competes with the accent.

   Every colour and radius the interface uses is defined here and
   nowhere else. Component files reference these names only, so a new
   theme is a new :root block.
   =================================================================== */
:root {
  /* Tonal ladder: each step is small, but the order is always legible.
     well < canvas < panel < raised < hover */
  --panel-inset:  #08080a;   /* sunken: the URL field, the progress track */
  --bg:           #0a0a0b;   /* canvas */
  --panel-deep:   #0d0d0f;   /* foot of the tool column */
  --panel:        #101012;   /* the tool column */
  --panel-raised: #1a1a1d;   /* interactive: the Generate button at rest */
  --panel-hover:  #232327;   /* interactive: pointer over it */

  /* Hairlines, neutral so they never tint the surface they cross. */
  --line:         rgba(255, 255, 255, 0.06);   /* structure: dividers, rules */
  --line-strong:  rgba(255, 255, 255, 0.13);   /* the edge of a control */
  --line-hover:   rgba(255, 255, 255, 0.22);

  --badge-bg:     rgba(255, 255, 255, 0.035);
  --code-bg:      rgba(255, 255, 255, 0.055);

  --ink:          #f0f0f2;   /* off-white, not #fff: easier at length */
  --ink-bright:   #fbfbfd;   /* the serif half of the headline */
  --ink-muted:    #a6a6ad;
  --ink-faint:    #8b8b93;
  --ink-code:     #b9b9c1;
  --ink-done:     #c9c9d1;   /* label of a finished step */
  --ink-on-accent:#ffffff;   /* on the filled accent (active step numeral)
                                and on the raised button; pure white is
                                what keeps the small numeral legible */

  --placeholder:  #7d7d85;
  --dot-idle:     #3a3a40;   /* the "nothing running yet" bullet */
  --focus-ring:   #7fa3f0;   /* the accent, not white: focus is an action */
  --sheen:        rgba(255, 255, 255, 0.16);   /* progress shimmer */
  --gloss:        rgba(255, 255, 255, 0.055);  /* top hairline on a control */
  --gloss-lift:   rgba(255, 255, 255, 0.09);

  --source:       #4470cf;   /* the accent: focus, active, links, the
                                head of the fill. Dark enough that white
                                sits on it at AA. */
  --source-lift:  #7fa3f0;   /* the accent as text - link weight */
  --mid:          #8a94a8;   /* brushed steel */
  --artifact:     #d6dae2;   /* the pale finish of a finished document */
  --source-glow:  rgba(68, 112, 207, 0.32);    /* focus ring, active ring */
  --artifact-glow:rgba(214, 218, 226, 0.14);   /* a whisper off the fill */
  --source-wash:  rgba(68, 112, 207, 0.045);   /* tonal lift, not a blob */
  --source-pulse: rgba(68, 112, 207, 0.12);
  --source-line:  rgba(127, 163, 240, 0.40);   /* accent edge: link, hover */
  --artifact-line:rgba(214, 218, 226, 0.44);   /* rim of a finished step */

  /* Subdued on purpose. A signal has to be unmistakable without
     turning the page into a second accent. */
  --danger:       #dd6660;
  --danger-bg:    rgba(221, 102, 96, 0.075);
  --danger-line:  rgba(221, 102, 96, 0.26);
  --danger-ink:   #e39a95;   /* "offline" badge text */
  --danger-halo:  rgba(221, 102, 96, 0.16);

  --ok:           #4fa87a;
  --ok-bg:        rgba(79, 168, 122, 0.075);
  --ok-line:      rgba(79, 168, 122, 0.26);
  --ok-halo:      rgba(79, 168, 122, 0.16);

  --warn:         #c39440;
  --warn-line:    rgba(195, 148, 64, 0.26);
  --warn-halo:    rgba(195, 148, 64, 0.16);

  /* Geometry is part of a theme's personality, so it lives here too.
     Precision over softness: no pills on rectangular things. */
  --radius-sm:    4px;   /* badge, progress track */
  --radius-md:    6px;   /* input, button, alert */

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
