/* The in-site notifications: the small red dot on "My card", the notices tab on a member's own
 * card, and the Freak out alert.
 *
 * Kept in its own file so the rest of the club's styles are untouched — styles.css is not edited
 * by this work. Every size below is one of the four roles the club already uses
 * (--type-title, --type-section, --type-body, --type-label), so the page follows the club's scale
 * wherever it is changed.
 *
 * Henry Humphreys, 6 October 2026, 20:10: "The masthead alert becomes a small red dot, not a word"
 * — so the word "Notifications" has gone from the masthead on every page, and at 20:12: "And the
 * list appears on a tab in the card", so the one list now lives on the member's own card.
 */

:root { --notice-red: #a3231a; }

/* ---- the masthead: a small red dot on "My card" ---- */

/* Facebook-quiet: no word and no number. The dot keeps its own space whether or not there is
   anything waiting, so the masthead never moves when it appears, and it is decorative — the count
   travels to a screen reader on "My card" itself (see the script). */
.notifications-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-left: .45rem;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--notice-red);
  visibility: hidden;
}

/* Under the words, as Henry asked for it ("a small red dot below the My card"): the masthead's dot
   is lifted out of the line and set under the link, centred, so it is never read as a separator
   between "My card" and "Sign out" — which is what it looked like beside them. It takes no room in
   the flow, so the row still never moves. */
.account-mine { position: relative; }

.account-mine .notifications-dot {
  position: absolute;
  left: 50%;
  bottom: -.42rem;
  margin-left: 0;
  transform: translateX(-50%);
}

.notifications-dot.is-on { visibility: visible; }

@media (prefers-reduced-motion: no-preference) {
  .notifications-dot.is-on { animation: notifications-dot-in .5s ease-out 1; }
}

@keyframes notifications-dot-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ---- the card's tabs: "The card" and "Notifications" ---- */

/* The strip is drawn hidden and only revealed once the page has asked the club whose card is on
   screen — the same test the Freak out control uses, so a card that is somebody else's carries no
   tab, no panel and nothing to fetch. It borrows the club's section-tabs manner: small capitals, a
   hairline underside, the tab in hand underlined in the club's accent. */
.card-tabs { display: block; }

.card-tabstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.card-tabstrip[hidden] { display: none; }

.card-tab {
  flex: 0 0 auto;
  padding: .6rem .95rem;
  font-family: var(--sans);
  font-size: var(--type-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}

.card-tab:hover { color: var(--ink); }
.card-tab:focus-visible { color: var(--ink); }
.card-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.card-tab-panel[hidden] { display: none; }

/* ---- the notices: one list, newest first, read and unread together ---- */

/* Henry Humphreys, 7 October 2026: "Way way way too much real estate wasted on the notification
   page - tighten it all up." So the panel takes the page's own width rather than a column of its
   own, and each notice says what it has to say across that width instead of down it. */
.notifications-panel {
  padding-top: .8rem;
  padding-bottom: .6rem;
}

.notifications-bar {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  flex-wrap: wrap;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
}

/* The count keeps the left, the controls sit side by side at the right, and both are tucked in:
   the row used to scatter three small things across a whole line. */
.notifications-count {
  margin: 0 auto 0 0;
  font-size: var(--type-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* One quiet way to clear every mark at once, and the sounds toggle beside it. Nothing here is
   called "mark as read": the notice itself is what is pressed. */
.notifications-clear-all,
.notifications-more,
.notifications-sounds {
  font-family: var(--sans);
  font-size: var(--type-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  padding: .5rem .8rem;
  cursor: pointer;
}

.notifications-clear-all:hover,
.notifications-clear-all:focus-visible,
.notifications-more:hover,
.notifications-more:focus-visible,
.notifications-sounds:hover,
.notifications-sounds:focus-visible { border-color: var(--ink); }

.notifications-sounds[aria-pressed="true"] { border-color: var(--accent); }
.notifications-clear-all[disabled] { opacity: .5; cursor: default; }

.notifications-list { list-style: none; margin: 0; padding: 0; padding-top: var(--stack-row); }

/* A notice is the mark of its kind, its heading, the line about it and when — and nothing else.
   Newest first, read and unread together: the kind's mark is solid while the notice is waiting and
   fades once it has been served, and the row never moves and is never taken away. */
/* One notice is two lines wherever there is room for them: its heading with the time at the right
   of that line, and the line about it with its controls at the right of the next. It used to be
   four or five lines in a column a third of the page wide. */
.notification {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .7rem;
  align-items: start;
  padding: var(--stack-row) .2rem;
  border-bottom: 1px solid var(--line);
}

.notification[data-read="false"],
.notification.is-noisy { cursor: pointer; }

/* The mark of the notice's kind, first in the row. Its colour is set per kind below; while the
   notice is waiting it is solid, and serving the notice quiets it without moving anything. */
.notification-kind {
  grid-column: 1;
  width: .55rem;
  height: .55rem;
  margin-top: .32rem;
  border-radius: 50%;
  background: var(--notice-mark, var(--accent));
  transition: opacity .5s ease;
}

.notification[data-read="true"] .notification-kind { opacity: .28; }

/* The mark of each kind: the club's tablets have their own colours, and the club's other
   kinds — a captain's handover, a note, an expedition — have their own quiet marks. */
.notification[data-kind="freak-out"] { --notice-mark: #6b1a15; }
.notification[data-kind="sooth"] { --notice-mark: #26506b; }
.notification[data-kind="chapeau"] { --notice-mark: #7a5716; }
.notification[data-kind="captain"] { --notice-mark: var(--ink); }
.notification[data-kind="note"] { --notice-mark: var(--ink-soft); }
.notification[data-kind="expedition"] { --notice-mark: #3f5c3a; }
/* The captain's call for supplies (Henry Humphreys, 7 October 2026) wears the club's own rust: it
   is neither a handover nor a note but the trip's own business, and it makes no sound — nobody
   needs waking for a sack of wheat. */
.notification[data-kind="supplies"] { --notice-mark: var(--accent); }
/* A trade between two Walri (Henry Humphreys, 8 October 2026: "Users should be able to trade
   provisions with other users"). Its own quiet green — goods, not alarms — and, like the captain's
   call, it makes no sound at all. */
.notification[data-kind="trade"] { --notice-mark: #3f5c3a; }
/* The nightly roll (Henry Humphreys, 8 October 2026: "Every night each user should receive a random
   combination of 5 provisions and get a notification about it"). The larder's own ochre, and as
   silent as a trade: nothing arrives in the night that needs waking for. */
.notification[data-kind="provisions"] { --notice-mark: #6f5a2a; }
/* The invitation (Henry Humphreys, 10 October 2026, 10:38): goods coming to a member because they
   brought another in. The club's own sand, and as silent as a trade — a reward is not an alarm. */
.notification[data-kind="referral"] { --notice-mark: #8a5a2b; }
/* The captain's FMB (Henry Humphreys, 10 October 2026, 11:50 UTC): the freak out's own deep red,
   one shade off it, because it is the same sort of news — somebody in the team has said so out
   loud — and the club keeps its four noises for the four that are alarms. Silent. */
.notification[data-kind="fmb"] { --notice-mark: #8c2118; }

.notification-head {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.2rem;
  align-items: baseline;
}

.notification-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: var(--type-section);
  overflow-wrap: anywhere;
}

.notification[data-read="true"] .notification-title { color: var(--ink-soft); font-weight: 400; }

.notification-body,
.notification-when,
.notification-actions {
  overflow-wrap: anywhere;
}

.notification-body {
  grid-column: 1;
  grid-row: 2;
  margin: .12rem 0 0;
  font-size: var(--type-body);
}

.notification-when {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  font-size: var(--type-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* The way through, and the noise: two quiet controls at the right of the notice's own line, so the
   row costs nothing extra in height. */
.notification-actions {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  display: flex;
  gap: .7rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: .08rem;
}

.notification-link,
.notification-hear {
  font-family: var(--sans);
  font-size: var(--type-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: .1rem 0 .16rem;
  cursor: pointer;
}

.notification-link:hover,
.notification-link:focus-visible,
.notification-hear:hover,
.notification-hear:focus-visible { border-bottom-color: var(--ink); }

.notification-hear::before { content: "\266A"; margin-right: .45rem; }

.notifications-empty { font-size: var(--type-body); color: var(--ink-soft); }

.notifications-more-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: baseline; margin: .8rem 0 0; }

.notifications-status {
  min-height: 1.6em;
  margin: .4rem 0 0;
  font-size: var(--type-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* A quiet line that has nothing to say takes no room: it was holding a whole line open between the
   bar and the first notice (28.8px of nothing at every width). It still speaks when it has words. */
.notifications-status:empty { min-height: 0; margin: 0; }

.notifications-status.is-problem { color: var(--ink); }

/* ---- /notifications.html: a way through, not a second inbox ---- */

.notifications-wrap { max-width: 54rem; }

.notifications-signed-out { font-size: var(--type-body); color: var(--ink-soft); }

@media (max-width: 700px) {
  /* A phone keeps the heading and its time on one line — the time is small, the heading is short,
     and four stacked lines per notice is what made the list run off the screen. The line about the
     notice and its controls take the two rows under it. */
  .notification { column-gap: .5rem; padding: .5rem .1rem; }
  .notification-head { grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; }
  .notification-when { grid-column: 2; grid-row: 1; justify-self: end; margin-top: 0; }
  .notification-body { grid-column: 1 / -1; grid-row: 2; }
  .notification-actions { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: .15rem; }
  .notifications-more-row { margin-top: .5rem; }
}

/* ---- the Walri's own words: the messages tab on a card ----

   Henry Humphreys, 7 October 2026: "And let's have messages so that Walri can talk to each other in
   private?" and, a moment later, "Messages received triggers a notification, of course." The tab
   carries a small dot of its own while something is unread — the club's accent rather than the
   notices' red, because it is a Walrus writing, not the club — and the tab, the inbox and a thread
   all stay as tight as the notices above. Every size is one of the four roles. */

.messages-panel {
  padding-top: 1rem;
  padding-bottom: .8rem;
}

.messages-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-left: .45rem;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--accent);
  visibility: hidden;
}

.messages-dot.is-on { visibility: visible; }

.messages-note,
.messages-empty {
  margin: 0 0 .5rem;
  font-size: var(--type-body);
  color: var(--ink-soft);
}

.messages-empty:empty { display: none; }

.messages-status {
  min-height: 1.4em;
  margin: .5rem 0 0;
  font-size: var(--type-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.messages-status.is-problem { color: var(--ink); }

.messages-with {
  margin: 0 0 .4rem;
  font-size: var(--type-section);
  overflow-wrap: anywhere;
}

.messages-list { list-style: none; margin: 0; padding: 0; }

/* One conversation on a line: who it is with and the last thing said, and what is new at the right
   of both. The body is clipped rather than wrapped, so a long message never fattens the row. */
/* A conversation is a button, not a link: it opens inside this card, because messages are read on
   your own card and nowhere else. */
.messages-conversation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: baseline;
  width: 100%;
  padding: .6rem .2rem;
  font-family: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.messages-conversation:hover .messages-conversation-name,
.messages-conversation:focus-visible .messages-conversation-name { text-decoration: underline; }

.messages-conversation-name {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: var(--type-section);
}

.messages-conversation-body {
  grid-column: 1;
  grid-row: 2;
  margin-top: .15rem;
  font-size: var(--type-body);
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messages-conversation-meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  font-size: var(--type-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.messages-conversation-meta.is-new { color: var(--accent); font-weight: 600; }

/* What was said, oldest first: their words on the club's paper, yours marked out by the accent
   rule at the left rather than a second colour, each with its own line of when. */
.messages-said-one {
  padding: .5rem .2rem;
  border-bottom: 1px solid var(--line);
}

.messages-said-one.is-mine { border-left: 2px solid var(--accent); padding-left: .6rem; }

/* Deleting is the club's own quiet word, in two presses: Delete, then Yes, delete. A conversation
   in the inbox carries it at the right of the row, and a line of your own carries it beneath its
   words — your own only, never another Walrus's (Henry Humphreys, 7 October 2026: "Should have the
   option to delete messages"). */
.messages-conversation-row {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.messages-conversation-row .messages-conversation { flex: 1 1 auto; min-width: 0; }

.messages-away,
.messages-unsay {
  flex: 0 0 auto;
  margin: .35rem 0 0;
  padding: 0 0 .15rem;
  font-family: var(--sans);
  font-size: var(--type-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.messages-away:hover,
.messages-away:focus-visible,
.messages-unsay:hover,
.messages-unsay:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

.messages-away.is-armed,
.messages-unsay.is-armed { color: var(--notice-red); border-bottom-color: var(--notice-red); }

/* The second press on Mark as completed — the captain is being asked, and the question is red. */
.expedition-complete.is-armed { color: var(--notice-red); border-color: var(--notice-red); }

.messages-said-body {
  margin: 0;
  font-size: var(--type-body);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.messages-said-when {
  margin: .2rem 0 0;
  font-size: var(--type-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.messages-form {
  display: flex;
  gap: .6rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: .8rem;
}

.messages-body {
  flex: 1 1 18rem;
  min-height: 3rem;
  padding: .55rem .6rem;
  font-family: var(--sans);
  font-size: var(--type-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  resize: vertical;
}

.messages-body:focus-visible { border-color: var(--ink); }

.messages-send { flex: 0 0 auto; }

/* The picker: the Walri you may write to, one or several at a time — a combination is not a group,
   each is written to privately (Henry Humphreys, 7 October 2026). */
.messages-new {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 0 .8rem;
}

.messages-to-label {
  align-self: center;
  font-size: var(--type-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.messages-to {
  flex: 1 1 16rem;
  max-width: 24rem;
  padding: .4rem .5rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

/* Fifty words a message, counted as they are typed, and the count says so quietly until it is
   passed. */
.messages-count {
  margin: .3rem 0 0;
  font-size: var(--type-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.messages-count:empty { display: none; }
.messages-count.is-over { color: var(--notice-red); }

/* The way back out of a conversation, and out of writing to several. */
.messages-back {
  margin-top: .7rem;
  padding: 0 0 .15rem;
  font-family: var(--sans);
  font-size: var(--type-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.messages-back:hover,
.messages-back:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- The card's own controls: Edit in the head, the tablets in the dashboard below ---- */

/* Edit sits where it always has, top right of the card's head, hidden until the page has asked the
   club whose card is on screen. The tablets used to keep it company up here; they now live inside
   the mental-state panel, which is where the reading they move is (Henry Humphreys, 6 October 2026,
   17:53: "Control panel buttons should be on this bit of the card"). */
.card-own-actions {
  position: absolute;
  top: clamp(1.1rem, 2.6vh, 2rem);
  right: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
  max-width: min(16rem, 52%);
}

.card-own-actions .card-edit { position: static; top: auto; right: auto; }

/* The panel's controls, sitting on the row of the scale itself (see the panel's own rules in
   styles.css for where that is). Nothing here unless the page has found something for this reader
   to press — their own card's Freak out, or another Walrus's Sooth, Chapeau and Word. */
.card-tablets { display: none; }
.card-breakdown.has-controls .card-tablets {
  display: flex;
  align-items: center;
  gap: .45rem;
}

/* The panel itself, once it has controls on it — the reader's own Freak out, or another Walrus's
   Sooth, Chapeau and Word — becomes a two-column instrument: the gauge and the reading it gives at the
   left, the tablets at the right of that same row, and the member's own line across the foot
   underneath. The body is taken out of the flow so the readings it carries and the tablets can sit
   on one grid together, which also leaves the page free to repaint the reading on its own without
   disturbing where the tablets are. Placing them by the scale rather than in a strip below it is
   Henry Humphreys, 6 October 2026, 19:13: "Buttons need to be smaller and neater and on the card by
   the mental state scale". */
.card-breakdown.has-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; align-items: center; }
.card-breakdown.has-controls .breakdown-body { display: contents; }
.card-breakdown.has-controls .breakdown-head { grid-column: 1 / -1; grid-row: 1; }
.card-breakdown.has-controls .breakdown-meter { grid-column: 1; grid-row: 2; }
.card-breakdown.has-controls .breakdown-score { grid-column: 1; grid-row: 3; justify-self: start; }
.card-breakdown.has-controls .card-tablets { grid-column: 2; grid-row: 2 / 4; justify-self: end; align-self: center; }
.card-breakdown.has-controls .breakdown-note { grid-column: 1 / -1; grid-row: 4; }
.card-breakdown.has-controls .card-freak-out-status { grid-column: 1 / -1; grid-row: 5; }
/* Room at the foot of a card. The gauge and the tablets share the one row — the ten pips at the left
   of it, the discs at the right — and on the width a card used to be given there was not room for
   both: measured at 1440 with the card 334 pixels wide, the panel's grid gave the tablets' own
   max-content (276.5) its whole column and collapsed the gauge to 0.1 of a pixel, so the scale was
   simply not there and the score wrapped over two lines against the first disc. Henry Humphreys,
   7 October 2026: "Let's make the cards wider - there is loads of real estate on the page and the
   buttons etc are bunching up now".

   The widest of that is answered by the card column itself (see styles.css: a card is 512 pixels at
   1440 now, not 334). What is left is the stretch of viewports where the page is two columns but the
   card has not reached its own width yet — 901 to 1299, a card of 384 to 494 — where the row still
   cannot hold the scale and four discs at once. There the row is split and the four discs pair up two
   by two in a column of their own beside the scale, rather than pushing at it or leaving one adrift on
   a third row: measured at 1024, the scale takes 158 pixels and the discs read as a 2x2, and at 1299
   the scale takes 262. From 1300, where the card is 494 and the panel has room for all four on one
   row beside a 135-pixel scale, the tablets go back to their own width and hold the single row they
   have always had. Nothing in the panel sits outside its own edge at any width from 900 to 1920.

   A phone was left with that same row, on the reasoning that the panel there is the full width of a
   single-column page and the discs still hold one row. That was wrong, and it is what put a card in
   Henry Humphreys's own hand with the gauge gone. Measured in a browser on 8 October 2026, at 390 and
   again at 375, with a panel carrying another Walrus's three tablets: the discs' own width of 270.1
   pixels took the whole row, the gauge came out at exactly 0 — the ten pips simply not there — the
   reading was squeezed into 89 pixels and broke over two lines against the first disc, and the page
   came out 13 pixels wider than the phone, so the card slid sideways under the thumb. Henry, from his
   phone that evening, on that screen: "Bunching".

   So a phone stacks the instrument instead: the title bar across the top, the gauge at its full width
   beneath it, the reading under that, and the tablets on a row of their own at the foot of the panel,
   holding the right-hand edge the desk layout gives them and wrapping rather than shrinking when a
   narrow phone cannot take three abreast. Nothing crowds, nothing overlaps, and the discs stay where
   he asked for them — on the card, by the mental state scale. */
@media (min-width: 901px) and (max-width: 1299px) {
  .card-breakdown.has-controls { column-gap: .9rem; grid-template-columns: minmax(0, 1fr) minmax(0, 9rem); }
  .card-breakdown.has-controls .card-tablets { flex-wrap: wrap; justify-content: flex-end; row-gap: .4rem; }
}
@media (max-width: 900px) {
  .card-breakdown.has-controls { grid-template-columns: minmax(0, 1fr); row-gap: .35rem; }
  .card-breakdown.has-controls .card-tablets {
    grid-column: 1;
    grid-row: 4;
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: .4rem;
  }
  .card-breakdown.has-controls .breakdown-note { grid-row: 5; }
  .card-breakdown.has-controls .card-freak-out-status { grid-row: 6; }
}
/* The panel is held back until the page has asked the club whose card is on screen, and the grid
   above would otherwise out-shout that. */
.card-breakdown[hidden] { display: none; }

/* The tablets. Henry Humphreys, 6 October 2026, 17:08: "the freak out button should be dark
   blood red and then the chapeau button should have its own colour and the soothe button should have
   its own colour as well. And I think they should all be in the shape of lozenges, a bit like
   something you'd find in a medical doctor's pack on board a ship in the Antarctic in 1889." Then,
   at 17:43: "should be nearly circular" — so each is a single tablet rather than a long lozenge: a
   disc with the pale label sitting inside its own hairline rim, as a tablet sits in its own edge.
   Then, at 19:13: "Buttons need to be smaller and neater and on the card by the mental state
   scale" — so the disc has come down from 5.8rem to 3.8rem, lost its second rim and its shadow and
   its capitals; what is left is one edge and one word. And at 19:28, from his own phone: Chapeau
   broke as "Cha- / peau" in a fixed disc — so the disc now takes its width from its word (a
   min-width keeps it a disc) and never breaks one: it grows the few millimetres instead. */
.card-freak-out,
.card-signal {
  --draught: var(--ink);
  --draught-label: var(--paper);
  --draught-size: 3.8rem;
  /* A tablet is as wide as the word stamped on it and no wider, and never lends its word a hyphen:
     one word, one line, on any phone's own measure of the type. */
  width: auto;
  min-width: var(--draught-size);
  height: var(--draught-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
  font-family: var(--sans);
  font-size: var(--type-label);
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--draught-label);
  /* Shaded like a sphere (Henry Humphreys, 8 October 2026, 17:06, with the Freak out disc circled
     on his own phone: "Can there be shading on the freak out button so it looks like a 3D sphere /
     Same with all buttons."): the light sits at the upper left, the tablet's own colour deepens
     toward the lower right, and the disc throws a contact shadow onto the card under it. Two
     gradients over the draught rather than a colour of its own, so the tablet is still the one
     colour it was, and the rim keeps its own hairline of light. */
  background:
    radial-gradient(72% 72% at 33% 27%, rgba(255, 255, 255, .44) 0%, rgba(255, 255, 255, .16) 33%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(128% 128% at 72% 84%, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, .36) 100%),
    var(--draught);
  border: 0;
  /* Nearly, not quite: the four arcs leave the shortest of straight edges between them. */
  border-radius: 46%;
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, .36),
    inset -2px -3px 7px rgba(0, 0, 0, .32),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 2px 3px -1px rgba(9, 20, 26, .45),
    0 6px 12px -6px rgba(9, 20, 26, .6);
  cursor: pointer;
}

/* Dark blood red, as asked. */
.card-freak-out { --draught: #6b1a15; }

/* The calm draught, and the one tipped by way of a hat: each its own colour, neither of them red. */
.card-signal[data-signal="sooth"] { --draught: #26506b; }
.card-signal[data-signal="chapeau"] { --draught: #7a5716; }

/* And the door to a word with that Walrus (Henry Humphreys, 7 October 2026, with the Sooth and
   Chapeau discs circled on George Humphreys's card: "On someone else's card, I should see a round
   button which I can press and then message them?"): the club's own sea green, deep enough to
   carry the pale label, and a fourth colour so no two of the tablets are mistaken for each other.
   It wears `.card-signal` with the rest of them, so it is the same disc in the same hand. */
.card-signal.card-message { --draught: #3d5a52; }

/* A tablet is pressed, so it answers the press: a shade deeper, the label brightens, and the light
   on the sphere gathers a little under the hand. */
.card-freak-out:hover,
.card-freak-out:focus-visible,
.card-signal:hover,
.card-signal:focus-visible {
  --draught-label: #ffffff;
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, .5),
    inset -2px -3px 8px rgba(0, 0, 0, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .34),
    0 3px 5px -1px rgba(9, 20, 26, .5),
    0 8px 16px -8px rgba(9, 20, 26, .62);
  filter: brightness(1.14);
}

.card-freak-out[disabled],
.card-signal[disabled] { opacity: .55; cursor: progress; filter: none; }

/* The club's answer, under the instruments it answers. Empty until a press is answered, and empty
   more often than not: `.card-freak-out-status:empty` takes the line away altogether. */
.card-freak-out-status {
  margin: .55rem 0 0;
  font-size: var(--type-label);
  letter-spacing: .08em;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.card-freak-out-status:empty { display: none; }

@media (max-width: 600px) {
  /* The tablets stay tablets on a phone: a smaller disc, not a full-width strip. */
  .card-freak-out,
  .card-signal { --draught-size: 3.6rem; }
  .card-tablets { gap: .4rem; }
}

/* ---------------------------------------------------------------------------------------------
   The paper under the notices. The card's notice and message panels were among the last flat
   rectangles on the site: one hairline round everything and nothing standing off the sheet. The
   club's language for anything lying on the paper was set on the home page — the contact, the
   throw, and the printed line drawn twice (the --stock- tokens at the top of styles.css, which
   always loads first) — and these surfaces now wear the same layers and nothing else. Ink, paper
   and rust; no new colour, nothing that moves, and no measurement changed: every board here is
   drawn by a pseudo-element or a shadow, so these panels measure exactly as they did before.
   Henry Humphreys, 7 October 2026: depth and texture beyond the home page.
   --------------------------------------------------------------------------------------------- */

/* ---- the card's tabs and its rails --------------------------------------------------------- */

/* The tab strip is a printed rail: the hairline it already carried, the white line under it that
   makes a rule read as printed rather than drawn, and the throw falling on the panel below, so the
   rail stands over the card instead of sitting in it. */
.card-tabstrip {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75), 0 10px 16px -14px rgba(9, 20, 26, .5);
}

/* The tab in hand is pressed into the sheet: a patch of lighter paper under the word, fading out
   well before the rule, and nothing that changes the tab's box or its place. */
.card-tab { transition: color .18s ease, border-color .18s ease, background-image .18s ease; }
.card-tab[aria-selected="true"] {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 92%);
}

/* ---- the notices --------------------------------------------------------------------------- */

/* The bar over the list, and every notice in it: the club's double rule. The grey line was already
   there; the white line under it is the paper showing through the print. */
.notifications-bar,
.notification,
.messages-conversation,
.messages-said-one {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

/* A notice still waiting answers the hand with the paper under it, and with nothing that moves.
   The row keeps its height, its rule and its place either way. */
.notification { transition: background .18s ease; }
.notification[data-read="false"]:hover,
.notification[data-read="false"]:focus-visible,
.notification.is-noisy:hover,
.notification.is-noisy:focus-visible { background: rgba(255, 255, 255, .55); }

/* The list itself is a sheet of notice paper standing under the notices: its own hairline, the
   paper light along its head, and the shadow it throws on the card. It reaches half a line above
   and below the list and no wider than the panel, so nothing here can be pushed off the page. */
.notifications-list,
.messages-list { position: relative; }
.notifications-list::before,
.messages-list::before {
  content: "";
  position: absolute;
  top: -.55rem;
  bottom: -.55rem;
  left: 0;
  right: 0;
  box-shadow: 0 0 0 1px rgba(9, 20, 26, .06), inset 0 1px 0 rgba(255, 255, 255, .7), 0 14px 24px -22px rgba(9, 20, 26, .55);
  pointer-events: none;
}

/* Nothing to show is still a state of the record: a ruled blank inside the paper, drawn as an
   outline so an empty panel measures exactly as the empty panel did. */
.notifications-empty,
.messages-empty:not(:empty) {
  outline: 1px dashed var(--stock-hairline);
  outline-offset: .7rem;
}

/* The panel's own controls are pressed paper rather than bare outlines: a sheet with a contact
   shadow, and a deeper one when the hand is on it. Nothing moves and nothing grows. */
.notifications-clear-all,
.notifications-more,
.notifications-sounds {
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .55));
  box-shadow: 0 1px 1px rgba(9, 20, 26, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.notifications-clear-all:hover:enabled,
.notifications-more:hover,
.notifications-sounds:hover {
  box-shadow: 0 2px 4px rgba(9, 20, 26, .09), inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* ---- messages ------------------------------------------------------------------------------ */

/* A conversation in hand answers with the paper under it, not with a movement. */
.messages-conversation { transition: background .18s ease; }
.messages-conversation:hover,
.messages-conversation:focus-visible { background: rgba(255, 255, 255, .55); }

/* A field is pressed into the sheet rather than laid on it: the line you write on sits a hair
   below the paper around it. */
.messages-body,
.messages-to {
  box-shadow: inset 0 1px 2px rgba(9, 20, 26, .07), inset 0 0 0 1px rgba(9, 20, 26, .03);
}

/* Your own side of a conversation is the club's accent rule, with a slip of paper under the words
   and a line down the edge of that slip. */
.messages-said-one.is-mine { box-shadow: 0 1px 0 rgba(255, 255, 255, .7), -1px 0 0 rgba(9, 20, 26, .05); }

/* ---- /notifications.html -------------------------------------------------------------------- */

/* A way through, not a second inbox: the heading sits on the paper like every other heading, and
   the page stays as empty as it was — there is nothing here to raise. */
.notifications-wrap h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, .72); }

/* ---- print, and the reader who asked for less movement -------------------------------------- */

/* None of this is content: on paper the sheet is already the page. */
@media print {
  .card-tabstrip,
  .notifications-bar,
  .notification,
  .messages-conversation,
  .messages-said-one,
  .notifications-clear-all,
  .notifications-more,
  .notifications-sounds,
  .messages-body,
  .messages-to { box-shadow: none; }
  .notifications-list::before,
  .messages-list::before { display: none; }
  .notifications-empty,
  .messages-empty:not(:empty) { outline: none; }
  .card-tab[aria-selected="true"] { background-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card-tab,
  .notification,
  .messages-conversation,
  .notifications-clear-all,
  .notifications-more,
  .notifications-sounds { transition: none; }
}

/* A single provision, explicitly chosen. The native modal keeps focus in the choice.

   One chooser shape, worn by three things: the two signals, and the captain's FMB (Henry Humphreys,
   10 October 2026, 11:50 UTC). The FMB's own names are the signal's with their own prefix, so both
   dialogs are drawn by these rules and neither carries a second stylesheet of its own. */
.signal-provision-dialog, .fmb-provision-dialog {width: min(440px, calc(100vw - 32px)); box-sizing: border-box; max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid #927b50; border-radius: 12px; padding: 22px; background: #f7f1e3; color: #28241d; box-shadow: 0 18px 80px #0006; }
.signal-provision-dialog::backdrop, .fmb-provision-dialog::backdrop {background: #171b20a8; }
.signal-provision-dialog h2, .fmb-provision-dialog h2 {margin: 0 0 6px; }
.signal-provision-intro, .fmb-provision-intro {margin: 0 0 16px; }
.signal-provision-choices, .fmb-provision-choices {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.signal-provision-choice, .fmb-provision-choice {position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
/* The same old paper the store deals, behind the mark (Henry Humphreys, 9 October 2026). The chosen
   state stays this dialog's own green: a wash over the card and a ring round its torn edge. */
.signal-provision-choice > *:not(.provision-paper), .fmb-provision-choice > *:not(.provision-paper) {position: relative; z-index: 1; }
.signal-provision-choice .provision-paper-ring, .fmb-provision-choice .provision-paper-ring {stroke: transparent; }
.signal-provision-choice[aria-pressed="true"] .provision-paper-wash, .fmb-provision-choice[aria-pressed="true"] .provision-paper-wash {fill: #e5eddc; fill-opacity: .78; }
.signal-provision-choice[aria-pressed="true"] .provision-paper-ring, .fmb-provision-choice[aria-pressed="true"] .provision-paper-ring {stroke: #395541; stroke-width: 2.6; }
.signal-provision-choice .provision-mark, .fmb-provision-choice .provision-mark {width: 44px; height: 44px; }
.signal-provision-choice small, .fmb-provision-choice small {font-size: 11px; opacity: .75; }
.signal-provision-choice[aria-pressed="true"], .fmb-provision-choice[aria-pressed="true"] {background: transparent; }
.signal-provision-dialog button:focus-visible, .fmb-provision-dialog button:focus-visible {outline: 3px solid #26506b; outline-offset: 2px; }
.signal-provision-note, .fmb-provision-note {min-height: 1em; margin: 12px 0; }
.signal-provision-actions, .fmb-provision-actions {display: flex; align-items: stretch; gap: 8px; }
.signal-provision-actions button, .fmb-provision-actions button {min-height: 44px; padding: 9px 12px; border: 1px solid #927b50; border-radius: 6px; font: inherit; cursor: pointer; }
.signal-provision-send, .fmb-provision-send {flex: 1; background: #304d3a; color: #fffaf0; }
.signal-provision-dialog button:disabled, .fmb-provision-dialog button:disabled {opacity: .5; cursor: default; }

/* What a signal costs and what comes back, and how much of the day is left (Henry Humphreys,
   10 October 2026, 09:44). The sentence sits under the two tablets, on the card, for the member who
   could press them; the same sentence is repeated inside the chooser so the cost is not lost when
   the dialog opens. */
.signal-daily-allowance { margin: 8px 0 0; font-size: 13px; line-height: 1.45; opacity: .85; }
.signal-daily-allowance:empty { display: none; }
.signal-provision-allowance, .fmb-provision-allowance {margin: 0 0 12px; font-size: 13px; line-height: 1.45; opacity: .85; }
.signal-provision-allowance:empty, .fmb-provision-allowance:empty {display: none; }
