body { font: 16px/1.5 system-ui, sans-serif; margin: 0; background: #fff; color: #1d2a36; }
#unlock { max-width: 34rem; margin: 8vh auto; padding: 0 16px; }
#unlock h1 { color: #183F36; }
#unlock label { display: block; margin: 10px 0; }
#unlock input[type=password], #unlock input[type=text], #unlock input[type=email] { display: block; width: 100%; padding: 8px; font-size: 16px; box-sizing: border-box; }
#unlock button { background: #183F36; color: #fff; border: 0; border-radius: 6px; padding: 10px 18px; font-size: 16px; margin: 8px 8px 0 0; }
#unlock .code { font: 600 20px ui-monospace, monospace; letter-spacing: 1px; padding: 12px; background: #f0efec; border-radius: 6px; }
/* what's happening, never a line to miss (Walt 11-02 on the M2: "no indication what was happening other than a small
   line"): working = a spinner in a tinted box, a problem = a red box (shim.js setStatus) */
#status:empty { display: none; }
#status.busy, #status.problem { border-radius: 8px; padding: 12px 16px; font-size: 18px; }
#status.busy { background: #eef4f1; color: #183F36; display: flex; gap: 12px; align-items: center; }
#status.busy::before { content: ""; flex: none; width: 20px; height: 20px; border: 3px solid #b9cfc6; border-top-color: #183F36;
  border-radius: 50%; animation: cf-spin 0.9s linear infinite; }
#status.problem { background: #fdecea; color: #8a1c13; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
#progressBox { margin: 8px 0 0; }
#ncFound[inert] { opacity: 0.45; }
#progressBox[hidden], #progressBar[hidden] { display: none; }
#progressBar { width: 100%; height: 14px; accent-color: #183F36; }
#progressBox p { margin: 6px 0 0; font-weight: 600; color: #183F36; }
#installBox { background: #eef4f1; border-radius: 8px; padding: 4px 16px 14px; margin-bottom: 8px; }
#installBox[hidden] { display: none; }
/* a new computer in a Chrome tab where ClientFile can be installed: installing comes first, alone (Walt 10-31:
   "somewhat force the issue so that the user installs the app"); the link under the button carries on without it */
html:not(.cf-install-first) .install-first-only, html.cf-install-first #welcomeBox { display: none; }
#newUpline, #unlock fieldset.upline { border: 1px solid #d5dcd8; border-radius: 8px; padding: 6px 14px 10px; margin: 14px 0 }
#newUpline legend, #unlock fieldset.upline legend { padding: 0 6px; color: #183F36; font-weight: 600 }
#newUpline[hidden] { display: none }
#unlock label.tick { display: flex; gap: 8px; align-items: center }
/* whose ClientFile this screen opens, and the way to another account's (shim.js showAccounts) */
#acctWho { margin: -8px 0 12px; font-size: 17px; color: #183F36; }
#acctWho .test, #cfAccountBar .test { background: #b85c00; color: #fff; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-right: 6px; font-size: 14px; }
#acctWho[hidden], #acctBox[hidden], #acctChoose[hidden] { display: none; }
#acctChoose { border: 1px solid #d5dcd8; border-radius: 8px; padding: 6px 14px 12px; margin: 0 0 12px; }
#acctChoose .acct-note { font-size: 14px; color: #445; margin: 10px 0 0; }
#log { font-size: 12px; white-space: pre-wrap; color: #445; }
/* the ways in that need a file or a code are for support: ?activation shows them (shim.js) */
html:not(.cf-support) .support-only { display: none; }
/* an advisor sees no developer log or test controls; ?debug shows them (shim.js) */
html:not(.cf-debug) #log, html:not(.cf-debug) .cf-test-controls { display: none; }
#trialBar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: #f9eeda; color: #5a3d00; padding: 8px 16px; font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
#trialBar[hidden] { display: none; }
#trialBar label { font-weight: 600; }
/* the recovery sheet (shim.js codePrint): "Save it as a file" second to printing; once saved, where it went */
#unlock button.secondary { background: #607d8b; }
#codeSaved { background: #eef4f1; border-radius: 8px; padding: 10px 14px; color: #183F36; }
#codeSaved[hidden] { display: none; }
/* printing shows only the sheet, and only while the sheet is what's being printed (body.cf-printing-sheet, set by "Print
   it now" and cleared after): otherwise every later print in ClientFile printed this empty sheet instead of the page
   (Jodie 11-24, ticket fbc47c22: a client report printed as a blank recovery sheet) */
#printSheet { display: none; }
@media print {
  body.cf-printing-sheet > *:not(#printSheet) { display: none !important; }
  body.cf-printing-sheet #printSheet { display: block; font: 16px/1.6 system-ui, sans-serif; color: #000; padding: 24px; }
  body.cf-printing-sheet #printSheet .code { font: 600 24px ui-monospace, monospace; letter-spacing: 2px; border: 1px solid #000; padding: 14px; }
}
