/* Bizcoach hub -- shared theme (trimmed from Here platform-frame.css) */
:root {
  --bg: #0f0f0f;
  --bg-card: #161a20;
  --bg-card-hover: #1c222b;
  --border: rgba(255, 255, 255, 0.08);
  --ink: #e6e8ec;
  --ink-soft: #b3b8c1;
  --muted: #8b919a;
  --dim: #565d68;
  --accent: #C27C5A;
  --accent-hover: #d4906e;
  --ok: #7fb58a;
  --err: #d47c7c;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: 50px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h2 { font-size: 1.45rem; margin-top: 2.5rem; }
h3 { font-size: 1.15rem; margin-top: 1.75rem; }
p, li { color: var(--ink-soft); font-size: 1rem; }
p { margin: 0 0 1.2rem; }
strong { color: var(--ink); }
em { color: var(--ink); }
ul, ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.page { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.page--wide { max-width: 960px; }
.label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.5rem;
}
.muted { color: var(--muted); font-size: 0.88rem; }
.dim { color: var(--dim); }

/* nav */
.platform-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  background: rgba(15, 15, 15, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.pn-brand { font-family: var(--serif); font-size: 0.95rem; color: var(--ink); }
.pn-brand:hover { color: var(--ink); }
.pn-right { display: flex; align-items: center; gap: 1.1rem; }
.pn-link { font-size: 0.8rem; color: var(--dim); }
.pn-link:hover, .pn-link.active { color: var(--ink); }
.pn-user { font-size: 0.75rem; color: var(--dim); }
.pn-btn {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  padding: 0.35rem 0.8rem; border-radius: 6px; cursor: pointer;
}
.pn-btn:hover { background: rgba(255,255,255,0.14); }
.pn-menu-btn { display: none; background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; padding: 0 0.3rem; }
.pn-mobile { display: none; position: fixed; top: 50px; left: 0; right: 0; z-index: 9998;
  background: rgba(15,15,15,0.98); border-bottom: 1px solid var(--border); padding: 0.4rem 0; }
.pn-mobile.open { display: block; }
.pn-mobile a, .pn-mobile button { display: block; width: 100%; text-align: left; padding: 0.8rem 1.4rem; color: var(--muted);
  font-size: 0.9rem; background: none; border: none; font-family: var(--sans); cursor: pointer; }
.pn-mobile a:hover, .pn-mobile button:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
@media (max-width: 640px) {
  .pn-link, .pn-user { display: none; }
  .pn-menu-btn { display: inline-block; }
}

/* footer */
.platform-footer {
  text-align: center; padding: 2rem 1.5rem 2.5rem; font-size: 0.8rem; color: var(--dim);
  border-top: 1px solid var(--border); margin-top: 3rem;
}
.platform-footer a { color: var(--dim); margin: 0 0.5rem; }
.platform-footer a:hover { color: var(--ink); }
.pf-copy { font-size: 0.72rem; opacity: 0.6; margin-top: 0.4rem; }

/* cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 1.5rem 0; }
.card {
  display: block; padding: 1.25rem 1.4rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; color: var(--ink); transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
a.card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.16); transform: translateY(-2px); color: var(--ink); }
.card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.card .card-arrow { color: var(--accent); font-size: 0.85rem; margin-top: 0.6rem; display: block; }

.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 1.2rem; margin: 1.5rem 0; border-radius: 10px;
  background: rgba(194,124,90,0.1); border: 1px solid rgba(194,124,90,0.35); font-size: 0.92rem;
}
.strip a { font-weight: 600; }

.btn {
  display: inline-block; padding: 0.7rem 1.4rem; background: var(--accent); color: #fff; border: none;
  border-radius: 8px; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.btn--sm { padding: 0.35rem 0.8rem; font-size: 0.78rem; }
.btn--danger { background: transparent; border: 1px solid rgba(212,124,124,0.4); color: var(--err); }
.btn--danger:hover { background: rgba(212,124,124,0.12); color: var(--err); }

.video { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 10px; overflow: hidden; margin: 1.25rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #1a1f27 center/cover no-repeat; color: var(--ink); cursor: pointer; border: none; width: 100%; font-family: var(--sans);
}
.video-thumb span { background: rgba(0,0,0,0.6); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.9rem; }

.session-row { display: flex; gap: 1rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.session-row .date { color: var(--muted); font-size: 0.82rem; min-width: 7.5rem; }
.session-row .title { flex: 1; }
.session-row button { margin-left: auto; }
.session-embed { flex-basis: 100%; }

/* write-in component */
.writein { margin: 1.75rem 0; padding: 1.1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.writein-prompt { font-family: var(--serif); font-size: 1rem; color: var(--ink); margin: 0 0 0.75rem; line-height: 1.5; }
.writein textarea {
  width: 100%; min-height: 7rem; resize: vertical; padding: 0.75rem 0.9rem;
  background: #0d1117; border: 1px solid var(--border); border-radius: 8px; color: var(--ink);
  font-family: var(--sans); font-size: 0.95rem; line-height: 1.6;
}
.writein textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(194,124,90,0.5); box-shadow: 0 0 0 3px rgba(194,124,90,0.1);
}
.writein-list { list-style: none; padding: 0; margin: 0; }
.writein-list li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.35rem 0; }
.writein-list input[type="checkbox"] { width: 16px; height: 16px; margin-top: 0.3rem; accent-color: var(--accent); flex-shrink: 0; }
.writein-list label { color: var(--ink-soft); cursor: pointer; }
.writein-list input:checked + label { color: var(--dim); text-decoration: line-through; }
.writein-status { font-size: 0.72rem; color: var(--dim); margin-top: 0.4rem; text-align: right; min-height: 1em; }
.writein-status.saving { color: var(--muted); }
.writein-status.saved { color: var(--ok); }
.writein-status.offline, .writein-status.error { color: var(--err); }

/* my-work entries */
.work-entry { padding: 1rem 1.2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin: 0.75rem 0; }
.work-entry-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 0.5rem; }
.work-entry-title { color: var(--ink); }
.work-entry-key { font-size: 0.72rem; color: var(--dim); font-family: monospace; }
.work-entry pre { white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* forms + tables (admin) */
.field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; }
.field label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field select, .field textarea {
  padding: 0.55rem 0.75rem; background: #0d1117; border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-family: var(--sans); font-size: 0.9rem;
}
.field textarea { min-height: 4.5rem; resize: vertical; }
.form-row { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.5rem 0 1.5rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
td input, td select { background: #0d1117; border: 1px solid var(--border); color: var(--ink); border-radius: 6px; padding: 0.3rem 0.4rem; font-family: var(--sans); font-size: 0.8rem; }
td .btn { margin: 0 0.2rem 0.2rem 0; }
.notice { padding: 0.8rem 1rem; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); margin: 1rem 0; }
.notice.err { border-color: rgba(212,124,124,0.4); color: var(--err); }
.notice.ok { border-color: rgba(127,181,138,0.4); color: var(--ok); }
details.admin-block { border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 1rem; margin: 1rem 0; }
details.admin-block summary { cursor: pointer; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); padding: 0.3rem 0; }

/* auth gate overlay */
.bz-gate { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: #0f0f0f; padding: 1.5rem; overflow-y: auto; }
.bz-gate.hidden { display: none !important; }
.bz-gate-card { max-width: 400px; width: 100%; text-align: center; }
.bz-gate-brand { font-family: var(--serif); font-size: 0.85rem; color: var(--dim); margin-bottom: 2rem; }
.bz-gate-card h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.bz-gate-card p { font-size: 0.9rem; color: var(--muted); }
.bz-gate-card input {
  width: 100%; padding: 0.8rem 1rem; margin-bottom: 0.6rem; background: #0d1117; border: 1px solid var(--border);
  border-radius: 8px; color: var(--ink); font-family: var(--sans); font-size: 0.92rem;
}
.bz-gate-card input:focus { outline: none; border-color: rgba(194,124,90,0.5); }
.bz-gate-card .btn { width: 100%; margin-top: 0.2rem; }
.bz-gate-link { background: none; border: none; color: var(--accent); cursor: pointer; font-family: var(--sans); font-size: 0.82rem; text-decoration: underline; padding: 0.7rem 0 0; display: block; width: 100%; }
.bz-gate-msg { font-size: 0.8rem; min-height: 1.1em; margin-top: 0.6rem; color: var(--muted); }
.bz-gate-msg.ok { color: var(--ok); }
.bz-gate-msg.err { color: var(--err); }
.bz-gate-google { display: flex; justify-content: center; margin: 0.4rem 0 0.8rem; min-height: 40px; }
.bz-gate-or { font-size: 0.72rem; color: var(--dim); margin-bottom: 0.6rem; }
.bz-gate-alt { margin-top: 1rem; font-size: 0.8rem; color: var(--dim); }
.bz-gate-alt button { background: none; border: none; color: var(--accent); cursor: pointer; font-family: var(--sans); font-size: inherit; text-decoration: underline; padding: 0; }

.lede { color: var(--muted); font-size: 1.1rem; margin-top: -0.5rem; margin-bottom: 1.5rem; }
