File size: 2,384 Bytes
64268da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* manage-agent/manageAgent.css — wave 33, owner item 10 (W33-T38).
 *
 * ⛔ CONTRACT C4: `index.css` is lane B's. Everything NEW to this module lives
 * here; everything SHARED with Manage user (`.set-card`, `.set-pane`, `.set-h`,
 * `.set-perm-*`) is reused from `index.css` unchanged and is NOT redefined here.
 * That is deliberate and it is the owner's requirement — *"the same exact
 * layout"*. A stylesheet that re-specified the shared chrome would let the two
 * rooms drift by a padding value, which is exactly the drift the shared
 * `ModulePermsList` component exists to prevent one level up.
 */

.ma-list {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ma-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* The whole left half is the door, so the target is a row and not a word. */
.ma-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  /* ⚠ A <button> inherits neither `font` nor `text-align` from its container —
     the exact defect owner item 15 reports on Home's automation tiles, one
     screen over. Both are stated rather than assumed. */
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.ma-open:disabled { cursor: default; opacity: 0.6; }
.ma-open:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; }

.ma-name {
  font-size: var(--lp-fs-sm);
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ma-channel {
  font-size: var(--lp-fs-2xs);
  color: var(--lp-muted);
  font-variant-numeric: tabular-nums;
}

.ma-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* The write-approval state, visible without opening the agent. Everything else
   about an agent is recoverable by editing it; an unattended write is not. */
.ma-flag {
  font-size: var(--lp-fs-2xs);
  color: var(--lp-muted);
  white-space: nowrap;
}

.ma-approval { margin: 4px 0 0; }
.ma-principal { max-width: 68ch; }
.ma-unconfigured { max-width: 68ch; }
.ma-add { margin-top: 16px; }

@media (max-width: 640px) {
  .ma-row { flex-wrap: wrap; }
  .ma-end { flex-wrap: wrap; justify-content: flex-end; }
}