/* S&K admin. The public site's Blue Hour palette, without its theatre —
   this is a tool the owners open on a phone between jobs, not a shop window. */

@font-face{
  font-family:'Archivo';
  font-style:normal;
  font-weight:100 900;
  font-stretch:62% 125%;
  font-display:swap;
  src:url('/static/font/archivo-latin.woff2') format('woff2');
}

:root{
  --sky-0:#0A0F17; --sky-1:#101823; --sky-2:#18222F; --sky-3:#22303F;
  --lamp-core:#FFE9C4; --lamp:#F3C878; --lamp-deep:#C98A3C;
  --flame:#C43C1B;
  --text-lit:#F2EEE6; --text-dim:#A8B4C4;
  --ease:cubic-bezier(.16,1,.3,1);
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}

body{
  margin:0;
  min-height:100dvh;
  font-family:'Archivo',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px;
  line-height:1.5;
  background:var(--sky-0);
  color:var(--text-lit);
  -webkit-font-smoothing:antialiased;
}

/* The single lamp above the form: the same inverse-square falloff the site
   uses, so the two feel lit by the same fixture. */
.auth{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:2rem 1.25rem 4rem;
  background:
    radial-gradient(120% 90% at 50% -20%,
      rgba(255,233,196,.16) 0%,
      rgba(243,200,120,.06) 34%,
      rgba(201,138,60,.02) 58%,
      transparent 74%),
    var(--sky-0);
}

.card{
  width:min(100%,25rem);
  background:var(--sky-1);
  border-radius:6px;
  padding:clamp(1.5rem,5vw,2.25rem);
  box-shadow:0 40px 80px -40px rgba(0,0,0,.95),inset 0 0 0 1px var(--sky-3);
}

.mark{
  display:block;
  font-weight:700;
  font-stretch:88%;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.82rem;
  color:var(--lamp);
}
.mark__sub{
  display:block;
  margin-top:.3rem;
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:none;
  color:var(--text-dim);
}

h1{
  margin:1.6rem 0 .4rem;
  font-size:1.45rem;
  font-weight:600;
  font-stretch:92%;
  letter-spacing:-.01em;
}
.lede{margin:0 0 1.5rem;color:var(--text-dim);font-size:.9rem}

label{display:block;margin-bottom:1rem}
.label{
  display:block;
  margin-bottom:.35rem;
  font-size:.78rem;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--text-dim);
}

input[type=email],input[type=password],input[type=text]{
  width:100%;
  padding:.72rem .85rem;
  font:inherit;
  /* Overridden back up on the sign-in card below, which is not a dense form
     and wants a comfortable target. */
  color:var(--text-lit);
  background:var(--sky-2);
  border:0;
  border-radius:4px;
  box-shadow:inset 0 0 0 1px var(--sky-3);
  transition:box-shadow .18s var(--ease);
}
input:focus-visible{
  outline:0;
  box-shadow:inset 0 0 0 1px var(--lamp-deep),0 0 0 3px rgba(243,200,120,.18);
}

/* Six digits, read back at a glance under a code the owner is retyping. */
.code{
  font-size:1.5rem;
  letter-spacing:.42em;
  text-align:center;
  font-variant-numeric:tabular-nums;
}

.btn{
  display:block;
  width:100%;
  margin-top:1.25rem;
  padding:.78rem 1rem;
  font:inherit;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--sky-0);
  background:var(--lamp);
  border:0;
  border-radius:4px;
  cursor:pointer;
  box-shadow:0 10px 30px -14px rgba(243,200,120,.75);
  transition:background .18s var(--ease),box-shadow .18s var(--ease);
}
.btn:hover{background:var(--lamp-core);box-shadow:0 14px 38px -14px rgba(255,233,196,.85)}

.error{
  margin:0 0 1.25rem;
  padding:.7rem .85rem;
  font-size:.88rem;
  border-radius:4px;
  color:var(--text-lit);
  background:rgba(196,60,27,.14);
  box-shadow:inset 0 0 0 1px rgba(196,60,27,.55);
}

/* Recovery instructions, collapsed. Present enough to be found by someone
   locked out, quiet enough not to compete with the two fields that are the
   point of the page. */
.recover{
  margin-top:1.5rem;
  padding-top:1.1rem;
  font-size:.85rem;
  line-height:1.55;
  color:var(--text-dim);
  border-top:1px solid var(--sky-3);
}
.recover summary{
  cursor:pointer;
  color:var(--lamp);
  font-size:.82rem;
}
.recover summary:focus-visible{
  outline:0;
  box-shadow:0 0 0 3px rgba(243,200,120,.18);
  border-radius:3px;
}
.recover p{margin:.9rem 0 0}
.recover code{
  display:inline-block;
  padding:.24rem .45rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.8rem;
  color:var(--text-lit);
  background:var(--sky-2);
  border-radius:3px;
  /* Long enough to wrap on a phone; wrapping is better than a scrollbar in a
     paragraph somebody is reading in order to retype it. */
  word-break:break-word;
}
.recover__also{
  margin-top:1.1rem;
  padding-top:.9rem;
  border-top:1px solid var(--sky-3);
}

.qr{
  display:block;
  width:min(100%,12.5rem);
  margin:0 auto 1.1rem;
  padding:.65rem;
  background:#fff;          /* scanners want maximum contrast, not brand colour */
  border-radius:4px;
}

.secret{
  margin:0 0 1.4rem;
  padding:.6rem .7rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.82rem;
  letter-spacing:.08em;
  word-break:break-all;
  text-align:center;
  color:var(--text-dim);
  background:var(--sky-2);
  border-radius:4px;
}

.steps{margin:0 0 1.4rem;padding-left:1.1rem;color:var(--text-dim);font-size:.88rem}
.steps li{margin-bottom:.35rem}

.foot{margin:1.4rem 0 0;font-size:.78rem;color:var(--text-dim);text-align:center}

/* ------------------------------------------------- the signed-in application */

.app{background:var(--sky-0)}

.bar{
  display:flex;
  align-items:center;
  gap:1.25rem;
  padding:.85rem clamp(1rem,3vw,2rem);
  background:var(--sky-1);
  box-shadow:inset 0 -1px 0 var(--sky-3);
  position:sticky;
  top:0;
  z-index:10;
}
.bar__mark{
  font-weight:700;
  font-stretch:88%;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.8rem;
  color:var(--lamp);
  text-decoration:none;
  white-space:nowrap;
}
.bar__mark span{color:var(--text-dim)}
.bar__nav{display:flex;gap:.25rem;margin-right:auto}
.bar__nav a{
  padding:.4rem .7rem;
  border-radius:3px;
  font-size:.88rem;
  color:var(--text-dim);
  text-decoration:none;
}
.bar__nav a:hover{color:var(--text-lit);background:var(--sky-2)}
.bar__nav a[aria-current=page]{color:var(--lamp);background:var(--sky-2)}
/* Sits in the same row as the nav links and must match them: it was .82rem
   against their .88rem, which is two pixels shorter and reads as misaligned
   rather than as a different kind of thing. */
/* Phone menu. Eight sections never fitted a phone bar; they ran off the
   side with Sign out past the edge where nothing could reach it. */
.bar__menu{margin-left:auto;position:relative}
.bar__menu summary{
  list-style:none;display:grid;place-items:center;width:44px;height:44px;
  border-radius:4px;cursor:pointer;color:var(--text-dim)
}
.bar__menu summary::-webkit-details-marker{display:none}
.bar__menu summary:hover{color:var(--text-lit);background:var(--sky-2)}
.bar__menu summary:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(243,200,120,.22)}
.bar__panel{
  position:absolute;right:0;top:calc(100% + .5rem);z-index:20;min-width:13rem;
  display:flex;flex-direction:column;padding:.4rem;
  background:var(--sky-1);border-radius:6px;
  box-shadow:inset 0 0 0 1px var(--sky-3),0 18px 40px -18px rgba(0,0,0,.7)
}
.bar__panel a{
  padding:.6rem .7rem;border-radius:4px;font-size:.92rem;
  color:var(--text-dim);text-decoration:none
}
.bar__panel a:hover{color:var(--text-lit);background:var(--sky-2)}
.bar__panel a[aria-current=page]{color:var(--lamp);background:var(--sky-2)}
.bar__panel hr{border:0;border-top:1px solid var(--sky-3);margin:.4rem .2rem}
.bar__panel button{
  width:100%;text-align:left;padding:.6rem .7rem;font:inherit;font-size:.92rem;
  color:var(--text-dim);background:none;border:0;border-radius:4px;cursor:pointer
}
.bar__panel button:hover{color:var(--text-lit);background:var(--sky-2)}

/* One or the other, never both. */
@media(max-width:860px){ .bar__nav,.bar__out{display:none} }
@media(min-width:861px){ .bar__menu{display:none} }

.bar__out button{
  font:inherit;
  font-size:.88rem;
  padding:.4rem .7rem;
  color:var(--text-dim);
  background:none;
  border:0;
  border-radius:3px;
  cursor:pointer;
}
.bar__out button:hover{color:var(--text-lit);background:var(--sky-2)}

.wrap{
  max-width:74rem;
  margin:0 auto;
  padding:clamp(1.25rem,3vw,2.25rem) clamp(1rem,3vw,2rem) 5rem;
}

.head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem 1.5rem;
  margin-bottom:1.5rem;
}
.head h1{margin:0}
.head .lede{margin:.35rem 0 0}

/* On a phone the heading, the blurb and the two upload buttons had the whole
   first screen to themselves before a single photograph appeared. The
   buttons sit on the heading's row and the type steps down. */
@media(max-width:600px){
  .head{gap:.6rem 1rem;margin-bottom:1rem;align-items:center}
  .head h1{font-size:1.35rem}
  .head .lede{font-size:.85rem;margin-top:.2rem}
  .head .drop{flex:1 1 100%}
  .pick{gap:.5rem}
  .pick .btn{flex:1 1 0;min-width:0;padding-inline:.7rem;white-space:nowrap}
  /* The chosen filename goes under the buttons rather than squeezing them. */
  .pick__name{flex:1 1 100%}
  .tabs{margin-bottom:1rem}
}

/* The file input itself is the button: one tap on a phone opens the camera
   roll, which is the whole interaction Korey has standing in a driveway. */
/* The file picker is a .btn like any other — it only carries the input and
   the focus ring. It used to restate the button's padding, colour and shadow,
   which is how it ended up a different height from the Upload button beside
   it, and a different height again on the service images page. A button
   should have one definition. */
.drop__label{margin:0}
.drop__label input{
  position:absolute;
  width:1px;height:1px;
  opacity:0;
  pointer-events:none;
}
.drop__label input:focus-visible + span{outline:2px solid var(--lamp-core);outline-offset:3px}


/* Two columns on a desk, one on a phone. */
.cols{display:grid;gap:1.75rem 2.5rem;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start}
@media(max-width:52rem){.cols{grid-template-columns:minmax(0,1fr)}}

/* Pages read each day. A total says nothing without something to compare it
   to, and every day is drawn including the quiet ones — a chart with the
   empty days left out reads as busier than the week was. */
.spark{list-style:none;display:flex;align-items:stretch;gap:.3rem;
  margin:0 0 1.75rem;padding:0;height:8rem}
.spark li{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:.25rem}
/* The bar lives in a track of its own and is positioned inside it. A
   percentage height on a flex item does not resolve — the item shrinks to
   its min-height and every bar comes out two pixels tall. Against a
   positioned box it always resolves. */
.spark__t{position:relative;flex:1 1 auto;width:100%}
.spark__t :where(i){position:absolute;left:0;right:0;bottom:0;height:0;min-height:2px;
  background:var(--sky-3);border-radius:2px 2px 0 0;transition:background .2s}
.spark li.is-peak .spark__t i{background:var(--lamp)}
.spark li:hover .spark__t i{background:var(--lamp-deep)}
/* The number over every bar is noise across thirty days; only the busiest
   day is worth reading off the chart, and the rest are shape. */
.spark b{font-size:.72rem;font-weight:600;color:var(--text-dim);text-align:center;
  visibility:hidden}
.spark li.is-peak b,.spark li:hover b{visibility:visible;color:var(--lamp)}
.spark__d{font-size:.66rem;color:var(--text-dim);text-align:center;
  letter-spacing:.03em;white-space:nowrap}

/* Hour of the day. Same idea, smaller, and always all twenty-four so the
   shape of a day is readable rather than just its busiest hours. */
.clock{list-style:none;display:flex;align-items:stretch;gap:2px;
  margin:0 0 .4rem;padding:0;height:3.5rem}
.clock li{flex:1 1 0;display:flex;flex-direction:column;gap:.15rem}
.clock__t{position:relative;flex:1 1 auto;width:100%}
.clock__t :where(i){position:absolute;left:0;right:0;bottom:0;height:0;min-height:2px;
  background:var(--sky-3);border-radius:1px}
.clock li:hover .clock__t i{background:var(--lamp)}
.clock__d{font-size:.62rem;color:var(--text-dim);text-align:center}

.rows--tight li{padding:.5rem 0;border-bottom:1px solid var(--sky-3)}
.rows--tight .hint{display:block;font-size:.78rem;margin-top:.1rem}

/* Click the photograph to say what must survive the gallery's crop. */
.focal{position:relative;display:block;cursor:crosshair;line-height:0}
.focal img{display:block;width:100%;height:auto}
.focal__pin{
  position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;
  border-radius:50%;border:2px solid var(--lamp);
  box-shadow:0 0 0 2px rgba(10,15,23,.6),inset 0 0 0 2px rgba(10,15,23,.5);
  pointer-events:none
}
/* What the gallery will actually show, at its 4:3. Dashed, because it is a
   guide drawn over the photograph rather than part of it. */
.focal__frame{
  position:absolute;pointer-events:none;
  border:1px dashed rgba(243,200,120,.85);
  box-shadow:0 0 0 9999px rgba(10,15,23,.45)
}
.focal__say{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .8rem;
  margin:.6rem 0 0;font-size:.82rem;color:var(--text-dim)}
.focal__say .linkish{margin-top:0}

/* A dense form. Shrinking the type alone saved nothing — the boxes kept
   their padding and the rows kept their spacing, so the same screen held the
   same six fields. The fields shrink with the text. */
.app input[type=text],.app input[type=email],.app input[type=tel],
.app input[type=date],.app input[type=number],.app select,.app textarea{
  padding:.45rem .6rem;
  font-size:.88rem;
}
.app textarea{min-height:4.5rem}
.app label{margin-bottom:.7rem}
/* ...but not the file picker, which is a button sitting in a row of them.
   The margin is part of its box, so align-items:center hung it five pixels
   above the button beside it. */
.pick label{margin-bottom:0}
.app .label{margin-bottom:.25rem;font-size:.72rem}
.app .check{margin-bottom:.55rem}
.app .review__form label{margin-bottom:.8rem}

/* The adjustment panel. Sliders rather than a checkbox, because "a bit
   brighter" is the actual request and a checkbox cannot say how much. */
.adj{border:0;margin:0 0 1.25rem;padding:0}
.adj legend{padding:0}
.adj__auto{margin:.6rem 0 1.1rem}
.adj__row{display:grid;grid-template-columns:1fr;gap:.2rem;margin-bottom:1rem}
.adj__row label{display:flex;justify-content:space-between;align-items:baseline;
  gap:.75rem;font-size:.88rem;color:var(--text-lit);margin:0}
.adj__row output{font-variant-numeric:tabular-nums;font-size:.82rem;color:var(--text-dim)}
/* Under its own slider, and only as wide as it is comfortable to read —
   at the full column width these ran the whole form and looked like body
   copy rather than a note about one control. */
.adj__row .hint{display:block;font-size:.78rem;line-height:1.45;max-width:46ch}
.adj__auto small{display:block;margin-top:.15rem;max-width:46ch;line-height:1.45}

.adj__slider{
  -webkit-appearance:none;appearance:none;width:100%;height:4px;margin:.35rem 0;
  background:var(--sky-3);border-radius:2px;cursor:pointer
}
.adj__slider::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:17px;height:17px;border-radius:50%;
  background:var(--text-dim);border:0;cursor:pointer;transition:background .15s
}
.adj__slider::-moz-range-thumb{
  width:17px;height:17px;border-radius:50%;background:var(--text-dim);border:0;cursor:pointer
}
/* Lit only once it is away from its default, so a glance says what has been
   touched without reading five numbers. */
.adj__slider.is-set::-webkit-slider-thumb{background:var(--lamp)}
.adj__slider.is-set::-moz-range-thumb{background:var(--lamp)}
.adj__slider:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(243,200,120,.22)}

.adj__note{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .9rem;margin:.2rem 0 0}
.adj__note .linkish{margin-top:0}
.adj__note .hint{flex:1 1 16rem;font-size:.8rem}

/* The preview follows the sliders, so it must not also animate. */
.review__img img{transition:none}

/* Show, hide and remove, on the tile itself. */
.tile__act{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;padding:.6rem .1rem 0}
.tile__what{flex:1 1 8rem;min-width:0;font-size:.85rem;color:var(--text-lit);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile__what small{display:block;font-size:.75rem;color:var(--text-dim);
  text-transform:uppercase;letter-spacing:.06em}
.tile__act form{display:inline}
.tile__act .linkish{margin-top:0}
.tile__rm summary{cursor:pointer;font-size:.82rem;color:var(--text-dim)}
.tile__rm summary:hover{color:var(--flame)}
.tile__rm form{display:block;margin-top:.35rem}

/* The two buttons that cannot be undone by pressing something else. */
.danger{margin-top:2rem;padding-top:1.1rem;border-top:1px solid var(--sky-3)}
.danger summary{cursor:pointer;font-size:.88rem;color:var(--text-dim)}
.danger summary:hover{color:var(--flame)}
.danger form{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:.9rem}
.danger .hint{flex:1 1 14rem;font-size:.82rem}
.danger .linkish{margin-top:0;color:var(--flame)}

/* Choose and send, side by side. Two clicks, both visible — the previous
   version submitted on choosing a file, which left nothing on screen to press
   and no way to change your mind. */
.pick{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.pick__name{
  font-size:.85rem;
  color:var(--text-dim);
  /* A long filename wraps rather than pushing the buttons off a phone. */
  min-width:0;
  word-break:break-all;
}

/* Says the website is behind the admin, and fixes it. Sits above the page
   content because it is about the page content, not about one control on it. */
.pub{
  display:flex;flex-wrap:wrap;align-items:center;gap:.9rem;
  margin:0 0 1.5rem;padding:.7rem .95rem;
  font-size:.9rem;border-radius:4px;
}
.pub span{flex:1 1 14rem}
.pub .hint{display:block;font-size:.82rem;margin-top:.15rem}
.pub .btn{margin:0}
.pub--wait{background:var(--sky-2);box-shadow:inset 0 0 0 1px var(--sky-3)}
.pub--ok{color:var(--text-lit);background:rgba(58,122,96,.18);
  box-shadow:inset 0 0 0 1px rgba(58,122,96,.55)}
.pub--bad{color:var(--text-lit);background:rgba(196,60,27,.14);
  box-shadow:inset 0 0 0 1px rgba(196,60,27,.55)}

.note{
  margin:0 0 1.25rem;
  padding:.65rem .85rem;
  font-size:.88rem;
  border-radius:4px;
  background:var(--sky-2);
  box-shadow:inset 0 0 0 1px var(--sky-3);
}

.tabs{display:flex;flex-wrap:wrap;gap:.25rem;margin-bottom:1.5rem}
.tabs a{
  padding:.45rem .8rem;
  font-size:.88rem;
  color:var(--text-dim);
  text-decoration:none;
  border-radius:3px;
  box-shadow:inset 0 0 0 1px var(--sky-3);
}
.tabs a:hover{color:var(--text-lit)}
.tabs a[aria-current=page]{
  color:var(--sky-0);
  background:var(--lamp);
  box-shadow:none;
  font-weight:600;
}

/* minmax(0,…) not 1fr: a wide photo would otherwise set the column's
   min-content and push the grid past the viewport. */
.grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));
  gap:.75rem;
}
.tile{min-width:0}
.tile a{
  display:block;
  position:relative;
  border-radius:4px;
  overflow:hidden;
  background:var(--sky-2);
  text-decoration:none;
}
.tile img{
  display:block;
  width:100%;
  height:9.5rem;
  object-fit:cover;
}
.tile a:hover img{opacity:.85}
.tile__meta{
  position:absolute;
  left:.4rem;bottom:.4rem;
  display:flex;
  flex-wrap:wrap;
  gap:.25rem;
}

.tag{
  padding:.15rem .45rem;
  font-size:.68rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  border-radius:2px;
  color:var(--text-lit);
  background:color-mix(in srgb,var(--sky-0) 78%,transparent);
  backdrop-filter:blur(4px);
}
.tag--before{color:#9FC4E8}
.tag--after{color:var(--lamp)}
.tag--live{color:var(--sky-0);background:var(--lamp)}

.empty{
  padding:3rem 1rem;
  text-align:center;
  color:var(--text-dim);
  border-radius:6px;
  box-shadow:inset 0 0 0 1px var(--sky-3);
}

.back{margin:0 0 1rem;font-size:.88rem}
.back a{color:var(--text-dim);text-decoration:none}
.back a:hover{color:var(--lamp)}

/* The picture and the things that change it on one side; everything that
   describes it on the other. The sliders used to sit in the right column,
   so a glance at what a slider did meant crossing the page — and on a phone
   it meant scrolling past every text field to reach them and back up to see
   the effect. */
.review{display:grid;gap:1.75rem;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  align-items:start}
@media (max-width:52rem){.review{grid-template-columns:minmax(0,1fr);gap:1.25rem}}

/* Reference, not input: last on the page, and quiet. */
.review .facts{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--sky-3)}

@media (max-width:52rem){
  /* Stacked, the picture and its sliders have to be usable together, so the
     picture gives up height rather than pushing them off the screen. */
  .review__img img{max-height:44vh;object-fit:contain}
  .focal{background:var(--sky-2);border-radius:5px}
}

.review__img img{display:block;width:100%;height:auto;border-radius:5px;background:var(--sky-2)}

.facts{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:.3rem 1rem;
  margin:1rem 0 0;
  font-size:.85rem;
}
.facts dt{color:var(--text-dim)}
.facts dd{margin:0}

.pair{margin-top:1.25rem}
.pair__label{margin:0 0 .4rem;font-size:.78rem;letter-spacing:.07em;
  text-transform:uppercase;color:var(--text-dim)}
.pair img{display:block;width:10rem;height:7.5rem;object-fit:cover;border-radius:4px}
.linkish{
  margin-top:.5rem;font:inherit;font-size:.82rem;
  color:var(--text-dim);background:none;border:0;padding:0;
  cursor:pointer;text-decoration:underline;text-underline-offset:.2em;
}
.linkish:hover{color:var(--flame)}

.review__form label{margin-bottom:1.1rem}
.hint{text-transform:none;letter-spacing:0;opacity:.75}

select,textarea{
  width:100%;
  padding:.5rem .6rem;
  font:inherit;
  /* After font:inherit, which resets the size — below the body size on
     purpose, because a select full of service names is the longest text on
     the form and was the widest thing on a phone. */
  font-size:.88rem;
  color:var(--text-lit);
  background:var(--sky-2);
  border:0;
  border-radius:4px;
  box-shadow:inset 0 0 0 1px var(--sky-3);
}
select:focus-visible,textarea:focus-visible{
  outline:0;
  box-shadow:inset 0 0 0 1px var(--lamp-deep),0 0 0 3px rgba(243,200,120,.18);
}
textarea{resize:vertical}

.check{display:flex;align-items:center;gap:.6rem;margin-bottom:1.25rem}
.check input{width:1.1rem;height:1.1rem;accent-color:var(--lamp)}
.check span{font-size:.92rem}

.btn--small{width:auto;margin-top:0;padding:.55rem .9rem;font-size:.88rem}

.grid--cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr))}
.tile--card a{padding:1.25rem 1.35rem;background:var(--sky-1);
  box-shadow:inset 0 0 0 1px var(--sky-3)}
.tile--card a:hover{box-shadow:inset 0 0 0 1px var(--lamp-deep)}
.tile--card h2{margin:0 0 .4rem;font-size:1.05rem;font-weight:600;color:var(--lamp)}
.tile--card p{margin:0;font-size:.88rem;color:var(--text-dim)}

/* --------------------------------------------- the one page a customer sees */

/* Light on purpose. This is opened on a phone, outdoors, in Florida sun, from
   a text message — the dark interface the owners use is unreadable out there. */
.guest{
  background:var(--shell-0, #F5F1E8);
  color:#16211B;
}
:root{--shell-0:#F5F1E8; --shell-1:#EBE5D8; --shell-2:#DBD3C2;
      --ink:#16211B; --ink-dim:#5A6B5F; --frond:#1F4034;}

.guest__wrap{
  min-height:100dvh;
  display:grid;
  place-items:start center;
  padding:clamp(1.25rem,5vw,3rem) 1rem 4rem;
}
.guest__card{
  width:min(100%,34rem);
  background:#fff;
  border-radius:6px;
  padding:clamp(1.5rem,5vw,2.5rem);
  box-shadow:0 30px 60px -40px rgba(22,33,27,.4),inset 0 0 0 1px var(--shell-2);
}
.guest h1{color:var(--ink)}
.guest .lede{color:var(--ink-dim);font-size:.95rem;margin-bottom:1.75rem}
.guest .label{color:var(--ink-dim)}
.guest .hint{color:var(--ink-dim)}
.guest .foot{color:var(--ink-dim)}

.mark--day{color:var(--frond)}
.mark--day .mark__sub{color:var(--ink-dim)}

.guest textarea,.guest input[type=text]{
  color:var(--ink);
  background:var(--shell-0);
  box-shadow:inset 0 0 0 1px var(--shell-2);
}
.guest textarea:focus-visible,.guest input:focus-visible{
  box-shadow:inset 0 0 0 1px var(--frond),0 0 0 3px rgba(31,64,52,.14);
}
.guest .btn{color:#fff;background:var(--frond);box-shadow:none}
.guest .btn:hover{background:#2A5745}
.guest .error{color:#7A2410;background:rgba(196,60,27,.10);
  box-shadow:inset 0 0 0 1px rgba(196,60,27,.4)}
.guest .check span{color:var(--ink)}
.guest .check input{accent-color:var(--frond)}

.stars{border:0;margin:0 0 1.25rem;padding:0;display:flex;gap:.4rem}
.stars legend{margin-bottom:.4rem}
.star{margin:0}
.star input{position:absolute;opacity:0;width:1px;height:1px}
.star span{
  display:grid;
  place-items:center;
  width:2.6rem;height:2.6rem;
  border-radius:4px;
  font-weight:600;
  cursor:pointer;
  color:var(--ink-dim);
  background:var(--shell-0);
  box-shadow:inset 0 0 0 1px var(--shell-2);
}
.star input:checked + span{color:#fff;background:var(--frond);box-shadow:none}
.star input:focus-visible + span{outline:2px solid var(--frond);outline-offset:2px}

.quote{
  margin:0 0 1.5rem;
  padding:1rem 1.15rem;
  border-left:3px solid var(--lamp);
  background:var(--sky-2);
  border-radius:0 4px 4px 0;
  font-size:1.02rem;
  line-height:1.6;
}
.quote--day{background:var(--shell-0);border-left-color:var(--frond);color:var(--ink)}

/* ---------------------------------------------------- owner-side list rows */

.inline{display:flex;gap:.5rem;align-items:center;flex:0 0 auto}
.inline input[type=text]{width:14rem}
.inline label{margin:0}
/* Below this the head stacks anyway, so the form takes the full width. */
@media (max-width:34rem){
  .inline{flex:1 1 100%;flex-wrap:wrap}
  .inline input[type=text]{width:100%}
}

.rows{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.row a{
  display:grid;
  gap:.35rem;
  padding:.9rem 1.1rem;
  border-radius:4px;
  text-decoration:none;
  color:var(--text-lit);
  background:var(--sky-1);
  box-shadow:inset 0 0 0 1px var(--sky-3);
}
.row a:hover{box-shadow:inset 0 0 0 1px var(--lamp-deep)}
.row__name{font-weight:600}
.row__body{color:var(--text-dim);font-size:.9rem}
.row__tags{display:flex;gap:.3rem;flex-wrap:wrap}

.tag--submitted{color:var(--sky-0);background:var(--lamp)}
.tag--published{color:var(--lamp)}
.tag--declined{color:var(--text-dim)}

.decide{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.25rem}
.share{align-self:start}

/* ------------------------------------------------------------- lead inbox */

.lead{
  padding:1rem 1.15rem;
  border-radius:4px;
  background:var(--sky-1);
  box-shadow:inset 0 0 0 1px var(--sky-3);
}
/* A new lead is the only thing on this page that needs looking at. */
.lead--new{box-shadow:inset 0 0 0 1px var(--lamp-deep)}

.lead__top{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}
.lead__name{font-weight:600;font-size:1.05rem}
.lead__what{margin:.35rem 0 0;color:var(--lamp);font-size:.9rem}
.lead__details{margin:.5rem 0 0;color:var(--text-dim);font-size:.9rem;line-height:1.5}
.lead__contact{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:.9rem}
.lead__status{display:flex;gap:.9rem;flex-wrap:wrap;margin-top:.9rem;
  padding-top:.75rem;box-shadow:inset 0 1px 0 var(--sky-3)}

.tag--new{color:var(--sky-0);background:var(--lamp)}
.tag--contacted{color:var(--lamp)}
.tag--quoted{color:#9FC4E8}
.tag--won{color:var(--sky-0);background:#3E7A5E}
.tag--lost,.tag--spam{color:var(--text-dim)}
/* An hour is the threshold where an enquiry starts going cold. */
.tag--late{color:#fff;background:var(--flame)}

/* --------------------------------------------- image provenance + replace */

.prov{border:0;margin:0 0 1rem;padding:0}
.prov legend{margin-bottom:.5rem}
.prov .check{align-items:flex-start;margin-bottom:.55rem}
.prov .check input{margin-top:.2rem;flex:0 0 auto}
.prov small{display:block;margin-top:.15rem;font-size:.78rem;color:var(--text-dim);line-height:1.45}
.prov small b{color:var(--lamp)}

.replace{margin-top:2rem;padding-top:1.5rem;box-shadow:inset 0 1px 0 var(--sky-3)}
.replace__h{margin:0 0 .3rem;font-size:1rem;font-weight:600}
.replace .hint{display:block;margin-bottom:1rem;font-size:.85rem;color:var(--text-dim)}

/* The one visible marker on the public site. */
.plate__made{position:absolute;right:.5rem;top:.5rem;padding:.2rem .5rem;
  font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;border-radius:2px;
  color:var(--text-lit);background:color-mix(in srgb,#0A0F17 80%,transparent);
  backdrop-filter:blur(4px)}

/* ----------------------------------------------------------------- traffic */

.stats{list-style:none;margin:0 0 2.5rem;padding:0;display:grid;gap:.75rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
.stats li{padding:1.1rem 1.25rem;border-radius:4px;background:var(--sky-1);
  box-shadow:inset 0 0 0 1px var(--sky-3)}
.stats__n{display:block;font-size:2rem;font-weight:600;font-stretch:92%;color:var(--lamp);
  font-variant-numeric:tabular-nums;line-height:1.1}
.stats__l{display:block;margin-top:.2rem;font-size:.78rem;letter-spacing:.07em;
  text-transform:uppercase;color:var(--text-dim)}

.sub{margin:0 0 1rem;font-size:1rem;font-weight:600}
.bars{list-style:none;margin:0 0 2.5rem;padding:0;display:grid;gap:.4rem}
.bars li{display:grid;grid-template-columns:minmax(0,14rem) 1fr auto;gap:.85rem;
  align-items:center;font-size:.88rem}
.bars__l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-dim)}
.bars__b{height:.55rem;border-radius:2px;background:var(--sky-2);overflow:hidden}
.bars__b :where(i){display:block;width:0;height:100%;background:var(--lamp-deep)}
.bars__n{font-variant-numeric:tabular-nums;color:var(--text-lit)}
@media (max-width:34rem){
  .bars li{grid-template-columns:1fr auto}
  .bars__b{grid-column:1/-1}
}

/* --------------------------------------------------------------- clients */

.row--plain{padding:.8rem 1.1rem;border-radius:4px;background:var(--sky-1);
  box-shadow:inset 0 0 0 1px var(--sky-3);display:grid;gap:.3rem}
.addprop{margin:1.5rem 0 2rem}
.addprop__row{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));
  margin-bottom:.75rem}
.lead__convert{margin-top:.9rem}
.linkish--go{color:var(--lamp);text-decoration-thickness:1px}
.lead__done{margin:.9rem 0 0;font-size:.85rem}
.lead__done a{color:var(--lamp);text-decoration:none}

.importer{margin-bottom:1.75rem;padding:1rem 1.15rem;border-radius:4px;
  background:var(--sky-1);box-shadow:inset 0 0 0 1px var(--sky-3)}
.importer summary{cursor:pointer;font-weight:600;font-size:.92rem}
.importer[open] summary{margin-bottom:.9rem;color:var(--lamp)}
.importer .hint{display:block;margin:0 0 .75rem;font-size:.85rem;line-height:1.5}
.importer a{color:var(--lamp)}
.head__aside{margin:.5rem 0 0;width:100%;font-size:.88rem}
.head__aside a{color:var(--lamp);text-decoration:none}
.head__aside a:hover{text-decoration:underline}

/* ------------------------------------------------------------------- jobs */

.dates{display:grid;gap:.6rem 1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
.dates label{margin-bottom:0}
input[type=date]{width:100%;padding:.6rem .7rem;font:inherit;color:var(--text-lit);
  background:var(--sky-2);border:0;border-radius:4px;box-shadow:inset 0 0 0 1px var(--sky-3)}
input[type=date]:focus-visible{outline:0;
  box-shadow:inset 0 0 0 1px var(--lamp-deep),0 0 0 3px rgba(243,200,120,.18)}

.grid--pick .tile label{display:block;position:relative;cursor:pointer;border-radius:4px;overflow:hidden}
.grid--pick .tile img{display:block;width:100%;height:7rem;object-fit:cover;transition:opacity .15s}
.grid--pick .tile input{position:absolute;left:.4rem;top:.4rem;z-index:2;width:1.2rem;height:1.2rem;
  accent-color:var(--lamp)}
.grid--pick .tile input:not(:checked) ~ img{opacity:.5}
.grid--pick .tile label:hover img{opacity:1}

.tag--quoted{color:#9FC4E8}
.tag--scheduled{color:var(--lamp)}
.tag--in_progress{color:var(--sky-0);background:var(--lamp)}
.tag--complete{color:var(--sky-0);background:#3E7A5E}
.tag--cancelled{color:var(--text-dim)}
.newjob{display:flex;gap:.5rem;margin-top:.7rem;flex-wrap:wrap;align-items:center}
.newjob select{width:auto;flex:1 1 10rem;font-size:.85rem;padding:.45rem .6rem}
.newjob .btn{white-space:nowrap}
a.row__name{color:var(--text-lit);text-decoration:none}
a.row__name:hover{color:var(--lamp)}

/* ------------------------------------------------------ maintenance + spec */

.row--slipped{box-shadow:inset 0 0 0 1px var(--flame)}
.visit{margin-top:.6rem}
.row__spec{font-size:.82rem;color:var(--text-dim);line-height:1.6}
.row__spec b{color:var(--text-lit);font-weight:600}

.propedit{margin-top:.7rem}
.propedit summary{cursor:pointer;font-size:.82rem;color:var(--lamp)}
.propedit form{margin-top:.9rem;padding-top:.9rem;box-shadow:inset 0 1px 0 var(--sky-3)}
.propedit .btn{width:auto;margin-top:.5rem}

/* --------------------------------------------------------- service images */

.svcimg{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.svcimg__row{display:grid;grid-template-columns:minmax(0,16rem) minmax(0,1fr);gap:1.25rem;
  padding:1rem;border-radius:4px;background:var(--sky-1);box-shadow:inset 0 0 0 1px var(--sky-3)}
@media (max-width:44rem){.svcimg__row{grid-template-columns:minmax(0,1fr)}}
.svcimg__shot{position:relative;border-radius:4px;overflow:hidden;background:var(--sky-2)}
.svcimg__shot img{display:block;width:100%;height:9rem;object-fit:cover}
.svcimg__shot .tag{position:absolute;right:.4rem;top:.4rem}
.svcimg__none{display:grid;place-items:center;height:9rem;font-size:.85rem;color:var(--text-dim);
  text-align:center;padding:1rem}
.svcimg__name{margin:0;font-size:1.02rem;font-weight:600}
.svcimg__body .hint{display:block;margin:.2rem 0 .9rem;font-size:.82rem}
.svcimg__body .prov{margin-bottom:.8rem}
.svcimg__body .prov .check{margin-bottom:.35rem;font-size:.88rem}
.svcimg__body .prov small{display:inline;color:var(--text-dim);font-size:.78rem}
.svcimg__body .linkish{margin-top:.7rem}

/* The live badge sits opposite the disclosure tag so the two never stack. */
.svcimg__flag{left:.4rem;right:auto !important}

/* The other images this service keeps. Small on purpose: they are the
   alternatives, and the one on the website is the one shown large above. */
.alts{margin-top:1.1rem;padding-top:.9rem;border-top:1px solid var(--sky-3)}
.alts h3{margin:0 0 .6rem}
/* .svcimg__body .hint is display:block, which put the count on its own line. */
.alts h3 .hint{display:inline}
.alts__list{
  list-style:none;margin:0;padding:0;
  display:grid;
  /* Fits as many as the row allows and wraps the rest, rather than a fixed
     count that is too many on a phone and too few on a desktop. */
  grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr));
  gap:.7rem;
}
.alts__item{position:relative;border-radius:4px;overflow:hidden;background:var(--sky-2)}
.alts__item img{display:block;width:100%;height:5.5rem;object-fit:cover}
.alts__item .tag{position:absolute;left:.3rem;top:.3rem}
.alts__act{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem}
.alts__act .linkish{margin-top:0}
.lead__extra{display:grid;grid-template-columns:auto 1fr;gap:.25rem .8rem;
  margin:.7rem 0 0;font-size:.84rem}
.lead__extra dt{color:var(--text-dim);text-transform:capitalize}
.lead__extra dd{margin:0;color:var(--text-lit)}
.askref{margin-top:2rem;padding-top:1.5rem;box-shadow:inset 0 1px 0 var(--sky-3)}
.askref .hint{display:block;margin:.3rem 0 1rem;font-size:.85rem}

/* Bar sizes as classes, because the admin's CSP has no 'unsafe-inline'
   for style-src and therefore drops every style attribute. Inline
   widths were being thrown away silently: a bar meant to be a third
   full rendered identically to a full one, and the chart had been
   saying the same thing about every page since it was written.
   Five per cent steps are finer than anyone can read off a bar.

   Last in the file on purpose. :where() drops the component defaults to
   the same specificity as these, and at equal specificity the later rule
   wins — so a utility that is meant to override has to come after the
   thing it overrides. */
.w-0{width:0%}
.w-5{width:5%}
.w-10{width:10%}
.w-15{width:15%}
.w-20{width:20%}
.w-25{width:25%}
.w-30{width:30%}
.w-35{width:35%}
.w-40{width:40%}
.w-45{width:45%}
.w-50{width:50%}
.w-55{width:55%}
.w-60{width:60%}
.w-65{width:65%}
.w-70{width:70%}
.w-75{width:75%}
.w-80{width:80%}
.w-85{width:85%}
.w-90{width:90%}
.w-95{width:95%}
.w-100{width:100%}
.h-0{height:0%}
.h-5{height:5%}
.h-10{height:10%}
.h-15{height:15%}
.h-20{height:20%}
.h-25{height:25%}
.h-30{height:30%}
.h-35{height:35%}
.h-40{height:40%}
.h-45{height:45%}
.h-50{height:50%}
.h-55{height:55%}
.h-60{height:60%}
.h-65{height:65%}
.h-70{height:70%}
.h-75{height:75%}
.h-80{height:80%}
.h-85{height:85%}
.h-90{height:90%}
.h-95{height:95%}
.h-100{height:100%}
