/* Greenlit in the Aristo 2 style (Lion, 2011; 23 Oct): cool greys, Aristo's blue for every control, green for the logo and Live. HSL in steps of 5 (Palette). Phone first. */
:root { --paper: hsl(220, 5%, 90%); --card: hsl(0, 0%, 100%); --ink: hsl(220, 10%, 15%); --ink2: hsl(220, 10%, 30%); --muted: hsl(220, 5%, 40%); --faint: hsl(220, 5%, 60%); --rule: hsl(220, 5%, 85%); --rule2: hsl(220, 5%, 75%); --go: hsl(220, 65%, 55%); --go-soft: hsl(215, 75%, 95%); --stop: hsl(5, 60%, 45%); --stop-soft: hsl(5, 70%, 95%); --amber: hsl(40, 80%, 35%); --amber-soft: hsl(40, 80%, 90%); --accent: hsl(220, 65%, 45%); --live: hsl(140, 55%, 40%); --live-soft: hsl(140, 45%, 90%); --lift: hsl(0, 0%, 100%); --sink: hsl(220, 5%, 90%); --bar-top: hsl(220, 5%, 95%); --bar-bottom: hsl(220, 5%, 85%); --source: hsl(215, 20%, 90%); --source-top: hsl(215, 60%, 65%); --source-bottom: hsl(220, 60%, 50%); --badge: hsl(215, 20%, 60%); --blue-top: hsl(215, 70%, 65%); --blue-bottom: hsl(220, 65%, 50%); }
@media (prefers-color-scheme: dark) { :root { --paper: hsl(220, 10%, 10%); --card: hsl(220, 10%, 15%); --ink: hsl(220, 10%, 90%); --ink2: hsl(220, 10%, 75%); --muted: hsl(220, 5%, 60%); --faint: hsl(220, 5%, 45%); --rule: hsl(220, 10%, 20%); --rule2: hsl(220, 10%, 30%); --go: hsl(215, 70%, 60%); --go-soft: hsl(220, 35%, 20%); --stop: hsl(5, 75%, 70%); --stop-soft: hsl(5, 35%, 20%); --amber: hsl(40, 70%, 60%); --amber-soft: hsl(40, 40%, 20%); --accent: hsl(215, 80%, 70%); --live: hsl(140, 50%, 55%); --live-soft: hsl(140, 30%, 20%); --lift: hsl(220, 10%, 30%); --sink: hsl(220, 10%, 20%); --bar-top: hsl(220, 10%, 25%); --bar-bottom: hsl(220, 10%, 20%); --source: hsl(220, 10%, 15%); --source-top: hsl(215, 55%, 50%); --source-bottom: hsl(220, 60%, 40%); --badge: hsl(220, 10%, 40%); --blue-top: hsl(215, 70%, 65%); --blue-bottom: hsl(220, 65%, 50%); } }
/* See-through colours, from Aristo's layer styles: a control's 1px edge (35% black), the default button's darker stroke, hairlines (20%), the sheen along a control's top, the white text shadow under a label, Aristo's blue focus glow. */
:root { --edge: hsl(0 0% 0% / .35); --edge-blue: hsl(220 100% 25% / .75); --hair: hsl(0 0% 0% / .2); --sheen: hsl(0 0% 100% / .35); --text-lift: hsl(0 0% 100% / .6); --press: hsl(220 100% 20% / .45); --glow: hsl(220 100% 50% / .45); }
@media (prefers-color-scheme: dark) { :root { --edge: hsl(0 0% 0% / .7); --edge-blue: hsl(220 100% 15% / .85); --hair: hsl(0 0% 0% / .5); --sheen: hsl(0 0% 100% / .06); --text-lift: hsl(0 0% 0% / .5); --press: hsl(220 100% 10% / .6); --glow: hsl(215 100% 60% / .55); } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
/* The shell: a bar across the top, a business's sections down the side (a row of tabs on a phone), the page in the middle. */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--rule); }
header.bar { background: linear-gradient(var(--bar-top), var(--bar-bottom)); border-bottom: 1px solid var(--hair); text-shadow: 0 1px 0 var(--text-lift); }   /* Lion's toolbar; an ad preview's own .bar keeps its look */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); text-decoration: none; margin-right: 6px; }
.brand i { width: 20px; height: 20px; border-radius: 50%; background: var(--live) padding-box; border: 3px solid var(--live-soft); }   /* the ring a border, not a shadow: even on a half pixel */
.bar .here { color: var(--muted); font-size: 14px; font-weight: 600; }
.menu { position: relative; } .menu summary { list-style: none; cursor: pointer; } .menu summary::-webkit-details-marker { display: none; }
.switch summary { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.switch summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.switch summary:hover, .switch[open] summary { background: var(--paper); }
.account { margin-left: auto; } .account summary { border-radius: 50%; }
.me { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--go-soft); color: var(--go); font-weight: 700; font-size: 14px; }
.account[open] .me, .account summary:hover .me { box-shadow: 0 0 0 2px var(--go); }
.pop { position: absolute; top: calc(100% + 6px); min-width: 230px; padding: 5px 0; background: var(--card); border: 1px solid var(--hair); border-radius: 5px; box-shadow: 0 3px 8px hsl(0 0% 0% / .3); z-index: 30; text-shadow: none; }
.switch .pop { left: 0; } .account .pop { right: 0; }
.pop a { display: block; padding: 6px 14px 6px 24px; color: var(--ink); text-decoration: none; font-size: 14px; } .pop a:hover { background: linear-gradient(var(--blue-top), var(--go)); color: hsl(0, 0%, 100%); }
.pop a.on { position: relative; font-weight: 600; } .pop a.on::before { content: "✓"; position: absolute; left: 8px; color: inherit; }
.pop p { margin: 6px 14px; font-size: 14px; } .pop hr { border: 0; border-top: 1px solid var(--rule); margin: 6px 0; } .pop form { margin: 0; }
.pop .out { width: 100%; text-align: left; padding: 6px 14px 6px 24px; font: inherit; font-size: 14px; color: var(--stop); background: none; border: 0; cursor: pointer; } .pop .out:hover { background: linear-gradient(var(--blue-top), var(--go)); color: hsl(0, 0%, 100%); }
/* A business's shell (22 Oct): on a computer a side with the business, its status, Ask Greenlit, the sections in three groups
   and the month's money; on a phone a top bar with the status and a tab bar along the bottom, the rest under More. */
.side { display: none; }
/* iOS 6's tab bar, as in the App Store (Zhenyi's screenshot, 23 Oct): glossy black split at the middle, full-height cells with
   dividers, the open one lighter with its icon glowing blue and a white label, the others light grey. */
.tabbar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0 0 env(safe-area-inset-bottom);
  background: linear-gradient(hsl(0, 0%, 20%), hsl(0, 0%, 10%) 50%, hsl(0, 0%, 5%) 50%, hsl(0, 0%, 0%)); border-top: 1px solid hsl(0, 0%, 0%); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .2); }
.tabbar > * + * { box-shadow: -1px 0 0 hsl(0 0% 0% / .7), inset 1px 0 0 hsl(0 0% 100% / .08); }   /* the dividers */
.tabbar .more { display: grid; } .tabbar svg { width: 26px; height: 26px; }
.tabbar > a, .tabbar summary { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; height: 49px; padding: 3px 2px 2px; font-size: 10px; font-weight: 700; color: hsl(0, 0%, 75%); text-shadow: 0 -1px 0 hsl(0, 0%, 0%); text-decoration: none; list-style: none; cursor: pointer; }
.tabbar svg { filter: drop-shadow(0 -1px 0 hsl(0, 0%, 0%)); }
.tabbar summary::-webkit-details-marker { display: none; }
.tabbar > a.on, .tabbar .more[open] summary, .tabbar .more summary.on { color: hsl(0, 0%, 100%); background: linear-gradient(hsl(0 0% 100% / .16), hsl(0 0% 100% / .1) 50%, hsl(0 0% 100% / .06) 50%, hsl(0 0% 100% / .08)); }
.tabbar > a.on svg, .tabbar .more[open] summary svg, .tabbar .more summary.on svg { color: hsl(205, 90%, 60%); filter: drop-shadow(0 0 4px hsl(205 100% 60% / .75)); }
.tabbar .count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 20px; padding: 0 5px; border-radius: 999px; background: linear-gradient(hsl(0, 80%, 65%), hsl(0, 75%, 45%)); border: 2px solid hsl(0, 0%, 100%); color: hsl(0, 0%, 100%); text-shadow: 0 -1px 0 hsl(0 0% 0% / .3); box-shadow: 0 1px 2px hsl(0 0% 0% / .5); font-size: 11px; line-height: 16px; text-align: center; }
.tabbar .more { position: relative; } .tabbar .sheet { position: absolute; right: 4px; bottom: calc(100% + 10px); width: 230px; padding: 5px 0; background: var(--card); border: 1px solid var(--hair); border-radius: 6px; box-shadow: 0 3px 10px hsl(0 0% 0% / .35); display: grid; text-shadow: none; }
.tabbar .sheet a { display: flex; gap: 10px; align-items: center; padding: 9px 14px; color: var(--ink); text-decoration: none; font-size: 14px; } .tabbar .sheet a:hover { background: linear-gradient(var(--blue-top), var(--go)); color: hsl(0, 0%, 100%); }
.tabbar .sheet a.on { font-weight: 700; } .tabbar .sheet svg { color: var(--muted); }
body.signed-in .frame.with-side main.app { padding-bottom: 96px; }
.phone-state { margin-left: auto; align-self: center; } .bar .phone-state + .account { margin-left: 8px; }
@media (min-width: 900px) {
  .bar.in-shell { display: none; } .tabbar { display: none; }
  .frame.with-side { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; background: var(--source); border-right: 1px solid var(--hair); box-shadow: inset -1px 0 0 var(--sheen); overflow-y: auto; }
  .side .biz summary { gap: 10px; padding: 6px 8px; } .side .biz summary b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .badge { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(var(--blue-top), var(--blue-bottom)); color: hsl(0, 0%, 100%); text-shadow: 0 -1px 0 var(--press); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .3), 0 1px 1px hsl(0 0% 0% / .2); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
  .side .state { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin: -4px 8px 0; font-size: 12px; color: var(--muted); }
  .side .state i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); align-self: center; } .side .state.live i { width: 13px; height: 13px; margin: 0 -3px; background: var(--live) padding-box; border: 3px solid var(--live-soft); }
  .side .state b { color: var(--amber); } .side .state.live b { color: var(--live); }
  .ask-link { display: flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid var(--edge); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; background: var(--card); box-shadow: inset 0 2px 0 hsl(0 0% 0% / .06); }
  .ask-link:hover, .ask-link.on { border-color: var(--go); color: var(--accent); box-shadow: 0 0 0 1px var(--go), 0 0 4px 2px var(--glow); }
  .side nav { display: grid; gap: 12px; } .side .group { display: grid; gap: 1px; }
  .side nav a { display: flex; align-items: center; gap: 10px; margin: 0 -12px; padding: 5px 22px; color: var(--ink); text-shadow: 0 1px 0 var(--text-lift); text-decoration: none; font-size: 14px; font-weight: 500; }
  .side nav a:hover { background: hsl(0 0% 100% / .35); } .side nav svg { flex: none; color: var(--badge); }
  .side nav a.on { background: linear-gradient(var(--source-top), var(--source-bottom)); color: hsl(0, 0%, 100%); font-weight: 700; text-shadow: 0 -1px 0 var(--press); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .3), inset 0 -1px 0 var(--press); } .side nav a.on svg { color: hsl(0, 0%, 100%); }
  .side .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--badge); color: hsl(0, 0%, 100%); text-shadow: none; box-shadow: inset 0 1px 1px hsl(0 0% 0% / .2); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
  .side nav a.on .count { background: hsl(0, 0%, 100%); color: var(--source-bottom); box-shadow: none; }
  .side .foot { margin-top: auto; display: grid; gap: 6px; padding: 10px 8px 0; border-top: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--sheen); color: var(--ink2); } .side .foot p { margin: 0; }
  .meter { display: block; height: 7px; border-radius: 999px; background: linear-gradient(var(--sink), var(--lift)); box-shadow: inset 0 1px 1px hsl(0 0% 0% / .2), 0 0 0 1px var(--edge); overflow: hidden; } .meter i { display: block; height: 100%; background: linear-gradient(var(--blue-top), var(--go)); }
  .side .account { margin: 4px 0 0; } .side .account summary { display: flex; gap: 10px; align-items: center; border-radius: 8px; padding: 4px; line-height: 1.3; }
  .side .account .pop.up { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
}
main.app { width: 100%; max-width: 880px; margin: 0 auto; padding: 24px 16px 80px; }   /* width: a grid item with auto margins would shrink to its content */
@media (min-width: 900px) { main.app { padding: 36px 40px 96px; } body.signed-in .frame.with-side main.app { padding-bottom: 96px; } }
.page-head { margin-bottom: 22px; } .page-head h1 { margin: 0 0 4px; font-size: 26px; } .page-head .sub { margin: 0; }
p.back { margin: 0 0 10px; font-size: 14px; } p.back a { color: var(--muted); text-decoration: none; } p.back a::before { content: "‹ "; }
.panel.waiting { border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: var(--amber-soft); } .panel.waiting .list .item { border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.panel.empty p { margin: 0; } h2.day { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 4px; } h2.day:first-child { margin-top: 0; }
h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.2; } h1, h2 { text-shadow: 0 1px 0 var(--text-lift); }
.sub { color: var(--muted); margin: 0 0 18px; }
.flash { border-radius: 5px; padding: 9px 14px; margin-bottom: 14px; font-size: 14px; background: linear-gradient(hsl(215, 75%, 95%), hsl(215, 60%, 85%)); color: hsl(220, 60%, 25%); border: 1px solid hsl(215 50% 45% / .4); text-shadow: 0 1px 0 var(--text-lift); }
.flash.alert { background: linear-gradient(hsl(5, 80%, 95%), hsl(5, 70%, 85%)); color: hsl(5, 60%, 30%); border-color: hsl(5 55% 40% / .4); }
@media (prefers-color-scheme: dark) { .flash { background: linear-gradient(hsl(220, 40%, 30%), hsl(220, 45%, 20%)); color: hsl(215, 80%, 85%); border-color: hsl(215 60% 60% / .4); } .flash.alert { background: linear-gradient(hsl(5, 35%, 30%), hsl(5, 40%, 20%)); color: hsl(5, 80%, 80%); border-color: hsl(5 60% 55% / .4); } }
.panel { background: var(--card); border: 1px solid var(--hair); border-radius: 6px; box-shadow: 0 1px 3px hsl(0 0% 0% / .1); padding: 16px 18px; margin-bottom: 14px; }
.panel h2 { font-size: 15px; margin: 0 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.why { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
ul.effects { margin: 6px 0 0; padding-left: 18px; } ul.effects li { margin: 4px 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
/* One height for every control (Zhenyi, 23 Oct): Mac OS X's 28px with a mouse, 36px under a finger. Buttons, segmented
   controls, pop-ups and one-line fields all use it; a button whose words wrap grows instead of clipping. */
:root { --ctl-h: 28px; } @media (pointer: coarse) { :root { --ctl-h: 36px; } }
.btn { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--edge); background: linear-gradient(var(--lift), var(--sink)); color: var(--ink); border-radius: 5px; padding: 3px 14px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--ctl-h); line-height: 1.25; box-sizing: border-box; vertical-align: middle;
  text-shadow: 0 1px 0 var(--text-lift); box-shadow: 0 1px 1px hsl(0 0% 0% / .08), inset 0 1px 0 var(--sheen); }
.btn:hover { background: linear-gradient(var(--lift), var(--bar-bottom)); } .btn:active { background: linear-gradient(var(--sink), var(--lift)); box-shadow: inset 0 1px 2px hsl(0 0% 0% / .2); }
.btn:focus-visible, .input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--go), 0 0 4px 2px var(--glow); }
.btn.go { background: linear-gradient(var(--blue-top), var(--go) 55%, var(--blue-bottom)); border-color: var(--edge-blue); color: hsl(0, 0%, 100%); text-shadow: 0 -1px 0 var(--press); box-shadow: 0 1px 1px hsl(0 0% 0% / .12), inset 0 1px 0 hsl(0 0% 100% / .3); }
.btn.go:hover { background: linear-gradient(var(--blue-top), var(--go)); } .btn.go:active { background: linear-gradient(var(--blue-bottom), var(--go)); }
.questions .q { padding: 12px 0; border-top: 1px solid var(--rule); } .questions .ph + .q { border-top: 0; padding-top: 4px; }
.questions .qt { margin: 0 0 4px; font-weight: 650; } .questions .answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.questions .answers form { margin: 0; } .questions > .button_to { margin-top: 12px; }
.btn.ghost { background: transparent; color: var(--ink2); box-shadow: none; text-shadow: none; } .btn.ghost:hover { background: hsl(0 0% 0% / .05); }   /* Lion's recessed button: the outline, no gradient */
.draws { width: 100%; border-collapse: collapse; font-size: 14px; } .draws td { padding: 6px 8px 6px 0; vertical-align: top; border-top: 1px solid var(--rule); }
.memory-add { display: grid; grid-template-columns: 1fr; gap: 8px; } @media (min-width: 700px) { .memory-add { grid-template-columns: 1fr 13rem auto; } }
.tell-greenlit form { display: grid; gap: 8px; } .tell-greenlit textarea { resize: vertical; } .tell-greenlit .plan { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); } .tell-greenlit .plan .row { display: flex; gap: 8px; align-items: center; }
/* A fact, who said it on the right, Correct beside it (the Desk design). */
.memories .mem { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 9px 0; border-top: 1px solid var(--rule); } .memories h2 + .mem, .memories h3 + .mem { border-top: 0; }
.memories .mem p { margin: 0; } .memories .mem .src { white-space: nowrap; text-align: right; }
.memories .fix { grid-column: 1 / -1; } .memories .fix form { margin: 8px 0; } .memories .fix summary { cursor: pointer; color: var(--muted); list-style: none; display: inline; } .memories .fix summary::-webkit-details-marker { display: none; }
.memories .fix:not([open]) summary:hover { color: var(--accent); }
.tidy .row { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .tidy p { margin: 0 0 8px; }
.memories.noticed > summary { color: inherit; } .memories.noticed > summary h2 { display: inline; margin: 0; }
.memories.noticed h3 { margin: 18px 0 2px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .memories.noticed h3 + .mem { border-top: 0; }
.input { font: inherit; border: 1px solid var(--edge); border-radius: 4px; padding: 4px 8px; box-sizing: border-box; background: var(--card); color: var(--ink); width: 100%; box-shadow: inset 0 2px 0 hsl(0 0% 0% / .06); }
@media (prefers-color-scheme: dark) { .input { background: var(--paper); box-shadow: inset 0 2px 2px hsl(0 0% 0% / .3), 0 1px 0 hsl(0 0% 100% / .05); } }
label.field { display: grid; gap: 4px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.list .item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: inherit; text-decoration: none; }
.list .item:last-child { border-bottom: 0; } .list .d { color: var(--muted); font-size: 13px; }
.tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; align-self: start; text-shadow: 0 1px 0 var(--text-lift); }
.tag.go { background: linear-gradient(hsl(215, 75%, 95%), hsl(215, 65%, 85%)); color: hsl(220, 60%, 30%); box-shadow: inset 0 0 0 1px hsl(215 50% 45% / .5); }
.tag.wait { background: linear-gradient(hsl(45, 90%, 90%), hsl(40, 80%, 80%)); color: hsl(35, 70%, 25%); box-shadow: inset 0 0 0 1px hsl(35 60% 40% / .45); }
.tag.you { background: linear-gradient(var(--lift), var(--sink)); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--edge); }
.tag.live { background: linear-gradient(hsl(140, 50%, 90%), hsl(140, 40%, 80%)); color: hsl(140, 60%, 25%); box-shadow: inset 0 0 0 1px hsl(140 45% 35% / .45); }   /* Live is the one green besides the logo */
@media (prefers-color-scheme: dark) {
  .tag.go { background: linear-gradient(hsl(220, 40%, 30%), hsl(220, 45%, 20%)); color: hsl(215, 80%, 85%); box-shadow: inset 0 0 0 1px hsl(215 60% 60% / .4); }
  .tag.wait { background: linear-gradient(hsl(40, 40%, 30%), hsl(40, 45%, 20%)); color: hsl(45, 80%, 75%); box-shadow: inset 0 0 0 1px hsl(40 60% 50% / .4); }
  .tag.live { background: linear-gradient(hsl(140, 30%, 25%), hsl(140, 35%, 20%)); color: hsl(140, 60%, 75%); box-shadow: inset 0 0 0 1px hsl(140 50% 50% / .4); }
}
.auth { max-width: 380px; margin: 12vh auto 0; }
/* Workspace page */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.row.ops { margin: 0 0 14px; } .row form { margin: 0; }
.ph { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; } .ph h2 { margin: 0; }
label.check { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
/* Settings: segmented choices, a money field. */
.field { display: grid; gap: 6px; margin-top: 16px; font-size: 14px; } .field > span:first-child { font-weight: 600; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: linear-gradient(var(--lift), var(--sink)); border: 1px solid var(--edge); border-radius: 5px; overflow: hidden; box-shadow: 0 1px 1px hsl(0 0% 0% / .08); max-width: 460px; }
.seg label + label { border-left: 1px solid var(--edge); }
.seg label { position: relative; } .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink); text-shadow: 0 1px 0 var(--text-lift); white-space: nowrap; }
.seg input:checked + span { background: linear-gradient(var(--blue-top), var(--go) 55%, var(--blue-bottom)); color: hsl(0, 0%, 100%); text-shadow: 0 -1px 0 var(--press); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .25); }
.seg input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--glow); }
@media (max-width: 599px) { .seg { max-width: 100%; } .seg span { white-space: normal; line-height: 1.25; padding: 7px 8px; height: 100%; display: grid; place-items: center; } }
.money-in { display: flex; align-items: center; gap: 8px; max-width: 260px; } .money-in > span { color: var(--muted); font-weight: 600; }
.field small { font-size: 13px; }
/* A choice's line describes what's picked now, not what was saved (handover, 22 Oct). */
.field .hint { display: none; }
.field:has(input[value="ask_first"]:checked) .hint[data-for="ask_first"], .field:has(input[value="act_then_tell"]:checked) .hint[data-for="act_then_tell"],
.field:has(input[value="own"]:checked) .hint[data-for="own"], .field:has(input[value="all"]:checked) .hint[data-for="all"],
.field:has(input[value="1"]:checked) .hint[data-for="1"], .field:has(input[value="0"]:checked) .hint[data-for="0"] { display: block; }
/* Asset bank */
.upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .upload input[type=file] { display: none; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.asset { border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; background: var(--card); font-size: 13px; box-shadow: 0 1px 3px hsl(0 0% 0% / .1); }
.asset .pic { position: relative; aspect-ratio: 1; background: var(--paper); } .asset .pic img, .asset .pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset .kind { position: absolute; right: 8px; bottom: 8px; background: hsl(220 25% 10% / .6); color: hsl(0, 0%, 100%); border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 11px; }
.asset .cap { padding: 8px 10px 10px; } .asset .cap b.good { color: var(--go); } .asset .cap b.fair { color: var(--amber); } .asset .cap b.poor { color: var(--stop); } .asset .txt { margin: 4px 0 0; color: var(--muted); line-height: 1.35; }
.asset details { margin-top: 6px; } .asset summary { cursor: pointer; color: var(--accent); list-style: none; } .asset summary::-webkit-details-marker { display: none; }
.asset details .row { margin-top: 6px; }
.feed-card { max-width: 420px; border: 1px solid var(--rule2); border-radius: 10px; overflow: hidden; background: var(--card); margin: 12px 0 8px; }
.feed-card .words { white-space: pre-line; font-size: 14px; margin: 0; padding: 10px 12px; }
.feed-card .pic { display: block; width: 100%; height: auto; }
.feed-card .swipe { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 12px; scroll-snap-type: x mandatory; }   /* a carousel's cards */
.feed-card .swipe figure { flex: 0 0 72%; margin: 0; border: 1px solid var(--rule2); border-radius: 8px; overflow: hidden; scroll-snap-align: start; }
.feed-card .swipe .pic { aspect-ratio: 1; object-fit: cover; } .feed-card .swipe figcaption { padding: 6px 8px; font-size: 13px; display: grid; } .feed-card .swipe .site { color: var(--muted); font-size: 12px; }
.feed-card .bar { position: static; height: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--paper); border-top: 1px solid var(--rule); }
.feed-card .bar > span:first-child { display: grid; gap: 2px; line-height: 1.3; }   /* the site and the headline, apart (23 Oct: they touched on a phone) */
.feed-card .bar .site { display: block; font-size: 11px; color: var(--muted); letter-spacing: .02em; } .feed-card .bar b { font-size: 14px; }
.feed-card .cta { flex: none; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 6px; background: var(--rule); }
/* Ads page: Ads Manager without the labyrinth. Dense like a trading screen on a computer, a card per campaign on a phone. */
.tag.stop { background: linear-gradient(hsl(5, 80%, 95%), hsl(5, 70%, 85%)); color: hsl(5, 60%, 35%); box-shadow: inset 0 0 0 1px hsl(5 55% 40% / .45); } .bad { color: var(--stop); }
@media (prefers-color-scheme: dark) { .tag.stop { background: linear-gradient(hsl(5, 35%, 30%), hsl(5, 40%, 20%)); color: hsl(5, 80%, 80%); box-shadow: inset 0 0 0 1px hsl(5 60% 55% / .4); } }
.btn.sm { padding: 3px 12px; } .btn.danger { color: var(--stop); border-color: color-mix(in srgb, var(--stop) 40%, var(--rule2)); }
.row-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.head-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .head-acts form { margin: 0; }
/* The whole control carries the buttons' 1px top highlight, so a segment that isn't chosen has it too (Zhenyi, 23 Oct). */
.seg-links { display: inline-flex; background: linear-gradient(var(--lift), var(--sink)); border: 1px solid var(--edge); border-radius: 5px; overflow: hidden; box-shadow: 0 1px 1px hsl(0 0% 0% / .08), inset 0 1px 0 var(--sheen); }
.seg-links a { display: inline-flex; align-items: center; min-height: calc(var(--ctl-h) - 2px); box-sizing: border-box; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); text-shadow: 0 1px 0 var(--text-lift); text-decoration: none; white-space: nowrap; } .seg-links a + a { border-left: 1px solid var(--edge); }
.seg-links a.on { background: linear-gradient(var(--blue-top), var(--go) 55%, var(--blue-bottom)); color: hsl(0, 0%, 100%); text-shadow: 0 -1px 0 var(--press); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .25); }
/* Chosen days (23 Oct): a button beside the windows that opens two date fields; lit like a window when they're in use. */
.days-pick > summary.on { background: linear-gradient(var(--blue-top), var(--go) 55%, var(--blue-bottom)); color: hsl(0, 0%, 100%); text-shadow: 0 -1px 0 var(--press); border-color: var(--press); }
.days-pick .pop { width: 220px; } .days-pick .pop nav a { margin: 0 -12px; } .days-pick .pop hr { margin: 6px -12px 4px; }
/* An iPhone's date field keeps its own width and grid items won't shrink below it (23 Oct: wider than the pop-up). */
.days-pick .pop form, .days-pick .pop label { min-width: 0; }
.days-pick .pop input[type=date] { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; text-align: left; }
.days-pick .pop input[type=date]::-webkit-date-and-time-value { text-align: left; }
.windows { display: contents; } .phone-only { display: none; }
.windows.compact .wide-only { display: none; } .windows.compact .phone-only { display: revert; }
@media (max-width: 599px) { .wide-only { display: none; } .phone-only { display: revert; } .days-pick .pop { left: 0; right: auto; } .windows.compact .days-pick .pop { left: auto; right: 0; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--hair); border-radius: 6px; box-shadow: 0 1px 3px hsl(0 0% 0% / .1); margin-bottom: 8px; }
.tiles > div { padding: 12px 16px; display: grid; gap: 2px; border-left: 1px solid var(--rule); } .tiles > div:nth-child(odd) { border-left: 0; }
.tiles > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles > div:nth-child(odd) { border-left: 1px solid var(--rule); } .tiles > div:first-child { border-left: 0; } .tiles > div:nth-child(n+3) { border-top: 0; } }
.tiles span { font-size: 13px; color: var(--muted); } .tiles b { font-size: 22px; letter-spacing: -.01em; } .tiles small { font-size: 12px; color: var(--muted); }
p.month { margin: 0 0 16px; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink2); text-shadow: 0 1px 0 var(--text-lift); text-decoration: none; white-space: nowrap; } .tabs a:hover { background: hsl(0 0% 0% / .06); }
.tabs a.on { color: hsl(0, 0%, 100%); background: hsl(220 10% 30% / .55); text-shadow: 0 -1px 0 hsl(0 0% 0% / .35); box-shadow: inset 0 1px 2px hsl(0 0% 0% / .45), 0 1px 0 var(--sheen); } .tabs .n { font-weight: 500; font-size: 12px; color: inherit; opacity: .75; }
.camp-table { padding: 12px 0 4px; } .camp-table .ph { padding: 0 16px; }
.camp-row { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 10px; padding: 12px 16px; border-top: 1px solid var(--rule); font-size: 14px; align-items: center; }
/* The whole row opens the ad's own page (22 Oct: nobody found that the name was a link); its buttons sit above that. */
.camp-row:not(.camp-headrow):hover { background: var(--paper); } .camp-row .camp-link::after { content: ""; position: absolute; inset: 0; }
.camp-row .acts { position: relative; z-index: 1; } .camp-row .acts:has(details[open]) { z-index: 20; }   /* an open menu above the rows below it (22 Oct) */ .camp-row .chev { margin-left: auto; padding-left: 10px; color: var(--faint); font-size: 20px; line-height: 1; }
.camp-row .lock { white-space: nowrap; padding-right: 4px; }
.camp-row > span[data-label] { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; min-width: 0; } .camp-row > span[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
.camp-row .spark-cell { color: var(--go); }
.camp-headrow { display: none; }
.camp-name { grid-column: 1 / -1; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.camp-name > span { display: grid; gap: 1px; min-width: 0; } .camp-name b { font-weight: 600; } .camp-name .raw { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-row .th { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; background: var(--paper); display: block; box-shadow: inset 0 0 0 1px var(--rule); }
.sub .stale { color: var(--amber); }   /* Meta said wait: the numbers are the last reading's */
.camp-row .zero { color: var(--amber); font-weight: 600; } .camp-row .zero::before { font-weight: 400; }
.acts { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .acts form { margin: 0; }
.act { position: relative; } .act > summary { list-style: none; } .act > summary::-webkit-details-marker { display: none; }
.act .pop { right: 0; width: 240px; padding: 12px; display: grid; gap: 8px; } .act .pop form { display: grid; gap: 8px; } .act .pop label { display: grid; gap: 4px; }
.act .pop .money-in { display: flex; gap: 8px; align-items: center; max-width: none; } .act .pop .money-in span { color: var(--muted); font-size: 13px; white-space: nowrap; } .act .pop .money-in .input { width: 90px; flex: none; }
@media (min-width: 1100px) {
  main.app.wide { max-width: 1240px; }
  .camp-row { grid-template-columns: minmax(150px, 2.4fr) 88px 88px 76px 76px 62px 80px 66px 150px; gap: 8px; padding: 9px 16px; }   /* every row the same columns; 150px fits Pause, ⋯ and ›, which spilled over the 7-day line at 116px */
  .camp-row > span[data-label] { grid-column: auto; display: block; } .camp-row > span[data-label]::before { content: none; }
  .camp-headrow { display: grid; font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 6px; padding-bottom: 6px; }
  .camp-name { grid-column: auto; } .acts { grid-column: auto; justify-content: flex-end; flex-wrap: nowrap; } .r { text-align: right; }
}
.camp { padding: 14px 0; border-top: 1px solid var(--rule); } .ph + .camp { border-top: 0; padding-top: 4px; }
.camp .d { color: var(--muted); font-size: 13px; }
.camp .test { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--paper); }

.draw-about { display: flex; gap: 8px; margin-top: 8px; } .draw-about .input { flex: 1; min-width: 0; }
.post h2 { font-size: 16px; } .post-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } .post-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
pre.caption { white-space: pre-wrap; word-break: break-word; font: inherit; margin: 8px 0; padding: 10px 12px; background: var(--paper); border-radius: 8px; }
/* An ad's own page: what it is at the top, its versions as people see them, the facts down the side. */
.camp-link { color: inherit; text-decoration: none; } .camp-link:hover b { text-decoration: underline; }
.camp-head { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start; margin-bottom: 18px; }
.camp-head .th { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; display: block; box-shadow: inset 0 0 0 1px var(--rule); }
.camp-head h1 { margin: 0; } .camp-head .raw { margin: 2px 0 0; font-size: 12px; color: var(--muted); } .camp-head .meta-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.camp-head .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; } .camp-head .acts form { margin: 0; }
.camp-grid { display: grid; gap: 14px; } .camp-main, .camp-side { min-width: 0; }
.versions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.version .vh { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 14px; } .version .feed-card { margin: 8px 0; max-width: none; }
.version.off .feed-card { opacity: .55; } .version form { margin: 4px 0 0; }
.tiles.flat { border: 0; box-shadow: none; background: transparent; margin: 4px 0 12px; } .tiles.flat > div { padding: 6px 12px; }
.test-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: var(--card); font-size: 14px; margin: 6px 0 8px; }
.test-table th { text-align: left; font-size: 12px; color: var(--ink2); font-weight: 600; background: linear-gradient(var(--bar-top), var(--bar-bottom)); text-shadow: 0 1px 0 var(--text-lift); } .test-table th + th { border-left: 1px solid var(--hair); }
.test-table tr:nth-child(odd) td { background: hsl(215 30% 50% / .05); }
.test-table td, .test-table th { padding: 6px 10px; border-top: 1px solid var(--rule); } .test-table tr:first-child th { border-top: 0; border-bottom: 1px solid var(--hair); } .test-table tr:nth-child(2) td { border-top: 0; }
.facts dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: 8px 12px; margin: 8px 0 0; font-size: 14px; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }
.origin p { margin: 4px 0; } .opt-line { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--rule); margin-top: 8px; font-size: 14px; opacity: .6; }
.opt-line.chosen { opacity: 1; border-color: var(--go); background: var(--go-soft); } .opt-line .small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .opt-line.chosen .small { color: var(--go); }
.history ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
@media (min-width: 1100px) { .camp-head { grid-template-columns: auto 1fr auto; } .camp-head .acts { grid-column: auto; } .camp-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
/* Ask Greenlit: what someone asked, Greenlit's answer, the cards it drew, and its steps in monospace like a working session. */
.ask-box .row { margin-top: 10px; } .ask-box textarea { resize: vertical; }
.asked .who { margin: 0 0 4px; } .asked .words { margin: 0 0 10px; font-weight: 600; white-space: pre-line; }
.asked .answer { border-left: 3px solid var(--go); padding: 2px 0 2px 12px; margin: 8px 0; } .asked .answer p { margin: 4px 0; } .asked .answer .who { color: var(--go); }
.asked .thinking::before { content: "● "; color: var(--go); animation: gl-pulse 1.2s ease-in-out infinite; } @keyframes gl-pulse { 50% { opacity: .25; } }
.ask-card { display: grid; gap: 2px; padding: 10px 12px; margin-top: 8px; border: 1px solid var(--rule2); border-radius: 10px; color: inherit; text-decoration: none; background: var(--paper); }
.ask-card:hover { border-color: var(--go); }
.steps { margin-top: 10px; } .steps summary { cursor: pointer; } .steps ol { margin: 6px 0 0; padding-left: 22px; font-size: 12px; color: var(--muted); display: grid; gap: 3px; } .steps b { color: var(--ink); font-weight: 600; }
/* The Inbox: each waiting card in full, money, questions and posts each with its own colour along the top; options side
   by side, greenlit right there. Below, what was decided and what it was chosen over. */
.inbox-card { padding-top: 0; } .inbox-card > .ic-head { margin: 0 -18px 12px; padding: 12px 18px 10px; background: linear-gradient(var(--bar-top), var(--bar-bottom)); border-bottom: 1px solid var(--hair); border-radius: 5px 5px 0 0; box-shadow: inset 3px 0 0 var(--go); }
.inbox-card.question > .ic-head { box-shadow: inset 3px 0 0 hsl(265, 45%, 55%); } .inbox-card.posts > .ic-head { box-shadow: inset 3px 0 0 var(--amber); }
.ic-head { display: flex; gap: 16px; align-items: flex-start; } .ic-head .grow { flex: 1; min-width: 0; }
.ic-head .kind { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--go); } .question .ic-head .kind { color: hsl(265, 45%, 55%); } .posts .ic-head .kind { color: var(--amber); }
.caveats { font-size: 14px; margin: 10px 0 12px; } .caveats ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); } .caveats li { margin: 2px 0; }
.ic-head h2 { font-size: 18px; margin: 0; } .ic-head h2 a { color: inherit; text-decoration: none; } .ic-head .why { margin: 4px 0 0; }
.ic-head .when { margin: 0; text-align: right; white-space: nowrap; }
.opt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 12px 0; }
.opt-col { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--hair); border-radius: 6px; background: linear-gradient(var(--card), var(--bar-top)); box-shadow: inset 0 1px 0 var(--sheen); }
.opt-col.rec { border-color: var(--go); box-shadow: 0 0 0 1px var(--go), 0 0 5px 1px var(--glow); }
.opt-col .oh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 0; } .opt-col .oh em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--go); }
.letter { flex: none; width: 20px; height: 20px; border-radius: 4px; display: inline-grid; place-items: center; background: linear-gradient(var(--lift), var(--sink)); border: 1px solid var(--edge); color: var(--ink); text-shadow: 0 1px 0 var(--text-lift); font-size: 12px; font-weight: 700; }   /* a key cap */
.opt-col .feed-card { margin: 4px 0; background: var(--card); } .opt-col .of { margin-top: auto; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 6px; } .opt-col .of form { margin: 0; }
.tell-row { display: flex; gap: 8px; margin: 4px 0 6px; } .tell-row .input { flex: 1; min-width: 0; }
/* Words in a box that grows with them, Send under its right end (24 Oct, Zhenyi: a one-line field for a long answer). */
.tell-row:has(textarea) { flex-wrap: wrap; justify-content: flex-end; } .tell-row textarea.input { flex-basis: 100%; field-sizing: content; min-height: 3.2em; max-height: 50vh; resize: vertical; line-height: 1.4; }
.inbox-card .answers { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; } .inbox-card .answers form { margin: 0; }
.decided .drow { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); } .decided .ph + .drow { border-top: 0; }
.decided .mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--rule); color: var(--muted); } .decided .mark.greenlit { background: linear-gradient(var(--blue-top), var(--go)); color: hsl(0, 0%, 100%); }
.decided .q { color: var(--ink); text-decoration: none; font-weight: 600; } .decided .q:hover { text-decoration: underline; } .decided p { margin: 2px 0 0; }
.decided .lbl { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .decided .lbl.go { color: var(--go); }
.decided .over { color: var(--faint); margin-left: 6px; } .decided .when { margin: 0; text-align: right; }
/* Home: the main number against the window before, four weeks day by day, then what needs you, what's running, the
   month's money and what's next. */
.hero-top { display: grid; gap: 12px; } .main-num { display: grid; gap: 2px; align-content: start; }
.main-num > b { font-size: 44px; line-height: 1.05; letter-spacing: -.02em; } .delta { font-size: 14px; font-weight: 700; } .delta.good { color: var(--go); } .delta.bad { color: var(--stop); }
.hero .tiles.flat { margin: 0; align-self: start; }
@media (min-width: 900px) { .hero-top { grid-template-columns: minmax(220px, 1fr) 2fr; } }
/* The four-week chart on Home (22 Oct): a money axis in the gutter, hairline grid, thin bars with a 2px gap, the results
   in their own row with their own scale, the chosen window in green; a day's numbers in a tip beside it, and as a table. */
.daychart { position: relative; margin: 16px 0 0; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.daychart:focus-visible { box-shadow: 0 0 0 2px var(--go-soft); border-radius: 8px; }
.daychart figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.daychart .key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--go); margin-right: 6px; }
/* Home (23 Oct): each day's bar split, Greenlit's own campaigns below in the window's blue, everyone else's above in a
   paler blue; outside the window, two greys. */
.daychart .key.other { background: hsl(220 65% 55% / .3); }
.daychart.split .dc-plot .dc-day i { position: relative; overflow: hidden; background: var(--rule); }
.daychart.split .dc-plot .dc-day.in i { background: hsl(220 65% 55% / .3); }
.daychart.split .dc-plot .dc-day i .mine { position: absolute; left: 0; right: 0; bottom: 0; display: block; background: var(--rule2); }
.daychart.split .dc-plot .dc-day.in i .mine { background: linear-gradient(var(--blue-top), var(--go)); }
.daychart figcaption span + span { margin-left: auto; } .daychart figcaption span + span + span { margin-left: 0; }
@media (max-width: 599px) { .daychart.split figcaption { flex-wrap: wrap; row-gap: 4px; } .daychart.split figcaption span:first-child { flex-basis: 100%; } .daychart.split figcaption span + span { margin-left: 0; } }
.dc-plot, .dc-lane, .dc-x { position: relative; margin-left: 48px; }
.dc-plot { height: 128px; } .dc-lane { height: 28px; }
.dc-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--rule); } .dc-grid.zero { border-color: var(--rule2); }
.dc-grid.budget { z-index: 1; border-color: var(--muted); } .dc-grid.budget em { position: absolute; right: 0; bottom: 3px; padding: 0 4px; font-size: 11px; font-style: normal; color: var(--muted); background: var(--card); border-radius: 4px; }
.dc-grid b { position: absolute; right: calc(100% + 8px); top: 0; transform: translateY(-50%); font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.dc-cols { position: absolute; inset: 0; display: grid; }   /* a column a day, set on the page */
.dc-day { display: flex; align-items: flex-end; justify-content: center; height: 100%; padding: 0 1px; }
.dc-day i { display: block; width: 100%; max-width: 24px; border-radius: 3px 3px 0 0; background: var(--rule2); } .dc-day.in i { background: linear-gradient(var(--blue-top), var(--go)); }
.dc-lane .dc-day i { border-radius: 2px 2px 0 0; } .dc-lane .dc-day.in i { background: var(--ink2); }
.dc-day.on i { box-shadow: 0 0 0 1px var(--card), 0 0 0 2.5px var(--ink); } .dc-day.none i { box-shadow: none; }   /* the day being read: a ring, not a block that reads as a bar */
.dc-name { margin: 10px 0 4px; }
.dc-x { display: grid; margin-top: 6px; } .dc-x span { grid-row: 1; justify-self: center; white-space: nowrap; }   /* one row, each date centred under its day */
.dc-tip { position: absolute; top: 34px; z-index: 2; display: grid; gap: 1px; padding: 7px 10px; background: var(--card); border: 1px solid var(--rule2); border-radius: 8px; box-shadow: 0 6px 18px hsl(220 25% 10% / .12); font-size: 13px; white-space: nowrap; pointer-events: none; }
.dc-tip b { font-size: 15px; } .dc-tip[hidden] { display: none; }
.dc-table { margin-top: 10px; } .dc-table summary { cursor: pointer; color: var(--muted); }
.dc-table table { width: 100%; max-width: 420px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; margin-top: 6px; } .dc-table th, .dc-table td { padding: 3px 10px; border-bottom: 1px solid var(--rule); text-align: left; } .dc-table .num { text-align: right; }
.dc-table th { background: linear-gradient(var(--bar-top), var(--bar-bottom)); border-bottom-color: var(--hair); text-shadow: 0 1px 0 var(--text-lift); } .dc-table tr:last-child td { border-bottom: 0; }
.home-grid { display: grid; gap: 14px; align-items: start; } .home-grid > * { min-width: 0; }
@media (min-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
.ph .push { margin-left: auto; }
.need { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; } .needs .ph + .need { border-top: 0; }
.need .ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--go); margin-top: 2px; } .need.question .ring { border-color: var(--accent); border-style: dashed; } .need.posts .ring { border-color: var(--amber); } .need.problem .ring { border-color: var(--stop); }
.need b { display: block; font-weight: 600; } .need:hover b { text-decoration: underline; }
.run { display: grid; grid-template-columns: 40px 1fr auto 70px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); color: inherit; text-decoration: none; } .running .ph + .run { border-top: 0; }
.run .th { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; background: var(--paper); display: block; box-shadow: inset 0 0 0 1px var(--rule); }
.run .nm { display: grid; min-width: 0; } .run .nm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .run:hover .nm b { text-decoration: underline; } .run .spark-cell { color: var(--go); } .running .more { margin: 8px 0 0; }
.money .big { margin: 2px 0 8px; font-size: 22px; }
.last-week .headline { margin: 0 0 4px; font-size: 17px; font-weight: 650; } .last-week p:last-child { margin-bottom: 0; }   /* Monday's read of the week (the email was cut, 23 Oct) */ .money p.small { margin: 8px 0 0; }
.when-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14px; } .coming .ph + .when-row { border-top: 0; }
.thumbs { display: flex; gap: 6px; margin-top: 6px; } .thumbs img { display: block; width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.planned { margin: 4px 0 0; color: var(--muted); } .planned .thumbs { margin-top: 4px; }
.plans .plan-row .thumbs img { flex: 0 1 96px; min-width: 0; width: auto; height: auto; aspect-ratio: 1; }   /* three in a row shrink to fit a phone (2 Nov) */ .plans .plan-row { padding: 12px 0; }
.plans .plan-row .missed, .plans .plan-row .on-card { display: block; margin-top: 6px; } .plans .plan-row .missed { color: var(--amber); } .plans .plan-row form { margin-top: 6px; }   /* where a plan stands (2 Nov) */
.cal { display: grid; justify-items: center; line-height: 1.1; } .cal small { font-size: 10px; font-weight: 800; color: var(--stop); letter-spacing: .04em; } .cal b { font-size: 18px; }
.thinking-note::before { content: "● "; color: var(--go); animation: gl-pulse 1.2s ease-in-out infinite; }
.inbox-card.done { border-top-width: 3px; } .inbox-card.done .kind { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--muted); } .inbox-card.done h2 { font-size: 16px; margin: 0 0 6px; }
.inbox-card.done h2 a { color: inherit; } .inbox-card.done p { margin: 0; } .mark-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(var(--blue-top), var(--go)); color: hsl(0, 0%, 100%); font-size: 11px; }
/* A select drawn like the other inputs: as wide as its choices, the same height, its own arrow (Safari ignored the
   padding and stretched it across the page, 22 Oct). */
/* The wrapper draws the blue end, so it is exactly the select's height: the select is a block (on a line of text the
   wrapper ran taller), and the wrapper never stretches to a taller neighbour in a grid row, such as Safari's date
   field (23 Oct: the blue overshot the white on the Posts page). */
.select { position: relative; display: inline-block; height: max-content; max-width: 460px; min-width: 240px; }
.select select.input { appearance: none; -webkit-appearance: none; display: block; width: 100%; padding-right: 40px; cursor: pointer; line-height: 1.4; font-weight: 600; background: linear-gradient(var(--lift), var(--sink)); text-shadow: 0 1px 0 var(--text-lift); box-shadow: 0 1px 1px hsl(0 0% 0% / .08), inset 0 1px 0 var(--sheen); }
.select::before { content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 24px; border-left: 1px solid var(--edge-blue); border-radius: 0 3px 3px 0; background: linear-gradient(var(--blue-top), var(--go) 55%, var(--blue-bottom)); pointer-events: none; }
.select::after { content: ""; position: absolute; right: 9px; top: 50%; width: 8px; height: 12px; transform: translateY(-50%); pointer-events: none;
  background: conic-gradient(from 150deg at 50% 0, hsl(0, 0%, 100%) 60deg, transparent 0) top / 8px 5px no-repeat, conic-gradient(from -30deg at 50% 100%, hsl(0, 0%, 100%) 60deg, transparent 0) bottom / 8px 5px no-repeat; }
label.field > span:first-child { color: var(--ink); font-size: 14px; font-weight: 600; }
.money-in .input { max-width: 200px; }
/* Phones (22 Oct check): the status tag in the bar's middle, the chart a little shorter, a running ad's name given
   the room its little line took, and a card's date under its question. */
.bar .phone-state { align-self: center; }
@media (max-width: 599px) {
  .dc-plot { height: 104px; } .dc-plot, .dc-lane, .dc-x { margin-left: 40px; } .dc-day i { border-radius: 2px 2px 0 0; }
  .run { grid-template-columns: 40px 1fr auto; } .run .spark-cell { display: none; }
  .ic-head { flex-direction: column; gap: 4px; } .ic-head .when { text-align: left; white-space: normal; } .ic-head .when br { display: none; }
}
/* Every business (the operator's front page): one panel each, with its status, what's waiting, its main number and its mornings. */
.biz-card .ph { align-items: center; } .biz-card .badge { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(var(--blue-top), var(--blue-bottom)); color: hsl(0, 0%, 100%); text-shadow: 0 -1px 0 var(--press); font-size: 11px; font-weight: 800; }
.biz-card h2 a { color: inherit; text-decoration: none; } .biz-card h2 a:hover { text-decoration: underline; }
.biz-ops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; } .biz-ops form { margin: 0; } .biz-ops .draw-about { flex: 1; min-width: 260px; margin: 0; }
.mornings { margin-top: 10px; } .mornings summary { cursor: pointer; } .mornings .draws { margin-top: 6px; }
/* A question answered in your own words, in the card itself (22 Oct: the link opened the card's own page). */
.own-words { flex-basis: 100%; } .own-words > summary { list-style: none; display: inline-block; line-height: calc(var(--ctl-h) - 8px); }   /* a .btn, its one line centred (24 Oct: it sat at the top; Safari's summary can't be a flexbox everywhere) */ .own-words > summary::-webkit-details-marker { display: none; }
.own-words[open] > summary { display: none; } .own-words .tell-row { margin: 0; }
/* A question's answer, changed (4 Nov): a quiet line under the chosen answer, the other answers and a words box inside. */
.change-answer { margin-top: 10px; } .change-answer > summary { cursor: pointer; color: var(--muted); font-size: 14px; } .change-answer .own-words-form { display: grid; gap: 8px; margin-top: 8px; max-width: 520px; }
.used { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; } .chip { padding: 1px 8px; border-radius: 999px; font-size: 12px; text-decoration: none; white-space: nowrap; color: hsl(220, 60%, 30%); background: linear-gradient(hsl(215, 75%, 95%), hsl(215, 65%, 85%)); box-shadow: inset 0 0 0 1px hsl(215 50% 45% / .5); }
.chip.post { color: hsl(35, 70%, 25%); background: linear-gradient(hsl(45, 90%, 90%), hsl(40, 80%, 80%)); box-shadow: inset 0 0 0 1px hsl(35 60% 40% / .45); }
@media (prefers-color-scheme: dark) { .chip { color: hsl(215, 80%, 85%); background: linear-gradient(hsl(220, 40%, 30%), hsl(220, 45%, 20%)); } .chip.post { color: hsl(45, 80%, 75%); background: linear-gradient(hsl(40, 40%, 30%), hsl(40, 45%, 20%)); } }
/* People, in Settings: who can open the business. */
.people { display: grid; margin: 8px 0 12px; } .person { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); } .person:first-child { border-top: 0; }
.person .grow { flex: 1; min-width: 180px; } .person form { margin: 0; } .person-set { display: flex; gap: 10px; align-items: center; } .person-set .select { min-width: 130px; } .person-set label.check { margin: 0; }
.add-person { display: grid; gap: 8px; } @media (min-width: 760px) { .add-person { grid-template-columns: 1fr 1.4fr 150px auto; } } .add-person .select { min-width: 0; }
/* A card's own page once decided: what was chosen, the rest faded; the option tapped in an email, picked out. */
.decided-card h1 { font-size: 22px; margin: 0; } .verdict { margin: 10px 0 0; }
.opt-col.chosen { border-color: var(--go); box-shadow: inset 0 0 0 1px var(--go); background: var(--go-soft); } .opt-col.chosen .oh em { color: var(--go); }
.opt-col.faded { opacity: .55; } .opt-col.faded .oh em { color: var(--muted); }
.btn.faded { opacity: .5; cursor: default; } span.btn.go { cursor: default; }
.opt-col.picked { box-shadow: 0 0 0 3px var(--accent); }
/* Activity: one feed, a day at a time, each line with its kind, who and when, and where it leads. */
/* Every day of the feed is a title bar, as the first is, the way the Posts page has its days (23 Oct, Zhenyi: Yesterday
   and the days before read as stray text under Today's bar). */
.feed h2.day { margin: 0 -18px; padding: 8px 18px 7px; font-size: 13px; letter-spacing: .01em; background: linear-gradient(var(--bar-top), var(--bar-bottom)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); text-shadow: 0 1px 0 var(--text-lift); }
.feed h2.day:first-child { margin: -16px -18px 0; border-top: 0; border-radius: 5px 5px 0 0; }
.ev { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14px; } .feed h2 + .ev { border-top: 0; }
.ev-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--go-soft); color: var(--go); }
.ev.learned .ev-ic { background: var(--amber-soft); color: var(--amber); } .ev.morning .ev-ic { background: var(--paper); color: var(--accent); } .ev.ask .ev-ic { background: var(--paper); color: var(--ink2); }
.ev p { margin: 2px 0 0; } .ev .meta { margin-top: 3px; }
/* Library: filter and Add in the page's head; the grid on the page itself. */
.head-acts .upload { margin: 0; } .head-acts .upload input[type=file] { display: none; } .head-acts .upload .btn { cursor: pointer; }
#assets > .assets { margin-top: 4px; }
/* A photo's AI badge; its note as text, clamped, and a proper box to edit it (22 Oct: a one-line field for a long note). */
.ai-badge { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--amber-soft); color: var(--amber); }
.ai-badge.made { background: var(--stop-soft); color: var(--stop); }
.asset-no { position: absolute; left: 8px; bottom: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: hsl(220 25% 10% / .6); color: hsl(0, 0%, 100%); }
.asset .note { margin: 4px 0 0; color: var(--ink2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.linkish { font: inherit; background: none; border: 0; padding: 0; margin-top: 6px; color: var(--muted); cursor: pointer; } .linkish:hover { color: var(--accent); }
/* A sheet (22 Oct): the photo's editor over the page, so the grid doesn't move; from the bottom on a phone. */
dialog.sheet { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 1px solid var(--hair); border-radius: 6px; background: var(--card); color: var(--ink); box-shadow: 0 5px 15px hsl(0 0% 0% / .5), 0 0 0 1px hsl(0 0% 0% / .15); }
dialog.sheet::backdrop { background: hsl(220 25% 10% / .35); }
dialog.confirm { width: min(420px, calc(100vw - 32px)); } dialog.confirm .ask { padding: 18px 18px 4px; } dialog.confirm h3 { margin: 0 0 6px; font-size: 17px; } dialog.confirm p { margin: 0; line-height: 1.45; }
dialog.confirm .foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px 18px; } dialog.confirm .foot .btn { padding: 6px 16px; font-size: 15px; }
.sheet-body { display: grid; gap: 16px; padding: 18px; } .sheet-body h2 { margin: 0; font-size: 17px; }
.sheet-pic { width: 100%; max-height: 300px; object-fit: contain; border-radius: 10px; background: var(--paper); display: block; }
.sheet-fields { display: grid; gap: 4px; } .sheet-fields .field { margin-top: 8px; } .sheet-fields .select { max-width: 260px; display: block; }
.sheet-acts { align-items: center; } .sheet-acts .grow { flex: 1; } .sheet-acts form { margin: 0; }
@media (min-width: 700px) { .sheet-body { grid-template-columns: 260px 1fr; align-items: start; } .sheet-pic { max-height: 360px; } }
@media (max-width: 599px) { dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 10px 10px 0 0; max-height: 90vh; } }
/* Correcting a memory: the words, then the kind and Save in a row (22 Oct: the kind spilled over Save). */
.memory-add { grid-template-columns: 1fr auto; align-items: start; } .memory-add textarea { grid-column: 1 / -1; } .memory-add .select { min-width: 0; max-width: 260px; }
@media (min-width: 700px) { .memory-add { grid-template-columns: minmax(0, 260px) auto 1fr; } }
.memories .fix > form + form { margin-top: 0; }
/* Posts (the Desk design): a row a post, opening to its caption and the rest. */
.posts-list { padding: 0; overflow: hidden; }   /* the first day's bar is the panel's top (23 Oct: a white strip showed above it) */ .post-row { border-top: 1px solid var(--rule); } .post-row:first-child { border-top: 0; }
.post-row > summary { position: relative; list-style: none; display: grid; grid-template-columns: 56px 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px 10px 30px; cursor: pointer; }
.post-row > summary::-webkit-details-marker { display: none; } .post-row > summary:hover { background: var(--paper); } .post-row[open] > summary { background: var(--paper); }
.post-row .when { display: grid; line-height: 1.2; } .post-row .when small { font-size: 11px; color: var(--muted); }
.post-row .th { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: block; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.post-row .th.noimg { display: grid; place-items: center; color: var(--faint); font-size: 14px; }
.post-row .what { display: grid; min-width: 0; } .post-row .what b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row .post-body { padding: 4px 16px 14px 98px; } .post-row .post-body .row { margin-top: 8px; }
@media (max-width: 599px) { .post-row > summary { grid-template-columns: 48px 1fr; } .post-row .th { display: none; } .post-row > summary .tag { grid-column: 2; justify-self: start; } .post-row .post-body { padding-left: 16px; } }
.plan-week p { margin: 0; }
/* An iPhone zooms into a field whose text is under 16px (Zhenyi, 22 Oct), so on touch screens every field is 16px. */
@media (pointer: coarse) { .input, textarea, select, input:not([type=checkbox], [type=radio], [type=file], [type=submit], [type=button], [type=hidden]) { font-size: 16px; } }
/* Cutting a video in the Library (22 Oct): start and end, each with its button, then the shape. */
.cut-times { display: grid; gap: 4px; } .cut-at { display: flex; gap: 8px; align-items: center; } .cut-at .input { width: 110px; flex: none; }
.cuts p { margin: 0; } .cuts p + p { margin-top: 4px; }
.asset .pic .play { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--paper); cursor: pointer; }
/* A video's moments, as Greenlit marked them (VideoStudy): each one sets the cut and plays it. */
.moments { display: grid; gap: 4px; margin: 4px 0; max-height: 260px; overflow-y: auto; } .moments p { margin: 0 0 4px; }
.moment { display: block; text-align: left; font: inherit; font-size: 13px; line-height: 1.35; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; }
.moment:hover { background: var(--paper); } .moment .tag { margin-left: 4px; }
/* An Ask's thread (22 Oct): follow-ups under the question they follow, and a box to ask the next. */
.talk { margin-top: 14px; } .talk .turn + .turn { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); } .talk .cant { margin: 4px 0 0; }
.asked .turn.follow { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.follow-up { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; } .follow-up textarea { flex: 1; min-width: 0; resize: vertical; }
.logo-now { display: inline-block; padding: 8px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); } .logo-now img { display: block; max-height: 60px; width: auto; }
.camp-row .site { display: block; font-size: 12px; flex-basis: 100%; text-align: right; }   /* forms opened from visits, under the taps; on a phone its own line, wrapping (2 Nov: "106 visits, 15 started to book" pushed the row past the panel) */
@media (min-width: 1100px) { .camp-row .site { white-space: nowrap; } }
/* An ad's page, edited a section at a time (22 Oct): the form opens in the section, Cancel and Save under it. */
.section-form .field { margin-top: 10px; } .section-form .money-in .input { max-width: 120px; }
.form-acts { justify-content: flex-end; gap: 8px; margin-top: 14px; }
.pick { display: grid; gap: 6px; margin-top: 4px; } .pick label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--rule2); border-radius: 10px; cursor: pointer; font-weight: 400; }
.pick label:has(input:checked) { border-color: var(--go); background: var(--go-soft); } .pick input { margin-top: 3px; } .pick span { display: grid; gap: 2px; } .pick small { font-size: 13px; }
.panel.danger .fold summary h2 { color: var(--stop); }
.fold summary { cursor: pointer; } .fold summary h2 { display: inline; font-size: 15px; }
/* "Not yet" on a card (22 Oct): hold it until a day; held cards wait in their own group. */
.not-yet { margin-top: 8px; } .not-yet summary { list-style: none; display: inline-block; } .not-yet summary::-webkit-details-marker { display: none; }
.hold-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0 4px; } .hold-form label { display: grid; gap: 4px; } .hold-form .grow { flex: 1; min-width: 200px; }
.hold-note { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; } .hold-note p { margin: 0; } .hold-note form { margin: 0; }
.held .hrow { padding: 10px 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; } .held .hrow .q { font-weight: 600; color: var(--ink); text-decoration: none; }
.test-table small { display: block; font-size: 12px; color: var(--muted); } .test-table .decides { color: var(--go); }
/* Disclosure triangles (Apple's guidelines, 23 Oct): whatever opens in place shows a triangle that turns down when
   open, as in the Finder. Buttons that ask for more ("Not yet…", "In my own words…") keep their ellipsis instead. */
.fix > summary, .steps > summary, .mornings > summary, .dc-table > summary, .fold > summary, details.panel > summary { list-style: none; cursor: pointer; }
.fix > summary::-webkit-details-marker, .steps > summary::-webkit-details-marker, .mornings > summary::-webkit-details-marker, .dc-table > summary::-webkit-details-marker,
.fold > summary::-webkit-details-marker, details.panel > summary::-webkit-details-marker { display: none; }
.fix > summary::before, .steps > summary::before, .mornings > summary::before, .dc-table > summary::before, .fold > summary::before, details.panel > summary::before, .post-row > summary::before {
  content: ""; display: inline-block; width: 0; height: 0; margin: 0 7px 1px 1px; vertical-align: middle; border-style: solid; border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent var(--muted); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
.post-row > summary::before { position: absolute; left: 12px; top: 50%; margin: -4px 0 0; }
@media (max-width: 599px) { .post-row .post-body { padding-left: 30px; } }
/* Checkboxes and radios: Aristo's wells, blue when on. */
input[type=checkbox], input[type=radio] { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; flex: none; margin: 0; display: inline-grid; place-items: center; cursor: pointer;
  background: linear-gradient(var(--lift), var(--sink)); border: 1px solid var(--edge); box-shadow: 0 1px 1px hsl(0 0% 0% / .1); }
input[type=checkbox] { border-radius: 3px; } input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked, input[type=radio]:checked { background: linear-gradient(var(--blue-top), var(--go) 55%, var(--blue-bottom)); border-color: var(--edge-blue); }
input[type=checkbox]:checked::after { content: ""; width: 4px; height: 8px; border: solid hsl(0, 0%, 100%); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
input[type=radio]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: hsl(0, 0%, 100%); box-shadow: 0 -1px 0 var(--press); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--go), 0 0 4px 2px var(--glow); }
/* The file picker's own button, drawn as a push button. */
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; padding: 4px 12px; border: 1px solid var(--edge); border-radius: 5px; background: linear-gradient(var(--lift), var(--sink)); color: var(--ink); text-shadow: 0 1px 0 var(--text-lift); cursor: pointer; }
/* A panel's heading sits in a grey title bar, as a window's does. The Ads list's panels run their rows edge to edge,
   so their bar does too; a closed fold or details panel is just its bar. */
.panel > .ph:first-child, .panel > h2:first-child, .panel > .fold > summary, details.panel > summary {
  display: block; margin: -16px -18px 12px; padding: 8px 18px 7px; background: linear-gradient(var(--bar-top), var(--bar-bottom));
  border-bottom: 1px solid var(--hair); border-radius: 5px 5px 0 0; text-shadow: 0 1px 0 var(--text-lift); }
.panel > .ph:first-child { display: flex; } .panel > .ph:first-child h2, .panel > h2:first-child { font-size: 13px; letter-spacing: .01em; }
.panel > .fold:not([open]) > summary, details.panel:not([open]) > summary { margin-bottom: -16px; border-bottom: 0; border-radius: 5px; }
.panel.camp-table > .ph:first-child { margin: -12px 0 0; padding: 8px 16px 7px; }
/* The phone's navigation bar, as iOS 6 drew it: blue-grey (black in dark mode), white words with a shadow above. Inside a
   business: the logo left, the business in the middle, the account right; the logo's dot is the status (Zhenyi, 23 Oct:
   green when Live, amber in Rehearsal), its word kept for screen readers. */
@media (max-width: 899px) {
  header.bar { min-height: 44px; height: auto; padding: 4px 8px; color: hsl(0, 0%, 100%); text-shadow: 0 -1px 0 hsl(0 0% 0% / .45);
    background: linear-gradient(hsl(215, 25%, 75%), hsl(215, 25%, 60%) 50%, hsl(215, 25%, 50%)); border-bottom: 1px solid hsl(215, 30%, 30%); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .45), 0 1px 3px hsl(0 0% 0% / .25); }
  header.bar .brand { color: inherit; } header.bar .switch summary, header.bar .here { color: hsl(0, 0%, 100%); font-size: 16px; font-weight: 700; line-height: 1.2; padding: 3px 8px; border-radius: 5px; }
  header.bar .switch summary::after { border-color: hsl(0, 0%, 100%); } header.bar .switch summary:hover, header.bar .switch[open] summary { background: hsl(0 0% 0% / .12); }
  header.bar .me { background: linear-gradient(hsl(215, 25%, 55%), hsl(215, 30%, 40%)); color: hsl(0, 0%, 100%); border: 1px solid hsl(215 40% 20% / .6); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .25), 0 1px 0 hsl(0 0% 100% / .3); }
  header.bar.in-shell { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; justify-items: center; align-items: center; column-gap: 4px; }
  header.bar.in-shell .brand { grid-column: 1; grid-row: 1; margin: 0; } header.bar.in-shell .brand span { display: none; }
  header.bar.in-shell:has(.phone-state.wait) .brand i { background: hsl(40, 90%, 55%) padding-box; border-color: hsl(40, 90%, 85%); }
  header.bar.in-shell .switch, header.bar.in-shell .here { grid-column: 2; grid-row: 1; min-width: 0; max-width: 100%; }
  header.bar.in-shell .switch summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } header.bar.in-shell .switch .pop { left: 50%; transform: translateX(-50%); }
  header.bar.in-shell .account { grid-column: 3; grid-row: 1; margin: 0; } header.bar.in-shell .account .pop { right: 0; }
  header.bar .phone-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 899px) and (prefers-color-scheme: dark) {
  header.bar { background: linear-gradient(hsl(220, 5%, 25%), hsl(220, 5%, 15%) 50%, hsl(220, 5%, 5%)); border-bottom-color: hsl(0, 0%, 0%); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .15); }
  header.bar .me { background: linear-gradient(hsl(220, 5%, 35%), hsl(220, 5%, 20%)); border-color: hsl(0 0% 0% / .8); }
}
/* One-line fields and pop-ups at the controls' height; text areas keep their own. */
input.input:not([type=checkbox], [type=radio], [type=file]), select.input { min-height: var(--ctl-h); }
/* Posts by day, each editable in place (23 Oct). */
.posts-list .day-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: linear-gradient(var(--bar-top), var(--bar-bottom)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--rule); text-shadow: 0 1px 0 var(--text-lift); }
.posts-list .day-head:first-child { border-top: 0; } .posts-list .day-head + .post-row { border-top: 0; }
.posts-list .add-day { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); text-decoration: none; font-size: 16px; line-height: 1; }
.posts-list .add-day:hover { background: var(--go-soft); }
.post-row.off .what b, .post-row.off .th { opacity: .5; } .post-row.off .what b { text-decoration: line-through; }
.post-form { display: grid; gap: 10px; } .post-form label { display: grid; gap: 4px; } .post-form .select { min-width: 0; max-width: none; display: block; }
.post-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } @media (min-width: 760px) { .post-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pick-photos { border: 0; padding: 0; margin: 0; min-width: 0; } .pick-photos legend { padding: 0; margin-bottom: 4px; }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.photo-pick label { position: relative; display: block; cursor: pointer; } .photo-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; box-shadow: inset 0 0 0 1px var(--rule); }
.photo-pick input { position: absolute; top: 4px; left: 4px; margin: 0; } .photo-pick label:has(input:checked) img { outline: 3px solid var(--go); outline-offset: -3px; }
