/* Direction: Inkwell Platform — enterprise document automation. Cool neutral canvas,
   white surfaces, hairline borders, one indigo accent, no gradients. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --border: #e2e5ec;
  --border-strong: #c8ccd6;
  --ink: #11131a;
  --muted: #5b6070;
  --accent: #3b49df;
  --accent-hover: #323ebe;
  --accent-ink: #ffffff;
  --accent-text: #3340c4;
  --accent-strong: #2a35a8;
  --accent-soft: #e8eafd;
  --accent-border: #a2a9ee;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dceae3;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #efe4dd;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f0dedf;
  --danger-strong: #b91c1c;
  --chart-1: #3b49df;
  --chart-2: #c235b8;
  --chart-3: #911302;
  --chart-4: #907303;
  --chart-5: #0e5d2d;
  --chart-6: #10899a;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 650;
  --display-tracking: -0.02em;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --card-pad: 1.25rem;
  --x-draft: #8b90a0;
  --x-review: #b4700f;
  --x-sent: #3b49df;
  --x-viewed: #0e7490;
  --x-signed: #157a51;
  --x-declined: #b4322f;
  --x-paper-line: rgba(17, 19, 26, 0.06);
  --x-band: #11131a;
  --x-on-dark: #ffffff;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #050713;
  --surface: #1e202b;
  --surface-2: #12131f;
  --border: #282a34;
  --border-strong: #50515a;
  --ink: #f7f8fa;
  --muted: #96989e;
  --accent: #3b49df;
  --accent-hover: #5864e4;
  --accent-ink: #ffffff;
  --accent-text: #7d86ea;
  --accent-strong: #727ce8;
  --accent-soft: #111640;
  --accent-border: #1d256f;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #09221c;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2c1811;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2d0c15;
  --danger-strong: #d16969;
  --chart-1: #495df4;
  --chart-2: #d64acb;
  --chart-3: #e82b0f;
  --chart-4: #a4840c;
  --chart-5: #009a4a;
  --chart-6: #199cb0;
}

/* Inkwell's own screens: the document sheet, the signature pad, the activity rail. */

.paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 70px -42px rgba(0, 0, 0, 0.42);
}

.hatch {
  background-image: linear-gradient(135deg, var(--x-paper-line) 0 1px, transparent 1px 9px);
}

.sign-wrap {
  position: relative;
}

.sign-pad {
  display: block;
  width: 100%;
  height: 190px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-input);
  touch-action: none;
  cursor: crosshair;
}

.sign-wrap::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 46px;
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.rail > li {
  position: relative;
  padding-left: 1.6rem;
  padding-bottom: 1.1rem;
}

.rail > li::before {
  content: "";
  position: absolute;
  left: 0.22rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}

.rail > li::after {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 1.15rem;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.rail > li:last-child {
  padding-bottom: 0;
}

.rail > li:last-child::after {
  display: none;
}

.script {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1.15;
}

@media print {
  .no-print {
    display: none !important;
  }
  .paper {
    box-shadow: none;
    border: 0;
  }
}
