/* The manager site (manager/index.html). Built on the site's own tokens in /styles.css (brand/BRAND.md, brand/tokens), so it
   follows the same light and dark themes, fonts and radii, including the owner's 8px button radius. */
/* Layout rules below set display on these blocks, which would beat the browser's own rule for the hidden attribute. */
[hidden] { display: none !important; }
.m-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
.m-wrap { max-width: var(--max); margin-inline: auto; padding-inline: max(16px, min(64px, 4vw)); box-sizing: border-box; }
.m-top { border-bottom: 1px solid var(--line); }
.m-top .logo-img { height: 32px; } /* brand minimum for the lockup: 120px wide */
.m-top-row { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.m-spacer { flex: 1; }
.m-eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.m-updated { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.m-main { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 24px; }
.m-board { display: flex; flex-direction: column; gap: 24px; }
.m-hero { display: flex; flex-direction: column; gap: 8px; }
.m-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: 0; max-width: 32ch; text-wrap: balance; }
.m-h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
.m-muted, .m-note { color: var(--muted); margin: 0; }
.m-note { font-size: 14px; }
.m-empty { color: var(--muted); margin: 8px 0 0; }
.m-section { display: flex; flex-direction: column; gap: 16px; }
.m-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.m-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: start; }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* Headline numbers */
.m-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.m-tile { gap: 6px; padding: 20px; }
.m-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.m-dot-lava { background: var(--accent); }
.m-num { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }

/* Lists */
.m-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.m-list li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.m-list li:first-child { border-top: 0; }
.m-list-tight li { padding: 8px 0; }
.m-list .m-what { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.m-list .m-where { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.m-list a { color: var(--accent-text); }
.m-chip { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.m-chip-lava { background: var(--accent); border-color: transparent; color: var(--accent-fg); }
.m-chip-ok { color: var(--ok); border-color: currentColor; }
.m-chip-warn { color: var(--warn); border-color: currentColor; }
.m-goals { margin: 4px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.m-goals small { display: block; color: var(--muted); font-size: 13px; }

/* Launch readiness */
.m-legend { display: flex; gap: 16px; margin: 0; font-size: 13px; color: var(--muted); }
.m-legend span { display: inline-flex; align-items: center; gap: 6px; }
.m-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--line-2); }
.m-sw-lava { background: var(--accent); }
.m-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.m-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.m-bar-name { font-size: 14px; overflow-wrap: anywhere; }
.m-bar-name small { color: var(--muted); }
.m-bar-count { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-track { grid-column: 1 / -1; display: flex; gap: 2px; height: 10px; }
.m-track-done { background: var(--accent); border-radius: 3px; }
.m-track-open { background: var(--line-2); border-radius: 3px; }

/* Departments */
.m-depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.m-dept h3 { font-size: 17px; font-weight: 650; margin: 0; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.m-dept code { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.m-dept-head { margin: 0; }
.m-dept-head span { color: var(--muted); }
.m-dept-stats { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-members { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.m-members span { color: var(--muted); }
.m-standup { margin: 4px 0 0; padding: 10px 12px; border-radius: var(--radius-btn); background: var(--raised); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }

/* Sign-in and messages */
.m-signin { max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.m-form { display: flex; flex-direction: column; gap: 8px; }
.m-form label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.m-form input { padding: 12px 14px; border-radius: var(--radius-btn); border: 1px solid var(--line-2); background: var(--field); color: var(--text); }
.m-row { display: flex; gap: 10px; margin-top: 6px; }
.m-btn { appearance: none; border: 0; border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-fg); font-weight: 600; padding: 12px 20px; cursor: pointer; min-height: 44px; margin-top: 6px; }
.m-btn:hover { background: var(--accent-hover); }
.m-btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); margin-top: 0; padding: 8px 14px; min-height: 40px; }
.m-btn-ghost:hover { background: var(--raised); }
.m-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-error { color: var(--bad); margin: 4px 0 0; font-size: 14px; }
.m-notice { margin: 0; padding: 14px 16px; border-radius: var(--radius-btn); border: 1px solid var(--line-2); background: var(--surface); }
.m-notice-quiet { color: var(--muted); }
.m-foot { margin-top: 8px; }
