:root {
  --bg: #f5f5f6; --card: #ffffff; --ink: #1c2633; --muted: #5d6470; --line: #d6d8dc;
  --brand: #283849; --brand-ink: #ffffff; --ok: #1d6b3a; --error: #a3261b; --wait: #8a5a00;
  --radius: 12px; color-scheme: light;
}
/* Colors (2026-11-15, Alison): Let It Rain (Vista 0518) in dark mode, In the Navy (SW 9178) in light.
   Dark follows the phone unless Settings says Light or Dark (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #161b21; --card: #20262e; --ink: #eceef1; --muted: #a9b0b9; --line: #343c47;
    --brand: #B9B9BE; --brand-ink: #1c2633; --ok: #7fd39a; --error: #ff9d92; --wait: #f0c060; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #161b21; --card: #20262e; --ink: #eceef1; --muted: #a9b0b9; --line: #343c47;
  --brand: #B9B9BE; --brand-ink: #1c2633; --ok: #7fd39a; --error: #ff9d92; --wait: #f0c060; color-scheme: dark; }

/* Opening screen: the logo fills the page while the app starts. */
#splash { position: fixed; inset: 0; z-index: 100; background: #283849; color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; transition: opacity 0.4s ease; }
#splash svg { width: min(60vw, 60vh, 360px); height: auto; }
#splash p { margin: 0; font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; letter-spacing: 0.02em; }
#splash.gone { opacity: 0; pointer-events: none; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.top { background: var(--brand); color: var(--brand-ink); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; }
.top h1 { margin: 0; font-size: 1.45rem; }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 42px; height: 38px; flex: none; }
.welcome-logo { display: block; width: 96px; height: auto; margin: 4px auto 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .welcome-logo { filter: brightness(2.2); } }
:root[data-theme="dark"] .welcome-logo { filter: brightness(2.2); }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h2 { margin: 8px 0 12px; font-size: 1.4rem; }
h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.small { color: var(--muted); font-size: 0.95rem; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; min-height: 44px; }
label.check input { width: 22px; height: 22px; }
input[type=email], input[type=password], input[type=number], input[type=search], input:not([type]), input[inputmode] { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
input[type=file] { font-size: 1rem; max-width: 100%; }
#code { letter-spacing: 0.2em; font-size: 1.4rem; }
button, .button { font: inherit; min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: inline-block; text-decoration: none; }
button.primary, form > button { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); margin-top: 12px; }
button:disabled { opacity: 0.6; cursor: default; }
button.link { background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; color: inherit; }
.danger { color: var(--error) !important; }
a { color: var(--brand); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.list > li:first-child { border-top: 0; }
.list > li > .link { justify-self: start; }
.list.pick button { width: 100%; text-align: left; }
.people { margin: 4px 0; padding-left: 20px; }
.tag { margin-left: 8px; font-size: 0.85rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.pending { color: var(--wait); border-color: var(--wait); }
.msg { min-height: 1.5em; margin: 8px 0 0; }
.msg.ok { color: var(--ok); }
.msg.error { color: var(--error); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0; }
.stats dt { color: var(--muted); font-size: 0.9rem; }
.stats dd { margin: 0; font-size: 1.5rem; font-weight: 700; }
.hello { margin-top: 4px; }

/* Workspace */
select, textarea, input[type=date] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); min-height: 44px; }
textarea { resize: vertical; }
main.wide { max-width: 1200px; }

/* The teams sidebar: a row across the top on a phone, a column on the left on a computer. */
.frame { display: block; }
#side { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 0; }
#side[hidden] { display: none; }
#side::-webkit-scrollbar { display: none; }
#side a { flex: none; padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); font-size: 0.95rem; white-space: nowrap; }
#side a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
#side .side-head { font-weight: 700; }
#side .side-join { flex: none; padding: 6px 14px; border-radius: 999px; font-size: 0.95rem; white-space: nowrap;
  background: none; border: 1px dashed var(--brand); color: var(--brand); cursor: pointer; }
@media (min-width: 900px) {
  #side .side-join { margin-top: 12px; text-align: left; border-radius: 8px; padding: 8px 12px; white-space: normal; }
  .has-side .frame { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  #side { flex-direction: column; gap: 2px; position: sticky; top: 0; min-height: calc(100vh - 120px); padding: 16px 10px;
    background: color-mix(in srgb, var(--brand) 8%, var(--bg)); border-right: 1px solid var(--line); overflow: visible; }
  #side a { border: none; background: none; border-radius: 8px; padding: 9px 12px; white-space: normal; }
  #side a:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); }
  #side a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); }
  #side .side-head { margin-top: 14px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
  #side .side-head[aria-current="page"] { color: var(--brand-ink); }
  .has-side main { margin: 0; }
}
.crumbs { margin: 0 0 4px; }
.big { font-weight: 600; font-size: 1.05rem; }
.banner { position: sticky; top: 0; z-index: 5; background: var(--card); border: 2px solid var(--wait); color: var(--ink); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; font-size: 0.95rem; }
.row.nowrap { flex-wrap: nowrap; }
.row.nowrap input { flex: 1; min-width: 0; }
.row.nowrap button { margin-top: 0; }
.row.dates > div { flex: 1; min-width: 140px; }
.add-card { margin: 0 0 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); }
.late { color: var(--error); font-weight: 600; }
.struck { text-decoration: line-through; color: var(--muted); }
.checklist > li { grid-template-columns: 1fr auto; align-items: center; }
.checklist > li > .small { grid-column: 1; margin-top: -8px; }
.notes { white-space: pre-wrap; margin: 4px 0 0; }
.badge { display: inline-block; margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-ink); color: var(--brand); font-size: 0.8rem; font-weight: 700; text-align: center; line-height: 20px; }
.notice { width: 100%; text-align: left; display: grid; gap: 2px; }
.notice.unread { border-color: var(--brand); font-weight: 600; }
.notice .small { font-weight: 400; }
.hint { margin: 4px 0 0; }
label.button { margin: 0; font-weight: 400; display: inline-flex; align-items: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 12px; }
.photos figure { margin: 0; }
.photos img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.photos figcaption { margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; }
h3.section { margin: 20px 0 8px; }
h4 { margin: 12px 0 4px; font-size: 1rem; }
.folder { color: var(--muted); text-transform: none; }
.add-files { border-top: 1px solid var(--line); margin-top: 12px; }
.jump { margin: -4px 0 12px; }
.message { border-top: 1px solid var(--line); padding: 8px 0; }
.message h4 { margin: 4px 0 0; }
.replies { list-style: none; margin: 8px 0 0 12px; padding: 0 0 0 12px; border-left: 3px solid var(--line); display: grid; gap: 8px; }
.reply { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.reply textarea { flex: 1; min-width: 0; }
.reply button { margin-top: 0; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); }

/* ---- Header: logo and person menu; folder tabs below ---- */
.top { flex-wrap: nowrap; }
#menu { position: relative; }
.person { width: 44px; height: 44px; min-height: 44px; padding: 8px; border-radius: 50%; border: 2px solid var(--brand-ink); background: transparent; color: var(--brand-ink); }
.person svg { width: 100%; height: 100%; display: block; }
.person:has(.person-photo) { padding: 0; overflow: hidden; }
.person-photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
img.avatar { object-fit: cover; background: var(--line); }
.photo-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-card .avatar { width: 96px; height: 96px; font-size: 2rem; }
.menu-list { position: absolute; right: 0; top: 52px; z-index: 20; min-width: 200px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); padding: 6px; display: grid; }
.menu-list[hidden] { display: none; }
.menu-list a, .menu-list button { display: block; text-align: left; padding: 10px 12px; min-height: 44px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; font: inherit; }
.menu-list a:hover, .menu-list button:hover { background: var(--bg); }
.menu-name { margin: 4px 12px 6px; }
.tabs { display: flex; gap: 4px; padding: 10px 12px 0; background: var(--brand); overflow-x: auto; }
.tabs:empty { display: none; }
.tab { position: relative; padding: 10px 18px; border-radius: 12px 12px 0 0; background: color-mix(in srgb, var(--brand-ink) 22%, var(--brand)); color: var(--brand-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tab[aria-current="page"] { background: var(--bg); color: var(--ink); }
@media (max-width: 420px) { .tabs { padding: 8px 8px 0; gap: 3px; } .tab { padding: 9px 10px; font-size: 0.92rem; } }
.tab .badge { background: var(--wait); color: #fff; }

/* ---- Pop-ups and + buttons ---- */
.popup { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); padding: 16px; width: min(560px, calc(100vw - 32px)); }
.popup::backdrop { background: rgb(0 0 0 / 0.45); }
.popup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.popup-head h2 { margin: 0; font-size: 1.2rem; }
.plus { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; white-space: nowrap; }
.page-head, .card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h2, .page-head h3, .card-head h3 { margin: 8px 0; }
.page-head select { width: auto; }
.perms { margin-top: -4px; }

/* ---- Home at a glance ---- */
.glance { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.glance > .card { margin: 0; }
.pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.pair > .card { margin: 0; }
.has-side main.wide { max-width: none; }   /* beside the sidebar, use the whole width */
.wide-card { grid-column: 1 / -1; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-head h3 { margin: 0; }
.cal-head .link { font-size: 1.6rem; min-width: 44px; text-decoration: none; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0; text-align: center; }
.cal .dow { font-size: 0.8rem; color: var(--muted); }
.cal .day { min-height: 40px; padding: 0; border-radius: 8px; font-size: 0.95rem; position: relative; }
.cal .day.today { border-color: var(--brand); font-weight: 700; }
.cal .day.has::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--muted); }
.cal .day.mine::after { background: var(--brand); }

/* Home's Messages, laid out like a phone's list of conversations. */
.texts { list-style: none; margin: 0 -16px; padding: 0; }
.texts li + li a { border-top: 1px solid var(--line); }
.texts a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.texts a:hover { background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent); }
.texts .avatar { width: 46px; height: 46px; font-size: 1rem; }
.text-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.text-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.text-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-top time { color: var(--muted); font-size: 0.85rem; flex: none; }
.text-where { color: var(--brand); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.text-line { color: var(--muted); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-count { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #2f9a6a; color: #fff;
  font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* The fridge calendar: a sheet of paper held by a magnet, a picture, then the month grid.
   It stays paper-colored in dark mode. */
.card.fridge { --card: #fffdf6; --ink: #1c2633; --muted: #5d6470; --line: #d8d2c2; --brand: #283849; color-scheme: light;
  background: var(--card); color: var(--ink); position: relative; padding-top: 26px; border-radius: 4px;
  box-shadow: 0 6px 14px rgb(0 0 0 / 0.22); transform: rotate(-0.4deg); }
.fridge .magnet { position: absolute; top: -12px; left: 50%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828 70%); box-shadow: 0 3px 5px rgb(0 0 0 / 0.35); }
.fridge-art { max-width: 520px; margin: 0 auto 10px; border: 1px solid var(--line); background: #fff; padding: 6px 6px 4px; }
.fridge-art svg { display: block; width: 100%; height: auto; border-radius: 2px; }
.fridge-art figcaption { text-align: center; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: 1rem; padding-top: 4px; }
.fridge .cal-head h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.04em; text-transform: uppercase; }
.fridge .cal { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fridge .cal > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fridge .cal .dow { background: #283849; color: #fff; padding: 2px 0; font-weight: 600; }
.fridge .cal .dow:first-child { background: #b23a2e; }
.fridge .cal .day { border-radius: 0; border-top: none; border-left: none; background: var(--card); color: var(--ink);
  text-align: left; padding: 2px 3px 4px; min-height: 68px; display: flex; flex-direction: column; gap: 2px; align-items: stretch;
  min-width: 0; overflow: hidden; font-size: 0.9rem; }
.fridge .day-n { padding-left: 2px; }
.day-item { display: block; font-size: 0.66rem; line-height: 1.25; padding: 1px 3px; border-radius: 3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: #fff; background: #6c8fb3; font-weight: 600; }
.day-item.mine { background: #2f9a6a; }
.day-item.hoa { background: #b23a2e; }
.day-item.done { opacity: 0.5; text-decoration: line-through; }
.day-more { font-size: 0.62rem; color: var(--muted); }
.fridge .cal .day.has::after, .fridge .cal .day.hoa::before { display: none; }
@media (min-width: 700px) { .day-item { font-size: 0.74rem; } .fridge .cal .day { min-height: 84px; } }
.fridge .cal .day:nth-child(7n + 1) { color: #b23a2e; }
.fridge .cal .day.today { background: #fff3b0; border-color: var(--line); outline: 2px solid #e0a030; outline-offset: -2px; }
.fridge .cal .day.has::after { left: auto; right: 5px; margin: 0; bottom: 5px; width: 8px; height: 8px; background: #6c8fb3; }
.fridge .cal .day.mine::after { background: #2f9a6a; }
.fridge .cal .day.hoa::before { content: "⚑"; position: absolute; right: 4px; top: 1px; font-size: 0.75rem; color: #b23a2e; }
.cal-key { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 6px 0; }
.cal-key .key { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: #6c8fb3; }
.cal-key .key.mine { background: #2f9a6a; }
.cal-key .key.hoa { background: #b23a2e; }

/* ---- Whiteboard and sticky notes ---- */
.whiteboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 85%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 8px 0 16px; padding: 16px; border-radius: 10px; border: 10px solid #b9bcc0;
  background: #fbfbf8; box-shadow: inset 0 0 0 1px #dcdcd6, 0 2px 8px rgb(0 0 0 / 0.12); }
@media (min-width: 900px) { .whiteboard { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.column { scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.column h3 { margin: 0; font-size: 1rem; color: #2a3a35; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; border-bottom: 2px solid #9aa5a1; padding-bottom: 4px; }
.column > .small { color: #6b7570; }
.note { display: grid; gap: 6px; padding: 14px 12px 12px; color: #2b2a24; text-decoration: none; transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 6px 10px -4px rgb(0 0 0 / 0.35); border-radius: 2px 2px 4px 14px; transition: transform 0.15s ease; }
.note:hover, .note:focus-visible { transform: rotate(0deg) scale(1.03); }
.note .small, .note .meta { color: #4f4c40; }
.note .late { color: #a3261b; }
.note-project { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #5f5a45; }
.note .progress { background: rgb(0 0 0 / 0.12); }
.note .progress span { background: #3d6b5c; }
.color-0 { background: #fff59d; } .color-1 { background: #ffcc80; } .color-2 { background: #a5d6a7; }
.color-3 { background: #90caf9; } .color-4 { background: #f8bbd0; }

/* ---- Cork board and flyers ---- */
.cork { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 26px 20px; border-radius: 10px;
  border: 12px solid #8a5a33; background-color: #c8955c;
  background-image: radial-gradient(rgb(90 55 25 / 0.25) 1px, transparent 1.5px), radial-gradient(rgb(255 235 200 / 0.25) 1px, transparent 1.5px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 4px; box-shadow: inset 0 0 18px rgb(0 0 0 / 0.35); }
.cork.mini { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding: 18px 14px; border-width: 8px; }
.flyer { position: relative; padding: 22px 16px 14px; color: #2b2a24; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 8px 14px -6px rgb(0 0 0 / 0.5); }
.flyer h3 { margin: 4px 0 6px; font-size: 1.1rem; color: #1c2633; }
.flyer .small { color: #5a5548; }
.flyer .notes { margin: 0 0 8px; }
.paper-0 { background: #fffdf5; } .paper-1 { background: #fff3c4; } .paper-2 { background: #e6f2ff; } .paper-3 { background: #fde8e4; }
.tack { position: absolute; top: -9px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a80, #c62828 60%, #7f1515); box-shadow: 0 3px 4px rgb(0 0 0 / 0.45); }
.flyer-tag { display: inline-block; margin: 0 6px 4px 0; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgb(0 0 0 / 0.08); color: #3d3a30; }
.flyer-tools { display: flex; gap: 16px; }
.flyer-tools .link { min-height: 32px; color: #283849; }
.flyer-tools .danger { color: #a3261b !important; }

/* ---- File tiles ---- */
/* Files as a filing cabinet drawer of hanging folders. The drawer and folders keep their
   metal and manila colors in dark mode; inside a folder the page colors are light. */
.cabinet-drawer { background: #5d666d; border-radius: 12px; padding: 14px 10px 12px; margin: 8px 0 6px;
  box-shadow: inset 0 3px 0 #464e54, inset 0 -2px 0 #7a848b; }
/* Each closed folder shows a good strip of manila under its tab; the front one (lowest on the page) shows more. */
.hang-folder { position: relative; margin-top: 10px; padding-top: 26px; min-height: 66px; }
.hang-folder:last-child { min-height: 104px; }
.hang-folder + .hang-folder { margin-top: -18px; }
.hang-folder::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 40px; border-radius: 2px 2px 6px 6px;
  background: linear-gradient(#e8cd93, #dcbd7c); border: 1px solid #b6995c; border-top: 3px solid #cdb176;
  box-shadow: 0 -3px 6px rgb(0 0 0 / 0.28); }
.hang-folder:last-child::before { height: 78px; }
.hang-tab { position: absolute; top: 0; left: var(--at); max-width: calc(100% - var(--at) - 4px); min-height: 30px; padding: 3px 12px; z-index: 1;
  border-radius: 8px 8px 0 0; border: 1px solid rgb(0 0 0 / 0.25); border-bottom: none; font-size: 0.9rem; font-weight: 600;
  color: #2b2a24; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hang-tab { background: #e8cd93; border-color: #b6995c; box-shadow: 0 -2px 4px rgb(0 0 0 / 0.2); }   /* manila, like the folder */
.hang-folder.open { z-index: 2; }
.hang-folder.open::before { display: none; }
.hang-files { --card: #fffdf4; --ink: #1c2633; --muted: #5d6470; --line: #d6c9a6; color-scheme: light; color: var(--ink);
  position: relative; background: #f3e2b5; border: 1px solid #b6995c; border-radius: 0 8px 8px 8px; padding: 12px 10px 2px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.3); }
.hang-folder.open + .hang-folder { margin-top: 0; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 4px 0 12px; }
.tile-file { margin: 0; }
.tile-file a { color: var(--ink); text-decoration: none; display: grid; gap: 6px; }
.tile-file figcaption { font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.thumb { aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgb(0 0 0 / 0.12); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.filetype { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: #5d6470; padding: 18px 14px; border-radius: 6px; }
.ft-pdf { background: #c62828; } .ft-doc { background: #1e5aa8; } .ft-xls, .ft-csv { background: #1d6b3a; } .ft-img, .ft-jpg, .ft-png { background: #7b4fa3; }

/* ---- Folder tabs, each its own color that sits well on the green ---- */
.tab { color: #1c2633; }
.tab-home  { --tab: #f1e3c2; }   /* warm sand */
.tab-board { --tab: #e7b37d; }   /* cork */
.tab-work  { --tab: #b7d3b0; }   /* sage */
.tab-files { --tab: #a9c6d6; }   /* slate blue */
.tab { background: color-mix(in srgb, var(--tab) 72%, var(--brand)); }
.tab[aria-current="page"] { background: var(--tab); color: #1c2633; padding-bottom: 12px; margin-bottom: -2px; }
/* More color (Alison, 2026-11-03): each tab's color carries into its pages as an accent: a
   stripe on top of each card and a highlighter line under the page heading. */
body[data-tab="home"]  { --accent: #e3c27a; }
body[data-tab="board"] { --accent: #e0a066; }
body[data-tab="work"]  { --accent: #8fbf86; }
body[data-tab="files"] { --accent: #86b2cc; }
body[data-tab] main .card { border-top: 5px solid var(--accent); }
body[data-tab] main h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.35em;
  text-underline-offset: -0.12em; text-decoration-skip-ink: none; }
body[data-tab] main .fridge, body[data-tab] main .cabinet-drawer, body[data-tab] .popup .card { border-top-width: 1px; }
body[data-tab] #app { border-top: 6px solid transparent; }
body[data-tab="home"] main  { border-top-color: #f1e3c2; }
body[data-tab="board"] main { border-top-color: #e7b37d; }
body[data-tab="work"] main  { border-top-color: #b7d3b0; }
body[data-tab="files"] main { border-top-color: #a9c6d6; }

/* ---- Round + and small buttons ---- */
.plus { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgb(0 0 0 / 0.2); }
.icon-button { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; }
.small-button { min-height: 36px; padding: 4px 14px; font-size: 0.95rem; }
.row.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.row.choices button { width: 100%; }
.row.choices button, .popup .row button { margin-top: 0; }

/* ---- Breadcrumbs as rounded links ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb:hover { border-color: var(--brand); }
.crumb-home { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.crumb-sep { color: var(--muted); }

/* ---- Section switcher (Board · Tasks · Messages …) ---- */
.segments { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; margin: 4px 0 12px; }
.segments button { border: 0; border-radius: 999px; background: none; min-height: 40px; padding: 6px 16px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.segments button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }

/* ---- Workspace tiles ---- */
.space-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 0 20px; }
.space-tile { position: relative; display: grid; gap: 6px; padding: 18px 16px 14px; border-radius: 4px 14px 14px 14px; text-decoration: none; color: #1c2633;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15); transition: transform 0.15s ease; }
.space-tile::before { content: ""; position: absolute; top: -10px; left: 0; width: 42%; height: 12px; border-radius: 8px 8px 0 0; background: inherit; }
.space-tile:hover { transform: translateY(-3px); }
.space-icon { font-size: 1.6rem; line-height: 1; }
.space-tile strong { font-size: 1.15rem; }
.space-role { font-size: 0.85rem; color: #4a5550; }
.space-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.9rem; }
.space-next { font-size: 0.85rem; color: #4a5550; }
.tone-board { background: #d9c7a7; } .tone-0 { background: #f1e3c2; } .tone-1 { background: #b7d3b0; }
.tone-2 { background: #a9c6d6; } .tone-3 { background: #e7c1b8; } .tone-4 { background: #cdc3e3; }
.project-note strong { font-size: 1.05rem; }
.closed-projects { margin: 0 0 16px; }

/* ---- Tasks ---- */
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 16%, var(--card)); font-size: 0.85rem; color: var(--ink); }
.assigned { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.assigned .label { font-weight: 600; }
.task { grid-template-columns: 1fr; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding-left: 30px; }
.task-meta .link { min-height: 32px; }
.task.is-mine > .check span { font-weight: 600; }
.people-pick { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 12px 0 4px; max-height: 260px; overflow: auto; }
.people-pick legend { font-weight: 600; padding: 0 4px; }
.big-checklist { display: grid; gap: 16px; }
.task-group h4 { margin: 0 0 4px; font-size: 1.05rem; border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.task-group h4 a { color: var(--ink); }
div.check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
div.check input { width: 22px; height: 22px; flex: none; }
.task.is-mine > .check a { font-weight: 600; }
.note.is-mine { outline: 2px solid rgb(0 0 0 / 0.35); outline-offset: -4px; }
.step-add { margin-top: 8px; flex-wrap: nowrap; }
.step-add input { flex: 1; min-width: 0; }
fieldset.when { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px 12px; margin: 12px 0 4px; }
fieldset.when legend { font-weight: 600; padding: 0 4px; }
.row.dates > div { flex: 1 1 120px; min-width: 0; }
.fold { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
.fold h4 { margin: 0 0 4px; }

/* The Checklist section: a printed sheet of plain paper on a clipboard (stays paper-coloured in dark mode). */
.clipboard { position: relative; background: #a87a4b; border-radius: 14px; padding: 42px 12px 14px; margin: 8px 0 16px;
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.12); }
.clip { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: min(320px, 96%); z-index: 2; pointer-events: none; }
.clip svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.3)); }
.paper { background: #ffffff; color: #1c2633; border-radius: 2px;
  padding: 16px 16px 14px; min-height: 160px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); position: relative; color-scheme: light; }
.paper .task-group + .task-group { margin-top: 18px; }
.paper .task-group h4 { border-bottom-color: #1c2633; border-bottom-width: 1px; }
.paper .small, .paper .task-meta { color: #5d6470; }
.paper a { color: #1f4f42; }
.paper .chip { background: #e8eaee; color: #1c2633; }
.paper .list > li { border-color: #e4e0d4; background: none; }
.paper input[type=checkbox] { accent-color: #283849; }

/* ---- Messages, Profile, Notice Board bits ---- */
.msg-where { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; margin-top: 6px; }
.homes .edit-only { display: none; }
.editing .homes .edit-only { display: inline-flex; }
.editing .homes p.edit-only { display: block; }
.head-link { color: var(--ink); text-decoration: none; }
.head-link:hover { text-decoration: underline; }
.cork-link { display: block; text-decoration: none; }
.older > li { grid-template-columns: 1fr auto; align-items: center; }
.older .link { text-align: left; }

/* ---- Drag and drop files ---- */
.dropzone { display: grid; gap: 4px; place-items: center; text-align: center; padding: 28px 16px; margin: 12px 0 4px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.dropzone.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--card)); }
.chosen { margin: 4px 0; padding-left: 20px; }

/* ---- HOA Deadlines and the sign-in page ---- */
.deadline { border-left: 6px solid var(--line); }
.cat-state { border-left-color: #283849; } .cat-federal { border-left-color: #1e5aa8; } .cat-insurance { border-left-color: #b26b00; }
.cat-annual { border-left-color: #6a9a5b; } .cat-governing { border-left-color: #7b4fa3; } .cat-election { border-left-color: #c2185b; }
.cat-financial { border-left-color: #00796b; } .cat-other { border-left-color: #888; }
.deadline.is-done { opacity: 0.7; }
.deadline h3 { margin: 4px 0; }
.deadline-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0; font-size: 0.95rem; }
.deadline-facts .cat { font-weight: 700; }
.late-tag { color: #fff !important; background: var(--error); border-color: var(--error) !important; }
.soon-tag { color: #3d2c00 !important; background: #f0c060; border-color: #f0c060 !important; }
.deadlines-soon { border: 2px solid #f0c060; }
.signin-links { justify-content: space-between; }
.keystone { border-left: 6px solid var(--brand); }

/* ---- Tabs: no little up-and-down scroll bar (sideways scrolling stays for narrow phones) ---- */
.tabs { overflow-y: hidden; scrollbar-width: none; align-items: flex-end; }
.tabs::-webkit-scrollbar { display: none; }
.tab[aria-current="page"] { margin-bottom: 0; padding-bottom: 12px; }

/* ---- Sticky notes that look like sticky notes: square paper, a sticky strip along the top,
   a slight lift at the bottom corner, and a handwritten title ---- */
.note { position: relative; border-radius: 0; padding: 20px 14px 18px; min-height: 118px; overflow: visible;
  background-image: linear-gradient(180deg, rgb(0 0 0 / 0.07) 0, rgb(0 0 0 / 0.03) 14px, rgb(255 255 255 / 0) 15px,
                                    rgb(255 255 255 / 0) 70%, rgb(0 0 0 / 0.04) 100%);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.12), 0 12px 14px -10px rgb(0 0 0 / 0.55), 6px 8px 10px -9px rgb(0 0 0 / 0.35); }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0) 48%, rgb(0 0 0 / 0.10) 50%, rgb(255 255 255 / 0.55) 56%, rgb(0 0 0 / 0.05) 100%); }
.note strong { font-family: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive; font-size: 1.08rem; line-height: 1.3; color: #26251f; }
.note .meta { font-size: 0.82rem; }
.color-0 { background-color: #fff27a; } .color-1 { background-color: #ffc978; } .color-2 { background-color: #c5f0a4; }
.color-3 { background-color: #aee3ff; } .color-4 { background-color: #ffb8d9; }

/* ---- Message threads with chat bubbles ---- */
.thread { border-top: 1px solid var(--line); padding: 14px 0 12px; }
.thread-head { display: flex; gap: 10px; align-items: flex-start; }
.thread-post { min-width: 0; flex: 1; }
.thread-post h4 { margin: 0; font-size: 1.05rem; }
.thread-post .small { margin: 0; }
.thread-post .notes { margin: 6px 0 0; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #1c2633; }
.avatar.small { width: 28px; height: 28px; font-size: 0.72rem; }
.bubbles { display: grid; gap: 8px; margin: 12px 0 0 46px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble-row.mine { justify-content: flex-end; }
.bubble { max-width: 82%; padding: 7px 12px 8px; border-radius: 16px 16px 16px 4px; background: color-mix(in srgb, var(--ink) 7%, var(--card));
  display: grid; gap: 1px; overflow-wrap: anywhere; }
.bubble-row.mine .bubble { border-radius: 16px 16px 4px 16px; background: #283849; color: #fff; }
.bubble-who { font-size: 0.78rem; color: var(--muted); }
.bubble-row.mine .bubble-who { color: rgb(255 255 255 / 0.8); }
.bubble-text { white-space: pre-wrap; }
.bubble-delete { min-height: 28px; justify-self: start; font-size: 0.8rem; }
.bubble-row.mine .bubble-delete { color: #ffd2cc !important; }
.reply-pill { display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line); border-radius: 22px; padding: 4px 4px 4px 14px; background: var(--bg); }
.reply-pill textarea { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; min-height: 36px; resize: none; }
.reply-pill textarea:focus { outline: none; }
.reply-pill:focus-within { border-color: var(--brand); }
.reply-pill .send { margin: 0; min-height: 36px; width: 36px; padding: 0; border-radius: 50%; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (max-width: 420px) { .bubbles { margin-left: 0; } }

/* ---- Gantt chart: a title line above each bar; row heights match ROW/HEAD/GROUP in gantt.js ---- */
.g-warnings > li { padding: 8px 10px; border-radius: 8px; margin-top: 6px; border: 0; }
.g-warn.red { background: color-mix(in srgb, var(--error) 14%, var(--card)); border-left: 4px solid var(--error); }
.g-warn.yellow { background: color-mix(in srgb, var(--wait) 16%, var(--card)); border-left: 4px solid var(--wait); }
.g-warn a { color: var(--ink); text-decoration: none; }
.g-warn ul { margin: 4px 0 0; padding-left: 20px; }
.popup .g-warn { padding: 4px 12px; border-radius: 8px; margin-top: 8px; }
.g-drift { margin: 8px 0 0; font-weight: 600; }
.g-tools { justify-content: space-between; margin-bottom: 8px; }
.g-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.g-inner { position: relative; min-width: 100%; }
.g-head { position: relative; height: 34px; border-bottom: 1px solid var(--line); }
.g-month { position: absolute; top: 0; height: 34px; padding: 7px 0 0 4px; border-left: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.g-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--error); z-index: 2; pointer-events: none; }
.g-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.g-links line { stroke: var(--muted); stroke-width: 1.5; }
.g-group { height: 34px; padding: 8px 8px 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted);
  border-top: 1px solid var(--line); }
.g-sticky { position: sticky; left: 8px; display: inline-block; max-width: calc(100vw - 72px); }
.g-row { height: 56px; padding: 0; }
.g-label { height: 28px; padding: 4px 8px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.92rem; z-index: 3; }
.g-label a { font-weight: 600; }
.g-label > * { background: var(--bg); position: relative; }   /* titles sit above the link lines */
.g-label .small { font-size: 0.8rem; }
.g-track { position: relative; height: 24px; }
.g-bar, .g-base { position: absolute; top: 4px; height: 16px; border-radius: 4px; min-width: 6px; }
.g-bar { border: 1px solid rgb(0 0 0 / 0.3); z-index: 2; }
.g-bar.done { opacity: 0.45; }
.g-bar.late { background-image: repeating-linear-gradient(135deg, rgb(163 38 27 / 0.45) 0 4px, transparent 4px 8px); }
.g-bar.yellow { box-shadow: 0 0 0 2px var(--wait); }
.g-bar.red { background: var(--error); border-color: var(--error); }
.g-base { top: 1px; height: 22px; border: 1.5px dashed var(--muted); background: none; z-index: 1; }
.g-wait { position: absolute; top: 9px; height: 6px; border-radius: 0 3px 3px 0; z-index: 2;
  background: repeating-linear-gradient(135deg, var(--muted) 0 3px, transparent 3px 6px); }
.g-diamond, .g-flag { position: absolute; top: 0; transform: translateX(-50%); font-size: 1.1rem; line-height: 24px; z-index: 3; color: var(--wait); }
.g-diamond.red { color: var(--error); }
.g-flag { color: var(--ink); transform: translateX(-20%); text-shadow: 0 0 2px var(--bg), 0 0 2px var(--bg); }
.g-legend { margin: 8px 0 0; }
.g-undated { margin-top: 10px; }
.g-undated summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

/* Calendar entries are links; "+2 more" opens the whole day. */
a.day-item { text-decoration: none; }
a.day-item:hover { filter: brightness(1.1); }
.fridge .day-more { min-height: 0; padding: 0 2px; font-size: 0.66rem; text-align: left; color: var(--muted); }

/* Profile committees list, and the calendar's "+" (2026-11-06). */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-add { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.fridge .cal .day { cursor: default; }

/* Sketchbook (2026-11-15): photo tiles with the drawing laid over them; the drawing screen. */
.snap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 14px; }
.button.snap { font-size: 1.15rem; padding: 14px 22px; min-height: 56px; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }
label.link { display: inline; margin: 0; font-weight: 400; text-decoration: underline; cursor: pointer; }
.sketch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: start; }
.sketch-tile { display: flex; flex-direction: column; gap: 6px; padding: 0; text-align: left; border-radius: 10px; overflow: hidden; min-height: 0; }
.sketch-caption { display: grid; gap: 2px; padding: 0 10px 10px; }
.sketch-note { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.92rem; }
.sketch-frame { position: relative; line-height: 0; background: #000; }
.sketch-frame img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.sketch-frame .sketch-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sketch-stage { touch-action: none; cursor: crosshair; border-radius: 8px; overflow: hidden; margin: 8px auto 4px; width: fit-content; max-width: 100%; }
.sketch-stage img { max-height: 60vh; width: auto; max-width: 100%; }
.sketch-full .sketch-frame { border-radius: 8px; overflow: hidden; margin: 8px 0; }
.sketch-note-full { white-space: pre-wrap; }
.popup.popup-wide { width: min(760px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); padding: 12px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.tool-row button { min-height: 40px; padding: 6px 12px; margin: 0; }
.tool-row button[aria-pressed="true"], .bldg[aria-pressed="true"], .tag[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.swatches { display: inline-flex; gap: 6px; }
.swatch { width: 40px; min-height: 40px !important; padding: 0 !important; border-radius: 50%; background: var(--swatch) !important; border: 2px solid var(--line); }
.swatch[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.bldg-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 6px; }
.bldg { min-height: 40px; padding: 0; margin: 0; font-weight: 600; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { min-height: 36px; padding: 4px 12px; border-radius: 999px; margin: 0; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: normal; margin-top: 8px; }

/* Sign-up sheets (2026-11-15). */
.sheet-tools { margin: 4px 0 8px; }
.sheet-tools button { margin: 0; }
.sheet-note { white-space: pre-wrap; }
.signup-day { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.signup-day h4 { margin: 0; }
.signup-day.past { opacity: 0.85; }
.job-row { display: grid; gap: 4px; padding: 6px 0; }
.job-name { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.job-people { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.job-people button { margin: 0; }
.person-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 22%, var(--card)); border: 1px solid var(--line); color: var(--ink); font-size: 0.95rem; }
button.person-pill { cursor: pointer; }
.person-pill.mine { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.open-slot { width: 36px; height: 36px; border-radius: 999px; border: 2px dashed var(--line); }
.job-row.full .job-name .small { color: var(--ok); font-weight: 600; }
.job-edit-list { display: grid; gap: 6px; }
.job-edit input[type=number] { width: 72px; flex: 0 0 72px; }
.signup-past summary { cursor: pointer; padding: 8px 0; }

/* How-to guides (2026-11-15): tiles on the team page; a guide is a column of steps joined by arrows. */
.howto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.howto-tile { display: grid; gap: 4px; padding: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; background: var(--card); }
.howto-tile img, .howto-nopic { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.howto-nopic { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted); }
.howto-tile strong, .howto-tile .small { padding: 0 10px; }
.howto-intro { white-space: pre-wrap; margin: 0; }
.step-photo .sketch-frame { border-radius: 8px; overflow: hidden; }
.step-caption { white-space: pre-wrap; margin: 10px 0 0; font-size: 1.05rem; }
.step-tools { margin-top: 8px; }
.step-tools button { margin: 0; }

/* How-to as a flow chart (2026-11-16): Start and Done bubbles, a box per step, arrow lines
   between. Rows snake left-right / right-left on wider screens (laid out in howto.js). */
.flowchart { display: grid; margin: 16px 0; align-items: center; }
.fc-step { background: var(--card); border: 2px solid var(--brand); border-radius: 6px; padding: 10px; align-self: center; }
.fc-end { justify-self: center; padding: 10px 30px; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 2px 6px rgb(0 0 0 / 0.2); }
.fc-link { position: relative; align-self: stretch; justify-self: stretch; min-height: 44px; --fc: var(--muted); }
.fc-link::before, .fc-link::after { content: ''; position: absolute; }
.fc-link.v::before { left: calc(50% - 1.5px); top: 2px; bottom: 12px; border-left: 3px solid var(--fc); }
.fc-link.v::after { left: calc(50% - 8px); bottom: 0; border-top: 13px solid var(--fc); border-left: 8px solid transparent; border-right: 8px solid transparent; }
.fc-link.h::before { top: calc(50% - 1.5px); left: 2px; right: 2px; border-top: 3px solid var(--fc); }
.fc-link.h.right::before { right: 12px; }
.fc-link.h.left::before { left: 12px; }
.fc-link.h.right::after { top: calc(50% - 8px); right: 0; border-left: 13px solid var(--fc); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.fc-link.h.left::after { top: calc(50% - 8px); left: 0; border-right: 13px solid var(--fc); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
/* Steps that happen at the same time: side by side in a dashed box. */
.fc-group { position: relative; align-self: center; border: 2px dashed var(--muted); border-radius: 10px; padding: 20px 8px 8px; }
.fc-group-label { position: absolute; top: -12px; left: 12px; padding: 0 8px; background: var(--bg); color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.fc-parallel { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-parallel > .fc-step { flex: 1 1 140px; min-width: 0; align-self: stretch; }

/* Team roster (2026-11-16). */
.roster { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.roster-person { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.roster-person:first-child { border-top: 0; }
.roster-person > button { margin: 0 0 0 auto; flex: none; }
.roster-info { display: grid; gap: 3px; min-width: 0; }
.roster-duty { font-size: 0.95rem; }
.roster-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.95rem; overflow-wrap: anywhere; }
.roster .chip { white-space: nowrap; }
/* The community Sign-ups tab (2026-11-16): lavender. */
.tab-signups { --tab: #d3c1e6; }
body[data-tab="signups"] { --accent: #b39bd2; }
body[data-tab="signups"] main { border-top-color: #d3c1e6; }
.sheet-from { margin: 0 0 2px; font-weight: 600; }
/* Four folder tabs on a phone (2026-11-16): a little tighter so Sign-ups fits too. */
@media (max-width: 420px) { .tabs { padding: 8px 6px 0; gap: 2px; } .tab { padding: 8px 7px; font-size: 0.84rem; white-space: nowrap; } }
