/* Lilybeth Studio: shared look for the workspace home and the course page.
   Modern and quiet. Colours from tropical North Queensland (rainforest and palm greens, bamboo, cane,
   timber, warm off-whites); no scenery. Client courses keep their own branding inside the player. */
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("figtree-700.woff2") format("woff2"); }
:root {
  /* Palette */
  --rainforest: #17392b;  /* deep canopy green: headers, primary buttons */
  --canopy: #1f4d3a;      /* hover and panels */
  --palm: #6f8f5e;        /* soft green accents */
  --palm-soft: #e9efe2;
  --bamboo: #d9c99a;      /* light highlights, rules */
  --bamboo-soft: #f3ecd9;
  --cane: #b5884c;        /* small accents: numbers, active marks */
  --cane-soft: #f6ead8;
  --timber: #5c4431;      /* warm dark text accents */
  --paper: #f8f5ef;       /* page background, warm off-white */
  --card: #ffffff;
  --ink: #16241c;         /* body text, green-black */
  --muted: #5f6b62;
  --line: #e7e1d4;
  /* Roles */
  --brand: var(--rainforest); --brand-ink: #ffffff; --brand-soft: var(--palm-soft);
  --bg: var(--paper);
  --ok: #2e6b3f; --ok-soft: #e4f0e3; --warn: #8a5d24; --warn-soft: var(--cane-soft); --info: #3d5f3a; --info-soft: var(--palm-soft);
  --mark: #d6336c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 36, 28, .05), 0 8px 24px rgba(22, 36, 28, .06);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--canopy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cane); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark */
.lb-mark { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); line-height: 0; }
.lb-logo { height: 40px; width: auto; flex: none; overflow: visible; }
.lb-logo text { font-family: var(--font); font-size: 40px; font-weight: 700; letter-spacing: -1.6px; fill: currentColor; }
.lb-logo .lb-s { font-weight: 500; fill: var(--muted); }
.lb-logo path { fill: none; stroke: var(--cane); stroke-width: 3; stroke-linecap: round; }
.lb-mark.light { color: #fff; }
.lb-mark.light .lb-s { fill: rgba(255, 255, 255, .7); }
.lb-mark.small .lb-logo { height: 32px; }

/* Top bar */
.ui-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 24px;
  background: rgba(248, 245, 239, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.ui-org { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.ui-org img { height: 28px; width: auto; display: block; }
.ui-org strong { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-sep { width: 1px; height: 22px; background: var(--line); }
.ui-app { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.ui-spacer { flex: 1; }
.ui-me { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px 4px 4px;
  cursor: pointer; font-size: .88rem; color: var(--muted); }
.ui-me:hover { border-color: var(--palm); }
.ui-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rainforest); color: #fff;
  font-weight: 600; font-size: .8rem; flex: none; }

/* Buttons */
.ui-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s; }
.ui-btn:hover { border-color: var(--palm); color: var(--canopy); }
.ui-btn svg { width: 18px; height: 18px; flex: none; }
.ui-btn.primary { background: var(--rainforest); border-color: var(--rainforest); color: #fff; }
.ui-btn.primary:hover { background: var(--canopy); border-color: var(--canopy); color: #fff; }
.ui-btn.approve { background: var(--ok); border-color: var(--ok); color: #fff; }
.ui-btn.approve:hover { filter: brightness(1.1); color: #fff; }
.ui-btn.marking { background: var(--mark); border-color: var(--mark); color: #fff; }
.ui-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap;
  letter-spacing: .01em; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.review { background: var(--palm-soft); color: var(--info); }
.pill.changes { background: var(--cane-soft); color: var(--warn); }
.pill.approved { background: var(--ok-soft); color: var(--ok); }

/* Dialogs */
.ui-dialog { border: 0; border-radius: 18px; padding: 26px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(22, 36, 28, .28); background: var(--card); }
.ui-dialog::backdrop { background: rgba(23, 57, 43, .38); backdrop-filter: blur(3px); }
.ui-dialog h2 { margin: 0 0 6px; font-size: 1.25rem; }
.ui-dialog p { color: var(--muted); margin: 0 0 12px; }
.ui-dialog label { display: block; margin: 12px 0 6px; font-weight: 600; font-size: .9rem; }
.ui-dialog input[type=text], .ui-dialog textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.ui-dialog input[type=text]:focus, .ui-dialog textarea:focus { border-color: var(--palm); outline: none; box-shadow: 0 0 0 4px var(--palm-soft); }
.ui-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ui-msg { color: #9b2c1f; font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
@media (max-width: 700px) { .ui-app, .ui-sep { display: none; } .ui-top { padding: 0 16px; gap: 10px; }
  .ui-me { padding: 3px; } .ui-me > span:not(.ui-avatar) { display: none; } .lb-logo { height: 34px; } }
