:root {
  --brand: #01ae81;
  --brand-solid: #017a5c;
  --brand-muted: #0d7a5f;
  --brand-tint: rgba(1, 174, 129, 0.12);
  --bg: #f3f5f4;
  --panel: #ffffff;
  --muted: #e8ecea;
  --subtle: #dfe5e2;
  --fg: #1f2a26;
  --fg-muted: #4b5853;
  --fg-subtle: #5c6862;
  --fg-faint: #94a19b;
  --border: #cfd8d3;
  --border-soft: #e3e9e6;
  --danger: #b4321f;
  --danger-soft: #fdecea;
  --amber: #b45309;
  --amber-soft: #fff4e2;
  --shadow-sm: 0 1px 2px rgba(31, 42, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 42, 38, 0.08);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.4;
  background:
    radial-gradient(1200px 500px at 0% -10%, rgba(1, 174, 129, 0.10), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(98, 98, 98, 0.06), transparent 50%),
    var(--bg);
  min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; }

/* Concept ribbon */
.ribbon {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 20px; background: #12201b; color: #d6e6df; font-size: 12.5px;
}
.ribbon strong { color: #fff; font-weight: 600; }
.ribbon .sep { opacity: .35; }
.ribbon nav { margin-left: auto; display: flex; gap: 4px; }
.ribbon nav a {
  text-decoration: none; padding: 3px 10px; border-radius: 999px; color: #b9cfc6;
}
.ribbon nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.ribbon nav a.on { background: var(--brand); color: #04221a; font-weight: 600; }

/* App header (mirrors the live PMS chrome) */
.app { max-width: 1320px; margin: 0 auto; padding: 18px 24px 80px; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; gap: 6px; }
.logo { display: flex; align-items: center; gap: 6px; color: var(--brand-muted); font-size: 10px; letter-spacing: .02em; }
.board-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; margin: 0; }
.board-title small { font-size: 13px; color: var(--fg-subtle); font-weight: 400; }
.nav-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-pills span {
  border: 1px solid var(--border); background: var(--panel); border-radius: 10px;
  padding: 7px 13px; font-size: 13px; color: var(--fg-muted); box-shadow: var(--shadow-sm);
}
.board-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 14px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.members { display: flex; }
.members .av { margin-left: -6px; border: 2px solid var(--bg); }
.view-toggle { display: flex; gap: 4px; }
.view-toggle span { padding: 7px 14px; border-radius: 8px; font-size: 13.5px; color: var(--fg-muted); background: var(--muted); }
.view-toggle span.on { background: var(--brand-solid); color: #fff; }
.view-toggle span.locked { opacity: .55; }

/* Avatars */
.av {
  width: 26px; height: 26px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 10.5px; font-weight: 600; color: #fff; flex: none;
}
.av.sm { width: 22px; height: 22px; font-size: 9.5px; }
.av.empty { background: transparent; border: 1px dashed var(--border); color: var(--fg-faint); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  padding: 2px 9px; font-size: 11.5px; font-weight: 500; white-space: nowrap; line-height: 18px;
}
.client { background: #f2ece1; color: #6b4f22; border: 1px solid #e5d9c3; border-radius: 6px; padding: 1px 7px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.s-ns { background: var(--muted); color: var(--fg-subtle); }
.s-wk { background: #fff1d6; color: #9a5b00; }
.s-st { background: var(--danger-soft); color: var(--danger); }
.s-dn { background: #dcf5ec; color: #0b6b51; }
.dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; flex: none; }
.d-ns { background: #b7c2bd; } .d-wk { background: #e59a1a; } .d-st { background: #d9442e; } .d-dn { background: var(--brand); }

/* Due */
.due { font-size: 12.5px; color: var(--fg-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.due.late { color: var(--danger); font-weight: 600; }
.due.today { color: var(--amber); font-weight: 600; }
.due.soon { color: var(--fg); }
.due .rel { font-weight: 500; font-size: 11.5px; opacity: .9; }

/* Check circle */
.check {
  width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid #b4c0ba; background: #fff;
  display: inline-grid; place-items: center; padding: 0; flex: none; transition: .15s;
}
.check:hover { border-color: var(--brand); background: var(--brand-tint); }
.check.on { background: var(--brand); border-color: var(--brand); }
.check.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }

/* Progress */
.bar { height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--brand); }
.bar i.wk { background: #e8a73a; }

.kbd { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: #fff; color: var(--fg-muted); }

.callouts { margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.callouts div { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--fg-muted); }
.callouts b { display: block; color: var(--fg); margin-bottom: 4px; font-size: 13.5px; }
.callouts .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-muted); font-size: 11px; font-weight: 700; margin-right: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: #12201b; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13px;
  display: flex; gap: 14px; align-items: center; transition: .2s; box-shadow: var(--shadow-md); z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast button { background: none; border: 0; color: var(--brand-soft, #34c4a0); font-weight: 600; padding: 0; }
