/* Ron & Amie's TV Guide — premium weekly-magazine styling */
:root {
  --paper: #e8ddee;
  --card: #fbf7fc;
  --ink: #2b1d33;
  --muted: #5f4a6b;
  --oxblood: #4a2f55;
  --oxblood-deep: #382340;
  --brass: #6f4d78;
  --hairline: #cdb8d6;
  --hairline-soft: #dccbe3;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #d9c9e0;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.45;
}

.tg-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 20px 40px;
  outline: 1px solid var(--hairline);
  outline-offset: -7px;
  background: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(43,29,51,0.012) 0 1px, transparent 1px 3px);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(43,29,51,0.18);
}

/* ---------- Masthead ---------- */
.tg-masthead { margin: 0 -2px 18px; }
.tg-band {
  background: var(--oxblood);
  border: 1px solid var(--oxblood-deep);
  outline: 1px solid rgba(246,238,247,0.35);
  outline-offset: -5px;
  text-align: center;
  padding: 26px 16px 22px;
  color: #f6eef7;
}
.tg-logo { display: block; width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 21px; box-shadow: 0 0 0 2px rgba(246,238,247,0.55); }
.tg-kicker {
  margin: 0 0 4px;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e3cfe9;
}
.tg-band h1 {
  margin: 0;
  font-size: clamp(40px, 11vw, 62px);
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1.02;
}
.tg-mottoline {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,238,247,0.82);
}
.tg-coverline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 12px;
  padding: 7px 8px 6px;
  border-top: 3px double var(--hairline);
  border-bottom: 3px double var(--hairline);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tg-coverdot { color: var(--brass); font-size: 7px; }
#tg-week { color: var(--ink); }

/* ---------- Standfirst ---------- */
.tg-standfirst {
  margin: 16px 4px 6px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
}
.tg-dropcap {
  float: left;
  font-size: 52px;
  line-height: 0.82;
  padding: 4px 7px 0 0;
  color: var(--oxblood);
  font-weight: 700;
}

/* ---------- Sections ---------- */
.tg-section { margin-top: 26px; }
.tg-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}
.tg-h2::before, .tg-h2::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--hairline);
}
.tg-h2 span { position: relative; padding: 0 2px; }
.tg-h2 span::after {
  content: "◆";
  display: block;
  text-align: center;
  font-size: 6px;
  color: var(--brass);
  letter-spacing: 0;
  margin-top: 2px;
}
.tg-quiet { color: var(--muted); font-style: italic; font-size: 14px; margin: 6px 2px; }

/* ---------- Listing rows ---------- */
.tg-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--hairline-soft);
}
.tg-num {
  font-size: 20px;
  color: var(--brass);
  min-width: 20px;
  text-align: right;
  font-weight: 700;
}
.tg-thumb {
  width: 52px;
  height: 74px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  background: var(--card);
  flex: none;
  box-shadow: 0 1px 3px rgba(43,29,51,0.28);
}
.tg-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--muted);
  background: var(--card);
  font-weight: 700;
}
.tg-main { flex: 1; min-width: 0; }
.tg-pick {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  border: 1px solid var(--brass);
  padding: 2px 7px 1px;
  margin-bottom: 4px;
  background: rgba(125,90,133,0.08);
}
.tg-name {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.28;
}
.tg-name.tg-done { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.tg-detail { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 2px; }
.tg-when {
  flex: none;
  font-size: 13px;
  font-style: italic;
  color: var(--ink);
  text-align: right;
  max-width: 38%;
  line-height: 1.35;
  border-left: 1px solid var(--hairline);
  padding-left: 10px;
}

/* ---------- Regulars grid ---------- */
.tg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 14px;
}
.tg-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  padding: 8px 8px 10px;
  text-align: center;
}
.tg-card img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  display: block;
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 2px 5px rgba(43,29,51,0.22);
}
.tg-cardimg-blank {
  width: 100%;
  aspect-ratio: 5 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--hairline-soft);
}
.tg-cardfig { padding-top: 8px; border-top: 1px solid var(--hairline-soft); margin-top: 8px; }
.tg-cardname { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.tg-cardcap { font-size: 11.5px; color: var(--muted); font-style: italic; margin-top: 3px; line-height: 1.35; }
.tg-card > .tg-x {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(251,247,252,0.92);
}
.tg-xconfirm {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  background: var(--paper, #fbf7fc);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(43,29,51,0.12);
  white-space: nowrap;
}
.tg-row > .tg-xconfirm { top: 50%; transform: translateY(-50%); right: 6px; }
.tg-card > .tg-xconfirm { left: 4px; right: 4px; flex-wrap: wrap; justify-content: center; white-space: normal; gap: 5px; padding: 6px; text-align: center; }
.tg-xconfirm-q { font-size: 11px; font-style: italic; color: var(--muted); }
.tg-xconfirm-yes, .tg-xconfirm-keep {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
}
.tg-xconfirm-yes { background: var(--oxblood, #382340); color: #fbf7fc; border: 1px solid var(--oxblood, #382340); }
.tg-xconfirm-keep { background: transparent; color: var(--muted); border: 1px solid var(--hairline); }

/* ---------- Forms ---------- */
.tg-addbar { display: flex; gap: 8px; margin-top: 12px; max-width: 330px; }
.tg-addbar input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
  padding: 8px 11px;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--ink);
}
.tg-addbar input:focus { outline: 1px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.tg-addbar.tg-small { margin-top: 10px; }
.tg-addbar.tg-small input { font-size: 16px; padding: 7px 10px; }
button {
  font-family: inherit;
  cursor: pointer;
}
.tg-addbar button, .tg-match button {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--oxblood);
  color: #f6eef7;
  border: 1px solid var(--oxblood-deep);
  padding: 0 13px;
  min-height: 34px;
}
.tg-addbar.tg-small button { min-height: 33px; padding: 0 12px; }
.tg-addbar button:disabled, .tg-match button:disabled { opacity: 0.55; cursor: default; }

/* ---------- Item rows (wanted / movies) ---------- */
.tg-check {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid var(--muted);
  background: #fff;
  flex: none;
  margin: 0;
  cursor: pointer;
  position: relative;
}
.tg-check:checked { background: var(--oxblood); border-color: var(--oxblood); }
.tg-check:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  color: #f6eef7;
  font-size: 12px;
  text-align: center;
  line-height: 16px;
}
.tg-clapper {
  width: 52px;
  height: 74px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #e3cfe9;
  font-size: 22px;
  border: 1px solid var(--ink);
}
.tg-x {
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

/* ---------- Colophon ---------- */
.tg-colophon {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}
.tg-asterism { color: var(--brass); font-size: 16px; margin: 0 0 4px; font-style: normal; }

/* ---------- Desktop ---------- */
@media (min-width: 700px) {
  body { padding: 34px 0 60px; }
  .tg-page { padding: 34px 44px 54px; }
  .tg-band h1 { letter-spacing: 0.07em; }
  .tg-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Tonight's plan ---------- */
.tg-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  max-width: 470px;
  background: var(--card);
  border: 1px solid var(--brass);
  outline: 1px solid rgba(125,90,133,0.35);
  outline-offset: -4px;
}
.tg-cand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 430px;
  text-align: left;
  padding: 8px 10px;
  margin-top: 8px;
  background: transparent;
  border: 1px dashed var(--hairline);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.tg-cand:active { background: rgba(125,90,133,0.08); }
.tg-candimg {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  background: var(--card);
  flex: none;
}
.tg-candimg.tg-blank { font-size: 15px; }
.tg-candmain { display: flex; flex-direction: column; min-width: 0; }
.tg-candname { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.tg-candwhen { font-size: 12.5px; font-style: italic; color: var(--muted); margin-top: 1px; }

/* ---------- Movie votes ---------- */
.tg-votes { display: flex; flex-direction: column; gap: 6px; flex: none; }
.tg-vote {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.tg-vote-on {
  background: var(--brass);
  border-color: var(--brass);
  color: #fbf7fc;
}
.tg-v-amie.tg-vote-on { background: #f4b3c7; border-color: #d98aa6; color: #4a2f55; }
.tg-v-ron.tg-vote-on { background: #a6c6ee; border-color: #7fa6d6; color: #4a2f55; }

/* ---------- New-episode badge ---------- */
.tg-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6eef7;
  background: var(--oxblood);
  padding: 2px 7px 1px;
  margin: 0 6px 4px 0;
}
.tg-pick + .tg-new { margin-top: 2px; }

/* ---------- Watch links ---------- */
.tg-watch {
  display: inline-block;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
}

/* ---------- Panels (preview) ---------- */
.tg-panel {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 20px 18px 22px;
  box-shadow: 0 1px 0 rgba(251,247,252,0.6) inset, 0 8px 20px rgba(43,29,51,0.08);
}
.tg-panel .tg-h2 { margin-top: 0; }

.tv-clear {
  background: none; border: none;
  color: #b79bb9;
  font-size: 10.5px; font-style: italic;
  text-decoration: underline;
  cursor: pointer; padding: 0;
}
.tg-colo-small { font-size: 10.5px; }

/* ---------- Simplified preview: chapters + tonight rows ---------- */
.tg-chap {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 6px;
  margin: 22px 0 12px;
}
.tg-chapmark { color: var(--muted); letter-spacing: 0.18em; }
.tg-nightright {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 7px;
  flex: none;
}
.tg-settle {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fbf7fc;
  background: var(--oxblood);
  border: 1px solid var(--oxblood);
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.tg-nightclear {
  background: none; border: none;
  color: var(--muted);
  font-size: 10.5px; font-style: italic;
  text-decoration: underline;
  cursor: pointer; padding: 0;
}
.tg-row-chosen {
  background: rgba(169,138,166,0.08);
  border-radius: 4px;
  margin-left: -8px; margin-right: -8px;
  padding-left: 8px; padding-right: 8px;
}
#tg-tonight .tg-row { border-bottom: 1px solid var(--hairline-soft); }
#tg-tonight .tg-row:last-child { border-bottom: none; }
.tg-addnote{font-size:11.5px;margin-top:8px;min-height:0}.tg-addnote:empty{display:none}
/* ---------- Airing rows: one grid ---------- */
.tg-air {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.tg-air:last-child { border-bottom: none; }
.tg-airimg { width: 56px; height: 82px; object-fit: cover; border-radius: 3px; box-shadow: 0 3px 8px rgba(43,29,51,0.25); }
.tg-airimg.tg-blank { display: flex; align-items: center; justify-content: center; background: var(--oxblood); color: #f0e3f3; font-size: 22px; font-family: Georgia, serif; }
.tg-airbody { min-width: 0; }
.tg-airtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 20px; margin-bottom: 3px; }
.tg-airwhen { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.tg-airtop .tg-new, .tg-airtop .tg-pick { margin: 0; }
.tg-airname { font-family: Georgia, 'Times New Roman', serif; font-size: 16.5px; font-weight: 700; line-height: 1.22; }
.tg-airacts { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.tg-airacts .tg-watch { margin-top: 0; }
.tg-air-chosen { background: rgba(169,138,166,0.08); border-radius: 4px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.tg-planned { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oxblood); }
.tg-airacts .tg-nightclear { flex: none; }
.tg-airname, .tg-name, .tg-cardname, .tg-detail, .tg-cardcap { text-wrap: balance; overflow-wrap: break-word; }
.tg-new, .tg-pick, .tg-planned, .tg-airwhen { white-space: nowrap; }
/* ---------- Add buttons ---------- */
.tg-addnav { margin: 18px 0 0; }
.tg-addbtns { display: flex; gap: 10px; }
.tg-addtoggle {
  flex: 1;
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--oxblood);
  background: transparent;
  border: 1px solid var(--oxblood);
  border-radius: 3px;
  padding: 10px 8px;
  cursor: pointer;
}
.tg-addtoggle-on { background: var(--oxblood); color: #fbf7fc; }
.tg-addpane { margin-top: 10px; padding: 12px; background: var(--card); border: 1px solid var(--hairline); border-radius: 4px; }
.tg-addpane[hidden] { display: none; }
.tg-addpane .tg-addbar { margin-top: 0; max-width: none; }
.tg-addnote { font-size: 12px; font-style: italic; color: var(--muted); margin-top: 8px; text-align: center; }
.tg-addnote:empty { display: none; }
.tg-addtoggle { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; }
.tg-addtoggle .tg-ico { flex: none; }
/* ---------- YouTube channels ---------- */
.tg-ytblock { position: relative; margin-bottom: 18px; }
.tg-ythead { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-right: 30px; }
.tg-ytname { font-family: Georgia, 'Times New Roman', serif; font-size: 16.5px; font-weight: 700; flex: 1; min-width: 0; }
.tg-ytpos { font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }
.tg-ythead > .tg-x { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.tg-ythead .tg-xconfirm { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.tg-ytrail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; }
.tg-ytrail::-webkit-scrollbar { display: none; }
.tg-ytslide { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; color: inherit; text-decoration: none; }
.tg-ytthumbwrap { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #2b1d33; box-shadow: 0 3px 9px rgba(43,29,51,0.28); }
.tg-ytthumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-ytnew { position: absolute; top: 8px; left: 8px; margin: 0; }
.tg-ytbadge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oxblood); border: 1px solid var(--oxblood); border-radius: 2px; padding: 1px 6px; white-space: nowrap; }
.tg-ytlink { margin-top: 7px; font-size: 13.5px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.tg-ytslide .tg-detail { margin-top: 2px; }
.tg-addbtns { gap: 8px; }
.tg-addtoggle { gap: 6px; padding: 8px 4px; font-size: 10px; letter-spacing: 0.1em; }
.tg-addtoggle .tg-ico { width: 32px; height: 28px; }
.tg-addtoggle { min-width: 0; }
@media (max-width: 360px) {
  .tg-addtoggle { font-size: 9px; letter-spacing: 0.04em; gap: 4px; }
  .tg-addtoggle .tg-ico { width: 24px; height: 22px; }
}
/* ---------- Collapsible collection ---------- */
.tg-colltoggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; color: inherit; text-align: left; }
.tg-collhead { display: flex; flex-direction: column; gap: 3px; }
.tg-collttl { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.tg-collsum { font-size: 12px; font-style: italic; color: var(--muted); }
.tg-collchev { font-size: 18px; color: var(--oxblood); transition: transform 0.25s ease; }
.tg-coll-open .tg-collchev { transform: rotate(180deg); }
#tg-collbody[hidden] { display: none; }
#tg-collbody { margin-top: 16px; }
/* ---------- Search results ---------- */
.tg-results { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--hairline); border-radius: 4px; background: var(--card); overflow: hidden; }
.tg-results[hidden] { display: none; }
.tg-res + .tg-res { border-top: 1px solid var(--hairline-soft); }
.tg-res-btn { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: none; padding: 8px 10px; text-align: left; cursor: pointer; font-family: inherit; color: inherit; }
.tg-res-btn:hover, .tg-res-btn:focus-visible { background: rgba(169,138,166,0.10); outline: none; }
.tg-res-img { width: 36px; height: 52px; object-fit: cover; border-radius: 3px; flex: none; box-shadow: 0 2px 5px rgba(43,29,51,0.25); background: var(--oxblood); }
.tg-res-img.tg-res-blank { display: flex; align-items: center; justify-content: center; color: #f0e3f3; font-family: Georgia, serif; font-size: 18px; }
#tg-res-yt .tg-res-img { border-radius: 50%; width: 44px; height: 44px; }
.tg-res-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tg-res-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 14.5px; line-height: 1.25; text-wrap: balance; }
.tg-res-sub { font-size: 11.5px; font-style: italic; color: var(--muted); margin-top: 2px; }
.tg-res-add { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--oxblood); border: 1px solid var(--oxblood); border-radius: 3px; padding: 4px 8px; flex: none; }
.tg-res-msg { padding: 12px; font-size: 12.5px; font-style: italic; color: var(--muted); text-align: center; }

/* No zoom or sideways shift when a box is focused */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; touch-action: manipulation; }
body { overflow-x: hidden; max-width: 100vw; }
input, select, textarea { font-size: 16px !important; }
.tg-addpane, .tg-results { max-width: 100%; box-sizing: border-box; }

/* Add buttons: icon above label so three fit without crowding */
.tg-addtoggle { flex-direction: column; gap: 4px; padding: 9px 4px 8px; font-size: 10px; letter-spacing: 0.14em; line-height: 1.1; }
.tg-addtoggle .tg-ico { width: 34px; height: 30px; }
@media (max-width: 380px) { .tg-addtoggle { font-size: 9.5px; letter-spacing: 0.1em; } .tg-addtoggle .tg-ico { width: 30px; height: 27px; } }
@media (max-width: 380px) { .tg-mottoline { letter-spacing: 0.12em; font-size: 9px; } }

.tg-demonote { margin: 10px 4px 0; text-align: center; font-size: 12.5px; font-style: italic; color: var(--muted); line-height: 1.4; }
