/* The sketch look for Proxy's dashboard shell and its own pages (Jake 2026-11-27, mock-up "Proxy Sketchbook").
   Linked once after dashboard.html's own styles, so it only overrides. Outlines are static SVGs in /sketch/ drawn once with
   rough.js (scripts/sketch-outlines.mjs) and applied with border-image: nothing runs at runtime and React never sees them.
   The Email page is an iframe of /home/inbox/, which does not load this file. */
@import url("/sketch/fonts.css");
:root { --sk-card: url(/sketch/card.svg); --sk-card-b: url(/sketch/card-b.svg); --sk-button: url(/sketch/button.svg); --sk-panel: url(/sketch/panel.svg); }
:root[data-theme="light"] { --sk-card: url(/sketch/card-light.svg); --sk-card-b: url(/sketch/card-b-light.svg); --sk-button: url(/sketch/button-light.svg); --sk-panel: url(/sketch/panel-light.svg); }

:root {
  --ground: #0e0d0b;
  --panel: #0e0d0b;
  --panel-2: #1a1814;
  --border: rgba(242, 236, 226, 0.22);
  --border-soft: rgba(242, 236, 226, 0.14);
  --shadow-md: none;
  --ink: #f2ece2;
  --ink-muted: #b3a690;
  --ink-faint: #7d705d;
  --accent: #e07b2e;          /* ember: the one action colour */
  --accent-ink: #f2ece2;
  --link: #a9bccb;            /* pale slate links */
  --urgent: #a3283c;          /* oxblood: urgent and errors */
  /* one hue per business, kept as hatching colours (tech-lead plan), moved onto the palette */
  --c-terra: #a9bccb;         /* Happy Halo */
  --c-blue: #7d93a3;          /* Stand Your Watch */
  --c-green: #c4914a;         /* Hunting Sin */
  --c-gold: #e07b2e;          /* Before Kings */
  --c-plum: #c9bfae;          /* Jake McCluskey */
  --c-ink: #7d705d;
  --c-money: #c4914a;
  --r-card: 0px;
  --r-ctl: 0px;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --note: "Caveat", "Comic Sans MS", cursive;
}
body {
  background: var(--ground);
  background-image: none;
  font-family: var(--hand);
  font-size: 16.5px;
}
:where(button, input, select, textarea) { font-family: inherit; }
:where(b, strong, h1, h2, h3, h4, th) { font-weight: 400; }
.micro { font-family: var(--hand); letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--ink-muted); }

/* panels: a pencil outline drawn twice, no fill, no shadow */
.card, .socard, .goalcard, .img-card, .stat, .pcard {
  background: transparent;
  border: 1px solid transparent;
  border-image: var(--sk-card) 40 / 36px / 6px stretch;
  border-radius: 0;
  box-shadow: none;
}
.card:nth-child(even), .socard:nth-child(even), .stat:nth-child(even) { border-image-source: var(--sk-card-b); }
.card h2, .card-h h3 { font-size: 23px; padding-bottom: 8px; background: url(/sketch/squiggle.svg) left bottom / min(100%, 7em) 9px no-repeat; }

/* buttons: outline with hatching; the main action ember, the small ones bone */
.btn-accent {
  background: repeating-linear-gradient(135deg, rgba(224, 123, 46, 0.6) 0 2px, transparent 2px 7px);
  color: var(--ink);
  border: 1px solid transparent;
  border-image: var(--sk-button) 24 / 22px / 3px stretch;
  border-radius: 0;
  font-weight: 400;
  font-size: 16px;
}
.btn-accent:hover { background: repeating-linear-gradient(135deg, rgba(224, 123, 46, 0.85) 0 2.4px, transparent 2.4px 6px); }
.btn-sm, .pill, .iconbtn {
  background: transparent;
  border: 1px solid transparent;
  border-image: var(--sk-button) 24 / 18px / 2px stretch;
  border-radius: 0;
  font-weight: 400;
  font-size: 15px;
}
.btn-sm:hover, .pill:hover { background: rgba(242, 236, 226, 0.06); }

/* menu: quiet, the page you're on gets an ember squiggle instead of a filled pill */
.side { background: var(--ground); border-right: 1px solid transparent; border-image: var(--sk-panel) 0 40 0 0 / 0 30px 0 0 / 0 stretch; }
.navitem, .navhead { font-size: 16px; font-weight: 400; border-radius: 0; }
.navitem:hover, .navhead:hover { background: rgba(242, 236, 226, 0.05); }
.navitem.active { background: url(/sketch/squiggle.svg) 34px bottom / 70% 8px no-repeat; box-shadow: none; font-weight: 400; color: var(--ink); }
.navhead .count { background: transparent; color: var(--accent); font-family: var(--note); font-size: 17px; }
.brand b { font-size: 18px; font-weight: 400; }

/* rows and tabs keep a faint pencil rule */
.invrow, .seorun, .row, .brow, .prow { border-color: rgba(242, 236, 226, 0.14); }
.tab.active, .subtab.active, .aptabs .on { background: url(/sketch/squiggle.svg) center bottom / 60% 7px no-repeat; }
input, select, textarea { background: transparent; border-color: rgba(242, 236, 226, 0.3); border-radius: 0; color: var(--ink); }
.empty { font-size: 16px; }
::selection { background: rgba(224, 123, 46, 0.3); }
/* every tab strip (Approve's kinds, sub tabs): no filled pill, an ember squiggle under the one you're on */
[role="tab"] { border-radius: 0; background: transparent; border-color: transparent; font-weight: 400; }
[role="tab"][aria-selected="true"] { background: url(/sketch/squiggle.svg) center bottom / 80% 7px no-repeat; color: var(--ink); border-color: transparent; }

/* light mode: paper, graphite pencil, the same palette a shade deeper so it reads on paper */
:root[data-theme="light"] {
  --ground: #f3ede1; --panel: #f3ede1; --panel-2: #e9e1d2; --border: rgba(29, 26, 22, 0.25); --border-soft: rgba(29, 26, 22, 0.14);
  --ink: #1d1a16; --ink-muted: #5f5446; --ink-faint: #8a7d6a; --accent: #b85a17; --accent-ink: #1d1a16; --link: #46606f; --urgent: #8c1f30;
  --c-terra: #6f8797; --c-blue: #4f6676; --c-green: #8d5f22; --c-gold: #b85a17; --c-plum: #5f5446; --c-ink: #8a7d6a; --c-money: #8d5f22;
  color-scheme: light;
}
:root[data-theme="light"] .navitem:hover, :root[data-theme="light"] .navhead:hover, :root[data-theme="light"] .btn-sm:hover, :root[data-theme="light"] .pill:hover { background: rgba(29, 26, 22, 0.06); }
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { border-color: rgba(29, 26, 22, 0.3); }
/* the light and dark switch in the top bar */
.themebtn { font-family: var(--note); font-size: 19px; line-height: 1; }

/* the other boxes on Proxy's own pages (Approve, Projects, MindBank, Schedule, leads, SEO, invoices, menus): the same pencil outline as the Overview cards */
.apcard, .apbody, .apfields div, .psum-t, .prow, .mb-card, .mb-due, .mb-link, .grill-now, .sch-item, .sch-preview, .lead-card, .topic-bar, .seosubmit, .invpicked, .invhits, .usermenu, .searchpop, .undobar {
  border: 1px solid transparent;
  border-image: var(--sk-card) 40 / 30px / 4px stretch;
  border-radius: 0;
  box-shadow: none;
}
.apcard, .apbody, .apfields div, .psum-t, .prow, .mb-card, .mb-due, .mb-link, .grill-now, .topic-bar { background: transparent; }
.psum-t:nth-child(even), .prow:nth-child(even), .apcard:nth-child(even), .mb-card:nth-child(even), .lead-card:nth-child(even) { border-image-source: var(--sk-card-b); }
/* menus and bars that float over the page keep a solid ground */
.usermenu, .searchpop, .undobar, .invhits { background: var(--ground); }
/* schedule items keep their colour stripe on the left */
.sch-item { box-shadow: inset 3px 0 0 var(--ink-faint); }
.sch-item.call { box-shadow: inset 3px 0 0 var(--accent); }
.sch-item.client { box-shadow: inset 3px 0 0 var(--c-blue); }
.sch-item.block { box-shadow: inset 3px 0 0 var(--c-gold); }
/* the small pill buttons get the button outline */
.btn-ghost, .mb-chip, .mb-icon, .aptabs button, .projpick button {
  background: transparent;
  border: 1px solid transparent;
  border-image: var(--sk-button) 24 / 18px / 2px stretch;
  border-radius: 0;
}
.aptabs button[aria-selected="true"], .projpick button.on { background: url(/sketch/squiggle.svg) center bottom / 70% 7px no-repeat; color: var(--ink); }

/* the side menu sits inside its own pencil box, the same as the cards, instead of a lone right edge (Jake 2026-11-28) */
@media (min-width: 761px) {
  .side { border: 1px solid transparent; border-image: var(--sk-panel) 40 / 30px / 0 stretch; padding: 22px 18px 20px; }
}
@media (min-width: 1081px) {
  .side { margin: 12px 0 12px 12px; top: 12px; height: calc(100vh - 24px); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .side { margin: 10px 12px 0; }
}
/* Jake's account: a pencilled J at the top right, its menu dropping below it */
.acct { position: relative; }
.acctbtn { font-family: var(--note); font-size: 23px; line-height: 1; min-width: 40px; }
.acct .usermenu { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); width: 210px; z-index: 70; }
.acctname { padding: 8px 10px 10px; font-size: 16px; color: var(--ink); background: url(/sketch/squiggle.svg) 10px bottom / 60% 6px no-repeat; margin-bottom: 6px; }
.acctname span { display: block; font-size: 13.5px; color: var(--ink-muted); }
