/* The Overview tab (public/overview.js). Colour is never the only signal: every chip says its state in words. */
.ov-demo {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 10px;
  background: var(--raised); color: var(--ink); border: 1px dashed var(--ink); font-size: 14px;
}
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ov-tile {
  border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px;
  background: var(--surface); color: var(--ink); display: flex; flex-direction: column; gap: 6px;
}
.ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ov-head h3 { margin: 0; font-size: 16px; font-family: var(--display, inherit); }
.ov-chip {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.2;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink);
  background: var(--raised); display: inline-flex; align-items: center; gap: 5px; text-align: left;
}
.ov-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.ov-built::before { background: #2e7d32; }
.ov-waiting::before { background: #b7791f; }
.ov-says { margin: 0; font-size: 14px; }
.ov-info { margin: 0; font-size: 13px; color: var(--muted); }
.ov-rows { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.ov-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-top: 1px solid var(--hairline); }
.ov-status { color: var(--muted); }
.ov-rows li { flex-wrap: wrap; }
.ov-rownote { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.ov-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ov-more { margin-top: 4px; font-size: 14px; }
.ov-more summary { cursor: pointer; padding: 6px 0; min-height: 24px; }
.ov-tours h4 { margin: 10px 0 4px; font-size: 14px; }
.ov-tourlist { margin: 0; padding-left: 18px; font-size: 14px; }
@media (max-width: 480px) { .ov-grid { grid-template-columns: 1fr; } }

/* A company's own colours on the owner panel (applyPanelTheme in operator.js). Only set when the file has a theme. */
.themed .deskhead { background: var(--brand-header); color: var(--brand-header-text); padding: 14px 16px; border-radius: 12px; margin-bottom: 12px; }
.themed .deskhead #sub, .themed .deskhead .whoami { color: var(--brand-header-text); }
.themed .deskhead .linky { color: var(--brand-header-text); }

/* Settings, Partner booking checks (public/b2bpanel.js) */
.b2b-rules { margin: 8px 0 12px; padding-left: 18px; }
.b2b-partners { list-style: none; margin: 6px 0 10px; padding: 0; }
.b2b-partner { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--hairline); }
.b2b-code { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: var(--raised); color: var(--ink); }
.b2b-word { font-size: 22px; font-weight: 700; letter-spacing: .02em; margin: 4px 0; }

/* The selected Settings screen: dark text on the tint. The company colour alone on its own tint can fall under 4.5:1 (red on pink is 4.1). */
.subtab[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* The Preview badge in the rules box: dark text, so it stays readable on the tint in any company colour. */
.rb-badge { color: var(--ink); }

/* The Today screen (public/today.js). Plain blocks; the look comes from the panel's own colours. */
#today-root section { margin: 0 0 22px; }
#today-root h3 { margin: 0 0 8px; font-size: 20px; }
.today-need {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; background: var(--surface);
}
.today-need-text { margin: 0; font-size: 17px; font-weight: 600; }
.today-big { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.today-clear, .today-setup-count { margin: 0 0 8px; color: var(--muted); }
.today-curation {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 16px; background: var(--surface);
}
.today-curation-text { margin: 0; font-weight: 600; }
.today-list { list-style: none; margin: 0; padding: 0; }
.today-list li {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 10px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--hairline);
}
.today-list .check { color: var(--muted); text-align: center; }
.today-list li.done .check { color: #2e7d32; }
.today-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.today-item-detail { color: var(--muted); font-size: 14px; }
.today-list a.button { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; text-decoration: none; border: 1px solid var(--hairline); border-radius: 10px; color: var(--ink); }
.today-done { margin-top: 6px; }
.today-done summary { cursor: pointer; padding: 6px 0; min-height: 24px; }
.today-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.today-fact { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 16px; background: var(--surface); }
.today-fact h3 { margin: 0 0 4px; font-size: 16px; }
.today-fact p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) {
  .today-list li { grid-template-columns: 24px 1fr; }
  .today-list li > button, .today-list li > a { grid-column: 2; justify-self: start; }
}

/* One filled button per screen, in the company's deep colour. Everything else is quiet. */
#today-root .primary { background: var(--aurora); border-color: var(--aurora); color: #fff; font-weight: 600; }
#today-root .primary:hover { filter: brightness(1.08); }
#today-root h2, .today-need-text, .today-fact h3, .mapplace h3 { font-family: var(--display, inherit); }
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.today-head h2 { margin: 0; font-size: 28px; }
.today-date { color: var(--muted); font-size: 14px; }

/* The first screen's three card groups (public/today.js renderHome). Plain blocks; colours come from the panel. */
.home-greeting { margin: 0 0 14px; font-size: 17px; }
.home-group { border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.home-group h3 { margin: 0 0 2px; }
.home-note { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.home-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.home-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.home-item:first-child { border-top: 0; }
.home-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
.home-label small { color: var(--muted); font-size: 13.5px; }
.home-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.home-pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--raised); color: var(--ink); white-space: nowrap; }
.home-pill.working { color: var(--aurora); background: var(--aurora-soft); }
.home-open { min-height: 44px; padding: 0 14px; }
