/* Eco-Clean — shared chrome (masthead, nav, account strip).
   Palette matches the rest of the fleet: #0f1115 bg, #171a21 card,
   #262b35 border, #e6e8eb ink, #9aa3af muted. */

:root {
  color-scheme: dark;
  --bg: #0f1115;
  --card: #171a21;
  --line: #262b35;
  --fg: #e6e8eb;
  --dim: #9aa3af;
  --accent: #4ade80;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── masthead ─────────────────────────────────────────────────────────── */

.ec-head {
  border-bottom: 1px solid var(--line);
  padding: .8rem 1.25rem;
}

.ec-masthead {
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.ec-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  text-decoration: none;
}

/* The mark carries its own white field, so it needs no plate behind it on
   the dark chrome — it just must not stretch when the row wraps. */
.ec-logo {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
}

.ec-nav {
  display: flex;
  gap: .25rem;
  margin-left: .6rem;
}

.ec-nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: .88rem;
  padding: .3rem .7rem;
  border-radius: 8px;
}

.ec-nav a:hover { background: #1e232d; color: var(--fg); }
.ec-nav a.on { background: #232936; color: var(--fg); }

/* The account strip. Pushed to the right end of the masthead row rather than
   fixed-positioned, so it never covers content on a phone. */
.ec-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--dim);
}

.ec-account a { color: var(--accent); text-decoration: none; }
.ec-account a:hover { text-decoration: underline; }

.ec-account img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
}

.ec-account .ec-who {
  max-width: 26ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── icons ────────────────────────────────────────────────────────────────
   Decorative emoji on section headings and buttons. Always paired with
   aria-hidden at the call site: a screen reader announcing "wastebasket
   Remove" is worse than no icon at all. The label always carries the
   meaning; the glyph only helps the eye find it. */
.ico {
  font-style: normal;
  margin-right: .4rem;
  opacity: .9;
}

.ec-role {
  display: inline-block;
  font-size: .68rem;
  padding: .08rem .45rem;
  border-radius: 99px;
  background: #232936;
  border: 1px solid var(--line);
  color: var(--dim);
}

@media (max-width: 34rem) {
  .ec-account .ec-who { display: none; }
  .ec-nav { margin-left: 0; }
}
