.acc-wrap { max-width: 1120px; margin: 18px auto 48px; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.acc-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.acc-hero h1 { margin: 0 0 6px; font-size: 22px; }
.acc-status-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-banner { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #eef6ff; color: #0f3a6b; font-size: 14px; border: 1px solid #bfdbfe; }
.acc-banner.is-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.acc-mode-tabs { display: none; gap: 8px; background: #f1f5f9; padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.acc-tab-btn { flex: 1; border: 0; border-radius: 9px; padding: 10px 12px; font-weight: 600; cursor: pointer; background: transparent; color: #475569; }
.acc-tab-btn.is-active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acc-owner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.acc-subcard { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; }
.acc-subcard h3 { margin: 0 0 10px; font-size: 15px; }
.acc-member-card { margin-top: 14px; }

.acc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.acc-card-head h2, .acc-card-head h3 { margin: 0; }
.acc-pill-note { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-weight: 600; }
.acc-pill-note.is-ok { background: #dcfce7; color: #166534; }

.acc-form { display: flex; flex-direction: column; gap: 10px; }
.acc-form-compact { margin-top: 10px; }
.acc-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #1e293b; }
.acc-form input, .acc-form select { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; font-size: 14px; background: #fff; }
.acc-form label.acc-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.acc-form label.acc-check input { width: auto; }

.acc-pw-wrap { position: relative; display: flex; align-items: center; gap: 6px; }
.acc-pw-wrap input { flex: 1; min-width: 0; }
.btn-pw-toggle { flex: 0 0 auto; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; border-radius: 7px; padding: 8px 10px; font-size: 12px; cursor: pointer; font-weight: 600; }

.acc-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acc-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.btn-primary, .btn-secondary, .btn-danger { border: 0; border-radius: 9px; padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary { background: #1d4ed8; color: #fff; }
.btn-primary:hover { background: #1e40af; }
.btn-secondary { background: #e2e8f0; color: #0f172a; }
.btn-secondary:hover { background: #cbd5e1; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-mini { border: 0; border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 600; cursor: pointer; background: #e2e8f0; color: #0f172a; }
.btn-mini.is-warn { background: #fee2e2; color: #991b1b; }
.btn-mini.is-accent { background: #dbeafe; color: #1e40af; }

.acc-btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acc-user-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-identity h2 { margin: 0 0 4px; font-size: 19px; }

.acc-reset-drawer { margin-top: 14px; border-top: 1px dashed #cbd5e1; padding-top: 10px; }
.acc-reset-drawer summary, .acc-subdetails summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #1d4ed8; }
.acc-subdetails { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #cbd5e1; }
.acc-code-snippet { background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; font-size: 12px; overflow-x: auto; }
.acc-small { font-size: 12px; margin: 6px 0; }

.acc-tunnel-links { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.acc-link-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; flex-wrap: wrap; }
.acc-link-box code { word-break: break-all; font-size: 12px; color: #0f172a; }
.acc-invite-out { margin-top: 10px; }
.acc-reset-issued { margin: 10px 0; padding: 10px 12px; border-radius: 9px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; }

.acc-today-head, .acc-board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #334155; font-weight: 600; }
.acc-badge.ok { background: #dcfce7; color: #166534; }
.acc-badge.warn { background: #fee2e2; color: #991b1b; }

.acc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.acc-metric { padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.acc-metric .k { font-size: 12px; color: #64748b; }
.acc-metric .v { font-size: 20px; font-weight: 700; margin-top: 4px; color: #0f172a; }

.acc-tabs { display: inline-flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
.acc-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-weight: 600; cursor: pointer; color: #475569; }
.acc-tabs button.is-active { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }

.acc-table-wrap { overflow-x: auto; margin-top: 10px; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acc-table th, .acc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.acc-table tr.is-me { background: #eff6ff; font-weight: 600; }
.acc-my-rank { margin-top: 8px; font-size: 13px; }

@media (max-width: 780px) {
  .acc-mode-tabs { display: flex; }
  .acc-grid, .acc-owner-grid, .acc-row-2, .acc-row-3 { grid-template-columns: 1fr; }
  .auth-panel.is-mobile-hidden { display: none; }
}
