/* TTD sign-in, connector consent, and the workspace page's account parts. Tokens from ttd-dash.css. */
body.acct { background: var(--page); color: var(--text-primary); }
.acct-box { width: 100%; max-width: 420px; margin: 10vh auto 40px; padding: 28px 24px; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 14px; box-sizing: border-box; }
@media (max-width: 480px) { .acct-box { margin: 24px 16px; width: auto; } }
.acct-box h1 { font-size: 22px; margin: 18px 0 8px; }
.acct-box p { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.acct-box p b { color: var(--text-primary); }
.acct-lead { margin: 0 0 18px; }
.acct-form { display: flex; flex-direction: column; gap: 8px; }
.acct-form label, .ok-form label { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }
.acct-form input, .ok-form select, .ws-form input, .ws-form select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--page); color: var(--text-primary); }
#code { letter-spacing: .3em; font-size: 22px; text-align: center; }
.bd-btn.is-primary { background: var(--brand); border-color: var(--brand); color: var(--surface-1); padding: 10px 14px; font-size: 14px; }
.bd-btn.is-primary:disabled { opacity: .6; cursor: default; }
.acct-link { font: inherit; font-size: 13px; background: none; border: 0; color: var(--brand); cursor: pointer; padding: 6px 0; text-align: left; }
.acct-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 13.5px; }
.acct-msg.is-err, .ws-msg.is-err { color: #d03b3b; }
.acct-small, .ok-small { font-size: 12.5px !important; color: var(--text-muted) !important; }
.ok-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ok-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* workspace page: switcher, team, big screen, connector */
.ws-who { display: flex; align-items: center; gap: 10px; flex: none; }
.ws-who select { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-1); color: var(--text-primary); max-width: 260px; }
.ws-me { font-size: 12.5px; color: var(--text-secondary); }
@media (max-width: 720px) { .ws-me { display: none; } .ws-who select { max-width: 150px; } }
/* phones: the workspace picker and buttons drop to their own row instead of pushing the page wider */
@media (max-width: 560px) {
  body.viz-root > .bd-bar { flex-wrap: wrap; }
  .ws-who { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
  .ws-who select { max-width: none; flex: 1 1 100%; }
}
.ws-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ws-panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 16px; min-width: 0; }
.ws-panel h2 { font-size: 15px; margin: 0 0 4px; }
.ws-panel > p { font-size: 13px; color: var(--text-secondary); margin: 0 0 12px; line-height: 1.45; }
.ws-people { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ws-person { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.ws-person span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-person em { font-style: normal; font-size: 11.5px; color: var(--text-muted); }
.ws-person select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--page); color: var(--text-primary); }
.ws-x { font: inherit; font-size: 15px; line-height: 1; background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 4px; }
.ws-x:hover { color: #d03b3b; }
.ws-form { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-form input { flex: 1 1 160px; font-size: 14px; padding: 7px 10px; min-width: 0; }
.ws-form select { font-size: 14px; padding: 7px 8px; }
.ws-msg { font-size: 12.5px; color: var(--text-secondary); margin: 8px 0 0; min-height: 1.2em; }
.ws-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-code code { font-size: 18px; letter-spacing: .08em; padding: 6px 10px; background: var(--page); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); overflow-wrap: anywhere; }
.ws-steps { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.ws-steps code { font-size: 12.5px; color: var(--text-primary); overflow-wrap: anywhere; }
.ws-log { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--text-secondary); max-height: 260px; overflow: auto; }
.ws-log li { padding: 4px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.ws-log b { color: var(--text-primary); font-weight: 600; }
.ws-log .is-fail b { color: #d03b3b; }
#p-activity { margin-top: 24px; }
.ws-invites { margin-bottom: 16px; border-color: var(--brand); }
.ws-invites .bd-btn.is-primary { padding: 6px 12px; font-size: 13px; }

/* "Connect your AI": the address + one fold per app */
#conn-url { font-size: 13px; letter-spacing: 0; overflow-wrap: anywhere; }
.ws-how { border-top: 1px solid var(--border); padding: 8px 0 2px; }
.ws-how summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text-primary); padding: 2px 0 6px; }
.ws-how[open] summary { color: var(--brand); }

/* Company brand panel */
.ws-brand-logo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ws-brand-logo img { height: 40px; max-width: 160px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; padding: 4px; background: #fff; }
.ws-brand { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-brand select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-1); color: var(--text-primary); max-width: 100%; }
.ws-brand-colours, .ws-brand-two, .ws-brand-btns { display: inline-flex; align-items: center; gap: 6px; }
.ws-brand input[type="color"] { width: 40px; height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-1); }
.ws-brand input[type="color"]:disabled { opacity: .4; }
.ws-swatches { display: flex; align-items: center; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.ws-sw-k { font-size: 12.5px; color: var(--text-secondary); margin-right: 4px; }
.ws-sw { width: 18px; height: 18px; border-radius: 4px; display: inline-block; }

/* /join: the invitation link pages */
.acct-list { margin: 0 0 18px; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.acct-list li { margin-bottom: 6px; }
.acct-list b { color: var(--text-primary); }
.acct-form input[readonly] { background: var(--page); color: var(--text-secondary); }

/* /w: an open invitation, shown first and big */
.ws-invites { padding: 16px; border-width: 2px; }
.ws-invites h2 { font-size: 17px; }
.ws-invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.ws-invite:first-child { border-top: 0; }
.ws-invite p { flex: 1 1 260px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }
.ws-invite p b { color: var(--text-primary); }
.ws-invites .ws-invite .bd-btn.is-primary { padding: 9px 18px; font-size: 15px; }
.ws-invite .acct-link { font-size: 12.5px; color: var(--text-muted); }
.ws-joined { margin: -6px 0 18px; padding: 10px 14px; border-radius: 10px; background: #d7f3e3; color: #0f5b33; font-size: 14.5px; font-weight: 600; }
.ws-person .ws-resend { font: inherit; font-size: 12px; background: none; border: 0; color: var(--brand); cursor: pointer; padding: 2px 4px; }
/* Word documents (Aria Docs) on the workspace page */
.ws-docs { margin-top: 18px; }
.ws-docs h3 { margin: 0 0 4px; font-size: 15px; }
.ws-docs > p { margin: 0 0 10px; font-size: 13px; color: var(--text-secondary, #555); }
.ws-doc-acts { display: flex; gap: 8px; margin-top: 6px; }
.ws-doc-act { font: inherit; font-size: 13px; color: #1765c1; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.ws-none { color: var(--text-muted, #777); font-size: 13px; }

/* pictures on the workspace page (Kelly 16 Nov) */
.ws-pics { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.ws-pic { font-size: 13px; min-width: 0; }
.ws-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #eef1f4; }
.ws-pic-name { margin-top: 5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
