/* Member app. Colors are neutral defaults; each skin's skin.json overrides them inline per page. */
:root {
  --ink: #10231f; --muted: #5b6d67; --paper: #f7f8f3; --white: #ffffff; --mint: #dff5df;
  --accent: #b9ed66; --brand: #164f3f; --brand-2: #246b55; --line: #dce4dc;
  --shadow: 0 18px 50px rgba(16, 35, 31, .08); --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 17px; letter-spacing: .1px; }
.brand .mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); }
.brand .mark svg { width: 22px; height: 22px; }

/* Layout */
main { flex: 1; width: 100%; }
.wrap { max-width: 620px; margin: 0 auto; padding: 40px 20px 56px; }
.wrap.wide { max-width: 1080px; padding-top: 28px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.3px; }
.lede { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; }

.embed { display: flex; justify-content: center; }
.embed > * { width: 100%; display: block; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* Status + loading */
.status { padding: 12px 16px; border-radius: 12px; background: var(--mint); border: 1px solid #c4e8c4;
  margin: 0 0 18px; font-size: 15px; }
.status.error { background: #fff3f1; border-color: #f4c7c0; color: #7a2418; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 32px 4px; font-size: 15px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Buttons */
button, .btn { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
button:hover { border-color: #c3cfc6; }
.btn { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn:hover { background: var(--brand-2); color: var(--white); }
.btn-quiet { padding: 8px 14px; font-size: 14px; }

/* Dashboard */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; flex-wrap: wrap; }
.hello h1 { font-size: 26px; margin: 0; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; margin: 0 0 20px; }
.tab { border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 15px; color: var(--muted);
  background: transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--paper); }
.tab[aria-selected="true"] { background: var(--brand); color: var(--white); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; min-height: 240px; }
.panel[hidden] { display: none; }

/* Footer */
.foot { width: 100%; max-width: 1080px; margin: 0 auto; padding: 22px 20px 36px; color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.foot p { margin: 0; }

@media (max-width: 640px) {
  .wrap { padding: 28px 16px 40px; }
  h1 { font-size: 25px; }
  .lede { font-size: 16px; }
  .card { padding: 16px; border-radius: 14px; }
  .panel { padding: 12px; border-radius: 14px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 9px 10px; }
  .top-inner { padding: 10px 16px; }
}

/* Refused page: one template, message by reason */
body[data-reason="notfound"] .msg-invite, body:not([data-reason="notfound"]) .msg-notfound { display: none; }
