/* The fake book window (fakebook.js): the same on the desktop page and on the phone. */
html.fb-lock { overflow: hidden; }
.fb { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(20, 24, 40, .55); font-family: 'Nunito', system-ui, sans-serif; color: #1f2a44; }
.fb[hidden] { display: none; }
.fb-card { background: #f7f2e7; width: min(1100px, 96vw); height: min(860px, 92vh); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; overflow: hidden; }
.fb-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #ddd3bd; flex-wrap: wrap; }
.fb-head h2 { margin: 0; font-size: 1.25rem; }
.fb-count { color: #6b6a63; font-size: .9rem; flex: 1; }
.fb-look { font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fb-x { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; padding: 6px 10px; min-width: 44px; min-height: 44px; }
.fb-tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid #ddd3bd; }
.fb-tabs button { border: 0; background: none; padding: 10px 16px; font: inherit; font-weight: 700; color: #6b6a63; cursor: pointer; border-bottom: 3px solid transparent; min-height: 44px; }
.fb-tabs button.on { color: #1f2a44; border-bottom-color: #b3382c; }
.fb-msg { margin: 8px 16px 0; padding: 8px 12px; background: #fff7d6; border-radius: 8px; font-size: .95rem; }
.fb-body { flex: 1; overflow: auto; padding: 12px 16px 20px; -webkit-overflow-scrolling: touch; }
.fb-filters { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 8px; margin-bottom: 10px; position: sticky; top: -12px; background: #f7f2e7; padding: 12px 0 8px; z-index: 1; }
.fb-filters input, .fb-filters select, .fb-own textarea { font: inherit; padding: 10px; border: 1px solid #c9bfa8; border-radius: 8px; background: #fff; min-height: 44px; width: 100%; box-sizing: border-box; }
.fb-list { display: flex; flex-direction: column; gap: 4px; }
.fb-row { background: #fff; border: 1px solid #e3dac5; border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; }
.fb-row.open { border-color: #b3382c; }
.fb-main { flex: 1 1 260px; text-align: left; background: none; border: 0; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.fb-t { font-weight: 700; }
.fb-f { color: #6b6a63; font-size: .88rem; }
.fb-badges { display: flex; gap: 6px; align-items: center; padding: 0 10px; flex-wrap: wrap; }
.fb-pd, .fb-in { font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.fb-pd-yes { background: #dff1df; color: #1d5a25; }
.fb-pd-check { background: #fdf0c8; color: #7a5a00; }
.fb-pd-no { background: #e9e6df; color: #5a574d; }
.fb-in { background: #1f2a44; color: #fff; }
.fb-in.fb-mine { background: #2f6f8f; }
.fb-in.fb-need { background: #b3382c; }
.fb-in.fb-lyr { background: #2c6e49; }
.fb-in.fb-instr { background: #6b6b6b; }
.fb-detail { flex-basis: 100%; padding: 4px 14px 12px; border-top: 1px dashed #e3dac5; }
.fb-facts { margin: 8px 0; padding-left: 18px; font-size: .92rem; }
.fb-soft { color: #8a8678; }
.fb-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; align-items: center; }
.fb-body button:not(.fb-main):not(.fb-rm):not(.fb-link), .fb-file { font: inherit; border: 1px solid #c9bfa8; background: #fff; border-radius: 8px; padding: 10px 14px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
.fb-body button.fb-go:not(.fb-main):not(.fb-rm):not(.fb-link) { background: #b3382c; color: #fff; border-color: #b3382c; font-weight: 700; }
.fb-body button.fb-main, .fb-body button.fb-set, .fb-tabs button, .fb-x { box-shadow: none; }
.fb-body button.fb-main { border-radius: 10px; width: auto; }
.fb-warn { color: #b3382c; }
.fb-none { color: #6b6a63; padding: 14px 4px; }
.fb-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.fb-set { text-align: left; background: #fff; border: 1px solid #e3dac5; border-radius: 10px; padding: 12px; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.fb-sethead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.fb-rm { background: none; border: 0; color: #8a8678; font-size: 1rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.fb-target { background: #eaf3f7; padding: 8px 12px; border-radius: 8px; }
.fb-link { background: none; border: 0; color: #2f6f8f; text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; min-height: 32px; }
.fb-plain { background: #fff7d6; padding: 10px 12px; border-radius: 8px; }
.fb-own h3 { margin: 18px 0 4px; }
.fb-small { font-size: .9rem; color: #55544c; margin: 4px 0 8px; }
.fb-warnmsg { color: #b3382c; }
.fb-own code { background: #ece6d6; padding: 1px 5px; border-radius: 4px; }
.fb-phone-open { display: block; width: 100%; margin: 8px 0 14px; }

@media (max-width: 760px) {
  .fb { align-items: stretch; }
  .fb-card { width: 100vw; height: 100dvh; border-radius: 0; }
  .fb-filters { grid-template-columns: 1fr 1fr; top: -12px; }
  .fb-filters input { grid-column: 1 / -1; }
  .fb-head { padding: 8px 12px; }
  .fb-body { padding: 8px 12px 20px; }
  .fb-main { flex-basis: 100%; }
  .fb-badges { padding: 0 12px 10px; }
}
