/* ==========================================================
   account.css — le tableau de bord du compte
   ========================================================== */
.acc-shell { max-width: 1180px; margin: 0 auto; padding: calc(var(--doc-top,64px) + 34px) 28px 90px; }

.acc-head { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 18px; align-items: center; margin-bottom: 26px; }
.acc-avatar { width: 76px; height: 76px; border-radius: 3px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; font-family: var(--mono); font-size: 26px; color: var(--ink-4); }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-id h1 { font-size: 27px; font-weight: 400; letter-spacing: -0.028em; margin: 0 0 4px; }
.acc-sub { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.acc-head-acts { display: flex; gap: 8px; }
.acc-head-acts .btn { border-radius: 3px; }

.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.acc-stat { padding: 15px 18px; border-right: 1px solid var(--line); background: var(--bg-card); }
.acc-stat:last-child { border-right: 0; }
.acc-stat .v { font-family: var(--mono); font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.acc-stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-top: 4px; }
.acc-stat.warn .v { color: #7a5c14; }

.acc-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.acc-tab { padding: 10px 15px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3);
  border-bottom: 2px solid transparent; transition: .14s; }
.acc-tab:hover { color: var(--ink); }
.acc-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* liste des publications */
.acc-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-card); margin-bottom: 10px; }
.acc-thumb { width: 46px; height: 46px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; display: grid; place-items: center; }
.acc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc-thumb .ph { font-family: var(--mono); color: var(--ink-4); }
.acc-item-name { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-item-name a { color: var(--ink); text-decoration: none; }
.acc-item-name a:hover { color: var(--blue); }
.acc-item-sub { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.acc-item-acts { display: flex; gap: 6px; }
.acc-item-acts .btn { border-radius: 3px; padding: 5px 11px; font-size: 12px; }

.acc-form { max-width: 620px; }
.acc-form .pub-field { margin-bottom: 16px; }
.acc-notif { padding: 13px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-card); margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
.acc-notif.unread { border-left: 2px solid var(--blue); }
.acc-notif .when { font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin-top: 4px; }

@media (max-width: 700px) {
  .acc-head { grid-template-columns: 56px minmax(0,1fr); }
  .acc-avatar { width: 56px; height: 56px; }
  .acc-head-acts { grid-column: 1 / -1; }
  .acc-item { grid-template-columns: 40px minmax(0,1fr); }
  .acc-item-acts { grid-column: 1 / -1; }
}

/* ==========================================================
   Jetons, organisations, confidentialité
   ========================================================== */
.tok-new {
  border: 1px solid rgba(46,125,50,.35); background: rgba(46,125,50,.05);
  border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 18px;
}
.tok-new h4 { font-size: 15px; margin: 0 0 8px; }
.tok-value {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px;
  padding: 10px 12px; margin: 10px 0;
  background: var(--ink); color: #ecebe6; border-radius: 3px;
  word-break: break-all;
}
.tok-value button {
  margin-left: auto; flex: none;
  font-family: var(--mono); font-size: 11px; padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #ecebe6; border-radius: 3px; cursor: pointer;
}
.tok-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px;
  align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-card); margin-bottom: 8px;
}
.tok-row.revoked { opacity: .55; }
.tok-name { font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.tok-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.tok-scope {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  padding: 1px 6px; border-radius: 3px; color: var(--blue);
  background: rgba(29,78,216,.07); border: 1px solid rgba(29,78,216,.26);
}

.org-row {
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px;
  align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-card); margin-bottom: 8px;
}
.org-avatar {
  width: 42px; height: 42px; border-radius: 3px; background: var(--bg-soft);
  display: grid; place-items: center; font-family: var(--mono); color: var(--ink-4);
  overflow: hidden;
}
.org-avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-role {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; padding: 1px 6px; border-radius: 3px;
  color: var(--ink-3); border: 1px solid var(--line); background: var(--bg-soft);
}
.org-role.owner { color: #2e7d32; border-color: rgba(46,125,50,.3); background: rgba(46,125,50,.07); }

.danger-zone {
  border: 1px solid #e8c4be; background: #fdf3f1;
  border-radius: var(--r-md); padding: 20px 22px; margin-top: 26px;
}
.danger-zone h4 { font-size: 15px; margin: 0 0 8px; color: #a3341f; }
.danger-zone p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 10px; max-width: 70ch; }
.danger-zone .btn { border-radius: 3px; }
.btn-danger { background: #a3341f; border-color: #a3341f; color: #fff; }
.btn-danger:hover { background: #8a2b19; }

.acc-event {
  display: grid; grid-template-columns: 150px 130px 1fr; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.acc-event:last-child { border-bottom: 0; }
.acc-event .when { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); }
.acc-event .kind { font-family: var(--mono); font-size: 11.5px; color: var(--blue); }

@media (max-width: 700px) {
  .acc-event { grid-template-columns: 1fr; gap: 2px; }
  .org-row, .tok-row { grid-template-columns: 1fr; }
}
