/* Shared FiniteOffice shell theme */
:root {
  --fo-bg: #f4f5f7;
  --fo-surface: #ffffff;
  --fo-ink: #1b1f24;
  --fo-muted: #6b7280;
  --fo-line: #e3e6ea;
  --fo-accent: #2f6fed;
  --fo-accent-soft: #e8f0fe;
  --fo-docs: #2f6fed;   /* Documents blue */
  --fo-sheets: #1a8f4c; /* Sheets green */
  --fo-slides: #e06a1b; /* Slides orange */
  --fo-pdf: #d0402b;    /* PDF red */
  --fo-danger: #d0402b;
  --fo-radius: 8px;
  --fo-shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.06);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: var(--fo-bg);
  color: var(--fo-ink);
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

button {
  font: inherit; cursor: pointer; border: 1px solid transparent;
  background: transparent; color: inherit; border-radius: 6px; padding: 6px 10px;
}
button:hover { background: rgba(0,0,0,.05); }
button.primary { background: var(--fo-accent); color: #fff; }
button.primary:hover { background: #2560d8; }
button:disabled { opacity: .45; cursor: not-allowed; }

.fo-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.fo-logo {
  width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px;
}
.fo-app-logo { width: 30px; height: 30px; display: block; flex: 0 0 auto; }
.fo-pill {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--fo-accent-soft); color: var(--fo-accent);
}
.fo-muted { color: var(--fo-muted); }

/* self-update: version pill + update toast */
.fo-ver-pill {
  position: fixed; left: 10px; bottom: 8px; z-index: 90;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 8px;
  border-radius: 999px; opacity: .55; pointer-events: none; user-select: none;
}
.fo-update-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; align-items: center; gap: 10px;
  background: #201f1e; color: #fff; padding: 10px 12px 10px 16px; border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0,0,0,.3); font-size: 13px; animation: fo-toast-in .25s ease both;
}
@keyframes fo-toast-in { from { transform: translateY(16px); opacity: 0 } to { transform: none; opacity: 1 } }
.fo-update-toast button { border: none; border-radius: 6px; cursor: pointer; font-size: 13px; padding: 6px 12px; }
.fo-update-toast .rl { background: var(--app-accent, #2f6fed); color: #fff; font-weight: 600; }
.fo-update-toast .x { background: transparent; color: #bbb; padding: 6px 8px; }
