/* ============================================================================
   RESPONSIVE BREAKPOINT SCALE - apply these five widths consistently.
   Media queries can't read CSS vars, so treat these as the canonical set:
     xs  <=480   phone            (single column, drawer nav)
     sm   640    large phone      (2-up metrics/cards)
     md   768    tablet portrait  (tables -> cards below this)
     lg  1024    small laptop     (top-bar links return at >=1024; drawer below)
     xl  1280    desktop          (max content width cap)
   New rules should use max-width:1023 / 767 / 639 / 480 and min-width:768 /
   1024. Legacy one-off widths are being migrated onto this scale.
   ============================================================================ */
/* Geist + Geist Mono (OFL, self-hosted - no third-party font requests from the
   merchant app). Static weights, not the variable file. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/Geist-Regular-4d2c1566.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/Geist-Medium-ef6f942b.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/Geist-SemiBold-cea093f6.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/assets/Geist-Bold-97ab0081.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/GeistMono-Regular-e74f800f.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("/assets/GeistMono-Medium-5ea5d43b.woff2") format("woff2"); }

/* E - "Calm Top Bar" tokens (docs/specs/redesign-e-calm-top-bar.md) in the
   Send Invoice pastel: a soft mint page, white panels on mint hairlines, no
   shadows, brand green as the one accent. Polaris controls keep Shopify's own
   colours (Built for Shopify 4.1.1); the mint is the ground and the lines.
   Pages read these; don't redefine them per page - that is how the app drifted
   into four slightly different greens. */
:root {
  --bg: #edf4f0;
  --panel: #ffffff;
  --panel-subtle: #f6faf8;
  --text: #16181a;
  /* Both clear 4.5:1 for small text on every surface they sit on - white, the
     page ground, the subtle and accent-weak panels (#6b6f73/#8a8e92 managed
     4.2 and 3.0). Faint is still the lighter of the two. */
  --muted: #5a5e63;
  --faint: #686c70;
  --line: #dbe8e2;
  --line-soft: #e9f0ec;
  --line-strong: #16181a;
  --control-line: #dcd9d2;
  --hover: #eef5f1;
  --accent: #147c64;
  --accent-strong: #0f5f4c;
  --accent-weak: #e7f4ef;
  --accent-line: #bfe1d4;
  --blue: #1f4f8a;
  --blue-weak: #eaf1fb;
  --blue-line: #c9daf2;
  --amber: #8a5a00;
  --amber-weak: #fdf3e1;
  --amber-line: #f0d9a8;
  --red: #b42318;
  --red-weak: #fdecea;
  --red-line: #f5c6c1;
  --green: #147c64;
  --green-weak: #e7f4ef;
  --shadow: none;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-tag: 5px;
  --shadow-pop: 0 8px 24px -12px rgba(22, 24, 26, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-slow: 0.24s;
  --z-modal: 100;
  --z-toast: 120;
  --topbar-height: 60px;
  --content-max: 1120px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Horizontal inset between the app frame and page content. Every element that
     has to line up with the page content derives its inset from this, so
     changing it here moves the whole app together.
     24px on desktop (the centred column's inset from the window); the phone
     media query brings it back in. */
  --page-gutter: 24px;

  /* The "hero" bands (settings, templates, delivery, schedules, dashboard, order
     detail...) were dark green panels with cream text and mint accents. They now
     read these, so they sit as plain panels in E; one place to change them. */
  --hero-bg: var(--panel);
  --hero-border: var(--line);
  --hero-text: var(--text);
  --hero-heading: var(--text);
  --hero-muted: var(--muted);
  --hero-line: var(--line-soft);
  --hero-accent: var(--accent);
  --hero-accent-weak: var(--accent-weak);
  --hero-tile: var(--panel-subtle);
  --hero-on-accent: #ffffff;
}

/* Inside the Shopify admin there is no top bar (the admin's sidebar is the nav),
   so everything pinned below it pins to the top instead. */
html.is-embedded { --topbar-height: 0px; }
/* Never drawn inside the frame: App Bridge reads its links into the admin's
   sidebar. Hidden from the start, so the link text can't flash (layout shift)
   while App Bridge loads. */
s-app-nav { display: none; }

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Thin, minimal scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #b8b8b8;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { letter-spacing: -0.02em; }

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-noise {
  display: none;
}

