/* App-wide additions on top of hd-ui (keep small; prefer hd- classes). */
.hd-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--hd-fg); text-decoration: none; font-size: 14px; }
.hd-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.fx-landing { max-width: 720px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.fx-landing h1 { font-size: 34px; letter-spacing: -0.02em; margin: 16px 0 12px; }
.fx-landing p { font-size: 16px; color: var(--hd-muted); line-height: 1.6; margin: 0 auto 24px; max-width: 560px; }
.fx-landing .hd-gap-8 { justify-content: center; }
.fx-ws-list { display: flex; flex-direction: column; }
.fx-ws-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--hd-border-soft); text-decoration: none; color: var(--hd-fg); }
.fx-ws-list a:first-child { border-top: 0; }
.fx-ws-list a:hover { background: var(--hd-hover); }
.fx-slug-row { display: flex; align-items: center; gap: 6px; }
.fx-slug-row .hd-control { flex: 1; min-width: 0; }
.fx-slug-row span { color: var(--hd-muted); font-size: 13px; white-space: nowrap; }
.hd-hint.bad { color: var(--hd-red); }
.hd-r { text-align: right; }

/* ---------- Flexiibook look: blue accent, soft borders (shell itself: /css/shell.css) ---------- */
:root {
  --hd-blue: #167DD1;
  --hd-blue-bg: #eef3ff;
  --hd-border: #e8e8e5;
  --hd-border-soft: #f0f0ed;
  --hd-hover: #f7f7f5;
  --hd-ring: 0 0 0 3px rgba(22, 125, 209, 0.18);
}
.hd-btn.primary { background: #167DD1; border-color: #167DD1; color: #fff; }
.hd-btn.primary:hover { background: #1269b3; border-color: #1269b3; color: #fff; }
.hd-btn:focus-visible { outline-color: #167DD1; }
.hd .btn-primary, .hd .btn-success, .hd .btn-dark { background: #167DD1 !important; border-color: #167DD1 !important; }
.hd .btn-primary:hover, .hd .btn-success:hover, .hd .btn-dark:hover { background: #1269b3 !important; border-color: #1269b3 !important; }
.hd-control:focus, .hd .form-control:focus, .hd .form-select:focus { border-color: #167DD1; }
.hd :where(input[type=checkbox], input[type=radio]) { accent-color: #167DD1; }
/* Content links are blue, underlined on hover (buttons, tabs and menus keep their own colours) */
.hd :where(a) { color: #167DD1; text-decoration: none; }
.hd :where(a):hover { color: #1269b3; text-decoration: underline; text-decoration-color: currentColor; }
.hd-crumbs a { color: var(--hd-muted); }
/* Settings sub-navigation: same active pill as the sidebar */
.hd-subnav a { color: #666; font-weight: 500; }
.hd-subnav a:hover { background: var(--hd-hover); color: var(--hd-fg); text-decoration: none; }
.hd-subnav a.on { background: #eef3ff; color: #167DD1; font-weight: 600; }
.hd-subnav .hd-subnav-h { font-size: 10px; letter-spacing: 0.06em; color: #a3a3a0; }
.hd-subnav { top: calc(52px + 16px); }
.hd-tabs > .on { color: #167DD1; }
.hd-card { border-color: var(--hd-border); }

/* Page headers are as tall as a button whether or not they have one, so the title sits at the same
   height on every page (Team, with its Invite button, used to sit 4px lower than Domains) */
.hd-head { min-height: 31px; }
@media (pointer: coarse) { .hd-head { min-height: 36px; } }
