/* Shared hosted header and footer (Video Studio landing look). Scoped to .cos-* */
.cos-header, .cos-footer {
  --cos-text: #f4f5f1;
  --cos-muted: #a9b0b8;
  --cos-border: rgba(244, 245, 241, 0.14);
  --cos-surface: #191d22;
  --cos-accent: #23d6bf;
  --cos-on-accent: #101318;
  --cos-love: #ff7a4f;
  --cos-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--cos-text);
  box-sizing: border-box;
}
[data-theme="light"] .cos-header, [data-theme="light"] .cos-footer {
  --cos-text: #101318;
  --cos-muted: #5d6675;
  --cos-border: rgba(16, 19, 24, 0.14);
  --cos-surface: #ffffff;
  --cos-accent: #008c83;
  --cos-on-accent: #ffffff;
  --cos-love: #ff5a36;
  --cos-shadow: 0 22px 65px rgba(16, 19, 24, 0.14);
}
.cos-header *, .cos-footer * { box-sizing: border-box; }
.cos-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.cos-header { position: relative; z-index: 20; border-bottom: 1px solid var(--cos-border); }
.cos-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 96px; }
.cos-brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.cos-brand img { display: block; height: 84px; width: auto; border-radius: 12px; }
.cos-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 18px; }
.cos-nav a { color: var(--cos-muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.cos-nav a:hover, .cos-nav a:focus-visible { color: var(--cos-text); }
.cos-header .cos-button, .cos-header .cos-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px;
  border-radius: 8px; font: 700 15px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; text-decoration: none;
}
.cos-header .cos-button { background: var(--cos-accent); color: var(--cos-on-accent); border: 1px solid var(--cos-accent); }
.cos-header .cos-button:hover { color: var(--cos-on-accent); filter: brightness(1.06); }
.cos-header .cos-ghost { background: transparent; color: var(--cos-text); border: 1px solid var(--cos-border); }
.cos-menu-toggle { display: none !important; }
.cos-nav .user-chip:empty, .cos-nav #google-signin:empty { display: none; }
.cos-footer { padding: 12px 0 36px; margin-top: 48px; color: var(--cos-muted); font-size: 14px; }
.cos-footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 20px; border-top: 1px solid var(--cos-border); }
.cos-footer-brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 700; text-decoration: none; }
.cos-footer-brand img { display: block; width: 24px; height: 24px; border-radius: 6px; }
.cos-love span { color: var(--cos-love); font-size: 17px; line-height: 1; }
.cos-footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.cos-footer-links a { color: var(--cos-muted); text-decoration: none; }
.cos-footer-links a:hover, .cos-footer-links a:focus-visible { color: var(--cos-text); text-decoration: underline; }
.cos-header a:focus-visible, .cos-header button:focus-visible, .cos-footer a:focus-visible { outline: 3px solid var(--cos-accent); outline-offset: 3px; }
@media (max-width: 860px) {
  .cos-bar { min-height: 80px; }
  .cos-brand img { height: 68px; }
  .cos-menu-toggle { display: inline-flex !important; }
  .cos-nav {
    display: none; position: absolute; top: calc(100% - 8px); right: 0; width: max-content; max-width: calc(100vw - 24px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 6px;
    border: 1px solid var(--cos-border); border-radius: 8px; background: var(--cos-surface); box-shadow: var(--cos-shadow);
  }
  .cos-nav.open { display: flex; }
  .cos-nav a { padding: 8px 10px; }
  .cos-footer-content, .cos-footer-links { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .cos-wrap { width: calc(100% - 24px); }
  .cos-brand img { height: 56px; }
}
