/* Highfield House Kitchen — chef-first illustrated tile interface.
   Original pictograms; drawing and interaction conventions take inspiration
   from the founder's Leafe references without copying their artwork. */
:root {
  --tile-ivory:#faf7f0;
  --tile-sand:#f1ebe1;
  --tile-ink:#1b2a2d;
  --tile-subtle:#465556;
  --tile-copper:#ad7049;
}
.primary-nav .nav-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:11px;
}
.primary-nav .nav-link svg {width:18px;height:18px;flex:none;}
#home .hero {
  border-radius:20px;
  padding:18px 19px;
  background:linear-gradient(115deg,#263b37,#29312f 76%,#433427);
}
#home .hero h1 {
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
  font-size:clamp(22px,4vw,28px);
  font-weight:750;
  line-height:1.22;
  letter-spacing:-.035em;
  margin-bottom:5px;
}
#home .hero .eyebrow {font-size:10px;margin-bottom:5px;}
#home .hero .subtle {font-size:12px;line-height:1.4;margin:0;}
#home .progress-ring {
  width:66px;height:66px;
  font-size:17px;
  border-width:4px;
  border-color:#d79667;
}
#home .progress-line {margin:12px 1px 13px;height:5px;}
#home #carry-over,#home #next-task {display:none!important;}
#home .section-heading {margin:21px 0 6px;}
#home .section-heading h2 {
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
  font-size:19px;font-weight:750;letter-spacing:-.025em;
}
#home .section-heading>span{font-size:11px;}
#home .dashboard-summary {color:#bcc9c4;font-size:12px;margin:0 0 12px;}
#home #daily-grid,
#home #other-grid,
#home #completed-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
#home .check-card.illustrated-card {
  min-width:0;min-height:174px;
  padding:14px 14px 12px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  gap:4px;
  border:1px solid #d3c7b9;
  border-radius:19px;
  background:linear-gradient(150deg,var(--tile-ivory),var(--tile-sand));
  box-shadow:0 6px 0 #00000008,0 10px 23px #00000016;
  text-align:left;color:var(--tile-ink);
  transition:transform .15s,box-shadow .15s,border-color .15s;
}
#home .check-card.illustrated-card .card-title {
  display:block;
  font-size:14px;
  font-weight:740;
  line-height:1.25;
  letter-spacing:-.015em;
  min-height:35px;
  overflow-wrap:anywhere;
}
#home .check-card.illustrated-card .check-symbol {
  align-self:center;
  display:grid;place-items:center;
  width:80px;height:80px;flex:0 0 80px;
  border:0;background:none;box-shadow:none;
  border-radius:0;padding:0;color:inherit;
}
#home .check-card.illustrated-card .check-symbol svg {
  width:78px;height:78px;max-width:100%;
  filter:drop-shadow(0 3px 2px #00000015);
}
#home .check-card.illustrated-card .card-meta {
  display:flex;align-items:center;justify-content:space-between;gap:4px;
  min-width:0;width:100%;
  margin-top:auto;
}
#home .check-card.illustrated-card .status {
  max-width:calc(100% - 18px);
  font-size:10px;font-weight:750;line-height:1.12;
  white-space:normal;
  padding:5px 7px;
  border-radius:8px;
}
#home .check-card.illustrated-card .status.outstanding,
#home .check-card.illustrated-card .status.not_due {
  background:#f6e1ca;color:#864928;
}
#home .check-card.illustrated-card .status.complete {
  background:#d9eee0;color:#2b6646;
}
#home .check-card.illustrated-card .status.partial {
  background:#d9e8ec;color:#286474;
}
#home .check-card.illustrated-card .status.attention {
  background:#f6d7cb;color:#8f3823;
}
#home .check-card.illustrated-card .card-arrow {
  margin:0;color:#925b3b;font-size:21px;font-weight:700;
}
#home .check-card.illustrated-card:active {
  transform:scale(.98);background:#fffaf0;
}
#home .check-card.illustrated-card:focus-visible {
  outline:3px solid var(--amber);outline-offset:3px;
}
#home .check-card.illustrated-card:hover {
  border-color:#bd9c77;
  box-shadow:0 4px 0 #00000006,0 13px 27px #00000024;
}
#home .completed-records {
  margin-top:16px;padding:10px 13px;
  border:1px solid #4b5c55;border-radius:13px;
}
#home .completed-records summary {
  cursor:pointer;min-height:30px;
  display:flex;justify-content:space-between;align-items:center;
  gap:12px;font-size:13px;font-weight:700;
}
#home .completed-records summary span:last-child {
  font-size:11px;font-weight:500;color:var(--muted);
}
#home .completed-records .check-grid{margin-top:12px;}
#home .finalise-panel {margin:20px 0 24px;padding:17px;}
#home .history-picker{font-size:12px;}
/* SFBB directory — cards that can be scanned, not nested table rows. */
#sfbb .sfbb-category {background:transparent;border:0;}
#sfbb .sfbb-method-list {
  grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
#sfbb .sfbb-method-row {
  background:linear-gradient(150deg,#fbf8f2,#eee9df);
  color:#1d2b2c;border:1px solid #d4c8ba!important;
  min-height:163px;border-radius:17px;padding:13px;
  box-shadow:0 6px 14px #0002;
  gap:7px;
}
#sfbb .sfbb-method-row:hover,#sfbb .sfbb-method-row:focus-visible {
  background:#fffaf0;border-color:#b7895d!important;
}
#sfbb .sfbb-card-icon {
  border:0;border-radius:14px;width:48px;height:48px;
  background:#dcebe8;color:#3b7580;
}
#sfbb .sfbb-method-copy strong {
  color:#1f3030;font-size:13px;line-height:1.25;font-weight:750;
}
#sfbb .sfbb-method-copy small {display:none;}
#sfbb .sfbb-method-row .status {
  color:#875136;background:#f2e1cf;
  font-size:10px;
}
#sfbb .sfbb-method-row .status.complete {
  background:#dbeedd;color:#286746;
}
#sfbb .sfbb-method-row .card-arrow {color:#9b704e;font-size:23px;}
#sfbb .sfbb-category .section-heading {margin:23px 0 11px;}
#sfbb .sfbb-category .section-heading h2 {
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
  font-weight:750;font-size:18px;
}
/* Inputs are actual measurements; controls never pre-fill a new reading. */
#details .form-intro h1 {
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
  font-size:clamp(24px,4vw,32px);font-weight:770;
}
#details .form-content{gap:11px;}
#details .field-card {
  background:#faf7f0;
  color:#1b2a2d;border:1px solid #dfd3c5;
  padding:15px 17px;border-radius:17px;
  box-shadow:0 4px 14px #0000001b;
}
#details .field-card .field-label,
#details .field-card>label {color:#1c292a;font-weight:730;line-height:1.35;}
#details .field-card .hint,
#details .field-card .temp-hint {color:#4b5c5b;font-size:12px;}
#details .field-card input,
#details .field-card select,
#details .field-card textarea {
  color:#172527;background:#fff;border:1px solid #c8c4ba;
  border-radius:10px;
}
#details .field-card input::placeholder,
#details .field-card textarea::placeholder {color:#727d7a;}
#details .field-card .choice {
  background:#fff;color:#243536;border:1px solid #d6cdc2;
  font-weight:700;min-height:46px;
}
#details .field-card .choice[data-value="yes"][aria-pressed="true"] {
  color:#155d3d;background:#dff3e7;border-color:#458c65;
}
#details .field-card .choice[data-value="no"][aria-pressed="true"] {
  color:#923d2d;background:#ffe5db;border-color:#b66b53;
}
#details .field-card .choice[data-value="na"][aria-pressed="true"] {
  color:#805522;background:#fff0ce;border-color:#bd9450;
}
#details .field-card .round-choice[aria-pressed="true"] {
  color:#1e5b53;background:#d8f0e8;border:2px solid #3a897e;
}
#details .temperature-card>label {
  display:block;font-size:17px;font-weight:780;
}
#details .temperature-card .hint {margin-bottom:12px;}
#details .temp-controls {
  display:flex;gap:8px;align-items:center;justify-content:space-between;
}
#details .temperature-card .temp-step {
  flex:0 0 49px;height:58px;min-width:0;border:1px solid #d7cfc4;
  border-radius:13px;background:#fff;color:#1e3033;
  font-size:31px;font-weight:450;box-shadow:0 3px 6px #0000001a;
}
#details .temperature-card .measure {
  display:flex;flex:1;min-width:0;
  align-items:center;justify-content:space-between;gap:5px;
  background:#fff;border:1px solid #d7cfc4;
  border-radius:13px;padding:0 9px;height:58px;
}
#details .temperature-card .measure input,
#details .temperature-card .measure input[data-number] {
  border:0!important;border-radius:0!important;
  background:transparent!important;color:#1b2b2e!important;
  -webkit-text-fill-color:#1b2b2e;
  width:100%!important;min-width:0;max-width:none!important;
  text-align:center;font-size:29px;font-weight:800;padding:4px 0;
  box-shadow:none;appearance:textfield;
}
/* Dedicated iPhone-safe sign toggle: decimal keyboard lacks the minus key.
   Keep it alongside the entered reading, not as an inferred temperature. */
#details .temperature-card .measure .temp-sign {
  flex:0 0 40px;min-width:40px;height:42px;border:1px solid #c9b39e;
  border-radius:10px;background:#f8eee2;color:#49372a;
  font-size:23px;font-weight:750;touch-action:manipulation;
}
#details .temperature-card .measure .temp-sign:active{background:#ebd7c1}
#details .temperature-card .temp-negative-tip{margin:7px 0 0;font-size:12px}
#details .temperature-card .measure span {
  color:#344948;font-size:14px;font-weight:750;
}
#details .temperature-card .temp-step:active {background:#f0e2d1;}
#details .field-card:focus-within{border-color:#b4825f;}
#details .notice {line-height:1.5;}
@media(max-width:720px) {
  .primary-nav {
    position:fixed!important;inset:auto 0 0;
    width:100%;max-width:none;z-index:25;
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;align-items:center;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));
    border:0;border-top:1px solid #4e5f56;
    border-radius:0;
    background:#172221f7;box-shadow:0 -10px 30px #0004;
    backdrop-filter:blur(12px);
  }
  .primary-nav .nav-link {
    border:0!important;border-radius:12px;
    flex-direction:column;gap:3px;
    font-size:11px;line-height:1.2;
    font-weight:700;color:#bfc9c4;
    background:transparent;
    padding:7px 4px;min-height:52px;
  }
  .primary-nav .nav-link svg{width:22px;height:22px;}
  .primary-nav .nav-link.active {
    background:#3a322b;color:#f2c18f;border:0!important;
    box-shadow:inset 0 0 0 1px #765536;
  }
  .main {padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important;}
  #home .hero {padding:17px 16px;}
  #home .hero h1{font-size:22px;}
  #home .hero .subtle{font-size:11px;}
  #home .progress-ring{width:60px;height:60px;font-size:16px;}
  #home #daily-grid,#home #other-grid,#home #completed-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  }
  #home .check-card.illustrated-card {
    min-height:178px;padding:13px 12px 10px;border-radius:17px;
  }
  #home .check-card.illustrated-card .card-title{font-size:13px;min-height:33px;}
  #home .check-card.illustrated-card .check-symbol{width:73px;height:73px;flex-basis:73px;}
  #home .check-card.illustrated-card .check-symbol svg{width:72px;height:72px;}
  #sfbb .sfbb-method-row {min-height:150px;}
  #details .form-content{gap:10px;}
  #details .field-card{padding:14px;}
  #details .temperature-card .temp-step{flex-basis:47px;}
  #details .temperature-card .measure input{font-size:26px;}
}
@media(max-width:350px){
  #home .check-card.illustrated-card {padding:11px 9px;min-height:168px;}
  #home .check-card.illustrated-card .card-title {font-size:12px;}
  #home .check-card.illustrated-card .check-symbol{width:65px;height:65px;flex-basis:65px;}
  #home .check-card.illustrated-card .check-symbol svg{width:64px;height:64px;}
  #home .check-card.illustrated-card .status {font-size:9px;}
  #details .temperature-card .temp-step{flex-basis:44px;}
}
@media(prefers-reduced-motion:reduce){
  #home .check-card.illustrated-card{transition:none;}
}

/* SFBB illustrations share the friendly filled-icon language of the dashboard. */
#sfbb .sfbb-card-icon {
  display:grid;place-items:center;
  width:64px;height:64px;
  flex:0 0 64px;background:none;border:0;padding:0;
}
#sfbb .sfbb-card-icon svg {
  width:64px;height:64px;max-width:100%;
  filter:drop-shadow(0 2px 2px #00000010);
}
#sfbb .sfbb-method-row {
  min-height:176px;justify-content:space-between;
}
@media(max-width:720px){
  #sfbb .sfbb-card-icon{width:60px;height:60px;flex-basis:60px;}
  #sfbb .sfbb-card-icon svg{width:60px;height:60px;}
  #sfbb .sfbb-method-row{min-height:169px;}
}

/* November 6 usability repairs: SFBB has six category choices first,
   never hundreds of tightly stacked icons and clipped text. */
#sfbb .hero{min-width:0;gap:12px;align-items:center;}
#sfbb .hero>div:first-child{min-width:0;flex:1;}
#sfbb .hero h1{font-family:Inter,"Segoe UI",system-ui,sans-serif;font-size:clamp(22px,4vw,29px);font-weight:800;line-height:1.12;}
#sfbb .hero .subtle{font-size:12px;}
#sfbb .progress-ring {
  width:66px;height:66px;flex:0 0 66px;min-width:0;min-height:0;
  font-size:15px;white-space:nowrap;text-align:center;
  line-height:1.1;overflow:hidden;padding:4px;
}
#sfbb .sfbb-source-notice {
  border:1px solid #53635d;background:#23312e;
  padding:11px 13px;border-radius:12px;
  margin-top:13px;color:#dce4dc;font-size:12px;
}
#sfbb .sfbb-source-notice summary {cursor:pointer;font-weight:650;}
#sfbb .sfbb-source-notice p{margin:10px 0 0;line-height:1.5;color:#d4dfd7;}
#sfbb .sfbb-summary {color:#b9c9c3;margin:12px 0 14px;font-size:12px;}
#sfbb .sfbb-actions {gap:8px;align-items:center;}
#sfbb .sfbb-actions .back-link {flex:0 0 auto;margin:0;padding:7px;}
#sfbb .sfbb-actions label {font-size:12px;}
#sfbb .sfbb-actions input {min-height:44px;}
#sfbb .sfbb-category-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;
}
#sfbb .sfbb-category-card {
  min-width:0;min-height:179px;
  display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;
  border:1px solid #d5cbbb;border-radius:18px;
  background:linear-gradient(145deg,#fbf9f3,#eee8df);
  padding:13px 13px 11px;color:#203034;text-align:left;
  box-shadow:0 7px 18px #00000023;
}
#sfbb .sfbb-category-card strong {
  font-size:14px;font-weight:800;line-height:1.23;overflow-wrap:anywhere;
}
#sfbb .sfbb-category-card .sfbb-card-icon{
  width:72px;height:72px;flex:0 0 72px;align-self:center;
  display:grid;place-items:center;
}
#sfbb .sfbb-category-card .sfbb-card-icon svg {width:72px;height:72px;}
#sfbb .sfbb-category-card .category-card-foot {
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;font-size:10px;font-weight:700;color:#8c6146;
  width:100%;
}
#sfbb .sfbb-category-card .category-card-foot span:last-child{font-size:20px;}
#sfbb .sfbb-category-card:focus-visible {outline:3px solid #daaf73;outline-offset:2px;}
#sfbb .sfbb-category-card:active {transform:scale(.99);}
#sfbb .sfbb-picked-category {margin:7px 0 13px;}
#sfbb .sfbb-picked-category h2{font-size:18px;}
#sfbb .sfbb-method-list {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;overflow:visible;
}
#sfbb .sfbb-method-list .sfbb-method-row {
  display:flex;flex-direction:column;align-items:stretch;
  gap:9px;justify-content:space-between;
  min-height:116px;height:auto;
  padding:14px 12px 13px;position:relative;
  background:#faf7f0;color:#203034;border:1px solid #d4c8ba!important;
  overflow:hidden;
}
#sfbb .sfbb-method-list .sfbb-method-copy {
  width:100%;flex:0 0 auto;min-width:0;display:block;
}
#sfbb .sfbb-method-list .sfbb-method-copy strong {
  display:block;font-size:13px;line-height:1.25;
  overflow-wrap:anywhere;color:#1e2e31;
}
#sfbb .sfbb-method-list .status {
  flex:0 0 auto;align-self:flex-start;
  white-space:normal;max-width:calc(100% - 24px);
  line-height:1.18;margin-top:auto;padding:5px 7px;
}
#sfbb .sfbb-method-list .card-arrow {
  position:absolute;bottom:7px;right:9px;
  font-size:22px;line-height:1;
}
#sfbb-method #sfbb-source {white-space:pre-line;overflow-wrap:anywhere;}
#details .fridge-guidance {
  margin:0 0 5px;padding:15px 17px;border:1px solid #c99a68;
  border-left:5px solid #e7ae70;border-radius:14px;
  background:#312b24;color:#f7e4c7;
  font-size:13px;line-height:1.52;
}
#details .fridge-guidance strong {
  display:block;color:#ffcf95;font-size:15px;margin-bottom:6px;
}
#details .fridge-guidance div {max-width:75ch;}
@media(max-width:420px) {
  #sfbb .hero {padding:15px 13px;}
  #sfbb .progress-ring {width:58px;height:58px;flex-basis:58px;font-size:13px;}
  #sfbb .sfbb-category-grid {gap:9px;}
  #sfbb .sfbb-category-card {padding:12px;min-height:161px;}
  #sfbb .sfbb-category-card strong {font-size:13px;}
  #sfbb .sfbb-category-card .sfbb-card-icon{width:61px;height:61px;flex-basis:61px;}
  #sfbb .sfbb-category-card .sfbb-card-icon svg{width:61px;height:61px;}
  #sfbb .sfbb-method-list{gap:8px;}
  #sfbb .sfbb-method-list .sfbb-method-row{min-height:118px;padding:12px 10px 13px;}
  #sfbb .sfbb-method-list .sfbb-method-copy strong{font-size:12px;}
}

/* Original Highfield copper-leaf identity — no generic home glyph. */
.site-header .brand-mark{
  display:flex;align-items:center;justify-content:center;
  flex:0 0 46px;width:46px;height:46px;
  background:transparent;border:0;border-radius:0;
  box-shadow:none;padding:1px;
}
.site-header .brand-mark img{
  display:block;width:43px;height:43px;object-fit:contain;
}
.login-panel .emblem{
  display:flex;align-items:center;justify-content:center;
  height:84px;width:84px;
  background:#1e2627;border:1px solid #8e684b;border-radius:19px;
  padding:10px;
}
.login-panel .emblem img{
  display:block;width:100%;height:100%;object-fit:contain;
}
@media(max-width:420px){
  .site-header .brand-mark{width:41px;height:41px;flex-basis:41px;}
  .site-header .brand-mark img{width:39px;height:39px;}
}

/* A4 records are previewed inside the kitchen app; the server's separate
   @page print layout is unchanged. Content is scaled, never reflowed. */
body{padding-top:env(safe-area-inset-top,0px)}
#paper-viewer{min-width:0}
.paper-viewer-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin:10px 0 16px}
.paper-viewer-heading h1{margin:2px 0 5px;font-size:clamp(21px,4vw,28px)}
.paper-viewer-heading .button{min-height:46px}
.paper-viewer-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px;border-radius:14px;background:#29322e;border:1px solid #665b4b}
.paper-viewer-tools .button{min-height:44px;min-width:44px;padding:8px 12px}
.paper-viewer-tools label{display:flex;gap:7px;align-items:center;font-size:13px;font-weight:700}
#paper-zoom{flex:1 1 90px;min-width:85px;accent-color:#d59764;touch-action:pan-x}
#paper-zoom-label{font-variant-numeric:tabular-nums;min-width:40px;text-align:right}
.paper-viewer-tip{font-size:12px;margin:9px 0}
.paper-preview-viewport{position:relative;overflow:auto;overscroll-behavior:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;background:#3b3c3b;border:1px solid #867865;border-radius:14px;padding:12px;min-height:310px;height: min(68dvh,810px);scrollbar-width:thin}
.paper-preview-page{position:relative;background:white;margin:0 auto;box-shadow:0 5px 25px #0006;overflow:hidden}
.paper-preview-page iframe{position:absolute;top:0;left:0;border:0;background:white;transform-origin:0 0;pointer-events:none}
.paper-gesture-layer{position:absolute;inset:0;touch-action:pan-y pinch-zoom;cursor:grab;user-select:none}
.paper-gesture-layer:active{cursor:grabbing}
@media(max-width:720px){
 .paper-preview-viewport{height:calc(100dvh - 310px);min-height:230px;padding:6px;border-radius:9px}
 .paper-viewer-tools{gap:5px}
 .paper-viewer-tools .button{padding:7px 9px}
 .paper-viewer-heading .button{width:100%}
}
@media print{#paper-viewer{display:none!important}}

/* Official source material remains inspectable without crowding chef tasks. */
.sfbb-original-source{margin:16px 0 20px;border:1px solid #7b6b54;border-radius:15px;padding:14px;background:#202b2a;color:#f6e8d6}
.sfbb-original-source>summary{font-weight:760;min-height:44px;cursor:pointer;color:#ffcf9f;line-height:1.45;padding:7px}
.sfbb-original-pages{display:grid;gap:14px;margin-top:16px}
.sfbb-original-page{background:#fff7eb;color:#2d2924;border:1px solid #d8bca1;border-radius:14px;padding:18px}
.sfbb-original-page h3{color:#7d452a;font-size:14px;margin:0 0 12px}
.sfbb-official-text{font-family:inherit;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;max-width:100%;margin:0}
@media(max-width:620px){.sfbb-original-page{padding:13px}.sfbb-official-text{font-size:12.5px}}
@media print{.sfbb-original-source{break-inside:avoid}.sfbb-original-page{background:white;color:black;border:1px solid #888}}


/* Separate FSA book/navigation reference; no completion implied by reading. */
.sfbb-reference-index{margin-top:22px;border-top:1px solid #6d5d4c;padding:17px 0 8px}
.sfbb-reference-index summary{cursor:pointer;font-weight:750;color:#f5d8b8;padding:8px 0;min-height:44px}
.sfbb-reference-index>.subtle{margin:5px 0 14px;line-height:1.5}
.sfbb-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.sfbb-reference-card{padding:14px 11px;min-height:106px;border:1px solid #d0b28f;border-radius:14px;background:#f7ead8;color:#2c261f;text-align:left;display:flex;flex-direction:column;gap:11px;justify-content:space-between;cursor:pointer}
.sfbb-reference-card strong{font-size:13px;line-height:1.4}
.sfbb-reference-card span{font-size:11px;color:#665449;font-weight:700}
#sfbb-guidance{max-width:920px}
#sfbb-guidance>.subtle{margin:12px 0 18px}
@media(max-width:380px){.sfbb-reference-grid{gap:8px}.sfbb-reference-card{padding:12px 9px;min-height:100px}}


.sfbb-q-provenance{font-size:11px;text-transform:uppercase;letter-spacing:.055em;font-weight:760;color:#90512e;margin:0 0 8px;line-height:1.4}
#sfbb-questions .field-card:has(.sfbb-q-provenance){padding-top:14px}

/* Original FSA questions: chef-first, thumb-size controls and readable cream cards. */
.sfbb-official-panel{margin:18px 0 22px;padding:17px;border:1px solid #a07a52;border-radius:18px;background:#25302e;color:#f6e8d6}
.sfbb-official-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.sfbb-official-heading h2{margin:4px 0;font-size:clamp(19px,3.5vw,25px);line-height:1.2;color:#f6e8d6}
.sfbb-official-count{padding:5px 11px;border-radius:99px;border:1px solid #c59d71;color:#f4d3ad;font-size:12px;font-weight:700;white-space:nowrap}
.sfbb-official-panel>.subtle{font-size:13px;line-height:1.55;color:#e6daca}
.sfbb-official-status{font-size:13px;font-weight:750;color:#fad5b0;margin:12px 0}
.sfbb-official-items{display:grid;gap:12px;margin:15px 0}
.sfbb-official-item{background:#faf1e6;color:#292825;border:1px solid #ddbea0;border-radius:15px;padding:17px;min-width:0}
.sfbb-official-item .sfbb-q-provenance{margin-top:0}
.sfbb-official-item label{display:block;margin-bottom:8px;font-size:14px;font-weight:720;line-height:1.46;color:#322b25}
.sfbb-official-item select,.sfbb-official-item textarea{display:block;width:100%;min-height:47px;padding:11px;font:inherit;border:1px solid #ad9780;border-radius:10px;background:white;color:#2c2925}
.sfbb-official-item textarea{resize:vertical;min-height:76px}
.sfbb-official-item .sfbb-extra-note{font-size:12px;font-weight:650;margin-top:12px}
.sfbb-old-suggestion{margin-top:12px;border-top:1px dashed #c6ab8e;padding-top:10px;font-size:12px}
.sfbb-old-suggestion summary{cursor:pointer;font-weight:700;color:#83502c;padding:5px 0}
.sfbb-old-suggestion p{line-height:1.5;overflow-wrap:anywhere}
.sfbb-old-suggestion .button{min-height:43px;color:#312820;border-color:#a1805e}
#sfbb-official-note{width:100%;min-height:45px;margin:8px 0 14px;background:white;color:#292825;border-radius:10px}
#sfbb-official-form>.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}
#sfbb-official-form>.form-actions>.button{min-height:48px}
.sfbb-source-history{border-top:1px solid #856b4b;margin:18px 0;padding-top:14px}
.sfbb-source-history summary{cursor:pointer;color:#ffce9e;font-weight:720;min-height:40px}
.sfbb-source-history .history-entry{background:#fdf3e7;color:#2c2722;padding:12px;border-radius:12px;margin:9px 0;overflow-wrap:anywhere}
.sfbb-source-history .history-entry summary{color:#744626}
@media(max-width:540px){
 .sfbb-official-panel{padding:12px;margin:14px 0}
 .sfbb-official-item{padding:12px}
 #sfbb-official-form>.form-actions>.button{width:100%}
}

#sfbb .sfbb-method-row .sfbb-source-coverage{display:block!important;font-size:10px;line-height:1.4;margin-top:7px;color:#71543f;font-weight:700}
#sfbb .sfbb-method-list .sfbb-method-row:has(.sfbb-source-coverage){min-height:130px}

/* Keep the significance of conditional FSA follow-ups obvious on small phones. */
.sfbb-official-item .sfbb-applicability{font-size:12px;line-height:1.45;color:#705840;font-weight:650;margin:-2px 0 10px}
.sfbb-official-item:has(.sfbb-applicability) .sfbb-extra-note{margin-top:10px}

/* FSA supplement eligibility is distinct from method review and regulatory approval. */
.sfbb-care-applicability{border:1px solid #b6936d;border-radius:16px;background:#222e2b;padding:14px;margin:14px 0 20px;color:#f6e8d6}
.sfbb-care-applicability>summary{font-weight:800;cursor:pointer;color:#f9cca2;min-height:44px;padding:6px 0;line-height:1.4}
.sfbb-care-applicability p{font-size:13px;line-height:1.55}
.sfbb-care-applicability label{display:block;font-size:13px;font-weight:750;margin:13px 0 7px}
.sfbb-care-applicability input:not([type=checkbox]),.sfbb-care-applicability textarea,.sfbb-care-applicability select{width:100%;min-height:48px;padding:12px;background:#fffaf3;color:#292a27;border:1px solid #b89c7a;border-radius:10px;font:inherit}
.sfbb-care-applicability .sfbb-care-confirm{display:flex;align-items:flex-start;gap:9px;line-height:1.45;font-weight:650}
.sfbb-care-applicability .sfbb-care-confirm input{width:20px;height:20px;flex-shrink:0;accent-color:#b5693f}
.sfbb-care-applicability a{color:#ffd2a4}
.sfbb-report-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px;border-radius:12px;background:#26322e;border:1px solid #a9815c}
.sfbb-report-controls .button{min-height:44px}
.sfbb-report-controls label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700}
.sfbb-report-controls input[type=range]{max-width:135px;accent-color:#d69a60}
.sfbb-report-viewport{margin-top:10px;border:1px solid #947e63;border-radius:14px;background:#323a39;overflow:auto;overscroll-behavior:contain;height:min(70dvh,850px);min-height:240px;padding:10px}
.sfbb-report-page{position:relative;margin:0 auto;background:#fff;box-shadow:0 8px 30px #0008;overflow:hidden}
.sfbb-report-page iframe{position:absolute;top:0;left:0;border:0;background:white;transform-origin:0 0;pointer-events:none}
.sfbb-report-gestures{position:absolute;inset:0;touch-action:none;cursor:grab}
.sfbb-report-gestures:active{cursor:grabbing}
#sfbb-report-title{font-size:clamp(20px,4vw,28px);margin:6px 0 8px}
@media(max-width:580px){.sfbb-report-viewport{height:calc(100dvh - 300px);padding:5px;min-height:240px}.sfbb-report-controls{gap:5px}.sfbb-report-controls label{flex:1 1 110px}.sfbb-report-controls input[type=range]{max-width:100px}}
@media print{#sfbb-report-viewer{display:none!important}}

/* Data-loss warning only when server has not verified a durable mounted database. */
.storage-safety-banner{padding:10px 16px;background:#f3e1c9;color:#49311b;border-bottom:2px solid #a8734b;font-size:12.5px;line-height:1.42}
.storage-safety-banner strong{font-weight:850}
.storage-safety-banner .text-button{color:#5e351c;text-decoration:underline;font-weight:800;display:inline-block;min-height:38px}
.sfbb-provenance-source{font-size:12px;font-weight:730;color:#7b4b2e}
.sfbb-provenance-disclaimer{font-size:11px;line-height:1.5;color:#5f554b}
.sfbb-superseded{font-weight:750;color:#91321b;font-size:12px}

/* PHONE ACCEPTANCE FIX — 7 November 2026
   The Android shell already fits the WebView above the native system bars.
   Do not add CSS safe-area padding a second time. Safari/iPhone still gets
   its genuine safe-area insets. This only changes the APP PREVIEW and chrome:
   the underlying server-created A4 print dimensions are untouched. */
html.highfield-native-shell body{padding-top:0!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
#paper-viewer .paper-viewer-topbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  position:sticky;top:0;z-index:5;
  background:#111719f5;border-bottom:1px solid #43544c;
  padding:4px 0 8px;margin:-4px 0 9px;
}
#paper-viewer .paper-view-back-button{
  display:inline-flex;align-items:center;gap:9px;min-height:44px;
  margin:0;padding:8px 14px;border-radius:11px;
  border:1px solid #6a786d;color:#f6e8d6;background:#293632;
  font-size:14px;font-weight:800;white-space:nowrap;
}
#paper-viewer .paper-view-back-button span{font-size:23px;line-height:1}
#paper-viewer .paper-viewer-topbar #paper-print{
  min-height:44px;padding:9px 16px;font-size:14px;font-weight:800;
  width:auto;max-width:55%;white-space:nowrap;
}
#paper-viewer .paper-viewer-heading{
  display:block;margin:0 0 9px;
}
#paper-viewer .paper-viewer-heading h1{
  margin:0 0 4px;font-size:clamp(19px,4.5vw,25px);line-height:1.2;
  letter-spacing:-.02em;
}
#paper-viewer #paper-preview-id{font-size:11px;line-height:1.45;margin:0;overflow-wrap:anywhere}
#paper-viewer .paper-viewer-tools{
  display:flex;align-items:center;flex-wrap:nowrap;min-width:0;gap:7px;
  padding:7px 9px;border-radius:12px;
}
#paper-viewer .paper-viewer-tools .button{
  min-height:42px;min-width:42px;flex-shrink:0;padding:7px 10px;
}
#paper-viewer #paper-fit{order:1}
#paper-viewer #paper-zoom-out{order:2}
#paper-viewer #paper-zoom{order:3;flex:1 1 30px;min-width:34px;max-width:none;margin:0}
#paper-viewer #paper-zoom-in{order:4}
#paper-viewer .paper-viewer-tools label{
  order:5;display:block;flex:0 0 auto;margin:0;font-size:12px;
}
#paper-viewer #paper-zoom-label{min-width:36px}
#paper-viewer .paper-viewer-tip{font-size:11px;line-height:1.4;margin:6px 0 8px}
#paper-viewer .paper-preview-viewport{
  padding:7px;min-height:300px;height:min(72dvh,780px);
}
@media(max-width:720px){
  .site-header .header-inner{min-height:57px!important;padding:6px 12px!important}
  .primary-nav{
    min-height:0!important;padding:5px 9px max(6px,env(safe-area-inset-bottom,0px))!important;
    gap:5px!important;
  }
  .primary-nav .nav-link{
    min-height:49px!important;padding:5px 3px!important;
    font-size:11px!important;
  }
  .primary-nav .nav-link svg{width:21px;height:21px}
  .main{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))!important}
  html.highfield-native-shell .primary-nav{padding-bottom:5px!important}
  html.highfield-native-shell .main{padding-bottom:78px!important}
  #paper-viewer .paper-viewer-topbar{margin:-6px 0 8px;padding:4px 0 7px}
  #paper-viewer .paper-viewer-heading h1{font-size:19px}
  #paper-viewer .paper-viewer-tools{gap:5px;padding:6px}
  #paper-viewer .paper-viewer-tools .button{min-width:39px;min-height:42px;padding:6px 9px}
  #paper-viewer #paper-fit{font-size:12px}
  #paper-viewer .paper-preview-viewport{
    height:calc(100dvh - 270px);min-height:280px;
    padding:5px;border-radius:10px;
  }
}
@media(max-width:350px){
  #paper-viewer .paper-viewer-tools{gap:3px}
  #paper-viewer #paper-fit{padding:6px}
  #paper-viewer .paper-viewer-tools .button{min-width:36px}
  #paper-viewer #paper-zoom{min-width:26px}
}

/* A lost acknowledgement must be conspicuous without claiming a save failed.
   Recovery is a read-only receipt check, followed only by an opt-in retry of
   the exact original request ID and immutable values. */
.save-recovery,.save-uncertain-banner{
  padding:15px 16px;border:1px solid #b98757;border-radius:14px;
  background:#382c24;color:#fae8d1;margin:12px 0 16px;
  box-shadow:inset 3px 0 #dda66c;
}
.save-recovery strong,.save-uncertain-banner strong{
  display:block;font-size:15px;font-weight:850;margin-bottom:6px;
}
.save-recovery p,.save-uncertain-banner p{font-size:13px;line-height:1.5;margin:0 0 12px}
.save-recovery .subtle{font-size:11.5px;margin:12px 0 0;color:#e4c9ac}
.save-recovery .form-actions{display:flex;gap:9px;flex-wrap:wrap;margin:0}
.save-recovery .form-actions .button,.save-uncertain-banner .button{
  min-height:44px;width:auto;padding:10px 13px;
}
@media(max-width:480px){
  .save-recovery,.save-uncertain-banner{padding:12px 13px}
  .save-recovery .form-actions{flex-direction:column}
  .save-recovery .form-actions .button{width:100%}
}

/* SFBB preparation guidance: a small status strip, not an approval indicator. */
.sfbb-question-progress{margin:11px 0 19px;padding:0 1px}
.sfbb-question-progress-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sfbb-question-progress-top p{margin:0;font-size:13px;line-height:1.5;font-weight:760;color:#e9c09b}
.sfbb-question-progress-top .button{min-height:40px;padding:7px 12px;font-size:12px}
.sfbb-question-progress-track{height:5px;overflow:hidden;border-radius:99px;background:#51615b;margin:10px 0 7px}
.sfbb-question-progress-track span{display:block;height:100%;width:0;background:#c98f61;border-radius:99px;transition:width .18s ease-out}
#sfbb-question-progress-hint{font-size:11.5px;line-height:1.45;margin:0;color:#d5c2aa}
.sfbb-needs-attention{outline:3px solid #b16b3f;outline-offset:3px}
@media(max-width:600px){.sfbb-question-progress-top{gap:6px}.sfbb-question-progress-top p{flex:1 1 180px}.sfbb-question-progress-top .button{min-height:44px}}


/* Chef-first recording: key factual site guidance appears BEFORE input fields.
   Keep it legible without the oversized explanatory card treatment. */
#details .safety-first{
  display:block;
  order:0;
  background:#312b24;
  color:#fff3e6;
  border:1px solid #a87a50;
  border-left:4px solid #d69b68;
  border-radius:12px;
  padding:12px 13px;
  margin:0 0 7px;
  font-size:13px;
  line-height:1.46;
  box-shadow:none;
}
#details .safety-first strong{
  display:block;
  color:#ffd3a5;
  font-size:14px;
  font-weight:800;
  margin:0 0 5px;
}
#details .safety-first b{color:#fff;font-weight:850}
#details .safety-first div{max-width:75ch}
@media(max-width:420px){
  #details .safety-first{padding:10px 12px;font-size:12.5px;line-height:1.44}
  #details .safety-first strong{font-size:13.5px}
}


/* Delivery check: avoid a duplicate food-type dropdown. A clearly labelled
   ambient exemption hides the probe controls; all measured deliveries need
   an explicit within/outside-limit assessment before signing. */
#delivery-temperature-panel[hidden]{display:none!important}
#details .delivery-ambient-field{padding:10px 13px}
#details .delivery-ambient-label{display:flex;gap:12px;align-items:center;margin:0;min-height:48px;cursor:pointer}
#details #delivery-ambient{width:22px;min-width:22px;height:22px;min-height:22px;accent-color:#b5693f;margin:0}
#details .delivery-limit-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
#details .delivery-limit-choice{min-height:50px;white-space:normal;text-wrap:balance}

/* Exact two-page printed cleaning schedule appears in the daily workflow;
   retain clear task names and readable frequency / method / assignee. */
#details .cleaning-task{gap:8px}
#details .cleaning-task-meta{font-size:12.5px;line-height:1.55;color:#384946;
  padding:7px 9px;margin:6px 0 10px;background:#f4ede2;border-radius:8px}
#details .cleaning-task-meta b{font-weight:760;color:#202b29}
#paper-original-install-panel{background:#fff8ed;color:#252721}
#paper-original-install-panel input[type=file]{min-height:52px;width:100%;display:block;
  margin:9px 0 12px;border:2px solid #ac865a;border-radius:9px;padding:8px;background:white;color:#222}
#paper-original-install-panel button{min-height:48px}
#paper-original-file-status,#paper-original-install-status{font-size:13px;line-height:1.5;color:#302c28}
#paper-grid .paper-form-card:disabled{opacity:.5;cursor:not-allowed}


/* Chef cleaning checklists: actual printed areas and frequencies followed by
   just two 44px touch choices. Each signed row shows the authenticated
   chef's initials; pending initials are explicitly not yet signed. */
#details .cleaning-hint{margin:8px 1px 12px;color:#f4dbc1;font-size:13px;line-height:1.5}
#details .cleaning-check-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;column-gap:10px;row-gap:5px;padding:12px 10px;
  margin:0 0 8px;border-radius:12px;background:#faf6ef;
  border:1px solid #d8cfc2;color:#232b29;min-width:0}
#details .cleaning-area{grid-column:1/-1;min-width:0;font-weight:760;
  font-size:15px;line-height:1.35;overflow-wrap:anywhere}
#details .cleaning-frequency{grid-column:1;grid-row:2;min-width:0;
  font-size:13px;line-height:1.3;color:#52625d}
#details .cleaning-row-controls{grid-column:2;grid-row:2;display:flex;gap:7px}
#details .cleaning-mark{min-width:44px;width:44px;min-height:44px;height:44px;
  padding:0;border-radius:11px;font-size:25px;font-weight:900;background:#fff;
  border:2px solid #b7b3a9;color:#28332f;touch-action:manipulation}
#details .cleaning-mark[data-value=yes][aria-pressed=true]{background:#d5f1df;
  color:#175432;border-color:#337750}
#details .cleaning-mark[data-value=no][aria-pressed=true]{background:#ffe2df;
  color:#9a2525;border-color:#c3564a}
#details .cleaning-mark[data-value=na]{width:54px;min-width:54px;font-size:12px;letter-spacing:-.02em}
#details .cleaning-mark[data-value=na][aria-pressed=true]{background:#fff0ce;
  color:#805522;border-color:#bd9450}
@media(max-width:650px){
  /* Three 44px+ choices must never crowd the frequency on a folded phone. */
  #details .cleaning-frequency{grid-column:1/-1;grid-row:2}
  #details .cleaning-row-controls{grid-column:1/3;grid-row:3;justify-self:start;flex-wrap:wrap}
  #details .cleaning-row-initials{grid-column:3;grid-row:3}
}
#details .cleaning-row-initials{grid-column:3;grid-row:2;min-width:34px;
  font-size:12px;line-height:1.25;text-align:center;font-weight:800;
  color:#375c4b;white-space:normal;overflow-wrap:anywhere}
#details .cleaning-saved-mark{font-size:16px}
#details .cleaning-unsigned{color:#8c8d87}
#details .cleaning-pending-signature{max-width:94px;color:#815a31;font-size:11px;
  font-weight:650}
@media(max-width:375px){
  #details .cleaning-check-row{column-gap:6px;padding:10px 7px}
  #details .cleaning-row-controls{gap:4px}
  #details .cleaning-mark{width:42px;min-width:42px;min-height:44px}
  #details .cleaning-row-initials{min-width:28px}
}

/* Four simple chef tabs; Admin is shown only to the authorised owner. */
@media(max-width:720px){
  .primary-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .primary-nav.has-admin{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .primary-nav .nav-link{min-width:0!important;white-space:normal;overflow-wrap:anywhere;text-align:center}
  .primary-nav .nav-link span{font-size:10px;line-height:1.15}
  .primary-nav.has-admin .nav-link{padding:5px 2px!important;gap:4px!important}
  .main{padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))!important}
  html.highfield-native-shell .main{padding-bottom:108px!important}
}

/* Chef-facing Daily Food Safety Diary: one vertical daily panel, not the
   seven-column paper week. The printed weekly sheet remains authoritative. */
#details .diary-layout{display:grid;gap:14px;max-width:100%;min-width:0}
#details .diary-intro{padding:19px 20px;background:linear-gradient(128deg,#263e3a,#1c302e);
  color:#f8f0e6;border:1px solid #a67a57;border-radius:17px}
#details .diary-eyebrow{display:block;color:#e3ac80;font-size:11px;
  font-weight:800;letter-spacing:.13em;margin-bottom:7px}
#details .diary-intro h2{color:#fff5eb;margin:0 0 6px;font-size:23px;line-height:1.22}
#details .diary-intro p{color:#e0ded7;font-size:13px;line-height:1.5;margin:0}
#details .diary-section{background:#fbf8f1;border:1px solid #d8ccba;
  border-radius:17px;padding:16px;color:#25312d}
#details .diary-section-title{display:flex;gap:6px 16px;align-items:baseline;
  flex-wrap:wrap;margin:0 0 11px}
#details .diary-section-title strong{font-size:17px}
#details .diary-section-title span{color:#5e6a64;font-size:12px}
#details .diary-status-list{display:grid;gap:9px}
#details .diary-status-row{display:flex;align-items:center;gap:12px;
  background:#fff;border:1px solid #e1ded5;border-radius:11px;padding:12px;
  min-height:67px;min-width:0}
#details .diary-status-icon{display:flex;align-items:center;justify-content:center;
  flex:none;width:33px;height:33px;border-radius:11px;background:#e8efe9;
  color:#315446;font-size:21px;font-weight:850}
#details .diary-status-copy{flex:1;min-width:0;display:grid;gap:3px}
#details .diary-status-copy strong{font-size:15px;color:#25332e}
#details .diary-status-copy small{font-size:12px;line-height:1.3;color:#59665f}
#details .diary-status-pill{flex:none;white-space:nowrap;border-radius:30px;
  padding:5px 8px;font-size:11px;line-height:1.25;font-weight:750}
#details .diary-status-pill.is-signed{background:#dcefe2;color:#22533a}
#details .diary-status-pill.is-pending{background:#f3eadf;color:#805631}
#details .diary-notes-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;min-width:0}
#details .diary-notes-field{background:#fbf8f1;border:1px solid #d8ccba;
  border-radius:17px;padding:15px;min-width:0}
#details .diary-notes-field label{display:block;color:#25322e;
  font-size:16px;line-height:1.35;font-weight:800;margin-bottom:5px}
#details .diary-field-hint{display:block;color:#57685d;font-size:12px;
  line-height:1.4;min-height:34px;margin-bottom:8px}
#details .diary-notes-field textarea{display:block;box-sizing:border-box;width:100%;
  min-height:116px;border:1px solid #d1c6b9;background:#fff;color:#20312b;
  border-radius:11px;padding:12px;font:inherit;font-size:15px;line-height:1.5;
  resize:vertical}
#details .diary-notes-field textarea:focus-visible{outline:2px solid #bd8058;
  outline-offset:2px}
#details .diary-none-row{display:flex;align-items:center;gap:12px;
  background:#fbf8f1;border:1px solid #d8ccba;border-radius:15px;
  padding:15px;color:#25322d;cursor:pointer;min-height:62px}
#details .diary-none-row input{appearance:auto;flex:none;width:21px;
  height:21px;accent-color:#9b633e}
#details .diary-none-row span{display:grid;gap:3px}
#details .diary-none-row strong{font-size:14px}
#details .diary-none-row small{color:#607168;font-size:12px;line-height:1.3}
#details .diary-auto-sign{display:flex;align-items:start;gap:9px;padding:0 3px;
  font-size:12.5px;color:#d9d0bf;line-height:1.4}
#details .diary-auto-sign>span:first-child{color:#8ab9a1;font-weight:900}
#details .cleaning-frequency{display:grid;gap:4px}
#details .cleaning-frequency-text{font-weight:700;color:#41574d}
#details .cleaning-chemical{display:block;font-size:12px;line-height:1.4;color:#59675f}
#details .cleaning-chemical strong{color:#385c4a;font-weight:800}
#details .cooking-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
#details .cooking-slot{min-height:48px;padding:10px 3px;font-size:13px;white-space:normal}
#details #temperature-type{width:100%;min-height:50px;border-radius:11px;
  background:#fff;color:#26352e;border:1px solid #c8bbab;padding:10px;
  font:inherit;font-size:15px}
@media(max-width:690px){
  #details .diary-notes-layout{grid-template-columns:minmax(0,1fr)}
  #details .diary-field-hint{min-height:0}
  #details .diary-intro{padding:16px}
  #details .diary-status-row{flex-wrap:wrap}
  #details .diary-status-pill{margin-left:45px}
  #details .cooking-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  #details .cleaning-frequency{grid-column:1/-1;grid-row:2}
  #details .cleaning-row-initials{grid-column:3;grid-row:3}
}

#details .diary-preview-notice{background:#f9ead2;color:#513b27;
  border:2px solid #c89d62;border-radius:14px;padding:15px 17px;
  line-height:1.4;margin-bottom:15px}
#details .diary-preview-notice strong{font-size:15px;color:#483224}
#details .diary-preview-notice p{font-size:13px;margin:5px 0 0;color:#6d5337}

/* Kitchen weekly probe checker: stacked per-probe cards with explicit method,
   genuine readings and editable 'add another probe' before the weekly signoff. */
#details .probe-test-card{display:grid;gap:8px;min-width:0}
#details .probe-test-heading{display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap;margin:0 0 4px}
#details .probe-test-heading strong{font-size:19px;color:#2d392e}
#details .probe-test-card label{font-size:14px;color:#2c3831;font-weight:750;
  margin-top:6px}
#details .probe-test-card input,#details .probe-test-card select,
#details .probe-test-card textarea{width:100%;min-width:0;box-sizing:border-box;
  padding:12px;background:#fff;color:#27362f;border:1px solid #c8bfb1;
  border-radius:10px;min-height:48px;font:inherit;font-size:15px}
#details .probe-test-card textarea{min-height:84px;resize:vertical}
#details .probe-test-card input:focus-visible,#details .probe-test-card select:focus-visible,
#details .probe-test-card textarea:focus-visible{outline:2px solid #bd8058;outline-offset:2px}
#details .probe-test-reading{display:grid;gap:7px;background:#f3eadc;
  padding:12px;border-radius:11px}
#details .probe-test-reading[hidden]{display:none!important}
#details .probe-remove{min-height:42px}
#details .add-probe{min-height:50px;width:100%;margin:2px 0 10px}
#details .probe-signed-history{display:grid;gap:10px}
#details .probe-signed-history .field-card{margin:0}
#details .probe-signed-history p{margin:6px 0;overflow-wrap:anywhere}
@media(max-width:450px){
  #details .probe-test-heading strong{font-size:16px}
  #details .probe-test-card{padding:13px}
}

/* Sarnian mobile paperwork: keep four toolbar actions entirely in the viewport.
   Existing Highfield-derived paper viewer and bottom navigation are retained. */
@media(max-width:620px){
  #paper-viewer .paper-viewer-topbar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%;max-width:100%;gap:8px!important;overflow:visible;
  }
  #paper-viewer .paper-viewer-topbar > button{
    width:100%;min-width:0!important;max-width:100%;
    min-height:46px;padding:9px 8px!important;
    font-size:13px;white-space:normal;text-align:center;
  }
  #paper #paper-template-settings{
    border:1px solid #b68a63;border-radius:16px;
    background:#f1e5d3;color:#263831;padding:13px;
    margin:12px 0 17px;
  }
  #paper #paper-template-settings summary{
    color:#304137;font-size:15px;font-weight:800;cursor:pointer;
    min-height:44px;display:list-item;list-style-position:inside;
  }
  #paper #paper-template-settings label{display:block;margin-top:13px}
  #paper #paper-template-settings input,
  #paper #paper-template-settings select,
  #paper #paper-template-settings textarea{
    box-sizing:border-box;width:100%;max-width:100%;
    background:#fffaf4;color:#273830;border:1px solid #b9a994;
    border-radius:9px;min-height:44px;padding:9px;font:inherit;
  }
  #paper #paper-template-settings .form-actions{
    display:flex;flex-wrap:wrap;gap:8px;
  }
  #paper #paper-template-settings .form-actions button{
    flex:1 1 140px;min-width:0;
  }
}

/* A customer manages equipment, not anonymous "Column 3 / Column 4" fields. */
#paper-template-fields[hidden],#paper-cold-equipment[hidden]{display:none!important}
#paper-cold-equipment{margin:10px 0;padding:12px;border-radius:14px;background:#f5ebdd}
#paper-cold-equipment .paper-equipment-list{display:grid;gap:10px;margin:12px 0}
#paper-cold-equipment .paper-equipment-row{
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;
 align-items:center;gap:10px;padding:11px;background:#fff9f0;
 border-radius:12px;border:1px solid #d7c2ad;color:#283d36;
}
#paper-cold-equipment .paper-equipment-row>label:first-child{min-width:0;margin:0}
#paper-cold-equipment .paper-equipment-row>label:first-child input{width:100%;max-width:100%}
#paper-cold-equipment .paper-equipment-row>strong{
 font-size:12px;font-weight:800;color:#3d6259;
}
#paper-cold-equipment .paper-unit-active{display:flex!important;align-items:center;gap:5px;margin:0!important;font-size:12px;font-weight:750}
#paper-cold-equipment .paper-unit-active input{
 width:21px!important;height:21px!important;min-height:21px!important;
 margin:0;flex:none;accent-color:#3c7765;
}
#paper-save-equipment{margin-top:12px;width:100%;min-height:47px}
@media(max-width:560px){
 #paper-cold-equipment{padding:9px}
 #paper-cold-equipment .paper-equipment-row{grid-template-columns:minmax(0,1fr) auto;gap:7px}
 #paper-cold-equipment .paper-equipment-row>label:first-child{grid-column:1/-1}
 #paper-cold-equipment .paper-unit-active{justify-self:end}
 #paper-cold-equipment .form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #paper-cold-equipment .form-actions button{min-width:0;white-space:normal}
}

/* Founder-approved FULL wordmark is a wide, transparent asset.
   The legacy isolated shield appears only when verified pack is absent. */
.login-panel #sarnian-login-brand.approved-full-logo{
  width:100%!important;height:auto!important;min-height:0!important;
  max-width:430px!important;aspect-ratio:2157/729;
  display:block!important;margin:0 0 10px!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;
}
.login-panel #sarnian-login-brand.approved-full-logo img{
  width:100%!important;height:100%!important;max-height:none!important;
  object-fit:contain!important;object-position:left center;
}
.login-panel #sarnian-login-brand.approved-full-logo + .sarnian-login-fallback-title{
  display:none!important;
}
@media(max-width:460px){
  .login-panel #sarnian-login-brand.approved-full-logo{max-width:100%!important;}
}

/* Match the approved complete login wordmark in the signed-in app header.
   The image contains the shield, name and SFBB & HACCP tagline. */
.site-header .brand .brand-full-logo{
  display:block;width:auto;max-width:min(255px,55vw);height:52px;
  object-fit:contain;object-position:left center;
}
.site-header .brand .brand-full-logo.brand-fallback-mark{
  width:46px;height:46px;
}
@media(max-width:420px){
  .site-header .brand .brand-full-logo{max-width:55vw;height:43px;}
}
