/* Studio > Settings > Private access (A-126). Written by that part's builder. Loaded after race.css. */

/* Two columns, as in the approved picture: what works on the left and right; nothing narrower than 1280 px is promised. */
.pa { display: flex; flex-direction: column; gap: 16px; }
.pa-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; align-items: start; }
.pa-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pa .card h3 { font-size: 15px; }
.pa .card > p { max-width: 68ch; }
.pa .card > p.pa-none { max-width: none; }
/* An empty message line takes no room; it is still there for a screen reader when words arrive. */
.pa .msg:empty { min-height: 0; }

/* The two choices. The chosen one has a thicker edge and a tint as well as its filled circle: colour is never the only sign. */
.pa-opts { display: flex; flex-direction: column; gap: 10px; }
.pa-opt { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); cursor: pointer; font-size: 14px; font-weight: 400; }
.pa-opt:hover { border-color: var(--hb-slate); }
.pa-opt.on { border: 2px solid var(--hb-purple); padding: 13px 15px; background: #FBF7FC; }
.pa-opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hb-purple); }
.pa-opt:has(input:focus-visible) { outline: 3px solid var(--hb-blue); outline-offset: 2px; }
.pa-opt:has(input:disabled) { cursor: not-allowed; }
.pa-opt b { font-size: 15px; font-weight: 600; color: var(--hb-ink); }
.pa-opt .small, .pa-app .small { display: block; margin-top: 3px; color: var(--hb-slate); font-weight: 400; }
.pa-opt .chip { margin-left: 6px; vertical-align: 1px; }

/* "This device", its address and where it is, with the button that asks again. */
.pa-here { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--hb-mist); border-radius: var(--hb-radius-sm); color: var(--hb-ink); }
.pa-here > span { min-width: 0; }
.pa-here > button { flex: none; }
.pa-addr { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 13px; color: var(--hb-ink); overflow-wrap: anywhere; }

/* Who was turned away in the last 7 days: one line, and a list to show. */
.pa-turned { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--hb-line); color: var(--hb-ink); }
.pa-turned > button { flex: none; }
.pa-list { display: flex; flex-direction: column; gap: 8px; }

/* Office networks: the list, then the form that adds one. */
.pa-nets td { vertical-align: top; }
.pa-nets td.pa-addr, .pa-nets td .small { white-space: nowrap; }
.pa-nets td.pa-act { text-align: right; white-space: nowrap; }
.pa-none { padding: 14px; border: 1px dashed var(--hb-line); border-radius: var(--hb-radius-sm); color: var(--hb-slate); }
.pa-add { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hb-line); }
.pa-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.pa-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pa-hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Which apps are private: four ticks, each with one line. */
.pa-apps { display: flex; flex-direction: column; }
.pa-app { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 2px; border-bottom: 1px solid var(--hb-line); cursor: pointer; font-size: 14px; font-weight: 400; }
.pa-app:last-child { border-bottom: 0; }
.pa-app input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hb-purple); }
.pa-app b { font-weight: 600; color: var(--hb-ink); }
.pa-app:has(input:focus-visible) { outline: 3px solid var(--hb-blue); outline-offset: 2px; border-radius: 6px; }
.pa-app:has(input:disabled) { cursor: not-allowed; }

/* Devices through a VPN app: not built. A dashed edge and a plain ground mark the card as not working yet, beside its words. */
.pa-soon { border-style: dashed; background: var(--hb-mist); box-shadow: none; }
.pa-soon .tablewrap { box-shadow: none; }
.pa-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pa-head h2 { margin: 0; }

.pa-foot { max-width: 86ch; color: var(--hb-slate); }
