/* Our Bench room guide: shared styles.
   ALL COLOURS LIVE IN THIS FIRST BLOCK. Change or add a colour here and the whole tool follows. */
:root{
  /* Our Bench brand (from ourbench.css) */
  --ob-forest:#0B1F16; --ob-red:#f0331d; --ob-gold:#f6bb15; --ob-leaf:#6ec344; --ob-bark:#842f1b; --ob-cream:#F7FAF8; --ob-text:#1f2933;
  /* page */
  --page-bg:#F7FAF8; --panel-bg:#ffffff; --panel-line:#d6dfd9; --muted:#52605a; --link:#842f1b;
  /* plan */
  --floor:#ffffff; --wall:#2a3a32; --window:#bfe0f2; --unit:#d4dcd7; --unit-raised:#c2cac5; --cupboard:#e7d6ca; --radiator:#f6bb15; --toilet:#cfe3ef;
  --door-leaf:#8a6a3f; --door-swing:#8a6a3f; --hoist:#842f1b; --hoist-fill:rgba(246,187,21,.55); --hoist-line:#c99a0a; --wetfloor:#e3f1f8; --clearspace:#6ec344; --shelf:#6b7a72; --floorchange:#7d8a83;
  --under:#f3efe4; --outside:#e6eee8;
  /* furniture */
  --furn:#efe6d3; --furn-line:#8a7a5a; --sofa:#e9dde4; --bed:#f6ebc4; --bed-rails:#f0b3a8; --table:#eadcc0; --box:#e7dfcf; --selected:#e08a00;
  /* the wheelchair check: GREEN = where you can go, RED = blocked. Chair = darker, turning circle = lighter */
  --chair-ok:#1b7f3b; --chair-bad:#b3261e;
  --tc-ok-fill:rgba(110,195,68,.38); --tc-ok-line:#4c9b2a;
  --tc-bad-fill:rgba(240,51,29,.28); --tc-bad-line:#d12a17;
  --porter-ok:#1f5f99; --porter-bad:#b3261e;
  --measured-ok-line:#2f7d1a; --measured-bad-line:#c1291a;
  --label:#1f2933; --status-text:#000000;
}
#fp-root,#fp-root *{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
.fp-standalone{margin:0;background:var(--page-bg)}
#fp-root{color:var(--ob-text);font:16px/1.5 Calibri,Carlito,"Segoe UI",system-ui,-apple-system,Arial,sans-serif}
#fp-root a{color:var(--link)}
#fp-root .fp-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px max(16px,env(safe-area-inset-left,0px));background:#fff;border-bottom:3px solid var(--ob-gold)}
#fp-root .fp-head img{height:54px;width:auto;max-width:70vw}
#fp-root .fp-head h1{margin:0;font:600 1.6rem/1.2 "Minion Pro",Georgia,"Times New Roman",serif;color:var(--ob-forest)}
#fp-root .fp-head p{margin:0;color:var(--muted)}
#fp-root .fp-wrap{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:16px;max-width:1280px;margin:0 auto;padding:16px max(16px,env(safe-area-inset-left,0px))}
@media(max-width:900px){#fp-root .fp-wrap{grid-template-columns:minmax(0,1fr)}}
#fp-root .fp-col{display:flex;flex-direction:column;gap:14px;min-width:0}
#fp-root .fp-card{background:var(--panel-bg);border:1px solid var(--panel-line);border-radius:16px;padding:14px;min-width:0}
#fp-root .fp-card h2{margin:0 0 8px;font:600 1.15rem/1.3 "Minion Pro",Georgia,serif;color:var(--ob-red)}
#fp-root .fp-card h3{margin:12px 0 6px;font-size:.95rem;color:var(--ob-forest)}
#fp-root .fp-card p{margin:0 0 8px}
#fp-root .fp-note{color:var(--muted);font-size:.92rem}
#fp-root .fp-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}
#fp-root .fp-stage{background:var(--floor);border:1px solid var(--panel-line);border-radius:12px;overflow:hidden;touch-action:none}
#fp-root .fp-stage svg{display:block;width:100%;height:auto;max-height:84vh;user-select:none;-webkit-user-select:none}
#fp-root button,#fp-root select,#fp-root input{font:inherit;color:inherit}
#fp-root button{background:#fff;border:1.5px solid var(--ob-forest);border-radius:10px;padding:7px 12px;min-height:38px;cursor:pointer}
#fp-root button:hover{background:var(--ob-cream)}
#fp-root button.pri{background:var(--ob-forest);color:#fff}
#fp-root button.pri:hover{background:#17382a}
#fp-root button.on{background:var(--ob-gold);border-color:var(--ob-forest);font-weight:600}
#fp-root button:disabled{opacity:.5;cursor:not-allowed}
#fp-root button:disabled:hover{background:#fff}
#fp-root button:focus-visible,#fp-root input:focus-visible,#fp-root select:focus-visible{outline:3px solid var(--selected);outline-offset:2px}
#fp-root input[type=number],#fp-root select{border:1.5px solid var(--panel-line);border-radius:8px;padding:6px 8px;min-height:38px;background:#fff}
#fp-root input[type=number]{width:7em}
#fp-root label.chk{display:inline-flex;gap:6px;align-items:center;margin-right:10px}
#fp-root .fp-sizes{display:grid;grid-template-columns:repeat(auto-fit,minmax(5.5rem,1fr));gap:8px;margin-bottom:8px}
#fp-root .fp-sizes button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 6px}
#fp-root .fp-sizes button b{font-size:1.05rem}
#fp-root .fp-status{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#fff;border:2px solid var(--panel-line);color:var(--status-text);font-weight:600}
#fp-root .fp-status.ok{border-color:var(--tc-ok-line);background:#f3fbee}
#fp-root .fp-status.bad{border-color:var(--tc-bad-line);background:#fff1ef}
#fp-root .fp-key{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:4px 12px;font-size:.92rem}
#fp-root .fp-key li{display:flex;gap:8px;align-items:center}
#fp-root .fp-sw{display:inline-block;width:22px;height:14px;border-radius:3px;border:1.5px solid var(--furn-line);flex:none}
#fp-root .fp-num{display:inline-flex;width:20px;height:20px;border-radius:50%;background:var(--ob-forest);color:#fff;font-size:.75rem;align-items:center;justify-content:center;flex:none}
#fp-root .fp-list button{display:block;width:100%;text-align:left;margin-bottom:5px}
#fp-root .fp-list button.sel{border-color:var(--selected);box-shadow:inset 0 0 0 2px var(--selected)}
#fp-root .fp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#fp-root .fp-caution{font-size:.9rem;color:var(--muted);border-left:4px solid var(--ob-gold);padding-left:10px}
#fp-root .fp-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#fp-root .fp-grid2 label{display:flex;flex-direction:column;font-size:.85rem;color:var(--muted);gap:2px}
.fp-plainonly #fp-root .fp-head,.fp-plainonly #fp-root .fp-col2,.fp-plainonly #fp-root .fp-bar,.fp-plainonly #fp-root .fp-hint{display:none}
.fp-plainonly #fp-root .fp-wrap{display:block;padding:8px}
#fp-root .fp-foot{max-width:1280px;margin:0 auto;padding:8px max(16px,env(safe-area-inset-left,0px)) 24px;color:var(--muted);font-size:.9rem}
#fp-root .fp-furn{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:2px 10px;margin-bottom:6px}
#fp-root .fp-head p a{white-space:nowrap}
#fp-root .fp-custom{margin-top:12px}
#fp-root .fp-custom-h{font-weight:600;margin:0 0 6px}
#fp-root .fp-line{display:flex;align-items:center;gap:8px;margin:0 0 8px}
#fp-root .fp-foot a{margin:0 2px}

/* template mode: the page container already gives the side margins */
#fp-root.fp-tpl .fp-wrap{padding-left:0;padding-right:0;max-width:none}
#fp-root .fp-links{margin:2px 0 0;padding:0 4px;font-size:1rem}
#fp-root .fp-links a{white-space:normal}
#fp-root .fp-keycard{margin-top:14px}
/* "Arrange it your way": a full-width band under the title, above the plan (guest page) */
#fp-root .fp-arrange{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 24px;margin:16px 0 0}
#fp-root .fp-arrange .fp-arrange-text{min-width:0}
#fp-root .fp-arrange .fp-arrange-text p:last-child{margin-bottom:0}
@media(max-width:700px){#fp-root .fp-arrange{grid-template-columns:minmax(0,1fr)}}
#fp-root .fp-circles{margin:12px 0 0}
#fp-root .fp-circles h2{margin-top:0}
#fp-root .fp-circles p:last-child{margin-bottom:0}
#fp-root.fp-tpl .fp-arrange{margin-top:0}
#fp-root.fp-tpl .fp-arrange+.fp-circles{margin-top:12px}
#fp-root .fp-printhead,#fp-root .fp-printfoot{display:none}
.fp-print-hid{display:none!important}
/* simple title band at the top of the guest page (no picture) */
.fp-titleband{background:var(--ob-cream);border-bottom:4px solid var(--ob-gold);padding:1.6rem 0 1.2rem}
.fp-titleband h1{margin:0 0 .35rem;font-family:"Minion Pro",Georgia,"Times New Roman",serif;font-weight:600;line-height:1.2}
.fp-titleband p{margin:0}
/* a printed copy: the plan, its key, the logo, the cottage name and "My dream layout" only */
@media print{
  @page{margin:10mm}
  html,body{background:#fff!important}
  body{padding-top:0!important;margin:0!important}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #fp-root .fp-wrap{display:block;padding:0;max-width:none}
  #fp-root .fp-noprint{display:none!important}
  #fp-root .fp-arrange,#fp-root .fp-circles{display:none!important}
  #fp-root .fp-card{border:0;padding:0;border-radius:0}
  #fp-root .fp-printhead{display:flex;align-items:center;gap:14px;margin:0 0 6px}
  #fp-root .fp-printhead img{height:44px;width:auto}
  #fp-root .fp-pname{font:600 20pt/1.1 "Minion Pro",Georgia,serif;color:#0B1F16}
  #fp-root .fp-pdream{font:italic 600 14pt/1.2 "Minion Pro",Georgia,serif;color:#842f1b}
  #fp-root .fp-stage{border:0;border-radius:0}
  #fp-root .fp-stage svg{max-height:165mm}
  #fp-root .fp-keycard{margin-top:6px;break-inside:avoid}
  #fp-root .fp-keycard h2{font-size:11pt;margin:0 0 3px}
  #fp-root .fp-key{font-size:8.5pt;gap:1px 10px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #fp-root .fp-printfoot{display:block;margin:6px 0 0;text-align:center;font-size:9pt;color:#52605a}
}

#fp-root .fp-draft{margin:0 0 10px;padding:10px 14px;background:#fff3cd;border:2px solid #b8860b;color:#5c4400;font-weight:700;font-size:1.05rem;border-radius:6px}
/* messages such as "There is not enough room" show at the bottom of the screen, so they are seen wherever the page is scrolled to */
#fp-root #fp-flash{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:50;max-width:min(92vw,34rem);padding:10px 16px;border-radius:8px;background:#1c2b24;color:#fff;font-size:.95rem;line-height:1.35;box-shadow:0 2px 10px rgba(0,0,0,.35);text-align:center}
#fp-root #fp-flash[hidden]{display:none}

/* v7: the three cottage buttons under the key */
#fp-root .fp-cottages p{margin:0 0 10px}
#fp-root .fp-cotgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
#fp-root .fp-cot{display:block;text-align:center;text-decoration:none;line-height:1.25;min-width:0}
#fp-root .fp-cot strong{display:block;font-size:1.05rem}
#fp-root .fp-cot span{display:block;font-size:.85rem;font-weight:600;margin-top:2px}
#fp-root .fp-cot.fp-here{background:#e6e8e6;border:2px solid #c4c9c5;color:#5b6660;border-radius:999px;padding:.72rem 1.15rem;cursor:default}
#fp-root .fp-cot-plain{border:1px solid #8a948e;border-radius:8px;padding:8px 12px;color:#0B1F16;background:#fff}
#fp-root .fp-cot-plain:hover{background:#fdf3d2}
