/* Workspaces & onboarding, publishing approvals and the team whiteboard. Built on the app's tokens (premium.css),
   so light and dark themes both work. Ink for actions, Athena gold as the only accent. */

/* ---------- workspace list ---------- */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.ws-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.ws-card.current { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.ws-card > header { display: flex; align-items: center; gap: 12px; }
.ws-card h3 { font-size: 15px; margin: 0; } .ws-card header small { color: var(--text-3); font-size: 12px; }
.ws-mark { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--text-3); }
.ws-mark.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.ws-view { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.ws-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ws-facts dt { font-size: 11.5px; color: var(--text-3); } .ws-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.ws-card > footer { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: auto; }
.ws-new { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--text-2); text-decoration: none; min-height: 200px; box-shadow: none; background: transparent; }
.ws-new:hover { border-color: var(--text-3); color: var(--text); }
.ws-new small { color: var(--text-3); }

/* ---------- new workspace ---------- */
.ws-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.ws-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.ws-tpl:hover { border-color: var(--text-3); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ws-tpl:focus-visible { outline: none; box-shadow: var(--ring); }
.ws-tpl b { font-size: 14px; } .ws-tpl span { font-size: 12.5px; color: var(--text-2); } .ws-tpl small { font-size: 12px; color: var(--text-3); }

/* ---------- wizard ---------- */
.ws-wiz { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; align-items: start; }
.ws-steps { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ws-steps a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.ws-steps a:hover { background: var(--surface-2); color: var(--text); }
.ws-steps a.on { background: var(--primary-soft); color: var(--text); font-weight: 600; }
.ws-num { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.ws-steps a.done .ws-num { background: var(--ok-soft); color: var(--ok); }
.ws-steps a.on .ws-num { background: var(--primary); color: var(--on-primary); }
.ws-miss { font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); }
.ws-main { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); }
.ws-sh h2 { font-size: 19px; margin: 0; } .ws-sh p { color: var(--text-3); margin: 4px 0 18px; }
.ws-fields { display: flex; flex-direction: column; gap: 22px; }
.ws-field { padding-left: 14px; border-left: 2px solid var(--line-2); }
.ws-field.bad { border-left-color: var(--warn); }
.ws-q { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.ws-qid { flex: none; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.ws-help { display: block; color: var(--text-3); font-size: 12px; margin-top: 5px; }
.ws-err { color: var(--warn); font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.ws-choices { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ws-choice { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: all .12s; }
.ws-choice:hover { border-color: var(--text-3); color: var(--text); }
.ws-choice.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ws-choice:focus-visible { outline: none; box-shadow: var(--ring); }
.ws-other { width: 240px; }
.ws-ents { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.ws-ent { padding: 12px 14px 2px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.ws-ent-h { display: flex; align-items: center; gap: 4px; margin: -4px 0 6px; }
.ws-sf { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.ws-gate { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-sm); background: var(--warn-soft); margin-bottom: 14px; }
.ws-gate.ok { background: var(--ok-soft); }
.ws-gate.ok > .ic { color: var(--ok); }
.ws-gate p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }
.ws-accs, .ws-team { margin-top: 6px; }
.ws-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.ws-review section { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.ws-review header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ws-review h3 { font-size: 14px; margin: 0; }
.ws-review dl { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.ws-review dt { font-size: 11.5px; color: var(--text-3); } .ws-review dd { margin: 1px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.ws-todo { margin: 6px 0 0; padding-left: 18px; } .ws-todo li { margin: 2px 0; }
.ws-receipt { margin-top: 16px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.ws-receipt h3 { font-size: 14px; margin: 0 0 8px; } .ws-receipt ul { margin: 4px 0 10px; padding-left: 18px; }
.ws-ai { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ws-props { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 380px; overflow: auto; }
.ws-prop { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: 13px; }
.ws-prop small { color: var(--text-3); }
@media (max-width: 860px) { .ws-wiz { grid-template-columns: 1fr; } .ws-steps { position: static; flex-direction: row; overflow-x: auto; } .ws-steps a { flex: none; } .ws-main { padding: 16px; } .ws-facts { grid-template-columns: 1fr 1fr; } }

/* ---------- publishing: approvals ---------- */
.pb-tabs { display: inline-flex; background: var(--surface-3); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.pb-tabs button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 7px 14px; border-radius: 6px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pb-tabs button.on { background: var(--primary); color: var(--on-primary); }
.pb-tabs button i { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 99px; background: color-mix(in srgb, currentColor 16%, transparent); }
.pb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pb-list { display: flex; flex-direction: column; gap: 14px; max-width: 980px; margin: 0 auto; }
.pb-appr { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.pb-appr-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pb-appr-side { padding: 16px; background: var(--surface-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pb-appr-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.pb-appr-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.pb-media { display: flex; gap: 6px; flex-wrap: wrap; } .pb-media img, .pb-media video { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.pb-stages { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pb-stages li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; }
.pb-stages .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: 10px; font-weight: 700; margin-top: 1px; }
.pb-stages li.done .dot { background: var(--ok-soft); color: var(--ok); }
.pb-stages li.now .dot { background: var(--accent); color: #fff; }
.pb-stages li.rejected .dot { background: var(--danger-soft); color: var(--danger); }
.pb-stages small { display: block; color: var(--text-3); }
.pb-thread { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.pb-thread div b { font-weight: 600; } .pb-thread div span { color: var(--text-3); font-size: 11.5px; }
.pb-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
@media (max-width: 760px) { .pb-appr { grid-template-columns: 1fr; } .pb-appr-side { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- workflows (settings) ---------- */
.wf-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; margin-bottom: 12px; background: var(--surface); }
.wf-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .wf-card h4 { margin: 0; font-size: 14px; }
.wf-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.wf-step { padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.wf-step small { display: block; color: var(--text-3); }
.wf-stage-edit { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 8px; background: var(--surface-2); }
.wf-people { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-people label { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; cursor: pointer; background: var(--surface); }

/* ---------- whiteboard ---------- */
.wb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.wb-tile { display: flex; flex-direction: column; gap: 6px; min-height: 130px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.wb-tile:hover { box-shadow: var(--shadow-md); } .wb-tile b { font-size: 14px; } .wb-tile p { margin: 0; color: var(--text-2); font-size: 13px; } .wb-tile small { margin-top: auto; color: var(--text-3); }
.wb-head { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 16px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 260px; max-width: 520px; }
.wb-head b { font-size: 14px; } .wb-head span { color: var(--text-2); font-size: 13px; }
.wb-board { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 20px; }
.wb-col { flex: none; width: 290px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; max-height: calc(100vh - 250px); }
.wb-col.over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wb-col-h { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px 14px; font-weight: 600; font-size: 13.5px; }
.wb-col-h .n { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.wb-cards { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 8px; overflow-y: auto; min-height: 20px; }
.wb-add { margin: 4px 10px 12px; align-self: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.wb-add:hover { color: var(--text); border-color: var(--text-3); }
.wb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; cursor: grab; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.wb-card:hover { border-color: var(--text-3); }
.wb-card.dragging { opacity: .45; }
.wb-card .k { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 600; color: var(--text-3); }
.wb-card .t { font-weight: 600; } .wb-card .x { color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wb-card img, .wb-card video { width: 100%; max-height: 150px; object-fit: cover; border-radius: 6px; }
.wb-card .m { display: flex; gap: 10px; color: var(--text-3); font-size: 11.5px; align-items: center; }
.wb-newcol { flex: none; }
.wb-thread { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto; margin: 8px 0; }
.wb-thread div { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; font-size: 13px; }
.wb-thread div small { color: var(--text-3); display: block; margin-bottom: 2px; }

/* ---------- composer (clearer layout, Hootsuite-style footer) ---------- */
.cp-sec { margin-bottom: 16px; }
.cp-sec > .cp-l { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.cp-sec > .cp-l small { font-weight: 400; color: var(--text-3); }
.cp-sec > .cp-l a, .cp-sec > .cp-l button { margin-left: auto; font-size: 12px; }
.cp-recent { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.cp-recent > span { font-size: 12px; color: var(--text-3); margin-right: 2px; }
.cp-recent button { border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 99px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; color: var(--text-2); }
.cp-recent button:hover { border-color: var(--text-3); color: var(--text); }
.cp-appr { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: 12.5px; }
.cp-appr .wf-flow { margin-top: 4px; }
.composer-f .cp-foot { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* ---------- account role question (Connect dialog) ---------- */
.cw-role { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin-bottom: 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.cw-role > b { font-size: 13px; margin-bottom: 2px; }
.cw-role-o { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; }
.cw-role-o.on { border-color: var(--text-3); background: var(--surface); }
.cw-role-o input { margin-top: 3px; }
.cw-role-o span { display: flex; flex-direction: column; } .cw-role-o b { font-size: 13px; } .cw-role-o small { color: var(--text-3); font-size: 12px; }
.cw-role-ws { margin: 6px 0 0; }

/* ---------- network accounts (Connection & setup) ---------- */
.nw-accs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; text-align: left; }
.nw-acc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.nw-acc b { display: block; font-size: 13.5px; } .nw-acc small { color: var(--text-3); font-size: 12px; }
