.chip,.task-actions button,.button-row button,.toolbar-row button,button{border:1px solid rgba(123,231,255,.22);background:rgba(255,255,255,.04);color:#eef3ff;padding:10px 14px;border-radius:12px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.primary{background:linear-gradient(90deg,#1b93ff,#7b53ff);border:none;box-shadow:0 0 24px rgba(69,124,255,.34)}.wide{width:100%}.badge,.status-pill,.file-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px}.badge{background:rgba(123,231,255,.14);color:#7be7ff}.status-pill{background:rgba(123,102,255,.16);color:#c7b4ff}.file-badge{background:rgba(255,255,255,.06)}.toolbar-input,input,select,textarea{flex:1;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#0d1424;color:#eef3ff}textarea{min-height:110px;resize:vertical}label{display:grid;gap:8px;font-size:14px;color:#dce6ff}a{color:#eef3ff;text-decoration:none}
.chip-active{box-shadow:0 0 0 1px rgba(0,255,255,.35) inset; background:rgba(0,255,255,.08);}
.page-note{margin-bottom:12px;color:#8ea5b8;}
.inline-form{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;}
.danger{background:rgba(255,60,90,.15);color:#ffd3dc;border:1px solid rgba(255,60,90,.35);}


.permission-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:12px; }
.permission-item { display:flex; gap:12px; align-items:flex-start; padding:14px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.03); }
.permission-item small, .permission-item em { display:block; color:var(--muted-text, #9aa4b2); }
.audit-filters { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:12px; align-items:end; }
.audit-table pre { white-space:pre-wrap; word-break:break-word; font-size:12px; max-height:180px; overflow:auto; background:rgba(0,0,0,.2); padding:10px; border-radius:10px; }
.audit-diff-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.badge-row { display:flex; flex-wrap:wrap; gap:6px; }


.history-list{display:grid;gap:12px}
.history-item{border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px;background:rgba(255,255,255,.02)}
.history-item-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}
.history-diff-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.history-diff-grid pre{white-space:pre-wrap;word-break:break-word;background:rgba(255,255,255,.04);padding:10px;border-radius:12px;margin:6px 0 0}
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}

.action-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(123,231,255,.20);
  background:rgba(255,255,255,.03);
  color:#eef3ff;
  text-decoration:none;
  transition:all .18s ease;
}

.btn-ghost:hover{
  background:rgba(123,231,255,.08);
  border-color:rgba(123,231,255,.38);
  box-shadow:0 0 18px rgba(123,231,255,.10);
}

.btn-ghost:active{
  transform:translateY(1px);
}
