/* Editor page: the printable sheet as live HTML. Loaded after sheet.css. */
@font-face{font-family:"Bricolage";font-weight:200 800;font-display:swap;src:url(/assets/bricolage.woff2) format("woff2")}
@font-face{font-family:"Instrument";font-weight:400 700;font-display:swap;src:url(/assets/instrument.woff2) format("woff2")}
:root{--pw:816px;--ph:1056px;--z:1}

/* writable lines: the rule stays, text sits on it */
.lines li span,.checks li .blank{height:auto;min-height:1.3em;line-height:1.3;white-space:nowrap;overflow:hidden;min-width:0}
.field i{display:block;min-width:0;line-height:20px;font-size:12.5px;padding:0 4px;white-space:nowrap;overflow:hidden}
.trow>div,.mlabel{white-space:nowrap;overflow:hidden}
.bx{display:flex;flex-direction:column;align-items:flex-start}
.bxw{flex:1;align-self:stretch;min-height:0;overflow:hidden;margin-top:3px;font-size:12.5px;line-height:22px;white-space:pre-wrap;overflow-wrap:anywhere}

/* ticks */
.box,.dots i,.grid:not(.prompts) .cell,.mrow:not(.mhead):not(.msec)>div:not(:first-child){cursor:pointer}
.box.on{background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.3 2.3 4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
.dots i.on{background:var(--ink)}
.circ i{cursor:pointer}
.circ i.on{background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.8 3.8L17.5 8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat}
.gboxin{white-space:pre-wrap;overflow-wrap:anywhere}
.cell.on,.mrow>div.on{background:var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.6 4.6L19 7' fill='none' stroke='%231c1b18' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/auto 62% no-repeat}
.mrow>div.on{background-color:transparent}
.grid:not(.money) .cell.on{background-position:right 8% bottom 12%;background-size:auto 46%}
.grid.money .cell.on>*{opacity:.35}

.bar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:10px 16px;background:#fbf7f0;border-bottom:1px solid #e4dccd;font:600 15px/1.2 "Instrument",system-ui,sans-serif;color:#1c1b18}
.bar a{color:inherit;text-decoration:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar a:hover{text-decoration:underline}
.tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bar button{font:700 14px/1 "Instrument",system-ui,sans-serif;color:#1c1b18;background:transparent;border:2px solid #1c1b18;border-radius:99px;padding:10px 16px;cursor:pointer}
.bar button[aria-pressed="true"],.bar .go{background:#1c1b18;color:#fff}
.bar .quiet{border-color:transparent;text-decoration:underline;padding-inline:8px}
.seg{display:flex}.seg button:first-child{border-radius:99px 0 0 99px;border-right-width:1px}.seg button:last-child{border-radius:0 99px 99px 0;border-left-width:1px}
.bar button:focus-visible{outline:3px solid #3b6fd8;outline-offset:2px}
.hint{margin:14px 16px 0;text-align:center;font:500 14px/1.4 "Instrument",system-ui,sans-serif;color:#625e55}

@media screen{
  html,body{width:auto;height:auto;overflow:visible;background:#efe9dd}
  .stage{padding:16px 16px 48px;display:flex;justify-content:center}
  .zoom{zoom:var(--z)}
  .sheet{box-shadow:0 10px 40px rgba(40,30,10,.18);border-radius:4px}
  [contenteditable]{cursor:text;border-radius:3px}
  [contenteditable]:hover{background-color:rgba(28,27,24,.06)}
  [contenteditable]:focus{outline:2px solid #3b6fd8;outline-offset:1px;background-color:#fff}
}
@media print{
  .bar,.hint{display:none}
}

.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sw{display:flex;align-items:center;gap:5px}
.bar .sw button{width:26px;height:26px;padding:0;border-radius:50%;border:1.5px solid #8d8a82;background:var(--c)}
.bar .sw button[aria-pressed="true"]{background:var(--c);outline:2.5px solid #1c1b18;outline-offset:2px}
.sw label{display:flex;width:28px;height:28px;border-radius:50%;overflow:hidden;border:1.5px solid #8d8a82;cursor:pointer;background:conic-gradient(#f66,#fc6,#9d6,#6cf,#c8f,#f66)}
.sw input{opacity:0;width:100%;height:100%;cursor:pointer;border:0;padding:0}
.plain .cell.on{background-color:#ecebe6}
