/* Studio v2 (plan F6): the rules of WP-F, the supporting screens. Shared tokens stay in studio.css. */

/* Settings: Organisation and Team as two tabs under one title */
.set-tabs { display: flex; gap: 4px; margin: 6px 0 18px; border-bottom: 1px solid var(--rule); }
.set-tabs a { padding: 8px 12px; color: var(--ink2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.set-tabs a:hover { color: var(--ink); }
.set-tabs a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--accent); }
.set-lede { margin-bottom: 14px; }
.set-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 12px;
           margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.set-k { min-width: 0; flex: 1 1 260px; }
.set-why { margin: 2px 0 0; }
.set-v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.set-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; }
.set-switch input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

/* Team */
.team-h { margin-top: 4px; }
.team-pending h2 { margin-bottom: 4px; }
.team-pending > p { margin: 0 0 10px; }
.team-invites td.go { width: 1%; }
.team-table .ph { display: none; }
#invite label { min-width: 0; max-width: 100%; }
#invite select { max-width: 100%; }
/* a phone: each person and each invitation a short block, never a table that scrolls sideways */
@media (max-width: 560px) {
  .team-table thead { display: none; }
  .team-table, .team-table tbody { display: block; }
  .panel > .team-table { margin: 0; }
  .team-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 0;
                   border-bottom: 1px solid var(--rule); }
  .team-table tbody tr:first-child { padding-top: 0; }
  .team-table tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .team-table td { border: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
  .team-table .ph { display: inline; }
  .team-members td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .team-members td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .team-invites td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .team-invites td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .team-invites td:nth-child(3) { display: none; }
  .team-invites td:nth-child(4) { grid-column: 1; grid-row: 2; }
  .team-invites td:nth-child(5) { grid-column: 2; grid-row: 2; width: auto; }
  #invite { display: grid; }
  #invite input, #invite select { width: 100%; }
}

/* Scanners: one card per scanner; an offline one says what to do */
.scn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.scn-row { display: grid; gap: 6px; }
.scn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.scn-name { font-size: 16px; }
.scn-lines { display: flex; flex-direction: column; gap: 2px; }
.status.off { background: color-mix(in srgb, var(--warn) 12%, var(--panel)); color: var(--warn); }
.status.off::before { background: var(--warn); }
.scn-fix { border-left: 3px solid var(--warn); padding: 4px 0 4px 12px; font-size: 14px; }
.scn-fix ol { margin: 0 0 4px; padding-left: 20px; }
.scn-fix ol li + li { margin-top: 2px; }
.scn-note { margin: 0; }
details.scn-more { margin-top: 2px; }
.scn-facts { margin: 0; gap: 8px 24px; }
.scn-facts dd { overflow-wrap: anywhere; }

/* Help's Support information */
.help-support { margin-top: 28px; }
.help-support h2 { margin: 0 0 10px; }
.support-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.support-rows div { display: contents; }
.support-rows dt { color: var(--muted); font-size: 13px; }
.support-rows dd { margin: 0; overflow-wrap: anywhere; }
.support-copy { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; }
@media (max-width: 480px) {
  .support-rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .support-rows dd { margin-bottom: 8px; }
}

/* Help's contents: the tasks, then the glossary folded */
.help-gloss > summary { cursor: pointer; font-weight: 600; }
.help-gloss > ul { margin-top: 10px; }
