/* Page-specific styles for parent-protection pages (internet, apps, safety, activity, enroll, settings). Shared tokens live in styles.css. */

/* Internet protection */
.scope-chip { height: 34px; padding-left: 6px; }
.scope-chip .avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.deploy-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.layer-card { padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tight { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.legend-grid { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 14px; }
.domain-chip { padding-right: 4px; gap: 4px; }
.chip-x { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--fg-subtle); cursor: pointer; }
.chip-x:hover { background: var(--surface-3); color: var(--fg); }
.rules .list-item:first-child { border-top: 0; }

/* Apps */
.apps-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 14px 0; }
.apps-toolbar .tabs { flex: 1; min-width: 0; border-bottom: 0; }
.apps-search { width: 100%; padding-bottom: 10px; }
@media (min-width: 700px) { .apps-search { width: 260px; padding-bottom: 0; } }
.apps-toolbar + .table-wrap, .apps-toolbar + .list, .apps-toolbar + .empty { border-top: 1px solid var(--border); }
.app-glyph { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--fg-muted); font-family: var(--font-display); font-weight: 700; flex: none; }
.matrix-cell { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; }
.cell-yes { color: var(--good); background: var(--good-soft); }
.cell-partial { color: var(--warn); background: var(--warn-soft); }
.cell-no { color: var(--fg-subtle); background: var(--neutral-soft); }
.matrix th { white-space: normal; min-width: 92px; }

/* Safety Center */
.alert-row { position: relative; }
.alert-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: var(--fg-subtle); opacity: .5; }
.alert-row.alert-critical::before, .alert-row.alert-high::before { background: var(--crit); opacity: 1; }
.alert-row.alert-medium::before { background: var(--warn); opacity: 1; }
.alert-row.alert-low::before { background: var(--info); opacity: 1; }
.alert-row .meta .avatar.sm { width: 18px; height: 18px; font-size: 9px; }

/* Enrollment wizard */
.wizard-nav { padding-top: 4px; }
.method-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.method-card { align-items: flex-start; }
.method-card:disabled { opacity: .6; cursor: not-allowed; }
.enroll-grid { display: grid; gap: 18px; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
@media (max-width: 620px) { .enroll-grid { grid-template-columns: 1fr; justify-items: center; } .enroll-grid > .stack:last-child { width: 100%; } }
.link-box { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.link-box .mono { flex: 1; min-width: 0; }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 8px; }

/* Settings */
.radio-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-row input { margin-top: 3px; accent-color: var(--accent); }

/* Layout containment for these pages: flex children must not grow past the viewport */
.pp-page .panel, .pp-page .grid > *, .pp-page .stack > * { min-width: 0; }
.pp-page .table-wrap { max-width: 100%; }
.pp-page .table th.right, .pp-page .table td.right { text-align: right; }
.action-stack .btn { white-space: normal; height: auto; min-height: 36px; padding: 8px 14px; line-height: 1.3; }

/* Messages */
.msg-excerpt { margin: 0; padding: 12px 14px 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface-2); font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-spark { min-height: 40px; }
.secret-box { background: var(--accent-soft); border-color: var(--accent); }
.secret-box code { flex: 1; min-width: 0; font-size: 13px; }
.link-box code.truncate, .link-box .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.static { cursor: default; }
.page-header .actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) {
  .page-header .actions { width: 100%; }
  .page-header .actions .btn { flex: 1 1 auto; }
  .link-box { flex-wrap: wrap; }
  .link-box .btn { flex: 1 1 100%; }
}
