/* SHOWS (shows.py, Kenyon 2026-10-17): Ideal Sales' look under its own name, both venues.
   Only what's new or different from portal.css, coord.css and sales.css lives here. */

/* portal.css and coord.css speak their own colour names, which sales.css's dark mode doesn't
   set: left alone, a box stays white under near-white words. Each one follows sales.css here. */
body.shows { --wash: var(--soft); --ink-2: var(--muted); --ground: var(--card); --ok: var(--green);
             --ep-field-line: var(--field-line); }
body.shows .sel { background: var(--field); }

/* Both venues: Event Planner's red Ideal / blue Olympic tags (Ideal Sales went black). */
body.shows .vtag.ideal { background: #BD2035; border-color: #BD2035; color: #fff; }
body.shows .vtag.oly { background: #3E5D88; border-color: #3E5D88; color: #fff; }

/* THE PIPELINE: seven stages and "Every show". */
.stats.pipe { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.stats.pipe .stat { padding: 12px 10px; }
.stats.pipe .sk { line-height: 1.25; }
.stats.pipe .stat.hot .sd { color: #F0566B; font-weight: 700; }
@media (max-width: 1100px) { .stats.pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats.pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dlist { margin-bottom: 30px; }

/* TIME IN STAGE, red past the stage's limit. */
.instage.late { color: var(--accent); font-weight: 700; }
.lname .supn { font: 400 13px/1 "Lato", system-ui, sans-serif; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.flag { display: block; font-size: 13px; margin-top: 3px; color: var(--ink-2); }
.flag.stop { color: var(--accent); font-weight: 700; }
.flag.warn { color: var(--amber); }

/* THE SHOW PAGE */
.back { margin: 0 0 14px; }
.back a { text-decoration: none; font-weight: 700; }
.showhead { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: start;
            border-bottom: 3px solid var(--ink); padding-bottom: 18px; margin-bottom: 18px; }
.sh-date { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.sh-date .d { font: 500 38px/1 "Oswald", Impact, sans-serif; }
.sh-date .m, .sh-date .w, .sh-date .y { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.sh-main h1 { margin: 0 0 4px; }
.sh-with { margin: 0 0 6px; font-size: 17px; }
.sh-stage { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.stagepill { font-weight: 700; }
.pill.late { border-color: var(--accent); color: var(--accent); }
.pill.okp { border-color: var(--ok); color: var(--ok); }
.pill.small { font-size: 12px; padding: 0 8px; }
.flags { list-style: none; margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--accent-bg); }
.flags .flag { font-size: 15px; margin: 2px 0; }
.sections { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .sections { grid-template-columns: 1fr; } .showhead { grid-template-columns: 60px minmax(0, 1fr); }
  .sh-stage { grid-column: 1 / -1; align-items: flex-start; text-align: left; } }
.sec h2 { margin-top: 0; }
.sec h3 { margin: 18px 0 6px; font-size: 16px; }
.kvs { margin: 0; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-2); font-size: 14px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.checks { list-style: none; margin: 12px 0; padding: 0; }
.checks li { padding: 4px 0 4px 26px; position: relative; color: var(--ink-2); }
.checks li::before { content: "○"; position: absolute; left: 2px; }
.checks li.ok { color: var(--ink); }
.checks li.ok::before { content: "✓"; color: var(--ok); font-weight: 700; }
.checks li.paused { color: var(--accent); font-weight: 700; }
.checks li.paused::before { content: "‖"; }
.checks a { margin-left: 6px; font-size: 14px; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.docs li .small { display: block; margin-top: 2px; }
.soon { margin-top: 14px; font-style: italic; }
.flags.calm { border-left-color: var(--amber); background: var(--amber-bg); }
/* On a phone the In stage column folds away; the time in stage moves under the name. */
.instage-m { display: none; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.instage-m.late { color: var(--accent); font-weight: 700; }
@media (max-width: 640px) { .instage-m { display: block; } }

/* STAGE HEADINGS IN A BOX (Kenyon, 2026-10-17): no underline, no column header row. */
.stagebox { display: flex; justify-content: space-between; align-items: center; gap: 12px;
            margin: 0 0 6px; padding: 12px 18px; background: var(--wash); border: 1px solid var(--line);
            border-radius: 6px; font-size: 16px; }
.stagebox .ltotal { background: var(--ink); color: var(--on-strong); border-radius: 999px; padding: 1px 10px;
                    font-size: 13px; font-weight: 700; }
.qsec.stuckgrp { border-top: 0; margin-bottom: 6px; }
.stuckgrp .qlabel { padding-top: 8px; }
.instage { display: flex; flex-direction: column; }
.instage .cap { font-size: 12px; color: var(--ink-2); font-weight: 400; }

/* DAYS OUT UNDER THE DATE (Kenyon, 2026-10-17); the card's details take the rest of the width. */
body.shows .srow { grid-template-columns: 76px minmax(0, 1fr) 96px; }
.ldate .dout { margin-top: 6px; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center;
               color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) { body.shows .srow { grid-template-columns: 74px minmax(0, 1fr); } }

/* IN ADVANCING on the show page */
.sh-stage .stagepill + .stagepill { margin-top: 2px; }
.advstate { margin: 0 0 12px; }

/* DEPOSIT DUE (Kenyon, 2026-10-17): a tag beside the act's name, red once overdue. */
.deptag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
          border: 1px solid var(--amber); color: var(--amber); font: 700 11px/1.5 "Lato", system-ui, sans-serif;
          text-transform: uppercase; letter-spacing: .05em; }
.deptag.late { background: var(--accent); border-color: var(--accent); color: var(--on-strong); }
.depform { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; align-items: end; margin-top: 8px; }
.depform label { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.depform input { font: inherit; font-size: 16px; padding: 6px 8px; border: 1px solid var(--field-line); border-radius: 4px; min-width: 0;
                background: var(--field); color: var(--ink); }
.depform .depgo { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .depform { grid-template-columns: 1fr; } }
.late-text { color: var(--accent); }
.depedit { margin-top: 8px; }
.depedit summary { cursor: pointer; }

/* FROM EMAIL (the shows@ sweep) */
.mailtag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
           background: #1F4E79; color: #fff; font: 700 11px/1.5 "Lato", system-ui, sans-serif; letter-spacing: .03em; }
.fromemail { margin-bottom: 16px; }
.emailed { list-style: none; margin: 0; padding: 0; }
.emailed li { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
              padding: 10px 0; border-bottom: 1px solid var(--line); }
.emailed li.em-pending { background: var(--blue-bg); margin: 0 -20px; padding: 10px 20px; border-left: 4px solid var(--blue); }
.emailed li.em-shadow, .emailed li.em-dismissed { opacity: .75; }
.em-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.em-what q { color: var(--ink-2); font-style: italic; overflow-wrap: anywhere; }
.em-act { display: flex; gap: 8px; flex: none; }
.em-act form { margin: 0; }
@media (max-width: 640px) { .emailed li { flex-direction: column; } }
.inboxlog .mrow { padding: 12px 0; border-bottom: 1px solid var(--line); }
.inboxlog .mrow .small { display: block; }
.inboxlog ul { margin: 6px 0 0; padding-left: 18px; }

/* SETTLEMENT (moved from Event Day, 2026-10-27): the door count, then the arithmetic as a
   column of label / amount lines with tabular figures, the owed line ruled off. */
.settleform .sf { display: block; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.settleform .sf input { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px;
  color: var(--ink); background: transparent; border: 1px solid var(--field-line); border-radius: 10px; padding: 11px 12px; }
.settleform .sf[hidden] { display: none; }
.calc .cr { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 15px; }
.calc .cr b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .cr.less, .calc .cr.tier, .calc .cr.out { color: var(--muted); font-size: 14px; }
.calc .cr.sub { border-top: 1px solid var(--field-line); padding-top: 9px; margin-top: 2px; }
.calc .cr.owed { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 11px; font-size: 17px; }
.calc .cr.owed b { font-size: 19px; }

/* THE ONE VIEW (Kenyon, 2026-11-20): on sale with tickets + ads, then ready to go on sale. */
.gl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 26px; }
.gl-tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.gl-tile b { display: block; font: 700 40px/1.05 "Lato", system-ui, sans-serif; color: var(--ink); }
.gl-tile span { font-size: 15px; color: var(--ink-2); }
.gl-tile em { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.gl-tile.zero b, .gl-n.zero b { color: var(--ink-2); opacity: .55; }
.gl-tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gl-tiles.one { grid-template-columns: minmax(0, 260px); margin-bottom: 12px; }
.gl-side { font: 700 28px/1.1 "Lato", system-ui, sans-serif; text-transform: none; letter-spacing: 0; margin: 28px 0 6px; padding-top: 18px; border-top: 3px solid var(--ink); }
.gl-side:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.gl-span { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.gl-team { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; margin-bottom: 6px; }
.gl-tr { display: grid; grid-template-columns: 90px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gl-tr:last-child { border-bottom: 0; }
.gl-th { font-size: 13px; color: var(--ink-2); padding: 8px 0; }
.gl-who { font-weight: 700; font-size: 17px; }
.gl-n b { display: block; font: 700 32px/1 "Lato", system-ui, sans-serif; }
.gl-n em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.gl-src { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.gl-sr { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 10px; align-items: center; padding: 6px 0; font-size: 15px; }
.gl-sr .gl-bar { margin: 0; height: 10px; border-radius: 5px; }
.gl-sr .gl-bar i { border-radius: 5px; background: var(--blue); }
.gl-sr b { text-align: right; font-size: 18px; }
.gl-sec { margin-bottom: 32px; }
.gl-h { font: 700 15px/1 "Lato", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 12px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.gl-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--ink); text-decoration: none; }
.gl-card:hover, .gl-item:hover { border-color: var(--ink-2); }
.gl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gl-name { font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--ink); }
.gl-when { display: block; font-size: 13px; color: var(--ink-2); margin: 4px 0 12px; }
.gl-when .vtag { vertical-align: 1px; }
.gl-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 15px; }
.gl-k { font-size: 13px; color: var(--ink-2); }
.gl-v b { font-size: 18px; }
.gl-x { font-size: 14px; color: var(--ink-2); text-align: right; }
.gl-quiet { color: var(--ink-2); }
.gl-bar { height: 6px; border-radius: 3px; background: var(--track); margin: 6px 0 0 72px; overflow: hidden; }
.gl-bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.gl-bar.ads i { background: var(--blue); }
.gl-bar.ads.full i { background: var(--amber); }
.gl-foot { font-size: 13px; color: var(--ink-2); margin: 8px 0 0 72px; }
.gl-live { color: var(--green); font-weight: 700; }
.gl-pill { flex: none; display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.gl-pill.good { background: var(--green-bg); border-color: transparent; color: var(--green); }
.gl-pill.warn { background: var(--amber-bg); border-color: transparent; color: var(--amber); }
.gl-pill.bad { background: var(--accent-bg); border-color: transparent; color: var(--accent); }
.gl-list { display: grid; gap: 8px; }
.gl-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n p" "w p"; align-items: center; column-gap: 12px;
           background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-decoration: none; }
.gl-item .gl-name { grid-area: n; font-size: 16px; }
.gl-item .gl-when { grid-area: w; margin: 2px 0 0; }
.gl-item .gl-pill { grid-area: p; }
@media (max-width: 900px) { .gl-tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gl-tiles, .gl-tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-grid { grid-template-columns: 1fr; }
  .gl-tile b { font-size: 32px; } .gl-tr { grid-template-columns: 64px repeat(4, minmax(0, 1fr)); gap: 4px; } .gl-n b { font-size: 24px; }
  .gl-th { font-size: 11px; } .gl-who { font-size: 15px; } .gl-sr { grid-template-columns: 110px minmax(0, 1fr) 32px; } }

/* SIDE BY SIDE (Kenyon, 2026-11-21): shows left, private events right. The open side is wide;
   the other folds to a bar showing its few big numbers. Phone: swipe between full sides. */
body:has(.gl-duo) :is(body > main, body > footer, .top-in) { max-width: 1400px; }
.gl-duo { display: grid; gap: 18px; align-items: start; transition: grid-template-columns .28s ease; }
.gl-duo[data-open="shows"] { grid-template-columns: minmax(0, 1fr) 200px; }
.gl-duo[data-open="priv"] { grid-template-columns: 200px minmax(0, 1fr); }
.gl-pane { min-width: 0; }
.gl-full .gl-side { border-top: 0; padding-top: 0; margin-top: 4px; }
.gl-duo[data-open="shows"] [data-side="priv"] .gl-full,
.gl-duo[data-open="priv"] [data-side="shows"] .gl-full,
.gl-duo[data-open="shows"] [data-side="shows"] .gl-peek,
.gl-duo[data-open="priv"] [data-side="priv"] .gl-peek { display: none; }
.gl-peek { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 18px; width: 100%; text-align: left;
  background: #141414; color: #fff; border: 1px solid #2a2a2a; border-radius: 16px; padding: 18px 16px 20px; cursor: pointer; font: inherit; }
.gl-peek:hover { background: #262626; }
.gl-pk-h { font: 700 19px/1.2 "Lato", system-ui, sans-serif; display: flex; align-items: center; gap: 8px; }
.gl-pk-h i { font-style: normal; font-size: 26px; line-height: 1; opacity: .7; }
[data-side="shows"] .gl-pk-h { justify-content: space-between; }
.gl-pk { display: block; font-size: 13px; color: rgba(255,255,255,.72); }
.gl-pk b { display: block; font: 700 30px/1.05 "Lato", system-ui, sans-serif; color: #fff; }
.gl-pk.zero b { opacity: .45; }
.gl-pk-s { font-size: 12px; color: rgba(255,255,255,.55); }
.gl-peek .gl-pill { align-self: flex-start; }
.gl-dots { display: none; }
@media (max-width: 760px) {
  .gl-dots { display: flex; gap: 6px; position: sticky; top: 0; z-index: 3; background: var(--bg, #fff); padding: 8px 0 10px; margin-bottom: 4px; }
  .gl-dots button { flex: 1; font: 700 15px/1 "Lato", system-ui, sans-serif; padding: 10px 0; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
  /* The picked side: ink on the page's own ground, so it reads in light AND dark (11/23 bug:
     dark mode made --ink white under white text). */
  .gl-dots button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .gl-duo, .gl-duo[data-open] { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); overscroll-behavior-x: contain; }
  .gl-duo::-webkit-scrollbar { display: none; }
  .gl-pane { flex: 0 0 100%; scroll-snap-align: start; padding: 0 var(--gutter); }
  .gl-duo .gl-peek { display: none !important; }
  .gl-duo .gl-pane .gl-full { display: block !important; }
}

/* PHONE FIRST (Kenyon, 2026-11-21: "I will primarily be using this app on the phone").
   One-line header: Dashboard left, headshot top right; Inbox/Team inside the account menu. */
.acctlinks { display: none; }
.gl-ph { display: none; }
@media (max-width: 640px) {
  body.shows .top-in { flex-wrap: nowrap; padding: 10px var(--gutter) 8px; }
  body.shows .nav > a { display: none; }
  body.shows .acct > summary { width: 38px; height: 38px; }
  body.shows .acctlinks { display: grid; padding: 4px 0; border-bottom: 1px solid var(--line); }
  body.shows .acctlinks a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 10px; }
  body.shows .acctlinks a:active { background: var(--soft); }
  body.shows .cbrand img { width: 36px; height: 36px; }
  body.shows .cb-1 { font-size: 21px; }
  body.shows .cbrand span span:last-child { font-size: 10px; letter-spacing: .14em; }
  /* The switch already says which side you're on; no second "Shows" heading under it. */
  .gl-duo .gl-side-shows { display: none; }
  .gl-duo .gl-side { font-size: 24px; margin-top: 2px; }
  .gl-tiles { gap: 8px; margin-bottom: 22px; }
  .gl-tile { padding: 12px 14px; }
  .gl-tiles.five > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gl-tiles.one { grid-template-columns: 1fr; }
  /* The team: big this-week number, the 30-day number small under it (no wrapped words). */
  .gl-team { padding: 2px 12px; }
  .gl-tr { grid-template-columns: 70px repeat(4, minmax(0, 1fr)); gap: 4px; padding: 10px 0; }
  .gl-n { text-align: center; } .gl-th span { text-align: center; }
  .gl-n em i { display: none; } .gl-n em { font-size: 13px; }
  .gl-ph { display: inline; }
  .gl-card { padding: 14px; }
}

/* ONE SHOW'S MARKETING (show_marketing.py, Kenyon 2026-11-21): phone first, one column.
   The ads are drawn like a feed post so they read the way people see them. */
.mk-wrap { max-width: 560px; }
.gl-pill.q { border-color: var(--ink-2); color: var(--ink); }
.mk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.mk-title h1 { margin: 0 0 4px; }
.mk-title .small { margin: 0; }
.mk-more { flex: none; font-weight: 700; text-decoration: none; padding-top: 6px; }
.mk-h { font-size: 18px; margin: 26px 2px 8px; }
.mk-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-sub { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.mk-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 8px; }
.mk-nums span { display: block; font-size: 12px; color: var(--ink-2); }
.mk-nums b { font-size: 22px; }
.mk-nums i { font-style: normal; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.mk-foot { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); }
.mk-err { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.mk-none { color: var(--ink-2); margin: 0 2px 12px; }
.mk-ad { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 12px; background: var(--card); }
.mk-adtop { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.mk-adtop > span:nth-child(2) { flex: 1; min-width: 0; }
.mk-adtop b, .mk-adtop em { display: block; font-size: 14px; }
.mk-adtop em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.mk-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.mk-adtext { margin: 0 12px 10px; font-size: 15px; white-space: pre-line; }
.mk-adimg { display: block; width: 100%; height: auto; background: var(--soft); }
.mk-noimg { padding: 60px 0; text-align: center; color: var(--ink-2); font-size: 13px; }
.mk-adlink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--soft); }
.mk-adlink > span:first-child { flex: 1; min-width: 0; }
.mk-adlink em, .mk-adlink b, .mk-adlink i { display: block; }
.mk-adlink em { font-style: normal; font-size: 11px; letter-spacing: .04em; color: var(--ink-2); }
.mk-adlink i { font-style: normal; font-size: 13px; color: var(--ink-2); }
.mk-cta { flex: none; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 8px; background: var(--line); }
.mk-also { display: flex; gap: 8px; padding: 10px 12px 0; overflow-x: auto; }
.mk-also img { height: 84px; width: auto; border-radius: 6px; }
.mk-also figure { margin: 0; text-align: center; font-size: 11px; color: var(--ink-2); }
.mk-alt { margin: 8px 12px 0; font-size: 13px; color: var(--ink-2); }
.mk-res { margin: 10px 12px 0; font-size: 14px; font-weight: 700; }
.mk-links { display: flex; gap: 16px; margin: 6px 12px 12px; font-size: 14px; }
.mk-list { padding-top: 4px; padding-bottom: 4px; }
.mk-post, .mk-msg { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.mk-post:first-child, .mk-msg:first-child { border-top: 0; }
.mk-thumb { flex: none; display: block; width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.mk-thumb.story { width: 40px; height: 70px; }
.mk-pmain, .mk-msg > div { flex: 1; min-width: 0; }
.mk-cap { margin-top: 4px; font-size: 13px; }
.mk-cap summary { list-style: none; cursor: pointer; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink-2); }
.mk-cap summary::-webkit-details-marker { display: none; }
.mk-cap[open] summary { display: none; }
.mk-cap p { margin: 0; white-space: pre-line; }
.mk-open { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 700; }
.mk-ico { flex: none; color: var(--ink-2); padding-top: 2px; }
.mk-quote { margin: 6px 0 0; font-size: 14px; padding: 8px 10px; background: var(--soft); border-radius: 10px; }
.mk-fresh { text-align: center; font-size: 13px; margin: 22px 0 8px; }
@media (max-width: 480px) { .mk-nums b { font-size: 19px; } .mk-card { padding: 12px 14px; } }

/* DASHBOARD v2 (Kenyon, 2026-11-23; DASHBOARD_V2_SPEC.md #418). */
a.gl-tile { display: block; text-decoration: none; color: inherit; position: relative; }
a.gl-tile:hover { border-color: var(--ink-2); }
a.gl-tile::after { content: "›"; position: absolute; top: 10px; right: 14px; font-size: 22px; color: var(--ink-2); opacity: .6; }
.gl-tile b small { font-size: .5em; font-weight: 700; color: var(--ink-2); }
.gl-tile.good b { color: var(--green); } .gl-tile.warn b { color: var(--amber); } .gl-tile.bad b { color: var(--accent); }
.gl-need { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.gl-fold { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 10px; }
.gl-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  font: 700 16px/1.2 "Lato", system-ui, sans-serif; color: var(--ink); }
.gl-fold > summary::-webkit-details-marker { display: none; }
.gl-fold > summary::after { content: "›"; margin-left: auto; font-size: 22px; color: var(--ink-2); transition: transform .2s; }
.gl-fold[open] > summary::after { transform: rotate(90deg); }
.gl-fold > summary .gl-wait { background: var(--accent); color: var(--accent-ink, #fff); border-radius: 999px; font-size: 12px; padding: 2px 9px; }
.gl-fold .gl-list { padding: 0 12px 12px; }
.gl-fold .gl-item { border-color: var(--line); }
.gl-fold .qempty { padding: 0 16px 14px; margin: 0; }
.gl-back { display: inline-block; font-size: 14px; color: var(--ink-2); text-decoration: none; margin: 6px 0 4px; }
.gl-back:hover { color: var(--ink); }
.gl-big { font: 700 22px/1.25 "Lato", system-ui, sans-serif; margin: 2px 0 10px; color: var(--ink); }
.gl-big .bad { color: var(--accent); }
.gl-lines { display: grid; gap: 4px; margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.gl-lines .gl-k { display: inline-block; min-width: 92px; }
.gl-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.gl-tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.gl-tbl td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gl-tbl .gl-r { text-align: right; white-space: nowrap; }
.gl-tbl a { color: var(--ink); font-weight: 700; text-decoration: none; }
.gl-tbl .sub td { font-size: 13px; color: var(--ink-2); padding-top: 4px; border-bottom: 0; }
.gl-tbl tr.grp td { border-bottom: 0; }
@media (max-width: 640px) { .gl-tbl .hide-ph { display: none; } }
