/* v2 pages (account, hub, viewer, Murphy, admin access). Uses the site's .btn classes when present. */
.v2 { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.v2 h1 { margin: 0 0 8px; }
.v2-lead { font-size: 1.05rem; opacity: .85; }
.v2-card { background: var(--surface, #fff); border: 1px solid rgba(81, 34, 154, .14); border-radius: 14px; padding: 20px; margin: 16px 0; box-shadow: 0 2px 10px rgba(30, 10, 60, .05); }
.v2-card h2 { margin-top: 0; }
.v2-card label { display: block; margin: 10px 0; font-weight: 600; }
.v2-table input:not([type=checkbox]) { max-width: 260px; padding: 6px 8px; }
.v2-card input:not([type=checkbox]):not([type=file]), .v2-card textarea, .v2-filters input, .v2-filters select, .v2-card select {
  display: block; width: 100%; max-width: 420px; margin-top: 6px; padding: 10px 12px; border: 1px solid #c9c2d8; border-radius: 10px; font: inherit; }
.v2-card textarea { max-width: none; }
.v2-check { font-weight: 400 !important; }
.v2-muted { opacity: .72; }
.v2-muted.small, .small { font-size: .85rem; }
.v2-error { color: #a1132a; font-weight: 600; }
.v2-link { background: none; border: 0; color: #51229a; text-decoration: underline; cursor: pointer; font: inherit; padding: 4px 0; }
.v2-account { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.v2-account nav { display: flex; gap: 14px; flex-wrap: wrap; }
.v2-perms, .v2-list { list-style: none; padding: 0; margin: 0; }
.v2-perms li, .v2-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #eee8f5; }
.v2-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .85rem; background: #eee; }
.v2-badge.active { background: #dff5e6; color: #11612f; }
.v2-badge.pending { background: #fff3cd; color: #7a5600; }
.v2-badge.expired, .v2-badge.revoked { background: #fde2e4; color: #8a1424; }
.v2-badge.ok { background: #dff5e6; color: #11612f; }
.v2-badge.warn { background: #fff3cd; color: #7a5600; }
.v2-offer { background: #f7f3fd; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.v2-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.v2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.v2-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.v2-tag { background: #f1ebfb; color: #51229a; border-radius: 6px; padding: 2px 8px; font-size: .85rem; }
.v2-filters { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.v2-filters label { font-weight: 600; }
.v2-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.v2-pages figure { margin: 12px auto; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); width: fit-content; max-width: 100%; user-select: none; -webkit-user-select: none; }
.v2-pages canvas { display: block; max-width: 100%; height: auto; }
.v2-chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; max-height: 60vh; overflow: auto; }
.v2-msg { white-space: pre-wrap; padding: 10px 14px; border-radius: 12px; max-width: 85%; line-height: 1.45; }
.v2-msg.user { align-self: flex-end; background: #51229a; color: #fff; }
.v2-msg.assistant { align-self: flex-start; background: #f3eff9; }
.v2-save { font-size: .9rem; margin: 6px 0; }
.v2-save.error, .v2-save.conflict { color: #a1132a; }
.v2-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.v2-table th, .v2-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee8f5; vertical-align: top; }
.v2 .btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; border: 1px solid #51229a; cursor: pointer; text-decoration: none; font: inherit; }
.v2 .btn.primary { background: #51229a; color: #fff; }
.v2 .btn.secondary { background: #fff; color: #51229a; }
.v2 .btn[disabled] { opacity: .5; cursor: not-allowed; }
