/* MyBiz Ops & Docs: the landing page (sign-in) and the firm name in the bar. Owner: builder B3. Every rule is scoped to .g.signin or .si-. */
body[data-auth="out"] .top, body[data-auth="out"] #main { display: none; }
#signin[hidden] { display: none; }
/* The page scrolls DOWN inside #signin and never sideways: the first screen (one window high), then the parts
   (signin-parts.css). First screen: the pitch on the left (logo, name, paragraph, films, points), the sign-in panel on the right. */
#signin.g.signin { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; background: var(--surface); color: var(--ink); font-size: 15px; }
.g.signin .si-first { display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 39%, 700px); min-height: 100%; }

/* ---------- left: the pitch ---------- */
/* The first screen is exactly one window high: the logo at the top, then the name, the paragraph and the films as one
   block that sits in the middle of the height that is left (no empty band under the player on a tall window). */
.g.signin .si-left { min-width: 0; display: flex; padding: 22px clamp(32px, 3.6vw, 72px) 28px; background: var(--surface); }
/* One block, one left edge. Its width is the column's, capped at 1040 px and by the window's height: everything above the
   player plus the line under it takes about 320 px when the paragraph runs to three lines (Indonesian does at 1536 x 730 and
   1880 x 880: the first screen was 4 and 8 px taller than the window, 22 Nov 2026), so (window height - 344 px) is the tallest
   16:9 player that is whole in every language. */
.g.signin .si-pitch { margin: 0 auto; width: min(100%, 1040px, max(440px, calc((100vh - 344px) * 16 / 9))); width: min(100%, 1040px, max(440px, calc((100dvh - 344px) * 16 / 9))); }
.g.signin .si-pitch { display: flex; flex-direction: column; }
.g.signin .si-intro { margin-top: auto; }
.g.signin .si-film { margin-bottom: auto; }
.g.signin .si-top { display: flex; align-items: center; flex: none; margin-bottom: 20px; }
.g.signin .si-logo { display: block; }
.g.signin .si-logo img { height: 40px; width: auto; display: block; }
.g.signin .si-logo img.dk, :root[data-theme="dark"] .g.signin .si-logo img.lt { display: none; }
:root[data-theme="dark"] .g.signin .si-logo img.dk { display: block; }
.g.signin .si-intro h1 { margin: 0; font-size: clamp(30px, calc(1.2vw + 18px), 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.g.signin .si-lead { margin: 8px 0 0; max-width: 92ch; font-size: 16px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

/* The films: two buttons, then the player in a frame that is 16:9 before anything has loaded. */
.g.signin .si-film { display: flex; flex-direction: column; align-items: flex-start; margin-top: 16px; }
.g.signin .si-pick { display: inline-flex; flex: none; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.g.signin .si-pickbtn { height: 36px; min-width: 96px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.g.signin .si-pickbtn + .si-pickbtn { border-left: 1px solid var(--line-2); }
.g.signin .si-pickbtn:hover { background: var(--hover); color: var(--ink); }
.g.signin .si-pickbtn[aria-pressed="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .g.signin .si-pickbtn[aria-pressed="true"] { background: var(--blue-bg); color: var(--ink); }
.g.signin .si-pickbtn:disabled { background: none; color: var(--muted); cursor: default; }
.g.signin .si-stage { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); }
.g.signin .si-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: left top; background: var(--navy); }
/* The product's picture lies under the player and is seen only when no film can be played. */
.g.signin .si-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; display: none; }
.g.signin .si-nofilm .si-stage { background: var(--bg); }
.g.signin .si-nofilm .si-shot.lt { display: block; }
:root[data-theme="dark"] .g.signin .si-nofilm .si-shot.lt { display: none; }
:root[data-theme="dark"] .g.signin .si-nofilm .si-shot.dk { display: block; }
/* The large play button on the poster: it says "this is a film" before anything is pressed. It leaves when the film
   plays (the player's own controls take over) and is not shown when there is no film. */
.g.signin .si-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(6, 12, 36, .45); }
.g.signin .si-play svg { width: 38px; height: 38px; margin-left: 5px; display: block; }
.g.signin .si-play:hover { background: var(--orange-h); }
.g.signin .si-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.g.signin .si-playing .si-play, .g.signin .si-nofilm .si-play { display: none; }
@media (prefers-reduced-motion: no-preference) { .g.signin .si-play { transition: background-color 150ms, transform 150ms var(--ease); } .g.signin .si-play:hover { transform: scale(1.06); } .g.signin .si-play:active { transform: scale(.97); } }
@media (max-width: 520px) { .g.signin .si-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .g.signin .si-play svg { width: 28px; height: 28px; margin-left: 4px; } }
.g.signin .si-morerow { align-self: flex-end; margin: 10px 0 0; line-height: 20px; }
.g.signin .si-more { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--blue); }
.g.signin .si-more .ic { width: 14px; height: 14px; }
.g.signin .si-more:hover { text-decoration: underline; }

/* Six points at the head of the second section: three columns of two (two columns on a tablet, one on a phone). */
.g.signin .si-points { list-style: none; margin-top: 0; margin-bottom: clamp(28px, 5vh, 44px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 36px; }
.g.signin .si-points li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.g.signin .si-points .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--orange-ink); }
.g.signin .si-points b { color: var(--ink); }

/* ---------- right: the sign-in panel, one window high; it stays in view while the pitch runs past the fold ---------- */
.g.signin .si-right { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); padding: 22px clamp(24px, 2.6vw, 48px) 0; }
/* The top row of the panel: Share, then the language switch. Share opens a small menu under itself; what it shares is the
   page in the language chosen beside it. */
.g.signin .si-tools { display: flex; flex: none; align-self: flex-end; align-items: center; gap: 8px; }
.g.signin .si-sharebox { position: relative; }
.g.signin .si-share { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.g.signin .si-share .ic { width: 15px; height: 15px; }
.g.signin .si-share:hover, .g.signin .si-share[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.g.signin .si-share:focus-visible, .g.signin .si-shareitem:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.g.signin .si-sharemenu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; width: 264px; padding: 6px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-lg); }
.g.signin .si-sharemenu[hidden] { display: none; }
.g.signin .si-shareitem { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.g.signin .si-shareitem:hover { background: var(--hover); }
.g.signin .si-shareitem.done { color: var(--green); }
.g.signin .si-sharelink { margin: 6px 0 0; padding: 8px 10px 4px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; user-select: all; }
.g.signin .si-lang { display: inline-flex; flex: none; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.g.signin .si-lang button { height: 32px; min-width: 40px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.g.signin .si-lang button + button { border-left: 1px solid var(--line); }
.g.signin .si-lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .g.signin .si-lang button[aria-pressed="true"] { background: var(--blue-bg); color: var(--ink); }
.g.signin .si-lang button:focus-visible, .g.signin .si-acct:focus-visible, .g.signin input:focus-visible, .g.signin .si-go:focus-visible, .g.signin .si-pickbtn:focus-visible, .g.signin .si-more:focus-visible, .g.signin .si-video:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.g.signin .si-lang button:focus-visible, .g.signin .si-pickbtn:focus-visible, .g.signin .si-video:focus-visible { outline-offset: -2px; }

.g.signin .si-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; width: min(560px, 100%); margin: 0 auto; padding-top: clamp(12px, 2.4vh, 28px); }
.g.signin .si-head { flex: none; }
.g.signin .si-head h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
/* The firms of the product side by side with a thin rule between them. When they do not fit on one line each firm takes
   its own line and the rule at the start of a line is cut off by the paragraph's edge (so no line starts with a mark). */
.g.signin .si-firm { margin: 2px 0 0; font-size: 15px; color: var(--muted); overflow: hidden; }
.g.signin .si-firms { display: flex; flex-wrap: wrap; margin-left: -11px; }
.g.signin .si-firms span { padding: 0 10px; border-left: 1px solid var(--line-3); }
.g.signin .si-form { flex: none; display: grid; gap: 6px; margin-top: clamp(12px, 2.2vh, 22px); }
.g.signin .si-form label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.g.signin .si-form label:first-child { margin-top: 0; }
.g.signin .si-form input { height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; width: 100%; }
.g.signin .si-form input:focus { border-color: var(--blue); }
.g.signin .si-error { margin: 4px 0 0; padding: 9px 12px; border-radius: 8px; background: var(--red-bg); color: var(--red); font-size: 14px; font-weight: 700; }
.g.signin .si-error[hidden] { display: none; }
.g.signin .si-act { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.g.signin .si-tour { flex: none; margin: 12px 0 0; }
.g.signin .si-tour .link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--blue); }
.g.signin .si-tour .link:hover { text-decoration: underline; }
.g.signin .si-go { height: 44px; padding: 0 28px; font-size: 16px; justify-content: center; cursor: pointer; min-width: 140px; }
.g.signin .si-go[disabled] { opacity: .65; cursor: progress; }
.g.signin .si-hint code { font: inherit; font-weight: 700; color: var(--ink-2); user-select: all; }

/* The demo accounts fill what is left of the panel; a long list scrolls inside it. */
.g.signin .si-demo { flex: 1; min-height: 150px; display: flex; flex-direction: column; margin-top: clamp(12px, 2.2vh, 22px); border-top: 1px solid var(--line); padding-top: 12px; }
.g.signin .si-demo h2 { flex: none; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.g.signin .si-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 20px; scrollbar-width: thin; }
.g.signin .si-firmgroup + .si-firmgroup { margin-top: 14px; }
.g.signin .si-firmgroup h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.g.signin .si-level { margin-top: 6px; }
.g.signin .si-level h4 { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.g.signin .si-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6px; }
.g.signin .si-acct { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 4px 8px 4px 4px; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.g.signin .si-acct:hover { background: var(--surface); border-color: var(--line); }
.g.signin .si-acct.cur { background: var(--blue-bg); border-color: var(--blue); }
.g.signin .si-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.g.signin .si-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g.signin .si-who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- one column (tablet upright and phone): logo and language switch, name and paragraph, films, sign-in, points ----------
   The two column boxes dissolve (display: contents) and their parts become rows of one grid, in the order below. */
@media (max-width: 900px) {
  .g.signin .si-first { grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 12px; min-height: 0; padding: 12px max(16px, calc((100% - 680px) / 2)) 32px; }
  .g.signin .si-left, .g.signin .si-pitch, .g.signin .si-right { display: contents; }
  .g.signin .si-top { order: 1; grid-column: 1; margin-bottom: 0; }
  .g.signin .si-logo { display: flex; align-items: center; min-height: 44px; }
  /* The menu hangs from the right end of the row here, so it stays inside a narrow window. */
  .g.signin .si-tools { order: 2; grid-column: 2; align-self: center; position: relative; }
  .g.signin .si-sharebox { position: static; }
  .g.signin .si-sharemenu { width: min(264px, calc(100vw - 32px)); }
  .g.signin .si-lang button { height: 44px; min-width: 44px; }
  .g.signin .si-share { height: 44px; min-width: 44px; justify-content: center; }
  .g.signin .si-shareitem { min-height: 44px; }
  .g.signin .si-intro { order: 3; grid-column: 1 / -1; margin-top: 16px; }
  .g.signin .si-film { order: 4; grid-column: 1 / -1; }
  .g.signin .si-pickbtn { height: 44px; }
  .g.signin .si-morerow { margin-top: 2px; }
  .g.signin .si-more { min-height: 44px; }
  .g.signin .si-panel { order: 5; grid-column: 1 / -1; display: block; width: auto; margin: 16px 0 0; padding: 18px 16px 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
  .g.signin .si-form input { height: 44px; font-size: 16px; }
  .g.signin .si-tour { margin-top: 4px; }
  .g.signin .si-tour .link { display: inline-flex; align-items: center; min-height: 44px; }
  .g.signin .si-demo { display: block; min-height: 0; margin-top: 4px; }
  /* The list slides inside its own height; its lower edge fades out, so a half-seen row reads as "more below", not as a cut. */
  .g.signin .si-scroll { max-height: 300px; padding-bottom: 28px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
  .g.signin .si-acct { min-height: 44px; }
  .g.signin .si-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
}
@media (max-width: 600px) { .g.signin .si-points { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
/* Safari's "pretty" wrapping evens out EVERY line of a paragraph: on a phone the paragraph then ended about 60 px short of the
   film's right edge (WebKit at 390 px, 22 Nov 2026; Chromium only evens the last lines). One column: lines fill the width. */
@media (max-width: 900px) { .g.signin .si-lead { text-wrap: wrap; } }
@media (max-width: 520px) {
  /* The word "Share" gives way to its mark beside the logo; the button keeps its name for screen readers. */
  .g.signin .si-share { padding: 0; }
  .g.signin .si-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .g.signin .si-share .ic { width: 18px; height: 18px; }
  .g.signin .si-intro h1 { font-size: 28px; }
  .g.signin .si-logo img { height: 34px; }
  .g.signin .si-who small { display: none; }
  .g.signin .si-pickbtn { flex: 1; }
  .g.signin .si-pick { align-self: stretch; }
}
@media (prefers-reduced-motion: no-preference) { .g.signin .si-acct, .g.signin .si-form input, .g.signin .si-pickbtn { transition: background-color 120ms, border-color 120ms, color 120ms; } }

/* The firm's short name in the bar after the app's name: a button that opens the person menu (its firm section). */
.top .si-firmname { flex: none; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 13px; font-weight: 700; color: #C9D1EC; background: none; border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.top .si-firmname:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.top .si-firmname:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.top .si-firmname:empty { display: none; }
.top .who b .lastn { font-weight: inherit; }

/* The bar with all its entries: the long labels give way first. With eight tabs the entries do not fit on one line at
   1280: main.js measures the bar and gives the tabs a second line (class "two", assets/slots.css). Nothing slides and
   nothing is cut on a desktop; the app's name and the firm's name stay whole at every width. */
@media (max-width: 1439px) {
  .top .demos span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .demos { padding: 0 6px; }
  .top .appid { padding: 0 6px; margin-right: 0; }
  .top .vtabs a { padding: 0 8px; }
  .top .who b .lastn { display: none; }
  .top .who { padding-right: 6px; }
  .top { gap: 8px; padding: 0 12px; }
}
@media (max-width: 1279px) {
  /* The Gravita logo stays whole at every width. */
  .top .wm { flex: none; }
  .top .vtabs a { flex: none; }
}
@media (max-width: 760px) {
  /* Phone: the row of tabs is the bar's last line and slides by finger (app.css); main.js shows an arrow at an end while
     there is more that way. The app's name gives way to its mark, which is the way home and carries the unread count. */
  .top .vtabs { flex: 0 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top .vtabs::-webkit-scrollbar { display: none; }
  .top .sp { flex: 0 0 0; }
  .top .appid b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .top .appid img { display: block; }
  .top .vtabs a { padding: 0 6px; font-size: 13px; gap: 5px; }
  .top .si-firmname { max-width: 8ch; padding: 3px 6px; }
  .top .seg3 button { padding: 5px 6px; }
  .top { gap: 6px; padding: 0 8px; }
}
