@import url('/files/static/css/ui-tokens.css?v=20260620014000');
@import url('/files/static/css/ui-components.css?v=20260619140332');

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.logo {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--panel);
}

h1 {
  font-size: 24px;
}

.bar,
.permPanel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: var(--muted);
  box-shadow: 0 12px 35px #0005;
}

.permPanel {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 16px;
  color: var(--text);
}

.permTitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  border: 1px solid var(--line2);
  background: var(--panel2);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.chip.on {
  color: var(--ok);
  border-color: var(--success-line);
}

.chip.off {
  color: var(--danger);
  border-color: var(--danger-line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 50px #0004;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
}

.ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--panel2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 23px;
  margin-bottom: 13px;
}

.card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.status {
  font-size: 13px;
  color: var(--ok);
  margin-top: 12px;
}

.disabled {
  opacity: .58;
  cursor: not-allowed;
}

.disabled:hover {
  border-color: var(--line);
  background: var(--panel);
}

.disabled .status {
  color: var(--muted);
}

.denied .status {
  color: var(--danger);
}

.req {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.req .chip {
  font-size: 11px;
  padding: 3px 7px;
}

.tag {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
}

.userInfo {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.userPill {
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .top,
  .permPanel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
