/* Mary DeMocker's device cleaning tracker.
   Palette and both fonts are hers, read out of marydemocker.com's stylesheets;
   evidence table in DESIGN-marydemocker-2026-08-29.md. No harp mark on this app.
   Self-hosted fonts, no third-party anything -- this page holds a session.

   Sizing is deliberately larger than the curriculum builder's. This one gets used
   one-handed, in a hurry, often on a phone, by someone who is unwell. Every primary
   control is at least 56px tall and says what it does in words. */

@font-face { font-family: Alice; src: url(/static/fonts/Alice-Regular.woff2) format('woff2');
             font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url(/static/fonts/OpenSans-Regular.woff2) format('woff2');
             font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url(/static/fonts/OpenSans-Medium.woff2) format('woff2');
             font-weight: 500; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url(/static/fonts/OpenSans-SemiBold.woff2) format('woff2');
             font-weight: 600; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url(/static/fonts/OpenSans-Bold.woff2) format('woff2');
             font-weight: 700; font-display: swap; }

:root {
  /* Turquoise, not the periwinkle the curriculum builder uses. Two apps land with
     Mary the same week and they do different jobs; the colour is how she tells them
     apart before reading a word. The hue is 187 -- her site's own single non-blue
     value (#7EBEC5, one icon list) sits at 186, so this is a colour her brand
     already contains rather than one imported into it.

     It is deeper than "light turquoise" sounds, and that is forced: white type needs
     4.5:1, which no turquoise above L~0.40 can give. The LIGHT turquoise is --tint,
     which is what actually covers most of the page. */
  --brand: #1D7F8C;        /* 4.5:1+ under white type */
  --brand-deep: #1C7B87;   /* text sitting on the tint */
  --brand-dark: #17646F;   /* hover */
  --ink: #222222;       /* body { color: rgb(34,34,34) } on her site */
  --link: #0C71C3;
  --tint: #ECF9FB;
  --hair: #E5E5E5;
  --muted: #6E6E6E;
  --late: #B4472F;      /* the one warm tone, used only for overdue */
  --late-bg: #FBF1EE;
  --good: #3F7D58;
  --white: #fff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 500 17px/1.65 'Open Sans', Arial, sans-serif;
}
h1, h2, h3 { font-family: Alice, Georgia, 'Times New Roman', serif; font-weight: 400;
             letter-spacing: 1px; line-height: 1.25; margin: 0; }
a { color: var(--link); }
[hidden] { display: none !important; }

/* --- header --- */
.bar { background: var(--brand); color: #fff; }
.bar-in { max-width: 720px; margin: 0 auto; padding: 15px 20px;
          display: flex; align-items: center; gap: 12px; min-height: 58px; }
.bar .who { font: 600 13px/1 'Open Sans', Arial, sans-serif; letter-spacing: 2.2px;
            text-transform: uppercase; }
.bar .sp { flex: 1; }
.bar a, .bar button.linky {
  color: #fff; font: 500 14px/1 'Open Sans', Arial, sans-serif; opacity: .9;
  text-decoration: none; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
}
.bar a:hover, .bar button.linky:hover { opacity: 1; text-decoration: underline; }

.wrap { max-width: 720px; margin: 0 auto; padding: 30px 20px 110px; }
.wrap.narrow { max-width: 560px; }

h1 { font-size: 31px; color: var(--brand); }
h2 { font-size: 23px; color: var(--brand); }
.sub { color: var(--muted); font-size: 15.5px; margin: 10px 0 0; }
.rule { width: 54px; height: 2px; background: var(--brand); margin: 16px 0 26px; border: 0; }

/* --- buttons: everything primary is a full-height labelled target --- */
button, .btn {
  font: 600 16px/1.2 'Open Sans', Arial, sans-serif;
  border: 2px solid var(--brand); background: var(--brand); color: #fff;
  padding: 16px 24px; border-radius: 5px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; text-align: center;
}
button:hover, .btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.ghost, .btn.ghost { background: #fff; color: var(--brand); }
button.ghost:hover, .btn.ghost:hover { background: var(--tint); }
button.quiet { background: none; border: 0; color: var(--muted); font-weight: 500;
               min-height: 48px; padding: 10px 12px; font-size: 15px; }
button.quiet:hover { color: var(--link); background: none; text-decoration: underline; }
button.wide, .btn.wide { width: 100%; }
button:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* --- the Today list: the screen she sees most --- */
.group { margin-bottom: 34px; }
.group h2 { font-size: 20px; margin-bottom: 4px; }
.group.late h2 { color: var(--late); }
.group .note { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }

.job {
  border: 1.5px solid var(--hair); border-radius: 8px; padding: 18px 20px;
  margin-bottom: 12px; display: flex; gap: 18px; align-items: center;
  flex-wrap: wrap;
}
.job.late { border-color: var(--late); background: var(--late-bg); }
.job.now { border-color: var(--brand); }
.job .grow { flex: 1; min-width: 190px; }
.job .name { font-weight: 600; font-size: 18px; }
.job .meta { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.job.late .meta { color: var(--late); font-weight: 600; }
.job .did { flex: none; min-width: 150px; }
.job.done-flash { border-color: var(--good); background: #F1F7F3; }

.allclear { text-align: center; padding: 40px 10px; }
.allclear .big { font-family: Alice, Georgia, serif; font-size: 27px; color: var(--good);
                 letter-spacing: 1px; }
.allclear p { color: var(--muted); margin: 10px 0 0; }

/* --- setup + wizard: one decision on screen --- */
.step { max-width: 560px; }
.step h1 { font-size: 28px; }
.step .lead { font-size: 17.5px; margin: 14px 0 26px; }
.choices { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 26px; }
.choice {
  border: 2px solid var(--hair); border-radius: 8px; background: #fff;
  padding: 18px 20px; text-align: left; justify-content: flex-start;
  color: var(--ink); font-weight: 600; font-size: 17px; min-height: 62px;
  display: flex; align-items: center; gap: 14px; cursor: pointer; width: 100%;
}
.choice:hover { border-color: var(--brand); background: var(--tint); }
.choice.on { border-color: var(--brand); background: var(--tint); color: var(--brand-deep); }
.choice .tick { flex: none; width: 24px; height: 24px; border-radius: 4px;
                border: 2px solid var(--hair); display: inline-flex;
                align-items: center; justify-content: center; font-size: 15px;
                color: #fff; background: #fff; }
.choice.on .tick { background: var(--brand); border-color: var(--brand); }
.choice .cap { flex: 1; }
.choice .hint { display: block; font-weight: 400; font-size: 14.5px;
                color: var(--muted); margin-top: 3px; }
.choice.on .hint { color: var(--brand-deep); }

.stepnav { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.stepnav .sp { flex: 1; }
.progress { color: var(--muted); font-size: 14px; letter-spacing: .4px;
            margin-bottom: 8px; }

/* --- forms --- */
label.f { display: block; margin: 22px 0 0; }
label.f .lb { font: 600 15px/1.4 'Open Sans', Arial, sans-serif; color: var(--ink); }
label.f .hint { display: block; color: var(--muted); font-size: 14.5px;
                font-weight: 400; margin-top: 2px; }
input[type=text], input[type=email], input[type=number], select {
  width: 100%; font: 500 17px/1.5 'Open Sans', Arial, sans-serif; color: var(--ink);
  border: 2px solid var(--hair); border-radius: 5px; padding: 14px 14px;
  background: #fff; margin-top: 8px; min-height: 56px;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: -1px;
                            border-color: var(--brand); }
.inline-n { display: flex; align-items: center; gap: 12px; }
.inline-n input { width: 110px; }

/* --- switches on the reminders screen --- */
.switch { display: flex; align-items: center; gap: 16px; padding: 18px 0;
          border-bottom: 1px solid var(--hair); cursor: pointer; }
.switch:last-of-type { border-bottom: 0; }
.switch .grow { flex: 1; }
.switch .t { font-weight: 600; font-size: 17px; }
.switch .d { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.switch .box { flex: none; width: 58px; height: 34px; border-radius: 17px;
               background: #CFCFCF; position: relative; transition: background .15s; }
.switch .box::after { content: ''; position: absolute; top: 3px; left: 3px;
                      width: 28px; height: 28px; border-radius: 50%; background: #fff;
                      transition: transform .15s; }
.switch.on .box { background: var(--brand); }
.switch.on .box::after { transform: translateX(24px); }

/* --- devices screen --- */
.dev { border: 1.5px solid var(--hair); border-radius: 8px; padding: 20px;
       margin-bottom: 16px; }
.dev-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dev-head h2 { font-size: 22px; }
.tsk { display: flex; align-items: center; gap: 14px; padding: 14px 0;
       border-top: 1px solid var(--hair); flex-wrap: wrap; }
.tsk .grow { flex: 1; min-width: 170px; }
.tsk .t { font-weight: 600; }
.tsk .d { color: var(--muted); font-size: 14.5px; }
.tag { font: 600 13px/1 'Open Sans', Arial, sans-serif; letter-spacing: 1.2px;
       text-transform: uppercase; color: var(--brand-deep); background: var(--tint);
       padding: 6px 9px; border-radius: 3px; }
.tag.count { color: #7A5A1E; background: #FBF4E4; }


/* --- device pictures ---
   A photo when she has added one, a built-in line drawing when she has not, in
   the same frame either way so the layout does not jump between the two. */
.pic { flex: none; border-radius: 8px; background: var(--tint); object-fit: cover;
       display: block; }
.pic.art { color: var(--brand-deep); padding: 6px; }
.pic.lg { width: 78px; height: 78px; }
.pic.sm { width: 46px; height: 46px; border-radius: 6px; }
.job .pic.sm { align-self: flex-start; }
.dev-head { align-items: flex-start; }
.dev-head .grow { flex: 1; min-width: 160px; }
.dev-head h2 { margin-bottom: 4px; }

/* --- history --- */
.hist { color: var(--muted); font-size: 15px; padding: 10px 0;
        border-bottom: 1px solid var(--hair); }
.hist b { color: var(--ink); font-weight: 600; }

/* --- link-only pages (no JS, no session) --- */
.big-note { padding: 20px 0 10px; }
.big-note h1 { font-size: 30px; }
.big-note.good h1 { color: var(--good); }
.big-note p { font-size: 17px; margin: 14px 0 26px; }
.tapcard { border: 1.5px solid var(--hair); border-radius: 8px; padding: 18px 20px;
           margin-bottom: 12px; display: flex; gap: 16px; align-items: center;
           flex-wrap: wrap; }
.tapcard .grow { flex: 1; min-width: 180px; }
.tapname { font-weight: 600; font-size: 17.5px; }
.tapmeta { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* --- misc --- */
.saved { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px;
         background: var(--ink); color: #fff; font-size: 15px; padding: 13px 22px;
         border-radius: 6px; opacity: 0; transition: opacity .2s;
         pointer-events: none; z-index: 30; }
.saved.on { opacity: .94; }
.tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { flex: 1; min-width: 100px; background: #fff; color: var(--muted);
               border-color: var(--hair); font-size: 15px; min-height: 52px;
               padding: 12px 10px; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.foot { text-align: center; color: var(--muted); font-size: 13.5px; padding: 26px 20px; }
.err { color: var(--late); font-size: 15px; margin-top: 12px; }

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .wrap { padding: 24px 16px 100px; }
  h1 { font-size: 27px; }
  .job { padding: 16px; gap: 14px; }
  .job .did { width: 100%; }
  .job .did .btn, .job .did button { width: 100%; }
  .tapcard .btn { width: 100%; }
}
