/* FVA 365 Office: light, fast, phone-first. No heavy downloads. */
:root {
  --emerald: #003A34;
  --emerald-2: #2E7D6B;
  --gold: #C9A06B;
  --bg: #F4F6F4;
  --card: #FFFFFF;
  --text: #17211F;
  --muted: #5C6B67;
  --line: #DDE5E1;
  --danger: #B42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--emerald-2); }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 10px 16px; position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--emerald); }
.logo { width: 34px; height: 34px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: 0.2px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.chip { background: #E8F0EC; color: var(--emerald); padding: 5px 10px; border-radius: 999px; font-size: 13px; }
main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.card.narrow { max-width: 480px; margin: 30px auto; }
h1 { font-size: 26px; margin: 0 0 8px; color: var(--emerald); }
h2 { font-size: 19px; margin: 0 0 10px; color: var(--emerald); }
h3 { font-size: 16px; margin: 14px 0 6px; color: var(--emerald); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.form.row { flex-direction: row; flex-wrap: wrap; align-items: end; }
.form label { font-weight: 600; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; background: #fff; color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
.btn {
  background: #fff; color: var(--emerald); border: 1.5px solid var(--emerald);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 15px;
}
.btn.primary { background: var(--emerald); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1d1d1d; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: 0.55; cursor: default; }
.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tab { flex: 1; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font-weight: 700; }
.tab.active { background: var(--emerald); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.grid .card { margin-bottom: 0; cursor: pointer; }
.grid .card:hover { border-color: var(--gold); }
.notice { background: #FFF6E5; border: 1px solid var(--gold); padding: 10px 14px; border-radius: 10px; }
.notice.err { background: #FDECEA; border-color: var(--danger); }
.ws-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.launcher { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.launcher button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; }
.launcher button.active { background: var(--emerald); color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.badge { display: inline-block; background: #E8F0EC; color: var(--emerald); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.badge.warn { background: #FFF6E5; color: #7A5A00; }
.badge.gold { background: var(--gold); color: #1d1d1d; }
.sheet { overflow-x: auto; }
.sheet input { width: 110px; padding: 6px; font-size: 13px; }
.present { background: #101010; color: #fff; padding: 40px 24px; border-radius: 14px; min-height: 300px; }
.present h2 { color: #fff; font-size: 30px; }
.footer { text-align: center; padding: 18px; color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); }
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .brand-name { font-size: 16px; }
  .ws-head { flex-direction: column; align-items: stretch; }
  .form.row { flex-direction: column; align-items: stretch; }
  main { padding: 14px 12px 50px; }
}
/* FVA Meet video grid: plain workspace pattern, no animation. The grid
   is fluid: one column on a phone, more as the pane widens. Video tiles
   keep a 16 by 9 shape with a dark tile behind the stream. */
.meet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.meet-tile video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #101613; display: block; }
.meet-tile p { margin: 6px 0 0; }

/* Two-track design doctrine.
   OUTSIDE track: public organisation pages only. Modern, fully animated,
   best ever, transform and opacity only, so the public page sells the
   organisation. INSIDE track: workspace interiors stay on the clean
   pattern: plain cards, readable, no animation noise. Nothing below
   touches the workspace, the org picker, or the sign-in views. */
#publicView .card { animation: publicRise .6s ease both; overflow: hidden; }
#publicView .card::before {
  content: ""; display: block; height: 6px; margin: -18px -18px 14px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-2), var(--gold));
  animation: publicBar 1.2s ease both;
}
#publicView .card h1 { animation: publicRise .6s .08s ease both; }
#publicView .btn { transition: transform .2s ease, box-shadow .2s ease; }
#publicView .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 58, 52, .18); }
@keyframes publicRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes publicBar { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
