/* My Day (-740): same look and flow as the Board and CRM on a phone (the Look comes from looks.css and the saved Style / Theme),
   and the same page just wider on a computer. */
:root { --bg: #070c18; --panel: #0d1526; --row: #111b30; --line: #1c2843; --text: #e6ecf5; --muted: #8796b0; --up: #2fd08f; --down: #ff5f5a; --warn: #f2b443; --link: #7ea6ff; --edge: #1c2945; --seg-on: #22365f; --accent: #7ea6ff; }
*{box-sizing:border-box}
body { --card: var(--tile-bg, var(--row)); --ink: var(--text); --mut: var(--muted); --acc: var(--accent, var(--link)); --ok: var(--up); --bad: var(--down);
  margin: 0; background: var(--bg); color: var(--text); font: calc(16px * var(--txt, 1))/1.45 system-ui, sans-serif; padding-bottom: 40px; }
/* the header: logo/title, date and time, the Board | CRM | My Day switch, then the buttons, all centered (as on the Board and CRM phone page) */
header { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px 12px; background: var(--hdr-bg, transparent); border-bottom: 1px solid var(--line); text-align: center; }
header h1 { margin: 0; font-size: 24px; font-weight: 700; }
.clock { display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-variant-numeric: tabular-nums; }
.clock b { font-size: 28px; }
.clock small { color: var(--muted); font-size: 14px; }
.viewsw { width: min(100%, 460px); }
.viewsw button { flex: 1 1 0; padding: 10px 8px; font: inherit; min-height: 44px; }
.hbtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.btn { font: inherit; padding: 9px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--row); color: var(--text); min-height: 40px; }
.btn.quiet { color: var(--muted); background: transparent; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--seg-on, var(--row)); color: var(--text); font-weight: 700; }
main { max-width: 1100px; margin: 0 auto; padding: 0 12px; }
@media (min-width: 900px) {
  header { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
  header h1 { font-size: 26px; }
  #app { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
  #app > .tiles, #app > .chips, #app > .muted, #app > #offline { grid-column: 1 / -1; }
}
h2 { font-size: 13px; margin: 20px 4px 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.muted { color: var(--muted); padding: 0 4px; }
/* boxes and cards: the Board's panels */
.dbox { margin: 16px 0 0; background: var(--panel-bg, var(--panel)); border: 2px solid var(--edge, var(--line)); border-radius: 16px; padding: 10px 10px 12px; }
.dhead { display: flex; align-items: center; justify-content: space-between; margin: 2px 6px 6px; }
.dhead h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dcount { background: var(--line); border-radius: 99px; padding: 0 9px; font-size: 12px; color: var(--text); }
.dcount.live { background: var(--ok); color: #06210f; font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; padding: 12px 14px; }
.card h3 { margin: 0 0 2px; font-size: 18px; }
.card.late { border-left: 4px solid var(--bad); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); margin-right: 4px; }
.tag.on { border-color: var(--ok); color: var(--ok); }
.rep { white-space: pre-wrap; margin: 8px 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.b { font: inherit; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--acc); background: var(--acc); color: #0f1720; font-weight: 650; text-decoration: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.b.q { background: transparent; color: var(--acc); }
.b.ok { background: var(--ok); border-color: var(--ok); color: #06210f; }
.b:disabled { opacity: .5; }
.card a.b { display: inline-flex; }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.chk input { width: 24px; height: 24px; flex: none; }
.chk.done span { text-decoration: line-through; color: var(--muted); }
textarea, input[type=text], input[type=number], input[type=date], select { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg, var(--bg)); color: var(--text); margin: 4px 0; }
.note { border-top: 1px solid var(--line); padding: 6px 0; font-size: 14px; }
.note small { color: var(--muted); }
canvas { width: 100%; height: 150px; border: 1px dashed var(--muted); border-radius: 10px; background: #fff; touch-action: none; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 99px; z-index: 9; max-width: 90%; }
.toast.bad { background: var(--bad); }
details > summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-right: 6px; background: var(--warn); color: #261a00; }
.pill.urgent { background: var(--bad); color: #fff; }
.card .ans { margin-top: 8px; }
/* the four number tiles, like the CRM Dashboard's */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 4px; }
.tile { font: inherit; text-align: left; background: var(--panel-bg, var(--panel)); border: 2px solid var(--edge, var(--line)); border-radius: 16px; padding: 12px 14px; color: var(--text); cursor: pointer; display: grid; gap: 0; min-height: 70px; }
.tile b { font-size: 28px; line-height: 1.1; }
.tile span { color: var(--muted); font-size: 13px; }
.tile.hot { border-color: var(--bad); } .tile.hot b { color: var(--bad); }
.chips { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { background: var(--row); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: 13px; }
.dall { margin: 4px 0 0; width: 100%; justify-content: center; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
#offline { margin: 8px 0; }

html[data-theme="daylight"] .b { color: #fff; } html[data-theme="daylight"] .b.q { color: var(--acc); } html[data-theme="daylight"] .b.ok { color: #06210f; }
.b.q { font-weight: 500; }

/* -742: connection and new-version messages, the same wording as the Board and CRM */
.connmsg { position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 9999; padding: 7px 16px; border-radius: 16px; background: var(--panel, #222); color: var(--warn, #f5a623); border: 1px solid var(--warn, #f5a623); font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.verpill { position: fixed; left: 50%; top: calc(46px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 9999; padding: 7px 16px; border-radius: 16px; border: 1px solid #c90; background: #432; color: #fff; font: 13px sans-serif; cursor: pointer; }
