/* Clubwell App Control Centre. Look taken from clubwell.com (17 Nov 2026): Inter for text, Roca (Clubwell's Adobe
   Fonts kit) for headings, near-black ink, the Clubwell green with a mint tint and a deep forest green,
   pill-shaped buttons and soft, very rounded cards. */
:root {
  --green: #2cd383; --green-hover: #22c174; --green-dark: #0b4629; --green-tint: #e9fbf2; --forest: #0f432a;
  --ink: #22282b; --text: #22282b; --muted: #5b6366; --faint: #8a9194; --line: #e6e8e8; --field: #d5d9da; --bg: #f7f7f7; --card: #fff;
  --amber: #8a5a00; --amber-tint: #fdf2dc; --blue: #1b5fa8; --blue-tint: #e8f1fb; --red: #b3261e; --red-tint: #fdeceb;
  --radius: 12px; --radius-lg: 20px;
  --serif: roca, "New York", "Iowan Old Style", Georgia, serif;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink);
  font-feature-settings: "cv11", "ss01";
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }

/* Side menu */
.side { background: var(--card); border-right: 1px solid var(--line); padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh; }
.side .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 2px 12px 22px; text-decoration: none; color: var(--ink); }
.side .brand img { height: 26px; }
.side .brand span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); }
.side a { text-decoration: none; color: var(--ink); padding: 9px 14px; border-radius: 999px; font-size: 15px; }
.side a:hover { background: var(--bg); }
.side a.on { background: var(--green-tint); color: var(--forest); font-weight: 600; }
.side .brand:hover { background: none; }
.sample-note { margin-top: auto; font-size: 12px; color: var(--forest); background: var(--green-tint); border-radius: var(--radius); padding: 10px 12px; line-height: 1.4; }

/* Page */
main { padding: 30px 40px 80px; outline: none; min-width: 0; }
h1 { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.bar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.bar .grow { flex: 1; }

/* Buttons: pills, as on clubwell.com */
button, .btn { font: inherit; font-size: 14px; font-weight: 500; border: 1px solid rgba(34, 40, 43, .28); background: var(--card); color: var(--ink); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .12s, border-color .12s; }
button:hover { border-color: var(--ink); }
button.primary { background: var(--green); border-color: var(--green); color: var(--ink); font-weight: 600; }
button.primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
button.danger { color: var(--red); border-color: rgba(179, 38, 30, .35); }
button.danger:hover { border-color: var(--red); background: var(--red-tint); }
button.link { border: none; background: none; color: var(--green-dark); padding: 4px 6px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(11, 70, 41, .3); text-underline-offset: 3px; }
button.link:hover { text-decoration-color: currentColor; }
button.icon { padding: 5px 11px; }
button:focus-visible, a:focus-visible, .chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button:disabled { opacity: .4; cursor: default; }
button:disabled:hover { border-color: rgba(34, 40, 43, .28); background: var(--card); }
button.primary:disabled:hover { background: var(--green); border-color: var(--green); }

/* Fields */
input, select, textarea { font: inherit; font-size: 14px; width: 100%; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--radius); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: transparent; }
input::placeholder, textarea::placeholder { color: var(--faint); }
/* Drop-downs draw their own arrow, set in from the edge, so it sits right in rounded and pill-shaped boxes. */
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2322282b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
label.f { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.err { font-size: 13px; color: var(--red); margin-top: 5px; }
input.locked { background: var(--bg); color: var(--muted); }

/* Cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 360px; border-radius: 999px; padding-left: 16px; }
.toolbar select { width: auto; border-radius: 999px; padding-left: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 14px; border: 1px solid rgba(34, 40, 43, .2); border-radius: 999px; background: #fff; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.row { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.row:last-child { border-bottom: none; }
.row:hover { background: var(--green-tint); }
.thumb { width: 54px; height: 54px; border-radius: var(--radius); background: var(--bg) center/cover no-repeat; flex: none; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 11px; text-align: center; }
.row .t { font-weight: 600; }
.row .m { font-size: 13px; color: var(--muted); }
.row .main { flex: 1; min-width: 0; }
.row .main div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: 12px; font-weight: 500; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.pill.live { background: var(--green-tint); color: var(--forest); }
.pill.scheduled { background: var(--blue-tint); color: var(--blue); }
.pill.removed { background: #eef0f0; color: var(--muted); }
.count { font-size: 13px; color: var(--muted); margin: 0 0 10px 4px; }
.empty { padding: 48px; text-align: center; color: var(--muted); }

/* Editors */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.section-h { font-family: var(--serif); font-size: 21px; font-weight: 400; margin: 28px 0 6px; }
.card .section-h:first-child { margin-top: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 14px; }
.cats .parent { grid-column: 1 / -1; font-size: 11px; font-weight: 600; color: var(--forest); margin-top: 10px; text-transform: uppercase; letter-spacing: .08em; }
.cats label { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.cats input { width: auto; }
input[type=checkbox], input[type=radio] { accent-color: var(--forest); }
.radio { display: flex; gap: 18px; margin-top: 4px; }
.radio label { display: flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; }
.radio input { width: auto; }
.drop { border: 1.5px dashed #c9cfd0; border-radius: var(--radius); padding: 16px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; background: #fcfcfc; }
.drop:hover { border-color: var(--green); }
.drop.over { border-color: var(--green); background: var(--green-tint); }
.drop img { max-width: 100%; max-height: 160px; border-radius: 8px; display: block; margin: 0 auto 8px; }
.sec { border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px 16px; margin-top: 12px; background: #fff; }
.sec-h { display: flex; align-items: center; gap: 6px; padding-top: 8px; }
.sec-h .n { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); flex: 1; }
details.more { margin-top: 24px; }
details.more summary { cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 500; }
.status { font-size: 13px; color: var(--muted); }
.status.dirty { color: var(--amber); }
.status.ok { color: var(--green-dark); }
.banner { background: var(--amber-tint); color: var(--amber); border-radius: var(--radius); padding: 11px 16px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner.red { background: var(--red-tint); color: var(--red); }

/* Phone previews: drawn like the app itself. Sizes are the app's, scaled to the preview (a 390-point-wide iPhone
   shown 310 pixels wide, so 0.8). Fonts and colours are the iPhone app's own (Constants.swift, Assets.xcassets):
   Quattrocento and Quattrocento Sans, ink #22282b, green #2cd383, grey #f4f4f4. */
.preview-wrap { position: sticky; top: 24px; }
.preview-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.phone { --app-ink: #22282b; --app-green: #2cd383; --app-grey: #f4f4f4; --app-dark-grey: #a8a9ab;
  width: 330px; border: 10px solid #1b1e20; border-radius: 46px; height: 660px; overflow-y: auto; overflow-x: hidden; background: #fff;
  box-shadow: 0 18px 40px rgba(15, 67, 42, .12), inset 0 0 0 1px #000; color: var(--app-ink);
  font-family: "Quattrocento Sans", sans-serif; scrollbar-width: none; position: relative; }
.phone::-webkit-scrollbar { display: none; }
.phone .ph { color: var(--app-dark-grey); }
.ph-status { position: sticky; top: 0; z-index: 3; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 4px 22px 0 28px; background: #fff; font: 600 13px/1 -apple-system, "SF Pro Text", Inter, sans-serif; }
.ph-island { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 88px; height: 25px; border-radius: 20px; background: #000; }
.ph-icons { display: flex; gap: 5px; align-items: center; }
.ph-icons svg { fill: currentColor; color: var(--app-ink); }
.ph-nav { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 14px; font-size: 14px; }
.ph-back { display: flex; color: var(--app-ink); }
.ph-title { font-weight: 700; font-size: 14px; }
/* Article (ArticleFullView.swift) */
.app-article { padding: 6px 26px 34px; }
.aa-title { font-family: Quattrocento, serif; font-size: 24px; line-height: 1.15; margin-bottom: 4px; }
.aa-by { font-size: 12px; font-style: italic; opacity: .6; }
.aa-sub { font-family: Quattrocento, serif; font-size: 16px; line-height: 1.25; margin: 6px 0 13px; }
.aa-img { display: block; width: 100%; border-radius: 8px; margin: 0 0 6px; background: var(--app-grey); }
.aa-h { font-family: Quattrocento, serif; font-size: 20px; line-height: 1.2; padding: 6px 0; margin: 6px 0;
  border-top: 1px solid rgba(34, 40, 43, .3); border-bottom: 1px solid rgba(34, 40, 43, .3); }
.aa-body { font-size: 12.8px; line-height: 1.38; white-space: pre-wrap; margin-bottom: 6px; }
.aa-link { font-size: 12.8px; color: var(--app-green); text-decoration: underline; margin-bottom: 6px; }
.aa-enjoy { text-align: right; font-size: 10.4px; font-style: italic; margin-top: 8px; }
.aa-thumbs { margin: 4px 0 0 auto; width: 97px; height: 40px; border-radius: 20px; background: var(--app-grey); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.aa-thumbs i { width: 1px; height: 20px; background: var(--app-dark-grey); }
/* App top bar (logo, greeting, profile) and the Food tab's page header */
.ph-bar { display: flex; align-items: center; gap: 8px; padding: 6px 14px 4px; }
.ph-bar img { height: 19px; }
.ph-bar span { flex: 1; font-size: 11.2px; color: #6f7476; padding-top: 6px; }
.ph-sub { display: flex; align-items: flex-start; gap: 8px; padding: 12px 13px 0; font-weight: 700; font-size: 16px; line-height: 1.2; }
.ph-sub svg { flex: none; margin-top: 3px; }
.ph-sub .ph { font-weight: 400; }
/* Shared bits */
.ar { padding: 0 13px; }
.ag-band { height: 8px; background: var(--app-grey); margin: 10px 0; }
.ag-nut { border: 1px solid var(--app-dark-grey); border-radius: 8px; padding: 6px 9px 8px; margin: 0 4px; }
.ag-nuth { display: flex; justify-content: space-between; font-size: 13px; padding-top: 4px; }
.ag-rule { height: 3px; background: var(--app-green); margin: 4px 0 6px; }
.ag-row { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 0; }
.ag-row svg { width: 12px; height: 12px; flex: none; }
.ag-row span { flex: 1; }
.ag-row b { font-weight: 400; }
.ag-div { height: 1px; background: var(--app-grey); margin: 5px 0; }
/* Recipe (RecipeDetailsPortraitView.swift) */
.ar-mark { display: flex; justify-content: flex-end; margin: -2px 0 0; }
.ar-mark svg { width: 24px; height: 24px; }
.ar-hero { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--app-grey) center/cover no-repeat; margin-top: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.ar-by { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: #00bb1e; color: #fff; font-size: 9px; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.ar-stats { display: grid; grid-template-columns: repeat(3, 1fr) .4fr; margin: 12px 0 10px; font-size: 11.2px; line-height: 1.25; }
.ar-stats b { display: block; font-size: 12px; }
.ar-actions { display: flex; align-items: center; gap: 8px; height: 40px; margin-bottom: 10px; }
.ar-add { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12.8px; }
.ar-add svg { width: 32px; height: 32px; }
.ar-pill { flex: 1; text-align: center; background: var(--app-green); color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--app-green); border-radius: 16px; font-size: 12.8px; line-height: 28px; }
.ar-intro { font-size: 11.2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.ar-more { text-align: right; font-size: 11.2px; color: var(--app-green); }
.ar-cook { display: flex; align-items: center; gap: 10px; font-size: 10.4px; }
.ar-cookpill { flex: none; display: flex; align-items: center; gap: 6px; border: 1px solid var(--app-dark-grey); border-radius: 16px; padding: 4px 6px 4px 10px; font-size: 9.6px; }
.ar-cookpill i { width: 1px; height: 18px; background: var(--app-green); }
.ar-toggle { width: 34px; height: 20px; border-radius: 10px; background: #e5e5ea; position: relative; }
.ar-toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ar-serv { width: 224px; margin: 16px auto 20px; border: 1px solid var(--app-green); background: rgba(44, 211, 131, .1); border-radius: 8px; padding: 0 13px; }
.ar-serv-top { text-align: center; font-weight: 700; font-size: 16px; line-height: 36px; border-bottom: 1px solid rgba(34, 40, 43, .5); }
.ar-serv-bot { display: flex; align-items: center; gap: 4px; font-size: 10.4px; line-height: 35px; }
.ar-serv-bot b { color: var(--app-green); font-size: 11.2px; }
.ar-serv-bot span { margin-left: auto; font-weight: 700; font-size: 12px; }
.ar-ingh { display: flex; align-items: center; gap: 6px; height: 24px; }
.ar-ingh b { flex: 1; font-size: 16px; }
.ar-ingh span { width: 80px; text-align: right; font-size: 11.2px; }
.ar-ingh svg { width: 12px; height: 12px; display: block; }
.ar-group { font-weight: 700; font-size: 14.4px; margin-top: 8px; }
.ar-ing { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.ar-ingimg { width: 32px; height: 32px; background: var(--app-grey); flex: none; }
.ar-ing > div { flex: 1; min-width: 0; }
.ar-ingt { display: flex; gap: 6px; font-size: 12px; line-height: 1.2; }
.ar-ingt span { flex: 1; }
.ar-ingv { text-align: right; font-size: 10.4px; opacity: .75; }
.ar-ing i svg { width: 20px; height: 20px; display: block; }
.ar-shop { margin: 13px 0; height: 40px; border-radius: 20px; background: var(--app-green); color: #fff; font-weight: 700; font-size: 14.4px; display: flex; align-items: center; justify-content: center; }
.ar-h { font-weight: 700; font-size: 16px; margin-bottom: 13px; }
.ar-mt { font-weight: 700; font-size: 14.4px; margin-top: 4px; }
.ar-md { font-size: 11.2px; line-height: 1.35; white-space: pre-wrap; margin-bottom: 8px; }
/* Food (ScreenFoodDetails.swift) */
.af-badges { display: flex; justify-content: flex-end; align-items: center; gap: 8px; height: 24px; padding: 0 13px; font-size: 10.4px; }
.af-nova { border: 1px solid var(--app-ink); border-radius: 4px; padding: 0 4px; font-size: 9px; font-weight: 700; }
.af-short { font-size: 12.8px; line-height: 1.3; margin-bottom: 10px; white-space: pre-wrap; }
.af-pic { aspect-ratio: 1.86; border-radius: 8px; background: var(--app-grey) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.af-adjust { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 10px; border: 2px solid var(--app-green); background: rgba(44, 211, 131, .1); border-radius: 16px; margin: 3px 0; font-size: 14.4px; }
.af-adjust b { font-weight: 400; font-size: 12px; color: #fff; background: var(--app-green); border-radius: 13px; padding: 2px 9px; white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.af-adjust i { margin-left: auto; display: flex; }
.af-adjust i svg { width: 15px; height: 10px; }
.af-buttons { display: grid; grid-template-columns: 1fr 1fr; height: 80px; align-items: center; text-align: center; font-size: 12px; }
.af-buttons svg { width: 32px; height: 32px; display: block; margin: 0 auto 4px; }
/* Exercise (ExerciseDetailViews.swift), How to Do tab */
.phone:has(.ae) { background: var(--app-grey); }
.ae-head { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 0 13px; background: #fff; font-weight: 800; font-size: 17.6px; line-height: 1.15; }
.ae-head svg { flex: none; }
.ae { padding: 13px; }
.ae-cat { font-size: 10.4px; color: var(--app-dark-grey); text-transform: uppercase; min-height: 12px; }
.ae-name { font-family: Quattrocento, serif; font-size: 24px; line-height: 1.15; margin: 4px 0; }
.ae-mus { font-size: 12px; color: var(--app-dark-grey); margin-bottom: 13px; }
.ae-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; background: #fff; border-radius: 99px; box-shadow: 0 2px 6px rgba(0,0,0,.04); margin-bottom: 13px; }
.ae-tabs span { text-align: center; font-weight: 700; font-size: 10.4px; padding: 8px 0; border-radius: 99px; }
.ae-tabs .on { background: var(--app-green); color: #fff; }
.ae-card { background: #fff; border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 10px; }
.ae-h { font-family: Quattrocento, serif; font-size: 17.6px; margin-top: 6px; }
.ae-video { height: 208px; border-radius: 10px; background: #000 center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.ae-video svg { width: 40px; height: 40px; }
.ae-se { display: flex; gap: 6px; }
.ae-se span { flex: 1; text-align: center; font-weight: 800; font-size: 10.4px; padding: 8px 0; border-radius: 99px; background: rgba(244, 244, 244, .75); }
.ae-se .on { background: var(--app-green); color: #fff; }
.ae-photo { height: 184px; border-radius: 10px; background: rgba(244, 244, 244, .72) center/contain no-repeat; }
.ae-over { font-size: 12.8px; line-height: 1.35; }
.ae-step { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.35; }
.ae-step span { flex: none; width: 19px; height: 19px; border-radius: 50%; background: rgba(44, 211, 131, .13); color: var(--app-green); font-size: 10.4px; display: flex; align-items: center; justify-content: center; }
.ae-none { font-size: 12.8px; color: var(--app-dark-grey); }
.ae-tips { font-size: 12px; line-height: 1.35; white-space: pre-wrap; }
.ae-note { font-size: 10.4px; color: var(--app-dark-grey); margin-top: 8px; }
.coming { max-width: 560px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--forest); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity .2s; pointer-events: none; }
#toast.show { opacity: 1; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .preview-wrap { position: static; } .phone { height: 560px; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 14px 12px; }
  .side .brand { width: 100%; padding-bottom: 10px; } .sample-note:not(.signed-in) { display: none; } .sample-note.signed-in { width: 100%; margin-top: 6px; } main { padding: 18px 16px 60px; }
  h1 { font-size: 28px; } .g3, .g2 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } .card { padding: 18px; }
}

/* Type-ahead suggestions (recipe ingredients) */
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--field); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(34, 40, 43, .1); overflow: hidden; }
.suggest button { display: block; width: 100%; text-align: left; border: none; border-radius: 0; padding: 8px 12px; background: #fff; font-weight: 400; }
.suggest button:hover, .suggest button:focus { background: var(--green-tint); outline: none; }
.suggest .hint { display: inline; margin-left: 6px; }
.suggest .none { padding: 8px 12px; font-size: 13px; color: var(--muted); }

/* Wording pages: group list on the left */
.grp { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; border: none; background: none; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 400; cursor: pointer; color: inherit; }
.grp:hover { background: var(--bg); }
.grp.on { background: var(--green-tint); color: var(--forest); font-weight: 600; }
@media (max-width: 900px) { .wording-layout { grid-template-columns: 1fr !important; } .wording-layout nav { position: static !important; } }

/* Article text box with bold, italic and underline (richtext.js) */
.rich { font-size: 14px; line-height: 1.55; min-height: 110px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--radius); background: #fff; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.rich:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: transparent; }
.rich:empty::before { content: attr(data-ph); color: var(--faint); }
.rich-tools { display: flex; gap: 4px; margin-bottom: 6px; }
.rich-tools button { min-width: 32px; padding: 3px 9px; font-size: 13px; }

/* Article likes and dislikes */
.likes { display: inline-flex; gap: 10px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.likes > span { display: inline-flex; align-items: center; gap: 4px; }
.likes .up { color: var(--forest); }
.likes .down { color: var(--muted); }
.likes .down svg { transform: rotate(180deg); }
.row .likes { margin-right: 6px; }

/* Members */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-tint); color: var(--forest); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.facts span { display: block; font-size: 12px; color: var(--faint); }
.facts b { font-weight: 500; overflow-wrap: anywhere; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 44px; height: 26px; border-radius: 13px; background: #d5d9da; position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.switch b { font-weight: 500; }
.danger-zone { border-color: rgba(179, 38, 30, .3); }
button.danger-solid { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
button.danger-solid:hover { background: #962019; border-color: #962019; }
button.danger-solid:disabled:hover { background: var(--red); border-color: var(--red); }
.history > div { display: grid; grid-template-columns: 170px 1fr; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.history > div:first-child { border-top: none; }
.history span { color: var(--muted); grid-row: span 2; }
.history b { font-weight: 500; }
.history i { color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .history > div { grid-template-columns: 1fr; } }

/* Signed-in person at the bottom of the side menu */
.sample-note.signed-in { background: var(--bg); color: var(--ink); }
.who-name { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.who-email { color: var(--muted); overflow-wrap: anywhere; }
.who-out { display: inline-block; margin-top: 6px; padding: 0 !important; color: var(--green-dark) !important; text-decoration: underline; font-size: 12px; }

/* Started with --Target=Live (app.js): a red strip on every page so it's never mistaken for dev. */
.live-strip { position: sticky; top: 0; z-index: 1000; box-sizing: border-box; min-height: 34px; background: var(--red);
  color: #fff; padding: 8px 16px; font-size: 13px; line-height: 18px; text-align: center; }
.is-live .side { top: 34px; height: calc(100vh - 34px); }
@media (max-width: 760px) { .is-live .side { height: auto; } }
.live-strip strong { letter-spacing: .08em; margin-right: 8px; }
