/* clarity hub — light/dark tokens; system fonts (PragmataPro is tailnet-only by license) */
:root {
  --ground: #fbfaf7; --raised: #ffffff; --text: #222; --dim: #6f6f6f;
  --line: #e4e1da; --accent: #2f6f5e; --accent-ink: #fff; --warn: #9a5b00; --bad: #a33;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #141414; --raised: #1c1c1c; --text: #ddd; --dim: #8a8a8a;
    --line: #2e2e2e; --accent: #6fbfa6; --accent-ink: #0d1f1a; --warn: #e0a24a; --bad: #e07070;
  }
}
* { box-sizing: border-box; }
body { background: var(--ground); color: var(--text); margin: 0;
       font: 16px/1.5 -apple-system, system-ui, "Segoe UI", sans-serif; }
a { color: var(--accent); }
main { max-width: 52rem; margin: 0 auto; padding: 1.5rem 16px 4rem; }
h1 { font-size: 1.4rem; font-weight: 600; margin: .2rem 0 1rem; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .4rem; }
.bar { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline;
       padding: .8rem 16px; border-bottom: 1px solid var(--line); background: var(--raised); }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
nav a { color: var(--dim); text-decoration: none; }
nav a:hover { color: var(--accent); }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 1rem;
         padding: 0 .45rem; font-size: .8rem; }
footer { max-width: 52rem; margin: 0 auto; padding: 0 16px 2rem; color: var(--dim); font-size: .8rem; }
.dim, .hint { color: var(--dim); }
.hint { font-size: .85rem; margin: .2rem 0 .8rem; }
.events { list-style: none; padding: 0; margin: 0; }
.ev { display: grid; grid-template-columns: 10.5rem 1fr; gap: .1rem 1rem;
      padding: .65rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.ev .when { color: var(--accent); font-variant-numeric: tabular-nums; font-size: .9rem; }
.ev .title { color: var(--text); text-decoration: none; font-weight: 500; }
.ev .title:hover { color: var(--accent); }
.ev .meta { grid-column: 2; color: var(--dim); font-size: .8rem; }
.ev-pending .title, .ev-rejected .title { opacity: .7; }
.day { color: var(--dim); font-weight: 500; font-size: .95rem; margin-top: 1.4rem; }
.note { border-left: 3px solid var(--warn); padding-left: .8rem; margin-bottom: 1.5rem; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 8px;
        padding: 1rem 1.2rem; margin-bottom: 1rem; }
.narrow { max-width: 26rem; }
.card .when { color: var(--accent); margin: 0; }
.desc { white-space: pre-wrap; margin: .8rem 0; }
.clip { max-height: 9rem; overflow: hidden; }
.flag { display: inline-block; color: var(--warn); border: 1px solid var(--warn);
        border-radius: 4px; padding: 0 .4rem; font-size: .85rem; }
.error { color: var(--bad); } .ok { color: var(--accent); }
label { display: block; margin: .6rem 0; font-size: .9rem; color: var(--dim); }
input, textarea { display: block; width: 100%; margin-top: .2rem; padding: .5rem .6rem;
  font: inherit; color: var(--text); background: var(--ground);
  border: 1px solid var(--line); border-radius: 6px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.row label { margin-bottom: 0; }
button, .button { font: inherit; background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 6px; padding: .45rem 1rem;
  cursor: pointer; text-decoration: none; display: inline-block; }
button.quiet { background: transparent; color: var(--text); border-color: var(--line); }
button.small { padding: .1rem .6rem; font-size: .8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.actions form { margin: 0; }
.monthhead { display: flex; align-items: baseline; gap: 1rem; }
.monthhead a { text-decoration: none; font-size: 1.4rem; padding: 0 .4rem; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
        border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.dow { font-size: .75rem; color: var(--dim); padding: .2rem .3rem;
       border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell { min-height: 5.5rem; padding: .2rem; border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line); overflow: hidden; }
.cell.other { background: color-mix(in srgb, var(--line) 25%, transparent); }
.cell.other .num { opacity: .5; }
.cell.today .num { background: var(--accent); color: var(--accent-ink); border-radius: 1rem; padding: 0 .35rem; }
.num { font-size: .8rem; color: var(--dim); }
.chip { display: block; font-size: .72rem; line-height: 1.3; margin-top: .15rem; padding: .05rem .25rem;
        border-radius: 3px; background: color-mix(in srgb, var(--accent) 14%, transparent);
        color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .ev { grid-template-columns: 1fr; } .ev .meta { grid-column: 1; }
  .row { grid-template-columns: 1fr 1fr; } .row label:first-child { grid-column: 1 / -1; }
  .cell { min-height: 3.6rem; } .chip { font-size: .62rem; }
}
.or { text-align: center; color: var(--dim); margin: 1rem 0 .6rem; font-size: .85rem; }
.button.google { display: block; text-align: center; background: transparent; color: var(--text); border-color: var(--line); }
.button.google-primary { display: block; text-align: center; }
/* feedback corner (colab #426) */
.fb-button { position: fixed; right: 16px; bottom: 16px; z-index: 20; background: var(--accent);
  color: var(--accent-ink); text-decoration: none; padding: .45rem .9rem; border-radius: 2rem;
  font-size: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: .85; }
.fb-button:hover, .fb-button:focus { opacity: 1; }
.fb-panel { position: fixed; right: 16px; bottom: 64px; z-index: 21; width: min(26rem, calc(100vw - 32px));
  max-height: min(70vh, 40rem); display: flex; flex-direction: column; background: var(--raised);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: .8rem; }
.fb-panel[hidden] { display: none; }
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.fb-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .4rem; }
.small-text { font-size: .75rem; }
.fb-list { list-style: none; padding: 0; margin: .6rem 0 0; overflow-y: auto; }
.fb-list li { border-top: 1px solid var(--line); padding: .55rem 0; }
.fb-meta { font-size: .75rem; }
.fb-body { white-space: pre-wrap; font-size: .92rem; }
main { padding-bottom: 5rem; }
/* month view scales with the screen (Robb 2026-09-30: "bigger … doesn't scale") */
body.wide main { max-width: min(96rem, 100%); }
body.wide .cell { min-height: clamp(4.5rem, calc((100vh - 12rem) / 6), 11rem); padding: .3rem .35rem; }
body.wide .num { font-size: clamp(.8rem, 1vw, 1rem); }
body.wide .dow { font-size: clamp(.75rem, .9vw, .9rem); padding: .3rem .4rem; }
body.wide .chip { font-size: clamp(.72rem, .85vw, .9rem); white-space: normal; padding: .15rem .35rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.wide .monthhead h1 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.month-list { display: none; margin-top: 1.4rem; }
@media (max-width: 560px) {
  body.wide .cell { min-height: 3.2rem; }
  body.wide .chip { display: inline-block; width: .5rem; height: .5rem; padding: 0; margin: .15rem .1rem 0 0;
    border-radius: 50%; font-size: 0; background: var(--accent); -webkit-line-clamp: unset; }
  .month-list { display: block; }
}
body.wide .chip { line-height: 1.3; max-height: calc(2.6em + .3rem); }
body.wide footer { max-width: min(96rem, 100%); }
