/* Chart Stone Health: the patient side is one phone-width column; the nurse side is wide. */
:root {
  /* Chart Stone Health: navy, cream and orange, as in the logo and the product video. */
  --blue: #1B2A5E; --blue-deep: #111C44; --sky: #EDF0F8; --page: #F5F2EA; --white: #FFFFFF;
  --ink: #1D2433; --slate: #39445A; --muted: #5C677A; --line: #D8D5CB;
  --orange: #C9571F; --orange-soft: #FBEEE4; --green: #1F7A3E; --green-soft: #E7F5EC;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #F2A33A; outline-offset: 2px; }

.stage { height: 100%; display: flex; justify-content: center; align-items: center; padding-inline: 16px; }
.app { width: 100%; max-width: 430px; height: 100%; max-height: 900px; background: var(--white); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 50px rgba(29,36,51,.12); }
@media (max-width: 520px) { .stage { padding-inline: 0; } .app { max-height: none; border: 0; border-radius: 0; box-shadow: none; } }

.top { background: var(--blue); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.word { flex: 1; color: #fff; text-decoration: none; font-size: 23px; font-weight: 700; }
.word small { display: block; font-size: 12.5px; font-weight: 400; opacity: .9; }
.sq { width: 46px; height: 46px; border-radius: 10px; background: var(--blue-deep); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.sq svg { width: 26px; height: 26px; }

.screen { flex: 1; overflow-y: auto; padding: 22px 18px 26px; min-height: 0; background: linear-gradient(var(--sky), var(--page) 330px); }
h1 { font-size: 30px; font-weight: 400; line-height: 1.15; margin: 0 0 14px; }
.welcome { text-align: center; color: var(--blue-deep); }
.ckhead { font-size: 40px; font-weight: 700; color: var(--blue); }
.note { color: var(--slate); margin: 0 0 14px; font-size: 17px; }
.hint { color: var(--muted); font-size: 15px; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.tile { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(29,36,51,.14); padding: 18px 6px; min-height: 96px; display: grid; place-items: center; text-align: center; font-size: 16px; line-height: 1.2; color: var(--slate); text-decoration: none; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 5px rgba(29,36,51,.10); margin-bottom: 14px; }
.card .in { padding: 14px 16px; }
.card b.t { display: block; font-size: 19px; color: var(--slate); line-height: 1.25; }
.card .sub { color: var(--muted); font-size: 16px; margin: 6px 0 0; }

.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn { display: inline-block; margin-top: 12px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: 6px; padding: 9px 18px; font-size: 17px; text-decoration: none; }
.btns .btn { margin-top: 0; }
.btn.fill { background: var(--blue); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }

.greet { text-align: center; margin: 6px 0 16px; }
.greet p { margin: 0; color: var(--muted); font-size: 17px; }

.tabs { display: flex; border-top: 1px solid var(--line); background: #fff; padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs a, .tabs .out button { flex: 1; min-width: 0; text-align: center; padding: 14px 2px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; background: none; border: 0; font-family: inherit; cursor: pointer; }
.tabs .out { flex: 1; min-width: 0; display: flex; margin: 0; }
.tabs .out button { width: 100%; }
@media (max-width: 360px) { .tabs a, .tabs .out button { font-size: 13px; } }
#blazor-error-ui { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: #FDECEA; color: #7A1C12; border-top: 1px solid #F2B8B0; z-index: 1000; font-size: 15px; }
#blazor-error-ui .reload { font-weight: 600; text-decoration: underline; color: inherit; }
.tabs a.active { color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }

/* sign in */
.field { display: block; margin: 8px 0 4px; }
.field span { display: block; font-size: 15px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.field input { width: 100%; border: 2px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; font-size: 18px; color: var(--ink); background: #fff; }
.field input:focus { outline: 3px solid #F2A33A; outline-offset: 1px; border-color: var(--blue); }
.btn.wide { width: 100%; text-align: center; padding: 13px 18px; }
.alert { background: #FBEEE4; color: #B4541F; border-radius: 8px; padding: 10px 14px; font-size: 16px; }
.hint.bad { color: #B4541F; font-weight: 600; }

/* records */
h2 { font-size: 22px; font-weight: 400; color: var(--slate); margin: 22px 0 10px; }
.upload { position: relative; overflow: hidden; cursor: pointer; }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload.disabled { opacity: .6; pointer-events: none; }
.rec { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rec > div { min-width: 0; }
.rec .t { overflow-wrap: anywhere; }
.link { border: 0; background: none; color: var(--blue); font-size: 16px; padding: 4px 0; flex-shrink: 0; text-decoration: none; font-weight: 600; white-space: nowrap; }
.acts { display: flex; gap: 14px; flex-shrink: 0; }

/* ask */
.sugg { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sugg button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 14px; text-align: left; font-size: 17px; color: var(--slate); }
.chat { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.msg { font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; max-width: 86%; background: var(--sky); padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; }
.msg.ai { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.msg.ai p { margin: 0 0 8px; } .msg.ai p:last-of-type { margin-bottom: 0; }
.flag { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: #B4541F; background: #FBEEE4; padding: 4px 12px; border-radius: 999px; }
.think { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.think i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .think i { animation: none; } }
.askbar { display: flex; gap: 8px; align-items: flex-end; }
.askbar textarea { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 17px; resize: none; color: var(--ink); background: #fff; }
.askbar .btn { margin-top: 0; }

/* nurse view */
.pill { display: inline-block; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 4px 6px 0 0; background: var(--sky); color: var(--blue-deep); }
.pill.ok { background: #E7F5EC; color: #1F7A3E; }
.pill.warn { background: #FBEEE4; color: #B4541F; }
.pill.flagpill { background: #FBEEE4; color: #B4541F; }
a.card { display: block; text-decoration: none; color: inherit; }
.prow .sub { margin-top: 2px; }
.prow .t { overflow-wrap: anywhere; }
.card.look, .drow.look { border-left: 5px solid #E8863A; }
.back { margin: 0 0 8px; font-size: 16px; }
.back a { text-decoration: none; font-weight: 600; }
.pemail { font-size: 22px; overflow-wrap: anywhere; color: var(--blue-deep); }
.drow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.drow:last-child { border-bottom: 0; }
.drow .day { flex: 1 0 120px; font-weight: 600; color: var(--slate); font-size: 16px; }
.drow .pill { margin-top: 0; }
.qa.shared { border-color: #E8863A; background: #FFF8F2; }
.qa .flag { margin: 0 0 8px; }
.qa .when { margin-bottom: 8px; font-size: 14px; }
.qa .ans { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.qa .t { font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.peek { border-top: 1px solid var(--line); padding: 10px 16px 12px; }
.peek summary { cursor: pointer; color: var(--blue); font-size: 16px; font-weight: 600; }
.peektext { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--slate); white-space: pre-wrap; overflow-wrap: anywhere; }
.peeknone { padding: 0 16px 12px; }

/* portal */
.portal { min-height: 100%; display: flex; flex-direction: column; background: var(--page); }
.portal-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.portal-hero { background: var(--blue); color: #fff; padding: calc(56px + env(safe-area-inset-top, 0px)) 0 104px; }
.portal-hero h1 { margin: 0; font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.portal-tag { margin: 14px 0 0; max-width: 32em; font-size: 21px; line-height: 1.4; opacity: .94; }
.portal-main { flex: 1; margin-top: -60px; padding-bottom: 48px; }
.portal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.portal-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(29,36,51,.10); padding: 26px 24px 24px; display: flex; flex-direction: column; }
.portal-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.portal-icon svg { width: 28px; height: 28px; }
.portal-card h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.portal-card p { flex: 1; margin: 0 0 22px; font-size: 18px; color: var(--slate); }
.portal-btn { display: block; text-align: center; background: var(--blue); color: #fff; text-decoration: none; font-size: 18px; font-weight: 600; border-radius: 8px; padding: 14px 18px; }
.portal-btn:hover { background: var(--blue-deep); }
.portal-foot { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 15px; padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 820px) {
  .portal-cards { grid-template-columns: 1fr; gap: 16px; }
  .portal-hero { padding: calc(36px + env(safe-area-inset-top, 0px)) 0 84px; }
  .portal-hero h1 { font-size: 36px; }
  .portal-tag { font-size: 19px; }
}
@media (max-width: 520px) { .portal-wrap { padding-inline: 16px; } }
.portal-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; box-shadow: 0 10px 30px rgba(29,36,51,.18); }

/* Population view (Champollion): a wide table, not a phone column */
.app.wide { max-width: 1400px; max-height: none; border-radius: 16px; }
.app.wide .screen { background: var(--page); }
.phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.phead h1 { margin-bottom: 4px; }
.phead .btn { margin-top: 0; white-space: nowrap; }
.summary { margin: 0 0 12px; }
.pill.red { background: #FBE4E4; color: #A8282E; }
.pill.yellow { background: #FBF1DA; color: #8A5A00; }
.pill.green { background: #E7F5EC; color: #1F7A3E; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 5px rgba(29,36,51,.10); }
table.pop { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 1500px; }
table.pop th, table.pop td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.pop th { position: sticky; top: 0; background: #F6F8FB; color: var(--slate); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; z-index: 1; }
table.pop td.center { text-align: center; }
table.pop td .sub { display: block; font-size: 13px; margin-top: 2px; white-space: normal; max-width: 260px; }
table.pop td.name a { font-weight: 700; color: var(--ink); text-decoration: none; }
table.pop td .pill { margin: 0; font-size: 13px; }
tr.row.red td:first-child { box-shadow: inset 5px 0 0 #D13C3C; }
tr.row.yellow td:first-child { box-shadow: inset 5px 0 0 #E8A93A; }
tr.row.green td:first-child { box-shadow: inset 5px 0 0 #2E9E5B; }
tr.row.off td { color: var(--muted); }
tr.row.red { background: #FFF6F6; }
tr.row.yellow { background: #FFFBF2; }
.acts { display: flex; gap: 4px; }
.ic { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 16px; text-decoration: none; color: var(--ink); cursor: pointer; padding: 0; }
.ic:hover { border-color: var(--blue); }
.soon { color: var(--blue-deep); font-weight: 600; }
.score { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; color: #fff; background: #2E9E5B; }
.score.s3 { background: #E8A93A; }
.score.s4, .score.s5 { background: #D13C3C; }
.lvl { font-weight: 700; margin-left: 4px; }
.sel { font: inherit; font-size: 15px; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; }

/* sign-up form */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.field.wide { grid-column: 1 / -1; }
.field select, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 17px; color: var(--ink); background: #fff; }
.field input[type=date], .field input[type=time] { font-size: 17px; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 8px 0; }
.chk input { width: 20px; height: 20px; }
.ok-card { border-left: 5px solid #2E9E5B; }
.share { display: block; font-size: 13px; overflow-wrap: anywhere; background: var(--page); padding: 8px; border-radius: 6px; margin-top: 6px; }

/* headings in the logo's serif */
h1, h2, .word, .card b.t, .tcount, .apanel h3, .awho b, .jwho b { font-family: var(--serif); }
.ckhead { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint.good { color: var(--green); font-weight: 600; }

/* Julie: the patient's daily check-in, as a short talk */
.jhead { display: flex; align-items: center; gap: 12px; background: var(--blue); color: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.javatar { position: relative; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(145deg, #F6D9C8, #E9A57E); color: var(--blue-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.javatar i { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #3CCB7F; border: 2px solid var(--blue); animation: live 2s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(60,203,127,.6); } 50% { box-shadow: 0 0 0 6px rgba(60,203,127,0); } }
@media (prefers-reduced-motion: reduce) { .javatar i { animation: none; } }
.jwho { flex: 1; min-width: 0; }
.jwho b { display: block; font-size: 21px; line-height: 1.1; }
.jwho small { display: block; font-size: 14px; opacity: .85; }
.jvoice { flex-shrink: 0; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
.jvoice.on { background: #fff; color: var(--blue); border-color: #fff; }
.jvoice:disabled { opacity: .6; }
.jchat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.jmsg { max-width: 88%; font-size: 19px; line-height: 1.4; padding: 11px 15px; border-radius: 18px; overflow-wrap: anywhere; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jmsg { animation: none; } }
.jmsg.julie { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.jmsg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; font-weight: 600; }
.jmsg.alert { background: var(--orange-soft); border-color: #E8A57F; color: #7A2E0C; font-weight: 600; }
.jask { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.jbtn { width: 100%; border: 2px solid var(--blue); background: #fff; color: var(--blue); border-radius: 14px; padding: 15px 18px; font-size: 20px; font-weight: 700; text-align: center; }
.jbtn:active { background: var(--sky); }
.jbtn.warn { border-color: var(--orange); color: var(--orange); }
.jbtn:disabled, .jchip:disabled { opacity: .5; cursor: default; }
.jask.chips { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.jchip { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: 999px; padding: 9px 14px; font-size: 17px; font-weight: 600; }
.jnote { margin-bottom: 6px; }
button.link { cursor: pointer; font-family: inherit; }
.jdone { border-left: 5px solid var(--green); }
.jdid { list-style: none; margin: 8px 0 0; padding: 0; }
.jdid li { position: relative; padding: 5px 0 5px 28px; font-size: 17px; color: var(--slate); }
.jdid li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* Nurse: Today */
.thead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.thead h1 { font-size: 34px; margin-bottom: 2px; color: var(--blue-deep); }
.thead .btn { margin-top: 4px; white-space: nowrap; }
.tcount { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.tcount .ok { color: var(--green); }
.tcount .need { color: var(--orange); }
.tgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr; } }
.tlist { display: flex; flex-direction: column; gap: 6px; }
.trow { display: grid; grid-template-columns: 12px minmax(0, 1.1fr) auto minmax(0, 1.4fr); align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--ink); font-size: 16px; }
.trow:hover { border-color: var(--blue); }
.trow.sel { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(201,87,31,.18); }
.trow.needs.sel { background: #FFF8F2; }
.tdot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.trow.needs .tdot { background: var(--orange); }
.tname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpill { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.trow.needs .tpill { background: var(--orange-soft); color: var(--orange); }
.twhy { color: var(--muted); font-size: 14.5px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnote { margin: 8px 2px 0; font-size: 15px; color: var(--muted); }
.tside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 520px) { .trow { grid-template-columns: 12px minmax(0, 1fr) auto; } .twhy { grid-column: 2 / -1; text-align: left; } }

/* Prepared by agents: the panel */
.apanel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 5px rgba(29,36,51,.08); padding: 16px 18px; }
.apanel h3 { font-size: 13px; font-family: var(--body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.apanel.work h3 { margin-top: 0; }
.ahead { display: flex; align-items: center; gap: 12px; }
.ainit { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.awho { flex: 1; min-width: 0; }
.awho b { display: block; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.awho small { display: block; color: var(--muted); font-size: 14px; }
.stamp { flex-shrink: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; border: 2px solid var(--green); color: var(--green); transform: rotate(-3deg); }
.stamp.needs { border-color: var(--orange); color: var(--orange); }
.stamp.off { border-color: var(--muted); color: var(--muted); }
.asum { margin: 12px 0 0; font-size: 16px; color: var(--slate); }
.aplan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aplan li { border-left: 3px solid var(--orange); padding: 2px 0 2px 12px; }
.aplan b { display: block; font-size: 16.5px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.aplan small { display: block; color: var(--muted); font-size: 13.5px; }
.adraft { display: block; margin: 5px 0; padding: 8px 10px; background: var(--page); border-radius: 8px; font-size: 15px; color: var(--slate); overflow-wrap: anywhere; }
.btn.approve { background: var(--orange); border-color: var(--orange); font-weight: 700; padding: 10px 22px; border-radius: 999px; }
.aok { margin: 14px 0 0; color: var(--green); font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.acheck { list-style: none; margin: 0; padding: 0; }
.acheck li { display: grid; grid-template-columns: 22px minmax(0, 1.2fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #EEECE4; font-size: 15px; }
.acheck li:last-child { border-bottom: 0; }
.amark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--green-soft); color: var(--green); }
.acheck li.todo .amark { background: var(--orange-soft); color: var(--orange); }
.alabel { font-weight: 600; color: var(--ink); }
.atag { font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--sky); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.anote { color: var(--muted); font-size: 14px; text-align: right; }
.acheck li.todo .anote { color: var(--orange); font-weight: 600; }
@media (max-width: 520px) { .acheck li { grid-template-columns: 22px minmax(0, 1fr); } .atag, .anote { grid-column: 2; text-align: left; justify-self: start; } }
.atrail { list-style: none; margin: 0; padding: 10px 12px; background: var(--blue-deep); border-radius: 10px; max-height: 300px; overflow-y: auto; }
.atrail li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; padding: 4px 0; font-size: 13.5px; color: #E6E9F5; }
.atrail time { color: #9AA6D1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.atrail span { overflow-wrap: anywhere; }
.alinks { margin: 14px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
.awork { list-style: none; margin: 0; padding: 0; }
.awork li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 15px; color: var(--slate); border-bottom: 1px solid #EEECE4; }
.awork li:last-child { border-bottom: 0; }

/* Agents: the rule book */
.rule.off { opacity: .65; }
.rtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.rtop .chk { margin: 0; flex-shrink: 0; font-weight: 600; }
.rfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.rfoot .btn { margin-top: 0; }
.rfoot .sub { margin: 0; font-size: 14px; }
